/* ==========================================================
   TBi FLOW - التصميم (على هيكل Contract Plus)
   الأساسي #3659A8 - الثانوي #F15B42
   ========================================================== */

:root {
    --primary: #3659A8;
    --primary-dark: #2B4786;
    --primary-soft: #E8EEF9;
    --accent: #F15B42;
    --accent-dark: #D9472F;
    --accent-soft: #FDECE9;
    --text: #1E293B;
    --text-2: #334155;
    --muted: #64748B;
    --faint: #94A3B8;
    --border: #EEF2F6;
    --bg: #E8EDF4;
    --danger: #EF4444;
    --danger-soft: #FEF2F2;
    --surface: #FFFFFF;
    --surface-2: #F8FAFC;
    --hover: #F4F7FB;
    --input-border: #E2E8F0;
    --chip: #F1F5F9;
    --border-strong: #DDE3EC;
    --sb-w: 260px;
}

/* ===== الوضع الليلي ===== */
[data-theme="dark"] {
    --primary: #5B7FD1;
    --primary-dark: #4A6CC0;
    --primary-soft: rgba(91, 127, 209, .16);
    --text: #E5E9F0;
    --text-2: #C7CFDC;
    --muted: #94A3B8;
    --faint: #6B7A90;
    --border: #243049;
    --border-strong: #2C3A57;
    --bg: #0E1627;
    --surface: #151F33;
    --surface-2: #1A2640;
    --hover: #1C2944;
    --input-border: #2C3A57;
    --chip: #1F2C47;
    --danger-soft: rgba(239, 68, 68, .12);
    color-scheme: dark;
}

.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.ic-sun { display: none; }
[data-theme="dark"] .ic-moon { display: none; }
[data-theme="dark"] .ic-sun { display: flex; }
.ic-moon { display: flex; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', 'Segoe UI Arabic', Tahoma, Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
button { font: inherit; }

/* ===== القائمة الجانبية ===== */
.sb {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sb-w);
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 40;
    transition: transform .25s ease;
}

.sb-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sb-logo img {
    height: 46px;
}

.sb-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 12px 20px;
}

.sb-sec {
    font-size: 11px;
    font-weight: 700;
    color: var(--faint);
    padding: 16px 10px 6px;
}

.nv {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: right;
    margin-bottom: 2px;
    transition: background .15s, color .15s;
}

.nv svg {
    color: var(--faint);
    flex-shrink: 0;
}

.nv:focus {
    outline: none;
}

.nv:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-soft);
}

.nv:hover {
    background: var(--hover);
    color: var(--text);
}

.nv.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}

.nv.active svg {
    color: var(--primary);
}

.nv-label {
    flex-grow: 1;
}

.nv-arrow {
    display: flex;
    transition: transform .2s;
}

.nv-group.open .nv-arrow {
    transform: rotate(180deg);
}

.sub {
    display: none;
    padding: 2px 0 6px;
    margin-right: 19px;
    border-right: 1px solid var(--border);
}

.nv-group.open .sub {
    display: block;
}

.sl {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border-radius: 6px;
    margin-right: 6px;
}

.sl:hover {
    color: var(--primary);
    background: var(--hover);
}

.sl.active {
    color: var(--primary);
    font-weight: 700;
}

.sd {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #CBD5E1;
    flex-shrink: 0;
}

.sl.active .sd {
    background: var(--primary);
}

.sl-plus {
    display: flex;
    width: 14px;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.is-soon {
    cursor: default;
    opacity: .75;
}

.is-soon:hover {
    background: transparent;
    color: inherit;
}

.nv em,
.sl em {
    margin-right: auto;
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--chip);
    color: var(--faint);
}

.sb-foot {
    padding: 12px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.sb-usr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 10px;
}

.sb-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.sb-inf {
    min-width: 0;
}

