/* SNG Kit — visual 1:1 with Sobhani/New UI/controls-theme (2).html
   Theme switch: html[data-theme=dark] (not .dark).
   JS/DataTable contracts stay legacy (hasIndex, searchableFooter, bindKitToolbar). */

.sng-kit-page,
.sng-kit-sheet,
.sng-kit-modal {
    --kit-purple: #bd00ff;
    --kit-ice: #00e5ff;
    --kit-pink: #ff2a85;
    --kit-green: #00e676;
    --kit-red: #ff1744;
    --kit-text: #1e1b4b;
    --kit-head: #3b2c6f;
    --kit-muted: #5c4e8c;
}

/* ارتفاع یکسان اینپوت / سلکت بومی / Select2 در همهٔ سطح‌های کیت */
.sng-kit-page,
.sng-kit-sheet,
.sng-kit-modal,
.sng-kit-dash {
    --sng-kit-control-font: 0.85rem;
    --sng-kit-control-lh: 1.5;
    --sng-kit-control-pad-y: 1rem;
    --sng-kit-control-pad-x: 1.25rem;
    --sng-kit-control-radius: 1.15rem;
    --sng-kit-control-h: calc((var(--sng-kit-control-pad-y) * 2) + (var(--sng-kit-control-font) * var(--sng-kit-control-lh)) + 2px);
}

.sng-kit-page {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(189, 0, 255, 0.03);
    border-radius: 2.5rem;
    padding: 1.5rem 1.5rem 2rem;
}

html[data-theme="dark"] .sng-kit-page {
    background: rgba(10, 11, 28, 0.78);
    border: 1px solid rgba(189, 0, 255, 0.2);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 20px rgba(189, 0, 255, 0.1);
}

.sng-kit-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sng-kit-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    direction: ltr;
    overflow: visible;
}

.sng-kit-toolbar-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.sng-kit-toolbar-search {
    position: relative;
    flex: 1 1 15rem;
    max-width: 280px;
    direction: rtl;
}

    .sng-kit-toolbar-search i {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--kit-purple);
        pointer-events: none;
        font-size: 1rem;
    }

html[data-theme="dark"] .sng-kit-toolbar-search i {
    color: var(--kit-ice);
}

.sng-kit-toolbar-search .sng-kit-input,
.sng-kit-toolbar .dataTables_filter input {
    width: 100%;
    padding: 1rem 2.75rem 1rem 1rem;
    height: auto;
    min-height: 48px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.4);
    /* border: 1px solid rgba(255, 255, 255, 0.5); */
    border: 1px solid rgba(189, 0, 255, 0.35);
    color: #0f172a;
    margin: 0 !important;
    box-sizing: border-box;
}

html[data-theme="dark"] .sng-kit-toolbar-search .sng-kit-input,
html[data-theme="dark"] .sng-kit-toolbar .dataTables_filter input {
    background: rgba(5, 6, 15, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sng-kit-toolbar-search .sng-kit-input:focus,
.sng-kit-toolbar .dataTables_filter input:focus {
    background: #fff;
    border-color: var(--kit-purple);
    box-shadow: 0 0 12px rgba(189, 0, 255, 0.1);
    outline: none;
}

html[data-theme="dark"] .sng-kit-toolbar-search .sng-kit-input:focus,
html[data-theme="dark"] .sng-kit-toolbar .dataTables_filter input:focus {
    border-color: var(--kit-ice);
    background: rgba(15, 17, 38, 0.85);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.sng-kit-toolbar .dt-buttons {
    display: flex !important;
    float: none !important;
    position: relative;
    gap: 0.75rem;
    margin: 0 !important;
}

.sng-kit-toolbar div.dt-buttons > .dt-button {
    float: none !important;
    margin: 0 !important;
    overflow: hidden;
}

.sng-kit-toolbar .buttons-excel {
    order: 0;
}

.sng-kit-toolbar .buttons-print {
    order: 1;
}

.sng-kit-toolbar .buttons-colvis,
.sng-kit-toolbar .buttons-columnVisibility {
    order: 2;
}

.sng-kit-toolbar div.dt-buttons > .dt-button.sng-kit-tool-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    white-space: nowrap;
    background-image: none !important;
    filter: none !important;
    box-shadow: none !important;
}

.sng-kit-toolbar div.dt-buttons > .dt-button.sng-kit-tool-excel {
    background: var(--bg-success-soft) !important;
    color: var(--c-success) !important;
    border: 1px solid color-mix(in srgb, var(--c-success) 40%, transparent) !important;
    border-radius: 12px;
}

    .sng-kit-toolbar div.dt-buttons > .dt-button.sng-kit-tool-excel:hover:not(.disabled) {
        background: var(--bg-success-soft) !important;
        color: var(--c-success) !important;
        border-color: var(--c-success) !important;
        box-shadow: var(--shadow-sm) !important;
    }

.sng-kit-toolbar div.dt-buttons > .dt-button.sng-kit-tool-print {
    background: var(--bg-info-soft) !important;
    color: var(--c-info) !important;
    border: 1px solid color-mix(in srgb, var(--c-info) 40%, transparent) !important;
    border-radius: 12px;
}

    .sng-kit-toolbar div.dt-buttons > .dt-button.sng-kit-tool-print:hover:not(.disabled) {
        background: var(--bg-info-soft) !important;
        color: var(--c-info) !important;
        border-color: var(--c-info) !important;
        box-shadow: var(--shadow-sm) !important;
    }

.sng-kit-toolbar div.dt-buttons > .dt-button.sng-kit-tool-colvis {
    background: var(--bg-primary-soft) !important;
    color: var(--c-primary) !important;
    border: 1px solid color-mix(in srgb, var(--c-primary) 40%, transparent) !important;
}

    .sng-kit-toolbar div.dt-buttons > .dt-button.sng-kit-tool-colvis:hover:not(.disabled) {
        background: var(--bg-primary-soft) !important;
        color: var(--c-primary) !important;
        border-color: var(--c-primary) !important;
        box-shadow: var(--shadow-sm) !important;
    }

.sng-kit-toolbar .dataTables_length {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

    .sng-kit-toolbar .dataTables_length label {
        display: flex;
        align-items: center;
        margin: 0;
        font-size: 0;
        font-weight: 800;
        color: transparent;
    }

.sng-kit-toolbar .dataTables_filter {
    float: none !important;
    text-align: right !important;
    margin: 0 !important;
    width: 100%;
    position: relative;
}

    .sng-kit-toolbar .dataTables_filter label {
        display: block;
        width: 100%;
        margin: 0;
        font-size: 0;
        color: transparent;
    }

body.shell-layout-body div.dt-button-background {
    background: transparent !important;
    z-index: 1115;
}

body.shell-layout-body div.dt-button-collection {
    min-width: 12rem;
    width: auto;
    padding: 1rem !important;
    border-radius: 1rem !important;
    background: var(--bg-card) !important;
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-main) !important;
    box-shadow: var(--shadow-card) !important;
    max-height: min(70vh, 28rem);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 1120;
}

html[data-theme="dark"] body.shell-layout-body div.dt-button-collection {
    background: var(--bg-card) !important;
    border-color: var(--border-main) !important;
    box-shadow: var(--shadow-card) !important;
}

body.shell-layout-body div.dt-button-collection .dt-button {
    display: flex !important;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 0 0 0.35rem !important;
    padding: 0.5rem 0.65rem 0.5rem 2.25rem !important;
    border: 0 !important;
    border-radius: 0.75rem !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
    text-align: right !important;
    justify-content: flex-end;
    white-space: normal;
    float: none !important;
}

html[data-theme="dark"] body.shell-layout-body div.dt-button-collection .dt-button {
    color: var(--text-main) !important;
}

body.shell-layout-body div.dt-button-collection .dt-button:hover:not(.disabled) {
    background: var(--bg-primary-soft) !important;
    color: var(--c-primary) !important;
    border: 0 !important;
}

body.shell-layout-body div.dt-button-collection .dt-button-active:after {
    right: auto !important;
    left: 0.75rem !important;
}

.sng-kit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sng-kit-btn.hidden {
    display: none;
}

    .sng-kit-btn:active {
        transform: scale(0.97);
    }

.sng-kit-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.sng-kit-btn-sep {
    width: 1.5px;
    height: 1.25rem;
    background: currentColor;
    opacity: 0.3;
    align-self: center;
}

.sng-kit-btn-create {
    background: linear-gradient(135deg, rgba(189, 0, 255, 0.08), rgba(189, 0, 255, 0.18));
    color: var(--kit-purple);
    border-color: rgba(189, 0, 255, 0.4);
    box-shadow: 0 4px 15px rgba(189, 0, 255, 0.15);
}

html[data-theme="dark"] .sng-kit-btn-create {
    background: rgba(189, 0, 255, 0.08);
    border-color: rgba(189, 0, 255, 0.7);
    box-shadow: 0 0 18px rgba(189, 0, 255, 0.4);
}

.sng-kit-btn-create:hover {
    background: var(--kit-purple);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(189, 0, 255, 0.5);
}

.sng-kit-btn-save {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 230, 118, 0.18));
    color: #1b5e20;
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.15);
}

html[data-theme="dark"] .sng-kit-btn-save {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.7);
    color: var(--kit-green);
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.4);
}

.sng-kit-btn-save:hover {
    background: var(--kit-green);
    color: #03030a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.5);
}

.sng-kit-btn-edit {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 229, 255, 0.18));
    color: #00a8cc;
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
}

html[data-theme="dark"] .sng-kit-btn-edit {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.7);
    color: var(--kit-ice);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}

.sng-kit-btn-edit:hover {
    background: var(--kit-ice);
    color: #03030a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5);
}

.sng-kit-btn-ok {
    background: var(--kit-purple);
    color: #fff;
    border-color: var(--kit-purple);
    box-shadow: 0 4px 12px rgba(189, 0, 255, 0.25);
}

html[data-theme="dark"] .sng-kit-btn-ok {
    background: var(--kit-ice);
    color: #03030a;
    border-color: var(--kit-ice);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.45);
}

.sng-kit-btn-ok:hover {
    opacity: 0.92;
}

.sng-kit-btn-danger {
    background: var(--bg-danger-soft);
    color: var(--c-danger);
    border-color: color-mix(in srgb, var(--c-danger) 40%, transparent);
}

    .sng-kit-btn-danger:hover {
        background: var(--c-danger);
        color: #fff;
    }

html[data-theme="dark"] .sng-kit-btn-danger:hover {
    color: #0f172a;
}

.sng-kit-btn-warn {
    background: var(--bg-warning-soft);
    color: var(--c-warning);
    border-color: color-mix(in srgb, var(--c-warning) 40%, transparent);
}

    .sng-kit-btn-warn:hover {
        background: var(--c-warning);
        color: #fff;
    }

html[data-theme="dark"] .sng-kit-btn-warn:hover {
    color: #0f172a;
}

.sng-kit-btn-ghost {
    background: rgba(255, 255, 255, 0.5);
    color: var(--kit-muted);
    border-color: rgba(189, 0, 255, 0.15);
}

html[data-theme="dark"] .sng-kit-btn-ghost {
    background: rgba(10, 11, 28, 0.8);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.08);
}

.sng-kit-btn-ghost:hover {
    color: var(--kit-text);
    border-color: var(--kit-purple);
}

html[data-theme="dark"] .sng-kit-btn-ghost:hover {
    color: #fff;
    border-color: var(--kit-ice);
}

.sng-kit-tool-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 1.2rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

    .sng-kit-tool-btn:active {
        transform: scale(0.9);
    }

.sng-kit-tool-excel {
    background: var(--bg-success-soft);
    color: var(--c-success);
    border-color: color-mix(in srgb, var(--c-success) 40%, transparent);
}

    .sng-kit-tool-excel:hover {
        background: var(--bg-success-soft);
        color: var(--c-success);
        border-color: var(--c-success);
        box-shadow: var(--shadow-sm);
    }

.sng-kit-tool-print {
    background: var(--bg-info-soft);
    color: var(--c-info);
    border-color: color-mix(in srgb, var(--c-info) 40%, transparent);
}

    .sng-kit-tool-print:hover {
        background: var(--bg-info-soft);
        color: var(--c-info);
        border-color: var(--c-info);
        box-shadow: var(--shadow-sm);
    }

.sng-kit-tool-colvis {
    background: var(--bg-primary-soft);
    color: var(--c-primary);
    border-color: color-mix(in srgb, var(--c-primary) 40%, transparent);
}

    .sng-kit-tool-colvis:hover {
        background: var(--bg-primary-soft);
        color: var(--c-primary);
        border-color: var(--c-primary);
        box-shadow: var(--shadow-sm);
    }

.sng-kit-tool-wrap {
    position: relative;
}

.sng-kit-select {
    appearance: none;
    -webkit-appearance: none;
    height: 48px;
    min-width: 8rem;
    padding: 10px 14px 10px 32px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    outline: none;
    direction: rtl;
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--kit-text);
    border: 1px solid rgba(189, 0, 255, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23bd00ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 10px 8px;
    box-sizing: border-box;
}

html[data-theme="dark"] .sng-kit-select {
    background-color: rgba(10, 11, 28, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300e5ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

.sng-kit-select:focus {
    border-color: var(--kit-purple);
    box-shadow: 0 0 8px rgba(189, 0, 255, 0.12);
}

html[data-theme="dark"] .sng-kit-select:focus {
    border-color: var(--kit-ice);
}

.sng-kit-input {
    width: 100%;
    height: var(--sng-kit-control-h, 3.4rem);
    min-height: var(--sng-kit-control-h, 3.4rem);
    padding: var(--sng-kit-control-pad-y, 1rem) var(--sng-kit-control-pad-x, 1.25rem);
    border-radius: var(--sng-kit-control-radius, 1.15rem);
    font-size: var(--sng-kit-control-font, 0.85rem);
    line-height: var(--sng-kit-control-lh, 1.5);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(189, 0, 255, 0.35);
    color: #0f172a;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

select.sng-kit-input:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    direction: rtl;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-left: calc(var(--sng-kit-control-pad-x, 1.25rem) + 1.1rem);
    background-color: rgba(255, 255, 255, 0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23bd00ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 10px 8px;
}

html[data-theme="dark"] select.sng-kit-input:not([multiple]) {
    background-color: rgba(5, 6, 15, 0.7);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300e5ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

select.sng-kit-input:not([multiple]):focus {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23bd00ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 10px 8px;
}

html[data-theme="dark"] select.sng-kit-input:not([multiple]):focus {
    background-color: rgba(15, 17, 38, 0.85);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300e5ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

.sng-kit-input:focus {
    background: #fff;
    border-color: var(--kit-purple);
    box-shadow: 0 0 12px rgba(189, 0, 255, 0.1);
}

html[data-theme="dark"] .sng-kit-input {
    background: rgba(5, 6, 15, 0.7);
    border-color: rgba(0, 229, 255, 0.2);
    color: #fff;
}

    html[data-theme="dark"] .sng-kit-input:focus {
        border-color: var(--kit-ice);
        background: rgba(15, 17, 38, 0.85);
        box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
    }

textarea.sng-kit-input,
select[multiple].sng-kit-input {
    height: auto;
    min-height: unset;
    resize: none;
}

/* فقط‌خواندنی نمایشی — فیلد تاریخ (Date/._date) با datepicker تعاملی است */
.sng-kit-input[readonly]:not(.Date):not(._date),
.sng-kit-affix.is-readonly .sng-kit-input {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.4);
    color: var(--text-muted);
    cursor: default;
    box-shadow: none;
}

    .sng-kit-input[readonly]:not(.Date):not(._date):focus,
    .sng-kit-affix.is-readonly .sng-kit-input:focus {
        background: rgba(148, 163, 184, 0.14);
        border-color: rgba(148, 163, 184, 0.4);
        box-shadow: none;
    }

html[data-theme="dark"] .sng-kit-input[readonly]:not(.Date):not(._date),
html[data-theme="dark"] .sng-kit-affix.is-readonly .sng-kit-input {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(100, 116, 139, 0.35);
    color: #94a3b8;
}

    html[data-theme="dark"] .sng-kit-input[readonly]:not(.Date):not(._date):focus,
    html[data-theme="dark"] .sng-kit-affix.is-readonly .sng-kit-input:focus {
        background: rgba(15, 23, 42, 0.65);
        border-color: rgba(100, 116, 139, 0.35);
        box-shadow: none;
    }

.sng-kit-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 10px;
    font-weight: 900;
    color: var(--kit-text);
}

.ind-req-star {
    color: var(--c-danger);
    margin-inline-start: 0.2rem;
}

html[data-theme="dark"] .sng-kit-label {
    color: #cbd5e1;
}

.sng-kit-label-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

    .sng-kit-label-line .sng-kit-label {
        display: inline;
        margin-bottom: 0;
    }

.sng-kit-hint.is-inline {
    display: inline;
    margin-top: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--kit-muted);
    line-height: 1.4;
}

html[data-theme="dark"] .sng-kit-hint.is-inline {
    color: #94a3b8;
}

.sng-kit-field-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

    .sng-kit-field-inline > .sng-kit-label {
        margin-bottom: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .sng-kit-field-inline > .sng-kit-radio-seg {
        flex: 1 1 auto;
        min-width: 0;
    }

.sng-kit-icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-main);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}

    .sng-kit-icon-btn:hover {
        background: var(--bg-primary-soft);
        color: var(--c-primary);
        border-color: var(--c-primary);
    }

.sng-kit-modal .refreshCaptcha.is-refreshing { pointer-events: none; }
.sng-kit-modal .refreshCaptcha .captcha-spin { animation: qlfnCaptchaSpin 0.75s ease; }
.sng-kit-modal img.captcha-img-refresh { animation: qlfnCaptchaPulse 0.7s ease; }
@keyframes qlfnCaptchaSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes qlfnCaptchaPulse {
    0% { opacity: 0.35; }
    100% { opacity: 1; }
}

.sng-kit-icon-btn-success {
    color: var(--c-success);
    background: var(--bg-success-soft);
    border-color: color-mix(in srgb, var(--c-success) 40%, transparent);
}

    .sng-kit-icon-btn-success:hover {
        background: var(--bg-success-soft);
        color: var(--c-success);
        border-color: var(--c-success);
    }

.sng-kit-icon-btn-info {
    color: var(--c-info);
    background: var(--bg-info-soft);
    border-color: color-mix(in srgb, var(--c-info) 40%, transparent);
}

    .sng-kit-icon-btn-info:hover {
        background: var(--bg-info-soft);
        color: var(--c-info);
        border-color: var(--c-info);
    }

.sng-kit-icon-btn-danger {
    color: var(--c-danger);
    background: var(--bg-danger-soft);
    border-color: color-mix(in srgb, var(--c-danger) 40%, transparent);
}

    .sng-kit-icon-btn-danger:hover {
        background: var(--bg-danger-soft);
        color: var(--c-danger);
        border-color: var(--c-danger);
    }

.sng-kit-icon-btn-warn {
    color: var(--c-warning);
    background: var(--bg-warning-soft);
    border-color: color-mix(in srgb, var(--c-warning) 40%, transparent);
}

    .sng-kit-icon-btn-warn:hover {
        background: var(--bg-warning-soft);
        color: var(--c-warning);
        border-color: var(--c-warning);
    }

.sng-kit-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.sng-kit-colvis-menu {
    position: absolute;
    left: 0;
    top: 3.5rem;
    z-index: 50;
    width: 12rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-card);
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

    .sng-kit-colvis-menu.is-open {
        display: flex;
    }

.sng-kit-colvis-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
}

    .sng-kit-colvis-item input {
        accent-color: var(--c-primary);
    }

.sng-kit-page .dataTables_wrapper .wrapper,
.sng-kit-page .dataTables_wrapper .wrapper2,
.sng-tw-modal-overlay .dataTables_wrapper .wrapper,
.sng-tw-modal-overlay .dataTables_wrapper .wrapper2 {
    display: none !important;
}

.sng-kit-grid {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 1.5rem;
}

