

/* Start:/local/components/so-tech-malish/so-modalw/templates/so-mon-system/so_modalw.css?17666017369163*/
/* ================================================
   SO-TECH MODAL WINDOW SYSTEM – BASE + LIGHT
================================================== */

/* -------------------------
   OVERLAY
-------------------------- */

.srv-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}

.srv-modal-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

/* блокируем скролл, когда есть открытое окно */
.srv-modal-open {
    overflow: hidden;
}

/* -------------------------
   WINDOW (BASE)
-------------------------- */

.srv-modal {
    position: relative;
    margin: 0 16px;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
    overflow: hidden;
    transform: scale(0.97) translateY(10px);
    opacity: 0;
    transition:
        transform 0.2s ease-out,
        opacity 0.2s ease-out;
}

.srv-modal-overlay--visible .srv-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Размеры по SIZE */

.srv-modal--size-small {
    width: 100%;
    max-width: 360px;
}

.srv-modal--size-medium {
    width: 100%;
    max-width: 420px;
}

.srv-modal--size-large {
    width: 100%;
    max-width: 560px;
}

.srv-modal--size-wide {
    width: 90%;
    max-width: 780px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* alias для старого класса, если вдруг где-то есть */
.srv-modal.srv-modal--wide {
    width: 90%;
    max-width: 780px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* fullscreen */
.srv-modal--size-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
}

/* LIGHT THEME window */
body.theme-light .srv-modal {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

/* Хэндл ресайза */
.srv-modal-resize-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    right: 4px;
    bottom: 4px;
    cursor: se-resize;
    background: linear-gradient(
        135deg,
        transparent 0,
        transparent 50%,
        rgba(148, 163, 184, 0.7) 51%,
        rgba(148, 163, 184, 1) 100%
    );
    opacity: 0.9;
}

/* -------------------------
   HEADER
-------------------------- */

.srv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);

/*
    background-image: url('/local/components/so-tech-malish/so-modalw/templates/so-mon-system/favicon.ico');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 24px 24px;
    
    /* Добавляем отступ слева для текста */
/*    padding-left: 32px; /* 24px + 8px отступ */
/*    min-height: 24px; /* Минимальная высота под картинку */
    
    /* Дополнительные стили для текста */
/*    display: inline-block; /* или block, flex в зависимости от контекста */
/*    line-height: 24px; /* Выравнивание текста по вертикали */

}

body.theme-light .srv-modal-header {
    border-bottom-color: #e5e7eb;
}

.srv-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* close button */
.srv-modal-close {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding: 0;
    color: inherit;
    transition:
        background-color 0.15s ease,
        transform 0.1s ease;
}

body.theme-light .srv-modal-close:hover {
    background: rgba(15, 23, 42, 0.06);
}

.srv-modal-close:active {
    transform: scale(0.92);
}

/* -------------------------
   BODY
-------------------------- */

.srv-modal-body {
    padding: 10px 18px 8px;
}

.srv-modal-body form {
    margin: 0;
}

.srv-modal-body label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.srv-modal-body label span,
.srv-modal-body label b {
    font-weight: 500;
}

.srv-modal-body input[type="text"],
.srv-modal-body input[type="number"],
.srv-modal-body input[type="date"],
.srv-modal-body textarea,
.srv-modal-body select {
    width: 100%;
    margin-top: 4px;
    box-sizing: border-box;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: transparent;
    color: inherit;
}

body.theme-light .srv-modal-body input[type="text"],
body.theme-light .srv-modal-body input[type="number"],
body.theme-light .srv-modal-body input[type="date"],
body.theme-light .srv-modal-body textarea,
body.theme-light .srv-modal-body select {
    background: #f9fafb;
    border-color: #d1d5db;
}

.srv-modal-body input[type="text"]:focus,
.srv-modal-body input[type="number"]:focus,
.srv-modal-body input[type="date"]:focus,
.srv-modal-body textarea:focus,
.srv-modal-body select:focus {
    outline: none;
    border-color: #0A84FF;
    box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.5);
}

/* checkbox */
.srv-modal-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

.srv-modal-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* -------------------------
   FOOTER
-------------------------- */

