@font-face {
    font-family: 'MSU';
    src: url('/styles/fonts/MoscowUniversity-Regular.woff2') format('woff2'),
         url('/styles/fonts/MoscowUniversity-Regular.woff') format('woff'),
         url('/styles/fonts/MoscowUniversity-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iosevka Light';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src:
        url('https://cdn.rcc.msu.ru/loadfont/fonts/Iosevka%20Light/normal/300/file.woff2') format('woff2'),
        url('https://cdn.rcc.msu.ru/loadfont/fonts/Iosevka%20Light/normal/300/file.woff') format('woff'),
        url('https://cdn.rcc.msu.ru/loadfont/fonts/Iosevka%20Light/normal/300/file.ttf') format('truetype'),
        url('https://cdn.rcc.msu.ru/loadfont/fonts/Iosevka%20Light/normal/300/file.eot') format('embedded-opentype'),
        url('https://cdn.rcc.msu.ru/loadfont/fonts/Iosevka%20Light/normal/300/file.svg') format('svg');
}

:root {
    --base-fs: 16px;

    --color-bg: #423095;
    --color-gradient-from: #423095;
    --color-gradient-to: #2A008D;
    --color-header: #110046;
    --color-surface: #ffffff;
    --color-text: #1f2430;
    --color-text-light: #ffffff;
    --color-muted: #5b6472;
    --color-border: #e1e5ec;
    --color-accent: #1f5fbf;
    --color-link: #FFFF4D;
    --color-link-underline: #4DFFFF;
    --color-input-border: #0E003E;
    --color-badge-bg: #fff3cd;
    --color-badge-text: #7a5b00;
    --color-badge-border: #f0d98c;
    --color-error: #ff6b6b;
    --color-warning: #ffb020;
    --color-hint: rgba(255, 255, 255, 0.65);
    --color-field-border: rgba(255, 255, 255, 0.55);
    --header-height: 150px;
    --content-width: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body,
* {
    font-family: 'MSU', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    font-size: var(--base-fs);
    color: var(--color-text-light);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(90deg, var(--color-gradient-from) 0%, var(--color-gradient-to) 100%);
    background-attachment: fixed;
    line-height: 1.55;
}

h1 {
    font-size: calc(var(--base-fs) + 4px);
}

h2 {
    font-size: calc(var(--base-fs) + 3px);
}

h3 {
    font-size: calc(var(--base-fs) + 2px);
}

h4 {
    font-size: calc(var(--base-fs) + 1px);
}

h1, h2, h3, h4, strong, b {
	font-weight: normal;
    text-shadow: 1px 1px 2px #000;
}

a,
a:visited,
a strong,
a b,
a:visited strong,
a:visited b {
    color: #e0b200 !important;
    font-weight: 700;
    text-decoration: none;
}

a:not(.btn):not(.header__brand),
a:not(.btn):not(.header__brand):visited {
    background-image: linear-gradient(#FFA500, #FFA500);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 2px;
    transition: background-size 1s ease;
}

a:not(.btn):not(.header__brand):hover {
    background-size: 100% 2px;
}

input,
button,
select,
textarea {
    border: 1px solid var(--color-input-border);
    border-radius: 5px;
    padding: 1px 2px;
}

.btn {
    margin-top: 8px;
    padding: 8px 16px;
    background: var(--color-link);
    color: var(--color-header);
    border: 1px solid var(--color-link);
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 1s ease-in, border-color 1s ease-in,
        box-shadow 1s ease-in, color 1s ease-in;
}

.btn:hover {
    border-color: #000000;
    box-shadow: 0 0 0 3px #777;
    background-color: var(--color-input-border);
    color: var(--color-link);
}

a.btn,
a.btn:visited {
    color: var(--color-header) !important;
}

a.btn:hover {
    color: var(--color-link) !important;
}

.btn.gen {
    background: #49ff93;
}

.btn.gen:hover {
    background-color: #143620;
}

.header {
    display: flex;
    align-items: stretch;
    min-height: var(--header-height);
    background: var(--color-header);
    border-bottom: 1px solid var(--color-border);
}

.header_l,
.header_c,
.header_r {
    display: flex;
    align-items: center;
    height: var(--header-height);
}

.header_l {
    flex: 0 0 auto;
    justify-content: flex-start;
}

.header_c {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
}

.header_r {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.header_l img,
.header_r img {
    display: block;
    height: var(--header-height);
    width: auto;
    max-width: none;
}

.header__brand {
    color: var(--color-text-light);
    font-size: 20px;
    font-weight: 600;
}

.content {
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 32px 20px;
    animation: content-fade-in 1s ease-out;
}

@keyframes content-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.footer {
    background: var(--color-header);
    border-top: 1px solid var(--color-border);
}

.footer__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 16px 20px;
    color: var(--color-muted);
    font-size: 14px;
}

/* Форма заявки */

.request-form {
    max-width: 720px;
    margin: 0 auto;
}

.tFormElement {
    position: relative;
    margin: 0 0 22px;
}

.tFormElement .fel {
    width: 100%;
    padding: 22px 8px 6px;
    border: 1px solid transparent;
    border-bottom: 1px solid var(--color-field-border);
    border-radius: 4px 4px 0 0;
    background: transparent;
    color: var(--color-text-light);
    font-family: inherit;
    font-size: calc(var(--base-fs) + 4px);
    line-height: 1.3;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tFormElement .fel:focus {
    outline: none;
    border: 1px solid var(--color-link-underline);
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(77, 255, 255, 0.18);
}

.tFormElement .fel.validated:not(.is-error) {
    border-color: #6aaf4c;
    border-radius: 6px;
    box-shadow: 1px 1px 2px #222;
}

.tFormElement .fel.validated:focus:not(.is-error) {
    border-color: #6aaf4c;
    box-shadow: 0 0 0 1px rgba(77, 255, 255, 0.35), 1px 1px 2px #222;
}

.tFormElement .fel.has-value {
    background-color: var(--color-header);
    color: var(--color-text-light);
}

.tFormElement .fel:-webkit-autofill,
.tFormElement .fel:-webkit-autofill:hover,
.tFormElement .fel:-webkit-autofill:focus,
.tFormElement .fel:-webkit-autofill:active {
    background-color: var(--color-header) !important;
    color: var(--color-text-light) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--color-header) inset !important;
    -webkit-text-fill-color: var(--color-text-light) !important;
    caret-color: var(--color-text-light);
    transition: background-color 9999s ease-in-out 0s;
}

.tFormElement .fel:-internal-autofill-selected {
    background-color: var(--color-header) !important;
    color: var(--color-text-light) !important;
    -webkit-text-fill-color: var(--color-text-light) !important;
}

.tFormElement .fel:autofill {
    background-color: var(--color-header) !important;
    color: var(--color-text-light) !important;
    filter: none;
}

.tFormElement .fel:disabled {
    opacity: 0.6;
}

.tFormElement .fel.is-error,
.tFormElement .fel.is-error:focus {
    border-color: var(--color-error);
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.18);
}

.tFormElement .fel + label {
    position: absolute;
    top: 18px;
    left: 9px;
    color: var(--color-hint);
    font-size: var(--base-fs);
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}

.tFormElement .fel:focus + label,
.tFormElement .fel.has-value + label {
    top: 3px;
    color: var(--color-link-underline);
    font-size: 14px;
}

.tFormElement .fel.is-error + label {
    color: var(--color-error);
}

.tFormElement select.fel {
    appearance: none;
    cursor: pointer;
    padding-right: 28px;
    direction: rtl;
    text-align: right;
    text-align-last: right;
}

.tFormElement select.fel option,
.tFormElement select.fel optgroup {
    direction: ltr;
    text-align: left;
    text-align-last: left;
}

.tFormElement select.fel option {
    background: var(--color-surface);
    color: var(--color-text);
}

.check-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    cursor: pointer;
    user-select: none;
}

.check-inline--under {
    margin-top: 10px;
}

.check-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-field-border);
    accent-color: var(--color-link);
    cursor: pointer;
}