.sng-kit-page table.dataTable,
.sng-kit-sheet table.dataTable {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 1.5rem 0 !important;
    border: none !important;
    border-radius: 1.5rem !important;
    width: 100% !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* scrollX clones thead into a second table — zero their margins or head/body look detached */
.sng-kit-page .dataTables_scroll,
.sng-kit-sheet .dataTables_scroll {
    border-radius: 1.5rem;
    overflow: hidden;
}

.sng-kit-page .dataTables_scrollHead,
.sng-kit-page .dataTables_scrollBody,
.sng-kit-page .dataTables_scrollFoot,
.sng-kit-sheet .dataTables_scrollHead,
.sng-kit-sheet .dataTables_scrollBody,
.sng-kit-sheet .dataTables_scrollFoot {
    margin: 0 !important;
    border: 0 !important;
}

.sng-kit-page .dataTables_scroll table.dataTable,
.sng-kit-sheet .dataTables_scroll table.dataTable {
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.sng-kit-page .dataTables_scrollBody,
.sng-kit-sheet .dataTables_scrollBody {
    margin-top: 0 !important;
    border-top: 0 !important;
}

    .sng-kit-page .dataTables_scrollBody thead,
    .sng-kit-sheet .dataTables_scrollBody thead {
        visibility: collapse;
    }



.sng-kit-page table.dataTable td,
.sng-kit-page table.dataTable th,
.sng-kit-sheet table.dataTable td,
.sng-kit-sheet table.dataTable th {
    box-sizing: border-box !important;
}

.sng-kit-page table.dataTable thead th,
.sng-kit-sheet table.dataTable thead th {
    background: rgba(189, 0, 255, 0.05) !important;
    color: var(--kit-head) !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    border-bottom: 2.5px solid rgba(189, 0, 255, 0.25) !important;
    padding: 16px 32px 16px 14px !important;
    text-align: center !important;
    position: relative !important;
}

html[data-theme="dark"] .sng-kit-page table.dataTable thead th,
html[data-theme="dark"] .sng-kit-sheet table.dataTable thead th {
    background: rgba(189, 0, 255, 0.18) !important;
    color: #fff !important;
    border-bottom: 2.5px solid var(--kit-ice) !important;
}

.sng-kit-page table.dataTable thead > tr > :is(th, td):is(.sorting, .sorting_asc, .sorting_desc, .sorting_asc_disabled, .sorting_desc_disabled),
.sng-kit-sheet table.dataTable thead > tr > :is(th, td):is(.sorting, .sorting_asc, .sorting_desc, .sorting_asc_disabled, .sorting_desc_disabled) {
    padding: 16px 32px 16px 14px !important;
}

.sng-kit-page table.dataTable thead > tr > :is(th, td):is(.sorting, .sorting_asc, .sorting_desc)::before,
.sng-kit-page table.dataTable thead > tr > :is(th, td):is(.sorting, .sorting_asc, .sorting_desc)::after,
.sng-kit-sheet table.dataTable thead > tr > :is(th, td):is(.sorting, .sorting_asc, .sorting_desc)::before,
.sng-kit-sheet table.dataTable thead > tr > :is(th, td):is(.sorting, .sorting_asc, .sorting_desc)::after {
    left: auto !important;
    right: 14px !important;
    opacity: 0.65 !important;
}

.sng-kit-page table.dataTable thead > tr > :is(th, td).sorting_asc::before,
.sng-kit-page table.dataTable thead > tr > :is(th, td).sorting_desc::after,
.sng-kit-sheet table.dataTable thead > tr > :is(th, td).sorting_asc::before,
.sng-kit-sheet table.dataTable thead > tr > :is(th, td).sorting_desc::after {
    opacity: 1 !important;
    color: var(--kit-purple) !important;
}

html[data-theme="dark"] .sng-kit-page table.dataTable thead > tr > :is(th, td).sorting_asc::before,
html[data-theme="dark"] .sng-kit-page table.dataTable thead > tr > :is(th, td).sorting_desc::after,
html[data-theme="dark"] .sng-kit-sheet table.dataTable thead > tr > :is(th, td).sorting_asc::before,
html[data-theme="dark"] .sng-kit-sheet table.dataTable thead > tr > :is(th, td).sorting_desc::after {
    color: var(--kit-ice) !important;
}

.sng-kit-page table.dataTable tbody tr,
.sng-kit-page table.dataTable.stripe tbody tr.odd,
.sng-kit-page table.dataTable.display tbody tr.odd,
.sng-kit-page table.dataTable.display tbody tr.even,
.sng-kit-sheet table.dataTable tbody tr,
.sng-kit-sheet table.dataTable.stripe tbody tr.odd,
.sng-kit-sheet table.dataTable.display tbody tr.odd,
.sng-kit-sheet table.dataTable.display tbody tr.even {
    background: transparent !important;
    border-bottom: 1px solid rgba(189, 0, 255, 0.08) !important;
}

html[data-theme="dark"] .sng-kit-page table.dataTable tbody tr,
html[data-theme="dark"] .sng-kit-page table.dataTable.stripe tbody tr.odd,
html[data-theme="dark"] .sng-kit-page table.dataTable.display tbody tr.odd,
html[data-theme="dark"] .sng-kit-page table.dataTable.display tbody tr.even,
html[data-theme="dark"] .sng-kit-sheet table.dataTable tbody tr,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.stripe tbody tr.odd,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.display tbody tr.odd,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.display tbody tr.even {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.sng-kit-page table.dataTable tbody td,
.sng-kit-sheet table.dataTable tbody td {
    padding: 8px 14px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
    text-align: center !important;
    color: var(--kit-text) !important;
    border: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease;
}

html[data-theme="dark"] .sng-kit-page table.dataTable tbody td,
html[data-theme="dark"] .sng-kit-sheet table.dataTable tbody td {
    color: #e2e8f0 !important;
}

.sng-kit-page table.dataTable tbody > tr:not(.child) > *,
.sng-kit-page table.dataTable.stripe tbody > tr.odd:not(.child) > *,
.sng-kit-page table.dataTable.display tbody > tr.odd:not(.child) > *,
.sng-kit-page table.dataTable.display tbody > tr.even:not(.child) > *,
.sng-kit-sheet table.dataTable tbody > tr:not(.child) > *,
.sng-kit-sheet table.dataTable.stripe tbody > tr.odd:not(.child) > *,
.sng-kit-sheet table.dataTable.display tbody > tr.odd:not(.child) > *,
.sng-kit-sheet table.dataTable.display tbody > tr.even:not(.child) > * {
    background: rgba(255, 255, 255, 0.4) !important;
    box-shadow: none !important;
}

.sng-kit-page table.dataTable tbody > tr:not(.child):hover > *,
.sng-kit-page table.dataTable.stripe tbody > tr.odd:not(.child):hover > *,
.sng-kit-page table.dataTable.display tbody > tr.odd:not(.child):hover > *,
.sng-kit-page table.dataTable.display tbody > tr.even:not(.child):hover > *,
.sng-kit-sheet table.dataTable tbody > tr:not(.child):hover > *,
.sng-kit-sheet table.dataTable.stripe tbody > tr.odd:not(.child):hover > *,
.sng-kit-sheet table.dataTable.display tbody > tr.odd:not(.child):hover > *,
.sng-kit-sheet table.dataTable.display tbody > tr.even:not(.child):hover > * {
    background: rgba(189, 0, 255, 0.04) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .sng-kit-page table.dataTable tbody > tr:not(.child) > *,
html[data-theme="dark"] .sng-kit-page table.dataTable.stripe tbody > tr.odd:not(.child) > *,
html[data-theme="dark"] .sng-kit-page table.dataTable.display tbody > tr.odd:not(.child) > *,
html[data-theme="dark"] .sng-kit-page table.dataTable.display tbody > tr.even:not(.child) > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable tbody > tr:not(.child) > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.stripe tbody > tr.odd:not(.child) > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.display tbody > tr.odd:not(.child) > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.display tbody > tr.even:not(.child) > * {
    background: rgba(10, 11, 28, 0.5) !important;
}

html[data-theme="dark"] .sng-kit-page table.dataTable tbody > tr:not(.child):hover > *,
html[data-theme="dark"] .sng-kit-page table.dataTable.stripe tbody > tr.odd:not(.child):hover > *,
html[data-theme="dark"] .sng-kit-page table.dataTable.display tbody > tr.odd:not(.child):hover > *,
html[data-theme="dark"] .sng-kit-page table.dataTable.display tbody > tr.even:not(.child):hover > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable tbody > tr:not(.child):hover > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.stripe tbody > tr.odd:not(.child):hover > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.display tbody > tr.odd:not(.child):hover > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.display tbody > tr.even:not(.child):hover > * {
    background: rgba(0, 229, 255, 0.04) !important;
}

.sng-kit-page table.dataTable tbody > tr.selected > *,
.sng-kit-page table.dataTable tbody > tr.selected:hover > *,
.sng-kit-page table.dataTable.display tbody > tr.odd.selected > *,
.sng-kit-page table.dataTable.display tbody > tr.even.selected > *,
.sng-kit-page table.dataTable.display tbody > tr.odd.selected:hover > *,
.sng-kit-page table.dataTable.display tbody > tr.even.selected:hover > *,
.sng-kit-sheet table.dataTable tbody > tr.selected > *,
.sng-kit-sheet table.dataTable tbody > tr.selected:hover > *,
.sng-kit-sheet table.dataTable.display tbody > tr.odd.selected > *,
.sng-kit-sheet table.dataTable.display tbody > tr.even.selected > *,
.sng-kit-sheet table.dataTable.display tbody > tr.odd.selected:hover > *,
.sng-kit-sheet table.dataTable.display tbody > tr.even.selected:hover > * {
    box-shadow: none !important;
    background: rgba(189, 0, 255, 0.08) !important;
    color: var(--kit-text) !important;
}

html[data-theme="dark"] .sng-kit-page table.dataTable tbody > tr.selected > *,
html[data-theme="dark"] .sng-kit-page table.dataTable tbody > tr.selected:hover > *,
html[data-theme="dark"] .sng-kit-page table.dataTable.display tbody > tr.odd.selected > *,
html[data-theme="dark"] .sng-kit-page table.dataTable.display tbody > tr.even.selected > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable tbody > tr.selected > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable tbody > tr.selected:hover > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.display tbody > tr.odd.selected > *,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.display tbody > tr.even.selected > * {
    background: rgba(0, 229, 255, 0.1) !important;
    color: #fff !important;
}

.sng-kit-row-actions .sng-kit-icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.75rem;
}

/* hasIndex stays the first cell; + only when collapsed — do not hide the cell */
.sng-kit-page table.dataTable.collapsed > tbody > tr > td.dtr-control,
.sng-kit-sheet table.dataTable.collapsed > tbody > tr > td.dtr-control {
    position: relative !important;
    padding-right: 2.6rem !important;
    cursor: pointer !important;
}

    .sng-kit-page table.dataTable.collapsed > tbody > tr > td.dtr-control::before,
    .sng-kit-sheet table.dataTable.collapsed > tbody > tr > td.dtr-control::before {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        right: 0.55rem !important;
        left: auto !important;
        transform: translateY(-50%) rotate(0deg) !important;
        margin: 0 !important;
        width: 24px !important;
        height: 24px !important;
        border-radius: 50% !important;
        background-color: rgba(189, 0, 255, 0.1) !important;
        border: 1.5px solid rgba(189, 0, 255, 0.45) !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 11px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23bd00ff' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15'/%3E%3C/svg%3E") !important;
        box-shadow: 0 0 10px rgba(189, 0, 255, 0.15) !important;
        color: transparent !important;
        font-size: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-color 0.3s ease;
    }

html[data-theme="dark"] .sng-kit-page table.dataTable.collapsed > tbody > tr > td.dtr-control::before,
html[data-theme="dark"] .sng-kit-sheet table.dataTable.collapsed > tbody > tr > td.dtr-control::before {
    background-color: rgba(0, 229, 255, 0.12) !important;
    border: 1.5px solid rgba(0, 229, 255, 0.6) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300e5ff' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15'/%3E%3C/svg%3E") !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35) !important;
}

.sng-kit-page table.dataTable.collapsed > tbody > tr.dt-hasChild > td.dtr-control::before,
.sng-kit-sheet table.dataTable.collapsed > tbody > tr.dt-hasChild > td.dtr-control::before {
    transform: translateY(-50%) rotate(135deg) !important;
    background-color: rgba(255, 23, 68, 0.15) !important;
    border-color: rgba(255, 23, 68, 0.55) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff1744' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15'/%3E%3C/svg%3E") !important;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.25) !important;
}

.sng-kit-page table.dataTable > tbody > tr > td.child,
.sng-kit-sheet table.dataTable > tbody > tr > td.child {
    background: rgba(255, 255, 255, 0.9) !important;
    text-align: right !important;
    white-space: normal !important;
    padding: 1.25rem !important;
    border: none !important;
}

html[data-theme="dark"] .sng-kit-page table.dataTable > tbody > tr > td.child,
html[data-theme="dark"] .sng-kit-sheet table.dataTable > tbody > tr > td.child {
    background: rgba(10, 11, 28, 0.95) !important;
}

.sng-kit-page ul.dtr-details,
.sng-kit-sheet ul.dtr-details {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .sng-kit-page ul.dtr-details > li,
    .sng-kit-sheet ul.dtr-details > li {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: 8px;
        border-bottom: 1.5px solid rgba(189, 0, 255, 0.08) !important;
    }

html[data-theme="dark"] .sng-kit-page ul.dtr-details > li,
html[data-theme="dark"] .sng-kit-sheet ul.dtr-details > li {
    border-bottom-color: rgba(0, 229, 255, 0.08) !important;
}

.sng-kit-page span.dtr-title,
.sng-kit-sheet span.dtr-title {
    font-weight: 900 !important;
    color: var(--kit-purple) !important;
}

html[data-theme="dark"] .sng-kit-page span.dtr-title,
html[data-theme="dark"] .sng-kit-sheet span.dtr-title {
    color: var(--kit-ice) !important;
}

.sng-kit-page span.dtr-data,
.sng-kit-sheet span.dtr-data {
    font-weight: 800 !important;
    color: var(--kit-text) !important;
}

html[data-theme="dark"] .sng-kit-page span.dtr-data,
html[data-theme="dark"] .sng-kit-sheet span.dtr-data {
    color: #fff !important;
}

.sng-kit-page table.dataTable tfoot th,
.sng-kit-page table.dataTable tfoot td,
.sng-kit-sheet table.dataTable tfoot th,
.sng-kit-sheet table.dataTable tfoot td {
    padding: 14px 8px !important;
    background: rgba(189, 0, 255, 0.01) !important;
    border-top: 2px solid rgba(189, 0, 255, 0.12) !important;
    text-align: center !important;
}

html[data-theme="dark"] .sng-kit-page table.dataTable tfoot th,
html[data-theme="dark"] .sng-kit-page table.dataTable tfoot td,
html[data-theme="dark"] .sng-kit-sheet table.dataTable tfoot th,
html[data-theme="dark"] .sng-kit-sheet table.dataTable tfoot td {
    background: rgba(10, 11, 28, 0.6) !important;
    border-top: 2px solid rgba(0, 229, 255, 0.15) !important;
}

.sng-kit-page table.dataTable tfoot input[type="text"],
.sng-kit-sheet table.dataTable tfoot input[type="text"],
.sng-kit-page .footer-filter,
.sng-kit-sheet .footer-filter {
    width: 100%;
    padding: 8px 10px;
    height: auto;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(189, 0, 255, 0.15);
    color: var(--kit-text);
    outline: none;
    text-align: center;
    appearance: none;
}

html[data-theme="dark"] .sng-kit-page table.dataTable tfoot input[type="text"],
html[data-theme="dark"] .sng-kit-sheet table.dataTable tfoot input[type="text"],
html[data-theme="dark"] .sng-kit-page .footer-filter,
html[data-theme="dark"] .sng-kit-sheet .footer-filter {
    background: rgba(5, 6, 15, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: #cbd5e1;
}

.sng-kit-page .footer-filter::placeholder,
.sng-kit-sheet .footer-filter::placeholder {
    color: rgba(189, 0, 255, 0.35);
}

html[data-theme="dark"] .sng-kit-page .footer-filter::placeholder,
html[data-theme="dark"] .sng-kit-sheet .footer-filter::placeholder {
    color: rgba(0, 229, 255, 0.35);
}

.sng-kit-page table.dataTable tfoot input[type="text"]:focus,
.sng-kit-sheet table.dataTable tfoot input[type="text"]:focus,
.sng-kit-page .footer-filter:focus,
.sng-kit-sheet .footer-filter:focus {
    border-color: var(--kit-purple);
    box-shadow: 0 0 8px rgba(189, 0, 255, 0.1);
}

html[data-theme="dark"] .sng-kit-page .footer-filter:focus,
html[data-theme="dark"] .sng-kit-sheet .footer-filter:focus {
    border-color: var(--kit-ice);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.1);
}

.sng-kit-page table.dataTable tfoot label.checkbox,
.sng-kit-sheet table.dataTable tfoot label.checkbox {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
    padding: 8px 10px;
    width: 100%;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    color: var(--kit-muted);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(189, 0, 255, 0.15);
    cursor: pointer;
    white-space: nowrap;
}

html[data-theme="dark"] .sng-kit-page table.dataTable tfoot label.checkbox,
html[data-theme="dark"] .sng-kit-sheet table.dataTable tfoot label.checkbox {
    background: rgba(5, 6, 15, 0.6);
    border-color: rgba(0, 229, 255, 0.15);
    color: #94a3b8;
}

.sng-kit-page table.dataTable tfoot label.checkbox input[type="checkbox"],
.sng-kit-sheet table.dataTable tfoot label.checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--kit-purple);
    cursor: pointer;
}

html[data-theme="dark"] .sng-kit-page table.dataTable tfoot label.checkbox input[type="checkbox"],
html[data-theme="dark"] .sng-kit-sheet table.dataTable tfoot label.checkbox input[type="checkbox"] {
    accent-color: var(--kit-ice);
}

.sng-kit-page .fSelectFooterTD .fs-wrap,
.sng-kit-sheet .fSelectFooterTD .fs-wrap {
    min-width: 0;
    width: 100%;
}

.sng-kit-page .fSelectFooterTD .fs-label-wrap,
.sng-kit-sheet .fSelectFooterTD .fs-label-wrap {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(189, 0, 255, 0.15);
    border-radius: 8px;
    height: 32.6px;
}

html[data-theme="dark"] .sng-kit-page .fSelectFooterTD .fs-label-wrap,
html[data-theme="dark"] .sng-kit-sheet .fSelectFooterTD .fs-label-wrap {
    background: rgba(5, 6, 15, 0.6);
    border-color: rgba(0, 229, 255, 0.15);
}

.sng-kit-page .fSelectFooterTD .fs-label,
.sng-kit-sheet .fSelectFooterTD .fs-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--kit-text);
    padding: 8px 16px;
    text-align: center;
    margin: 0px 5px;
}

html[data-theme="dark"] .sng-kit-page .fSelectFooterTD .fs-label,
html[data-theme="dark"] .sng-kit-sheet .fSelectFooterTD .fs-label {
    color: #cbd5e1;
}

.sng-kit-page .fSelectFooterTD .fs-arrow,
.sng-kit-sheet .fSelectFooterTD .fs-arrow {
    border-top-color: var(--kit-purple);
    right: auto;
    left: 8px;
}

html[data-theme="dark"] .sng-kit-page .fSelectFooterTD .fs-arrow,
html[data-theme="dark"] .sng-kit-sheet .fSelectFooterTD .fs-arrow {
    border-top-color: var(--kit-ice);
}

.sng-kit-page .fSelectFooterTD .fs-cross,
.sng-kit-sheet .fSelectFooterTD .fs-cross {
    color: var(--kit-muted);
    font-size: 14px;
    bottom: auto;
    top: 8px;
    transform: translateY(-50%);
    right: 5px;
}

.sng-kit-page .fSelectFooterTD .fs-dropdown,
.sng-kit-sheet .fSelectFooterTD .fs-dropdown,
.fs-dropdown.fs-dropdown-portal {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(189, 0, 255, 0.2);
    border-radius: 8px;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 20;
}

.fs-dropdown.fs-dropdown-portal {
    margin-top: 0;
    z-index: 1200;
    --kit-purple: #bd00ff;
    --kit-ice: #00e5ff;
}

html[data-theme="dark"] .sng-kit-page .fSelectFooterTD .fs-dropdown,
html[data-theme="dark"] .sng-kit-sheet .fSelectFooterTD .fs-dropdown,
html[data-theme="dark"] .fs-dropdown.fs-dropdown-portal {
    background: rgba(10, 11, 28, 0.98);
    border-color: rgba(0, 229, 255, 0.22);
    color: #e2e8f0;
}

.sng-kit-page .fSelectFooterTD .fs-option,
.sng-kit-sheet .fSelectFooterTD .fs-option,
.sng-kit-page .fSelectFooterTD .fs-search,
.sng-kit-sheet .fSelectFooterTD .fs-search,
.fs-dropdown.fs-dropdown-portal .fs-option,
.fs-dropdown.fs-dropdown-portal .fs-search {
    border-bottom-color: rgba(189, 0, 255, 0.08);
}

html[data-theme="dark"] .sng-kit-page .fSelectFooterTD .fs-option,
html[data-theme="dark"] .sng-kit-sheet .fSelectFooterTD .fs-option,
html[data-theme="dark"] .fs-dropdown.fs-dropdown-portal .fs-option {
    border-bottom-color: rgba(0, 229, 255, 0.08);
}

.sng-kit-page .fSelectFooterTD .fs-option.hl,
.sng-kit-sheet .fSelectFooterTD .fs-option.hl,
.fs-dropdown.fs-dropdown-portal .fs-option.hl {
    background: rgba(189, 0, 255, 0.1);
}

html[data-theme="dark"] .sng-kit-page .fSelectFooterTD .fs-option.hl,
html[data-theme="dark"] .sng-kit-sheet .fSelectFooterTD .fs-option.hl,
html[data-theme="dark"] .fs-dropdown.fs-dropdown-portal .fs-option.hl {
    background: rgba(0, 229, 255, 0.12);
}

.sng-kit-page .fSelectFooterTD .fs-wrap.multiple .fs-option.selected .fs-checkbox i,
.sng-kit-sheet .fSelectFooterTD .fs-wrap.multiple .fs-option.selected .fs-checkbox i,
.fs-dropdown.fs-dropdown-portal.multiple .fs-option.selected .fs-checkbox i {
    background-color: var(--kit-purple);
}

html[data-theme="dark"] .sng-kit-page .fSelectFooterTD .fs-wrap.multiple .fs-option.selected .fs-checkbox i,
html[data-theme="dark"] .sng-kit-sheet .fSelectFooterTD .fs-wrap.multiple .fs-option.selected .fs-checkbox i,
html[data-theme="dark"] .fs-dropdown.fs-dropdown-portal.multiple .fs-option.selected .fs-checkbox i {
    background-color: var(--kit-ice);
}

.sng-kit-page .fSelectFooterTD .fs-search input,
.sng-kit-sheet .fSelectFooterTD .fs-search input,
.fs-dropdown.fs-dropdown-portal .fs-search input {
    background: transparent;
    color: inherit;
    font-size: 10px;
    font-weight: 700;
}

.sng-kit-dt-bottom {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1.5px dashed rgba(189, 0, 255, 0.1);
    width: 100%;
}

html[data-theme="dark"] .sng-kit-dt-bottom {
    border-top-color: rgba(0, 229, 255, 0.15);
}

@media (min-width: 640px) {
    .sng-kit-dt-bottom {
        flex-direction: row;
    }
}

.sng-kit-page .dataTables_info,
.sng-kit-sheet .dataTables_info,
.sng-kit-dt-bottom .dataTables_info {
    font-size: 10px !important;
    font-weight: 900 !important;
    color: var(--kit-purple) !important;
    background: rgba(189, 0, 255, 0.04) !important;
    padding: 8px 16px !important;
    border-radius: 9999px !important;
    border: 1.5px solid rgba(189, 0, 255, 0.15) !important;
    margin: 0 !important;
    float: none !important;
    display: inline-block !important;
    box-shadow: 0 2px 8px rgba(189, 0, 255, 0.02);
    margin-right: 10px !important;
}

html[data-theme="dark"] .sng-kit-page .dataTables_info,
html[data-theme="dark"] .sng-kit-sheet .dataTables_info,
html[data-theme="dark"] .sng-kit-dt-bottom .dataTables_info {
    color: var(--kit-ice) !important;
    background: rgba(0, 229, 255, 0.04) !important;
    border-color: rgba(0, 229, 255, 0.2) !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.06);
}

.sng-kit-page .dataTables_paginate,
.sng-kit-sheet .dataTables_paginate,
.sng-kit-dt-bottom .dataTables_paginate {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    float: none !important;
}

    .sng-kit-page .dataTables_paginate span,
    .sng-kit-sheet .dataTables_paginate span,
    .sng-kit-dt-bottom .dataTables_paginate span {
        display: flex !important;
        gap: 6px !important;
        float: none !important;
    }

    .sng-kit-page .dataTables_paginate .paginate_button,
    .sng-kit-sheet .dataTables_paginate .paginate_button,
    .sng-kit-dt-bottom .paginate_button {
        box-sizing: border-box !important;
        padding: 8px 16px !important;
        min-width: 0 !important;
        height: auto !important;
        line-height: 1.2 !important;
        border-radius: 0.75rem !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        border: 1px solid rgba(189, 0, 255, 0.15) !important;
        background: #fff !important;
        color: var(--kit-text) !important;
        margin: 0 !important;
        cursor: pointer !important;
        display: inline-block !important;
        box-shadow: none !important;
    }

html[data-theme="dark"] .sng-kit-page .dataTables_paginate .paginate_button,
html[data-theme="dark"] .sng-kit-sheet .dataTables_paginate .paginate_button,
html[data-theme="dark"] .sng-kit-dt-bottom .paginate_button {
    background: rgba(10, 11, 28, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #e2e8f0 !important;
}

.sng-kit-page .dataTables_paginate .paginate_button.current,
.sng-kit-page .dataTables_paginate .paginate_button.current:hover,
.sng-kit-sheet .dataTables_paginate .paginate_button.current,
.sng-kit-sheet .dataTables_paginate .paginate_button.current:hover,
.sng-kit-dt-bottom .paginate_button.current,
.sng-kit-dt-bottom .paginate_button.current:hover {
    background: var(--kit-purple) !important;
    color: #fff !important;
    border-color: var(--kit-purple) !important;
    box-shadow: 0 4px 12px rgba(189, 0, 255, 0.25) !important;
    border-radius: 0.75rem !important;
}

html[data-theme="dark"] .sng-kit-page .dataTables_paginate .paginate_button.current,
html[data-theme="dark"] .sng-kit-sheet .dataTables_paginate .paginate_button.current,
html[data-theme="dark"] .sng-kit-dt-bottom .paginate_button.current {
    background: var(--kit-ice) !important;
    color: #03030a !important;
    border-color: var(--kit-ice) !important;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.45) !important;
}

.sng-kit-page .dataTables_paginate .paginate_button:hover,
.sng-kit-sheet .dataTables_paginate .paginate_button:hover,
.sng-kit-dt-bottom .paginate_button:hover {
    background: rgba(189, 0, 255, 0.08) !important;
    color: var(--kit-purple) !important;
    border-color: var(--kit-purple) !important;
}

html[data-theme="dark"] .sng-kit-page .dataTables_paginate .paginate_button:hover,
html[data-theme="dark"] .sng-kit-sheet .dataTables_paginate .paginate_button:hover,
html[data-theme="dark"] .sng-kit-dt-bottom .paginate_button:hover {
    background: rgba(0, 229, 255, 0.12) !important;
    color: var(--kit-ice) !important;
    border-color: var(--kit-ice) !important;
}

.sng-kit-page .dataTables_paginate .paginate_button.disabled,
.sng-kit-page .dataTables_paginate .paginate_button.disabled:hover,
.sng-kit-sheet .dataTables_paginate .paginate_button.disabled,
.sng-kit-sheet .dataTables_paginate .paginate_button.disabled:hover,
.sng-kit-dt-bottom .paginate_button.disabled,
.sng-kit-dt-bottom .paginate_button.disabled:hover {
    opacity: 0.4 !important;
    cursor: default !important;
    background: #fff !important;
    color: var(--kit-muted) !important;
    border-color: rgba(189, 0, 255, 0.1) !important;
    box-shadow: none !important;
}

.sng-kit-confirm {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.22);
    color: var(--kit-text);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.8;
}

html[data-theme="dark"] .sng-kit-confirm {
    color: #e2e8f0;
}

.sng-kit-confirm .label {
    color: var(--kit-red);
    font-weight: 900;
}

.sng-kit-sheet {
    max-width: min(1100px, calc(100vw - 1.5rem));
    width: 100%;
    max-height: min(92vh, calc(100dvh - 1.25rem));
}

.sng-kit-modal-head-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--kit-purple);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(189, 0, 255, 0.45);
}

