/* Taheri glass system. Screen-only by design: original print/PDF styles are untouched. */
@media screen {
body.th-glass{
 --th-bg:#0c121b;--th-bg2:#111c29;--th-card:rgba(149,178,192,.055);--th-card2:rgba(8,15,25,.45);
 --th-line:rgba(221,230,237,.13);--th-line2:rgba(221,230,237,.075);--th-text:#dde6ed;--th-muted:#9bafbf;
 --th-light:#dde6ed;--th-mid:#95b2c0;--th-main:#536d82;--th-dark:#26374d;--th-radius:22px;--th-radius2:12px;
 --th-shadow:0 18px 55px rgba(0,0,0,.18);
 background:radial-gradient(ellipse at 15% 15%,#263b5059,transparent 52%),radial-gradient(ellipse at 85% 95%,#536d8226,transparent 50%),linear-gradient(125deg,#101925,#0b111a 65%)!important;
 background-attachment:fixed!important;color:var(--th-text)!important;min-height:100vh;isolation:isolate;
 font-family:Ravi,Vazirmatn,Tahoma,sans-serif;font-size:14px;line-height:1.8;
}
body.th-glass::before,body.th-glass::after{background:none!important;background-image:none!important;pointer-events:none!important}
/* Fluid application shell; keep auth dialogs and document/print dimensions intact. */
body.th-glass :where(.container,.wrap){width:calc(100% - 40px)!important;max-width:none!important;margin-inline:auto!important}
body.th-glass>main:not(.page):not(.sheet),body.th-glass :where(main.admin-layout,main.layout){max-width:none!important}
body.th-glass>main:not([class]){width:calc(100% - 40px)!important;margin-inline:auto!important}
body.th-glass :where(.admin-content,.admin-panel,.admin-layout,.layout){min-width:0}
body.th-glass :where(.admin-layout,.layout){padding-top:100px!important;padding-bottom:32px!important}
body.th-glass :where(.admin-content,.content,.card,.box,.panel-box,.invoice-list-card,.user-create-card,.about-box,.contact-modal-box,.login-card,.form-card,.section-card,.filter-card){
 background:linear-gradient(140deg,rgba(221,230,237,.065),rgba(149,178,192,.025))!important;
 border:1px solid var(--th-line)!important;border-radius:22px!important;box-shadow:var(--th-shadow),inset 0 1px 0 #ffffff07!important;
 backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
}
body.th-glass :where(.admin-content,.content,.card,.user-create-card){padding:22px!important}
body.th-glass :where(.admin-sidebar,.sidebar){background:linear-gradient(160deg,#95b2c00e,#111c2973)!important;border:1px solid var(--th-line)!important;border-radius:22px!important;box-shadow:var(--th-shadow)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);padding:19px!important}
body.th-glass :where(.admin-user-box,.userbox){background:#080f194d!important;border:1px solid var(--th-line2)!important;border-radius:15px!important;padding:14px!important}
body.th-glass :where(.admin-menu a,.admin-menu button,aside .menu a,.logout-btn){background:#080f193d!important;border:1px solid transparent!important;border-radius:11px!important;min-height:39px!important;padding:9px 12px!important;font-size:12px!important;font-weight:500!important;color:#b9c9d5!important;box-shadow:none!important;transition:background .18s,border-color .18s,color .18s!important}
body.th-glass :where(.admin-menu a,.admin-menu button,aside .menu a):hover,body.th-glass :where(.admin-menu a.active,aside .menu a.active){background:#95b2c01a!important;border-color:#95b2c033!important;color:#f1f6f9!important;transform:none!important}
body.th-glass :where(.admin-menu,aside .menu){gap:6px!important}
body.th-glass :where(.admin-sidebar,.sidebar){scrollbar-width:thin;scrollbar-color:#536d8266 transparent}
@media(min-width:981px){body.th-glass :where(.admin-sidebar,.sidebar){max-height:calc(100dvh - 120px);overflow-y:auto}}
body.th-glass>header,body.th-glass>header .nav{box-shadow:none!important}
body.th-glass>header{background:#0c121bb8!important;border-bottom:1px solid var(--th-line2)!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
body.th-glass .nav{height:74px!important}
body.th-glass :where(.logo-box){background:#95b2c008!important;border-color:#95b2c024!important;box-shadow:none!important;border-radius:12px!important}
body.th-glass :where(.dropdown-menu,.mobile-menu-panel,.user-dropdown){background:#111c29f5!important;border:1px solid #95b2c026!important;border-radius:15px!important;box-shadow:0 20px 60px #0005!important;backdrop-filter:blur(20px)}
body.th-glass :where(.admin-layout,.layout) h1{font-size:clamp(26px,3vw,40px)!important;line-height:1.55!important;font-weight:700!important;margin-bottom:15px!important;letter-spacing:-.7px!important}
body.th-glass :where(.card,.content,.box) h1{font-size:28px!important;line-height:1.6!important}
body.th-glass h2{font-size:21px;line-height:1.7;font-weight:600}
body.th-glass :where(.admin-sidebar,.sidebar) h3{font-size:17px!important;font-weight:600!important}
body.th-glass :where(.admin-stat,.stat-card,.stat,.invoice-summary-box,.summary-card){background:#080f194d!important;border:1px solid var(--th-line2)!important;border-radius:16px!important;box-shadow:none!important;padding:18px!important}
body.th-glass :where(.tag,.badge,.status){border-radius:8px!important;box-shadow:none!important}
body.th-glass .tag{background:#95b2c00a!important;border:1px solid #95b2c020!important;padding:5px 10px!important;font-size:11px!important;font-weight:500!important}
body.th-glass :where(.muted,.hint,.small-note){color:var(--th-muted)}
body.th-glass :where(label){font-size:12px!important;font-weight:500!important}
body.th-glass :where(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=hidden]),select,textarea){
 background:#080f195e!important;color:#dde6ed!important;border:1px solid #dde6ed24!important;border-radius:11px!important;
 padding:10px 12px!important;font:inherit!important;font-size:13px!important;box-shadow:none!important;outline:none;
}
body.th-glass :where(input,select,textarea):focus-visible{border-color:#95b2c099!important;box-shadow:0 0 0 3px #95b2c012!important}
body.th-glass :where(input,textarea)::placeholder{color:#7f95a7!important}
body.th-glass select option{background:#152131!important;color:#dde6ed!important}
body.th-glass :where(input[type=checkbox],input[type=radio]){accent-color:#95b2c0}
body.th-glass :where(.btn,button,.invoice-btn,.contact-submit-btn,.user-create-submit,.mini){
 background:#95b2c010!important;border:1px solid #95b2c02e!important;color:#d5e0e8!important;border-radius:11px!important;
 padding:9px 14px!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important;
 transition:background .18s,border-color .18s!important;
}
body.th-glass :where(.btn,button,.invoice-btn):hover{background:#95b2c022!important;border-color:#95b2c066!important;transform:none!important}
body.th-glass :where(.btn.primary,button.primary,.invoice-btn.primary,.contact-submit-btn,.user-create-submit){background:linear-gradient(110deg,#95b2c0,#d0dce4)!important;color:#172637!important;border-color:#dde6ed55!important}
body.th-glass :where(.btn.green,.btn.success,button.success,.successbtn){background:#13604888!important;color:#c6f4dd!important;border-color:#58bb8d44!important}
body.th-glass :where(.btn.danger,button.danger,button[name=delete],.delete-btn){background:#842b3b66!important;color:#ffc2ca!important;border-color:#e47e9044!important}
body.th-glass :where(button:disabled,.btn[aria-disabled=true]){opacity:.5;cursor:not-allowed!important}
body.th-glass :where(a,button):focus-visible{outline:2px solid #95b2c0;outline-offset:3px}
body.th-glass :where(table,.task-table){border-collapse:collapse!important;border-spacing:0!important;background:transparent!important;font-size:12px!important}
body.th-glass :where(th,td,.task-table th,.task-table td){padding:9px 10px!important;border:0!important;border-bottom:1px solid #95b2c015!important;border-radius:0!important;vertical-align:middle!important;background:transparent!important;font-size:12px!important}
body.th-glass :where(th,.task-table th){background:#95b2c00c!important;color:#a9bfce!important;font-size:11px!important;font-weight:600!important;white-space:nowrap}
body.th-glass tbody tr:hover>td{background:#95b2c007!important}
body.th-glass :where(tr.day td,.day-row td,.date-row td){background:#95b2c00c!important;padding:5px 10px!important}
body.th-glass td :where(.btn,button,.mini){padding:5px 8px!important;font-size:11px!important;border-radius:7px!important}
body.th-glass #ledger{padding:15px!important}
body.th-glass #ledger :where(th,td){padding:7px 8px!important}
body.th-glass #ledger .day td{padding:4px 8px!important}
body.th-glass #ledger .muted{font-size:10px!important}
body.th-glass :where(.alert,.db-alert){box-shadow:none!important;border-radius:12px!important}
body.th-glass footer{background:#080f192e!important;border-top-color:#95b2c012!important}
@media(max-width:760px){
 body.th-glass :where(.container,.wrap),body.th-glass>main:not([class]){width:calc(100% - 20px)!important}
 body.th-glass header .nav .menu{display:none!important}
 body.th-glass :where(.admin-menu,aside .menu){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));max-height:210px;overflow:auto;scrollbar-width:thin;scrollbar-color:#536d8266 transparent}
 body.th-glass :where(.admin-content,.content,.card,.user-create-card,.sidebar,.admin-sidebar){border-radius:17px!important;padding:15px!important}
 body.th-glass :where(.admin-layout,.layout) h1{font-size:26px!important}
 body.th-glass :where(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important}
 body.th-glass :where(th,td){font-size:11px!important;padding:7px 8px!important}
 body.th-glass :where(.admin-sidebar,.sidebar){backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media(prefers-reduced-transparency:reduce){body.th-glass :where(.card,.admin-content,.content,.sidebar,.admin-sidebar){background:#17212f!important;backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){body.th-glass *,body.th-glass *::before,body.th-glass *::after{transition:none!important;scroll-behavior:auto!important}}
}