.tFormElement--consent {
    margin-top: 6px;
}

.eerr {
    min-height: 16px;
    margin-top: 5px;
    color: var(--color-error);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease;
}

.eerr.is-visible {
    opacity: 1;
    visibility: visible;
}

.eerr.is-warning {
    color: var(--color-warning);
}

.eerr.is-hint {
    color: var(--color-hint);
}

.eerr a {
    color: inherit;
    text-decoration: underline;
}

.eerr i {
    margin-right: 4px;
}

/* Datepicker */

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    background-color: var(--color-header);
    background-image: none;
    color: var(--color-text-light);
}

.ui-datepicker select.ui-datepicker-month option,
.ui-datepicker select.ui-datepicker-year option {
    background-color: var(--color-header);
    color: var(--color-text-light);
}

.request-confirm-note {
    margin: 0 0 18px;
    color: var(--color-hint);
    font-size: 14px;
}

.request-confirm-save {
    margin-left: 10px;
}

.result {
    margin: 18px 0;
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.result i {
    margin-right: 4px;
}

.request-perm-captcha {
    display: none;
    margin: 18px 0 6px;
}

.request-perm-captcha.is-visible {
    display: block;
}

.form-actions {
    margin-top: 28px;
}

.form-next {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s,
        background-color 1s ease-in, border-color 1s ease-in,
        box-shadow 1s ease-in, color 1s ease-in;
}

.form-next.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.form-note {
    margin-top: 12px;
    color: var(--color-hint);
}

/* Чекбоксы */

.rcc-checkbox {
    display: block;
    margin: 0 0 10px 0;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.rcc-checkbox input[type=checkbox] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    display: block;
    width: 0;
    height: 0;
}

.rcc-checkbox span {
    display: inline-block;
    position: relative;
    padding: 0 0 0 35px;
    line-height: 22px;
	margin-top: 4px;
}

.rcc-checkbox span:before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 0;
    top: 0;
    background: url(/checkbox-3.png) 0 0 no-repeat;
}