.srv-modal-footer {
    padding: 10px 18px 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

body.theme-light .srv-modal-footer {
    border-top-color: #e5e7eb;
}

.srv-modal-btn {
    min-width: 90px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.1s ease;
}

/* PRIMARY */
.srv-modal-btn-primary {
    background: #0A84FF;
    color: #ffffff;
    box-shadow: 0 0 0 rgba(10, 132, 255, 0);
}

.srv-modal-btn-primary:hover {
    background: #006fd1;
    box-shadow: 0 0 12px rgba(10, 132, 255, 0.75);
}

.srv-modal-btn-primary:active {
    transform: scale(0.96);
}

/* SECONDARY – light */
body.theme-light .srv-modal-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.srv-modal-btn-secondary:hover {
    opacity: 0.9;
}

.srv-modal-btn-secondary:active {
    transform: scale(0.96);
}

/* -------------------------
   PASSPORT GRID / TABS
-------------------------- */

.srv-passport-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    font-size: 13px;
}

.srv-passport-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.srv-passport-row:last-child {
    border-bottom: none;
}

.srv-passport-label {
    flex: 0 0 130px;
    font-weight: 600;
    opacity: 0.8;
}

.srv-passport-value {
    flex: 1 1 auto;
    text-align: right;
    word-break: break-all;
}

/* tabs */
.srv-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.srv-tab {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    white-space: nowrap;
}

.srv-tab--active {
    opacity: 1;
    background: rgba(10, 132, 255, 0.22);
    color: #ffffff;
}

body.theme-light .srv-tab--active {
    color: #0f172a;
}

.srv-tab-panels {
    margin-top: 6px;
    min-height: 300px;
}

.srv-tab-panel {
    display: none;
}

.srv-tab-panel--active {
    display: block;
}

/* wide modal — тело/футер */
.srv-modal--size-wide .srv-modal-body,
.srv-modal.srv-modal--wide .srv-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 22px;
}

.srv-modal--size-wide .srv-modal-footer,
.srv-modal.srv-modal--wide .srv-modal-footer {
    flex-shrink: 0;
}

/* -------------------------
   MOBILE
-------------------------- */

@media (max-width: 600px) {
    .srv-modal--size-wide,
    .srv-modal.srv-modal--wide {
        max-width: 100%;
        margin: 0 8px;
    }
    .srv-tabs {
        overflow-x: auto;
    }
}

@media (max-width: 600px) {
    .srv-passport-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .srv-passport-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .srv-modal {
        max-width: 100%;
        margin: 0 12px;
        border-radius: 14px;
    }
    .srv-modal-header,
    .srv-modal-body,
    .srv-modal-footer {
        padding-left: 14px;
        padding-right: 14px;
    }
    .srv-modal-title {
        font-size: 15px;
    }
}

/* End */


/* Start:/local/components/so-tech-malish/so-modalw/templates/so-mon-system/login_form.css?17661111204892*/
/* ============================
   LOGIN MODAL FORM (SO-TECH)
   Работает с разметкой:
   .srv-modal-overlay[data-so-modal-id="loginForm"] ...
============================ */

/* Каркас формы авторизации внутри модального окна */
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-form {
    max-width: 380px;
    margin: 0 auto;
}

/* Заголовок формы */
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
}

/* Строка поля (подпись + инпут) */
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field {
    margin-bottom: 12px;
}

.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    opacity: 0.85;
}

/* Поля ввода: логин, пароль и др. */
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field input[type="text"],
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field input[type="password"],
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field input[type="email"] {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 14px;
    color: inherit;
    outline: none;
    box-sizing: border-box;
    background: transparent;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

/* Фокус на поле */
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field input[type="text"]:focus,
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field input[type="password"]:focus,
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field input[type="email"]:focus {
    border-color: #0A84FF;
    box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.4);
}

/* Строка: "запомнить меня" + "забыли пароль" */
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    margin-bottom: 12px;
    gap: 8px;
}

/* Чекбокс "Запомнить меня" */
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    opacity: 0.9;
}

.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-remember input[type="checkbox"] {
    margin: 0;
}

/* Ссылка "Забыли пароль?" */
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-forgot-link {
    font-size: 13px;
    text-decoration: none;
    color: #0A84FF;
    white-space: nowrap;
}

.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-forgot-link:hover {
    text-decoration: underline;
}

/* Блок с кнопкой */
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-actions {
    margin-top: 4px;
    text-align: right;
}

/* Кнопка "Войти" */
.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-submit {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #0A84FF, #00C2FF);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.45);
}

.srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-submit:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.35);
}

/* ===== Мобильная адаптация ===== */

