/* ========== V20.36.12 FINAL FIX - MOBILE & DESKTOP ========== */
/* این فایل جایگزین کامل فایل قبلی شماست. تمام اصلاحات اعمال شده */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --bg: #f4f7fb;
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --text: #172033;
    --muted: #64748b;
    --card: #ffffff;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }
html { direction: rtl; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    font-size: 14px;
}

a { text-decoration: none; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: 22px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand { font-weight: 900; font-size: 21px; margin-bottom: 28px; display: flex; gap: 10px; align-items: center; }
.brand-badge { width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.nav-menu { display: grid; gap: 8px; }
.nav-menu a {
    color: rgba(255,255,255,.86);
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,.14); color: #fff; }
.main { flex: 1; min-width: 0; }
.topbar {
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.content { padding: 26px; }
.page-title { font-size: 25px; font-weight: 900; margin: 0 0 8px; }
.page-subtitle { color: var(--muted); margin-bottom: 22px; }
.card {
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
    border-radius: 22px;
    background: var(--card);
}
.stat-card { padding: 22px; position: relative; overflow: hidden; }
.stat-card:after { content: ''; position: absolute; left: -35px; top: -35px; width: 110px; height: 110px; border-radius: 50%; background: rgba(37,99,235,.08); }
.stat-label { color: var(--muted); font-weight: 700; }
.stat-value { font-size: 34px; font-weight: 900; margin-top: 10px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.action-card { padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--border); color: var(--text); }
.action-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15,23,42,.08); }
.btn { border-radius: 12px; padding: 10px 16px; font-weight: 800; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.form-control, .form-select, input, select, textarea {
    border-radius: 12px !important;
    border-color: var(--border) !important;
    padding: 10px 12px !important;
    width: 100%;
}
label { font-weight: 800; margin-bottom: 6px; }
form p { margin-bottom: 16px; }
.table { vertical-align: middle; }
.table-card { overflow: hidden; }
.table thead th { background: #f8fafc; color: #475569; font-weight: 900; border-bottom: 1px solid var(--border); }
.badge-soft { background: #eff6ff; color: #1d4ed8; padding: 7px 11px; border-radius: 999px; font-weight: 800; }
.search-box { display: flex; gap: 10px; margin-bottom: 18px; }
.messages { display: grid; gap: 10px; margin-bottom: 16px; }
.alert { border-radius: 16px; }
.login-wrap { min-height: calc(100vh - 120px); display: grid; place-items: center; }

@media (max-width: 992px) {
    .app-shell { display: block; }
    .sidebar { width: 100%; height: auto; position: relative; border-radius: 0 0 24px 24px; }
    .nav-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content { padding: 18px; }
    .topbar { padding: 14px 18px; }
}

@media (max-width: 576px) {
    .nav-menu, .quick-actions { grid-template-columns: 1fr; }
    .topbar { display: block; }
    .search-box { display: block; }
    .search-box .btn { width: 100%; margin-top: 10px; }
    .table-responsive { border-radius: 18px; }
}
@font-face{font-family:Vazir;src:url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');font-weight:400}
@font-face{font-family:Vazir;src:url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');font-weight:700}
body,input,button,select,textarea{font-family:Vazir,Tahoma,sans-serif!important}
#map{height:340px;border-radius:18px;overflow:hidden;border:1px solid #e5e7eb}
.map-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:18px;padding:14px}
.profile-photo{width:150px;height:150px;border-radius:28px;object-fit:cover;border:4px solid #fff;box-shadow:0 10px 30px rgba(15,23,42,.12)}
.avatar-sm{width:38px;height:38px;border-radius:12px;object-fit:cover;margin-left:8px}
.detail-grid>div{background:#f8fafc;border-radius:14px;padding:10px 12px}
.stat-card{background:#fff;border-radius:22px;padding:22px;box-shadow:0 12px 35px rgba(15,23,42,.08);border:1px solid #eef2f7}
.stat-card span{display:block;color:#64748b;margin-bottom:8px}.stat-card strong{font-size:32px;color:#0f172a}
@media(max-width:900px){.app-shell{display:block}.sidebar{position:static;width:auto;min-height:auto}.nav-menu{display:flex;overflow-x:auto;gap:8px}.nav-menu a{white-space:nowrap}.main{margin:0}.topbar{position:static}#map{height:280px}}
.hero-card{background:linear-gradient(135deg,#0f172a,#2563eb);color:#fff;border-radius:28px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 18px 45px rgba(37,99,235,.22)}
.hero-card h1{font-weight:900;margin:0 0 8px}.hero-card p{margin:0;color:rgba(255,255,255,.82)}.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.action-card{display:grid;gap:6px}.action-card span{color:#64748b;font-size:13px}.toast-success{background:#16a34a;color:#fff}.toast-error,.toast-danger{background:#dc2626;color:#fff}.toast-warning{background:#f59e0b;color:#111827}.toast-info{background:#2563eb;color:#fff}code{direction:ltr;display:inline-block;background:#f1f5f9;border-radius:8px;padding:3px 8px;color:#0f172a}.btn-warning{color:#111827!important}
@media(max-width:768px){.hero-card{display:block}.hero-actions{margin-top:16px}.hero-actions .btn{width:100%}}

.version-pill{font-size:12px;color:rgba(255,255,255,.78);background:rgba(255,255,255,.12);border-radius:999px;padding:6px 10px;margin:-18px 0 18px;width:max-content}.nav-group-title{font-size:12px;color:rgba(255,255,255,.55);margin:14px 8px 4px;font-weight:900}.ticket-msg{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:14px;margin-bottom:12px}.topbar strong{font-weight:900}


/* v10 compact dropdown sidebar */
.sidebar{width:252px;padding:18px}.brand{margin-bottom:16px}.nav-menu{display:block}.nav-direct,.nav-toggle{width:100%;border:0;background:transparent;color:rgba(255,255,255,.92);padding:10px 12px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;font-weight:900;margin-bottom:6px}.nav-toggle:after{content:'⌄';font-size:13px;opacity:.75}.nav-toggle[aria-expanded="true"],.nav-direct:hover,.nav-toggle:hover{background:rgba(255,255,255,.13);color:#fff}.nav-menu .collapse a{font-size:13px;padding:8px 16px 8px 8px;margin:2px 10px 2px 0;border-radius:10px;color:rgba(255,255,255,.78);border-right:1px solid rgba(255,255,255,.14)}.nav-menu .collapse a:hover{background:rgba(255,255,255,.11);color:#fff}.version-badge{background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:900}.topbar{gap:12px}.version-pill{display:none}@media(max-width:992px){.sidebar{width:100%;height:auto}.nav-menu .collapse a{display:block}.nav-toggle,.nav-direct{white-space:nowrap}.topbar{position:static}} 

/* v11 compact business forms and expiry/documents */
.compact-card{border-radius:18px}.compact-section{border:1px solid #e5e7eb;background:#fbfdff;border-radius:16px;padding:12px;margin-bottom:12px}.compact-section h6{font-weight:900;margin:0 0 10px;color:#0f172a}.compact-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.compact-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.compact-field label{font-size:12px;margin-bottom:4px}.compact-field .form-control,.compact-field .form-select,.compact-field input,.compact-field select,.compact-field textarea{min-height:38px!important;padding:7px 9px!important;font-size:13px}.compact-check{display:flex;align-items:end}.compact-check .form-check{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px 36px 10px 10px;width:100%}.compact-map-box{padding:10px}.compact-map-box #map{height:220px}.sticky-actions{position:sticky;bottom:10px;background:rgba(255,255,255,.88);backdrop-filter:blur(10px);padding:10px;border-radius:16px;border:1px solid #e5e7eb}.license-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;white-space:nowrap}.license-success{background:#dcfce7;color:#166534}.license-warning{background:#fef3c7;color:#92400e}.license-danger{background:#fee2e2;color:#991b1b}.license-secondary{background:#f1f5f9;color:#475569}.compact-table{font-size:13px}.compact-table th,.compact-table td{padding:8px 10px}.compact-search .form-control{height:40px!important}.compact-detail-grid>div{font-size:13px;padding:8px 10px}.doc-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.doc-grid>div{border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;min-height:128px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;overflow:hidden}.doc-grid img{width:100%;height:96px;object-fit:cover}.doc-grid span{font-size:12px;font-weight:900;color:#475569;padding-bottom:6px}@media(max-width:1200px){.compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.doc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:768px){.compact-grid,.compact-grid-4,.doc-grid{grid-template-columns:1fr}.compact-map-box #map{height:260px}}


/* v13 fixed sidebar and finance */
.fixed-sidebar{position:fixed!important;right:0;top:0;height:100vh;overflow-y:auto;z-index:1050}.main{margin-right:252px}.dashboard-cta{display:flex;gap:10px;flex-wrap:wrap;align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:12px;box-shadow:0 10px 28px rgba(15,23,42,.05)}.dashboard-cta .btn{padding:9px 14px}.finance-status{border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;background:#ecfdf5;color:#047857}.compact-table .btn-sm{padding:5px 9px;font-size:12px}@media(max-width:992px){.fixed-sidebar{position:static!important;height:auto;overflow:visible}.main{margin-right:0}.dashboard-cta .btn{width:100%}}


/* v14 redesigned permissions/sidebar/mobile */
.mobile-bar{height:56px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;position:sticky;top:0;z-index:80}.side-meta{display:flex;gap:6px;flex-wrap:wrap;margin:-8px 0 14px}.side-meta span{font-size:11px;color:rgba(255,255,255,.8);background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:5px 8px}.mi{display:inline-flex;width:20px;justify-content:center;margin-left:7px;font-size:14px}.nav-toggle span{display:flex;align-items:center}.nav-menu .collapse a{display:flex!important;align-items:center;gap:4px}.dashboard-top{display:flex;align-items:stretch;justify-content:space-between;gap:16px;background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:16px;box-shadow:0 12px 32px rgba(15,23,42,.05)}.dashboard-top h1{font-size:23px;font-weight:900;margin:0 0 6px}.dashboard-top p{margin:0;color:#64748b}.dashboard-cta-top{box-shadow:none;border:0;padding:0;background:transparent}.top-actions .btn{white-space:nowrap}.offcanvas-lg.sidebar{background:linear-gradient(180deg,#0f172a,#1e3a8a)}
@media(min-width:993px){.mobile-bar{display:none!important}.sidebar .offcanvas-header{display:none}.sidebar{border-radius:0}.fixed-sidebar{position:fixed!important;right:0;top:0;height:100vh;overflow-y:auto}.main{margin-right:252px}}
@media(max-width:992px){.fixed-sidebar{position:fixed!important;height:100vh;overflow-y:auto;width:285px!important}.main{margin-right:0}.topbar{position:static;display:flex;align-items:flex-start}.topbar .top-actions .btn{padding:8px 10px;font-size:12px}.content{padding:12px}.dashboard-top{display:block}.dashboard-cta-top{margin-top:12px}.dashboard-cta-top .btn{width:auto;font-size:12px;padding:8px 10px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.action-card{padding:12px}.action-card b{font-size:13px}.action-card span{font-size:11px}.hero-card{padding:18px;border-radius:20px}.hero-card h2{font-size:20px}.stat-card{padding:14px;border-radius:16px}.stat-card strong{font-size:24px}.mi{width:18px;font-size:12px}.nav-direct,.nav-toggle{font-size:13px;padding:9px 10px}.nav-menu .collapse a{font-size:12px;padding:8px 14px}.table{font-size:12px}.btn{border-radius:10px}}
@media(max-width:576px){.topbar{display:none}.quick-actions{grid-template-columns:1fr}.dashboard-cta-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-cta-top .btn{width:100%;font-size:11px;padding:8px 6px}.content{padding:10px}.row.g-3{--bs-gutter-x:.5rem;--bs-gutter-y:.5rem}.stat-card span{font-size:11px}.stat-card strong{font-size:22px}.card.p-3{padding:12px!important}.hero-actions .btn{font-size:12px}.version-badge{font-size:10px;padding:5px 7px}}

.public-page{background:#f3f6fb;font-family:Vazirmatn,Tahoma,sans-serif}.public-header{border:0;border-radius:22px}.doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.doc-grid a{display:block;padding:12px;border:1px solid #e5e7eb;border-radius:14px;text-decoration:none;background:#f8fafc}.copy-link-box input{direction:ltr;text-align:left}@media(max-width:768px){.compact-grid{grid-template-columns:1fr!important}.public-page .container{padding-left:10px;padding-right:10px}}

/* v16: small upload thumbnails */
.upload-preview-box{border:1px dashed #cbd5e1;border-radius:12px;background:#fff;min-height:72px;padding:6px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;margin-top:4px}
.upload-preview-box:empty{display:none}
.upload-preview-box img{width:72px;height:56px;object-fit:cover;border-radius:10px;border:1px solid #e5e7eb}
.upload-preview-box span{font-size:11px;color:#64748b;font-weight:800}
.doc-grid-small{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))!important}
.doc-grid-small a{min-height:96px!important;padding:8px!important;text-align:center;color:#475569}
.doc-grid-small img{width:82px!important;height:62px!important;object-fit:cover;border-radius:10px;border:1px solid #e5e7eb}
.doc-grid-small span{font-size:11px!important;padding:0!important}

/* v17 strict thumbnails, upload boxes, validations */
.upload-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:10px;min-height:180px}
.upload-card .compact-field{margin-bottom:8px}.upload-card input[type=file]{font-size:12px!important;padding:7px!important;background:#f8fafc}
.upload-preview-box{width:100%;height:78px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;display:flex;align-items:center;justify-content:center;gap:6px;overflow:hidden;color:#64748b;font-size:11px;font-weight:800;text-align:center;padding:6px}
.upload-preview-box img{width:74px!important;height:58px!important;max-width:74px!important;max-height:58px!important;object-fit:cover!important;border-radius:9px!important;border:1px solid #e5e7eb!important;display:block!important}
.doc-grid-small{grid-template-columns:repeat(auto-fit,minmax(104px,120px))!important;align-items:start}
.doc-grid-small a{width:112px!important;min-height:92px!important;max-height:112px!important;padding:7px!important;text-align:center;color:#475569;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;overflow:hidden}
.doc-grid-small img,.doc-grid-small .doc-thumb{width:72px!important;height:54px!important;max-width:72px!important;max-height:54px!important;object-fit:cover!important;border-radius:9px!important;border:1px solid #e5e7eb!important;display:block!important}
.doc-grid-small span{font-size:10px!important;line-height:1.45!important;padding:0!important;display:block!important;max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.doc-empty{width:72px;height:54px;border:1px dashed #cbd5e1;border-radius:9px;background:#f8fafc;display:grid!important;place-items:center;color:#94a3b8!important;font-size:9px!important}
.profile-photo{width:108px!important;height:108px!important;border-radius:22px!important}.topbar .top-actions .btn:not(.btn-warning):not(.btn-outline-danger){display:none!important}
@media(max-width:576px){.doc-grid-small{grid-template-columns:repeat(3,minmax(0,1fr))!important}.doc-grid-small a{width:100%!important}.upload-card{min-height:auto}.upload-preview-box{height:70px}.upload-preview-box img{width:64px!important;height:48px!important}}


/* v19 password eye, Persian digits and inspector-first mobile UI */
.auth-card{max-width:430px;width:100%}.password-wrap{position:relative}.password-wrap input{padding-left:46px!important}.password-eye{position:absolute;left:8px;top:50%;transform:translateY(-50%);border:0;background:#eef2ff;color:#1e40af;border-radius:10px;width:34px;height:34px;display:grid;place-items:center;font-size:15px;line-height:1;z-index:5}.password-eye:hover{background:#dbeafe}.report-filter label{font-size:12px}.mobile-stat{min-height:92px}.mobile-stat strong{font-variant-numeric:normal}.fa-num{font-variant-numeric:normal}
@media(max-width:768px){body{font-size:12px}.mobile-bar{height:48px;padding:6px 9px}.mobile-bar .btn{padding:5px 8px;font-size:12px}.version-badge{font-size:9px;padding:4px 6px}.fixed-sidebar{width:258px!important;padding:12px}.brand{font-size:16px;margin-bottom:10px}.brand-badge{width:32px;height:32px;border-radius:10px}.side-meta span{font-size:9px;padding:4px 6px}.nav-direct,.nav-toggle{font-size:12px;padding:8px 9px;margin-bottom:4px}.nav-menu .collapse a{font-size:11px;padding:7px 12px;margin:1px 6px 1px 0}.mi{width:16px;font-size:11px;margin-left:5px}.content{padding:8px}.page-title{font-size:18px;margin-bottom:4px}.page-subtitle{font-size:11px;margin-bottom:12px}.dashboard-top{padding:10px;border-radius:16px}.dashboard-top h1{font-size:17px}.dashboard-top p{font-size:11px}.dashboard-cta-top{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.dashboard-cta-top .btn,.btn{font-size:11px;padding:7px 8px;border-radius:9px}.hero-card{padding:13px;border-radius:16px;margin-bottom:10px!important}.hero-card h2{font-size:16px}.hero-card p{font-size:11px}.stat-card{padding:10px;border-radius:13px}.stat-card span{font-size:10px}.stat-card strong{font-size:19px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.action-card{padding:9px;border-radius:13px}.action-card b{font-size:11px}.action-card span{font-size:9px}.card{border-radius:14px}.card.p-3{padding:9px!important}.table{font-size:11px}.compact-table th,.compact-table td,.table th,.table td{padding:6px 7px}.form-control,.form-select,input,select,textarea{font-size:12px!important;min-height:34px!important;padding:7px 8px!important}.password-eye{width:30px;height:30px;font-size:13px}.search-box{gap:6px}.upload-card{padding:7px;border-radius:12px}.upload-preview-box{height:58px}.upload-preview-box img{width:52px!important;height:40px!important}.doc-grid-small{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}.doc-grid-small img,.doc-grid-small .doc-thumb,.doc-empty{width:54px!important;height:40px!important}.doc-grid-small a{min-height:76px!important;padding:5px!important}.doc-grid-small span{font-size:9px!important}.profile-photo{width:82px!important;height:82px!important}.report-filter .col-6{padding-left:4px;padding-right:4px}}
@media(max-width:420px){.quick-actions,.dashboard-cta-top{grid-template-columns:1fr}.row.g-2,.row.g-3{--bs-gutter-x:.35rem;--bs-gutter-y:.35rem}.table-responsive{font-size:10px}.hide-xs{display:none!important}.mobile-stat{min-height:74px}}

.info-line{display:flex;justify-content:space-between;gap:.75rem;padding:.45rem 0;border-bottom:1px solid rgba(0,0,0,.06)}
.thumb-preview{width:92px;height:92px;object-fit:cover;border-radius:14px;border:1px solid #e5e7eb;box-shadow:0 8px 20px rgba(15,23,42,.08)}
.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.check-card{display:flex;align-items:center;gap:.55rem;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:.75rem;cursor:pointer}
.check-card input{margin:0!important}
@media(max-width:768px){.inspector-header .page-title{font-size:1.1rem}.inspector-summary{font-size:.86rem}.check-grid{grid-template-columns:1fr}.check-card{padding:.62rem;font-size:.88rem}.inspector-form textarea{min-height:110px}.btn{font-size:.85rem}.table{font-size:.82rem}.table .btn{padding:.25rem .45rem;font-size:.75rem}.content{padding:.75rem}.topbar{padding:.6rem .75rem}.stat-card{padding:.7rem}.action-card{padding:.75rem}.mi{font-size:.9rem}}

.form-text{font-size:.78rem}.thumb-preview,.upload-preview-box img{width:72px!important;height:72px!important;object-fit:cover;border-radius:12px}.inspection-builder-help pre{white-space:pre-wrap}.profile-location{font-size:.85rem;color:#64748b}.mini-file-chip{display:inline-flex;gap:.35rem;align-items:center;border:1px solid #e2e8f0;border-radius:999px;padding:.25rem .55rem;background:#fff}
@media(max-width:768px){.table{font-size:.78rem}.btn{font-size:.78rem;padding:.35rem .55rem}.page-title{font-size:1.1rem}.sidebar .mi{font-size:.9rem}.content{padding:.75rem}.card{border-radius:14px}}
/* v20.11 inspection workflow */
.checklist-box{border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#fff;max-height:220px;overflow:auto}
.checklist-box ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
.checklist-box li{background:#f8fafc;border-radius:10px;padding:7px 9px;font-size:.9rem}
.checklist-box.tall{max-height:280px}
.compact-list ul{grid-template-columns:1fr}
@media(max-width:576px){.page-title{font-size:1.1rem}.page-subtitle{font-size:.8rem}.btn{font-size:.78rem;padding:.42rem .58rem}.table{font-size:.78rem}.checklist-box{max-height:170px;padding:8px}.checklist-box li{font-size:.78rem;padding:6px}.card{border-radius:14px}.form-label{font-size:.82rem}}
/* v20.12 inspection wizard improvements */
.mini-step{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:16px;padding:.85rem 1rem;display:flex;gap:.65rem;align-items:center;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.mini-step b{width:28px;height:28px;border-radius:10px;background:#eef2ff;color:#3730a3;display:inline-flex;align-items:center;justify-content:center;font-size:.9rem}
.mini-step span{font-size:.9rem;font-weight:700;color:#334155}.section-title{font-weight:900;color:#0f172a;margin-bottom:.75rem;padding-bottom:.45rem;border-bottom:1px dashed #dbe3ef}.inspection-wizard .checklist-box label{display:flex;gap:.45rem;align-items:center;margin-bottom:.35rem}.inspection-wizard .upload-box{border:1px solid #e2e8f0;border-radius:16px;padding:1rem;background:#fbfdff}.inspection-wizard .tall{max-height:260px;overflow:auto}.inspection-wizard .compact-list{max-height:220px;overflow:auto}
@media(max-width:576px){.mini-step{padding:.65rem .75rem;border-radius:13px}.mini-step b{width:24px;height:24px;font-size:.78rem}.mini-step span{font-size:.78rem}.inspection-wizard .upload-box{padding:.75rem}.inspection-wizard .compact-list,.inspection-wizard .tall{max-height:170px}.table-card .table{font-size:.78rem}}
/* v20.14 super admin messaging, ticket and payment polish */
.card,.table-card{box-shadow:0 14px 35px rgba(15,23,42,.07);border:1px solid rgba(15,23,42,.06)}
.topbar{backdrop-filter:blur(10px);background:rgba(255,255,255,.92);border-bottom:1px solid rgba(15,23,42,.08)}
.nav-direct,.nav-toggle,.nav-menu .collapse a{transition:.18s ease}.nav-direct:hover,.nav-toggle:hover,.nav-menu .collapse a:hover{transform:translateX(-2px);background:rgba(255,255,255,.12)}
.badge-status{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.35rem .65rem;font-weight:800;font-size:.76rem}
.badge-status.seen{background:#dcfce7;color:#166534}.badge-status.unseen{background:#fef3c7;color:#92400e}.badge-status.off{background:#e2e8f0;color:#475569}
.password-wrap{position:relative}.password-wrap input{padding-left:46px!important}.password-eye{position:absolute;left:8px;top:50%;transform:translateY(-50%);border:0;background:#eef2ff;color:#1e40af;border-radius:10px;width:34px;height:34px;display:grid;place-items:center;font-size:15px;line-height:1;z-index:5}.password-eye:hover{background:#dbeafe}
.payment-result-icon{width:74px;height:74px;border-radius:24px;background:#dcfce7;color:#166534;display:grid;place-items:center;margin:0 auto 1rem;font-size:34px}
@media(max-width:768px){.card.p-4{padding:1rem!important}.table th,.table td{white-space:nowrap}.topbar{position:sticky;top:48px;z-index:20}.password-eye{width:30px;height:30px;font-size:13px}.page-subtitle{font-size:.78rem}.badge-status{font-size:.68rem;padding:.28rem .5rem}}

/* v20.17 premium product-wide UI refresh */
:root{
  --premium-bg:#f3f6fb;
  --premium-panel:#ffffff;
  --premium-ink:#0f172a;
  --premium-muted:#64748b;
  --premium-primary:#2563eb;
  --premium-primary-2:#7c3aed;
  --premium-success:#16a34a;
  --premium-warning:#f59e0b;
  --premium-danger:#dc2626;
  --premium-border:rgba(15,23,42,.08);
  --premium-shadow:0 18px 45px rgba(15,23,42,.08);
}
html,body{background:radial-gradient(circle at top right,rgba(37,99,235,.10),transparent 34%),linear-gradient(180deg,#f8fbff 0%,var(--premium-bg) 100%)!important;color:var(--premium-ink)}
body{letter-spacing:-.01em}.app-shell{min-height:100vh}.sidebar{background:linear-gradient(180deg,#0f172a 0%,#111827 55%,#172554 100%)!important;border-left:1px solid rgba(255,255,255,.08)!important;box-shadow:12px 0 35px rgba(15,23,42,.12)}
.brand{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);border-radius:22px;padding:.75rem;margin-bottom:.75rem}.brand-badge{background:linear-gradient(135deg,#60a5fa,#a78bfa)!important;box-shadow:0 10px 24px rgba(96,165,250,.35)}
.side-meta{display:grid;grid-template-columns:1fr;gap:.45rem;margin-bottom:.85rem}.side-meta span{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.08);color:#dbeafe!important;border-radius:14px;padding:.5rem .65rem!important}
.nav-direct,.nav-toggle{border:1px solid rgba(255,255,255,.08)!important;background:rgba(255,255,255,.045)!important;border-radius:15px!important;color:#f8fafc!important;margin-bottom:.35rem!important;font-weight:800!important}.nav-toggle{width:100%;justify-content:space-between}.nav-toggle::after{content:'⌄';font-size:.8rem;opacity:.7}.nav-direct:hover,.nav-toggle:hover{background:rgba(255,255,255,.10)!important;transform:translateX(-3px)}
.nav-menu .collapse{background:rgba(15,23,42,.28);border-radius:16px;margin:.1rem 0 .5rem;padding:.25rem}.nav-menu .collapse a{color:#dbeafe!important;border-radius:12px!important;background:transparent!important}.nav-menu .collapse a:hover{background:rgba(255,255,255,.10)!important;color:#fff!important}.mi{filter:drop-shadow(0 2px 8px rgba(0,0,0,.12))}
.main{background:transparent!important}.topbar{background:rgba(255,255,255,.78)!important;border:1px solid rgba(255,255,255,.70)!important;border-bottom-color:var(--premium-border)!important;box-shadow:0 16px 45px rgba(15,23,42,.06);border-radius:0 0 24px 24px;margin-bottom:1rem}.mobile-bar{background:rgba(255,255,255,.88)!important;backdrop-filter:blur(14px);box-shadow:0 8px 22px rgba(15,23,42,.08)}
.content{max-width:1440px;margin:0 auto}.page-title{font-weight:950;letter-spacing:-.03em;color:#0f172a}.page-subtitle{color:var(--premium-muted)}
.card,.table-card,.hero-card,.stat-card,.action-card,.dashboard-top{background:rgba(255,255,255,.88)!important;border:1px solid rgba(255,255,255,.78)!important;box-shadow:var(--premium-shadow)!important;border-radius:24px!important;backdrop-filter:blur(10px)}
.card-header{background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(124,58,237,.08))!important;border-bottom:1px solid var(--premium-border)!important;border-radius:24px 24px 0 0!important;font-weight:900}.stat-card{position:relative;overflow:hidden}.stat-card:after{content:'';position:absolute;left:-30px;top:-30px;width:90px;height:90px;border-radius:999px;background:rgba(37,99,235,.10)}.stat-card strong{font-weight:950;color:#0f172a}.stat-card span{color:var(--premium-muted);font-weight:800}.action-card{transition:.18s ease;text-decoration:none!important}.action-card:hover{transform:translateY(-3px);box-shadow:0 24px 60px rgba(37,99,235,.14)!important;border-color:rgba(37,99,235,.22)!important}.dashboard-cta-top .btn,.btn-primary{background:linear-gradient(135deg,var(--premium-primary),var(--premium-primary-2))!important;border:0!important;box-shadow:0 10px 24px rgba(37,99,235,.22)!important}.btn{border-radius:13px!important;font-weight:850}.btn-outline-primary{border-color:rgba(37,99,235,.28)!important;color:#1d4ed8!important}.btn-outline-primary:hover{background:#2563eb!important;color:white!important}.btn-warning{background:linear-gradient(135deg,#f59e0b,#f97316)!important;border:0!important;color:#fff!important}.btn-success{background:linear-gradient(135deg,#16a34a,#059669)!important;border:0!important}.btn-danger{background:linear-gradient(135deg,#dc2626,#e11d48)!important;border:0!important}
.form-control,.form-select,input,select,textarea{border:1px solid #dbe3ef!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}.form-control:focus,.form-select:focus,input:focus,select:focus,textarea:focus{border-color:#60a5fa!important;box-shadow:0 0 0 .22rem rgba(37,99,235,.10)!important}.form-label{font-weight:900;color:#334155}.form-text{color:#64748b}.table{vertical-align:middle}.table thead th{background:#f8fafc!important;color:#475569!important;font-weight:950;border-bottom:1px solid #e2e8f0!important}.table tbody tr{transition:.14s ease}.table tbody tr:hover{background:#f8fbff!important}.badge,.badge-status{letter-spacing:-.01em}.alert{border:0!important;border-radius:18px!important;box-shadow:0 12px 28px rgba(15,23,42,.07)}
.thumb-preview,.upload-preview-box img,.profile-photo{box-shadow:0 12px 26px rgba(15,23,42,.10)!important}.upload-card{background:linear-gradient(180deg,#fff,#f8fbff)!important;border:1px dashed #cbd5e1!important;border-radius:18px!important}.upload-card:hover{border-color:#60a5fa!important;background:#f8fbff!important}.check-card{transition:.16s ease}.check-card:hover{border-color:#93c5fd;background:#eff6ff}.check-card:has(input:checked){background:#eff6ff;border-color:#2563eb;box-shadow:0 12px 28px rgba(37,99,235,.12)}
.auth-card{background:rgba(255,255,255,.92)!important;border:1px solid rgba(255,255,255,.85)!important;box-shadow:0 30px 80px rgba(15,23,42,.15)!important;border-radius:28px!important}.password-eye{box-shadow:0 8px 18px rgba(37,99,235,.12)}
.payment-result-icon{box-shadow:0 18px 35px rgba(22,163,74,.18)}
@media(max-width:992px){.topbar{border-radius:0 0 18px 18px}.content{padding:10px!important}.card,.table-card,.hero-card,.stat-card,.action-card,.dashboard-top{border-radius:18px!important}.page-title{font-size:1.2rem}.page-subtitle{font-size:.82rem}.dashboard-cta-top,.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.top-actions .btn{padding:.35rem .55rem!important;font-size:.75rem!important}.table-responsive{border-radius:16px}.table th,.table td{padding:.55rem .6rem!important}.sidebar{width:285px!important}.brand{border-radius:18px}.nav-direct,.nav-toggle{border-radius:13px!important}.nav-menu .collapse a{font-size:.78rem!important;padding:.55rem .65rem!important}}
@media(max-width:576px){body{font-size:12px}.mobile-bar{height:50px}.content{padding:8px!important}.dashboard-cta-top,.quick-actions{grid-template-columns:1fr!important}.card,.table-card,.hero-card,.stat-card,.action-card,.dashboard-top{border-radius:16px!important;box-shadow:0 12px 28px rgba(15,23,42,.07)!important}.card-body{padding:.8rem!important}.row.g-3{--bs-gutter-x:.55rem;--bs-gutter-y:.55rem}.btn{padding:.42rem .58rem!important;font-size:.76rem!important}.form-control,.form-select,input,select,textarea{min-height:34px!important;border-radius:11px!important}.form-label{font-size:.78rem}.table{font-size:.75rem}.hide-mobile-text{display:none!important}.stat-card strong{font-size:1.15rem}.nav-direct,.nav-toggle{font-size:.78rem!important}.mi{width:15px!important;font-size:.82rem!important}.page-title{font-size:1.08rem}.page-subtitle{font-size:.76rem}.auth-card{border-radius:20px!important}}


/* v20.18 final UX fixes */
.auth-only-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 85% 12%,rgba(37,99,235,.16),transparent 35%),linear-gradient(135deg,#f8fbff,#eef4ff)}
.auth-only-brand{position:fixed;top:18px;right:18px;left:18px;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.82);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.9);border-radius:22px;padding:12px 16px;box-shadow:0 18px 45px rgba(15,23,42,.08);max-width:780px;margin:auto}.auth-only-content{width:min(100%,480px)}
input[type=radio],input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;padding:0!important;accent-color:#2563eb;vertical-align:middle}.form-check{padding:.65rem 2.25rem .65rem .75rem;border:1px solid #e2e8f0;border-radius:14px;background:#fff;margin-bottom:.45rem}.form-check-input{margin-right:-1.55rem!important;margin-left:.45rem!important}.form-check:has(input:checked){background:#eff6ff;border-color:#2563eb;box-shadow:0 10px 22px rgba(37,99,235,.10)}ul[id$="_0"], .radioselect{list-style:none;padding:0;margin:0}.choice-grid ul,.choice-list ul{list-style:none;padding:0;margin:0}.choice-grid li{display:inline-flex;margin:.25rem}.choice-grid label,.choice-list label{display:flex;align-items:center;gap:.5rem;padding:.65rem .85rem;border:1px solid #dbe3ef;border-radius:14px;background:#fff;font-weight:850;cursor:pointer}.choice-grid label:has(input:checked),.choice-list label:has(input:checked){background:#eff6ff;border-color:#2563eb;color:#1d4ed8}.inspector-icon{width:38px;height:38px;border-radius:13px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;display:inline-grid;place-items:center;font-size:18px;box-shadow:0 10px 24px rgba(37,99,235,.20)}.new-mission-badge{background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:.28rem .55rem;font-weight:900;font-size:.72rem}.log-scope-note{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:.75rem 1rem;color:#475569;font-weight:800}
@media(max-width:576px){.auth-only-brand{top:8px;right:8px;left:8px;border-radius:16px;padding:9px 11px}.auth-only-content{margin-top:62px}.inspector-icon{width:32px;height:32px;font-size:15px}input[type=radio],input[type=checkbox]{width:16px!important;height:16px!important;min-width:16px!important}.form-check{border-radius:12px;padding:.5rem 2rem .5rem .55rem}.choice-grid label,.choice-list label{padding:.5rem .65rem;font-size:.78rem;border-radius:12px}}

body.auth-mode .mobile-bar, body.auth-mode .sidebar, body.auth-mode .topbar{display:none!important}
body.auth-mode .app-shell{display:grid;place-items:center;min-height:100vh;background:radial-gradient(circle at 85% 12%,rgba(37,99,235,.16),transparent 35%),linear-gradient(135deg,#f8fbff,#eef4ff)}
body.auth-mode .main{width:min(100%,520px);margin:0!important;flex:unset}body.auth-mode .content{width:100%;padding:20px!important}body.auth-mode .login-wrap{min-height:auto}


/* v20.20 premium choices, dashboard buttons and inspection form defaults */
:root{--premium-primary:#2563eb;--premium-primary-2:#1d4ed8;--premium-green:#16a34a;--premium-orange:#f97316;--premium-red:#dc2626;--premium-soft:#f8fafc;--premium-border:#dbe3ef;}
.dashboard-cta-top .btn,.quick-actions .btn,.hero-card .btn,.action-card,.btn-primary{font-weight:900;letter-spacing:-.01em;box-shadow:0 10px 22px rgba(37,99,235,.16)!important;border:0!important}
.dashboard-cta-top .btn:nth-child(1),.quick-actions .btn:nth-child(1){background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;color:#fff!important}
.dashboard-cta-top .btn:nth-child(2),.quick-actions .btn:nth-child(2){background:linear-gradient(135deg,#16a34a,#15803d)!important;color:#fff!important}
.dashboard-cta-top .btn:nth-child(3),.quick-actions .btn:nth-child(3){background:linear-gradient(135deg,#f97316,#ea580c)!important;color:#fff!important}
.dashboard-cta-top .btn:nth-child(4),.quick-actions .btn:nth-child(4){background:linear-gradient(135deg,#7c3aed,#6d28d9)!important;color:#fff!important}
.btn-outline-primary,.btn-outline-secondary{border:1px solid #c7d2fe!important;background:#fff!important;color:#1e40af!important;font-weight:900!important}.btn-outline-primary:hover,.btn-outline-secondary:hover{background:#eef2ff!important;color:#1e3a8a!important}
.form-check-input,.premium-check{width:1.25rem!important;height:1.25rem!important;border:2px solid #94a3b8!important;box-shadow:none!important;cursor:pointer;vertical-align:middle}.form-check-input:checked,.premium-check:checked{background-color:#2563eb!important;border-color:#2563eb!important;box-shadow:0 0 0 4px rgba(37,99,235,.14)!important}.form-check-label{font-weight:800;color:#334155;cursor:pointer}
.checklist-box{background:#f8fafc!important;border:1px solid #dbe3ef!important;border-radius:18px!important;padding:12px!important}.checklist-box ul,.premium-choice-list{list-style:none!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:10px!important}.checklist-box li,.premium-choice-list li{position:relative;background:#fff!important;border:1px solid #e2e8f0!important;border-radius:14px!important;padding:0!important;transition:.18s ease;overflow:hidden}.checklist-box li:hover,.premium-choice-list li:hover{border-color:#93c5fd!important;box-shadow:0 8px 20px rgba(37,99,235,.08);transform:translateY(-1px)}.checklist-box label,.premium-choice-list label{display:flex!important;align-items:center!important;gap:10px!important;padding:11px 12px!important;margin:0!important;width:100%;font-weight:900!important;color:#334155!important;cursor:pointer}.checklist-box input[type=checkbox],.premium-choice-list input[type=checkbox],.checklist-box input[type=radio],.premium-choice-list input[type=radio]{appearance:none!important;-webkit-appearance:none!important;width:22px!important;height:22px!important;min-width:22px!important;border-radius:8px!important;border:2px solid #94a3b8!important;background:#fff!important;display:inline-grid!important;place-content:center!important;margin:0!important;cursor:pointer}.checklist-box input[type=radio],.premium-choice-list input[type=radio]{border-radius:50%!important}.checklist-box input[type=checkbox]:checked,.premium-choice-list input[type=checkbox]:checked,.checklist-box input[type=radio]:checked,.premium-choice-list input[type=radio]:checked{background:#2563eb!important;border-color:#2563eb!important}.checklist-box input[type=checkbox]:checked:after,.premium-choice-list input[type=checkbox]:checked:after{content:'✓';color:#fff;font-size:15px;font-weight:900;line-height:1}.checklist-box input[type=radio]:checked:after,.premium-choice-list input[type=radio]:checked:after{content:'';width:10px;height:10px;border-radius:50%;background:#fff;display:block}.checklist-box li:has(input:checked),.premium-choice-list li:has(input:checked){background:#eff6ff!important;border-color:#2563eb!important;box-shadow:0 8px 18px rgba(37,99,235,.14)}
.multi-select-tip,.default-question-alert{border:0!important;border-radius:18px!important;background:linear-gradient(135deg,#eff6ff,#eef2ff)!important;color:#1e3a8a!important;font-weight:800;box-shadow:0 10px 28px rgba(37,99,235,.08)}
.inspection-wizard .target-license-box .form-check,.inspection-wizard .upload-box .form-check{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:10px 12px;display:flex;gap:10px;align-items:center}.inspection-wizard select.form-select{border:2px solid #dbeafe;background:#fff;font-weight:800}.inspection-wizard select.form-select:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12)}
@media(max-width:768px){.checklist-box ul,.premium-choice-list{grid-template-columns:1fr!important;gap:7px!important}.checklist-box label,.premium-choice-list label{padding:9px 10px!important;font-size:.82rem!important}.checklist-box input[type=checkbox],.premium-choice-list input[type=checkbox],.checklist-box input[type=radio],.premium-choice-list input[type=radio]{width:20px!important;height:20px!important;min-width:20px!important}.dashboard-cta-top .btn,.quick-actions .btn{font-size:.78rem!important;padding:.5rem .55rem!important;border-radius:12px!important}.multi-select-tip,.default-question-alert{font-size:.82rem;padding:.75rem!important}}

/* v20.22 final mobile and ticket/performance fixes */
.inspection-question-box .premium-choice-list,
.inspection-question-box ul,
.inspection-question-box .form-check,
.premium-choice-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.inspection-question-box .premium-choice-list li,
.premium-choice-list li {
    margin-bottom: 8px;
}
.inspection-question-box input[type="radio"],
.inspection-question-box input[type="checkbox"],
.premium-choice-list input[type="radio"],
.premium-choice-list input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin-left: 8px;
    accent-color: #2563eb;
}
.inspection-question-box label,
.premium-choice-list label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    margin: 3px;
    font-weight: 800;
}
.ticket-attachment-img {
    max-width: 180px;
    max-height: 140px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    display: block;
}
.performance-mini {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.performance-mini span {
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.perf-total { background: #eff6ff; color: #1d4ed8; }
.perf-done { background: #dcfce7; color: #166534; }
.perf-left { background: #fef3c7; color: #92400e; }
.inspector-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
}
@media (max-width: 576px) {
    body { font-size: 11.5px !important; }
    .mi, .brand-badge, .inspector-icon { transform: scale(.86); }
    .nav-direct, .nav-toggle, .nav-menu .collapse a { font-size: .72rem !important; padding: .48rem .55rem !important; }
    .page-title { font-size: 1rem !important; }
    .page-subtitle { font-size: .72rem !important; }
    .btn { font-size: .7rem !important; padding: .34rem .48rem !important; border-radius: 10px !important; }
    .card-body, .card.p-3, .card.p-4 { padding: .65rem !important; }
    .table { font-size: .68rem !important; }
    .table th, .table td { padding: .42rem .48rem !important; }
    .form-control, .form-select, input, select, textarea { font-size: .76rem !important; min-height: 32px !important; padding: .34rem .45rem !important; }
    label, .form-label { font-size: .73rem !important; }
    .avatar-sm { width: 30px !important; height: 30px !important; border-radius: 9px !important; }
    .ticket-attachment-img { max-width: 120px; max-height: 95px; }
    .performance-mini span { font-size: 10px; padding: 4px 6px; }
    .inspection-question-box label, .premium-choice-list label { font-size: .72rem !important; padding: 6px 8px; border-radius: 10px; }
    .inspection-question-box input[type="radio"], .inspection-question-box input[type="checkbox"], .premium-choice-list input[type="radio"], .premium-choice-list input[type="checkbox"] { width: 15px !important; height: 15px !important; min-height: 15px !important; }
}


/* v20.26 premium union dashboard and topbar */
.page-head-premium{background:linear-gradient(135deg,#fff,#f8fbff);border:1px solid #e2e8f0;border-radius:24px;padding:16px 18px;box-shadow:0 16px 38px rgba(15,23,42,.06)}
.page-actions .btn{box-shadow:0 10px 22px rgba(15,23,42,.06)!important}
.dashboard-premium-head{display:flex;align-items:stretch;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#0f172a,#1d4ed8 55%,#06b6d4);color:#ffffff;border-radius:30px;padding:24px;box-shadow:0 24px 60px rgba(37,99,235,.22);overflow:hidden;position:relative}.dashboard-premium-head:before{content:'';position:absolute;left:-70px;top:-70px;width:210px;height:210px;border-radius:50%;background:rgba(255,255,255,.12)}.dashboard-premium-head h1{font-size:1.65rem;font-weight:950;margin:4px 0 8px}.dashboard-premium-head p{margin:0;color:rgba(255,255,255,.78);font-weight:700}.eyebrow{display:inline-flex;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);padding:6px 11px;border-radius:999px;font-size:.78rem;font-weight:900}.dashboard-command-center{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:10px;min-width:310px;position:relative;z-index:1}.cmd{display:flex;align-items:center;justify-content:center;text-align:center;background:rgba(20, 36, 80, 0.13);border:1px solid rgba(255,255,255,.22);color:#fff!important;border-radius:17px;padding:12px;font-weight:950;backdrop-filter:blur(8px)}.cmd:hover{background:#fff;color:#1e3a8a!important}.cmd-primary{background:#fff!important;color:#1d4ed8!important}.premium-kpis .kpi-card{min-height:148px;border-radius:24px;padding:18px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 16px 38px rgba(15,23,42,.07);position:relative;overflow:hidden}.kpi-card:after{content:'';position:absolute;left:-38px;bottom:-38px;width:120px;height:120px;border-radius:50%;opacity:.12}.kpi-card span{display:block;color:#64748b;font-weight:900}.kpi-card strong{display:block;font-size:1.7rem;font-weight:950;margin:12px 0;color:#0f172a}.kpi-card small{color:#64748b;font-weight:700}.kpi-blue:after{background:#2563eb}.kpi-green:after{background:#16a34a}.kpi-orange:after{background:#f97316}.kpi-red:after{background:#dc2626}.kpi-purple:after{background:#7c3aed}.premium-panel{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:18px;box-shadow:0 16px 38px rgba(15,23,42,.06)}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-weight:950}.panel-title a{font-size:.8rem;font-weight:900;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:6px 10px}.progress-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.progress-metrics div{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:13px;text-align:center}.progress-metrics b{display:block;font-size:1.35rem;font-weight:950;color:#1d4ed8}.progress-metrics span{font-size:.78rem;color:#64748b;font-weight:800}.mini-chart{height:165px;display:flex;align-items:end;gap:12px;background:linear-gradient(180deg,#f8fafc,#fff);border:1px solid #e2e8f0;border-radius:20px;padding:14px}.mini-chart div{height:var(--h);flex:1;background:linear-gradient(180deg,#2563eb,#93c5fd);border-radius:14px 14px 8px 8px;display:flex;align-items:end;justify-content:center;color:#1e3a8a;font-weight:900;font-size:.72rem;min-height:38px}.mini-chart span{background:#fff;border-radius:999px;padding:3px 7px;margin-bottom:6px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-grid a{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:13px;text-align:center;color:#0f172a;font-weight:950}.quick-grid a:hover{background:#eff6ff;color:#1d4ed8}.status-list{display:grid;gap:10px}.status-list div{display:flex;justify-content:space-between;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px 14px;font-weight:900}.status-list b{color:#1d4ed8}.topbar{background:rgba(255,255,255,.92)!important;border:1px solid rgba(226,232,240,.85);border-radius:0 0 24px 24px;margin:0 18px;box-shadow:0 12px 34px rgba(15,23,42,.06)}.topbar>div:first-child strong{font-size:1rem;display:inline-flex;align-items:center;gap:8px}.topbar>div:first-child strong:before{content:'◆';color:#2563eb;font-size:.85rem}.top-actions .btn,.top-actions .version-badge{border-radius:999px!important}.top-actions{background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:5px}.top-actions form{margin:0}
@media(max-width:992px){.dashboard-premium-head{display:block;border-radius:22px;padding:18px}.dashboard-command-center{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;margin-top:16px}.progress-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{margin:0;border-radius:0 0 18px 18px}.premium-panel,.kpi-card,.page-head-premium{border-radius:18px!important}}
@media(max-width:576px){.dashboard-premium-head h1{font-size:1.18rem}.dashboard-premium-head p{font-size:.78rem}.dashboard-command-center{grid-template-columns:1fr}.cmd{padding:9px;border-radius:13px;font-size:.78rem}.premium-kpis .kpi-card{min-height:112px;padding:13px}.kpi-card strong{font-size:1.15rem;margin:8px 0}.kpi-card span,.kpi-card small{font-size:.72rem}.progress-metrics{grid-template-columns:1fr}.mini-chart{height:130px;gap:7px;padding:10px}.quick-grid{grid-template-columns:1fr}.panel-title{font-size:.85rem}.top-actions{border-radius:16px;align-items:stretch!important}.top-actions .btn,.top-actions .version-badge{font-size:.7rem!important;padding:.35rem .5rem!important}.page-head-premium{padding:12px}.page-actions{width:100%}.page-actions .btn{flex:1 1 100%;font-size:.76rem!important}}

/* v20.28 professional settings, security and performance UI */
.settings-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;background:linear-gradient(135deg,#111827,#1d4ed8 55%,#0891b2);color:#ffffff;border-radius:28px;padding:28px;box-shadow:0 24px 55px rgba(37,99,235,.22);position:relative;overflow:hidden}.settings-hero:before{content:"";position:absolute;left:-70px;top:-70px;width:220px;height:220px;background:rgba(255,255,255,.10);border-radius:50%}.settings-hero h1{font-weight:950;margin:4px 0 8px;font-size:1.75rem}.settings-hero p{margin:0;color:rgba(255,255,255,.82);max-width:760px}.eyebrow{font-size:.78rem;font-weight:900;color:#bfdbfe}.settings-hero-actions{display:flex;gap:10px;flex-wrap:wrap;position:relative;z-index:1}.health-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:18px;box-shadow:0 18px 35px rgba(15,23,42,.06);min-height:128px}.health-card span{display:block;color:#64748b;font-weight:900;font-size:.85rem}.health-card strong{display:block;font-size:1.7rem;font-weight:950;color:#0f172a;margin:10px 0}.health-card small{color:#64748b;font-weight:800}.health-card.success strong{color:#16a34a}.health-card.warning strong{color:#f97316}.health-card.info strong{color:#2563eb}.settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}.settings-tabs{position:sticky;top:92px;background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:10px;box-shadow:0 16px 36px rgba(15,23,42,.06)}.settings-tabs a{display:flex;align-items:center;color:#334155;font-weight:900;border-radius:14px;padding:12px 14px;margin-bottom:6px}.settings-tabs a:hover{background:#eff6ff;color:#1d4ed8}.settings-content{display:grid;gap:18px}.premium-panel{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:22px;box-shadow:0 18px 40px rgba(15,23,42,.06)}.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}.panel-head h3{font-size:1.12rem;font-weight:950;margin:0 0 6px}.panel-head p{margin:0;color:#64748b;font-weight:700}.panel-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:#eff6ff;font-size:1.35rem}.smart-form p{margin:0 0 12px}.two-col-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}.two-col-form p{margin:0}.two-col-form .form-actions,.two-col-form .helptext,.two-col-form ul.errorlist{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;margin-top:6px}.premium-note{background:linear-gradient(135deg,#eff6ff,#f8fafc);border:1px solid #bfdbfe;color:#1e3a8a;border-radius:18px;padding:14px;font-weight:850}.security-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.security-grid>div{border:1px solid #e2e8f0;background:#f8fafc;border-radius:18px;padding:14px}.security-grid b{display:block;color:#0f172a;margin-bottom:6px}.security-grid span{color:#64748b;font-size:.88rem;font-weight:750}.mini-table-card{border:1px solid #e2e8f0;border-radius:20px;overflow:hidden;background:#fff}.table-title{font-weight:950;padding:14px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.status-pill{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:.76rem;font-weight:950}.status-pill.ok{background:#dcfce7;color:#166534}.status-pill.off{background:#fee2e2;color:#991b1b}.copy-link label{font-weight:950;margin-bottom:8px;color:#334155}@media(max-width:992px){.settings-hero{display:block;padding:20px;border-radius:22px}.settings-hero-actions{margin-top:16px}.settings-layout{grid-template-columns:1fr}.settings-tabs{position:relative;top:auto;display:flex;overflow:auto;gap:6px}.settings-tabs a{white-space:nowrap;margin-bottom:0}.two-col-form,.security-grid{grid-template-columns:1fr}.premium-panel{padding:16px;border-radius:20px}.health-card{min-height:auto}.settings-hero h1{font-size:1.35rem}}@media(max-width:576px){.settings-hero,.premium-panel,.health-card{border-radius:16px}.settings-tabs{border-radius:16px}.panel-icon{width:38px;height:38px;border-radius:13px;font-size:1rem}.panel-head h3{font-size:1rem}.panel-head p,.premium-note,.security-grid span{font-size:.78rem}.health-card{padding:13px}.health-card strong{font-size:1.25rem}.settings-hero-actions .btn{width:100%;font-size:.78rem!important}.table{font-size:.72rem}.btn-sm{font-size:.7rem!important}}
.voice-field{position:relative}.voice-btn{margin-top:.5rem}.premium-form-card input[type=file]{padding:.7rem;background:#f8fafc;border:1px dashed #94a3b8}.complaint-print-preview{font-family:Vazirmatn,Tahoma,sans-serif}.table td,.table th{vertical-align:middle}
@media(max-width:576px){.voice-btn{width:100%;font-size:.78rem}.page-title{font-size:1.05rem}.btn{font-size:.78rem;padding:.42rem .6rem}.form-control,.form-select{font-size:.82rem}.card{border-radius:14px}}

/* v20.30 fixes: clean status/radio alignment, SMS standalone, phonebook */
.form-check,.smart-form p:has(input[type="checkbox"]),.smart-form p:has(input[type="radio"]){display:flex!important;align-items:center!important;gap:.55rem!important;line-height:1.8!important;min-height:38px!important;margin-bottom:.55rem!important;flex-wrap:nowrap!important}
.form-check input[type="checkbox"],.form-check input[type="radio"],input[type="checkbox"],input[type="radio"]{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;accent-color:#2563eb!important;margin:0!important;vertical-align:middle!important;position:relative!important;top:0!important}
.form-check label,.smart-form p label{margin:0!important;display:inline-flex!important;align-items:center!important;gap:.35rem!important;font-weight:800!important;color:#334155!important;white-space:normal!important}
.status-pill,.badge-soft,.badge-status{white-space:nowrap!important;line-height:1.7!important;vertical-align:middle!important}.sms-message-cell{max-width:420px;white-space:normal!important;line-height:1.8}.phone-card{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 12px 28px rgba(15,23,42,.06);border-radius:18px;padding:1rem}.phone-icon{width:46px;height:46px;border-radius:16px;background:#e0f2fe;color:#0369a1;display:grid;place-items:center;font-size:22px;flex:0 0 auto}.phone-card b{display:block;font-weight:900;color:#0f172a}.phone-card span{display:block;color:#475569;font-size:.9rem}.phone-card small{display:block;color:#64748b;margin-top:.25rem;direction:ltr;text-align:right}
@media(max-width:768px){.form-check,.smart-form p:has(input[type="checkbox"]),.smart-form p:has(input[type="radio"]){min-height:32px!important;gap:.42rem!important}.form-check input[type="checkbox"],.form-check input[type="radio"],input[type="checkbox"],input[type="radio"]{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important}.form-check label,.smart-form p label{font-size:.78rem!important}.phone-card{padding:.75rem;border-radius:14px}.phone-icon{width:36px;height:36px;font-size:17px;border-radius:12px}.sms-message-cell{max-width:260px}}


/* v20.31 Jalali dates, complaints UI and Max SMS credit */
.jalali-date-input,input.jalali-date{direction:ltr!important;text-align:center!important;font-weight:900!important;letter-spacing:.5px;background:linear-gradient(180deg,#fff,#f8fafc)!important;border:1px solid #cbd5e1!important;border-radius:14px!important}
.sms-credit-note{grid-column:1/-1;background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;border-radius:16px;padding:12px 14px;font-weight:900}
.complaint-detail-ui .card,.complaint-status-panel{border:1px solid #e2e8f0!important;border-radius:22px!important;box-shadow:0 16px 36px rgba(15,23,42,.06)!important}
.complaint-detail-ui h5{font-weight:950;color:#0f172a;margin-bottom:14px;display:flex;align-items:center;gap:8px}.complaint-detail-ui h5:before{content:'⚖️';font-size:18px}
.complaint-status-panel .status-field{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:10px}.complaint-status-panel .form-label{font-weight:950;color:#334155}
.complaint-status-panel select,.complaint-status-panel input,.complaint-status-panel textarea{border-radius:13px!important}.complaint-status-panel .btn-primary{width:100%;border-radius:16px;font-weight:950;padding:.75rem}
.complaint-status-panel .form-text{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;padding:8px 10px;font-weight:800;margin-top:7px}
@media(max-width:576px){.complaint-detail-ui .card,.complaint-status-panel{border-radius:16px!important}.complaint-detail-ui .small{font-size:.72rem!important}.jalali-date-input,input.jalali-date{font-size:.78rem!important}.sms-credit-note{font-size:.75rem;padding:9px}}


/* v20.32 premium sidebar, settings, map UX and mobile polish */
.app-shell{background:linear-gradient(135deg,#f8fbff 0%,#eef4ff 50%,#f9fafb 100%)}
.sidebar{background:linear-gradient(180deg,#061127 0%,#0f1f3d 48%,#132b55 100%)!important;border-left:1px solid rgba(255,255,255,.08);box-shadow:-18px 0 48px rgba(15,23,42,.22)}
.premium-brand{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;padding:1rem .85rem;border-radius:22px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.premium-brand small{display:block;width:100%;font-size:.72rem;color:#bfdbfe;margin-right:3.1rem;margin-top:-.35rem}.brand-badge{background:linear-gradient(135deg,#38bdf8,#6366f1)!important;box-shadow:0 12px 28px rgba(59,130,246,.36)}
.side-meta{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.06);border-radius:16px;padding:.55rem;margin:.85rem 0}.side-meta span{background:rgba(255,255,255,.08)!important;color:#e0f2fe!important;border:1px solid rgba(255,255,255,.08)}
.nav-menu{padding-bottom:1rem}.nav-direct,.nav-toggle{border:1px solid rgba(255,255,255,.08)!important;background:rgba(255,255,255,.05)!important;color:#f8fafc!important;border-radius:16px!important;margin-bottom:.45rem!important;box-shadow:0 8px 18px rgba(0,0,0,.10)}
.nav-toggle{position:relative}.nav-toggle::after{content:'⌄';font-weight:900;color:#93c5fd;margin-right:auto;transition:.2s}.nav-toggle[aria-expanded="true"]::after{transform:rotate(180deg)}
.nav-menu .collapse{border-right:2px solid rgba(96,165,250,.45);margin:.2rem .85rem .7rem 0;padding:.15rem .45rem .15rem 0}.nav-menu .collapse a{background:transparent!important;border-radius:13px!important;color:#cbd5e1!important;margin:.1rem 0!important;padding:.55rem .65rem!important}.nav-menu .collapse a:hover{background:rgba(96,165,250,.18)!important;color:#fff!important;transform:none!important}.mi{filter:drop-shadow(0 3px 8px rgba(59,130,246,.25))}
.premium-topbar{border-radius:0 0 24px 24px;margin:0 0 .75rem 0;padding:.9rem 1.2rem!important;box-shadow:0 16px 40px rgba(15,23,42,.08);border:1px solid rgba(15,23,42,.06)!important;background:rgba(255,255,255,.86)!important}.premium-topbar strong{font-size:1.08rem}.top-actions .btn{border-radius:14px!important;font-weight:800}
.content .card,.premium-panel,.table-card,.mini-table-card{border-radius:22px!important;border:1px solid rgba(15,23,42,.07)!important;box-shadow:0 18px 45px rgba(15,23,42,.075)!important;background:rgba(255,255,255,.92)!important}.btn{border-radius:13px!important;font-weight:800}.btn-primary{background:linear-gradient(135deg,#2563eb,#4f46e5)!important;border:0!important}.btn-success{background:linear-gradient(135deg,#16a34a,#059669)!important;border:0!important}.btn-warning{background:linear-gradient(135deg,#f59e0b,#f97316)!important;border:0!important;color:#111827!important}
.settings-hero{background:linear-gradient(135deg,#1d4ed8,#4f46e5 55%,#7c3aed)!important;border:0!important;box-shadow:0 24px 70px rgba(37,99,235,.24)!important}.settings-tabs{position:sticky;top:82px;border-radius:22px;background:#fff;border:1px solid rgba(15,23,42,.07);box-shadow:0 16px 38px rgba(15,23,42,.06);padding:.75rem}.settings-tabs a{display:flex;align-items:center;gap:.5rem;padding:.75rem .85rem;border-radius:14px;color:#334155;text-decoration:none;font-weight:900}.settings-tabs a:hover{background:#eef2ff;color:#3730a3}.panel-head{border-bottom:1px dashed #dbe3ef;margin-bottom:1rem;padding-bottom:.8rem}.panel-head h3{font-size:1.05rem;font-weight:1000}.panel-icon{background:linear-gradient(135deg,#e0f2fe,#eef2ff);border:1px solid #dbeafe;border-radius:18px;width:52px;height:52px;display:grid;place-items:center;font-size:1.55rem}.sms-edge-note{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:.7rem .85rem;margin:.65rem 0;font-size:.82rem;direction:ltr;text-align:left}.sms-edge-note code{color:#1d4ed8;background:#eff6ff;border-radius:8px;padding:.15rem .35rem}.smart-form p:has(input[type="checkbox"]),.smart-form p:has(input[type="radio"]),.form-check{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:.65rem .75rem!important;display:flex!important;align-items:center!important;gap:.55rem!important}.smart-form p:has(input[type="checkbox"]) label,.smart-form p:has(input[type="radio"]) label,.form-check label{margin:0!important;line-height:1.8!important}.smart-form input[type="checkbox"],.smart-form input[type="radio"],.form-check-input{width:20px!important;height:20px!important;min-width:20px!important;accent-color:#2563eb}.compact-map-box{border:1px solid #dbeafe!important;background:linear-gradient(180deg,#f8fbff,#fff)!important;border-radius:20px!important;padding:.8rem!important}.compact-map-box label{font-weight:900;color:#1e40af}.compact-map-box .form-text{background:#eff6ff;color:#1e40af;border-radius:12px;padding:.55rem .7rem;margin-top:.55rem}#map{border-radius:18px!important;min-height:320px!important;border:1px solid #dbeafe!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.6)}
.auth-mode .sidebar,.auth-mode .mobile-bar,.auth-mode .topbar{display:none!important}.auth-mode .app-shell{display:block!important}.auth-mode .main{margin:0!important;width:100%!important}.auth-mode .content{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top right,rgba(37,99,235,.14),transparent 34%),linear-gradient(135deg,#eff6ff,#f8fafc)}
@media(max-width:768px){.sidebar{width:250px!important}.premium-brand{padding:.75rem;border-radius:18px}.premium-brand small{font-size:.64rem;margin-right:2.65rem}.nav-direct,.nav-toggle{font-size:.78rem!important;padding:.62rem .65rem!important;border-radius:13px!important}.nav-menu .collapse a{font-size:.73rem!important;padding:.48rem .55rem!important}.mi{font-size:.82rem!important;width:15px!important}.premium-topbar{top:48px!important;padding:.55rem .7rem!important;border-radius:0 0 16px 16px}.premium-topbar strong{font-size:.9rem}.topbar .small{font-size:.68rem!important}.content{padding:.6rem!important}.page-title{font-size:1.02rem!important}.btn{font-size:.74rem!important;padding:.42rem .55rem!important}.card,.premium-panel{border-radius:16px!important}.settings-layout{display:block!important}.settings-tabs{position:relative;top:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;margin-bottom:.7rem}.settings-tabs a{font-size:.72rem;padding:.52rem}.panel-head h3{font-size:.9rem}.panel-head p{font-size:.72rem}.panel-icon{width:40px;height:40px;font-size:1.15rem}#map{min-height:235px!important}.form-control,.form-select,textarea,input,select{font-size:.78rem!important}.table{font-size:.72rem!important}.mobile-bar strong{font-size:.82rem}.version-badge{font-size:.65rem!important}}
@media(max-width:430px){.settings-tabs{grid-template-columns:1fr}.dashboard-cta-top,.quick-actions{grid-template-columns:1fr!important}.stat-card strong{font-size:1.15rem!important}.table th,.table td{padding:.45rem!important}.content{padding:.5rem!important}}


/* v20.34 final: light wider premium sidebar and SMS variables */
.sidebar.fixed-sidebar,.sidebar{width:305px!important;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 55%,#eef4ff 100%)!important;color:#0f172a!important;border-left:1px solid #dbe3ef!important;box-shadow:-12px 0 36px rgba(15,23,42,.10)!important;padding:20px!important}
.premium-brand,.brand{background:linear-gradient(135deg,#eff6ff,#ffffff)!important;border:1px solid #dbeafe!important;color:#0f172a!important}.premium-brand small{color:#2563eb!important}.brand-badge{background:linear-gradient(135deg,#2563eb,#38bdf8)!important;color:#fff!important}
.side-meta{background:#f8fafc!important;border:1px solid #e2e8f0!important}.side-meta span{background:#ffffff!important;color:#334155!important;border:1px solid #e2e8f0!important}
.nav-direct,.nav-toggle{background:#ffffff!important;color:#172033!important;border:1px solid #e2e8f0!important;box-shadow:0 8px 18px rgba(15,23,42,.045)!important}.nav-direct:hover,.nav-toggle:hover,.nav-direct.active{background:#eef2ff!important;color:#1d4ed8!important;border-color:#bfdbfe!important;transform:translateX(-2px)}
.nav-toggle::after{color:#2563eb!important}.nav-menu .collapse{background:#f8fafc!important;border:1px solid #e2e8f0!important;border-right:3px solid #93c5fd!important}.nav-menu .collapse a{color:#334155!important}.nav-menu .collapse a:hover{background:#e0f2fe!important;color:#075985!important}.mi{filter:none!important}
.main{min-width:0}.content{max-width:1500px!important}.settings-tabs{min-width:220px}.sms-vars-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem}.sms-var-card{background:linear-gradient(180deg,#ffffff,#f8fafc);border:1px solid #e2e8f0;border-radius:16px;padding:.8rem;box-shadow:0 10px 24px rgba(15,23,42,.045)}.sms-var-card code{direction:ltr;display:inline-flex;background:#eef2ff;color:#3730a3;border-radius:999px;padding:.2rem .55rem;font-weight:900;margin-bottom:.45rem}.sms-var-card b{display:block;color:#0f172a;margin-bottom:.25rem}.sms-var-card span{display:block;color:#64748b;font-size:.82rem;line-height:1.8}
@media(max-width:768px){.sidebar.fixed-sidebar,.sidebar{width:282px!important;padding:12px!important}.sms-vars-grid{grid-template-columns:1fr}.sms-var-card{padding:.65rem}.sms-var-card span{font-size:.74rem}.nav-direct,.nav-toggle{font-size:.78rem!important}.content{max-width:100%!important}}


/* v20.35 premium login and auth */
body.auth-mode .content{padding:12px!important}
.premium-login-wrap{min-height:calc(100vh - 40px);display:grid;place-items:center;background:radial-gradient(circle at 12% 15%,rgba(59,130,246,.18),transparent 34%),radial-gradient(circle at 90% 80%,rgba(14,165,233,.15),transparent 36%)}
.premium-login-card{width:min(100%,480px);overflow:hidden;border:1px solid rgba(255,255,255,.88)!important;background:rgba(255,255,255,.9)!important;backdrop-filter:blur(18px);border-radius:34px!important;box-shadow:0 35px 90px rgba(15,23,42,.18)!important}
.login-hero{padding:34px 28px 22px;text-align:center;background:linear-gradient(135deg,#eff6ff,#ffffff 60%,#ecfeff);border-bottom:1px solid #e2e8f0}
.login-logo{width:68px;height:68px;border-radius:24px;margin:0 auto 14px;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;font-size:31px;box-shadow:0 18px 38px rgba(37,99,235,.24)}
.login-hero h1{font-size:28px;font-weight:1000;margin:0;color:#0f172a;letter-spacing:-.04em}.login-hero p{margin:8px 0 0;color:#64748b;font-weight:750}.login-form{padding:24px 28px}.login-input-icon{position:relative}.login-input-icon>span{position:absolute;right:14px;top:50%;transform:translateY(-50%);z-index:3;opacity:.75}.login-input-icon .form-control{padding-right:44px!important;min-height:48px!important;font-weight:850;background:#f8fafc!important}.login-input-icon.password-wrap .form-control{padding-left:52px!important}.premium-login-btn{min-height:48px!important;border-radius:16px!important;background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;box-shadow:0 18px 34px rgba(37,99,235,.22)!important}.login-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:0 28px 24px;color:#64748b;font-size:13px}.login-foot a{font-weight:900}.premium-login-card .password-eye{left:10px!important;right:auto!important;top:50%!important;transform:translateY(-50%);height:36px;width:40px;border-radius:12px;background:#eef2ff;border:1px solid #c7d2fe}
@media(max-width:576px){.premium-login-card{border-radius:24px!important}.login-hero{padding:26px 18px 16px}.login-form{padding:18px}.login-foot{padding:0 18px 18px;display:grid;text-align:center}.login-logo{width:56px;height:56px;border-radius:18px;font-size:25px}.login-hero h1{font-size:22px}}

/* v20.36.3 layout, theme, advanced search, calendar */
:root{--sidebar-bg:#f8fbff;--sidebar-border:#dbeafe;--sidebar-text:#1e293b;--sidebar-muted:#64748b;--sidebar-hover:#eaf2ff;--sidebar-active:#dbeafe;--sidebar-width:296px;--topbar-bg:rgba(255,255,255,.92)}
html[data-theme="dark"]{--bg:#0f172a;--card:#111827;--text:#e5e7eb;--muted:#94a3b8;--border:#263244;--sidebar-bg:#111827;--sidebar-border:#263244;--sidebar-text:#e5e7eb;--sidebar-muted:#94a3b8;--sidebar-hover:#1f2937;--sidebar-active:#24324a;--topbar-bg:rgba(17,24,39,.92)}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .card,html[data-theme="dark"] .action-card,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .table-card{background:var(--card)!important;color:var(--text);border-color:var(--border)}
html[data-theme="dark"] .table thead th,html[data-theme="dark"] .compact-section,html[data-theme="dark"] .detail-grid>div,html[data-theme="dark"] .ticket-msg{background:#172033!important;color:var(--text);border-color:var(--border)}
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0b1220!important;color:#e5e7eb!important;border-color:#334155!important}
.sidebar{width:var(--sidebar-width)!important;background:linear-gradient(180deg,#ffffff,#f3f7ff)!important;color:var(--sidebar-text)!important;border-left:1px solid var(--sidebar-border);box-shadow:0 18px 50px rgba(15,23,42,.08);display:flex;flex-direction:column;overflow:hidden}.brand{background:linear-gradient(135deg,#eff6ff,#ffffff);border:1px solid #dbeafe;color:#1e3a8a;border-radius:20px;padding:12px 13px;margin-bottom:12px}.brand small{display:block;color:#64748b;font-size:.72rem;font-weight:800}.brand-badge{background:#2563eb!important;color:#fff}.nav-menu{overflow:auto;padding-left:3px;padding-bottom:10px}.nav-direct,.nav-toggle{color:var(--sidebar-text)!important;background:transparent!important}.nav-direct:hover,.nav-toggle:hover,.nav-toggle[aria-expanded="true"]{background:var(--sidebar-hover)!important;color:#1d4ed8!important}.nav-menu .collapse a{color:var(--sidebar-muted)!important;border-right:1px solid var(--sidebar-border)!important}.nav-menu .collapse a:hover{background:var(--sidebar-hover)!important;color:#1d4ed8!important}.mi{filter:none}.sidebar-footer-version{margin-top:auto;border-top:1px solid var(--sidebar-border);padding:12px;color:var(--sidebar-muted);font-weight:900;font-size:.78rem;background:rgba(255,255,255,.65);border-radius:16px;text-align:center}.topbar{background:var(--topbar-bg)!important}.topbar-owner strong{display:block;font-size:1.02rem}.topbar-credit{border:1px solid #bfdbfe!important;color:#1e40af!important;background:#eff6ff!important;font-weight:900}.theme-toggle-mobile{border:0;background:#eff6ff;color:#1e40af;border-radius:12px;padding:5px 9px}.advanced-search-card{border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--border);box-shadow:0 18px 45px rgba(15,23,42,.07)}.search-result-type{background:#eef2ff;color:#3730a3;border-radius:999px;padding:.28rem .55rem;font-size:.72rem;font-weight:900}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.calendar-day{background:#fff;border:1px solid var(--border);border-radius:16px;min-height:92px;padding:10px}.calendar-day.today{border-color:#2563eb;background:#eff6ff}.calendar-day .day-num{font-weight:900;font-size:1.15rem;color:#1d4ed8}.calendar-day .occasion{font-size:.72rem;color:#475569;margin-top:6px;line-height:1.7}.calendar-head{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:8px}.calendar-head span{font-weight:900;color:#64748b;text-align:center}
html[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#111827,#0b1220)!important;border-color:#263244;box-shadow:none}html[data-theme="dark"] .brand{background:#172033;border-color:#263244;color:#e5e7eb}html[data-theme="dark"] .sidebar-footer-version{background:#172033;border-color:#263244;color:#94a3b8}html[data-theme="dark"] .topbar-credit{background:#172033!important;border-color:#334155!important;color:#bfdbfe!important}html[data-theme="dark"] .calendar-day,html[data-theme="dark"] .advanced-search-card{background:#111827;border-color:#263244}html[data-theme="dark"] .calendar-day.today{background:#172033}html[data-theme="dark"] .calendar-day .occasion{color:#94a3b8}
@media(max-width:992px){.sidebar{width:300px!important}.topbar-owner .small{font-size:.76rem}.top-actions{gap:6px!important}.topbar-credit{font-size:.72rem!important;padding:.35rem .55rem!important}}
@media(max-width:576px){.sidebar{width:285px!important}.calendar-grid,.calendar-head{gap:4px}.calendar-day{min-height:72px;border-radius:12px;padding:6px}.calendar-day .day-num{font-size:.9rem}.calendar-day .occasion{font-size:.62rem}.topbar-credit{max-width:100%;white-space:nowrap}}

/* v20.36.4 premium RTL sidebar redesign + mobile UX */
:root{--sidebar-bg:#f8fbff;--sidebar-accent:#2563eb;--sidebar-text:#162033;--sidebar-muted:#6b7280;--sidebar-border:#dbe7f5;--sidebar-hover:#eaf2ff;--sidebar-active:#dbeafe;--sidebar-width:306px}
.sidebar{width:var(--sidebar-width)!important;background:linear-gradient(180deg,#ffffff 0%,#f3f7ff 100%)!important;color:var(--sidebar-text)!important;border-left:1px solid var(--sidebar-border)!important;box-shadow:-12px 0 35px rgba(15,23,42,.06)!important;padding:18px 16px!important;overflow-y:auto;scrollbar-width:thin}
.brand.premium-brand{background:linear-gradient(135deg,#eef6ff,#ffffff);border:1px solid var(--sidebar-border);border-radius:24px;padding:14px!important;margin-bottom:14px!important;color:#0f172a;align-items:center;box-shadow:0 12px 28px rgba(37,99,235,.08)}
.brand.premium-brand .brand-badge{background:linear-gradient(135deg,#2563eb,#38bdf8)!important;color:#fff!important;width:44px;height:44px;border-radius:16px;box-shadow:0 12px 24px rgba(37,99,235,.22)}
.brand.premium-brand span:not(.brand-badge){font-size:15px;line-height:1.5;white-space:normal;display:block}.brand.premium-brand small{display:block;color:var(--sidebar-muted)!important;font-size:12px;font-weight:800;margin-top:2px}
.nav-menu{display:block!important}.nav-direct,.nav-toggle{background:transparent!important;color:var(--sidebar-text)!important;border:1px solid transparent!important;border-radius:16px!important;padding:11px 12px!important;margin-bottom:6px!important;min-height:42px;transition:.18s ease;box-shadow:none!important}
.nav-direct:hover,.nav-toggle:hover,.nav-toggle[aria-expanded="true"]{background:var(--sidebar-hover)!important;border-color:#cfe0ff!important;color:#0f3d91!important;transform:translateX(-2px)}.nav-toggle[aria-expanded="true"]{background:var(--sidebar-active)!important}.nav-toggle:after{color:#64748b!important}.nav-menu .collapse{background:rgba(255,255,255,.64);border:1px solid #edf3fb;border-radius:18px;padding:6px;margin:4px 0 10px}.nav-menu .collapse a{border-right:0!important;color:#334155!important;background:transparent!important;border-radius:13px!important;margin:1px 0!important;padding:9px 13px!important;font-weight:800}.nav-menu .collapse a:hover{background:#eef6ff!important;color:#1d4ed8!important}.mi{display:inline-grid;place-items:center;width:25px!important;height:25px;background:#eef6ff;border:1px solid #dbeafe;color:#1d4ed8;border-radius:9px;font-size:14px!important;flex:0 0 auto}.nav-toggle .mi,.nav-direct .mi{margin-left:8px}.sidebar-footer-version{background:#fff;border:1px solid var(--sidebar-border);color:#64748b!important;border-radius:16px;padding:10px 12px;margin-top:14px;text-align:center;font-size:12px;font-weight:900;position:sticky;bottom:0}.main{background:linear-gradient(180deg,#f7faff 0%,#f4f7fb 100%)}.topbar.premium-topbar{border-radius:0 0 24px 24px;margin:0 0 8px;border:1px solid rgba(226,232,240,.8);box-shadow:0 18px 45px rgba(15,23,42,.05)}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.report-kpi{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:18px;box-shadow:0 18px 40px rgba(15,23,42,.06);height:100%}.report-kpi span{color:#64748b;font-weight:900;font-size:13px}.report-kpi strong{display:block;font-size:30px;font-weight:950;margin:8px 0;color:#0f172a}.report-kpi small{color:#64748b;font-weight:800}.report-list{display:grid;gap:10px}.report-list>div{display:flex;justify-content:space-between;align-items:center;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}.mini-progress{height:9px;background:#e5e7eb;border-radius:999px;overflow:hidden;min-width:90px}.mini-progress span{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#2563eb)}.premium-report-head{background:linear-gradient(135deg,#eef6ff,#fff);border:1px solid #dbeafe;border-radius:26px;padding:18px;box-shadow:0 18px 40px rgba(37,99,235,.08)}
@media(max-width:992px){.mobile-bar{background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 10px 26px rgba(15,23,42,.06)}.sidebar{width:100%!important;max-width:340px!important;height:100vh!important;border-left:0!important}.offcanvas-lg{background:#fff!important}.topbar.premium-topbar{border-radius:0;margin:0;display:flex!important;align-items:center!important}.topbar-owner strong{font-size:.9rem}.top-actions .btn{font-size:.72rem!important;padding:.35rem .48rem!important}.content{padding:12px!important}.page-head{display:block}.premium-report-head form{margin-top:12px}.nav-direct,.nav-toggle{font-size:.82rem!important;min-height:38px!important;padding:8px 10px!important}.mi{width:22px!important;height:22px!important;font-size:12px!important;border-radius:8px}.nav-menu .collapse a{font-size:.78rem!important;padding:7px 11px!important}.brand.premium-brand{border-radius:18px;padding:12px!important}.report-kpi{border-radius:18px;padding:13px}.report-kpi strong{font-size:22px}.table{font-size:.76rem!important}.btn{font-size:.74rem!important}.form-control,.form-select,input,select,textarea{font-size:.78rem!important}.page-title{font-size:1.08rem!important}.page-subtitle{font-size:.78rem!important}}
@media(max-width:576px){.topbar.premium-topbar{flex-direction:column;align-items:stretch!important;gap:8px}.top-actions{justify-content:space-between}.top-actions .btn{flex:1 1 auto}.premium-report-head{padding:13px;border-radius:18px}.quick-actions{grid-template-columns:1fr!important}.stat-card,.card{border-radius:16px!important}.report-list>div{padding:9px;font-size:.78rem}}

/* v20.36.5 sidebar default-closed, sms recharge, todo calendar */
.topbar .btn[data-theme-toggle]{border-color:#dbeafe!important;background:#f8fbff!important;color:#1e40af!important;font-weight:900!important}
.topbar .btn-warning{background:linear-gradient(135deg,#fbbf24,#f59e0b)!important;border:0!important;color:#111827!important;font-weight:950!important}
.amount-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.amount-card{display:flex;align-items:center;gap:10px;border:1px solid #dbeafe;background:#f8fbff;border-radius:16px;padding:14px;font-weight:950;cursor:pointer;transition:.18s ease}.amount-card:hover{background:#eff6ff;border-color:#93c5fd}.amount-card input{width:18px;height:18px;accent-color:#2563eb}.sms-recharge-panel .input-group-text{font-weight:900;background:#eff6ff;color:#1e40af}.todo-jalali-card{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(135deg,#eef6ff,#fff);border:1px solid #dbeafe;border-radius:24px;padding:16px 18px;box-shadow:0 16px 38px rgba(37,99,235,.07)}.todo-jalali-card h3{font-size:1.05rem;font-weight:950;margin:0 0 4px;color:#0f172a}.todo-jalali-card p{margin:0;color:#64748b;font-size:.88rem}.todo-pills{display:flex;gap:8px;flex-wrap:wrap}.todo-pills a{background:#fff;border:1px solid #dbeafe;border-radius:999px;padding:8px 12px;text-decoration:none;color:#1d4ed8;font-weight:900;font-size:.82rem}.todo-list-box{display:grid;gap:10px;margin-top:12px}.todo-list-box label{display:flex;align-items:center;gap:9px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:10px;font-weight:850}.todo-list-box input{accent-color:#2563eb}.todo-calendar-hero{background:linear-gradient(135deg,#eef6ff,#fff)}
/* keep sidebar groups closed visually unless user opens them */
.nav-menu .collapse:not(.show){display:none!important}.nav-toggle[aria-expanded="false"]{background:transparent!important;color:var(--sidebar-text)!important}.nav-toggle[aria-expanded="false"]::after{transform:rotate(90deg)}
@media(max-width:768px){.amount-grid{grid-template-columns:1fr}.todo-jalali-card{display:block;border-radius:18px;padding:12px}.todo-pills{margin-top:10px}.todo-pills a{font-size:.72rem;padding:6px 9px}.top-actions .btn[data-theme-toggle]{flex:0 0 auto}.calendar-head span{font-size:.68rem}.todo-list-box label{font-size:.78rem;padding:8px}}


/* v20.36.6 sidebar/topbar RTL UX fix */
.app-shell{direction:rtl}.sidebar{right:0;left:auto;text-align:right}.main{margin-right:var(--sidebar-width);margin-left:0}.nav-toggle,.nav-direct,.nav-menu .collapse a{justify-content:flex-start;text-align:right}.nav-toggle span,.nav-direct span:not(.mi){text-align:right}.topbar{direction:rtl;justify-content:flex-end}.topbar-spacer{flex:1}.top-actions{margin-right:auto}.brand span:last-child{font-size:.95rem;line-height:1.5}.brand small{margin-top:2px}.nav-menu .collapse{padding-right:8px;padding-left:0}.nav-menu .collapse a{padding-right:18px}.todo-list-box input[type=checkbox]{width:18px;height:18px}.todo-list-box label:has(input:checked){background:#ecfdf5;border-color:#86efac;color:#166534}.dashboard-command-center .cmd{border:1px solid #dbeafe;background:#198754;color:#1e40af}.dashboard-command-center .cmd-primary{background:#2563eb;color:#fff;border-color:#2563eb}.theme-toggle-mobile,[data-theme-toggle]{min-width:74px}
@media(max-width:991px){.main{margin-right:0}.sidebar{width:86vw!important}.topbar{border-radius:0 0 18px 18px}.top-actions{gap:6px!important}.top-actions .btn{font-size:.72rem;padding:.35rem .55rem}.brand span:last-child{font-size:.88rem}.nav-menu .mi{font-size:.92rem}.nav-toggle,.nav-direct,.nav-menu .collapse a{font-size:.82rem;padding:.56rem .72rem}.content{padding:12px}.dashboard-command-center{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-command-center .cmd{font-size:.76rem;padding:.55rem .6rem}}
html[data-theme="dark"] .dashboard-command-center .cmd{background:#172033;border-color:#334155;color:#bfdbfe}html[data-theme="dark"] .todo-list-box label:has(input:checked){background:#052e22;border-color:#047857;color:#bbf7d0}

/* v20.36.7 final UX: sidebar, topbar, todo, contrast */
:root{--sidebar-width:316px;--primary:#1d4ed8;--primary-dark:#1e40af;--success:#15803d;--warning:#b45309;--danger:#b91c1c;--purple:#6d28d9}
.sidebar{background:linear-gradient(180deg,#fbfdff 0%,#eef5ff 100%)!important;border-left:1px solid #d6e4f5!important;color:#0f172a!important}
.nav-direct,.nav-toggle{color:#0f172a!important;font-weight:950!important}
.nav-direct:hover,.nav-toggle:hover,.nav-toggle[aria-expanded="true"]{background:#dbeafe!important;color:#0b3b8c!important;border-color:#b7d2ff!important}
.nav-menu .collapse a{color:#24364f!important;font-weight:850!important}.nav-menu .collapse a:hover{background:#e8f1ff!important;color:#0b4eb3!important}
.mi{background:#e0edff!important;border-color:#bcd7ff!important;color:#0b4eb3!important}.sidebar-footer-version{background:#ffffff!important;border-color:#d6e4f5!important;color:#475569!important}
.theme-btn{display:inline-flex!important;align-items:center;gap:6px;min-width:82px;justify-content:center}.theme-icon{font-size:15px}.theme-label{font-weight:950}
.btn-primary,.cmd-primary{background:#1d4ed8!important;border-color:#1d4ed8!important;color:#fff!important}.btn-success{background:#15803d!important;border-color:#15803d!important;color:#fff!important}.btn-warning{background:#f59e0b!important;border-color:#d97706!important;color:#111827!important}.btn-danger{background:#b91c1c!important;border-color:#b91c1c!important;color:#fff!important}.btn-outline-secondary{border-color:#94a3b8!important;color:#334155!important;background:#fff!important}.btn-light{background:#fff!important;color:#1e3a8a!important;border:1px solid #dbeafe!important}
.kpi-card,.report-kpi,.premium-panel,.card{box-shadow:0 14px 36px rgba(15,23,42,.07)!important}.kpi-blue{background:linear-gradient(135deg,#dbeafe,#fff)!important}.kpi-green{background:linear-gradient(135deg,#dcfce7,#fff)!important}.kpi-orange{background:linear-gradient(135deg,#ffedd5,#fff)!important}.kpi-red{background:linear-gradient(135deg,#fee2e2,#fff)!important}.kpi-purple{background:linear-gradient(135deg,#ede9fe,#fff)!important}
.todo-form-pro label{font-size:.82rem;font-weight:950;color:#334155}.todo-db-list{max-height:420px;overflow:auto}.todo-row{display:flex;align-items:center;gap:8px;border:1px solid #e2e8f0;background:#fff;border-radius:14px;padding:8px;margin-bottom:7px}.todo-row.done{background:#ecfdf5;border-color:#86efac}.todo-check,.todo-delete{width:30px;height:30px;border-radius:10px;border:1px solid #cbd5e1;background:#f8fafc;font-weight:950}.todo-delete{color:#b91c1c}.todo-body{flex:1;display:grid}.todo-body b{font-size:.88rem}.todo-body small{color:#64748b}.day-todo-count{font-size:.62rem;background:#dbeafe;color:#1d4ed8;border-radius:999px;padding:2px 6px;width:max-content;margin-top:4px}.todo-inline-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.todo-mini{background:#fff;border:1px solid #dbeafe;border-radius:999px;padding:5px 8px;font-size:.74rem;font-weight:850;color:#1e40af}.todo-mini.done{background:#dcfce7;color:#166534;border-color:#86efac}
.calendar-day{background:#fff;border:1px solid #e2e8f0}.calendar-day.today{border-color:#1d4ed8!important;box-shadow:0 0 0 3px rgba(29,78,216,.12)}
@media(max-width:991px){:root{--sidebar-width:300px}.sidebar{max-width:320px!important}.topbar.premium-topbar{direction:rtl!important}.top-actions{width:100%;justify-content:flex-start!important}.theme-label{display:none}.theme-btn{min-width:42px!important}.content{padding:10px!important}.btn{font-size:.72rem!important;padding:.36rem .55rem!important}.page-title{font-size:1.05rem!important}.todo-row{padding:7px}.todo-body b{font-size:.78rem}.todo-body small{font-size:.68rem}.calendar-day{min-height:74px!important}}
@media(max-width:576px){.sidebar{max-width:88vw!important}.nav-direct,.nav-toggle{font-size:.78rem!important}.nav-menu .collapse a{font-size:.75rem!important}.mi{width:21px!important;height:21px!important;font-size:11px!important}.topbar-credit{font-size:.7rem!important}.dashboard-command-center{grid-template-columns:1fr!important}.todo-jalali-card{padding:10px!important}.todo-pills a{font-size:.68rem!important}}
html[data-theme="dark"] body{background:#0f172a;color:#e5e7eb}html[data-theme="dark"] .main{background:#0f172a}html[data-theme="dark"] .card,html[data-theme="dark"] .premium-panel,html[data-theme="dark"] .report-kpi,html[data-theme="dark"] .topbar,html[data-theme="dark"] .todo-row{background:#111827!important;color:#e5e7eb!important;border-color:#334155!important}html[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#111827,#0f172a)!important;color:#e5e7eb!important;border-color:#334155!important}html[data-theme="dark"] .nav-direct,html[data-theme="dark"] .nav-toggle,html[data-theme="dark"] .nav-menu .collapse a{color:#e5e7eb!important}html[data-theme="dark"] .nav-menu .collapse{background:#0b1220;border-color:#334155}html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,html[data-theme="dark"] input,html[data-theme="dark"] textarea{background:#0b1220!important;color:#e5e7eb!important;border-color:#334155!important}


/* v20.36.9 polish */
.theme-btn,.theme-toggle-mobile{display:inline-flex!important;align-items:center;gap:.35rem;min-width:72px;justify-content:center;border-radius:14px;font-weight:800}
.theme-icon{font-size:1rem;line-height:1}.theme-label{font-size:.8rem}
.btn-primary,.btn-warning,.btn-success{font-weight:800;box-shadow:0 8px 18px rgba(15,23,42,.08)}
.report-kpi{border:1px solid rgba(15,23,42,.08);background:linear-gradient(135deg,#ffffff,#f8fafc);border-radius:20px;padding:16px;min-height:95px}
.report-kpi span{display:block;color:#64748b;font-size:.85rem;margin-bottom:6px}.report-kpi strong{font-size:1.8rem;color:#0f172a}
[data-theme="dark"] .report-kpi{background:linear-gradient(135deg,#172033,#111827);border-color:rgba(255,255,255,.08)}
[data-theme="dark"] .report-kpi strong{color:#f8fafc}
[data-theme="dark"] .report-kpi span{color:#cbd5e1}
.sidebar .nav-menu a,.sidebar .nav-toggle{min-height:42px}
@media(max-width:768px){.theme-label{display:none}.theme-btn{min-width:42px}.report-kpi{padding:12px;min-height:76px}.report-kpi strong{font-size:1.35rem}.top-actions{gap:.35rem!important}.top-actions .btn{font-size:.72rem;padding:.35rem .55rem}}

/* v20.36.10 wizard + global theme fixes */
.business-wizard{border-radius:24px;background:var(--card,#fff)}
.wizard-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.wizard-step{border:1px solid #e5e7eb;background:#f8fafc;border-radius:16px;padding:10px 8px;font-weight:800;color:#475569;display:flex;align-items:center;justify-content:center;gap:7px;transition:.2s}
.wizard-step span{width:25px;height:25px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e2e8f0;color:#334155;font-size:.8rem}
.wizard-step.active{background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;box-shadow:0 10px 24px rgba(37,99,235,.2)}
.wizard-step.active span{background:rgba(255,255,255,.25);color:#fff}
.wizard-panel{display:none;animation:fadeIn .2s ease}
.wizard-panel.active{display:block}
.section-head{background:linear-gradient(135deg,#f8fafc,#eef6ff);border:1px solid #e2e8f0;border-radius:18px;padding:14px 16px;margin-bottom:14px}
.section-head h5{margin:0 0 4px;font-weight:900;color:#0f172a}.section-head p{margin:0;color:#64748b;font-size:.9rem}.review-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:18px;padding:16px}.review-box div{background:#fff;border-radius:12px;padding:10px;border:1px solid #edf2f7}.wizard-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end}.grid-span-2{grid-column:span 2}.theme-btn,.theme-toggle-mobile{display:inline-flex!important;align-items:center;gap:6px}.theme-icon{font-size:1.05rem}.compact-grid .assistant-zone{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:10px}.upload-preview-box img{max-width:90px!important;max-height:90px!important;object-fit:cover;border-radius:12px}.calendar-day .day-num,.todo-row small{font-variant-numeric:tabular-nums}
@media(max-width:768px){.wizard-steps{grid-template-columns:repeat(5,1fr);gap:5px}.wizard-step{font-size:.68rem;padding:7px 3px;flex-direction:column}.wizard-step span{width:21px;height:21px}.review-box{grid-template-columns:1fr}.wizard-actions{position:sticky;bottom:0;background:var(--card,#fff);padding:10px;z-index:20;border-radius:18px 18px 0 0}.section-head{padding:10px}.section-head h5{font-size:1rem}.section-head p{font-size:.78rem}.compact-map-box #map{min-height:260px}.topbar .theme-btn{display:inline-flex!important}}
@keyframes fadeIn{from{opacity:.2;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
[data-theme="dark"] .business-wizard,[data-theme="dark"] .review-box div,[data-theme="dark"] .wizard-actions{background:#111827;color:#e5e7eb}[data-theme="dark"] .wizard-step{background:#1f2937;border-color:#374151;color:#cbd5e1}[data-theme="dark"] .section-head,[data-theme="dark"] .assistant-zone,[data-theme="dark"] .review-box{background:#172033;border-color:#334155}[data-theme="dark"] .section-head h5{color:#f8fafc}

/* v20.36.11 To-Do stable + phonebook CTA */
.phone-card-pro{align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--border,#e5e7eb);border-radius:18px;background:var(--card,#fff);box-shadow:0 10px 28px rgba(15,23,42,.06)}
.phone-card-pro .phone-info{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.phone-cta-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.phone-cta{font-size:12px;text-decoration:none;border-radius:999px;padding:6px 10px;font-weight:700;border:1px solid transparent}
.phone-cta.call{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.phone-cta.sms{background:#dbeafe;color:#1d4ed8;border-color:#bfdbfe}
.phone-cta.detail{background:#f8fafc;color:#334155;border-color:#e2e8f0}
.todo-form-pro input,.todo-form-pro textarea{direction:rtl;text-align:right}
.todo-row{border:1px solid var(--border,#e5e7eb);border-radius:14px;padding:8px;margin-bottom:8px;background:var(--card,#fff)}
@media(max-width:768px){.phone-cta{font-size:11px;padding:5px 8px}.phone-card-pro{padding:10px;border-radius:14px}.todo-row{font-size:12px}.todo-body small{font-size:10px}}

/* ========== V20.36.12 FINAL FIX - MOBILE MENU CLICKABILITY & DESKTOP POLISH ========== */
/* حل مشکل کلیک نشدن منو در موبایل و کامپیوتر */
#mobileSidebar {
    z-index: 1050 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* اطمینان از کلیک‌پذیری تمام آیتم‌های منو */
.nav-menu a, 
.nav-menu button.nav-toggle,
.nav-menu .collapse a,
.sidebar a,
.sidebar button {
    pointer-events: auto !important;
    position: relative;
    z-index: 1060 !important; 
    cursor: pointer !important;
}

/* پرده تیره پشت منو (backdrop) */
.offcanvas-backdrop,
.modal-backdrop {
    z-index: 1040 !important;
}

/* دکمه همبرگر در موبایل */
.mobile-bar .btn,
.navbar-toggler,
button[data-bs-toggle="offcanvas"] {
    position: relative;
    z-index: 1070 !important;
    pointer-events: auto !important;
}

/* جلوگیری از مشکلات شیشه‌ای و backdrop-filter */
.offcanvas,
.offcanvas-lg {
    background: linear-gradient(180deg, #0f172a, #1e3a8a) !important;
    backdrop-filter: none !important;
}

.modal-open .app-shell {
    filter: none !important;
}

/* رفع مشکل اسکرول در سایدبار موبایل */
@media (max-width: 992px) {
    .fixed-sidebar {
        position: fixed !important;
        height: 100vh !important;
        overflow-y: auto !important;
        width: 285px !important;
        z-index: 1050 !important;
        padding-bottom: 80px !important;
    }
    
    .sidebar-footer-version {
        position: sticky;
        bottom: 0;
        background: #fff;
        margin-top: 20px;
        z-index: 1070;
    }
    
    /* اطمینان از کلیک در موبایل */
    .nav-direct, .nav-toggle {
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
}

/* رفع مشکل آیکون چشم در تمام حالت‌ها */
.password-eye {
    z-index: 1070 !important;
    cursor: pointer !important;
}

/* بهبود چیدمان RTL در موبایل */
@media (max-width: 768px) {
    .top-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input,
    .search-box button {
        width: 100%;
    }
}