/* =========================================================================
   SMS ERP — admin theme (Bootstrap 5)
   A clean, modern dashboard shell: fixed sidebar, sticky topbar, soft cards.
   ========================================================================= */
:root {
    --sms-primary: #4f46e5;
    --sms-primary-rgb: 79, 70, 229;
    --sms-primary-dark: #4338ca;
    --sms-sidebar-bg: #1e2a3b;
    --sms-sidebar-bg-2: #18222f;
    --sms-sidebar-text: #aeb9c7;
    --sms-sidebar-active: #ffffff;
    --sms-body-bg: #f4f6fb;
    --sms-card-shadow: 0 2px 12px rgba(20, 30, 60, .06);
    --sms-sidebar-w: 260px;
}

body {
    background: var(--sms-body-bg);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: .9rem;
    color: #384551;
}

/* ---------- Layout shell ---------- */
.sms-layout { display: flex; min-height: 100vh; }

.sms-sidebar {
    width: var(--sms-sidebar-w);
    background: linear-gradient(180deg, var(--sms-sidebar-bg), var(--sms-sidebar-bg-2));
    color: var(--sms-sidebar-text);
    position: fixed; top: 0; bottom: 0; left: 0;
    display: flex; flex-direction: column;
    z-index: 1040;
    transition: transform .25s ease;
}
.sms-content {
    flex: 1; min-width: 0;
    margin-left: var(--sms-sidebar-w);
    display: flex; flex-direction: column;
    transition: margin .25s ease;
}

/* ---------- Sidebar brand ---------- */
.sms-brand {
    display: flex; align-items: center; gap: .65rem;
    padding: 1.05rem 1.25rem;
    color: #fff; font-weight: 700; font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.sms-brand .logo {
    width: 36px; height: 36px; border-radius: 9px;
    background: var(--sms-primary); color: #fff;
    display: grid; place-items: center; font-size: 1.1rem;
}

/* ---------- Sidebar menu ---------- */
.sms-menu { list-style: none; margin: 0; padding: .5rem 0 2rem; overflow-y: auto; flex: 1; }
.sms-menu::-webkit-scrollbar { width: 6px; }
.sms-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
.sms-menu .header {
    text-transform: uppercase; font-size: .68rem; letter-spacing: .08em;
    color: rgba(255,255,255,.35); padding: 1rem 1.5rem .35rem; font-weight: 600;
}
.sms-menu a {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem 1.5rem; color: var(--sms-sidebar-text);
    text-decoration: none; font-weight: 500; border-left: 3px solid transparent;
    transition: all .15s ease;
}
.sms-menu a:hover { color: #fff; background: rgba(255,255,255,.04); }
.sms-menu a i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.sms-menu li.active > a {
    color: var(--sms-sidebar-active);
    background: rgba(var(--sms-primary-rgb), .18);
    border-left-color: var(--sms-primary);
}
.sms-menu .badge-soon {
    margin-left: auto; font-size: .6rem; font-weight: 600;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.55);
    padding: .15rem .4rem; border-radius: 4px;
}
.sms-menu .submenu { list-style: none; margin: 0; padding: 0; background: rgba(0,0,0,.18); }
.sms-menu .submenu a { padding-left: 3.1rem; font-size: .85rem; }
.sms-menu .caret { margin-left: auto; transition: transform .2s; font-size: .8rem; }
.sms-menu li.open > a .caret { transform: rotate(90deg); }

/* ---------- Topbar ---------- */
.sms-topbar {
    height: 64px; background: #fff; position: sticky; top: 0; z-index: 1030;
    display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem;
    box-shadow: 0 1px 4px rgba(20,30,60,.05);
}
.sms-topbar .btn-toggle { border: 0; background: transparent; font-size: 1.4rem; color: #5a6678; }
.sms-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--sms-primary); color: #fff;
    display: grid; place-items: center; font-weight: 600; font-size: .85rem;
}
.sms-avatar.sm { width: 30px; height: 30px; font-size: .72rem; }