html[data-theme="dark"] .sng-kit-modal-head-dot {
    background: var(--kit-ice);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.sng-kit-close {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(189, 0, 255, 0.15);
    color: var(--kit-muted);
    cursor: pointer;
}

html[data-theme="dark"] .sng-kit-close {
    background: rgba(10, 11, 28, 0.7);
    border-color: rgba(0, 229, 255, 0.2);
    color: #cbd5e1;
}

.sng-kit-close:hover {
    color: var(--kit-text);
}

html[data-theme="dark"] .sng-kit-close:hover {
    color: #fff;
}

.sng-tw-modal-overlay:has(.sng-kit-modal),
.sng-tw-modal-overlay:has(.sng-kit-sheet) {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html[data-theme="dark"] .sng-tw-modal-overlay:has(.sng-kit-modal),
html[data-theme="dark"] .sng-tw-modal-overlay:has(.sng-kit-sheet) {
    background: rgba(0, 0, 0, 0.3) !important;
}

.sng-kit-modal,
.sng-tw-modal-sheet.sng-kit-sheet {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(189, 0, 255, 0.3) !important;
    box-shadow: 0 25px 50px rgba(189, 0, 255, 0.05), 0 0 20px rgba(189, 0, 255, 0.1) !important;
    border-radius: 2rem !important;
}

html[data-theme="dark"] .sng-kit-modal,
html[data-theme="dark"] .sng-tw-modal-sheet.sng-kit-sheet {
    background: rgba(10, 11, 28, 0.42) !important;
    border: 1.5px solid rgba(0, 229, 255, 0.4) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 255, 0.25) !important;
}

.sng-kit-modal .sng-tw-modal-head,
.sng-kit-sheet .sng-tw-modal-head,
.sng-kit-modal .sng-tw-modal-foot,
.sng-kit-sheet .sng-tw-modal-foot {
    border-color: rgba(189, 0, 255, 0.12) !important;
}

html[data-theme="dark"] .sng-kit-modal .sng-tw-modal-head,
html[data-theme="dark"] .sng-kit-sheet .sng-tw-modal-head,
html[data-theme="dark"] .sng-kit-modal .sng-tw-modal-foot,
html[data-theme="dark"] .sng-kit-sheet .sng-tw-modal-foot {
    border-color: rgba(0, 229, 255, 0.15) !important;
}

/* Kit Select2 — همان ارتفاع/فونت/پدینگ .sng-kit-input
   specificity باید از body.shell-layout-body (ارتفاع 2.75rem شل) بالاتر باشد */
body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-container .select2-selection--single,
body.shell-layout-body .sng-kit-input + .select2-container .select2-selection--single {
    height: var(--sng-kit-control-h, 3.4rem) !important;
    min-height: var(--sng-kit-control-h, 3.4rem) !important;
    padding: 0 var(--sng-kit-control-pad-x, 1.25rem) 0 2.5rem !important;
    border-radius: var(--sng-kit-control-radius, 1.15rem) !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(189, 0, 255, 0.35) !important;
    font-weight: 700 !important;
    font-size: var(--sng-kit-control-font, 0.85rem) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-container .select2-selection--single,
html[data-theme="dark"] body.shell-layout-body .sng-kit-input + .select2-container .select2-selection--single {
    background: rgba(5, 6, 15, 0.7) !important;
    border-color: rgba(0, 229, 255, 0.2) !important;
    color: #fff !important;
}

body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-container .select2-selection--multiple,
body.shell-layout-body .sng-kit-input + .select2-container .select2-selection--multiple {
    min-height: var(--sng-kit-control-h, 3.4rem) !important;
    padding: 0.35rem var(--sng-kit-control-pad-x, 1.25rem) !important;
    border-radius: var(--sng-kit-control-radius, 1.15rem) !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(189, 0, 255, 0.35) !important;
}

html[data-theme="dark"] body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-container .select2-selection--multiple,
html[data-theme="dark"] body.shell-layout-body .sng-kit-input + .select2-container .select2-selection--multiple {
    background: rgba(5, 6, 15, 0.7) !important;
    border-color: rgba(0, 229, 255, 0.2) !important;
}

body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-selection--single .select2-selection__rendered,
body.shell-layout-body .sng-kit-input + .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: var(--sng-kit-control-lh, 1.5) !important;
    font-size: var(--sng-kit-control-font, 0.85rem) !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

html[data-theme="dark"] body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-selection--single .select2-selection__rendered,
html[data-theme="dark"] body.shell-layout-body .sng-kit-input + .select2-container .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
}

body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-selection--single .select2-selection__placeholder,
body.shell-layout-body .sng-kit-input + .select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--kit-muted, var(--text-muted)) !important;
    font-weight: 700 !important;
}

body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-container--focus .select2-selection--single,
body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-container--open .select2-selection--single,
body.shell-layout-body .sng-kit-input + .select2-container.select2-container--focus .select2-selection--single,
body.shell-layout-body .sng-kit-input + .select2-container.select2-container--open .select2-selection--single {
    background: #fff !important;
    border-color: var(--kit-purple) !important;
    box-shadow: 0 0 12px rgba(189, 0, 255, 0.1) !important;
}

html[data-theme="dark"] body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-container--focus .select2-selection--single,
html[data-theme="dark"] body.shell-layout-body :is(.sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-dash, .sng-kit-form-grid, .sng-kit-filter-bar) .select2-container--open .select2-selection--single,
html[data-theme="dark"] body.shell-layout-body .sng-kit-input + .select2-container.select2-container--focus .select2-selection--single,
html[data-theme="dark"] body.shell-layout-body .sng-kit-input + .select2-container.select2-container--open .select2-selection--single {
    background: rgba(15, 17, 38, 0.85) !important;
    border-color: var(--kit-ice) !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.15) !important;
}

body.shell-layout-body select.sng-kit-input.input-validation-error + .select2-container .select2-selection--single,
body.shell-layout-body select.sng-kit-input.input-validation-error + .select2-container .select2-selection--multiple {
    border-color: var(--c-danger) !important;
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.12) !important;
}

.sng-tw-modal-overlay:has(.sng-kit-modal) .select2-dropdown,
.sng-tw-modal-overlay:has(.sng-kit-sheet) .select2-dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(189, 0, 255, 0.2) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.05) !important;
}

html[data-theme="dark"] .sng-tw-modal-overlay:has(.sng-kit-modal) .select2-dropdown,
html[data-theme="dark"] .sng-tw-modal-overlay:has(.sng-kit-sheet) .select2-dropdown {
    background: rgba(10, 11, 28, 0.98) !important;
    border: 1px solid rgba(0, 229, 255, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.sng-tw-modal-overlay:has(.sng-kit-modal) .select2-results__option--highlighted[aria-selected],
.sng-tw-modal-overlay:has(.sng-kit-sheet) .select2-results__option--highlighted[aria-selected] {
    background-color: #bd00ff !important;
    color: #fff !important;
}

html[data-theme="dark"] .sng-tw-modal-overlay:has(.sng-kit-modal) .select2-results__option--highlighted[aria-selected],
html[data-theme="dark"] .sng-tw-modal-overlay:has(.sng-kit-sheet) .select2-results__option--highlighted[aria-selected] {
    background-color: #00e5ff !important;
    color: #03030a !important;
}

.sng-kit-modal-wide {
    max-width: min(56rem, calc(100vw - 1.5rem));
    width: 100%;
}

/* سایز لگسی Bootstrap روی شیت کیت — همان نام کلاس را نگه دار */
.sng-tw-modal-sheet.modal-sm {
    max-width: min(28rem, calc(100vw - 1.5rem));
    width: 100%;
}

.sng-tw-modal-sheet.modal-md {
    max-width: min(32rem, calc(100vw - 1.5rem));
    width: 100%;
}

.sng-tw-modal-sheet.modal-lg {
    max-width: min(56rem, calc(100vw - 1.5rem));
    width: 100%;
}

.sng-tw-modal-sheet.modal-xl {
    max-width: min(72rem, calc(100vw - 1.5rem));
    width: 100%;
}

.sng-tw-modal-sheet.modal-fs {
    max-width: calc(100vw - 1.5rem);
    width: 100%;
    height: calc(100vh - 2rem);
    max-height: calc(100vh - 2rem);
}

.sng-kit-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sng-kit-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sng-kit-form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* سلول گرید به عرض ستون کشیده شود؛ select بومی از intrinsic width جمع نشود */
.sng-kit-form-grid > div,
.sng-kit-form-grid > fieldset,
.sng-kit-form-grid > .sng-kit-fieldset,
.sng-kit-form-grid-2 > div,
.sng-kit-form-grid-2 > fieldset,
.sng-kit-form-grid-2 > .sng-kit-fieldset {
    min-width: 0;
    width: 100%;
}

:is(.sng-kit-form-grid, .sng-kit-form-grid-2, .sng-kit-filter-bar, .sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-panel, .sng-kit-fieldset) select.sng-kit-input:not([multiple]),
:is(.sng-kit-form-grid, .sng-kit-form-grid-2, .sng-kit-filter-bar, .sng-kit-page, .sng-kit-modal, .sng-kit-sheet, .sng-kit-panel, .sng-kit-fieldset) .sng-kit-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

.sng-kit-form-grid .sng-kit-select {
    width: 100%;
    min-width: 0;
}

.sng-kit-form-grid > .sng-kit-span-all,
.sng-kit-form-grid > .sng-kit-divider {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
}

@media (min-width: 768px) {
    .sng-kit-form-grid.sng-kit-form-grid-4 > .sng-kit-span-2 {
        grid-column: span 2;
    }
}

.sng-kit-phone-row {
    display: flex;
    flex-direction: row;
    direction: ltr;
    align-items: stretch;
    gap: 0;
}

.sng-kit-phone-row > input.sng-kit-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.sng-kit-phone-code {
    flex: 0 0 auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding-inline: 0.85rem;
    direction: ltr;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
    border-inline-end-width: 0;
}

#qlfnMap {
    height: 28rem;
    width: 70%;
    margin-inline: auto;
}

#qlfnPreviewMeta .qlfn-preview-lines {
    height: auto;
    min-height: var(--sng-kit-control-h, 3.4rem);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

#qlfnPublicRider .sng-kit-hint {
    margin: 0 0 0.35rem;
    font-size: 10px;
}

.qlfn-radio-fit {
    width: max-content;
    max-width: 100%;
}

.qlfn-letter-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qlfn-letter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.qlfn-photo-wrap {
    max-width: 28rem;
    margin-inline: auto;
}

@media (min-width: 960px) {
    .qlfn-letter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.qlfn-letter-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.qlfn-letter-action > .sng-kit-btn {
    width: auto;
    max-width: 100%;
    height: auto;
    white-space: normal;
}

.sng-kit-form-grid.sng-kit-form-grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .sng-kit-form-grid.sng-kit-form-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sng-kit-form-grid.sng-kit-form-grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .sng-kit-form-grid.sng-kit-form-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sng-kit-form-grid.sng-kit-form-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sng-kit-divider {
    border: 0;
    border-top: 1.5px dashed rgba(189, 0, 255, 0.18);
    margin: 0.25rem 0 0.5rem;
}

html[data-theme="dark"] .sng-kit-divider {
    border-top-color: rgba(0, 229, 255, 0.18);
}

.sng-kit-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 10px;
    font-weight: 700;
    color: var(--kit-muted);
    line-height: 1.6;
}

html[data-theme="dark"] .sng-kit-hint {
    color: #94a3b8;
}

.sng-kit-inline-error {
    display: none;
    margin-top: 0.4rem;
    font-size: 11px;
    font-weight: 800;
    color: var(--kit-red);
}

    .sng-kit-inline-error.is-on {
        display: block;
    }

.sng-kit-radio-seg {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(189, 0, 255, 0.18);
    border-radius: 1rem;
    padding: 0.35rem;
    gap: 0.25rem;
}

html[data-theme="dark"] .sng-kit-radio-seg {
    background: rgba(5, 6, 15, 0.55);
    border-color: rgba(0, 229, 255, 0.18);
}

.sng-kit-radio-seg > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sng-kit-radio-seg > label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    white-space: nowrap;
    text-align: center;
    padding: 0.65rem 0.4rem;
    font-weight: 900;
    font-size: 10px;
    line-height: 1.3;
    cursor: pointer;
    border-radius: 0.75rem;
    color: var(--kit-muted);
    transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.sng-kit-radio-seg.is-wrap {
    flex-wrap: wrap;
}

    .sng-kit-radio-seg.is-wrap > label {
        flex: 1 1 calc(50% - 0.25rem);
        white-space: normal;
    }

.sng-kit-radio-seg > input[type="radio"]:checked + label {
    background: rgba(189, 0, 255, 0.12);
    color: var(--kit-purple);
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.08);
}

html[data-theme="dark"] .sng-kit-radio-seg > input[type="radio"]:checked + label {
    background: rgba(0, 229, 255, 0.12);
    color: var(--kit-ice);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
}

.sng-kit-radio-seg > input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--kit-purple);
    outline-offset: 2px;
}

html[data-theme="dark"] .sng-kit-radio-seg > input[type="radio"]:focus-visible + label {
    outline-color: var(--kit-ice);
}

.sng-kit-radio-seg:has(.input-validation-error) {
    border-color: var(--kit-red);
}

.input-validation-error {
    border-color: var(--kit-red) !important;
}

/* ========== تب (جایگزین nav-tabs) ========== */
.sng-kit-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    position: relative;
    gap: 0.15rem;
    margin-bottom: 1rem;
    padding: 0 0.15rem;
    border-bottom: 1px solid rgba(189, 0, 255, 0.18);
}

    .sng-kit-tabs.is-full {
        width: 100%;
    }

        .sng-kit-tabs.is-full > label {
            flex: 1 1 0;
        }

html[data-theme="dark"] .sng-kit-tabs {
    border-bottom-color: rgba(0, 229, 255, 0.22);
}

.sng-kit-tabs > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sng-kit-tabs > label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.15rem;
    margin-bottom: -1px;
    font-weight: 900;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    color: var(--kit-muted);
    border-bottom: 2px solid transparent;
    border-radius: 0.75rem 0.75rem 0 0;
    transition: all 0.3s;
}

    .sng-kit-tabs > label:hover {
        color: var(--kit-purple);
        background: rgba(189, 0, 255, 0.06);
    }

html[data-theme="dark"] .sng-kit-tabs > label:hover {
    color: var(--kit-ice);
    background: rgba(0, 229, 255, 0.08);
}

.sng-kit-tabs > input[type="radio"]:checked + label {
    color: var(--kit-purple);
    background: rgba(189, 0, 255, 0.1);
    border-bottom-color: var(--kit-purple);
    box-shadow: 0 4px 12px rgba(189, 0, 255, 0.08);
}

html[data-theme="dark"] .sng-kit-tabs > input[type="radio"]:checked + label {
    color: var(--kit-ice);
    background: rgba(0, 229, 255, 0.1);
    border-bottom-color: var(--kit-ice);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.18);
}

.sng-kit-tabs > input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--kit-purple);
    outline-offset: 2px;
}

html[data-theme="dark"] .sng-kit-tabs > input[type="radio"]:focus-visible + label {
    outline-color: var(--kit-ice);
}

@media (max-width: 640px) {
    .sng-kit-tabs > label {
        flex: 1 1 auto;
        white-space: normal;
        font-size: 10px;
        padding: 0.65rem 0.7rem;
    }
}

.sng-kit-tabs-pane {
    display: none;
}

    .sng-kit-tabs-pane.is-active {
        display: block;
    }

.sng-kit-affix {
    position: relative;
}

    .sng-kit-affix .sng-kit-input {
        padding-right: 2.7rem;
    }

    .sng-kit-affix.has-end .sng-kit-input {
        padding-left: 2.7rem;
    }

    .sng-kit-affix.has-code .sng-kit-input {
        padding-left: 3.1rem;
    }

.sng-kit-affix-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--kit-purple);
    pointer-events: none;
    font-size: 0.9rem;
}

html[data-theme="dark"] .sng-kit-affix-icon {
    color: var(--kit-ice);
}

.sng-kit-affix-end,
.sng-kit-pass-eye {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--kit-muted);
    cursor: pointer;
    border-radius: 0.5rem;
}

    .sng-kit-affix-end:hover,
    .sng-kit-pass-eye:hover {
        color: var(--kit-purple);
    }

html[data-theme="dark"] .sng-kit-affix-end:hover,
html[data-theme="dark"] .sng-kit-pass-eye:hover {
    color: var(--kit-ice);
}

.sng-kit-affix-code {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 900;
    color: var(--kit-purple);
    direction: ltr;
    pointer-events: none;
}

html[data-theme="dark"] .sng-kit-affix-code {
    color: var(--kit-ice);
}

.sng-kit-input-action {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.sng-kit-input-action > input.sng-kit-input {
    flex: 1 1 8rem;
    width: auto;
    min-width: 0;
}

    .sng-kit-input-action .sng-kit-affix {
        flex: 1 1 10rem;
        min-width: 0;
    }

    .sng-kit-input-action .sng-kit-btn {
        flex: 0 1 auto;
        min-height: var(--sng-kit-control-h, 3.4rem);
        white-space: nowrap;
    }

.sng-kit-card-digits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    direction: ltr;
}

    .sng-kit-card-digits .sng-kit-input {
        min-width: 0;
        width: 100%;
        text-align: center;
        padding-inline: 0.4rem;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.06em;
    }

.sng-kit-panel {
    border-radius: 1rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(189, 0, 255, 0.14);
}

html[data-theme="dark"] .sng-kit-panel {
    background: rgba(10, 11, 28, 0.45);
    border-color: rgba(0, 229, 255, 0.14);
}

.sng-kit-panel.is-narrow {
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
}

/* ========== upload (تصویر رسید / فایل) ========== */
.sng-kit-upload {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.55rem 0.85rem 0.55rem 0.7rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px dashed rgba(189, 0, 255, 0.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s;
}

html[data-theme="dark"] .sng-kit-upload {
    background: rgba(10, 11, 28, 0.42);
    border-color: rgba(0, 229, 255, 0.28);
}

.sng-kit-upload:hover {
    border-color: rgba(189, 0, 255, 0.5);
    box-shadow: 0 8px 22px rgba(189, 0, 255, 0.08);
    transform: translateY(-1px);
}

html[data-theme="dark"] .sng-kit-upload:hover {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.sng-kit-upload-thumb {
    flex: 0 0 3.75rem;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.85rem;
    overflow: hidden;
    background: rgba(189, 0, 255, 0.08);
    border: 1px solid rgba(189, 0, 255, 0.16);
}

html[data-theme="dark"] .sng-kit-upload-thumb {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.22);
}

.sng-kit-upload-thumb img,
.sng-kit-upload-thumb .picture-src {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.sng-kit-upload-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

    .sng-kit-upload-body .sng-kit-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.7rem;
        gap: 0.45rem;
    }

    .sng-kit-upload-body .sng-kit-btn-icon {
        font-size: 0.85rem;
    }

    .sng-kit-upload-body .sng-kit-btn-sep {
        height: 0.9rem;
    }

    .sng-kit-upload-body .sng-kit-hint {
        margin-top: 0;
        font-size: 9px;
    }

    .sng-kit-upload-body .reg-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.7rem;
    }

/* ========== dropzone رسید ========== */
.sng-kit-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}
.sng-kit-dropzone-surface {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 9.25rem;
    margin: 0;
    padding: 1.15rem 1rem;
    text-align: center;
    border-radius: 1.25rem;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(189, 0, 255, 0.1), transparent 55%),
        rgba(255, 255, 255, 0.55);
    border: 1.5px dashed rgba(189, 0, 255, 0.38);
    color: inherit;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    overflow: hidden;
}
html[data-theme="dark"] .sng-kit-dropzone-surface {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(0, 229, 255, 0.12), transparent 55%),
        rgba(10, 11, 28, 0.42);
    border-color: rgba(0, 229, 255, 0.36);
}
.sng-kit-dropzone-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 100px;
    touch-action: manipulation;
}
.sng-kit-dropzone-surface:hover,
.sng-kit-dropzone.is-dragover .sng-kit-dropzone-surface {
    border-color: rgba(189, 0, 255, 0.7);
    box-shadow: 0 10px 28px rgba(189, 0, 255, 0.14);
    border-style: solid;
}
html[data-theme="dark"] .sng-kit-dropzone-surface:hover,
html[data-theme="dark"] .sng-kit-dropzone.is-dragover .sng-kit-dropzone-surface {
    border-color: rgba(0, 229, 255, 0.7);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.22);
}
.sng-kit-dropzone.is-invalid .sng-kit-dropzone-surface {
    border-color: var(--c-danger);
    background: var(--bg-danger-soft, rgba(255, 23, 68, 0.08));
}
.sng-kit-dropzone-idle,
.sng-kit-dropzone-preview {
    position: relative;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
}
.sng-kit-dropzone-idle.hidden,
.sng-kit-dropzone-preview.hidden,
.sng-kit-dropzone-clear.hidden,
.sng-kit-dropzone-error.hidden,
.sng-kit-dropzone-pdf.hidden,
.sng-kit-dropzone-img.hidden {
    display: none !important;
}
.sng-kit-dropzone-icon,
.sng-kit-dropzone-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(189, 0, 255, 0.12);
    color: var(--kit-purple, #bd00ff);
    font-size: 1.2rem;
}
html[data-theme="dark"] .sng-kit-dropzone-icon,
html[data-theme="dark"] .sng-kit-dropzone-pdf {
    background: rgba(0, 229, 255, 0.14);
    color: var(--kit-ice, #00e5ff);
}
.sng-kit-dropzone-pdf {
    color: #e11d48;
    background: rgba(225, 29, 72, 0.12);
    font-size: 1.35rem;
}
.sng-kit-dropzone-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.65;
}
.sng-kit-dropzone-sub {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 18rem;
}
.sng-kit-dropzone-dnd { display: none; }
.sng-kit-dropzone-tap { display: block; }
@media (hover: hover) and (pointer: fine) {
    .sng-kit-dropzone-dnd { display: block; }
    .sng-kit-dropzone-tap { display: none; }
}
.sng-kit-dropzone.is-filled .sng-kit-dropzone-surface {
    min-height: 0;
    text-align: right;
    padding: 0.85rem 2.6rem 0.85rem 0.9rem;
}
.sng-kit-dropzone.is-filled .sng-kit-dropzone-preview {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
}
.sng-kit-dropzone-img {
    width: 100%;
    max-height: 9.5rem;
    object-fit: contain;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.04);
}
.sng-kit-dropzone.is-filled .sng-kit-dropzone-img,
.sng-kit-dropzone.is-filled .sng-kit-dropzone-pdf {
    width: 3.5rem;
    height: 3.5rem;
    max-height: none;
    object-fit: cover;
    flex-shrink: 0;
}
.sng-kit-dropzone-file {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    text-align: right;
}
.sng-kit-dropzone-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    word-break: break-all;
}
.sng-kit-dropzone-meta {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}
.sng-kit-dropzone-clear {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 4;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.7rem;
    cursor: pointer;
    background: rgba(255, 23, 68, 0.14);
    color: var(--c-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}
.sng-kit-dropzone-error {
    font-size: 11px;
    font-weight: 800;
    color: var(--c-danger);
    line-height: 1.55;
}

/* ========== مودال پیش‌پرداخت پنل دانش‌آموز ========== */
.sng-kit-prepay-sheet {
    max-height: min(90dvh, calc(100dvh - 0.75rem));
}
.sng-kit-prepay-head-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.85rem;
    background: rgba(189, 0, 255, 0.12);
    color: var(--kit-purple, #bd00ff);
    font-size: 1.05rem;
    flex-shrink: 0;
}
html[data-theme="dark"] .sng-kit-prepay-head-icon {
    background: rgba(0, 229, 255, 0.14);
    color: var(--kit-ice, #00e5ff);
}
.sng-kit-prepay-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.sng-kit-prepay-alert {
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
}
.sng-kit-prepay-alert.is-warning {
    border: 1px solid var(--c-warning);
    background: var(--bg-warning-soft);
    color: var(--c-warning);
}
.sng-kit-prepay-alert.is-danger {
    border: 1px solid var(--c-danger);
    background: var(--bg-danger-soft);
    color: var(--c-danger);
}
.sng-kit-prepay-alert.is-info {
    border: 1px solid var(--c-info);
    background: var(--bg-info-soft);
    color: var(--c-info);
}
.sng-kit-prepay-msg {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 1.1rem;
    background: var(--bg-slate-soft, rgba(15, 23, 42, 0.04));
    border: 1px solid var(--border-main);
    border-right: 3px solid var(--kit-purple, #bd00ff);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.85;
    color: var(--text-main);
}
html[data-theme="dark"] .sng-kit-prepay-msg {
    border-right-color: var(--kit-ice, #00e5ff);
}
.sng-kit-prepay-amount {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 1.25rem;
    background:
        linear-gradient(135deg, rgba(189, 0, 255, 0.16), rgba(189, 0, 255, 0.04) 55%, transparent),
        var(--bg-card);
    border: 1px solid rgba(189, 0, 255, 0.22);
}
html[data-theme="dark"] .sng-kit-prepay-amount {
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(0, 229, 255, 0.04) 55%, transparent),
        var(--bg-card);
    border-color: rgba(0, 229, 255, 0.24);
}
.sng-kit-prepay-amount-kicker {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}
.sng-kit-prepay-amount-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.45rem;
    direction: ltr;
}
.sng-kit-prepay-amount-value {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.sng-kit-prepay-amount-unit {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
}
.sng-kit-prepay-head-amount {
    font-size: 11px;
    font-weight: 800;
    color: var(--kit-purple, #bd00ff);
    margin: 0;
}
html[data-theme="dark"] .sng-kit-prepay-head-amount {
    color: var(--kit-ice, #00e5ff);
}
.sng-kit-prepay-or {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted);
}
.sng-kit-prepay-or::before,
.sng-kit-prepay-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-main);
}
.sng-kit-prepay-section-hint {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.7;
}
.sng-kit-prepay-section-title {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}
.sng-kit-prepay-upload { margin-top: 0.15rem; }
.sng-kit-prepay-gateway {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    background: var(--kit-purple, #bd00ff);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    border: 0;
}
html[data-theme="dark"] .sng-kit-prepay-gateway {
    background: var(--kit-ice, #00e5ff);
    color: #0a0b1c;
}
.sng-kit-prepay-gateway:hover { filter: brightness(1.06); color: #fff; }
html[data-theme="dark"] .sng-kit-prepay-gateway:hover { color: #0a0b1c; }
.sng-kit-prepay-account {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 0.9rem 0.35rem;
    border-radius: 1.2rem;
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(30, 27, 75, 0.88));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}
html[data-theme="dark"] .sng-kit-prepay-account {
    background: linear-gradient(160deg, rgba(8, 12, 32, 0.95), rgba(12, 48, 58, 0.9));
}
.sng-kit-prepay-account-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 11px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.35rem;
}
.sng-kit-prepay-account .sng-kit-pay-row {
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 0.7rem 0;
}
.sng-kit-prepay-account .sng-kit-pay-row-label {
    color: rgba(255, 255, 255, 0.55);
}
.sng-kit-prepay-account .sng-kit-pay-row-value {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.04em;
}
.sng-kit-prepay-account .sng-kit-pay-copy {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    min-width: 3.4rem;
}
.sng-kit-pay-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.sng-kit-pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.9rem;
    background: var(--bg-body);
    border: 1px solid var(--border-main);
}
.sng-kit-pay-row-label {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-muted);
}
.sng-kit-pay-row-value {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    direction: ltr;
    text-align: left;
    word-break: break-all;
}
.sng-kit-pay-copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    width: auto;
    min-width: 3.4rem;
    min-height: 2rem;
    padding: 0.2rem 0.55rem;
    border: 0;
    border-radius: 0.65rem;
    cursor: pointer;
    background: rgba(189, 0, 255, 0.14);
    color: var(--kit-purple, #bd00ff);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}
.sng-kit-pay-copy i { font-size: 0.85rem; }
html[data-theme="dark"] .sng-kit-pay-copy {
    background: rgba(0, 229, 255, 0.12);
    color: var(--kit-ice, #00e5ff);
}
.sng-kit-amount-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: 1.15rem;
    background: var(--bg-primary-soft, rgba(189, 0, 255, 0.08));
    border: 1px solid rgba(189, 0, 255, 0.18);
}
html[data-theme="dark"] .sng-kit-amount-card {
    border-color: rgba(0, 229, 255, 0.22);
}
.sng-kit-amount-card-kicker {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-muted);
}
.sng-kit-amount-card-value {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--c-danger);
    font-variant-numeric: tabular-nums;
    direction: ltr;
    text-align: right;
}
.sng-kit-amount-card-hint {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
}

/* ========== fieldset / legend ========== */
.sng-kit-fieldset {
    margin: 0;
    min-inline-size: 0;
    padding: 1.15rem 1.1rem 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(189, 0, 255, 0.2);
    backdrop-filter: blur(20px);
}

html[data-theme="dark"] .sng-kit-fieldset {
    background: rgba(10, 11, 28, 0.42);
    border-color: rgba(0, 229, 255, 0.25);
}

.sng-kit-fieldset > form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sng-kit-legend {
    float: none;
    width: auto;
    padding-inline: 0.45rem;
    font-size: 11px;
    font-weight: 900;
    color: var(--kit-purple);
}

html[data-theme="dark"] .sng-kit-legend {
    color: var(--kit-ice);
}

.sng-kit-role-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 3.25rem;
}

