/* v2 additions: nav groups, topbar icons, dark theme, RTL tweaks, stat cards */
.sms-nav .nav-group{padding:14px 16px 4px;font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#9ca3af;font-weight:600;}
.topbar-icon{color:#374151;text-decoration:none;padding:8px 10px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;}
.topbar-icon:hover{background:#f3f4f6;}
.stat-card{background:#fff;border-radius:14px;padding:20px;box-shadow:0 2px 6px rgba(0,0,0,.04);border:1px solid #eef0f3;}
.stat-card .label{font-size:12px;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;}
.stat-card .value{font-size:28px;font-weight:700;color:#111827;margin-top:4px;}
.stat-card .delta{font-size:12px;margin-top:4px;}
.stat-card.primary{border-top:4px solid #2563eb;}
.stat-card.success{border-top:4px solid #16a34a;}
.stat-card.warning{border-top:4px solid #f59e0b;}
.stat-card.danger{border-top:4px solid #dc2626;}
.b-paid{background:#dcfce7;color:#166534;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;}
.b-unpaid{background:#fee2e2;color:#991b1b;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;}
.b-partial{background:#fef3c7;color:#92400e;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;}
.b-pending{background:#e0e7ff;color:#3730a3;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;}
.b-accepted{background:#dcfce7;color:#166534;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;}
.b-rejected{background:#fee2e2;color:#991b1b;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;}
[dir="rtl"] .sms-sidebar{border-right:0;border-left:1px solid #eef0f3;}
[data-theme="dark"]{--bg:#0f172a;--card:#1e293b;--text:#e5e7eb;}
[data-theme="dark"] body{background:#0f172a;color:#e5e7eb;}
[data-theme="dark"] .sms-sidebar,[data-theme="dark"] .sms-topbar,[data-theme="dark"] .stat-card,[data-theme="dark"] .card{background:#1e293b;color:#e5e7eb;border-color:#334155;}
[data-theme="dark"] .table{color:#e5e7eb;}


/* v16: professional header, logo slot, cleaner menu button, responsive topbar */
.sms-sidebar{background:linear-gradient(180deg,#1d4ed8 0%,#1e40af 42%,#1e3a8a 100%);box-shadow:8px 0 24px rgba(15,23,42,.12)}
[dir="rtl"] .sms-sidebar{box-shadow:-8px 0 24px rgba(15,23,42,.12)}
.sms-brand{min-height:84px;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.14)}
.brand-logo{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;flex:0 0 auto;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.brand-logo img{width:100%;height:100%;object-fit:contain;background:#fff;padding:4px}
.brand-logo i{font-size:27px;color:#bfdbfe}
.brand-copy{min-width:0}.brand-copy .brand-name{font-size:17px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-copy .brand-sub{font-size:12px;color:#dbeafe;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sms-nav a{margin:2px 10px;border-radius:10px;border-left:0;color:#dbeafe;padding:10px 12px;gap:12px}.sms-nav a:hover,.sms-nav a.active,.sms-nav a[aria-current="page"]{background:rgba(255,255,255,.14);color:#fff}.sms-nav a i{color:#bfdbfe}.sms-nav .nav-group{color:#bfdbfe;padding-inline:22px}.sms-nav .logout{color:#fecaca}
.sms-topbar{min-height:74px;background:rgba(255,255,255,.94);backdrop-filter:saturate(140%) blur(10px);box-shadow:0 6px 18px rgba(15,23,42,.04)}
.topbar-heading h1{font-size:20px;font-weight:800;color:#0f172a;line-height:1.15}.topbar-heading small{font-size:12px}.topbar-icon{border:1px solid #e5e7eb;background:#fff;color:#0f172a;min-height:40px;border-radius:12px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.topbar-icon:hover,.topbar-icon:focus{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.lang-dropdown .dropdown-menu{border-radius:12px;border-color:#e5e7eb;box-shadow:0 16px 36px rgba(15,23,42,.14)}
.sms-burger{width:42px;height:42px;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff;color:#1d4ed8;margin-right:12px;flex-direction:column;gap:5px;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.sms-burger span{width:18px;height:2px;border-radius:999px;background:currentColor;display:block}.sms-burger:hover{background:#dbeafe}.sms-burger i{display:none}[dir="rtl"] .sms-burger{margin-right:0;margin-left:12px}
.table{vertical-align:middle}.table-responsive{border-radius:12px}.dropdown-item.active,.dropdown-item:active{background:#1d4ed8;color:#fff}
@media (max-width: 991.98px){.sms-sidebar{width:min(82vw,292px)}.sms-topbar{padding:10px 12px}.topbar-heading h1{font-size:17px}.topbar-actions{gap:6px!important}.topbar-icon{min-width:40px;padding:8px}.lang-dropdown .topbar-icon span,.user-info{display:none}.user-chip .avatar{width:38px;height:38px}.sms-content{padding:14px}.sms-brand{min-height:82px}}
[data-theme="dark"] .sms-topbar,[data-theme="dark"] .topbar-icon{background:#1e293b;color:#e5e7eb;border-color:#334155}[data-theme="dark"] .topbar-heading h1{color:#f8fafc}