/* ---------- Top menu bar (mirrors sidebar) ---------- */
.sms-topmenu {
    background: #fff; border-bottom: 1px solid #eef1f6;
    position: sticky; top: 64px; z-index: 1020;
}
.sms-topmenu-inner {
    display: flex; align-items: stretch; flex-wrap: wrap; gap: 2px;
    padding: 0 1rem;
}
.sms-topmenu .tm-link {
    --tm-accent: var(--sms-primary);
    display: inline-flex; align-items: center; gap: .5rem;
    border: 0; background: transparent; color: #46566b; text-decoration: none;
    font-weight: 600; font-size: .83rem; padding: .6rem .85rem;
    border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
    transition: color .15s ease, background .15s ease;
}
.dropdown[style*="--tm-accent"] .tm-link { --tm-accent: inherit; }
/* Tinted icon chip on every top link */
.sms-topmenu .tm-link-ic {
    display: inline-grid; place-items: center; width: 24px; height: 24px;
    border-radius: 7px; background: color-mix(in srgb, var(--tm-accent) 14%, #fff);
    color: var(--tm-accent); font-size: .9rem; flex: 0 0 auto;
    transition: background .15s ease, color .15s ease;
}
.sms-topmenu .tm-link > i { font-size: .95rem; color: var(--tm-accent); }
.sms-topmenu .tm-link.dropdown-toggle::after { margin-left: .1rem; opacity: .55; }
.sms-topmenu .tm-link:hover { color: #1f2a37; background: #f6f8fb; border-radius: 8px 8px 0 0; }
.sms-topmenu .tm-link:hover .tm-link-ic { background: var(--tm-accent); color: #fff; }
.sms-topmenu .tm-link.active { color: #1f2a37; border-bottom-color: var(--tm-accent); }
.sms-topmenu .tm-link.active .tm-link-ic { background: var(--tm-accent); color: #fff; }

/* Mega-menu panel */
.sms-topmenu .tm-mega {
    --tm-accent: var(--sms-primary);
    padding: 0; width: max-content; max-width: 94vw; margin-top: 0;
    border: 0; border-radius: 14px; overflow: hidden;
    box-shadow: 0 12px 38px rgba(20, 30, 55, .16), 0 2px 8px rgba(20, 30, 55, .06);
}
.sms-topmenu .dropdown[style*="--tm-accent"] .tm-mega { --tm-accent: inherit; }
.sms-topmenu .tm-mega.show { display: block; animation: tmFade .14s ease; }
@keyframes tmFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Coloured header strip on the panel */
.sms-topmenu .tm-mega-head {
    display: flex; align-items: center; gap: .55rem;
    padding: .7rem 1.1rem; font-weight: 700; font-size: .82rem; letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(135deg, var(--tm-accent), color-mix(in srgb, var(--tm-accent) 70%, #000));
}
.sms-topmenu .tm-mega-head i { font-size: 1rem; opacity: .95; }

/* Columns row */
.sms-topmenu .tm-mega-cols {
    display: flex; flex-wrap: wrap; gap: 0; padding: .65rem .35rem .85rem;
}
.sms-topmenu .tm-col {
    flex: 0 0 auto; width: 200px; padding: 0 .55rem;
    border-right: 1px solid #f1f3f8;
}
.sms-topmenu .tm-col:last-child { border-right: 0; }
.sms-topmenu .tm-col-head {
    font-size: .67rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--tm-accent); font-weight: 700; padding: .35rem .55rem .4rem;
    margin-bottom: .2rem; position: relative;
}
.sms-topmenu .dropdown-menu { font-size: .85rem; }
.sms-topmenu .tm-mega .dropdown-item {
    display: flex; align-items: center; gap: .35rem;
    border-radius: 8px; padding: .42rem .55rem; color: #44525f; font-weight: 500;
    transition: background .12s ease, color .12s ease, padding .12s ease;
}
.sms-topmenu .tm-mega .dropdown-item .tm-bullet {
    font-size: .6rem; color: #c4ccd8; transition: color .12s ease, transform .12s ease;
}
.sms-topmenu .tm-mega .dropdown-item:hover {
    background: color-mix(in srgb, var(--tm-accent) 12%, #fff); color: var(--tm-accent); padding-left: .7rem;
}
.sms-topmenu .tm-mega .dropdown-item:hover .tm-bullet { color: var(--tm-accent); transform: translateX(1px); }
.sms-topmenu .tm-mega .dropdown-item.active {
    background: color-mix(in srgb, var(--tm-accent) 16%, #fff); color: var(--tm-accent); font-weight: 600;
}
.sms-topmenu .tm-mega .dropdown-item.active .tm-bullet { color: var(--tm-accent); }
@media (max-width: 991.98px) {
    .sms-topmenu .tm-col { border-right: 0; }
}

/* ---------- Top-bar search ---------- */
.sms-search { position: relative; width: 290px; max-width: 38vw; }
.sms-search .sms-search-ic { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: #9aa6b5; font-size: .9rem; pointer-events: none; }
.sms-search input { padding-left: 2rem; border-radius: 20px; background: #f4f6fb; border-color: #e7ebf2; }
.sms-search input:focus { background: #fff; }
.sms-search-results {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border: 1px solid #eef1f6; border-radius: 12px; z-index: 1050;
    max-height: 70vh; overflow-y: auto; padding: .35rem;
}
.sms-search-results.show { display: block; }
.sms-search-results .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #8a96a6; font-weight: 700; padding: .45rem .6rem .2rem; }
.sms-search-results a.res {
    display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 8px;
    text-decoration: none; color: #3a4654;
}
.sms-search-results a.res:hover, .sms-search-results a.res.active { background: rgba(var(--sms-primary-rgb), .1); }
.sms-search-results .res-av {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: rgba(var(--sms-primary-rgb), .12); color: var(--sms-primary); font-size: .68rem; font-weight: 700;
}
.sms-search-results .res-body { display: flex; flex-direction: column; min-width: 0; }
.sms-search-results .res-name { font-weight: 600; font-size: .85rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-search-results .res-meta { font-size: .72rem; color: #8a96a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sms-search-results .empty { padding: .8rem .6rem; color: #8a96a6; font-size: .82rem; text-align: center; }

/* ---------- Top-bar quick icons ---------- */
.sms-iconbtn {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    color: #5a6678; font-size: 1.1rem; text-decoration: none; position: relative;
}
.sms-iconbtn:hover { background: #f1f3f8; color: var(--sms-primary); }
.sms-iconbtn-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #dc3545; border: 2px solid #fff; }

/* Colourful quick-action icons */
.sms-iconbtn.c-cyan   { color: #0ea5e9; background: rgba(14, 165, 233, .1); }
.sms-iconbtn.c-orange { color: #f97316; background: rgba(249, 115, 22, .1); }
.sms-iconbtn.c-amber  { color: #f59e0b; background: rgba(245, 158, 11, .12); }
.sms-iconbtn.c-cyan:hover   { color: #fff; background: #0ea5e9; }
.sms-iconbtn.c-orange:hover { color: #fff; background: #f97316; }
.sms-iconbtn.c-amber:hover  { color: #fff; background: #f59e0b; }

@media (max-width: 575.98px) { .sms-search { display: none; } }

/* ---------- ITA AI Assistant ---------- */
.ita-ai { --ai-grad: linear-gradient(135deg, #6366f1, #8b5cf6); position: fixed; right: 22px; bottom: 22px; z-index: 1080; }
.ita-ai-fab {
    display: inline-flex; align-items: center; gap: .5rem; border: 0; cursor: pointer;
    padding: .7rem 1.05rem; border-radius: 999px; color: #fff; font-weight: 700; font-size: .9rem;
    background: var(--ai-grad); box-shadow: 0 10px 26px rgba(99, 102, 241, .45);
    transition: transform .15s ease, box-shadow .15s ease;
}
.ita-ai-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(99, 102, 241, .55); }
.ita-ai-fab i { font-size: 1.15rem; animation: aiPulse 2.4s ease-in-out infinite; }
@keyframes aiPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.ita-ai.open .ita-ai-fab { transform: scale(.9); opacity: 0; pointer-events: none; }

/* Panel */
.ita-ai-panel {
    position: absolute; right: 0; bottom: 0; width: 380px; max-width: calc(100vw - 32px);
    height: 560px; max-height: calc(100vh - 110px);
    background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 24px 60px rgba(20, 30, 55, .28), 0 4px 14px rgba(20, 30, 55, .1);
    transform: translateY(16px) scale(.96); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
}
.ita-ai.open .ita-ai-panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

.ita-ai-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; background: var(--ai-grad); color: #fff; }
.ita-ai-head-id { display: flex; align-items: center; gap: .6rem; }
.ita-ai-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: 1.2rem; }
.ita-ai-title { font-weight: 700; font-size: .95rem; line-height: 1.1; }
.ita-ai-sub { font-size: .72rem; opacity: .9; display: flex; align-items: center; gap: .35rem; }
.ita-ai-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: aiOnline 1.8s infinite; }
@keyframes aiOnline { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.ita-ai-x { border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; }
.ita-ai-x:hover { background: rgba(255, 255, 255, .3); }

/* Body / messages */
.ita-ai-body { flex: 1; overflow-y: auto; padding: 1rem .9rem; background: #f7f8fc; }
.ai-msg { display: flex; gap: .5rem; margin-bottom: .85rem; }
.ai-msg.ai-user { justify-content: flex-end; }
.ai-avatar { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--ai-grad); color: #fff; font-size: .8rem; }
.ai-bubble { max-width: 78%; padding: .6rem .8rem; border-radius: 14px; font-size: .85rem; line-height: 1.45; }
.ai-bot .ai-bubble { background: #fff; color: #34404e; border-top-left-radius: 4px; box-shadow: 0 1px 4px rgba(20, 30, 55, .06); }
.ai-user .ai-bubble { background: var(--ai-grad); color: #fff; border-top-right-radius: 4px; }
.ai-bubble b { color: inherit; }
.ai-text .ai-list { margin: .4rem 0 0; padding-left: 1.1rem; }
.ai-text .ai-list li { margin-bottom: .15rem; }

/* Items list inside a bot bubble */
.ai-items { margin-top: .55rem; display: flex; flex-direction: column; gap: .3rem; }
.ai-item { display: flex; align-items: center; gap: .5rem; padding: .45rem .55rem; border-radius: 10px; background: #f4f6fb; text-decoration: none; color: #38465a; }
.ai-item:hover { background: rgba(99, 102, 241, .12); color: #6366f1; }
.ai-item.disabled { pointer-events: none; opacity: .7; }
.ai-item-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ai-item-title { font-weight: 600; font-size: .82rem; line-height: 1.15; }
.ai-item-meta { font-size: .72rem; color: #8a96a6; }
.ai-item > .bi { font-size: .7rem; color: #b8c0cd; }

/* Primary action button */
.ai-action { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; padding: .4rem .7rem; border-radius: 9px; background: rgba(99, 102, 241, .12); color: #6366f1; font-weight: 600; font-size: .8rem; text-decoration: none; }
.ai-action:hover { background: #6366f1; color: #fff; }

/* Suggestion chips */
.ai-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.ai-chip { border: 1px solid rgba(99, 102, 241, .35); background: #fff; color: #6366f1; border-radius: 999px; padding: .28rem .7rem; font-size: .76rem; font-weight: 600; cursor: pointer; transition: background .12s ease, color .12s ease; }
.ai-chip:hover { background: #6366f1; color: #fff; }

/* Typing indicator */
.ai-dots { display: inline-flex; gap: 4px; padding: .15rem 0; }
.ai-dots span { width: 7px; height: 7px; border-radius: 50%; background: #c2c9d6; animation: aiDot 1.2s infinite ease-in-out; }
.ai-dots span:nth-child(2) { animation-delay: .2s; }
.ai-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes aiDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Footer / input */
.ita-ai-foot { padding: .6rem .75rem .7rem; border-top: 1px solid #eef1f6; background: #fff; }
.ita-ai-form { display: flex; align-items: center; gap: .5rem; }
.ita-ai-input { flex: 1; border: 1px solid #e3e8f0; border-radius: 999px; padding: .55rem .95rem; font-size: .85rem; outline: none; }
.ita-ai-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.ita-ai-send { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ai-grad); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ita-ai-send:hover { filter: brightness(1.08); }
.ita-ai-hint { text-align: center; font-size: .68rem; color: #aab2c0; margin-top: .4rem; }

@media (max-width: 575.98px) {
    .ita-ai { right: 14px; bottom: 14px; }
    .ita-ai-fab-label { display: none; }
    .ita-ai-panel { width: calc(100vw - 28px); height: calc(100vh - 90px); }
}

/* ---------- Page body ---------- */
.sms-page { padding: 1.5rem; flex: 1; }
.page-head { margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.35rem; font-weight: 700; margin: 0; color: #2b3543; }
.page-head .breadcrumb { margin: .25rem 0 0; font-size: .8rem; }

/* ---------- Cards ---------- */
.card { border: 0; border-radius: 12px; box-shadow: var(--sms-card-shadow); }
.card-header { background: transparent; border-bottom: 1px solid #eef1f6; font-weight: 600; padding: 1rem 1.25rem; }
.stat-card .icon {
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
}
.stat-card .value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: #2b3543; }
.stat-card .label { color: #8a96a6; font-size: .8rem; }

/* ---------- Dashboard KPI gradient cards ---------- */
.kpi { border: 0; border-radius: 12px; color: #fff; overflow: hidden; position: relative; box-shadow: var(--sms-card-shadow); height: 100%; }
.kpi .kpi-body { padding: 1rem 1.1rem; }
.kpi .kpi-val { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.kpi .kpi-label { opacity: .92; font-size: .9rem; }
.kpi .kpi-icon { position: absolute; right: .7rem; top: .7rem; font-size: 2.4rem; opacity: .25; }
.kpi .kpi-foot { background: rgba(0,0,0,.13); padding: .45rem 1.1rem; font-size: .8rem; display: flex; justify-content: space-between; align-items: center; }
.kpi .kpi-foot a, .kpi .kpi-foot { color: #fff; text-decoration: none; }
.grad-green  { background: linear-gradient(135deg, #1f9d63, #12643f); }
.grad-red    { background: linear-gradient(135deg, #e0566a, #b23a4d); }
.grad-cyan   { background: linear-gradient(135deg, #21b6d4, #1690a8); }
.grad-amber  { background: linear-gradient(135deg, #f2b134, #d9920f); }
.grad-blue   { background: linear-gradient(135deg, #2f8fe0, #1f6ab0); }
.grad-teal   { background: linear-gradient(135deg, #1aa179, #137a5b); }
.grad-orange { background: linear-gradient(135deg, #f08a3c, #d96e1a); }
.grad-purple { background: linear-gradient(135deg, #8b5cf6, #6d3fd4); }

/* ---------- Dashboard quick-action tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .45rem;
    text-align: center; text-decoration: none; padding: .85rem .35rem; border: 1px solid #eef1f6;
    border-radius: 10px; color: #3a4654; transition: transform .12s, box-shadow .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,30,60,.1); border-color: transparent; color: #2b3543; }
.tile .tile-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; }
.tile .tile-label { font-size: .76rem; font-weight: 600; line-height: 1.15; }

/* ---------- Bits ---------- */
.btn-primary { --bs-btn-bg: var(--sms-primary); --bs-btn-border-color: var(--sms-primary); --bs-btn-hover-bg: var(--sms-primary-dark); --bs-btn-hover-border-color: var(--sms-primary-dark); --bs-btn-active-bg: var(--sms-primary-dark); }
.btn-outline-primary { --bs-btn-color: var(--sms-primary); --bs-btn-border-color: var(--sms-primary); --bs-btn-hover-bg: var(--sms-primary); --bs-btn-hover-border-color: var(--sms-primary); }
.text-primary { color: var(--sms-primary) !important; }
a { color: var(--sms-primary); }
.table > :not(caption) > * > * { padding: .75rem 1rem; }
.bg-soft-primary { background: rgba(var(--sms-primary-rgb), .12); color: var(--sms-primary); }
.bg-soft-success { background: rgba(25,135,84,.12); color: #198754; }
.bg-soft-warning { background: rgba(255,193,7,.16); color: #b8860b; }
.bg-soft-info    { background: rgba(13,202,240,.14); color: #0aa2c0; }
.bg-soft-danger  { background: rgba(220,53,69,.12); color: #dc3545; }

/* ---------- Responsive ---------- */
.sms-backdrop { display: none; }
@media (max-width: 991.98px) {
    .sms-sidebar { transform: translateX(-100%); }
    .sms-content { margin-left: 0; }
    body.sidebar-open .sms-sidebar { transform: translateX(0); }
    body.sidebar-open .sms-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1035; }
}

/* ---------- Print ---------- */
@media print {
    .sms-sidebar, .sms-topbar, .page-head .breadcrumb, footer, .no-print,
    .sms-backdrop, form.row { display: none !important; }
    .sms-content { margin-left: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { background: #fff; }
}

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.auth-card { width: 100%; max-width: 420px; border-radius: 16px; }