.sng-kit-role-empty {
    font-size: 10px;
    font-weight: 700;
    color: var(--kit-muted);
    padding: 0.5rem 0.25rem;
}

.sng-kit-role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(189, 0, 255, 0.1);
}

html[data-theme="dark"] .sng-kit-role-item {
    background: rgba(5, 6, 15, 0.55);
    border-color: rgba(0, 229, 255, 0.12);
}

.sng-kit-role-item.is-cancel {
    opacity: 0.7;
    border-style: dashed;
}

.sng-kit-role-title {
    font-size: 11px;
    font-weight: 900;
    color: var(--kit-text);
}

html[data-theme="dark"] .sng-kit-role-title {
    color: #e2e8f0;
}

.sng-kit-role-meta {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--kit-muted);
}

.sng-kit-badge {
    display: inline-flex;
    align-items: center;
    margin-right: 0.35rem;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.4;
    background: var(--bg-warning-soft);
    color: var(--c-warning);
}

.sng-kit-badge-muted {
    display: inline-flex;
    align-items: center;
    background: var(--bg-slate-soft);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.4;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
}

.sng-kit-bool-yes,
.sng-kit-bool-no {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

.sng-kit-bool-yes {
    color: var(--c-success);
}

.sng-kit-bool-no {
    color: var(--c-danger);
}

/* ========== Table checkbox ========== */
.sng-kit-check {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--c-primary);
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.3s;
}

    .sng-kit-check:hover {
        transform: scale(1.08);
    }

/* ========== Role chip with checkbox ========== */
.sng-kit-ucc-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.sng-kit-btn.sng-kit-ucc-link {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: var(--sng-kit-control-h, 2.75rem);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.7;
    text-align: right;
    justify-content: flex-start;
    align-items: center;
}

html[data-theme="dark"] .sng-kit-btn.sng-kit-ucc-link {
    white-space: normal;
}

.sng-kit-ucc-dep {
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(189, 0, 255, 0.16);
    background: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .sng-kit-ucc-dep {
    border-color: rgba(0, 229, 255, 0.16);
    background: rgba(10, 11, 28, 0.45);
}

.sng-kit-ucc-dep.is-block {
    border-color: rgba(220, 38, 38, 0.4);
}

.sng-kit-ucc-dep.is-cascade {
    border-color: rgba(217, 119, 6, 0.4);
}

.sng-kit-ucc-sql-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.sng-kit-ucc-sql-count {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    direction: ltr;
}

.sng-kit-ucc-sql-count.is-full { color: #e11d48; }

.sng-kit-ucc-drafts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.sng-kit-ucc-drafts:empty { display: none; }

.sng-kit-ucc-draft {
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(189, 0, 255, 0.16);
    background: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .sng-kit-ucc-draft {
    border-color: rgba(0, 229, 255, 0.16);
    background: rgba(10, 11, 28, 0.45);
}

.sng-kit-ucc-draft-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.sng-kit-ucc-draft-title {
    margin: 0;
    min-width: 0;
    flex: 1;
    font-size: 0.8rem;
    font-weight: 800;
    direction: ltr;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-main);
}

.sng-kit-ucc-draft-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.sng-kit-btn.sng-kit-ucc-draft-btn {
    height: 2rem;
    padding-inline: 0.65rem;
    font-size: 0.75rem;
}

.sng-kit-ucc-draft-edit {
    width: 100%;
    margin-top: 0.5rem;
    min-height: 7rem;
    direction: ltr;
}

.sng-kit-chip-list {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    justify-content: flex-start;
    direction: rtl;
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
    width: max-content;
    max-width: none;
}

.sng-kit-chip-check {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 999px;
    transition: all 0.3s;
}

    .sng-kit-chip-check label {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin: 0;
        padding: 0.3rem 0.75rem;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 800;
        line-height: 1.4;
        cursor: pointer;
        border: 1px solid color-mix(in srgb, var(--c-primary) 25%, transparent);
        color: var(--text-muted);
        transition: all 0.3s;
    }

    .sng-kit-chip-check input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        accent-color: var(--c-primary);
        cursor: pointer;
        margin: 0;
    }

    .sng-kit-chip-check:hover {
        transform: translateY(-2px);
    }

    .sng-kit-chip-check.is-on label {
        background: var(--bg-success-soft);
        border-color: color-mix(in srgb, var(--c-success) 40%, transparent);
        color: var(--c-success);
    }

    .sng-kit-chip-check.is-off label {
        background: var(--bg-slate-soft);
        border-color: color-mix(in srgb, var(--text-muted) 35%, transparent);
        color: var(--text-muted);
    }

@media (max-width: 639px) {
    .sng-kit-toolbar-search {
        max-width: none;
    }

    .sng-kit-page {
        padding: 1.25rem;
        border-radius: 1.75rem;
    }
}


.clientside-validation-summary {
    max-height: 50px;
    overflow: auto;
}

.sng-kit-modal .clientside-validation-summary {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: 8.5rem;
    width: 100%;
}

.sng-kit-modal .clientside-validation-summary > span:empty {
    display: none;
}

.sng-kit-modal .clientside-validation-summary > .field-validation-error {
    display: block;
}

#qlfnWizardTabs.is-full {
    flex-wrap: nowrap;
}

#qlfnWizardTabs.is-full > label {
    flex: 1 1 0;
    min-width: 0;
}

.qlfn-step-check {
    color: #00c853;
    font-size: 0.75rem;
}

/* ========== Dashboard kit (company mockup + LayoutV2) ========== */
.sng-kit-dash {
    --dash-rgb-1: 37, 99, 235;
    --dash-rgb-2: 16, 185, 129;
    --dash-rgb-3: 217, 119, 6;
    --dash-rgb-4: 13, 148, 136;
    --dash-rgb-5: 139, 92, 246;
    --dash-rgb-6: 234, 88, 12;
    --dash-rgb-7: 225, 29, 72;
    --dash-rgb-8: 79, 70, 229;
    --dash-rgb-9: 219, 39, 119;
    --dash-card-bg: 0.05;
    --dash-card-border: 0.2;
    --dash-card-hover: 0.1;
    --dash-icon-bg: 0.15;
}

html[data-theme="dark"] .sng-kit-dash {
    --dash-rgb-1: 0, 242, 254;
    --dash-rgb-2: 0, 255, 135;
    --dash-rgb-3: 255, 204, 0;
    --dash-rgb-4: 0, 255, 204;
    --dash-rgb-5: 179, 46, 232;
    --dash-rgb-6: 255, 106, 0;
    --dash-rgb-7: 255, 8, 68;
    --dash-rgb-8: 129, 140, 248;
    --dash-rgb-9: 255, 0, 127;
    --dash-icon-bg: 0.2;
}

.sng-kit-dash .theme-1 {
    --t-rgb: var(--dash-rgb-1);
}

.sng-kit-dash .theme-2 {
    --t-rgb: var(--dash-rgb-2);
}

.sng-kit-dash .theme-3 {
    --t-rgb: var(--dash-rgb-3);
}

.sng-kit-dash .theme-4 {
    --t-rgb: var(--dash-rgb-4);
}

.sng-kit-dash .theme-5 {
    --t-rgb: var(--dash-rgb-5);
}

.sng-kit-dash .theme-6 {
    --t-rgb: var(--dash-rgb-6);
}

.sng-kit-dash .theme-7 {
    --t-rgb: var(--dash-rgb-7);
}

.sng-kit-dash .theme-8 {
    --t-rgb: var(--dash-rgb-8);
}

.sng-kit-dash .theme-9 {
    --t-rgb: var(--dash-rgb-9);
}

.sng-kit-dash-filter {
    background: var(--kit-surface, rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(189, 0, 255, 0.12);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}

html[data-theme="dark"] .sng-kit-dash-filter {
    background: rgba(10, 11, 28, 0.55);
    border-color: rgba(0, 229, 255, 0.14);
}

.sng-kit-dash-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: end;
}

@media (min-width: 768px) {
    .sng-kit-dash-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    }
}

.sng-kit-dash-filter .select2-container {
    width: 100% !important;
}

.sng-kit-dash-filter .select2-container--default .select2-selection--multiple,
.sng-kit-dash-filter .select2-container--default .select2-selection--single {
    min-height: var(--sng-kit-control-h, 3.4rem);
    border-radius: var(--sng-kit-control-radius, 1.15rem) !important;
    border: 1px solid rgba(189, 0, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

html[data-theme="dark"] .sng-kit-dash-filter .select2-container--default .select2-selection--multiple,
html[data-theme="dark"] .sng-kit-dash-filter .select2-container--default .select2-selection--single {
    background: rgba(5, 6, 15, 0.65) !important;
    border-color: rgba(0, 229, 255, 0.18) !important;
}

.sng-kit-dash-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
    .sng-kit-dash-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sng-kit-dash-stat {
    background: var(--kit-surface, #fff);
    border: 1px solid var(--border-main, #e2e8f0);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-right: 4px solid;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .sng-kit-dash-stat:hover {
        transform: translateY(-2px);
    }

    .sng-kit-dash-stat.is-blue {
        border-right-color: #3b82f6;
        background: rgba(59, 130, 246, 0.03);
    }

    .sng-kit-dash-stat.is-red {
        border-right-color: #ef4444;
        background: rgba(239, 68, 68, 0.03);
    }

    .sng-kit-dash-stat.is-green {
        border-right-color: #10b981;
        background: rgba(16, 185, 129, 0.03);
    }

.sng-kit-dash-stat-title {
    font-size: 0.9rem;
    color: var(--kit-muted);
    font-weight: 700;
    margin: 0 0 5px;
}

.sng-kit-dash-stat-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--kit-muted);
    margin: 4px 0 0;
}

.sng-kit-dash-stat-val {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
}

.sng-kit-dash-stat.is-blue .sng-kit-dash-stat-val,
.sng-kit-dash-stat.is-blue i {
    color: #3b82f6;
}

.sng-kit-dash-stat.is-red .sng-kit-dash-stat-val,
.sng-kit-dash-stat.is-red i {
    color: #ef4444;
}

.sng-kit-dash-stat.is-green .sng-kit-dash-stat-val,
.sng-kit-dash-stat.is-green i {
    color: #10b981;
}

html[data-theme="dark"] .sng-kit-dash-stat-val {
    text-shadow: 0 0 10px currentColor;
}

.sng-kit-dash-section {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--kit-head, #3b2c6f);
}

    .sng-kit-dash-section[class*="theme-"] {
        color: rgb(var(--t-rgb));
    }

.sng-kit-dash-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .sng-kit-dash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sng-kit-dash-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .sng-kit-dash-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sng-kit-dash-card {
    background: rgba(var(--t-rgb), var(--dash-card-bg));
    border: 1px solid rgba(var(--t-rgb), var(--dash-card-border));
    border-radius: 18px;
    padding: 16px 20px;
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

    .sng-kit-dash-card:hover {
        transform: translateY(-4px);
        background: rgba(var(--t-rgb), var(--dash-card-hover));
        border-color: rgba(var(--t-rgb), 0.5);
        box-shadow: 0 10px 25px rgba(var(--t-rgb), 0.15);
    }

html[data-theme="dark"] .sng-kit-dash-card:hover {
    box-shadow: 0 10px 25px rgba(var(--t-rgb), 0.4);
}

.sng-kit-dash-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 0.5rem;
}

.sng-kit-dash-card-title {
    flex: 1;
    min-width: 0;
    color: var(--kit-muted);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    padding-left: 1.75rem;
}

.sng-kit-dash-card:hover .sng-kit-dash-card-title {
    color: var(--kit-text, var(--text-main));
}

.sng-kit-dash-help {
    position: absolute;
    left: 15px;
    top: 15px;
    background: transparent;
    border: none;
    color: var(--kit-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.sng-kit-dash-card:hover .sng-kit-dash-help {
    color: rgb(var(--t-rgb));
}

.sng-kit-dash-middle {
    display: block;
    min-width: 0;
    container-type: inline-size;
    margin-bottom: 15px;
}

.sng-kit-dash-number {
    display: block;
    min-width: 0;
    max-width: 100%;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--kit-text, var(--text-main));
    line-height: 1.15;
}

@supports (font-size: 1cqi) {
    .sng-kit-dash-number {
        font-size: clamp(1.1rem, calc(100cqi / 14), 1.9rem);
    }
}

html[data-theme="dark"] .sng-kit-dash-card:hover .sng-kit-dash-number {
    color: rgb(var(--t-rgb));
    text-shadow: 0 0 10px rgba(var(--t-rgb), 0.5);
}

.sng-kit-dash-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: rgba(var(--t-rgb), var(--dash-icon-bg));
    color: rgb(var(--t-rgb));
    flex-shrink: 0;
    transition: 0.3s;
}

.sng-kit-dash-card:hover .sng-kit-dash-icon {
    transform: scale(1.06);
}

html[data-theme="dark"] .sng-kit-dash-icon {
    text-shadow: 0 0 8px rgb(var(--t-rgb));
}

.sng-kit-dash-hint {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: var(--kit-muted);
    margin: -8px 0 10px;
    line-height: 1.5;
}

.sng-kit-dash-bottom {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.sng-kit-dash-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgb(var(--t-rgb));
    padding: 4px 0;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    background: transparent;
    border: 0;
    text-align: right;
}

.sng-kit-dash-card:hover .sng-kit-dash-pill {
    background: rgba(var(--t-rgb), 0.15);
    padding: 6px 12px;
}

    .sng-kit-dash-card:hover .sng-kit-dash-pill i {
        transform: translateX(-5px);
    }

.sng-kit-dash-help-icon {
    position: absolute;
    top: -35px;
    right: 35px;
    left: auto;
    margin: 0;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    z-index: 10;
    pointer-events: none;
    background: rgb(var(--t-rgb, var(--dash-rgb-1)));
    box-shadow: 0 10px 20px rgba(var(--t-rgb, var(--dash-rgb-1)), 0.4);
    border: 4px solid var(--bg-body, #f4f7fb);
}

html[data-theme="dark"] .sng-kit-dash-help-icon {
    border-color: var(--bg-panel, #111827);
}

#modalDashboardHelp.sng-tw-modal-overlay {
    overflow: visible !important;
}

.sng-tw-modal-sheet.sng-kit-dash-help-sheet {
    overflow: visible !important;
    position: relative;
    margin-top: 2.5rem;
    border: 2px solid rgba(var(--t-rgb, var(--dash-rgb-1)), 0.3) !important;
}

.sng-kit-dash-help-sheet .sng-kit-close {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 3;
}

.sng-kit-dash-help-sheet .sng-tw-modal-body {
    overflow: visible;
    padding: 2.85rem 1.75rem 1.75rem;
}

.sng-kit-dash-help-title {
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--kit-text, var(--text-main));
    margin: 0 0 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--border-main, rgba(189, 0, 255, 0.18));
    text-align: right;
}

.sng-kit-dash-help-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.sng-kit-dash-help-ok {
    width: auto !important;
    min-width: 8.75rem;
    max-width: none;
    height: auto;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0.5rem 1.35rem;
    font-size: 0.8rem;
    border-radius: 12px;
}

.sng-kit-dash-help-body {
    background: rgba(189, 0, 255, 0.04);
    padding: 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--kit-muted);
    font-weight: 500;
}

html[data-theme="dark"] .sng-kit-dash-help-body {
    background: rgba(0, 229, 255, 0.06);
}

.sng-kit-sheet a.btn-outline-info,
.sng-kit-dash-sheet a.btn-outline-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(189, 0, 255, 0.25);
    color: var(--kit-purple);
    background: rgba(189, 0, 255, 0.08);
}

html[data-theme="dark"] .sng-kit-sheet a.btn-outline-info,
html[data-theme="dark"] .sng-kit-dash-sheet a.btn-outline-info {
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--kit-ice);
    background: rgba(0, 229, 255, 0.1);
}

/* ========== School / map / capacity / fieldset ========== */
.sng-kit-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
    align-items: flex-end;
    width: 100%;
}

    .sng-kit-filter-bar > .sng-kit-radio-seg {
        flex: 1 1 0%;
        min-width: 0;
    }

    .sng-kit-filter-bar.is-split {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: stretch;
        width: 100%;
    }

@media (min-width: 768px) {
    .sng-kit-filter-bar.is-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sng-kit-filter-bar.is-split > .sng-kit-fieldset {
    width: 100%;
    min-width: 0;
}

.sng-kit-filter-bar.is-split .select2-container,
.sng-kit-form-grid .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.sng-kit-filter-bar > .sng-kit-form-grid {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

.sng-kit-filter-actions {
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-height: var(--sng-kit-control-h, 3.4rem);
}

    .sng-kit-filter-actions.is-stack {
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
        gap: 0.5rem;
    }

.sng-kit-fieldset {
    margin: 0;
    padding: 0.9rem 1rem 1rem;
    min-width: 0;
    border-radius: 1.25rem;
    border: 1px solid rgba(189, 0, 255, 0.18);
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(20px);
}

html[data-theme="dark"] .sng-kit-fieldset {
    border-color: rgba(0, 229, 255, 0.22);
    background: rgba(10, 11, 28, 0.42);
}

.sng-kit-legend {
    float: none;
    width: auto;
    padding: 0 0.4rem;
    margin-bottom: 0.65rem;
    font-size: 11px;
    font-weight: 900;
    color: var(--kit-purple);
}

html[data-theme="dark"] .sng-kit-legend {
    color: var(--kit-ice);
}

.sng-kit-map-split {
    display: grid;
    gap: 1rem;
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .sng-kit-map-split {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.sng-kit-map-split.is-map-only {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: stretch;
}

    .sng-kit-map-split.is-map-only > .lpanel {
        width: 100%;
        max-width: 56rem;
        margin-inline: auto;
        justify-self: center;
    }

#frmSelectPath.is-show-path .sng-tw-modal-foot .sng-kit-btn-warn,
#frmSelectPath.is-show-path .sng-tw-modal-foot .sng-kit-btn-edit,
#frmSelectPath.is-show-path .sng-tw-modal-foot .sng-kit-btn-save {
    display: none;
}

#frmSelectPath #mapcontainer_path.sng-kit-map {
    height: 500px;
}

#frmSelectPath .sng-kit-map-split.is-map-only #mapcontainer_path.sng-kit-map {
    height: min(68vh, 42rem);
}

#frmSelectPath #mapcontainer_path.sng-kit-map .leaflet-container {
    height: 100%;
    width: 100%;
}

/* ========== انتخاب مسیر (مودال SelectPath) ========== */
.sng-kit-path-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    max-height: min(68vh, 42rem);
    overflow-y: auto;
    padding-right: 0.15rem;
}

    .sng-kit-path-panel > .sng-kit-btn {
        width: 100%;
        justify-content: center;
    }

.sng-kit-path-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.sng-kit-path-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.55rem 0.65rem;
    padding: 0.6rem 0.7rem;
    margin: 0;
    border-radius: 0.85rem;
    border: 1px solid rgba(189, 0, 255, 0.16);
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s, transform 0.2s;
    position: relative;
}

html[data-theme="dark"] .sng-kit-path-item {
    border-color: rgba(0, 229, 255, 0.18);
    background: rgba(10, 11, 28, 0.55);
}

.sng-kit-path-item:hover {
    border-color: rgba(189, 0, 255, 0.38);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(189, 0, 255, 0.08);
}

html[data-theme="dark"] .sng-kit-path-item:hover {
    border-color: rgba(0, 229, 255, 0.38);
    box-shadow: 0 4px 14px rgba(0, 229, 255, 0.1);
}

.sng-kit-path-item.is-selected {
    border-color: var(--kit-purple);
    background: rgba(189, 0, 255, 0.1);
    box-shadow: 0 0 16px rgba(189, 0, 255, 0.12);
}

html[data-theme="dark"] .sng-kit-path-item.is-selected {
    border-color: var(--kit-ice);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.14);
}

.sng-kit-path-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sng-kit-path-accent {
    width: 0.28rem;
    min-height: 2.1rem;
    align-self: stretch;
    border-radius: 999px;
    background: var(--path-color, var(--kit-purple));
    box-shadow: 0 0 10px color-mix(in srgb, var(--path-color, var(--kit-purple)) 45%, transparent);
}

.sng-kit-path-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    text-align: right;
}

.sng-kit-path-title {
    font-size: 10px;
    font-weight: 900;
    color: var(--kit-text);
    line-height: 1.45;
    white-space: normal;
}

html[data-theme="dark"] .sng-kit-path-title {
    color: #e2e8f0;
}

.sng-kit-path-sub {
    font-size: 9px;
    font-weight: 800;
    color: var(--kit-muted);
    line-height: 1.3;
}

.sng-kit-path-distance {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: 0.2rem 0.35rem;
    border-radius: 0.55rem;
    background: rgba(189, 0, 255, 0.07);
    font-size: 11px;
    font-weight: 900;
    color: var(--kit-purple);
    line-height: 1.15;
    text-align: center;
}

html[data-theme="dark"] .sng-kit-path-distance {
    background: rgba(0, 229, 255, 0.1);
    color: var(--kit-ice);
}

.sng-kit-path-distance small {
    font-size: 8px;
    font-weight: 800;
    color: var(--kit-muted);
    margin-top: 0.1rem;
}

.sng-kit-path-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    color: var(--kit-muted);
    opacity: 0;
    transition: opacity 0.2s, color 0.2s, background-color 0.2s;
}

.sng-kit-path-item.is-selected .sng-kit-path-tick {
    opacity: 1;
    color: #fff;
    background: var(--kit-purple);
}

html[data-theme="dark"] .sng-kit-path-item.is-selected .sng-kit-path-tick {
    background: var(--kit-ice);
    color: #0a0b1c;
}

.sng-kit-path-item.is-selected .sng-kit-path-tick i {
    font-size: 0.7rem;
}

.sng-kit-map {
    position: relative;
    height: 310px;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(189, 0, 255, 0.22);
    background: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] .sng-kit-map {
    border-color: rgba(0, 229, 255, 0.28);
    background: rgba(10, 11, 28, 0.45);
}

.sng-kit-map .leaflet-container,
#mapcontainer.sng-kit-map,
#mapcontainer_create.sng-kit-map,
#mapcontainer_edit.sng-kit-map,
#mapcontainer_location.sng-kit-map {
    height: 310px;
    width: 100%;
    border-radius: 1.25rem;
}

.sng-kit-cap-info {
    background: color-mix(in srgb, var(--c-info) 18%, transparent) !important;
}

.sng-kit-cap-success {
    background: color-mix(in srgb, var(--c-success) 20%, transparent) !important;
}

.sng-kit-cap-warning {
    background: color-mix(in srgb, var(--c-warning) 22%, transparent) !important;
}

.sng-kit-cap-danger {
    background: color-mix(in srgb, var(--c-danger) 20%, transparent) !important;
}

.sng-kit-alert-warn,
.sng-kit-alert-info,
.sng-kit-alert-success,
.sng-kit-alert-danger {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.7;
}

.sng-kit-alert-warn {
    color: var(--c-warning);
    background: var(--bg-warning-soft);
    border: 1px solid color-mix(in srgb, var(--c-warning) 28%, transparent);
}

.sng-kit-alert-info {
    color: var(--c-info);
    background: var(--bg-info-soft);
    border: 1px solid color-mix(in srgb, var(--c-info) 28%, transparent);
}