.sb-inf p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.sb-inf span {
    display: block;
    font-size: 12px;
    color: var(--faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-logout {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 500;
}

.sb-logout:hover {
    background: var(--danger-soft);
    color: #DC2626;
}

.sb-overlay { display: none; }

/* ===== المحتوى ===== */
.main {
    margin-right: var(--sb-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tb {
    height: 70px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr minmax(0, 420px) 1fr;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 30;
    flex-shrink: 0;
}

.tb-start {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tb-menu {
    display: none;
    background: none;
    border: 0;
    color: var(--text-2);
    cursor: pointer;
    padding: 4px;
}

.tb-crumb {
    font-size: 12px;
    color: var(--faint);
}

.tb-crumb span {
    margin: 0 4px;
}

.tb-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.tb-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.tb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--faint);
}

.tb-search input {
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    width: 100%;
}

.tb-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.inner {
    flex-grow: 1;
}

.ft {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--faint);
}

/* ===== عناصر عامة ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-dark); color: #FFFFFF; }
.btn-block { width: 100%; }

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.field input,
.field select,
.field textarea {
    height: 42px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(54, 89, 168, .1);
}

.alert {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid;
}

.alert-success { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
.alert-error { background: var(--danger-soft); border-color: #FECACA; color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }

.empty {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.empty strong {
    font-size: 16px;
}

.empty small {
    font-size: 13px;
    color: var(--faint);
}

.empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* ===== صفحة الدخول ===== */
.auth-page {
    display: flex;
    min-height: 100vh;
    background: var(--surface);
}

.auth-side {
    width: 42%;
    background: linear-gradient(160deg, var(--primary) 0%, #1F3366 100%);
    color: #FFFFFF;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.auth-logo {
    height: 56px;
    align-self: flex-start;
    margin-bottom: 20px;
}

.auth-side h2 {
    font-size: 28px;
    font-weight: 700;
}

.auth-side p {
    font-size: 16px;
    color: rgba(255, 255, 255, .8);
    max-width: 380px;
}

.auth-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
}

.auth-card h1 {
    font-size: 22px;
    font-weight: 700;
}

.auth-hint {
    color: var(--muted);
    font-size: 14px;
    margin: 4px 0 24px;
}

/* ===== الموبايل ===== */
@media (max-width: 900px) {
    .sb { transform: translateX(100%); }
    .sb.open { transform: translateX(0); }

    .sb-overlay.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .35);
        z-index: 35;
    }

    .main { margin-right: 0; }
    .tb-menu { display: flex; }
    .tb-search { display: none; }
    .tb { grid-template-columns: 1fr auto; }
    .tb { padding: 0 16px; }
    .content { padding: 16px; }
    .auth-side { display: none; }
}

/* ===== البحث السريع ===== */
.tb-search-wrap {
    position: relative;
    width: 100%;
}

.tb-search kbd {
    font-family: inherit;
    font-size: 11px;
    color: var(--faint);
    border: 1px solid var(--input-border);
    border-radius: 5px;
    padding: 0 6px;
    direction: ltr;
    white-space: nowrap;
}

.gs-drop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    padding: 6px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 60;
}

.gs-drop.open {
    display: block;
}

.gs-group {
    font-size: 11px;
    font-weight: 700;
    color: var(--faint);
    padding: 8px 10px 4px;
}

.gs-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
}

.gs-item:hover {
    background: var(--hover);
    color: var(--text);
}

.gs-item strong {
    font-size: 14px;
    font-weight: 600;
}

.gs-item small {
    font-size: 12px;
    color: var(--muted);
}

.gs-all {
    display: block;
    text-align: center;
    padding: 9px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
}

.gs-empty {
    padding: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}


/* ===== لمسات اللون الثانوي #F15B42 ===== */
.nv {
    position: relative;
}

.nv.active::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 7px;
    bottom: 7px;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: var(--accent);
}

.sl-plus {
    color: var(--accent) !important;
}

.sl.active .sd {
    background: var(--accent);
}

.tb-title::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
    margin-top: 3px;
}

.btn-accent {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #FFFFFF;
}

.empty-icon {
    background: var(--accent-soft);
    color: var(--accent);
}

[data-theme="dark"] {
    --accent-soft: rgba(241, 91, 66, .15);
}

