/* Compact office layout: explanations are optional; data, actions and alerts stay visible. */
.compact-office .topbar{min-height:68px}.compact-office .topbar-title{display:flex;align-items:center;gap:6px;min-width:0}.compact-office .topbar h1{font-size:22px;letter-spacing:0;line-height:1.4}.compact-office .tabs{padding-top:6px}.compact-office .home-summary{margin:14px 0 10px}.compact-office .home-summary h2{font-size:16px}.compact-office .stats{margin:12px 0;gap:12px}.compact-office .stat{padding:13px 16px;border-radius:9px}.compact-office .stat-value{font-size:25px;letter-spacing:0;margin:6px 0 0}.compact-office .stat-icon{width:26px;height:26px}.compact-office .stat-icon .icon{width:17px;height:17px}.compact-office .card{border-radius:9px;box-shadow:none}.compact-office .card-head{padding:12px 16px}.compact-office .card-body{padding:16px}.compact-office .section{margin:14px 0}.compact-office .toolbar{margin:12px 0}.compact-office .home-work{gap:14px;margin-top:14px}.compact-office .two-col{margin:14px 0;gap:14px}.compact-office .home-work .empty{padding:18px 16px}.compact-office .home-work .empty>.icon{width:24px;height:24px}.compact-office .business-grid{gap:10px}.compact-office .business-card{padding:14px 16px;min-height:0}.compact-office .eng-toolbar{margin:12px 0;gap:12px}.compact-office .eng-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 16px}.compact-office .eng-stats.eng-three{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-office .eng-metric{padding:14px 16px;border-radius:9px;border-top-width:3px}.compact-office .eng-metric>span{font-size:14px}.compact-office .eng-metric>strong{font-size:clamp(20px,1.9vw,28px);letter-spacing:0;margin:8px 0 5px}.compact-office .eng-contract{padding:14px 16px;margin-bottom:16px;gap:16px}.compact-office .eng-contract strong{font-size:21px;margin-top:5px}.compact-office .engineering-view .card-head h2{font-size:17px}.compact-office .eng-table td,.compact-office .eng-table th{padding:12px 16px}.compact-office .eng-table td small{margin-top:3px}.compact-office .eng-receipt-filters{padding:12px 16px;gap:10px}.compact-office .eng-progress{height:5px;margin-top:8px}
.has-context-help{display:inline-flex;align-items:center;gap:3px;min-width:0;flex-wrap:wrap}.compact-office button.context-help{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:0;margin:0;border:0;border-radius:6px;color:#818a95;background:transparent;vertical-align:middle;line-height:1;box-shadow:none}.compact-office button.context-help>span{display:grid;place-items:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font-size:11px;font-weight:600}.compact-office button.context-help:hover,.compact-office button.context-help[aria-expanded=true]{background:#f4eae7;color:#ad4637}.compact-office button.context-help:focus-visible{outline:2px solid #b94b3a;outline-offset:1px}.context-help-popup{position:fixed;inset:auto;margin:0;width:320px;max-width:calc(100vw - 20px);max-height:min(340px,calc(100vh - 24px));overflow:auto;padding:13px 15px;border:1px solid #dce0e5;border-radius:9px;background:#fff;color:#4d5967;box-shadow:0 5px 20px #24344722;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.context-help-popup>strong{display:block;color:#303b46;margin-bottom:5px;font-size:13px}.context-help-popup>div{white-space:pre-line}.context-help-popup::backdrop{background:transparent;pointer-events:none}
@media(max-width:1100px){.compact-office .eng-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.compact-office .topbar{min-height:64px}.compact-office .topbar h1{font-size:19px}.compact-office .topbar-title{gap:2px}.compact-office .home-summary{margin:12px 0 8px}.compact-office .stats{gap:9px}.compact-office .stat{padding:11px 12px}.compact-office .stat-value{font-size:21px}.compact-office .home-metrics .stat-top>span:first-child{white-space:normal;font-size:12px}.compact-office button.context-help{width:30px;height:30px;min-height:30px;flex-basis:30px}.compact-office .card-head{padding:11px 13px}.compact-office .card-body{padding:13px}.compact-office .eng-stats,.compact-office .eng-stats.eng-three{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.compact-office .eng-metric{padding:12px}.compact-office .eng-metric>strong{font-size:22px}.compact-office .eng-table td,.compact-office .eng-table th{padding:11px 13px}.compact-office .eng-stats.eng-three .eng-metric:last-child{grid-column:1/-1}}