.sng-kit-alert-success {
    color: var(--c-success);
    background: var(--bg-success-soft);
    border: 1px solid color-mix(in srgb, var(--c-success) 28%, transparent);
}

.sng-kit-alert-danger {
    color: var(--c-danger);
    background: var(--bg-danger-soft);
    border: 1px solid color-mix(in srgb, var(--c-danger) 28%, transparent);
}

/* ========== Reason picker (کارتابل تعیین دلایل) ========== */
.sng-kit-reason-student {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1.6;
}

.sng-kit-reason-student .lbl {
    color: var(--c-primary);
    font-weight: 900;
}

.sng-kit-reason-intro {
    padding: 0.85rem 1rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(189, 0, 255, 0.16);
    backdrop-filter: blur(20px);
}

html[data-theme="dark"] .sng-kit-reason-intro {
    background: rgba(10, 11, 28, 0.45);
    border-color: rgba(0, 229, 255, 0.18);
}

.sng-kit-reason-intro-lead {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.8;
    color: var(--text-main);
}

.sng-kit-reason-intro-list {
    margin: 0.55rem 0 0;
    padding: 0 1.1rem 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.8;
    color: var(--text-muted);
}

.sng-kit-reason-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.sng-kit-reason-doc {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: var(--sng-kit-control-h, 2.75rem);
    padding: 0 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(189, 0, 255, 0.15);
    background: rgba(255, 255, 255, 0.5);
    color: var(--kit-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

html[data-theme="dark"] .sng-kit-reason-doc {
    background: rgba(10, 11, 28, 0.8);
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.08);
}

.sng-kit-reason-doc:hover {
    color: var(--kit-text);
    border-color: var(--kit-purple);
}

html[data-theme="dark"] .sng-kit-reason-doc:hover {
    color: #fff;
    border-color: var(--kit-ice);
}

.sng-kit-reason-exclusive {
    display: none;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: 1.15rem;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.7;
    color: var(--c-warning);
    background: var(--bg-warning-soft);
    border: 1px solid color-mix(in srgb, var(--c-warning) 32%, transparent);
}

.sng-tw-modal-form:has([data-iscontractual="True"]:checked) .sng-kit-reason-exclusive {
    display: flex;
}

.sng-kit-reason-exclusive > i {
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

.sng-kit-fieldset:has(.sng-kit-reason-pick) {
    margin-top: 0.85rem;
}

.sng-kit-reason-pick {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sng-kit-reason-item {
    margin: 0;
}

.sng-kit-reason-card {
    padding: 0.7rem 0.85rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(189, 0, 255, 0.14);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

html[data-theme="dark"] .sng-kit-reason-card {
    background: rgba(10, 11, 28, 0.42);
    border-color: rgba(0, 229, 255, 0.16);
}

.sng-kit-reason-item:not(.is-locked) .sng-kit-reason-card:hover {
    border-color: rgba(189, 0, 255, 0.38);
    box-shadow: 0 8px 20px rgba(189, 0, 255, 0.08);
}

html[data-theme="dark"] .sng-kit-reason-item:not(.is-locked) .sng-kit-reason-card:hover {
    border-color: rgba(0, 229, 255, 0.42);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.16);
}

.sng-kit-reason-item:has(input:checked) .sng-kit-reason-card {
    border-color: rgba(189, 0, 255, 0.5);
    background: color-mix(in srgb, var(--c-primary) 8%, rgba(255, 255, 255, 0.72));
    box-shadow: 0 8px 22px rgba(189, 0, 255, 0.1);
}

html[data-theme="dark"] .sng-kit-reason-item:has(input:checked) .sng-kit-reason-card {
    border-color: rgba(0, 229, 255, 0.5);
    background: color-mix(in srgb, var(--c-primary) 16%, rgba(10, 11, 28, 0.55));
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
}

.sng-kit-reason-item.is-contractual:has(input:checked) .sng-kit-reason-card {
    border-color: color-mix(in srgb, var(--c-warning) 55%, transparent);
    background: color-mix(in srgb, var(--c-warning) 10%, rgba(255, 255, 255, 0.72));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--c-warning) 16%, transparent);
}

html[data-theme="dark"] .sng-kit-reason-item.is-contractual:has(input:checked) .sng-kit-reason-card {
    border-color: color-mix(in srgb, var(--c-warning) 50%, transparent);
    background: color-mix(in srgb, var(--c-warning) 14%, rgba(10, 11, 28, 0.55));
}

.sng-kit-reason-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.sng-kit-reason-item.is-locked .sng-kit-reason-main {
    cursor: default;
}

.sng-kit-reason-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    min-width: 0;
}

.sng-kit-reason-copy .name {
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.5;
}

.sng-kit-reason-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.sng-kit-reason-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.4;
    background: var(--bg-slate-soft);
    color: var(--text-muted);
}

.sng-kit-reason-chip.is-exclusive {
    background: var(--bg-warning-soft);
    color: var(--c-warning);
}

.sng-kit-reason-chip.is-file {
    background: var(--bg-danger-soft);
    color: var(--c-danger);
}

.sng-kit-reason-chip.is-file-opt,
.sng-kit-reason-chip.is-range,
.sng-kit-reason-chip.is-auto {
    background: var(--bg-info-soft);
    color: var(--c-info);
}

.sng-kit-reason-chip.is-lock {
    background: var(--bg-slate-soft);
    color: var(--text-muted);
}

.sng-kit-reason-delta {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
    direction: ltr;
}

.sng-kit-reason-delta.is-up {
    background: var(--bg-success-soft);
    color: var(--c-success);
}

.sng-kit-reason-delta.is-down {
    background: var(--bg-danger-soft);
    color: var(--c-danger);
}

.sng-kit-reason-delta.is-flat {
    background: var(--bg-slate-soft);
    color: var(--text-muted);
}

.sng-kit-reason-item .fileAndDsc {
    width: 100%;
    padding-top: 0.75rem;
    margin-top: 0.55rem;
    border-top: 1px dashed var(--border-main);
}

.sng-kit-reason-extra {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sng-kit-reason-contract,
.sng-kit-reason-range,
.sng-kit-reason-evidence {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sng-kit-reason-contract {
    padding: 0.85rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--c-warning) 8%, rgba(255, 255, 255, 0.55));
    border: 1px solid color-mix(in srgb, var(--c-warning) 28%, transparent);
}

html[data-theme="dark"] .sng-kit-reason-contract {
    background: color-mix(in srgb, var(--c-warning) 12%, rgba(10, 11, 28, 0.5));
    border-color: color-mix(in srgb, var(--c-warning) 32%, transparent);
}

.sng-kit-reason-contract-head {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.sng-kit-reason-contract-icon {
    flex: 0 0 2.4rem;
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: var(--bg-warning-soft);
    color: var(--c-warning);
    font-size: 1rem;
}

.sng-kit-reason-contract-head strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 900;
    color: var(--text-main);
}

.sng-kit-reason-contract-head p {
    margin: 0.2rem 0 0;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.7;
    color: var(--text-muted);
}

.sng-kit-reason-contract .sng-kit-alert-warn,
.sng-kit-reason-contract .sng-kit-alert-danger {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.sng-kit-reason-contract .sng-kit-alert-warn > i,
.sng-kit-reason-contract .sng-kit-alert-danger > i {
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

.sng-kit-reason-contract-field .sng-kit-input {
    text-align: left;
}

.sng-kit-reason-range {
    padding: 0.75rem 0.85rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(189, 0, 255, 0.12);
}

.sng-kit-reason-range .select2-container {
    width: 100% !important;
}

html[data-theme="dark"] .sng-kit-reason-range {
    background: rgba(10, 11, 28, 0.35);
    border-color: rgba(0, 229, 255, 0.14);
}

.sng-tw-modal-form:has([data-iscontractual="True"]:checked) .sng-kit-reason-item:not(:has([data-iscontractual="True"])) {
    opacity: 0.42;
    pointer-events: none;
    filter: grayscale(0.15);
}

@media (max-width: 639px) {
    .sng-kit-reason-main {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sng-kit-reason-delta {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sng-kit-reason-card {
        transition: none;
    }
}

.sng-kit-guide {
    position: relative;
}

.sng-kit-guide-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    z-index: 1200;
    min-width: 230px;
    max-height: 20rem;
    overflow: auto;
    padding: 0.35rem;
    border-radius: 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

    .sng-kit-guide-menu[hidden] {
        display: none !important;
    }

    .sng-kit-guide-menu a,
    #GuidContent a {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.4rem 0.55rem;
        border-radius: 0.6rem;
        font-size: 12px;
        font-weight: 700;
        color: var(--text-main);
        text-decoration: none;
    }

        .sng-kit-guide-menu a:hover,
        #GuidContent a:hover {
            background: var(--bg-primary-soft);
        }

#GuidContent hr {
    margin: 0.15rem 0;
    border-color: var(--border-main);
}

/* ========== Service price calc (CreateService) ========== */
.sng-kit-service-calc-monthly {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sng-kit-service-calc-monthly-title {
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    color: #9a3412;
    background: rgba(234, 88, 12, 0.12);
    border: 1px solid rgba(234, 88, 12, 0.28);
}

html[data-theme="dark"] .sng-kit-service-calc-monthly-title {
    color: #fdba74;
    background: rgba(234, 88, 12, 0.12);
    border-color: rgba(251, 146, 60, 0.35);
}

.sng-kit-service-calc-monthly-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .sng-kit-service-calc-monthly-list > li {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0;
    }

.sng-kit-service-calc-emphasis {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-main);
}

/* ========== File viewer modal ========== */
.sng-kit-file-viewer-frame iframe {
    width: 100%;
    min-height: 400px;
    border: 1px solid var(--border-main);
    border-radius: 1rem;
    background: var(--bg-panel);
}

.sng-kit-file-viewer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sng-kit-file-viewer-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
}

.sng-kit-file-viewer-meta-label {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-muted);
    white-space: nowrap;
}

.sng-kit-file-viewer-meta-value {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    color: var(--c-warning, #f59e0b);
}

html[data-theme="dark"] .sng-kit-file-viewer-meta-value {
    color: #fbbf24;
}

.sng-kit-file-viewer-related-title {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-main);
}

.sng-kit-file-viewer-related {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.sng-kit-file-viewer-related-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.35rem;
    min-width: 4.5rem;
    transition: transform 0.3s;
}

    .sng-kit-file-viewer-related-item:hover {
        transform: translateY(-2px);
    }

.sng-kit-file-viewer-related-thumb {
    width: 40px;
    height: 55px;
    border-radius: 8px;
    border: 2px solid var(--c-success, #00e676);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--c-success, #00e676);
    font-size: 1rem;
}

.sng-kit-file-viewer-related-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    line-height: 1.5;
}

/* ========== ماتریس انتخاب نوع جابجایی ========== */
.sng-kit-choice-table-wrap {
    overflow-x: auto;
    border-radius: 1.25rem;
    border: 1px solid rgba(189, 0, 255, 0.18);
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(20px);
}

html[data-theme="dark"] .sng-kit-choice-table-wrap {
    border-color: rgba(0, 229, 255, 0.22);
    background: rgba(10, 11, 28, 0.42);
}

.sng-kit-choice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

    .sng-kit-choice-table th,
    .sng-kit-choice-table td {
        padding: 0.7rem 0.75rem;
        text-align: center;
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
        border-bottom: 1px dashed var(--border-dash, rgba(189, 0, 255, 0.12));
    }

    .sng-kit-choice-table thead th {
        font-size: 10px;
        font-weight: 900;
        color: var(--kit-muted, var(--text-muted));
        background: rgba(189, 0, 255, 0.06);
    }

html[data-theme="dark"] .sng-kit-choice-table thead th {
    background: rgba(0, 229, 255, 0.08);
    color: var(--kit-ice);
}

.sng-kit-choice-table tbody tr {
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

    .sng-kit-choice-table tbody tr:hover {
        background: rgba(189, 0, 255, 0.06);
    }

html[data-theme="dark"] .sng-kit-choice-table tbody tr:hover {
    background: rgba(0, 229, 255, 0.08);
}

.sng-kit-choice-table tbody tr:has(input:checked) {
    background: rgba(189, 0, 255, 0.12);
    box-shadow: inset 3px 0 0 var(--kit-purple);
}

html[data-theme="dark"] .sng-kit-choice-table tbody tr:has(input:checked) {
    background: rgba(0, 229, 255, 0.12);
    box-shadow: inset 3px 0 0 var(--kit-ice);
}

.sng-kit-choice-table tbody tr:last-child td {
    border-bottom: 0;
}

.sng-kit-choice-table-pick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.sng-kit-choice-table input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    flex: 0 0 auto;
    border: 2px solid rgba(189, 0, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

html[data-theme="dark"] .sng-kit-choice-table input[type="radio"] {
    border-color: rgba(0, 229, 255, 0.4);
}

.sng-kit-choice-table input[type="radio"]:checked {
    border-color: var(--kit-purple);
    box-shadow: 0 0 0 4px rgba(189, 0, 255, 0.16);
    background: radial-gradient(circle, var(--kit-purple) 0 38%, transparent 42%);
}

html[data-theme="dark"] .sng-kit-choice-table input[type="radio"]:checked {
    border-color: var(--kit-ice);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.18);
    background: radial-gradient(circle, var(--kit-ice) 0 38%, transparent 42%);
}

.sng-kit-choice-note {
    font-size: 10px;
    font-weight: 800;
    color: var(--kit-muted, var(--text-muted));
    white-space: normal;
    text-align: right;
    line-height: 1.5;
    max-width: 11rem;
}

.sng-kit-choice-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.4;
}

    .sng-kit-choice-pill.is-same {
        color: var(--kit-muted, var(--text-muted));
        background: rgba(148, 163, 184, 0.16);
    }

    .sng-kit-choice-pill.is-changed {
        color: var(--c-warning);
        background: var(--bg-warning-soft, rgba(255, 152, 0, 0.16));
    }

    .sng-kit-choice-pill.is-mixed {
        color: var(--c-info, #29b6f6);
        background: color-mix(in srgb, var(--c-info, #29b6f6) 16%, transparent);
    }

html[data-theme="dark"] .sng-kit-choice-pill.is-same {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.14);
}

/* ========== Tooltip (LayoutV2, any [title]) ========== */
.sng-kit-tooltip {
    position: fixed;
    z-index: 1450;
    max-width: 18rem;
    padding: 0.45rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
    color: var(--text-main, #1e1b4b);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(189, 0, 255, 0.22);
    box-shadow: 0 10px 28px rgba(189, 0, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    word-break: break-word;
    white-space: normal;
}

html[data-theme="dark"] .sng-kit-tooltip {
    color: #e2e8f0;
    background: rgba(10, 11, 28, 0.96);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.22);
}

.sng-kit-tooltip.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.sng-kit-tooltip::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
    border: inherit;
    transform: rotate(45deg);
}

.sng-kit-tooltip.is-top::after {
    bottom: -5px;
    left: var(--arrow-shift, 50%);
    margin-left: -4px;
    border-top: 0;
    border-right: 0;
}

.sng-kit-tooltip.is-bottom::after {
    top: -5px;
    left: var(--arrow-shift, 50%);
    margin-left: -4px;
    border-bottom: 0;
    border-left: 0;
}

.sng-kit-tooltip.is-left::after {
    right: -5px;
    top: var(--arrow-shift-y, 50%);
    margin-top: -4px;
    border-bottom: 0;
    border-left: 0;
}

.sng-kit-tooltip.is-right::after {
    left: -5px;
    top: var(--arrow-shift-y, 50%);
    margin-top: -4px;
    border-top: 0;
    border-right: 0;
}

/* ========== Page guide (shell pageGuideModal) ========== */
.sng-kit-page-guide {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: right;
}

.sng-kit-page-guide-lead {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(189, 0, 255, 0.04);
    border: 1px solid rgba(189, 0, 255, 0.12);
    font-size: 0.8rem;
    line-height: 1.8;
    font-weight: 700;
    color: var(--kit-text, var(--text-main));
}

html[data-theme="dark"] .sng-kit-page-guide-lead {
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.18);
    color: var(--kit-text, var(--text-main));
}

.sng-kit-page-guide-item {
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(189, 0, 255, 0.12);
}

html[data-theme="dark"] .sng-kit-page-guide-item {
    background: rgba(10, 11, 28, 0.42);
    border-color: rgba(0, 229, 255, 0.16);
}

.sng-kit-page-guide-item-title {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--kit-purple, var(--c-primary));
}

html[data-theme="dark"] .sng-kit-page-guide-item-title {
    color: var(--kit-ice, #00e5ff);
}

.sng-kit-page-guide-item-text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.8;
    font-weight: 600;
    color: var(--kit-muted, var(--text-muted));
}

/* ========== Iranian plate input (kit pages) ========== */
.reg-plate-input {
    display: flex;
    width: 100%;
    max-width: 26rem;
    height: 3.5rem;
    margin-inline: auto;
    border: 2px solid #0f172a;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f8fafc;
    direction: ltr;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

html[data-theme="dark"] .reg-plate-input {
    border-color: #cbd5e1;
    background: #0f172a;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.plqArea:has([name="Plaque"].input-validation-error) .reg-plate-input {
    border-color: #f43f5e !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1) !important;
}

.reg-plate-input .reg-plate-blue {
    width: 2.125rem;
    background: linear-gradient(180deg, #1a4db3 0%, #003399 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0.2rem 0;
    flex-shrink: 0;
}

.reg-plate-input .reg-plate-flag {
    width: 1rem;
    height: 0.625rem;
    border-radius: 1px;
    overflow: hidden;
    background: linear-gradient(180deg, #239f40 0 33%, #fff 33% 66%, #da0000 66% 100%);
    position: relative;
}

.reg-plate-input .reg-plate-flag::after {
    content: '';
    position: absolute;
    inset: 33% 0 34%;
    background: radial-gradient(circle at 50% 50%, #da0000 0 1.2px, transparent 1.4px);
}

.reg-plate-input .reg-plate-ir {
    color: #fff;
    font-size: 0.38rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
}

.reg-plate-input .reg-plate-main {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 0.15rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0.2rem;
    cursor: text;
}

.reg-plate-input .reg-plate-main input,
.reg-plate-input .reg-plate-main select {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 0.15rem !important;
    text-align: center;
    font-weight: 900;
    font-size: 1.15rem;
    color: #0f172a;
    outline: none;
    font-variant-numeric: tabular-nums;
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.reg-plate-input .reg-plate-main input::-webkit-outer-spin-button,
.reg-plate-input .reg-plate-main input::-webkit-inner-spin-button,
.reg-plate-input .reg-plate-city input::-webkit-outer-spin-button,
.reg-plate-input .reg-plate-city input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

html[data-theme="dark"] .reg-plate-input .reg-plate-main input,
html[data-theme="dark"] .reg-plate-input .reg-plate-main select {
    color: #f1f5f9;
}

.reg-plate-input .reg-plate-main input::placeholder {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.85rem;
}

.reg-plate-input #txtPlate1,
.reg-plate-input #txtPlate1_CreateByCompany,
.reg-plate-input #txtPlate1_Edit,
.reg-plate-input #txtPlate1_Qlfn,
.reg-plate-input #txtPlate1_Ind {
    flex: 0.9 1 0;
}

.reg-plate-input #txtPlate2,
.reg-plate-input #txtPlate2_CreateByCompany,
.reg-plate-input #txtPlate2_Edit,
.reg-plate-input #txtPlate2_Qlfn,
.reg-plate-input #txtPlate2_Ind {
    flex: 1.2 1 0;
}

.reg-plate-input #ddlPlate,
.reg-plate-input #ddlPlate_CreateByCompany,
.reg-plate-input #ddlPlate_Edit,
.reg-plate-input #ddlPlate_Qlfn,
.reg-plate-input #ddlPlate_Ind {
    flex: 1 1 0;
    font-size: 0.95rem !important;
    cursor: pointer;
}

.reg-plate-input.is-letter-wait #ddlPlate_Ind,
.reg-plate-input.is-letter-wait #ddlPlate_Qlfn {
    flex: 1.7 1 0;
    font-size: 0.62rem !important;
    line-height: 1.15;
}

.reg-plate-input .reg-plate-city {
    width: 3.35rem;
    border-left: 2px solid #0f172a;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.1rem;
    background: #fff;
    flex-shrink: 0;
    padding: 0.15rem 0.2rem 0.25rem;
    cursor: text;
}

html[data-theme="dark"] .reg-plate-input .reg-plate-city {
    border-left-color: #cbd5e1;
    background: #1e293b;
}

.reg-plate-input .reg-plate-iran-label {
    font-size: 0.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    text-align: center;
}

html[data-theme="dark"] .reg-plate-input .reg-plate-iran-label {
    color: #e2e8f0;
}

.reg-plate-input .reg-plate-city input {
    width: 100% !important;
    flex: 1 1 auto;
    min-height: 1.5rem;
    font-size: 1rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
    font-weight: 900;
    color: #0f172a;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

html[data-theme="dark"] .reg-plate-input .reg-plate-city input {
    color: #f1f5f9;
}

@media (max-width: 480px) {
    .reg-plate-input {
        max-width: 100%;
        height: 3.25rem;
    }

    .reg-plate-input .reg-plate-main input,
    .reg-plate-input .reg-plate-main select {
        font-size: 1rem;
    }

    .reg-plate-input.is-choice .reg-plate-choice-d2,
    .reg-plate-input.is-choice .reg-plate-choice-letter,
    .reg-plate-input.is-choice .reg-plate-choice-d3 {
        font-size: 1rem;
    }
}

#qlfnKnownPlaques {
    width: 100%;
    max-width: 26rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#qlfnKnownPlaques.hidden { display: none; }

table.dataTable .qlfn-grid-plate {
    height: 2.15rem;
    max-width: 12.5rem;
    margin: 0;
    box-shadow: none;
    pointer-events: none;
}

.qlfn-copy-national {
    width: 1.35rem;
    height: 1.35rem;
    min-width: 1.35rem;
    padding: 0;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-main);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.65rem;
    line-height: 1;
}

.qlfn-copy-national:hover {
    color: var(--c-primary);
    border-color: var(--c-primary);
}

.qlfn-year-unit {
    width: auto;
    padding: 0 0.45rem;
    font-size: 11px;
    font-weight: 800;
    cursor: default;
    pointer-events: none;
}

.qlfn-restrict + .select2-container .select2-selection--multiple {
    min-height: 2.4rem;
}

.qlfn-restrict + .select2-container .select2-selection__rendered {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    padding: 0.35rem;
}

.qlfn-restrict + .select2-container .select2-selection__choice {
    float: none;
    width: 100%;
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    padding: 0.12rem 0.45rem;
    border-radius: 0.45rem;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #92400e;
}

html[data-theme="dark"] .qlfn-restrict + .select2-container .select2-selection__choice {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fcd34d;
}

.qlfn-restrict-drop .select2-results__option {
    font-size: 12px;
    line-height: 1.45;
    padding: 0.28rem 0.65rem;
}

.qlfn-restrict-drop .select2-results__option--highlighted {
    background: rgba(217, 119, 6, 0.16) !important;
    color: #92400e !important;
}

#qlfnDocList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 1024px) {
    #qlfnDocList {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.qlfn-doc-card {
    margin: 0;
    height: 100%;
}

.qlfn-doc-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.qlfn-doc-need {
    display: inline-flex;
    align-items: center;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-warning);
    background: var(--bg-warning-soft);
    border: 1px solid color-mix(in srgb, var(--c-warning) 40%, transparent);
}

.qlfn-doc-needed {
    border-color: color-mix(in srgb, var(--c-warning) 55%, transparent);
    background: color-mix(in srgb, var(--bg-warning-soft) 55%, transparent);
}

#qlfnPhotoSlot {
    max-width: none;
}

#qlfnPhotoSlot .qlfn-doc-card {
    height: auto;
}

.qlfn-doc-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.qlfn-doc-actions .sng-kit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
}

.select2-container.qlfn-ddl-busy {
    position: relative;
}

.select2-container.qlfn-ddl-busy::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset-inline-start: 0.55rem;
    top: 50%;
    width: 0.85rem;
    height: 0.85rem;
    margin-top: -0.425rem;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, currentColor 28%, transparent);
    border-top-color: currentColor;
    pointer-events: none;
    animation: qlfn-ddl-spin 0.6s linear infinite;
}

@keyframes qlfn-ddl-spin {
    to { transform: rotate(360deg); }
}

.qlfn-inspect-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.qlfn-inspect-head .spotlight {
    display: block;
    flex: 0 0 auto;
}

.qlfn-inspect-note {
    margin: 0 0 0.75rem;
}

.qlfn-inspect-photo {
    width: 7rem;
    height: 9rem;
    object-fit: cover;
    border-radius: 0.75rem;
    cursor: zoom-in;
}

.qlfn-inspect-head .sng-kit-form-grid {
    flex: 1 1 auto;
}

.qlfn-inspect-line {
    margin: 0 0 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.75rem;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
}

.qlfn-inspect-line.is-past {
    color: var(--c-danger);
    background: color-mix(in srgb, var(--c-danger) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c-danger) 35%, transparent);
}

.qlfn-inspect-line.is-near {
    color: var(--c-warning);
    background: color-mix(in srgb, var(--c-warning) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c-warning) 40%, transparent);
}

.qlfn-inspect-line.is-ok {
    color: var(--c-success);
    background: color-mix(in srgb, var(--c-success) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c-success) 35%, transparent);
}