.rcc-checkbox input[type=checkbox] + span:after {
    content: "";
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rcc-checkbox input[type=checkbox]:checked + span:after {
    display: inline-block;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 4px;
    top: -5px;
    background: url(/checkbox-4.png) 0 0 no-repeat;
    opacity: 1;
}

.rcc-checkbox.focused span:before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.rcc-checkbox span:hover:after {
    filter: brightness(110%);
}

.rcc-checkbox span:active:before,
.rcc-checkbox span:active:after {
    filter: brightness(80%);
}

.rcc-checkbox input[type=checkbox]:disabled + span {
    color: #666;
    cursor: default;
}

.rcc-checkbox input[type=checkbox]:disabled + span:before,
.rcc-checkbox input[type=checkbox]:disabled + span:after {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Оверлей согласия на cookies */

body.cookie-overlay-open {
    overflow: hidden;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
}

.cookie-overlay__content {
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 28px;
    border-radius: 8px;
    background: var(--color-header);
    color: var(--color-text-light);
    font-size: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.cookie-overlay__content p {
    margin: 0 0 20px;
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.5;
}

.cookie-overlay__accept {
    display: inline-block;
}

/* Второй шаг формы */

.request-perm-fieldset {
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid var(--color-field-border);
    border-radius: 6px;
}

.request-perm-fieldset legend {
    padding: 0 8px;
    color: var(--color-link-underline);
    font-size: 14px;
}

.aset {
    width: 100%;
    border-collapse: collapse;
}

.aset td {
    padding: 4px 0;
    color: var(--color-text-light);
    font-size: 14px;
    vertical-align: top;
}

.aset .tdh {
    width: 45%;
    color: var(--color-hint);
}

.request-perm-summary-row {
    opacity: 1;
    transition: opacity 1s ease;
}

.request-perm-summary-row.is-entering,
.request-perm-summary-row.is-removing {
    opacity: 0;
}

#request-perm-back {
    margin-bottom: 10px;
}

.request-perm-fields.step2-fields-in {
    animation: step2-fields-in 1s ease-out both;
}

@keyframes step2-fields-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.description {
    display: none;
    margin: 10px 0 0;
}

.description.is-visible {
    display: block;
}

.description__row {
    display: table;
    width: 100%;
}

.description__icon {
    display: table-cell;
    width: 1%;
    padding-right: 10px;
    color: #1492C7;
    font-size: 30px;
    vertical-align: middle;
}

.description__icon i {
    --fa-primary-color: #000000;
    --fa-secondary-color: #63B2C4;
    --fa-secondary-opacity: 1.00;
}

.description__body {
    display: table-cell;
    padding-left: 10px;
    border-left: 1px solid #1492C7;
    vertical-align: middle;
}

.description__body p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 90%;
    line-height: 1.45;
}

.description__body a,
.description__body a:visited,
.description__body a:hover {
    color: var(--color-link);
}

.description + .tFormElement {
    margin-top: 12px;
}

.check_div {
    display: none;
    margin: 14px 0 20px;
    padding: 10px 14px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-warning);
    font-size: 14px;
}

