/* TAYEL Professional UI theme - additive, non-destructive */
:root{--bg:#f1f5fb;--panel:#fff;--card:#fff;--line:#e0e8f3;--text:#16243b;--muted:#64748b;--accent:#2563eb;--accent2:#60a5fa;--nav:#0b1730;--nav2:#172a49;--danger:#dc455a;--good:#15966d;--blue:#2563eb;--purple:#7c3aed;--cyan:#0891b2;--shadow:0 10px 28px rgba(20,40,85,.065)}
body{background:var(--bg)}
.nav{background:linear-gradient(180deg,#101e38,#0a1428);box-shadow:8px 0 30px rgba(8,24,52,.13)}
.nav .btn{transition:background .18s,color .18s}
.nav .btn.active{background:linear-gradient(90deg,rgba(59,130,246,.26),rgba(59,130,246,.07));border-color:rgba(96,165,250,.22)}
.nav .btn.active:before{background:#60a5fa;box-shadow:0 0 0 4px rgba(96,165,250,.14)}
.nav .btn.active:after{background:#60a5fa}
#appView>.top{border-radius:20px;background:rgba(255,255,255,.96)}
.panel,.card{border-radius:17px}
.btn.primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border-color:#2563eb}
.btn.primary:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af)}
.btn:focus-visible,.nav .btn:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
input:focus,select:focus,textarea:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.13)}
#dashboard>#dashCards .card{border:1px solid #e6ecf5;transition:transform .2s,box-shadow .2s}
#dashboard>#dashCards .card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(20,40,85,.10)}
#dashboard>#dashCards .card:nth-child(4n+1):before{background:#2563eb}
#dashboard>#dashCards .card:nth-child(4n+2):before{background:#10b981}
#dashboard>#dashCards .card:nth-child(4n+3):before{background:#8b5cf6}
#dashboard>#dashCards .card:nth-child(4n):before{background:#f59e0b}
#roleDashboardPanel{background:linear-gradient(120deg,#10274a,#1d4073)}
.dashboard-intro{background:linear-gradient(110deg,#fff,#eff6ff)}
.dashboard-status-pill{background:#e8f8f1;color:#087e59}
th{background:#f4f7fc;color:#53647e}tbody tr:hover{background:#f0f6ff}
.badge{border-color:#dce6f3;background:#f2f6fc;color:#415571}
@media(max-width:900px){.nav{background:#0d1d38}.nav .btn{flex-shrink:0}}
@media(max-width:560px){#dashboard>#dashCards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#dashboard>#dashCards .card{min-height:95px;padding:12px}#dashboard>#dashCards .value{font-size:clamp(16px,4.5vw,23px);overflow-wrap:anywhere}#dashboard>#dashCards .label{font-size:9px}#appView>.top{border-radius:14px}}
@media(prefers-reduced-motion:reduce){.btn,.card,.nav .btn{transition:none!important}}

/* Compact business density: readable typography without oversized cards */
#appView{font-size:12px}
#appView>.top{min-height:72px;padding:12px 17px;margin-bottom:14px}
#appView>.top h2{font-size:21px}
#appHeaderDate{font-size:11px;margin-top:3px}
.nav{gap:2px;padding-top:20px}
.nav .btn{font-size:12px;padding:8px 10px;gap:9px}
.nav:before{font-size:21px;padding-bottom:18px}
.nav:after{top:49px}
.section>.top:first-child h2{font-size:19px}
.section>.top:first-child{padding-bottom:3px}
.panel{padding:14px}.card{padding:12px}
.grid{gap:10px}#dashboard>#dashCards{gap:10px}
#dashboard>#dashCards .card{min-height:86px;padding:12px 14px}
.label{font-size:10px}.value{font-size:20px;margin-top:5px}
h3,#dashboard>.panel h3,#dashboard .top h3{font-size:14px}
label{font-size:11px;gap:4px;margin-bottom:9px}
input,select,textarea{font-size:12px;padding:8px 10px;border-radius:8px}
.btn{font-size:12px;padding:7px 10px;border-radius:8px}
th{font-size:10px}td{font-size:11px}th,td{padding:8px 9px}
.badge{font-size:10px;padding:5px 8px}.smallnote{font-size:11px}
.dashboard-intro{padding:13px 16px;margin-bottom:11px}
.dashboard-intro-title{font-size:15px}.dashboard-intro-sub{font-size:11px}
@media(max-width:900px){.nav{padding:8px}.nav .btn{font-size:11px;padding:7px 9px}}
@media(max-width:560px){#appView>.top h2{font-size:18px}.section>.top:first-child h2{font-size:17px}.panel{padding:11px}#dashboard>#dashCards .card{min-height:75px;padding:10px}#dashboard>#dashCards .value{font-size:18px}.grid{gap:8px}th,td{padding:7px 6px}}

/* Invoice list: essential columns by default; full amounts in expandable detail */
#invoices .invoice-compact table{min-width:700px}
#invoices .invoice-compact th:nth-child(5),#invoices .invoice-compact td:nth-child(5),
#invoices .invoice-compact th:nth-child(6),#invoices .invoice-compact td:nth-child(6),
#invoices .invoice-compact th:nth-child(7),#invoices .invoice-compact td:nth-child(7),
#invoices .invoice-compact th:nth-child(8),#invoices .invoice-compact td:nth-child(8){display:none}
#invoices .invoice-compact .invoice-extra-row td{display:table-cell!important;background:#f8faff;padding:12px}
.invoice-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 16px;white-space:normal;font-size:11px}
#invoices .invoice-compact .toolbar{flex-wrap:nowrap}
#invoices .invoice-compact .btn{padding:5px 7px;font-size:10px}
@media(max-width:650px){.invoice-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#invoices .invoice-compact table{min-width:620px}}