html[data-theme="dark"] .qlfn-inspect-line.is-past {
    color: var(--c-danger);
    background: color-mix(in srgb, var(--c-danger) 18%, transparent);
    border-color: color-mix(in srgb, var(--c-danger) 45%, transparent);
}

html[data-theme="dark"] .qlfn-inspect-line.is-near {
    color: var(--c-warning);
    background: color-mix(in srgb, var(--c-warning) 18%, transparent);
    border-color: color-mix(in srgb, var(--c-warning) 45%, transparent);
}

html[data-theme="dark"] .qlfn-inspect-line.is-ok {
    color: var(--c-success);
    background: color-mix(in srgb, var(--c-success) 16%, transparent);
    border-color: color-mix(in srgb, var(--c-success) 45%, transparent);
}

.qlfn-inspect-sec {
    margin-top: 1.25rem;
}

.qlfn-inspect-title {
    margin: 0 0 0.5rem;
    font-size: 13px;
    font-weight: 900;
}

.qlfn-inspect-docs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    /* width: max-content; */
    max-width: 100%;
    overflow-x: auto;
    gap: 1.4rem;
    margin: 2.75rem 0;
    justify-content: center;
}

.qlfn-inspect-doc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-sizing: border-box;
    width: max-content;
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-main);
    border-radius: 0.75rem;
    background: var(--bg-success-soft);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.qlfn-inspect-doc-link.is-missing {
    cursor: default;
    opacity: 0.72;
}

.qlfn-inspect-doc-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

.qlfn-inspect-doc-act {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--kit-muted, #64748b);
}

.qlfn-inspect-na {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 14rem;
    margin: 0;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 2;
    color: inherit;
}

.qlfn-preview-person {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem 1rem;
    align-items: start;
}

.qlfn-preview-person > .sng-kit-form-grid.sng-kit-form-grid-4 {
    display: contents;
}

.qlfn-preview-photo {
    grid-column: 1;
    justify-self: end;
    align-self: start;
    width: 30mm;
    margin: 0;
}

.qlfn-preview-photo .qlfn-id-frame {
    overflow: hidden;
}

.qlfn-preview-photo .qlfn-id-frame small,
.qlfn-preview-photo .qlfn-id-frame a,
.qlfn-preview-photo .qlfn-id-frame img,
.qlfn-preview-photo .qlfn-id-frame .qlfn-missing-mark {
    display: block;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .qlfn-preview-person {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qlfn-preview-photo {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

@media (min-width: 1024px) {
    .qlfn-preview-person {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .qlfn-preview-photo {
        grid-column: 4;
    }
}

.qlfn-step-foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.qlfn-step-foot-main {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.qlfn-step-foot > .js-restore-step {
    grid-column: 3;
    justify-self: end;
}

.qlfn-owner-locked {
    pointer-events: none;
}

.qlfn-owner-locked .sng-kit-input,
.qlfn-owner-locked .sng-kit-radio-seg {
    opacity: 0.72;
}

.qlfn-id-caption {
    margin-bottom: 0.25rem;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.qlfn-id-frame {
    width: 30mm;
    height: 40mm;
}

.qlfn-id-frame img,
.qlfn-id-frame .qlfn-missing-mark {
    width: 100%;
    height: 100%;
}

.qlfn-id-frame img {
    object-fit: cover;
    border: 1px solid var(--border-main);
    cursor: zoom-in;
}

.qlfn-missing-mark {
    display: grid;
    place-items: center;
    color: #ff1744;
    background: #fff1f2;
    border: 1px dashed #ff1744;
    border-radius: 0.35rem;
}

.qlfn-id-frame .qlfn-missing-mark i {
    font-size: 1.7rem;
}

.qlfn-preview-log {
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
}

.qlfn-preview-log-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.6;
    color: var(--text-main);
}

.qlfn-preview-docs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.85rem;
    overflow-x: auto;
    border: 1px solid var(--border-main);
    border-radius: 1rem;
    background: var(--bg-card);
}

.qlfn-preview-doc {
    display: flex;
    flex-direction: column;
    flex: 1 0 8.5rem;
    min-width: 8.5rem;
}

.qlfn-preview-doc-file {
    display: block;
    margin-top: auto;
}

.qlfn-preview-doc-title {
    height: 2.6em;
    margin-bottom: 0.45rem;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.qlfn-preview-doc img,
.qlfn-preview-doc .qlfn-missing-mark {
    width: 100%;
    height: 9.5rem;
    box-sizing: border-box;
    border-radius: 0.85rem;
}

.qlfn-preview-doc img {
    object-fit: contain;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid var(--border-main);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    cursor: zoom-in;
}

.qlfn-preview-doc .qlfn-missing-mark i {
    font-size: 1.35rem;
}

.qlfn-inspect-tabs {
    flex-wrap: wrap;
    width: 100%;
}

.qlfn-inspect-tabs > label {
    flex: 1 1 0;
    min-width: 4.5rem;
    white-space: normal;
    text-align: center;
    padding: 0.55rem 0.35rem;
}

.qlfn-inspect-decide {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.qlfn-inspect-decide.hidden {
    display: none;
}

.qlfn-inspect-months {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.qlfn-inspect-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}

.qlfn-doc-old {
    display: none;
}

#modalQlfnDocs .sng-kit-upload {
    width: 100%;
}

#modalQlfnDocs .sng-kit-upload-body {
    position: relative;
}

#modalQlfnDocs .sng-kit-upload-body input[type=file] {
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#modalQlfnDocs .sng-kit-upload-thumb .spotlight {
    cursor: pointer;
}

.qlfn-letter-lead {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    line-height: 1.9;
    text-align: center;
    border-radius: 0.85rem;
    background: rgba(189, 0, 255, 0.06);
    border: 1px dashed rgba(189, 0, 255, 0.22);
}

html[data-theme="dark"] .qlfn-letter-lead {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.22);
}

.ind-plaque-col {
    width: 24rem;
    max-width: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.ind-plaque-col > .sng-kit-hint {
    margin-top: 0;
    text-align: center;
}

.ind-plaque-picks {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(189, 0, 255, 0.08);
    border: 1px dashed rgba(189, 0, 255, 0.4);
}

#indPlaquePicks.is-on {
    display: flex;
}

.ind-plaque-picks > .sng-kit-hint {
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
}

html[data-theme="dark"] .ind-plaque-picks {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.28);
}

#indPlaqueChoices {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.ind-plaque-col > .reg-plate-input,
#indPlaqueChoices .reg-plate-choice,
#indPlaqueChoices .reg-plate-choice .reg-plate-input.is-choice {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}

#indChosenPlaque {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
}

#indChosenPlaque .reg-plate-choice,
#indChosenPlaque .reg-plate-choice .reg-plate-input.is-choice {
    width: 26rem;
    max-width: 100%;
    margin-inline: 0;
}

#indPlaqueChoices .reg-plate-choice,
#indChosenPlaque .reg-plate-choice {
    display: block;
}

#frmIndependentCreate .ind-qual-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: end;
    width: 100%;
}

#frmIndependentCreate .ind-qual-row > div,
#frmIndependentCreate .ind-qual-date,
#frmIndependentCreate #indQualImageWrap {
    min-width: 0;
    width: 100%;
}

#frmIndependentCreate .ind-qual-extra {
    display: contents;
}

#frmIndependentCreate .ind-qual-extra.hidden {
    display: none;
}

#frmIndependentCreate .ind-qual-date,
#frmIndependentCreate .ind-qual-date .sng-kit-input,
#frmIndependentCreate .ind-qual-row .sng-kit-radio-seg,
#frmIndependentCreate .ind-qual-row .sng-kit-upload {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    #frmIndependentCreate .ind-qual-row:has(.ind-qual-extra:not(.hidden)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #frmIndependentCreate .ind-qual-row.is-org:has(.ind-qual-extra:not(.hidden)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #frmIndependentCreate .ind-qual-row.is-taxi {
        grid-template-columns: minmax(0, 1fr);
    }

    #frmIndependentCreate .ind-qual-row:has(.ind-qual-extra:not(.hidden)):has(#indQualImageWrap.hidden) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #frmIndependentCreate .ind-qual-row:has(.ind-qual-extra.hidden) .sng-kit-radio-seg {
        width: max-content;
    }
}

.reg-plate-choice {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 0.5rem;
}

.reg-plate-choice .reg-plate-input.is-choice {
    max-width: 100%;
    cursor: pointer;
}

.reg-plate-choice:hover .reg-plate-input.is-choice,
.reg-plate-choice:focus-visible .reg-plate-input.is-choice,
.reg-plate-choice.is-selected .reg-plate-input.is-choice {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

html[data-theme="dark"] .reg-plate-choice:hover .reg-plate-input.is-choice,
html[data-theme="dark"] .reg-plate-choice:focus-visible .reg-plate-input.is-choice,
html[data-theme="dark"] .reg-plate-choice.is-selected .reg-plate-input.is-choice {
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.22);
}

.reg-plate-choice:focus-visible {
    outline: none;
}

.reg-plate-input.is-choice .reg-plate-main,
.reg-plate-input.is-choice .reg-plate-city {
    cursor: pointer;
}

.reg-plate-input.is-choice .reg-plate-choice-d2,
.reg-plate-input.is-choice .reg-plate-choice-letter,
.reg-plate-input.is-choice .reg-plate-choice-d3 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: 0 0.15rem;
    text-align: center;
    font-weight: 900;
    font-size: 1.15rem;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    flex: 1 1 0;
}

.reg-plate-input.is-choice .reg-plate-choice-d2 { flex: 0.9 1 0; }
.reg-plate-input.is-choice .reg-plate-choice-d3 { flex: 1.2 1 0; }
.reg-plate-input.is-choice .reg-plate-choice-letter { flex: 1 1 0; font-size: 0.95rem; }

.reg-plate-input.is-choice .reg-plate-choice-city {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.5rem;
    font-size: 1rem;
    font-weight: 900;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

html[data-theme="dark"] .reg-plate-input.is-choice .reg-plate-choice-d2,
html[data-theme="dark"] .reg-plate-input.is-choice .reg-plate-choice-letter,
html[data-theme="dark"] .reg-plate-input.is-choice .reg-plate-choice-d3,
html[data-theme="dark"] .reg-plate-input.is-choice .reg-plate-choice-city {
    color: #f1f5f9;
}

.reg-plate-choice.is-plain {
    height: 3.5rem;
    border: 2px solid #0f172a;
    border-radius: 0.5rem;
    background: #f8fafc;
    font-weight: 900;
    font-size: 0.95rem;
    color: #0f172a;
}

html[data-theme="dark"] .reg-plate-choice.is-plain {
    border-color: #cbd5e1;
    background: #0f172a;
    color: #f1f5f9;
}

/* SweetAlert2 default is 1060 — below kit modals (1100). Keep above modal, below loading (1250). */
.swal2-container {
    z-index: 1200;
}

/* Month-days modal is opened from inside this alert, so it sits above the alert and under loading. */
#modalServiceMonths.sng-tw-modal-overlay {
    z-index: 1220;
}

.swal2-container.school-excel-swal {
    z-index: 20000;
}

/* ========== SweetAlert2 = پوستهٔ کیت (سراسری؛ بدون تغییر تک‌تک Swal.fire) ========== */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

html[data-theme="dark"] .swal2-container.swal2-backdrop-show,
html[data-theme="dark"] .swal2-container.swal2-noanimation {
    background: rgba(0, 0, 0, 0.38) !important;
}

.swal2-container .swal2-popup.qlfn-shortage-popup {
    width: min(42rem, calc(100vw - 1.75rem));
}

.qlfn-shortage-list {
    margin: 0;
    padding: 0 1.15rem 0 0;
    max-height: min(50vh, 22rem);
    overflow: auto;
    text-align: right;
    list-style: disc;
}

.qlfn-shortage-list li + li {
    margin-top: 0.35rem;
}

.swal2-container .qlfn-mask-mobile {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.swal2-container .swal2-popup {
    --kit-purple: #bd00ff;
    --kit-ice: #00e5ff;
    --kit-green: #00e676;
    --kit-red: #ff1744;
    --kit-text: #1e1b4b;
    --kit-head: #3b2c6f;
    --kit-muted: #5c4e8c;
    width: min(32em, calc(100vw - 1.75rem));
    padding: 1.5rem 1.5rem 1.25rem !important;
    border-radius: 2rem !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1.5px solid rgba(189, 0, 255, 0.3) !important;
    box-shadow: 0 25px 50px rgba(189, 0, 255, 0.08), 0 0 24px rgba(189, 0, 255, 0.12) !important;
    color: var(--kit-text) !important;
    font-family: inherit !important;
}

html[data-theme="dark"] .swal2-container .swal2-popup {
    background: rgba(10, 11, 28, 0.88) !important;
    border-color: rgba(0, 229, 255, 0.4) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 229, 255, 0.25) !important;
    color: #e2e8f0 !important;
}

.swal2-container .swal2-popup.swal2-toast {
    width: auto;
    max-width: min(22rem, calc(100vw - 1.5rem));
    padding: 0.85rem 1rem !important;
    border-radius: 1.15rem !important;
}

.swal2-container .swal2-title {
    margin: 0 !important;
    padding: 0.35rem 0.25rem 0 !important;
    color: var(--kit-head) !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    line-height: 1.7 !important;
}

html[data-theme="dark"] .swal2-container .swal2-title {
    color: #f1f5f9 !important;
}

.swal2-container .swal2-html-container {
    margin: 0.65rem 0.15rem 0.15rem !important;
    padding: 0 !important;
    color: var(--kit-muted) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
}

html[data-theme="dark"] .swal2-container .swal2-html-container {
    color: #cbd5e1 !important;
}

.swal2-container .swal2-footer {
    margin: 1rem 0 0 !important;
    padding: 0.85rem 0 0 !important;
    border-top: 1px dashed rgba(189, 0, 255, 0.18) !important;
    color: var(--kit-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .swal2-container .swal2-footer {
    border-top-color: rgba(0, 229, 255, 0.18) !important;
    color: #94a3b8 !important;
}

.swal2-container .swal2-actions {
    gap: 0.5rem;
    margin: 1.15rem auto 0 !important;
    width: 100%;
}

.swal2-container .swal2-actions:not(.swal2-loading) .swal2-styled:hover,
.swal2-container .swal2-actions:not(.swal2-loading) .swal2-styled:active {
    background-image: none !important;
}

.swal2-container .swal2-actions button.swal2-styled,
.swal2-container .swal2-actions button.swal2-confirm,
.swal2-container .swal2-actions button.swal2-cancel,
.swal2-container .swal2-actions button.swal2-deny {
    margin: 0 !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: 1rem !important;
    border: 1.5px solid transparent !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swal2-container .swal2-actions button.swal2-styled:not([disabled]),
.swal2-container .swal2-actions button.swal2-confirm:not([disabled]),
.swal2-container .swal2-actions button.swal2-cancel:not([disabled]),
.swal2-container .swal2-actions button.swal2-deny:not([disabled]) {
    cursor: pointer;
}

.swal2-container .swal2-actions button.swal2-styled:active,
.swal2-container .swal2-actions button.swal2-confirm:active,
.swal2-container .swal2-actions button.swal2-cancel:active,
.swal2-container .swal2-actions button.swal2-deny:active {
    transform: scale(0.97);
}

.swal2-container .swal2-actions button.swal2-confirm {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 230, 118, 0.18)) !important;
    color: #1b5e20 !important;
    border-color: rgba(0, 230, 118, 0.4) !important;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.15) !important;
}

html[data-theme="dark"] .swal2-container .swal2-actions button.swal2-confirm {
    background: rgba(0, 230, 118, 0.08) !important;
    border-color: rgba(0, 230, 118, 0.7) !important;
    color: #00e676 !important;
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.35) !important;
}

.swal2-container .swal2-actions button.swal2-confirm:hover {
    background: #00e676 !important;
    color: #03030a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.5) !important;
}