.check_div.is-visible {
    display: block;
}

.check_div i {
    margin-right: 4px;
}

@keyframes form-next-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.form-next.is-visible {
    animation: form-next-in 0.35s ease-out both;
}

/* Лоадер страницы подтверждения. */
.confirm-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(17, 0, 70, 0.92);
    color: #fff;
    font-size: 16px;
}

.confirm-loader[hidden] {
    display: none;
}

.confirm-loader__spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #FFFF4D;
    border-radius: 50%;
    animation: confirm-loader-spin 0.9s linear infinite;
}

@keyframes confirm-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Страница подтверждения: единый размер шрифта для всех элементов. */
.confirm-page,
.confirm-page * {
    font-size: 16px;
}

.confirm-page .debug,
.datagate-page .debug {
    box-sizing: border-box;
    width: 100%;
    height: 370pt;
    padding: 10px;
    overflow: auto;
    background: #000;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    line-height: 1.35;
}

.confirm-page .debug pre,
.datagate-page .debug pre {
    margin: 0;
    color: inherit;
    font: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Страница прикрепления документов к заявке */

.updaterequest-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.updaterequest-form--scan {
    display: block;
}

.updaterequest-scan-description {
    margin-bottom: 10px;
}

.updaterequest-scan-description p {
    margin: 0 0 5px;
}

.updaterequest-file-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.updaterequest-captcha {
    flex-basis: 100%;
    margin: 6px 0;
}

.updaterequest-send-btn[hidden] {
    display: none;
}

.updaterequest-send-btn.is-loading {
    cursor: wait;
    opacity: 0.75;
}

.updaterequest-send-btn .fa-spin {
    margin-right: 6px;
}

.updaterequest-form input[type="file"],
.updaterequest-form input[type="text"],
.updaterequest-form select,
.updaterequest-form textarea {
    box-sizing: border-box;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--color-field-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-light);
    font-family: inherit;
    font-size: 14px;
}

.updaterequest-form textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
}

.updaterequest-form input[type="text"],
.updaterequest-form select {
    min-width: 260px;
}

.updaterequest-form select option,
.updaterequest-form select optgroup {
    background: var(--color-surface);
    color: var(--color-text);
}

.updaterequest-form input[type="file"] {
    max-width: 100%;
}

.updaterequest-form input[type="file"],
.updaterequest-form input[type="text"],
.updaterequest-form select,
.updaterequest-form button {
    height: 38px;
}

.updaterequest-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 0;
    padding: 0 16px;
    font-size: 14px;
    line-height: 1;
}

.updaterequest-docs {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.updaterequest-docs th,
.updaterequest-docs td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    text-align: left;
    vertical-align: top;
}

.updaterequest-docs th {
    color: var(--color-hint);
    font-weight: normal;
}

.updaterequest-mark {
    width: 24px;
    text-align: center !important;
}

.updaterequest-ok {
    color: #58CB6F;
}

.updaterequest-error {
    color: #ff6b6b;
}

.updaterequest-files-missing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    white-space: nowrap;
}

.updaterequest-small {
    color: var(--color-hint);
    font-size: 13px;
}

.updaterequest-inline-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.updaterequest-docs--files th,
.updaterequest-docs--files td {
    vertical-align: middle;
    text-align: center;
}

.updaterequest-docs--files td:nth-child(1),
.updaterequest-docs--files td:nth-child(2) {
    text-align: right;
}

.updaterequest-doc-actions-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.updaterequest-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    line-height: 1.2;
    white-space: nowrap;
}

.btn.updaterequest-action-btn {
    box-sizing: border-box;
    display: inline-flex;
    width: fit-content;
    min-width: 80px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.updaterequest-debug {
    box-sizing: border-box;
    width: 100%;
    height: 370pt;
    margin: 0 0 20px;
    padding: 10px;
    overflow: auto;
    background: #000;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    line-height: 1.35;
}

.updaterequest-debug pre {
    margin: 0;
    color: inherit;
    font: inherit;
    white-space: pre-wrap;
    word-break: break-word;
}

.updaterequest-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.8);
}

