/* macOS Glass theme — HIG-inspired materials, hierarchy, accent and interaction */
body.ui-v2[data-theme-preset="macos-glass"]{--brand:#0a84ff;--brand-dark:#0066cc;--brand-tint:#e8f3ff;--paper:#f2f2f4;--surface:#fff;--surface-raised:rgba(255,255,255,.82);--surface-muted:#f7f7f8;--ink:#1d1d1f;--ink-soft:#4f4f54;--ink-faint:#737378;--line:rgba(60,60,67,.18);--sidebar:#e9e9ec;--sidebar-text:#252528;--r-sm:10px;--r-lg:16px;background:linear-gradient(145deg,#e9edf3,#f7f7f8 45%,#ececf0);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar.sidebar{background:rgba(239,239,242,.76)!important;color:#202124!important;border-inline-start:1px solid rgba(255,255,255,.72)!important;box-shadow:10px 0 32px rgba(31,35,41,.12)!important;backdrop-filter:saturate(1.45) blur(32px)!important;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar.sidebar::before{background:linear-gradient(180deg,rgba(255,255,255,.34),transparent)!important;opacity:1!important;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .sidebar-head{background:rgba(255,255,255,.26)!important;border-color:rgba(60,60,67,.12)!important;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .company,body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .uname{color:#1d1d1f!important;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .company-en,body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .uemail{color:#6e6e73!important;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .nav-group-label{background:transparent!important;color:#6e6e73!important;border:0!important;text-transform:none!important;letter-spacing:0!important;font-size:11px!important;font-weight:650;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .nav-item{color:#28282b!important;background:transparent!important;border:0!important;border-radius:8px!important;min-height:38px!important;transition:background-color .16s ease,color .16s ease,box-shadow .16s ease!important;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .nav-item:hover{background:rgba(120,120,128,.13)!important;color:#111!important;transform:none!important;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .nav-item.active{background:rgba(10,132,255,.18)!important;color:#005eb8!important;box-shadow:inset 0 0 0 1px rgba(10,132,255,.08)!important;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .nav-item.active::after{display:none!important;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .nav-item.nav-hidden-collapsed{min-height:0!important;max-height:0!important;height:0!important;padding:0!important;margin:0!important;opacity:0!important;overflow:hidden!important;}
body.ui-v2[data-theme-preset="macos-glass"] #mainSidebar .sidebar-foot{background:rgba(255,255,255,.28)!important;border-color:rgba(60,60,67,.13)!important;}
body.ui-v2[data-theme-preset="macos-glass"] .card,body.ui-v2[data-theme-preset="macos-glass"] .dash-card,body.ui-v2[data-theme-preset="macos-glass"] .kpi-card,body.ui-v2[data-theme-preset="macos-glass"] .settings-card,body.ui-v2[data-theme-preset="macos-glass"] .table-wrap{background:rgba(255,255,255,.78)!important;border:1px solid rgba(255,255,255,.82)!important;border-radius:16px!important;box-shadow:0 10px 28px rgba(31,35,41,.09),inset 0 0 0 1px rgba(60,60,67,.07)!important;backdrop-filter:saturate(1.2) blur(20px);}
body.ui-v2[data-theme-preset="macos-glass"] .modal-overlay{background:rgba(31,35,41,.34)!important;backdrop-filter:blur(10px) saturate(1.15)!important;}
body.ui-v2[data-theme-preset="macos-glass"] .modal-box{background:rgba(246,246,248,.94)!important;border:1px solid rgba(255,255,255,.82)!important;border-radius:14px!important;box-shadow:0 30px 85px rgba(0,0,0,.24),0 0 0 1px rgba(60,60,67,.12)!important;backdrop-filter:blur(36px) saturate(1.3);}
body.ui-v2[data-theme-preset="macos-glass"] .modal-box>h2{position:relative;background:rgba(255,255,255,.42)!important;color:#1d1d1f!important;border-bottom:1px solid rgba(60,60,67,.13);border-radius:13px 13px 0 0!important;text-align:center;font-size:15px!important;font-weight:650;}
body.ui-v2[data-theme-preset="macos-glass"] .modal-box>h2::before{content:"";position:absolute;inset-inline-start:18px;top:50%;transform:translateY(-50%);width:12px;height:12px;border-radius:50%;background:#ff5f57;box-shadow:20px 0 #febc2e,40px 0 #28c840;}
body.ui-v2[data-theme-preset="macos-glass"] input,body.ui-v2[data-theme-preset="macos-glass"] select,body.ui-v2[data-theme-preset="macos-glass"] textarea{background:rgba(255,255,255,.88)!important;border:1px solid rgba(60,60,67,.22)!important;border-radius:8px!important;color:#1d1d1f!important;box-shadow:0 1px 2px rgba(0,0,0,.035)!important;}
body.ui-v2[data-theme-preset="macos-glass"] input:focus,body.ui-v2[data-theme-preset="macos-glass"] select:focus,body.ui-v2[data-theme-preset="macos-glass"] textarea:focus{outline:3px solid rgba(10,132,255,.25)!important;border-color:#0a84ff!important;}
body.ui-v2[data-theme-preset="macos-glass"] .btn-primary{background:linear-gradient(#168cff,#0071e3)!important;color:#fff!important;border:1px solid #0068d1!important;border-radius:8px!important;box-shadow:0 1px 2px rgba(0,0,0,.12)!important;min-height:44px;transition:filter .14s ease,box-shadow .14s ease!important;}
body.ui-v2[data-theme-preset="macos-glass"] .btn-primary:hover{filter:brightness(1.05);transform:none!important;box-shadow:0 2px 5px rgba(0,87,180,.25)!important;}
body.ui-v2[data-theme-preset="macos-glass"] .btn-primary:active{filter:brightness(.92);transform:none!important;}
body.ui-v2[data-theme-preset="macos-glass"] .btn-ghost{background:linear-gradient(#fff,#ececef)!important;color:#252528!important;border:1px solid rgba(60,60,67,.24)!important;border-radius:8px!important;box-shadow:0 1px 2px rgba(0,0,0,.06)!important;}
body.ui-v2[data-theme-preset="macos-glass"] table thead th{background:rgba(232,232,235,.9)!important;color:#3a3a3d!important;border-color:rgba(60,60,67,.14)!important;}
body.ui-v2[data-theme-preset="macos-glass"] table tbody tr:hover{background:rgba(10,132,255,.075)!important;}
body.ui-v2.ui-dark[data-theme-preset="macos-glass"]{--brand:#0a84ff;--brand-dark:#409cff;--brand-tint:#18334e;--paper:#1c1c1e;--surface:#2c2c2e;--surface-raised:rgba(44,44,46,.86);--surface-muted:#242426;--ink:#f5f5f7;--ink-soft:#d1d1d6;--ink-faint:#98989d;--line:rgba(235,235,245,.16);background:linear-gradient(145deg,#151517,#252529);}
body.ui-v2.ui-dark[data-theme-preset="macos-glass"] #mainSidebar.sidebar{background:rgba(35,35,38,.78)!important;color:#f5f5f7!important;border-color:rgba(255,255,255,.1)!important;}
body.ui-v2.ui-dark[data-theme-preset="macos-glass"] #mainSidebar .company,body.ui-v2.ui-dark[data-theme-preset="macos-glass"] #mainSidebar .nav-item{color:#f5f5f7!important;}
body.ui-v2.ui-dark[data-theme-preset="macos-glass"] #mainSidebar .nav-item.active{background:rgba(10,132,255,.28)!important;color:#fff!important;}
body.ui-v2.ui-dark[data-theme-preset="macos-glass"] .modal-box,body.ui-v2.ui-dark[data-theme-preset="macos-glass"] .card,body.ui-v2.ui-dark[data-theme-preset="macos-glass"] .settings-card{background:rgba(44,44,46,.9)!important;border-color:rgba(255,255,255,.1)!important;color:#f5f5f7!important;}
body.ui-v2.ui-dark[data-theme-preset="macos-glass"] .modal-box>h2{background:rgba(58,58,60,.72)!important;color:#f5f5f7!important;}
body.ui-v2.ui-dark[data-theme-preset="macos-glass"] input,body.ui-v2.ui-dark[data-theme-preset="macos-glass"] select,body.ui-v2.ui-dark[data-theme-preset="macos-glass"] textarea{background:rgba(58,58,60,.9)!important;color:#fff!important;border-color:rgba(235,235,245,.2)!important;}
@media(prefers-reduced-motion:reduce){body.ui-v2[data-theme-preset="macos-glass"] *{transition-duration:.01ms!important;animation-duration:.01ms!important}}