/* ==========================================================
   التوب بار: شريط أزرق متصل بعرض الشاشة والشعار جزء منه
   ========================================================== */
:root {
    --tb-h: 76px;
}

body {
    padding-top: var(--tb-h);
}

body.auth-page {
    padding-top: 0;
}

.tb {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--tb-h);
    background: #365BA6;
    border: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px 0 0;
    z-index: 50;
}

.tb-logo {
    width: var(--sb-w);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 16px;
}

.tb-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

.tb-start {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tb-menu {
    display: none;
    background: none;
    border: 0;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.tb-page {
    min-width: 0;
}

.tb-crumb {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
}

.tb-crumb span {
    margin: 0 4px;
}

.tb-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-title::after {
    background: var(--accent);
}

.tb-search-wrap {
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
}

.tb-search {
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    color: #FFFFFF;
}

.tb-search svg {
    color: #FFFFFF;
}

.tb-search input {
    color: #FFFFFF;
}

.tb-search input::placeholder {
    color: rgba(255, 255, 255, .75);
}

.tb-search kbd {
    color: rgba(255, 255, 255, .8);
    border-color: rgba(255, 255, 255, .35);
}

.tb-end {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-right: auto;
}

.tb-icon {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    border-radius: 10px;
}

.tb-icon:hover,
.tb-icon:focus-visible {
    background: rgba(255, 255, 255, .16);
    color: #FFFFFF;
    outline: none;
}

.tb-search-btn {
    display: none;
}

/* القائمة الجانبية تبدأ تحت التوب بار */
.sb {
    top: var(--tb-h);
    height: calc(100vh - var(--tb-h));
    border-top: 0;
}

.main {
    min-height: calc(100vh - var(--tb-h));
}

/* نتائج البحث تفضل بيضا ونصها داكن */
.gs-drop {
    background: var(--surface);
    color: var(--text);
    z-index: 60;
}

@media (max-width: 900px) {
    :root { --tb-h: 64px; }

    .tb {
        padding: 0 12px 0 0;
        gap: 8px;
    }

    .tb-logo {
        width: auto;
        padding: 0 10px;
    }

    .tb-logo img {
        max-height: 34px;
    }

    .tb-menu {
        display: flex;
    }

    .tb-page {
        display: none;
    }

    .tb-search-btn {
        display: flex;
    }

    .tb-search-wrap {
        display: none;
        position: absolute;
        top: 100%;
        right: 8px;
        left: 8px;
        max-width: none;
        background: #365BA6;
        padding: 8px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
    }

    body.search-open .tb-search-wrap {
        display: block;
    }

    .sb-overlay.open {
        inset: var(--tb-h) 0 0 0;
    }
}

/* التوب بار: بدون عنوان صفحة ولا مسار تنقل */
.tb-page,
.tb-crumb,
.tb-title { display: none; }

.tb-start { gap: 0; }

.tb-search-wrap {
    margin-inline: auto;
}

@media (max-width: 900px) {
    .tb-start { gap: 0; }
}

/* أيقونات الإجراءات في التوب بار: مسافات ومحاذاة */
.tb {
    padding-left: 0;
}

.tb-end {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 32px;
    margin-right: auto;
}

.tb-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tb-icon svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 900px) {
    .tb { padding-left: 0; }
    .tb-end { padding-left: 16px; gap: 12px; }
}

/* خانة البحث موجودة، وزرار البحث المنفصل اتشال */
.tb-search-btn { display: none !important; }

@media (max-width: 900px) {
    .tb-search-wrap {
        display: block;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
        max-width: none;
        flex: 1;
    }

    .tb-search kbd { display: none; }
}


/* خلفية منطقة المحتوى والفوتر متصلة (الوضع الفاتح فقط) */
.main,
.content,
.ft {
    background: var(--bg);
}

@media print {
    .main,
    .content,
    .ft { background: #FFFFFF; }
}

/* ===== القائمة الجانبية: عرض 250px ومسافات مضبوطة ===== */
:root {
    --sb-w: 250px;
}

.sb-nav {
    padding: 16px 12px 20px;
}

.nv {
    gap: 8px;
    padding: 9px 12px;
}

.sl {
    gap: 8px;
    padding: 7px 12px;
    margin-right: 6px;
}

.sb-foot {
    padding: 12px;
}

.sb-usr {
    gap: 8px;
    padding: 4px 4px 10px;
    min-width: 0;
}

.sb-inf {
    min-width: 0;
    flex: 1 1 auto;
}

.sb-inf p,
.sb-inf span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-logout {
    gap: 8px;
    padding: 8px 12px;
}

/* ===== القائمة الجانبية: عرض 220px ===== */
:root {
    --sb-w: 220px;
}

.sb-nav {
    padding: 16px 10px 20px;
}

.nv {
    padding: 9px 10px;
    gap: 8px;
}

.nv-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* تداخل أقل للقوائم الفرعية */
.sub {
    margin-right: 14px;
    padding: 2px 0 6px;
}

.sl {
    padding: 7px 10px;
    margin-right: 4px;
    gap: 8px;
    white-space: nowrap;
}

.sb-foot {
    padding: 10px;
}

.sb-usr {
    padding: 4px 2px 10px;
}

.sb-logout {
    padding: 8px 10px;
}

/* ===== القوائم الفرعية: مقاسات ومحاذاة موحدة ===== */
.nv {
    min-height: 44px;
    height: auto;
    padding: 0 10px;
    font-size: 15px;
    line-height: 1.6;
}

.nv:focus { outline: none; box-shadow: none; }

.nv:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.nv-arrow svg { width: 15px; height: 15px; }

/* القسم الأب المفتوح: نص وأيقونة زرقا بدون خلفية */
.nv-group.open > .nv,
.nv-group.open > .nv svg {
    color: var(--primary);
}

.nv-group.open > .nv {
    background: transparent;
    font-weight: 600;
}

.nv-group.open > .nv::before { display: none; }

/* الصفحة الحالية فقط بخلفية زرقا فاتحة */
.nv.active,
.sl.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.nv.active svg { color: var(--primary); }

/* القائمة الفرعية */
.sub {
    display: none;
    margin-right: 16px;
    padding: 4px 0;
    border-right: 1px solid var(--border);
}

.nv-group.open .sub { display: flex; flex-direction: column; gap: 4px; }

.sl {
    min-height: 36px;
    height: auto;
    padding: 0 10px;
    margin-right: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sl:focus { outline: none; }

.sl:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.sl-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #CBD5E1;
    flex-shrink: 0;
}

.sl.active .sd { background: var(--primary); }

/* العناصر غير المتاحة */
.nv.is-soon,
.sl.is-soon {
    color: var(--faint);
    opacity: 1;
}

.nv.is-soon svg,
.sl.is-soon .sd { opacity: .7; }

.nv em,
.sl em {
    margin-right: auto;
    flex-shrink: 0;
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--chip);
    color: var(--faint);
    white-space: nowrap;
}

/* ===== القائمة الجانبية: خط موحد 14px وتمييز القسم الأب ===== */
.nv,
.sl {
    font-size: 14px;
}

/* القسم الأب للصفحة الحالية: أزرق بدون خلفية */
.nv-parent.is-current,
.nv-parent.is-current svg {
    color: var(--primary);
}

.nv-parent.is-current {
    background: transparent;
    font-weight: 700;
}

/* ===== أيقونات القائمة وعلامة الإضافة ===== */
.nv > svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
    color: #475569;
}

.nv:hover > svg { color: var(--text); }

.nv.active > svg,
.nv-parent.is-current > svg,
.nv-group.open > .nv > svg { color: var(--primary); }

/* روابط الإضافة: علامة + في أقصى اليسار والنص يمين */
.sl.is-add .sl-text {
    flex: 1 1 auto;
}

.sl-add {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    color: var(--accent);
    flex-shrink: 0;
}

.sl-add svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.sl.is-add:hover .sl-add { color: var(--accent-dark); }
.sl.is-add.active .sl-add { color: var(--primary); }
.sl.is-soon.is-add .sl-add { color: var(--faint); }