.updaterequest-modal[hidden] {
    display: none;
}

.updaterequest-modal__dialog {
    box-sizing: border-box;
    width: 100%;
    max-width: 980px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--color-field-border);
    border-radius: 8px;
    background: #2A008D;
    color: var(--color-text-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.updaterequest-modal__close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #110046;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.updaterequest-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.updaterequest-preview-card {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
}

.updaterequest-preview-label {
    margin-bottom: 6px;
    font-weight: 700;
}

.updaterequest-preview-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 60vh;
    margin: 6px 0;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
}

.updaterequest-preview-name {
    margin-top: 6px;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .updaterequest-modal {
        padding: 8px;
    }

    .updaterequest-modal__dialog {
        max-height: calc(100vh - 16px);
        padding: 14px;
    }

    .updaterequest-preview-grid {
        grid-template-columns: 1fr;
    }

    .updaterequest-preview-image {
        max-height: none;
    }

    .updaterequest-doc-actions .btn {
        flex: 0 0 auto;
    }
}

.btn-small {
    padding: 4px 10px;
    font-size: 13px;
}

/* Страница решения визирующего пользователя */

.newkeyconfirm-page {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.newkeyconfirm-card {
    box-sizing: border-box;
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid var(--color-field-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.newkeyconfirm-card h3 {
    margin: 0 0 10px;
    color: var(--color-link-underline);
    font-size: 18px;
}

.newkeyconfirm-request-no {
    font-size: 20px;
    font-weight: 700;
}

.newkeyconfirm-muted {
    color: var(--color-hint);
    font-size: 14px;
}

.newkeyconfirm-applicant {
    margin-bottom: 10px;
    line-height: 1.5;
}

.newkeyconfirm-comment {
    font-style: italic;
}

.newkeyconfirm-table td {
    padding: 5px 0;
}

.newkeyconfirm-docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.newkeyconfirm-doc-block {
    min-width: 0;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
}

.newkeyconfirm-doc-title {
    margin-bottom: 6px;
    font-weight: 700;
}

.newkeyconfirm-preview {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    margin: 8px 0;
    border-radius: 4px;
    background: #fff;
    object-fit: contain;
}

.newkeyconfirm-decision {
    margin-bottom: 30px;
}

.newkeyconfirm-captcha {
    width: 100%;
    margin: 0 0 16px;
}

.newkeyconfirm-captcha .smart-captcha {
    width: 100%;
}

.newkeyconfirm-actions[hidden],
#newkeyconfirm-captcha-hint[hidden] {
    display: none;
}

.newkeyconfirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.newkeyconfirm-action-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newkeyconfirm-action-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 90px;
    padding: 8px 10px;
    border: 1px solid var(--color-field-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-light);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.newkeyconfirm-action-form .btn {
    width: 100%;
    margin-top: auto;
}

.btn-approve {
    background: #1f7a3a;
}

.btn-approve:hover {
    background: #249446;
}

.btn-reject {
    background: #8e2b2b;
}

.btn-reject:hover {
    background: #a83232;
}

/* Яркие цвета текста кнопок решения на /newkeyconfirm */
.newkeyconfirm-page-body .btn.btn-approve,
.newkeyconfirm-page-body .btn.btn-approve:hover {
    color: #a8ff3c;
}

.newkeyconfirm-page-body .btn.btn-reject,
.newkeyconfirm-page-body .btn.btn-reject:hover {
    color: #ff8c00;
}

/* Список заявок */

.list-page {
    width: 100%;
}

.list-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.list-head h2 {
    margin-bottom: 4px;
}

.list-view-toggle {
    display: flex;
    gap: 6px;
}

.list-filters {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin: 16px 0 10px;
    padding: 12px;
    border: 1px solid var(--color-field-border);
    border-radius: 8px;
}

.list-filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--color-hint);
    font-size: 13px;
}

.list-filters input,
.list-filters select {
    box-sizing: border-box;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid var(--color-field-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-light);
    font-family: inherit;
    font-size: 14px;
}

.list-filter-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.list-sort-line {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 14px;
    font-size: 14px;
}

.list-sort-line a {
    color: var(--color-link);
}