@media (max-width: 480px) {
    .srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-form {
        max-width: 100%;
    }

    .srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-title {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field input[type="text"],
    .srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field input[type="password"],
    .srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-field input[type="email"] {
        font-size: 16px;      /* чтобы не было авто-зума */
        padding: 11px 12px;
    }

    .srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-submit {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .srv-modal-overlay[data-so-modal-id="loginForm"] .so-auth-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* End */


/* Start:/local/components/so-tech-malish/so-modalw/templates/so-mon-system/so_modalw_dark.css?17661111204601*/
/* ================================================
   SO-TECH MODAL WINDOW – DARK THEME (NEW STYLE)
   Визуально приближаем к so-auth-card
================================================== */

body.theme-dark .srv-modal {
    background: #151515; /* как so-auth-card */
    color: #f5f5f5;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

/* Хедер модалки */
body.theme-dark .srv-modal-header {
   /* background-color: #000212;
   */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 16px;
}

/* Заголовок внутри хедера (если есть .srv-modal-title) */
body.theme-dark .srv-modal-title {
    font-size: 18px;
    font-weight: 600;
}

/* Кнопка закрытия */
body.theme-dark .srv-modal-close {
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    transition: background 0.2s ease, transform 0.15s ease;
}

body.theme-dark .srv-modal-close:hover {
    background: rgba(148, 163, 184, 0.20);
    transform: scale(1.05);
}

/* Тело модалки */
body.theme-dark .srv-modal-body {
    background: transparent;
    padding: 18px 16px 16px;
}

/* Футер модалки (кнопки действий) */
body.theme-dark .srv-modal-footer {
    border-top: 1px solid rgba(31, 41, 55, 0.8);
    padding: 12px 16px 14px;
    background: #151515;
}

/* Инпуты/селекты/textarea внутри модалки в тёмной теме */
body.theme-dark .srv-modal-body input[type="text"],
body.theme-dark .srv-modal-body input[type="password"],
body.theme-dark .srv-modal-body input[type="email"],
body.theme-dark .srv-modal-body input[type="number"],
body.theme-dark .srv-modal-body select,
body.theme-dark .srv-modal-body textarea {
    width: 100%;
    box-sizing: border-box;
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f5f5f5;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}

body.theme-dark .srv-modal-body input[type="text"]:focus,
body.theme-dark .srv-modal-body input[type="password"]:focus,
body.theme-dark .srv-modal-body input[type="email"]:focus,
body.theme-dark .srv-modal-body input[type="number"]:focus,
body.theme-dark .srv-modal-body select:focus,
body.theme-dark .srv-modal-body textarea:focus {
    border-color: #0A84FF;
    box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.5);
}

/* Подписи к полям, чтобы были в одном стиле с so-auth-field label */
body.theme-dark .srv-modal-body label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #e5e7eb;
}

/* Кнопки в модалке */
body.theme-dark .srv-modal-btn-primary,
body.theme-dark .srv-modal-footer .srv-modal-btn-primary {
    background: #0A84FF;
    color: #ffffff;
    border-radius: 8px;
    border: none;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.1s ease;
}

body.theme-dark .srv-modal-btn-primary:hover,
body.theme-dark .srv-modal-footer .srv-modal-btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

body.theme-dark .srv-modal-btn-secondary,
body.theme-dark .srv-modal-footer .srv-modal-btn-secondary {
    background: #111827;
    color: #e5e7eb;
    border-radius: 8px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 9px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

body.theme-dark .srv-modal-btn-secondary:hover,
body.theme-dark .srv-modal-footer .srv-modal-btn-secondary:hover {
    background: #1f2937;
    border-color: rgba(75, 85, 99, 1);
}

/* Ссылки внутри модалки, в стиле so-auth-link */
body.theme-dark .srv-modal-body a,
body.theme-dark .srv-modal-footer a {
    font-size: 13px;
    opacity: 0.85;
    text-decoration: none;
    color: #d8d8d8;
    transition: all .3s ease;
}

body.theme-dark .srv-modal-body a:hover,
body.theme-dark .srv-modal-footer a:hover {
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* Активные табы в тёмной теме (чуть мягче) */
body.theme-dark .srv-tab--active {
    background: rgba(37, 99, 235, 0.35);
    color: #e5e7eb;
}

/* Грид паспорта — границы в тёмной теме */
body.theme-dark .srv-passport-row {
    border-bottom-color: rgba(55, 65, 81, 0.7);
}

/* End */
/* /local/components/so-tech-malish/so-modalw/templates/so-mon-system/so_modalw.css?17666017369163 */
/* /local/components/so-tech-malish/so-modalw/templates/so-mon-system/login_form.css?17661111204892 */
/* /local/components/so-tech-malish/so-modalw/templates/so-mon-system/so_modalw_dark.css?17661111204601 */