.swal2-container .swal2-html-container button.swal2-confirm,
.swal2-container .swal2-html-container button.swal2-styled {
    border-radius: 1rem !important;
    border: 1.5px solid rgba(189, 0, 255, 0.35) !important;
    background: linear-gradient(135deg, rgba(189, 0, 255, 0.08), rgba(189, 0, 255, 0.16)) !important;
    color: #bd00ff !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 15px rgba(189, 0, 255, 0.12) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html[data-theme="dark"] .swal2-container .swal2-html-container button.swal2-confirm,
html[data-theme="dark"] .swal2-container .swal2-html-container button.swal2-styled {
    background: rgba(189, 0, 255, 0.1) !important;
    border-color: rgba(189, 0, 255, 0.65) !important;
    color: #e879ff !important;
    box-shadow: 0 0 18px rgba(189, 0, 255, 0.28) !important;
}

.swal2-container .swal2-html-container button.swal2-confirm:hover,
.swal2-container .swal2-html-container button.swal2-styled:hover {
    background: #bd00ff !important;
    color: #fff !important;
    background-image: none !important;
    transform: translateY(-2px);
}

.swal2-container .swal2-actions button.swal2-cancel {
    background: rgba(255, 255, 255, 0.5) !important;
    color: var(--kit-muted) !important;
    border-color: rgba(189, 0, 255, 0.18) !important;
}

html[data-theme="dark"] .swal2-container .swal2-actions button.swal2-cancel {
    background: rgba(10, 11, 28, 0.8) !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.swal2-container .swal2-actions button.swal2-cancel:hover {
    color: var(--kit-text) !important;
    border-color: #bd00ff !important;
    transform: translateY(-2px);
}

html[data-theme="dark"] .swal2-container .swal2-actions button.swal2-cancel:hover {
    color: #fff !important;
    border-color: #00e5ff !important;
}

.swal2-container .swal2-actions button.swal2-deny {
    background: var(--bg-danger-soft, rgba(255, 23, 68, 0.1)) !important;
    color: var(--c-danger, #ff1744) !important;
    border-color: color-mix(in srgb, var(--c-danger, #ff1744) 40%, transparent) !important;
}

.swal2-container .swal2-actions button.swal2-deny:hover {
    background: var(--c-danger, #ff1744) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

html[data-theme="dark"] .swal2-container .swal2-actions button.swal2-deny:hover {
    color: #0f172a !important;
}

.swal2-container .swal2-actions button.swal2-confirm:focus,
.swal2-container .swal2-actions button.swal2-cancel:focus,
.swal2-container .swal2-actions button.swal2-deny:focus,
.swal2-container .swal2-actions button.swal2-styled:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(189, 0, 255, 0.22) !important;
}

html[data-theme="dark"] .swal2-container .swal2-actions button.swal2-confirm:focus,
html[data-theme="dark"] .swal2-container .swal2-actions button.swal2-cancel:focus,
html[data-theme="dark"] .swal2-container .swal2-actions button.swal2-deny:focus,
html[data-theme="dark"] .swal2-container .swal2-actions button.swal2-styled:focus {
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.28) !important;
}

.swal2-container .swal2-close {
    width: 2.1rem !important;
    height: 2.1rem !important;
    margin: 0.35rem 0.35rem 0 0 !important;
    border-radius: 0.65rem !important;
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(189, 0, 255, 0.15) !important;
    color: var(--kit-muted, #5c4e8c) !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .swal2-container .swal2-close {
    background: rgba(10, 11, 28, 0.7) !important;
    border-color: rgba(0, 229, 255, 0.2) !important;
    color: #cbd5e1 !important;
}

.swal2-container .swal2-close:hover {
    color: var(--kit-text, #1e1b4b) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transform: none !important;
}

html[data-theme="dark"] .swal2-container .swal2-close:hover {
    color: #fff !important;
    background: rgba(15, 17, 38, 0.9) !important;
}

.swal2-container .swal2-icon {
    margin: 1.15rem auto 0.35rem !important;
    border-width: 0.2em !important;
}

.swal2-container .swal2-icon.swal2-success {
    border-color: rgba(0, 230, 118, 0.45) !important;
    color: #00e676 !important;
}

.swal2-container .swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #00e676 !important;
}

.swal2-container .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(0, 230, 118, 0.28) !important;
}

.swal2-container .swal2-success-circular-line-left,
.swal2-container .swal2-success-circular-line-right,
.swal2-container .swal2-success-fix {
    background: transparent !important;
}

.swal2-container .swal2-icon.swal2-error {
    border-color: rgba(255, 23, 68, 0.45) !important;
    color: #ff1744 !important;
}

.swal2-container .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ff1744 !important;
}

.swal2-container .swal2-icon.swal2-warning {
    border-color: rgba(255, 171, 0, 0.5) !important;
    color: #f59e0b !important;
}

.swal2-container .swal2-icon.swal2-info {
    border-color: rgba(0, 229, 255, 0.45) !important;
    color: #00a8cc !important;
}

html[data-theme="dark"] .swal2-container .swal2-icon.swal2-info {
    color: #00e5ff !important;
}

.swal2-container .swal2-icon.swal2-question {
    border-color: rgba(189, 0, 255, 0.4) !important;
    color: #bd00ff !important;
}

html[data-theme="dark"] .swal2-container .swal2-icon.swal2-question {
    border-color: rgba(0, 229, 255, 0.4) !important;
    color: #00e5ff !important;
}

.swal2-container .swal2-input,
.swal2-container .swal2-file,
.swal2-container .swal2-textarea,
.swal2-container .swal2-select {
    margin: 0.85rem 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 1.15rem !important;
    border: 1px solid rgba(189, 0, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.45) !important;
    color: #0f172a !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.swal2-container .swal2-input,
.swal2-container .swal2-file,
.swal2-container .swal2-select {
    height: 3.4rem !important;
    min-height: 3.4rem !important;
    padding: 1rem 1.25rem !important;
}

.swal2-container .swal2-textarea {
    min-height: 6.5rem !important;
    padding: 1rem 1.25rem !important;
}

html[data-theme="dark"] .swal2-container .swal2-input,
html[data-theme="dark"] .swal2-container .swal2-file,
html[data-theme="dark"] .swal2-container .swal2-textarea,
html[data-theme="dark"] .swal2-container .swal2-select {
    background: rgba(5, 6, 15, 0.7) !important;
    border-color: rgba(0, 229, 255, 0.22) !important;
    color: #fff !important;
}

.swal2-container .swal2-input:focus,
.swal2-container .swal2-file:focus,
.swal2-container .swal2-textarea:focus,
.swal2-container .swal2-select:focus {
    border-color: #bd00ff !important;
    background: #fff !important;
    box-shadow: 0 0 12px rgba(189, 0, 255, 0.12) !important;
}

html[data-theme="dark"] .swal2-container .swal2-input:focus,
html[data-theme="dark"] .swal2-container .swal2-file:focus,
html[data-theme="dark"] .swal2-container .swal2-textarea:focus,
html[data-theme="dark"] .swal2-container .swal2-select:focus {
    border-color: #00e5ff !important;
    background: rgba(15, 17, 38, 0.85) !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.15) !important;
}

.swal2-container .swal2-input.swal2-inputerror,
.swal2-container .swal2-file.swal2-inputerror,
.swal2-container .swal2-textarea.swal2-inputerror {
    border-color: #ff1744 !important;
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.12) !important;
}

.swal2-container .swal2-validation-message {
    margin: 0.85rem 0 0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 1rem !important;
    background: rgba(255, 23, 68, 0.08) !important;
    color: #ff1744 !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
}

html[data-theme="dark"] .swal2-container .swal2-validation-message {
    background: rgba(255, 23, 68, 0.14) !important;
    color: #ff8a9a !important;
}

.swal2-container .swal2-validation-message::before {
    background-color: #ff1744 !important;
}

.swal2-container .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #bd00ff, #00e5ff) !important;
}

.swal2-container .swal2-timer-progress-bar-container {
    border-bottom-left-radius: 2rem !important;
    border-bottom-right-radius: 2rem !important;
}

.swal2-container .swal2-loader {
    border-color: #bd00ff transparent #bd00ff transparent !important;
}

html[data-theme="dark"] .swal2-container .swal2-loader {
    border-color: #00e5ff transparent #00e5ff transparent !important;
}

@media (prefers-reduced-motion: reduce) {
    .swal2-show,
    .swal2-hide,
    .swal2-container .swal2-actions button.swal2-confirm,
    .swal2-container .swal2-actions button.swal2-cancel,
    .swal2-container .swal2-actions button.swal2-deny {
        animation: none !important;
        transition: none !important;
    }
}

/* ========== DriverPanelV2 ========== */
.sng-kit-dpv2-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    background:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%234f46e5" opacity="0.03"/><path d="M0 100 L100 0" stroke="%234f46e5" stroke-width="2" opacity="0.05"/></svg>'),
        var(--bg-card);
    background-size: cover;
    border: 1px solid var(--border-main);
    border-radius: 1.5rem;
    padding: 1.4rem 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.sng-kit-dpv2-welcome-title {
    margin: 0;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.sng-kit-dpv2-welcome-title .bi-sun-fill {
    color: var(--c-warning, #d97706);
    font-size: 1.45rem;
}
.sng-kit-dpv2-welcome-date {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}
.sng-kit-dpv2-welcome-car {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
}
.sng-kit-dpv2-welcome-plate-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

/* پلاک راننده — مطابق عکس طراحی Sobhani (نوار آبی | ۱۳ س ۳۳۶ | ۳۶) */
.sng-kit-dpv2-plate {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 204px;
    height: 48px;
    border: 2px solid #111;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    direction: ltr;
    unicode-bidi: isolate;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    font-family: Vazirmatn, Tahoma, sans-serif;
}
.sng-kit-dpv2-plate.is-taxi {
    background: #ffca0c;
}
.sng-kit-dpv2-plate-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: 800;
    font-size: 1rem;
    color: #111;
    direction: ltr;
}
.sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-blue,
.sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-main,
.sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-city {
    display: none;
}
.sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-fallback {
    display: flex;
}
.sng-kit-dpv2-plate-blue {
    background: #003399;
    width: 26px;
    flex: 0 0 26px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 2px 0;
}
.sng-kit-dpv2-plate-blue > span {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    color: #fff;
    font-size: 0.34rem;
    font-weight: 800;
    font-family: Tahoma, Arial, sans-serif;
    letter-spacing: 0;
    white-space: normal;
    line-height: 1;
    margin: 0;
    pointer-events: none;
}
.sng-kit-dpv2-flag {
    display: flex;
    flex-direction: column;
    width: 14px;
    height: 8px;
    border-radius: 1px;
    overflow: hidden;
    flex-shrink: 0;
}
.sng-kit-dpv2-flag-stripe {
    display: block;
    width: 100%;
    height: 33.34%;
    margin: 0;
    padding: 0;
    font-style: normal;
}
.sng-kit-dpv2-flag-stripe:nth-child(1) { background: #22c55e; }
.sng-kit-dpv2-flag-stripe:nth-child(2) { background: #fff; }
.sng-kit-dpv2-flag-stripe:nth-child(3) { background: #ef4444; }
.sng-kit-dpv2-plate-main {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #111;
    line-height: 1;
}
.sng-kit-dpv2-plate-main > span {
    flex: 0 0 auto;
    white-space: nowrap;
}
.sng-kit-dpv2-plate-letter {
    font-size: 20px;
    font-weight: 800;
}
.sng-kit-dpv2-plate-city {
    border-left: 2px solid #111;
    width: 48px;
    flex: 0 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-size: 22px;
    font-weight: 800;
    color: #111;
    line-height: 1;
}
.sng-kit-dpv2-plate-city > span:first-child {
    font-size: 0.55rem;
    font-weight: 800;
}

.sng-kit-dpv2-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .sng-kit-dpv2-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 1.25rem;
    }
}

.sng-kit-progress-ring {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 1.5rem;
    padding: 2.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-card, 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 24px rgba(0, 0, 0, 0.04));
    min-height: 22rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.sng-kit-progress-ring:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.14);
}
html[data-theme="dark"] .sng-kit-progress-ring:hover {
    box-shadow: 0 12px 32px rgba(129, 140, 248, 0.18);
}
.sng-kit-progress-ring-wrap {
    position: relative;
    width: 13.75rem;
    height: 13.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sng-kit-progress-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.sng-kit-progress-ring-bg {
    fill: transparent;
    stroke: var(--bg-slate-soft, #f1f5f9);
    stroke-width: 12;
}
.sng-kit-progress-ring-fg {
    fill: transparent;
    stroke: url(#sngKitRingGrad);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 628;
    stroke-dashoffset: 628;
    transition: stroke-dashoffset 0.8s ease;
}
.sng-kit-progress-ring:hover .sng-kit-progress-ring-fg {
    stroke-dashoffset: 470;
}
html[data-theme="dark"] .sng-kit-progress-ring-bg {
    stroke: rgba(255, 255, 255, 0.08);
}
.sng-kit-progress-ring-btn {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: var(--bg-body);
    border: 2px dashed var(--border-dash, #cbd5e1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    z-index: 1;
    transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.sng-kit-progress-ring:hover .sng-kit-progress-ring-btn {
    background: rgba(79, 70, 229, 0.1);
    border-style: solid;
    border-color: var(--c-primary, #4f46e5);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.18);
}
html[data-theme="dark"] .sng-kit-progress-ring:hover .sng-kit-progress-ring-btn {
    background: rgba(129, 140, 248, 0.12);
    border-color: #818cf8;
    box-shadow: 0 10px 28px rgba(129, 140, 248, 0.2);
}
.sng-kit-progress-ring-btn i {
    font-size: 2.35rem;
    color: var(--text-muted);
    transition: color 0.3s;
}
.sng-kit-progress-ring:hover .sng-kit-progress-ring-btn i {
    color: var(--c-primary, #4f46e5);
}
html[data-theme="dark"] .sng-kit-progress-ring:hover .sng-kit-progress-ring-btn i {
    color: #818cf8;
}
.sng-kit-progress-ring-btn span {
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--text-main);
}
.sng-kit-progress-ring-desc {
    margin: 1.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    max-width: 17rem;
    line-height: 1.55;
}

.sng-kit-dpv2-kpi-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
}
.sng-kit-dpv2-kpi {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 1.25rem;
    padding: 1.15rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-decoration: none !important;
    text-align: right;
    width: 100%;
    font: inherit;
    color: inherit;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    flex: 1;
}
.sng-kit-dpv2-kpi:hover {
    transform: translateY(-4px);
    border-color: var(--c-primary, #4f46e5);
    box-shadow: var(--shadow-card, 0 10px 24px rgba(0, 0, 0, 0.06));
}
.sng-kit-dpv2-kpi-icon {
    width: 3.45rem;
    height: 3.45rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}
.sng-kit-dpv2-kpi.is-primary .sng-kit-dpv2-kpi-icon {
    background: #e0e7ff;
    color: #4f46e5;
}
.sng-kit-dpv2-kpi.is-warning .sng-kit-dpv2-kpi-icon {
    background: #fef3c7;
    color: #d97706;
}
.sng-kit-dpv2-kpi.is-success .sng-kit-dpv2-kpi-icon {
    background: #d1fae5;
    color: #059669;
}
html[data-theme="dark"] .sng-kit-dpv2-kpi.is-primary .sng-kit-dpv2-kpi-icon {
    background: rgba(129, 140, 248, 0.18);
    color: #818cf8;
}
html[data-theme="dark"] .sng-kit-dpv2-kpi.is-warning .sng-kit-dpv2-kpi-icon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}
html[data-theme="dark"] .sng-kit-dpv2-kpi.is-success .sng-kit-dpv2-kpi-icon {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}
.sng-kit-dpv2-kpi-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.sng-kit-dpv2-kpi-value {
    display: block;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--text-main);
    direction: ltr;
    text-align: right;
}
.sng-kit-dpv2-kpi-unit {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.sng-kit-dpv2-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.sng-kit-dpv2-acc-item {
    border: 1px solid var(--border-main);
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-body);
    box-shadow: var(--shadow-sm);
}
.sng-kit-dpv2-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.05rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: right;
}
.sng-kit-dpv2-acc-head.is-open {
    background: rgba(79, 70, 229, 0.08);
    color: var(--c-primary, #4f46e5);
}
html[data-theme="dark"] .sng-kit-dpv2-acc-head.is-open {
    background: rgba(129, 140, 248, 0.12);
    color: #818cf8;
}
.sng-kit-dpv2-acc-badge {
    background: var(--text-main);
    color: var(--bg-card);
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    flex-shrink: 0;
}
.sng-kit-dpv2-acc-body {
    display: none;
    padding: 0 1rem 1rem;
}
.sng-kit-dpv2-acc-body.is-open {
    display: block;
}
.sng-kit-dpv2-stu {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border-dash, #cbd5e1);
}
.sng-kit-dpv2-stu:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sng-kit-dpv2-stu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.sng-kit-dpv2-stu-name {
    margin: 0;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-main);
}
.sng-kit-dpv2-stu-phone {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--c-primary, #4f46e5);
    background: rgba(79, 70, 229, 0.1);
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}
.sng-kit-dpv2-stu-addr {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-slate-soft, #f1f5f9);
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    line-height: 1.5;
}
html[data-theme="dark"] .sng-kit-dpv2-stu-addr {
    background: rgba(255, 255, 255, 0.05);
}

.sng-kit-dpv2-group-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.sng-kit-dpv2-group-toolbar-title {
    margin: 0;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sng-kit-dpv2-group-toolbar-title i {
    color: var(--c-primary, #4f46e5);
}
.sng-kit-dpv2-group-toolbar-hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}
.sng-kit-dpv2-btn-add-group {
    background: #059669;
    color: #fff;
    border: none;
    padding: 0.7rem 1.35rem;
    border-radius: 0.9rem;
    font-weight: 800;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.22);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sng-kit-dpv2-btn-add-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.32);
    color: #fff;
}

.sng-kit-dpv2-group-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-bottom: 7rem;
}
@media (min-width: 1280px) {
    .sng-kit-dpv2-group-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.sng-kit-dpv2-group-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.sng-kit-dpv2-group-card:hover {
    border-color: var(--border-dash, #cbd5e1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.sng-kit-dpv2-group-badge {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2.15rem;
    height: 2.15rem;
    background: var(--c-danger, #e11d48);
    color: #fff;
    border: 4px solid var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.3);
}
.sng-kit-dpv2-group-head {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px dashed var(--border-dash, #cbd5e1);
    background: var(--bg-slate-soft, #f1f5f9);
    border-radius: 1.25rem 1.25rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
html[data-theme="dark"] .sng-kit-dpv2-group-head {
    background: rgba(255, 255, 255, 0.04);
}
.sng-kit-dpv2-group-title {
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
}
.sng-kit-dpv2-group-edit {
    background: transparent;
    border: none;
    color: var(--c-primary, #4f46e5);
    font-size: 1.1rem;
    padding: 0.35rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.sng-kit-dpv2-group-edit:hover {
    background: rgba(79, 70, 229, 0.12);
}
.sng-kit-dpv2-group-body {
    padding: 0.55rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.sng-kit-dpv2-stu-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-main);
}
.sng-kit-dpv2-stu-row:last-child {
    border-bottom: none;
}
.sng-kit-dpv2-order {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}
.sng-kit-dpv2-order-lbl {
    font-size: 0.55rem;
    color: var(--text-muted);
    font-weight: 800;
}
.sng-kit-dpv2-order-input {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-dash, #cbd5e1);
    background: var(--bg-body);
    text-align: center;
    font-weight: 900;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
    -moz-appearance: textfield;
}
.sng-kit-dpv2-order-input::-webkit-outer-spin-button,
.sng-kit-dpv2-order-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sng-kit-dpv2-order-input:focus {
    border-color: var(--c-primary, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.sng-kit-dpv2-stu-info {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}
.sng-kit-dpv2-stu-info .name {
    margin: 0 0 0.2rem;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sng-kit-dpv2-stu-info .code {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
}
.sng-kit-dpv2-btn-transfer {
    background: rgba(79, 70, 229, 0.1);
    color: var(--c-primary, #4f46e5);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 0.45rem 0.7rem;
    border-radius: 0.65rem;
    font-weight: 800;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.sng-kit-dpv2-btn-transfer:hover {
    background: var(--c-primary, #4f46e5);
    color: #fff;
}
html[data-theme="dark"] .sng-kit-dpv2-btn-transfer {
    background: rgba(129, 140, 248, 0.15);
    color: #818cf8;
    border-color: rgba(129, 140, 248, 0.25);
}
html[data-theme="dark"] .sng-kit-dpv2-btn-transfer:hover {
    background: #818cf8;
    color: #0f172a;
}

.sng-kit-dpv2-sticky-bar {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    right: calc(260px + 1.25rem);
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-main);
    border-radius: 1.25rem;
    padding: 0.9rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1030;
}
@media (max-width: 1023.98px) {
    .sng-kit-dpv2-sticky-bar {
        bottom: 6.5rem;
        left: 0.85rem;
        right: 0.85rem;
        flex-direction: column;
        text-align: center;
        padding: 0.95rem 1rem;
    }
}
.sng-kit-dpv2-sticky-hint {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.sng-kit-dpv2-sticky-hint i {
    color: var(--c-warning, #d97706);
    font-size: 1.15rem;
}
.sng-kit-dpv2-btn-save-all {
    background: var(--text-main);
    color: var(--bg-card);
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 0.9rem;
    font-weight: 800;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sng-kit-dpv2-btn-save-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}
@media (max-width: 1023.98px) {
    .sng-kit-dpv2-btn-save-all {
        width: 100%;
    }
}

.sng-kit-setting-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.sng-kit-setting-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(189, 0, 255, 0.15);
    backdrop-filter: blur(20px);
}
.sng-kit-setting-list,
.sng-kit-setting-card,
.sng-kit-setting-line {
    width: 100%;
}
.sng-kit-setting-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.sng-kit-setting-title {
    flex: 1 1 12rem;
    width: auto;
    min-width: 9rem;
    max-width: none;
}
.sng-kit-label.sng-kit-setting-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sng-kit-setting-type { flex: 0 0 6.2rem; width: 6.2rem; }
.sng-kit-setting-value { flex: 0 0 auto; }
.sng-kit-setting-value .sng-kit-input { width: 8rem; }
.sng-kit-setting-value .sng-kit-radio-seg { width: auto; }
.sng-kit-setting-value .sng-kit-radio-seg > label {
    flex: 0 0 auto;
    min-width: 3.2rem;
    padding: 0.4rem 0.75rem;
}
.sng-kit-setting-group { flex: 0 0 6rem; width: 6rem; }
.sng-kit-setting-options { flex: 0 0 11rem; width: 11rem; }
.sng-kit-setting-date,
.sng-kit-setting-time { flex: 0 0 9.2rem; width: 9.2rem; }
@media (max-width: 1023.98px) {
    .sng-kit-setting-card { min-width: 0; max-width: 100%; }
    .sng-kit-setting-line {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .sng-kit-setting-title,
    .sng-kit-label.sng-kit-setting-title,
    .sng-kit-setting-check,
    .sng-kit-setting-actions,
    .sng-kit-setting-value:has(.sng-kit-radio-seg) {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .sng-kit-setting-type,
    .sng-kit-setting-group,
    .sng-kit-setting-value,
    .sng-kit-setting-date,
    .sng-kit-setting-time,
    .sng-kit-setting-line > .sng-kit-btn {
        flex: 1 1 calc(50% - 0.5rem);
        width: auto;
        min-width: 0;
        max-width: 100%;
    }
    .sng-kit-setting-value .sng-kit-input { width: 100%; }
    .sng-kit-setting-line .sng-kit-input {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
    .sng-kit-setting-actions .sng-kit-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
.sng-kit-setting-card.is-setting-filtered { display: none; }
.sng-kit-setting-option-edit {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.sng-kit-setting-option-edit .sng-kit-input { flex: 1 1 auto; }
.sng-kit-setting-option-add { margin-top: 0.75rem; }
.sng-kit-setting-option-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.85rem;
}
.sng-kit-setting-option-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.4rem 0.55rem 0.4rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(189, 0, 255, 0.15);
}
.sng-kit-setting-option-en {
    flex: 0 1 auto;
    max-width: 42%;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(189, 0, 255, 0.1);
    color: #6d28d9;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.4;
    direction: ltr;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sng-kit-setting-option-fa {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sng-kit-setting-option-remove {
    flex: 0 0 2.2rem;
    width: 2.2rem;
    height: 2.2rem;
    min-height: 2.2rem;
    padding: 0;
    justify-content: center;
    border-radius: 0.7rem;
}
html[data-theme="dark"] .sng-kit-setting-option-row {
    background: rgba(10, 11, 28, 0.5);
    border-color: rgba(0, 229, 255, 0.2);
}
html[data-theme="dark"] .sng-kit-setting-option-en {
    background: rgba(0, 229, 255, 0.12);
    color: #67e8f9;
}
html[data-theme="dark"] .sng-kit-setting-option-fa {
    color: var(--text-main, #e2e8f0);
}
.sng-kit-setting-card .sng-kit-hint {
    margin: 0;
    overflow-wrap: anywhere;
}
.sng-kit-setting-card .sng-kit-hint [dir="ltr"] {
    overflow-wrap: anywhere;
}
html[data-theme="dark"] .sng-kit-setting-card {
    background: rgba(10, 11, 28, 0.5);
    border-color: rgba(0, 229, 255, 0.2);
}
.sng-kit-setting-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0;
}
.sng-kit-setting-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-main);
}

body:has(.sng-kit-track-v3) { overflow: hidden; }
body:has(.sng-kit-track-v3) #content {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    max-width: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
}
.sng-kit-track-v3 { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.sng-kit-track-v3-map { position: relative; flex: 1 1 auto; min-height: 140px; border-radius: 0; overflow: hidden; border: 0; background: var(--bg-card); }
.sng-kit-track-v3 #mapcontainer { position: absolute; inset: 0; height: 100%; min-height: 0; }
.sng-kit-track-v3 #pac-input { position: absolute; top: 0.5rem; right: 0.75rem; z-index: 20; width: min(280px, 70%); height: 2.75rem; border-radius: 0.75rem; border: 1px solid var(--border-main); background: var(--bg-card); padding: 0 0.75rem; font-size: 0.75rem; font-weight: 700; }
.sng-kit-track-v3-head { position: relative; flex: 0 0 auto; z-index: 25; margin: 0.35rem 0.5rem 0; padding: 0.45rem 0.7rem; border-radius: 1rem; background: rgba(255,255,255,0.72); border: 1px solid rgba(189,0,255,0.18); backdrop-filter: blur(16px); }
html[data-theme="dark"] .sng-kit-track-v3-head { background: rgba(10,11,28,0.72); border-color: rgba(0,229,255,0.28); }
.sng-kit-track-v3-head-row { display: flex; align-items: center; gap: 0.4rem; }
.sng-kit-track-v3-school { flex: 1; min-width: 0; font-weight: 900; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.sng-kit-track-v3-dir { font-size: 10px; font-weight: 900; padding: 0.15rem 0.45rem; border-radius: 0.5rem; background: rgba(189,0,255,0.12); color: var(--kit-purple, #bd00ff); }
html[data-theme="dark"] .sng-kit-track-v3-dir { color: var(--kit-ice, #00e5ff); background: rgba(0,229,255,0.12); }
.sng-kit-track-v3-passengers { min-height: 2rem; padding: 0.2rem 0.55rem; font-size: 11px; }
.sng-kit-track-v3-absent { margin-top: 0.35rem; font-size: 11px; font-weight: 800; color: var(--c-danger, #ff1744); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sng-kit-track-v3-absent[hidden] { display: none; }
.sng-kit-track-v3-bar { margin-top: 0.4rem; height: 4px; border-radius: 99px; background: rgba(189,0,255,0.12); overflow: hidden; }
.sng-kit-track-v3-bar span { display: block; height: 100%; width: 0; background: var(--kit-purple, #bd00ff); }
html[data-theme="dark"] .sng-kit-track-v3-bar span { background: var(--kit-ice, #00e5ff); }
.sng-kit-track-v3-panel { position: relative; flex: 0 1 auto; min-height: 0; margin-top: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 1.25rem 1.25rem 0 0; background: rgba(255,255,255,0.94); border: 1px solid rgba(189,0,255,0.16); border-bottom: 0; backdrop-filter: blur(16px); padding: 0.7rem 0.75rem 0.85rem; box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.12); }
html[data-theme="dark"] .sng-kit-track-v3-panel { background: rgba(10,11,28,0.86); border-color: rgba(0,229,255,0.22); }
.sng-kit-track-v3-panel.is-collapsed .sng-kit-track-v3-panel-body { display: none; }
.sng-kit-track-v3-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-weight: 900; font-size: 0.8rem; flex: 0 0 auto; }
.sng-kit-track-v3-panel-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.sng-kit-track-v3-cardrow { display: flex; gap: 0.45rem; overflow-x: auto; padding-bottom: 0.3rem; }
.sng-kit-track-v3-card { min-width: 138px; max-width: 170px; text-align: right; border-radius: 1rem; border: 1px solid var(--border-main); background: var(--bg-card); padding: 0.55rem; font-weight: 800; }
.sng-kit-track-v3-card.is-on { border-color: var(--kit-purple, #bd00ff); box-shadow: 0 0 0 2px rgba(189,0,255,0.25); }
.sng-kit-track-v3-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
.sng-kit-track-v3-actions .sng-kit-btn, .sng-kit-track-v3 .workBtn { min-height: 56px; width: 100%; border-radius: 1rem; font-weight: 900; }
.sng-kit-track-v3-student { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.sng-kit-track-v3-filters { display: flex; gap: 0.35rem; overflow-x: auto; margin-bottom: 0.6rem; }
.sng-kit-track-v3-person { border: 1px solid var(--border-main); border-radius: 1rem; padding: 0.65rem; margin-bottom: 0.45rem; background: var(--bg-panel); }
.sng-kit-track-v3-timeline { border-right: 2px solid rgba(189,0,255,0.25); padding: 0.35rem 0.7rem; margin-bottom: 0.35rem; }
.sng-kit-track-v3-meters { font-size: 11px; font-weight: 800; opacity: 0.75; }
.sng-kit-track-v3.is-trip #v3Locked { display: none; }
.sng-kit-track-v3 .btnSubmitAbsentness { display: none !important; }
.sng-kit-track-v3-stop-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.sng-kit-track-v3-stop b { font-size: 0.95rem; }
.sng-kit-track-v3-badge { display: inline-block; margin-right: 0.35rem; font-size: 10px; font-weight: 900; padding: 0.1rem 0.4rem; border-radius: 0.45rem; background: rgba(189,0,255,0.12); color: var(--kit-purple, #bd00ff); }
html[data-theme="dark"] .sng-kit-track-v3-badge { color: var(--kit-ice, #00e5ff); background: rgba(0,229,255,0.12); }
.sng-kit-track-v3-addr, .sng-kit-track-v3-next { font-size: 11px; font-weight: 700; opacity: 0.8; margin-top: 0.2rem; }
.sng-kit-track-v3-next { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; margin-top: 0; }
.sng-kit-track-v3-next span { min-width: 0; }
.sng-kit-track-v3-reorder { min-height: 32px; width: auto; padding: 0.2rem 0.55rem; font-size: 11px; flex: 0 0 auto; }
.sng-kit-track-v3-pin { position: sticky; bottom: 0; flex: 0 0 auto; background: rgba(255,255,255,0.96); padding-top: 0.35rem; }
html[data-theme="dark"] .sng-kit-track-v3-pin { background: rgba(10,11,28,0.94); }
.sng-kit-track-v3-pin-call .sng-kit-btn { width: 100%; margin-top: 0.35rem; }
.sng-kit-track-v3-next-item { min-width: 0; max-width: none; width: 100%; margin-bottom: 0.4rem; display: block; }
.sng-kit-track-v3-call { min-height: 40px; white-space: nowrap; }
.sng-kit-track-v3 .workBtn { min-height: 56px; width: 100%; border-radius: 1rem; font-weight: 900; }

/* ========== DriverPanelV2 home (routemaster) ========== */
#driverPanelV2Page.sng-kit-page {
    max-width: 520px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
}
html[data-theme="dark"] #driverPanelV2Page.sng-kit-page {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.sng-kit-dpv2-exec {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 20px;
    padding: 12px 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sng-kit-dpv2-exec-id, .sng-kit-dpv2-exec-car { display: flex; align-items: center; }
.sng-kit-dpv2-exec-id { gap: 10px; min-width: 0; }
.sng-kit-dpv2-exec-car { justify-content: space-between; gap: 10px; }
.sng-kit-dpv2-avatar {
    width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 45%, #7c3aed 100%);
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 6px 18px -2px rgba(37, 99, 235, 0.45);
}
.sng-kit-dpv2-exec-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sng-kit-dpv2-exec-name { font-weight: 800; font-size: 0.92rem; color: var(--text-main); }
.sng-kit-dpv2-exec-sub, .sng-kit-dpv2-company { font-size: 0.66rem; font-weight: 600; color: var(--text-muted); }
.sng-kit-dpv2-exec-line { height: 1px; background: var(--border-main); }
.sng-kit-dpv2-exec-car-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; text-align: left; }
.sng-kit-dpv2-car { font-size: 0.76rem; font-weight: 800; color: var(--text-main); }
#driverPanelV2Page .sng-kit-dpv2-plate,
#modalDriverFinance .sng-kit-dpv2-plate {
    width: 148px; height: 34px; border: 1.5px solid #0f172a; border-radius: 6px;
    display: flex; overflow: hidden; background: #fff; direction: ltr; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1), inset 0 1px 1px rgba(255,255,255,0.9);
}
#driverPanelV2Page .sng-kit-dpv2-plate-blue,
#modalDriverFinance .sng-kit-dpv2-plate-blue {
    width: 22px; flex: 0 0 22px; background: #003399; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; padding: 2px 0; position: relative; overflow: hidden;
}
#driverPanelV2Page .sng-kit-dpv2-plate-blue > span,
#modalDriverFinance .sng-kit-dpv2-plate-blue > span {
    position: static; left: auto; top: auto; transform: none;
    letter-spacing: 0; font-family: Tahoma, Arial, sans-serif; white-space: normal;
}
#driverPanelV2Page .sng-kit-dpv2-flag,
#modalDriverFinance .sng-kit-dpv2-flag { width: 12px; height: 7px; }
#driverPanelV2Page .sng-kit-dpv2-ir,
#modalDriverFinance .sng-kit-dpv2-ir { color: #fff; font-size: 0.34rem; font-weight: 900; line-height: 1; }
#driverPanelV2Page .sng-kit-dpv2-iran,
#modalDriverFinance .sng-kit-dpv2-iran { color: #fff; font-size: 0.28rem; font-weight: 800; line-height: 1; }
#driverPanelV2Page .sng-kit-dpv2-plate-main,
#modalDriverFinance .sng-kit-dpv2-plate-main {
    flex: 1; display: flex; align-items: center; justify-content: space-evenly;
    gap: 0; color: #0f172a; font-weight: 900; font-size: 0.95rem; line-height: 1; padding: 0 3px;
    background: transparent; border-radius: 0;
}
#driverPanelV2Page .sng-kit-dpv2-plate-city,
#modalDriverFinance .sng-kit-dpv2-plate-city {
    width: 30px; flex: 0 0 30px; border-left: 1.5px solid #0f172a;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #0f172a; font-weight: 900; font-size: 0.82rem; line-height: 1;
    gap: 0; background: transparent; border-radius: 0; padding: 0;
}
#driverPanelV2Page .sng-kit-dpv2-plate-city > span:first-child,
#modalDriverFinance .sng-kit-dpv2-plate-city > span:first-child { font-size: 0.42rem; font-weight: 800; }
#driverPanelV2Page .sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-blue,
#driverPanelV2Page .sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-main,
#driverPanelV2Page .sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-city,
#modalDriverFinance .sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-blue,
#modalDriverFinance .sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-main,
#modalDriverFinance .sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-city { display: none; }
#driverPanelV2Page .sng-kit-dpv2-plate-fallback,
#modalDriverFinance .sng-kit-dpv2-plate-fallback { display: none; }
#driverPanelV2Page .sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-fallback,
#modalDriverFinance .sng-kit-dpv2-plate.is-fallback .sng-kit-dpv2-plate-fallback {
    display: flex; align-items: center; justify-content: center; width: 100%; font-weight: 800; color: #0f172a;
}
#modalDriverFinance .sng-kit-dpv2-fleet-plate {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
#modalDriverFinance .sng-kit-dpv2-fleet-plate .sng-kit-dpv2-plate { margin-top: 2px; }
.sng-kit-dpv2-pill {
    width: 100%; text-align: inherit; cursor: pointer;
    background: var(--bg-card); border: 1px solid rgba(192, 38, 211, 0.22); border-right: 3.5px solid #c026d3;
    border-radius: 14px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.sng-kit-dpv2-pill[hidden] { display: none !important; }
.sng-kit-dpv2-pill-side, .sng-kit-dpv2-pill-go { display: flex; align-items: center; gap: 8px; }
.sng-kit-dpv2-pill-icon { width: 26px; height: 26px; border-radius: 8px; background: #fae8ff; color: #c026d3; display: flex; align-items: center; justify-content: center; }
.sng-kit-dpv2-pill-title { font-weight: 800; font-size: 0.78rem; color: var(--text-main); }
.sng-kit-dpv2-pill-count { background: #fae8ff; color: #c026d3; font-size: 0.65rem; font-weight: 800; padding: 1px 6px; border-radius: 5px; }
.sng-kit-dpv2-pill-go { font-size: 0.68rem; font-weight: 800; color: #c026d3; background: rgba(192, 38, 211, 0.08); border-radius: 7px; padding: 3px 8px; }
html[data-theme="dark"] .sng-kit-dpv2-pill { border-color: rgba(232, 121, 249, 0.2); border-right-color: #e879f9; }
html[data-theme="dark"] .sng-kit-dpv2-pill-icon,
html[data-theme="dark"] .sng-kit-dpv2-pill-count { background: rgba(192, 38, 211, 0.22); color: #e879f9; }
html[data-theme="dark"] .sng-kit-dpv2-pill-go { color: #e879f9; }
.sng-kit-dpv2-ignition {
    background: var(--bg-card); border: 1px solid var(--border-main); border-radius: 22px;
    padding: 24px 16px; display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05); position: relative; overflow: hidden; min-height: 250px;
}
.sng-kit-dpv2-ignition::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 68%); pointer-events: none; }
.sng-kit-dpv2-radar { position: relative; width: 228px; height: 228px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1; }
.sng-kit-dpv2-halo { position: absolute; border-radius: 50%; pointer-events: none; }
.sng-kit-dpv2-halo-out { width: 220px; height: 220px; background: radial-gradient(circle, rgba(124, 58, 237, 0.16) 0%, transparent 70%); animation: sngDpv2HaloOut 3.6s ease-in-out infinite; }
.sng-kit-dpv2-halo-in { width: 180px; height: 180px; background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, transparent 70%); animation: sngDpv2HaloIn 2.4s ease-in-out infinite alternate; }
@keyframes sngDpv2HaloOut { 0%,100% { transform: scale(0.96); opacity: 0.5; } 50% { transform: scale(1.15); opacity: 0.85; } }
@keyframes sngDpv2HaloIn { 0% { transform: scale(0.98); opacity: 0.6; } 100% { transform: scale(1.12); opacity: 1; } }
.sng-kit-dpv2-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); z-index: 2; filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.3)); }
.sng-kit-dpv2-ticks { fill: none; stroke: var(--border-main); stroke-width: 1.5; stroke-dasharray: 2 6; opacity: 0.6; }
.sng-kit-dpv2-ring-bg { fill: none; stroke: var(--bg-card-alt, #f1f5f9); stroke-width: 8; }
.sng-kit-dpv2-ring-fg { fill: none; stroke: url(#sngKitRingGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 528; stroke-dashoffset: 528; transition: stroke-dashoffset 0.45s ease; }
.sng-kit-dpv2-radar.is-go .sng-kit-dpv2-ring-fg { stroke-dashoffset: 0; }
.sng-kit-dpv2-core {
    width: 168px; height: 168px; border-radius: 50%; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: radial-gradient(120% 120% at 35% 25%, #fff 0%, var(--bg-card) 60%, var(--bg-card-alt, #f1f5f9) 100%);
    border: 2.5px solid rgba(255,255,255,0.85);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.16), inset 0 2px 4px rgba(255,255,255,0.95), inset 0 -4px 8px rgba(0, 0, 0, 0.06);
}
html[data-theme="dark"] .sng-kit-dpv2-core {
    background: radial-gradient(120% 120% at 35% 25%, #1e293b 0%, #0f172a 70%, #090e17 100%);
    border-color: rgba(255,255,255,0.14);
}
.sng-kit-dpv2-core-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(79, 70, 229, 0.12); color: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.sng-kit-dpv2-core-title { font-weight: 900; font-size: 1.05rem; color: var(--text-main); }
.sng-kit-dpv2-ready { display: inline-flex; align-items: center; gap: 5px; background: rgba(16, 185, 129, 0.1); color: #059669; border-radius: 99px; padding: 2px 9px; font-size: 0.65rem; font-weight: 800; }
.sng-kit-dpv2-led { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.sng-kit-dpv2-guide {
    margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.07), rgba(124, 58, 237, 0.1));
    color: var(--text-main); border-radius: 999px; padding: 5px 14px 5px 11px; font-size: 0.72rem; font-weight: 800; cursor: pointer;
    position: relative; z-index: 1; max-width: 96%;
    box-shadow: 0 4px 14px -2px rgba(79, 70, 229, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.sng-kit-dpv2-guide:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, 0.45); }
html[data-theme="dark"] .sng-kit-dpv2-guide { background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(124, 58, 237, 0.22)); border-color: rgba(129, 140, 248, 0.32); color: #f1f5f9; }
.sng-kit-dpv2-beacon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; flex-shrink: 0; }
.sng-kit-dpv2-beacon-ping { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: #6366f1; opacity: 0.6; animation: sngDpv2Beacon 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
.sng-kit-dpv2-beacon-dot { width: 7px; height: 7px; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 6px #6366f1; z-index: 1; }
html[data-theme="dark"] .sng-kit-dpv2-beacon-dot { background: #818cf8; box-shadow: 0 0 8px #818cf8; }
@keyframes sngDpv2Beacon { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.sng-kit-dpv2-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sng-kit-dpv2-tile {
    text-align: right; cursor: pointer; min-height: 102px; border-radius: 18px; padding: 12px 10px;
    border: 1px solid var(--border-main); background: linear-gradient(155deg, var(--bg-card), var(--bg-card-alt, #f8fafc));
    display: flex; flex-direction: column; justify-content: space-between; gap: 4px; position: relative; overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.sng-kit-dpv2-tile::before { content: ''; position: absolute; top: 0; left: 10px; right: 10px; height: 3px; border-radius: 99px; }
.sng-kit-dpv2-tile:hover { transform: translateY(-3px); }
.sng-kit-dpv2-tile.is-students:hover { border-color: rgba(79, 70, 229, 0.45); box-shadow: 0 8px 22px -4px rgba(79, 70, 229, 0.18); }
.sng-kit-dpv2-tile.is-companies:hover { border-color: rgba(8, 145, 178, 0.45); box-shadow: 0 8px 22px -4px rgba(8, 145, 178, 0.18); }
.sng-kit-dpv2-tile.is-salary:hover { border-color: rgba(217, 119, 6, 0.45); box-shadow: 0 8px 22px -4px rgba(217, 119, 6, 0.18); }
.sng-kit-dpv2-tile.is-received:hover { border-color: rgba(5, 150, 105, 0.45); box-shadow: 0 8px 22px -4px rgba(5, 150, 105, 0.18); }
.sng-kit-dpv2-tile.is-students::before { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.sng-kit-dpv2-tile.is-companies::before { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.sng-kit-dpv2-tile.is-salary::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.sng-kit-dpv2-tile.is-received::before { background: linear-gradient(90deg, #059669, #34d399); }
.sng-kit-dpv2-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 0.68rem; font-weight: 800; color: var(--text-muted); }
.sng-kit-dpv2-tile-top i { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.is-students .sng-kit-dpv2-tile-top i { background: rgba(79,70,229,.1); color: #4f46e5; }
.is-companies .sng-kit-dpv2-tile-top i { background: rgba(8,145,178,.1); color: #0891b2; }
.is-salary .sng-kit-dpv2-tile-top i { background: rgba(217,119,6,.1); color: #d97706; }
.is-received .sng-kit-dpv2-tile-top i { background: rgba(5,150,105,.1); color: #059669; }
.sng-kit-dpv2-tile-val { display: flex; align-items: baseline; gap: 4px; }
.sng-kit-dpv2-tile-val b { font-size: 1.05rem; font-weight: 900; color: var(--text-main); }
.sng-kit-dpv2-tile-val small { font-size: 0.58rem; font-weight: 700; color: var(--text-muted); }
.sng-kit-dpv2-chip { display: inline-flex; align-items: center; gap: 4px; width: fit-content; border-radius: 7px; padding: 2px 7px; font-size: 0.6rem; font-weight: 800; }
.sng-kit-dpv2-chip[hidden] { display: none !important; }
.sng-kit-dpv2-chip.is-indigo { background: rgba(79,70,229,.08); color: #4338ca; }
.sng-kit-dpv2-chip.is-cyan { background: rgba(8,145,178,.08); color: #0e7490; }
.sng-kit-dpv2-chip.is-amber { background: rgba(217,119,6,.08); color: #b45309; }
.sng-kit-dpv2-chip.is-emerald { background: rgba(5,150,105,.08); color: #047857; }
html[data-theme="dark"] .sng-kit-dpv2-chip.is-indigo { color: #a5b4fc; background: rgba(99,102,241,.15); }
html[data-theme="dark"] .sng-kit-dpv2-chip.is-cyan { color: #67e8f9; background: rgba(6,182,212,.15); }
html[data-theme="dark"] .sng-kit-dpv2-chip.is-amber { color: #fcd34d; background: rgba(217,119,6,.18); }
html[data-theme="dark"] .sng-kit-dpv2-chip.is-emerald { color: #6ee7b7; background: rgba(5,150,105,.18); }
@media (max-width: 991.98px) {
    .sng-kit-dpv2-bento { grid-template-columns: repeat(2, 1fr); }
}
.sng-kit-dpv2-sheet { background: var(--bg-card); color: var(--text-main); max-height: 86vh; display: flex; flex-direction: column; width: 100%; }
.sng-kit-dpv2-sheet .sng-tw-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px dashed var(--border-main); }
.sng-kit-dpv2-sheet .sng-tw-modal-head h5 { margin: 0; font-size: 1rem; font-weight: 900; display: flex; align-items: center; gap: 8px; color: var(--text-main); }
.sng-kit-dpv2-sheet .sng-tw-modal-body { padding: 14px 16px 18px; overflow: auto; background: var(--bg-body); }
.sng-kit-dpv2-sheet-sub { margin: 2px 0 0; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.sng-kit-dpv2-search { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-main); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
.sng-kit-dpv2-search input { border: 0; outline: 0; background: transparent; width: 100%; color: var(--text-main); font-weight: 700; }
.sng-kit-dpv2-pills { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; }
.sng-kit-dpv2-shift { border: 1px solid var(--border-main); background: var(--bg-card); color: var(--text-muted); border-radius: 999px; padding: 4px 10px; font-size: 0.68rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.sng-kit-dpv2-shift.is-on { background: rgba(79,70,229,.12); color: #4338ca; border-color: rgba(79,70,229,.3); }
.sng-kit-dpv2-stu, .sng-kit-dpv2-co, .sng-kit-dpv2-fleet, .sng-kit-dpv2-abs {
    background: var(--bg-card); border: 1px solid var(--border-main); border-radius: 16px; padding: 12px; margin-bottom: 8px;
}
.sng-kit-dpv2-stu { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sng-kit-dpv2-stu.is-absent { border-right: 3px solid #e11d48; }
.sng-kit-dpv2-abs { border-right: 3.5px solid #c026d3; }
.sng-kit-dpv2-stu-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sng-kit-dpv2-ava { width: 36px; height: 36px; border-radius: 12px; background: #e0e7ff; color: #4338ca; display: flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; }
.sng-kit-dpv2-ava.is-abs { background: #fae8ff; color: #c026d3; }
.sng-kit-dpv2-stu-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 800; color: var(--text-main); }
.sng-kit-dpv2-stu-addr, .sng-kit-dpv2-turns, .sng-kit-dpv2-addr { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); margin: 2px 0 0; }
.sng-kit-dpv2-abs-badge { background: #ffe4e6; color: #e11d48; border-radius: 99px; padding: 1px 6px; font-size: 0.62rem; font-weight: 800; }
.sng-kit-dpv2-mini, .sng-kit-dpv2-print {
    display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 10px;
    background: rgba(5,150,105,.1); color: #047857; font-size: 0.7rem; font-weight: 800; border: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.sng-kit-dpv2-call { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-bottom: 8px; border-radius: 12px; padding: 10px; background: rgba(5,150,105,.1); color: #047857; font-weight: 800; text-decoration: none; }
.sng-kit-dpv2-abs-top, .sng-kit-dpv2-fleet-top, .sng-kit-dpv2-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sng-kit-dpv2-abs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 8px; border-top: 1px solid var(--border-main); padding-top: 8px; }
.sng-kit-dpv2-abs-grid span { display: block; font-size: 0.68rem; font-weight: 700; color: var(--text-muted); }
.sng-kit-dpv2-abs-grid b { display: block; margin-top: 2px; font-size: 0.78rem; font-weight: 900; color: var(--text-main); }
.sng-kit-dpv2-abs-grid .is-route { grid-column: 1 / -1; }
.sng-kit-dpv2-abs-grid .is-route b { color: #047857; }
.sng-kit-dpv2-call-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sng-kit-dpv2-call-who h5 { margin: 0; }
.sng-kit-dpv2-co h6, .sng-kit-dpv2-fleet-top strong { margin: 0; font-weight: 900; color: var(--text-main); }
.sng-kit-dpv2-metrics, .sng-kit-dpv2-fleet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sng-kit-dpv2-fin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sng-kit-dpv2-metrics > div, .sng-kit-dpv2-fin-stats > div, .sng-kit-dpv2-fleet-grid > div { background: var(--bg-body); border-radius: 12px; padding: 8px; }
.sng-kit-dpv2-metrics b, .sng-kit-dpv2-fin-stats b, .sng-kit-dpv2-fleet-grid > div > b { display: block; font-weight: 900; color: var(--text-main); }
.sng-kit-dpv2-metrics > div > span, .sng-kit-dpv2-fin-stats > div > span, .sng-kit-dpv2-fleet-grid > div > span:first-child { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); }
.sng-kit-dpv2-fin-stats { text-align: center; }
.sng-kit-dpv2-fin-strip { background: var(--bg-card); border: 1px solid var(--border-main); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.sng-kit-dpv2-fin-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 8px; color: var(--text-main); }
.sng-kit-dpv2-bar { height: 5px; border-radius: 99px; background: var(--border-main); margin-bottom: 8px; overflow: hidden; }
.sng-kit-dpv2-bar span { display: block; height: 100%; width: 0; background: #059669; border-radius: 99px; }
.sng-kit-dpv2-empty { margin: 0; font-size: 0.78rem; font-weight: 800; color: var(--text-muted); }
.sng-kit-dpv2-print { background: rgba(79,70,229,.1); color: #4338ca; margin-top: 8px; }
.sng-kit-dpv2-line { margin-top: 8px; }
@media (max-width: 639px) {
    #driverPanelV2Page.sng-kit-page { padding: 0; border-radius: 0; }
}

button.doka--button.doka--button-app.doka--button-action-confirm.doka--button-icon-fallback {
    cursor: pointer !important;
}

/* ========== کارت تصمیم دلیل (کارتابل بررسی قرارداد) ========== */
.sng-kit-decide-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sng-kit-decide-lead {
    margin: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(189, 0, 255, 0.06);
    border: 1px solid rgba(189, 0, 255, 0.12);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
}

html[data-theme="dark"] .sng-kit-decide-lead {
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.16);
}

.sng-kit-decide-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(189, 0, 255, 0.14);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="dark"] .sng-kit-decide-card {
    background: rgba(10, 11, 28, 0.5);
    border-color: rgba(0, 229, 255, 0.2);
}

.sng-kit-decide-card.is-yes {
    border-color: color-mix(in srgb, var(--c-success) 55%, transparent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--c-success) 12%, transparent);
}

.sng-kit-decide-card.is-no {
    border-color: color-mix(in srgb, var(--c-danger) 55%, transparent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--c-danger) 10%, transparent);
}

.sng-kit-decide-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.sng-kit-decide-index {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 900;
    background: rgba(189, 0, 255, 0.12);
    color: var(--kit-purple, var(--c-primary));
}

html[data-theme="dark"] .sng-kit-decide-index {
    background: rgba(0, 229, 255, 0.12);
    color: var(--kit-ice, var(--c-primary));
}

.sng-kit-decide-head .reasonName {
    font-size: 0.85rem;
    font-weight: 900;
    line-height: 1.55;
    color: var(--text-main);
    min-width: 0;
}

.sng-kit-decide-head .sng-kit-badge {
    margin-inline-start: auto;
    margin-right: 0;
    flex: 0 0 auto;
}

.sng-kit-decide-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.15rem;
}

.sng-kit-decide-meta,
.sng-kit-decide-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 0.8rem;
    background: rgba(189, 0, 255, 0.05);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    color: var(--text-main);
}

.sng-kit-decide-fact span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
}

.sng-kit-decide-fact b,
.sng-kit-decide-meta b {
    font-weight: 900;
}

html[data-theme="dark"] .sng-kit-decide-meta,
html[data-theme="dark"] .sng-kit-decide-fact {
    background: rgba(0, 229, 255, 0.06);
}

.sng-kit-decide-seg {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.sng-kit-decide-range {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sng-kit-decide-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    border: 1px solid rgba(189, 0, 255, 0.16);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.85rem;
    padding: 0.7rem 0.5rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

html[data-theme="dark"] .sng-kit-decide-opt {
    background: rgba(10, 11, 28, 0.45);
    border-color: rgba(0, 229, 255, 0.2);
    color: #e2e8f0;
}

.sng-kit-decide-opt:hover {
    border-color: rgba(189, 0, 255, 0.4);
    background: rgba(189, 0, 255, 0.06);
}

html[data-theme="dark"] .sng-kit-decide-opt:hover {
    border-color: rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.08);
}

.sng-kit-decide-opt[data-val="1"].is-on {
    background: var(--c-success);
    border-color: transparent;
    color: #fff;
}

.sng-kit-decide-opt[data-val="3"].is-on {
    background: var(--c-danger);
    border-color: transparent;
    color: #fff;
}

.sng-kit-decide-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.sng-kit-decide-num {
    width: 11.5rem;
    max-width: 100%;
}

.sng-kit-decide-num .sng-kit-input {
    width: 100%;
    text-align: center;
    font-weight: 900;
    font-size: 1.2rem;
}

.sng-kit-decide-unit {
    width: auto;
    padding: 0 0.35rem;
    font-size: 11px;
    font-weight: 900;
    color: var(--kit-purple, var(--c-primary));
    cursor: default;
    pointer-events: none;
}

html[data-theme="dark"] .sng-kit-decide-unit {
    color: var(--kit-ice, var(--c-primary));
}

.sng-kit-decide-amount .sng-kit-hint {
    margin: 0;
}

.sng-kit-decide-extra {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.03);
}

html[data-theme="dark"] .sng-kit-decide-extra {
    background: rgba(255, 255, 255, 0.04);
}

.sng-kit-decide-dsc {
    margin: 0;
    flex: 1 1 auto;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.75;
    color: var(--text-main);
}

.sng-kit-decide-shot {
    display: block;
    flex: 0 0 auto;
    width: 4.5rem;
    height: 3.4rem;
    margin: 0;
    border-radius: 0.7rem;
    overflow: hidden;
    border: 1px solid rgba(189, 0, 255, 0.18);
    background: rgba(255, 255, 255, 0.6);
}

.sng-kit-decide-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.sng-kit-decide-miss {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
}

.sng-kit-decide-reject {
    display: none;
    padding: 0.7rem 0.75rem 0.8rem;
    border-radius: 0.85rem;
    background: rgba(255, 23, 68, 0.06);
    border: 1px solid rgba(255, 23, 68, 0.16);
}

.sng-kit-decide-note {
    width: 100%;
    min-height: 4.25rem;
}

.sng-kit-decide-card.is-plain {
    gap: 0.45rem;
    padding: 0.8rem 0.95rem;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 480px) {
    .sng-kit-decide-seg {
        grid-template-columns: 1fr;
    }
}

.sng-kit-srv-detail {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
}

.sng-kit-srv-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.sng-kit-srv-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.75rem;
    background: rgba(189, 0, 255, 0.06);
}

.sng-kit-srv-detail-item span {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
}

.sng-kit-srv-detail-item b {
    font-size: 13px;
    font-weight: 900;
    color: var(--text-main);
}

.sng-kit-srv-detail .sng-open-month-days {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

html[data-theme="dark"] .sng-kit-srv-detail-item {
    background: rgba(0, 229, 255, 0.06);
}

.sng-kit-srv-detail-reasons {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sng-kit-srv-detail-reason {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(189, 0, 255, 0.14);
    background: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .sng-kit-srv-detail-reason {
    background: rgba(10, 11, 28, 0.45);
    border-color: rgba(0, 229, 255, 0.18);
}

.sng-kit-srv-detail-reason header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.sng-kit-srv-detail-reason header b {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-main);
}

.sng-kit-srv-detail-reason header span {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
}

.sng-kit-srv-detail-reason p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--text-main);
}

.sng-kit-srv-detail-shot {
    display: block;
    width: 4.5rem;
    height: 3.2rem;
    margin: 0;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(189, 0, 255, 0.18);
}

.sng-kit-srv-detail-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.sng-kit-srv-detail-miss,
.sng-kit-srv-detail-empty {
    display: inline-flex;
    align-items: center;
    margin: 0;
    min-height: 1.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.6rem;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 480px) {
    .sng-kit-srv-detail-grid {
        grid-template-columns: 1fr;
    }
}

.sng-kit-month-days {
    overflow-x: hidden;
}

.sng-kit-month-days-driver,
.sng-kit-month-days-empty,
.sng-kit-month-days-sum {
    margin: 0 0 0.75rem;
    font-weight: 800;
}

.sng-kit-month-days-sum {
    margin-top: 0.85rem;
}

.sng-kit-month-days-sum.is-bad {
    color: var(--c-danger);
}

.sng-kit-month-days-table {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) 8.5rem;
    column-gap: 0.75rem;
    row-gap: 0.65rem;
    align-items: center;
}

.sng-kit-month-days-h {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
}

.sng-kit-month-days-name b {
    display: block;
}

.sng-kit-month-days-name small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sng-kit-month-days-ctrl {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.sng-kit-month-days-ctrl input[type="range"] {
    flex: 1 1 auto;
    min-width: 0;
    accent-color: #bd00ff;
}

.sng-kit-month-days-num {
    width: 3.25rem;
    flex: 0 0 auto;
    padding: 0.35rem 0.25rem;
    border: 1px solid var(--border-main);
    border-radius: 0.6rem;
    background: transparent;
    color: var(--text-main);
    text-align: center;
}

.sng-kit-month-days-num.is-text {
    width: auto;
    border: 0;
    padding: 0;
    font-weight: 800;
}

.sng-kit-month-days-money {
    font-weight: 800;
    text-align: left;
}

.sng-kit-month-days-name.is-zero,
.sng-kit-month-days-ctrl.is-zero,
.sng-kit-month-days-money.is-zero {
    opacity: 0.45;
}

#btnServiceMonthsSave:disabled,
#btnServiceMonthsReset:disabled {
    opacity: 0.45;
    pointer-events: none;
}

html[data-theme="dark"] .sng-kit-month-days-ctrl input[type="range"] {
    accent-color: #00e5ff;
}