.list-sort-active {
    font-weight: 700;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.list-tile {
    box-sizing: border-box;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--color-field-border);
    border-radius: 8px;
    color: #fff;
}

.list-tile-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.list-tile-no {
    font-size: 18px;
    font-weight: 700;
}

.list-tile-name {
    margin: 10px 0 6px;
    font-size: 17px;
}

.list-tile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.list-tile-dates {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
}

.list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.list-actions .btn {
    margin: 0;
}

.list-action-form {
    display: inline;
    margin: 0;
}

.list-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.list-table th,
.list-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    text-align: left;
    vertical-align: top;
}

.list-table th {
    color: var(--color-hint);
    font-weight: normal;
    white-space: nowrap;
}

.list-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.list-date {
    white-space: nowrap;
    font-size: 12px;
}

.rStatus {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    color: #fff;
    line-height: 1.3;
}

.s_otvydpr { background-color: #600 !important; }
.s_prsozd { background-color: #060 !important; }
.s_od { background-color: #a8c509 !important; }
.s_nar { background-color: #425b95 !important; }
.s_np { background-color: #005d58 !important; }
.s_npz { background-color: #6b3e6e !important; }
.s_nprz { background-color: #23a2af !important; }
.s_nov { background-color: #555 !important; }
.s_nek { background-color: #8c6102 !important; }
.s_kv { background-color: #040 !important; }
.s_otl { background-color: #900 !important; }
.s_otkl { background-color: #900 !important; }
.s_nu { background-color: #1f0f50 !important; }
.s_ns { background-color: #222 !important; }
.s_zak { background-color: #000 !important; color: #DBE31B; }

.list-pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
    margin: 20px 0;
    font-size: 14px;
}

.list-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.78);
}

.list-modal[hidden] {
    display: none;
}

.list-modal__dialog {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 980px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 20px;
    border-radius: 8px;
    background: #2A008D;
    color: var(--color-text-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.list-modal__close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #110046;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.list-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.list-detail-no {
    margin-bottom: 5px;
    font-size: 21px;
    font-weight: 700;
}

.list-detail-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.list-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.list-detail h4 {
    margin: 16px 0 8px;
    color: var(--color-link-underline);
}

.list-log-wrap {
    max-height: 45vh;
    overflow: auto;
}

.list-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.list-log-table th,
.list-log-table td {
    padding: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: left;
    vertical-align: top;
}

.list-log-table th {
    color: var(--color-hint);
    font-weight: normal;
}

.list-log-date {
    white-space: nowrap;
}

.list-log-ua {
    max-width: 220px;
    overflow-wrap: anywhere;
    color: var(--color-hint);
}

@media (max-width: 900px) {
    .list-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .list-filter-actions {
        grid-column: 1 / -1;
    }

    .list-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .list-filters {
        grid-template-columns: 1fr;
    }

    .list-grid {
        grid-template-columns: 1fr;
    }

    .list-actions .btn {
        flex: 1 1 auto;
    }

    .list-table th,
    .list-table td {
        padding: 6px;
    }
}

@media (max-width: 720px) {
    .newkeyconfirm-card {
        padding: 13px 14px;
    }

    .newkeyconfirm-docs,
    .newkeyconfirm-actions {
        grid-template-columns: 1fr;
    }

    .newkeyconfirm-table,
    .newkeyconfirm-table tbody,
    .newkeyconfirm-table tr,
    .newkeyconfirm-table td {
        display: block;
        width: 100%;
    }

    .newkeyconfirm-table tr {
        padding: 7px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .newkeyconfirm-table .tdh {
        width: auto;
        padding-bottom: 2px;
    }

    .newkeyconfirm-preview {
        max-height: none;
    }
}


/* Заголовки групп в select */
select optgroup,
.tFormElement select.fel optgroup,
.updaterequest-form select optgroup {
    background-color: #e5e5e5;
    color: #1f5fbf;
    font-weight: 700;
    font-style: normal;
}

/* Список заявок: шрифт, компактная шапка, плитки и оверлеи */
.list-page-body {
    font-family: 'Iosevka Light', monospace;
    font-size: 14px;
    font-weight: 300;
}

.list-page-body :where(:not(i):not([class*="fa-"])) {
    font-family: 'Iosevka Light', monospace;
    font-size: 14px;
    font-weight: 300;
}

.list-page-body h2,
.list-page-body h3,
.list-page-body h4,
.list-page-body button,
.list-page-body input,
.list-page-body select,
.list-page-body textarea,
.list-page-body .btn,
.list-page-body .btn-small,
.list-page-body .list-tile-no,
.list-page-body .list-tile-name,
.list-page-body .list-tile-meta,
.list-page-body .list-tile-dates,
.list-page-body .list-filters label,
.list-page-body .list-date,
.list-page-body .list-sort-line,
.list-page-body .list-pagination,
.list-page-body .list-table,
.list-page-body .list-table th,
.list-page-body .list-table td {
    font-family: 'Iosevka Light', monospace;
    font-size: 14px;
}

.list-page-body .btn,
.list-page-body .btn-small {
    font-weight: 300;
}

.list-page-body .header {
    min-height: 50px;
    height: 50px;
}

.list-page-body .header .header_c {
    height: 50px;
}

.list-page-body .header--list .header_c {
    justify-content: center;
}

.list-page-body .header__brand {
    font-size: 14px;
    font-weight: 300;
}

.list-page-body .list-tile {
    position: relative;
    line-height: 1.2;
}

.list-page-body .list-tile-top {
    padding-right: 120px;
}

.list-page-body .list-tile-no {
    font-size: 16px;
    font-weight: 700;
}

.list-page-body .list-tile-date-value {
    font-size: 11px;
}

.list-page-body .list-tile .rStatus {
    background: #444 !important;
    color: #FFF;
    text-shadow: 1px 1px 1px #000;
    box-shadow: 1px 1px 2px #000;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    margin: 0;
}

.list-page-body .list-actions--icons {
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.list-page-body .list-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    background-image: none !important;
    color: inherit;
    line-height: 1;
    cursor: pointer;
}

.list-page-body .list-icon-btn i {
    font-size: 25px !important;
    text-shadow: 0px 0px 5px #FFF;
}

.list-page-body a.list-icon-btn:hover {
    background-size: 0 0 !important;
}

.list-page-body .list-reset-btn {
    background: #FF5722;
    border-color: #FF5722;
}

.list-page-body .list-action-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.list-page-body .list-confirm-link {
    font-size: 14px;
    white-space: nowrap;
}

.list-page-body .list-history-head {
    margin-bottom: 12px;
}

.list-page-body .list-modal__dialog--history {
    width: 95vw;
    max-width: 95vw;
}

.list-history .list-log-table {
    table-layout: auto;
}

.list-history .list-log-table th:nth-child(1),
.list-history .list-log-table td:nth-child(1),
.list-history .list-log-table th:nth-child(3),
.list-history .list-log-table td:nth-child(3) {
    width: 1%;
    white-space: nowrap;
}

.list-history .list-log-table th:nth-child(4),
.list-history .list-log-table td:nth-child(4) {
    width: 20%;
}

.list-history .list-log-date,
.list-history .list-log-ip,
.list-history .list-log-ua {
    font-size: 10px;
}

.list-history .list-log-ua {
    max-width: none;
}

.list-page-body .list-table .list-date div + div {
    margin-top: 2px;
}

.list-page-body .list-table th {
    text-align: center;
}

.list-page-body .list-table td {
    padding: 4px 6px;
    line-height: 1.2;
}

.list-page-body .list-table td.list-table-no {
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.list-page-body .list-table-status,
.list-page-body .list-table-system,
.list-page-body .list-table-actions {
    text-align: center;
}

.list-page-body .list-table-actions .list-actions--icons {
    justify-content: center;
}

.list-page-body .list-table .list-date {
    font-size: 10px;
}

.list-page-body .list-table .newkeyconfirm-muted {
    font-size: 13px;
    font-style: italic;
}

.list-page-body .list-table td.list-table-no,
.list-page-body .list-table td.list-table-status,
.list-page-body .list-table td.list-table-system,
.list-page-body .list-table td.list-table-actions {
    vertical-align: middle;
}

.list-page-body .list-table-status .rStatus {
    text-shadow: 1px 1px 1px #000;
    box-shadow: 1px 1px 2px #000;
}

.list-page-body .list-filters select option,
.list-page-body .list-filters select optgroup {
    background: #2A008D;
    color: #FFF;
}
