/* Compact desktop workspace: grids first, forms in focused dialogs. */
:root{--desk-border:#d7dfe7;--desk-ink:#23364a;--desk-blue:#285779}
body{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:13px;color:var(--desk-ink);background:#f3f5f8}
.app-shell{display:grid!important;grid-template-columns:236px minmax(0,1fr)!important;min-height:100vh;gap:0!important}
body.sidebar-hidden .app-shell{grid-template-columns:minmax(0,1fr)!important}body.sidebar-hidden .sidebar{display:none!important}
.sidebar{width:236px!important;min-width:0!important;padding:16px 10px!important;background:#153348!important;border:0!important;border-radius:0!important;box-shadow:none!important;box-sizing:border-box;overflow-y:auto;max-height:100vh;position:sticky;top:0}
.sidebar .brand{font-size:16px!important;line-height:1.2;gap:9px!important;padding:6px!important;margin-bottom:14px}.sidebar .brand-logo{width:42px!important;height:42px!important;object-fit:contain}
.sidebar .branch-chip{font-size:12px!important;line-height:1.5;padding:9px 11px!important;background:#214258!important;border:0!important;border-radius:5px!important;margin-bottom:14px}.sidebar .branch-chip small{font-size:11px!important;font-weight:400}
.sidebar details,.sidebar summary{box-shadow:none!important;border:0!important}.sidebar-group{margin:4px 0 10px!important}.sidebar .sidebar-group>summary{display:flex!important;width:auto!important;background:transparent!important;color:#91acbf!important;border-radius:0!important;font-size:10px!important;letter-spacing:1px;padding:7px 9px!important;text-transform:uppercase;font-weight:600!important}
.sidebar .sidebar-group>summary:after{font-size:10px!important}.sidebar .nav-link{font-size:12px!important;font-weight:500!important;padding:8px!important;min-height:32px;border-radius:5px!important;gap:8px!important;background:transparent!important;color:#e0eaf1!important}.sidebar .nav-link.active{background:#2a506a!important}.sidebar .icon{font-size:9px!important;width:23px!important;height:23px!important;border-radius:4px!important;background:#294b61!important}.sidebar .sub-menu{padding:2px 0 2px 31px!important}.sidebar .sub-link{font-size:11px!important;font-weight:400!important;padding:7px 8px!important;line-height:1.3!important;border-radius:4px!important}.sidebar .sub-link:hover{background:#315b76!important}
.main{min-width:0!important;width:auto!important;margin:0!important}.content{padding:16px!important;max-width:none!important}.desktop-top{position:sticky;top:0;z-index:30}.title-strip{font-size:11px!important;padding:5px 14px!important}.toolbar{min-height:42px!important;padding:5px 12px!important;gap:8px!important}.tool-btn,.btn{font-size:12px!important;min-height:29px!important;padding:6px 10px!important;border-radius:4px!important;box-shadow:none!important;width:auto}.page-head{margin-bottom:13px!important;gap:12px}.page-head h1,h1{font-size:21px!important;margin:4px 0!important}.page-head p{font-size:12px!important;margin:4px 0!important}.eyebrow{font-size:10px!important}
.card{border:1px solid var(--desk-border)!important;border-radius:5px!important;box-shadow:none!important;padding:12px!important;margin-bottom:12px}.section-title{padding:7px 8px!important;margin-bottom:8px!important;background:#edf1f5!important;min-height:0!important;border-radius:3px}.section-title h2,h2{font-size:14px!important}.table-wrap{border:1px solid var(--desk-border);border-radius:3px;overflow:auto;max-height:70vh}.table{font-size:12px!important;border-collapse:collapse!important;width:100%;margin:0!important}.table th{position:sticky;top:0;z-index:2;background:#e9eff4!important;font-weight:600;white-space:nowrap!important}.table td,.table th{padding:7px 9px!important;border:1px solid #dce3e9!important;vertical-align:middle!important;line-height:1.4!important;max-width:300px}.table tbody tr:nth-child(even){background:#f8fafc}.table tbody tr:hover{background:#eef5fb}.table .badge{font-size:10px!important;padding:3px 5px!important;white-space:nowrap}.table td:last-child{min-width:100px}.table .tool-group{gap:4px!important;flex-wrap:nowrap!important}.table .btn{white-space:nowrap;font-size:11px!important;padding:4px 7px!important}.table td>.sub-link{display:inline-block;padding:2px!important;font-size:11px!important}.input{padding:7px 9px!important;min-height:32px!important;font-size:12px!important;border-radius:4px!important}.form-grid{gap:10px!important}.stat strong{font-size:22px!important}.stats{gap:10px!important}.stat{padding:12px!important}
.desk-dialog{width:min(1000px,94vw);max-height:88vh;border:1px solid #bbc9d6;border-radius:7px;padding:0;box-shadow:0 20px 80px #10293c55;color:var(--desk-ink)}.desk-dialog::backdrop{background:#132d4266}.dialog-head{position:sticky;top:0;z-index:6;background:#eaf0f5;border-bottom:1px solid var(--desk-border);padding:12px 16px;display:flex;justify-content:space-between;align-items:center}.dialog-body{padding:16px}.dialog-body .tool-group{display:block!important}.dialog-body details{margin:8px 0!important;min-width:0!important}.dialog-body summary{font-size:12px;padding:8px;background:#edf3f7;cursor:pointer}.dialog-body .desktop-form{padding:8px!important}.dialog-body form{margin-bottom:10px}.row-actions{display:flex;gap:4px;align-items:center}.grid-search{max-width:280px;margin-bottom:8px}.empty-state{padding:20px;color:#62758a}.workspace-open{margin-bottom:10px}
@media(max-width:800px){.sidebar{position:fixed;z-index:70;left:0;top:0;height:100vh;box-shadow:8px 0 30px #1235!important}.app-shell{grid-template-columns:minmax(0,1fr)!important}.toolbar{flex-wrap:wrap}.content{padding:10px!important}}
@media print{.sidebar,.desktop-top,.page-head .actions,.grid-search,.workspace-open,.no-print{display:none!important}.app-shell{display:block!important}.content{padding:0!important}.table-wrap{max-height:none;overflow:visible}.table th{position:static}.card{break-inside:auto}.desk-dialog{position:static;max-height:none;box-shadow:none;border:0}.dialog-head{display:none}}

.toolbar{justify-content:flex-start!important}.toolbar>.tool-group:last-child{margin-left:auto}.row-actions{white-space:nowrap}
