/* Compass application shell and executive dashboard. No external fonts or charts. */
:root{--compass-ink:#102d52;--compass-muted:#4e6685;--compass-line:#dce5f1;--compass-blue:#2168b6;--compass-green:#008652}
.app{grid-template-columns:208px minmax(0,1fr);grid-template-rows:72px 1fr;grid-template-areas:"header header" "sidebar main";background:linear-gradient(125deg,#eff4fa,#f7f9fc 65%,#edf3fa)}
.compass-topbar{grid-area:header;position:sticky;top:0;z-index:60;display:flex;align-items:center;background:linear-gradient(105deg,#203f62,#173554);color:white;box-shadow:0 1px 5px #152f4c20}
.compass-wordmark{width:208px;flex-shrink:0;text-align:center;line-height:1.05}
.compass-wordmark span{display:block;font-size:28px;letter-spacing:1.8px;font-weight:400}.compass-wordmark b{display:block;font-size:16px;font-weight:400;margin-top:4px;letter-spacing:.7px}
.topbar-tools{display:flex;align-items:center;gap:20px;margin-left:auto;padding-right:24px}
.compass-icon{width:22px;height:22px;display:block;flex-shrink:0;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
[data-icon]{display:inline-flex;flex-shrink:0}.topbar-icon{position:relative;color:#fff;border:0;background:transparent;padding:10px;cursor:pointer;border-radius:8px}.topbar-icon:hover{background:#ffffff18}
.topbar-icon .nav-badge{position:absolute;right:0;top:0;font-size:11px;min-width:18px;padding:2px 4px;margin:0}
.account-menu{position:relative}.account-menu summary{display:flex;align-items:center;gap:15px;cursor:pointer;list-style:none;border-radius:8px;padding:4px}.account-menu summary::-webkit-details-marker{display:none}
.account-name{text-align:right;font-size:14px;line-height:1.5}.account-name small{display:block;font-size:12px;letter-spacing:.1px}.account-avatar{width:42px;height:42px;background:#eef4fc;border:2px solid white;color:#1a395f;border-radius:50%;display:grid;place-items:center;font-size:16px;font-weight:700}
.account-chevron .compass-icon{width:16px}.account-options{position:absolute;right:0;top:calc(100% + 12px);min-width:210px;background:white;border:1px solid var(--compass-line);border-radius:9px;box-shadow:0 10px 30px #102e5220;overflow:hidden}
.account-options button{display:block;width:100%;border:0;background:white;padding:13px 18px;color:var(--compass-ink);text-align:left;cursor:pointer}.account-options button:hover{background:#edf5ff}
.app .sidebar{grid-area:sidebar;top:72px;height:calc(100vh - 72px);overflow:auto;padding:14px 8px 18px;background:linear-gradient(110deg,#203f60,#17334f);gap:5px;z-index:45}
.sidebar .nav{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 11px;font-size:14px;border-radius:7px;color:#f1f6fd}.sidebar .nav [data-icon]{color:#aac7e9}.sidebar .nav:hover{background:#2c5279}.sidebar .nav.active{background:linear-gradient(90deg,#2968a7,#245585);box-shadow:inset 3px 0 #8dc7ff;color:white}.sidebar .nav.active [data-icon]{color:white}.sidebar .nav-badge{margin-left:auto;min-width:22px;background:#d93e4e;color:#fff;font-size:12px;text-align:center}
.sidebar .app-version-side{line-height:1.6;font-size:12px;color:#c4d6ed;padding:12px 11px 4px}.sidebar .app-version-side b{display:block;font-weight:400}.sidebar-spacer{min-height:18px}
.app .main{grid-area:main;padding:20px;min-width:0}.main:focus{outline:none}
.menu-toggle{display:none}.skip-link{position:absolute;left:220px;top:-90px;background:white;color:#173554;padding:10px;z-index:100}.skip-link:focus{top:10px}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #358bea;outline-offset:3px}
.compass-greeting{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;color:var(--compass-ink)}
.compass-greeting h1{font-size:29px;letter-spacing:-.7px;line-height:1.2;margin:0 0 4px}.compass-greeting p{margin:0;color:var(--compass-muted);font-size:15px;line-height:1.4}.compass-greeting time{white-space:nowrap;color:var(--compass-muted);font-size:14px;padding-top:8px}
.dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:8px}
#view-home .global-search{width:min(650px,100%);max-width:none;margin:0;display:flex;align-items:center;background:#ffffffc9;border:1px solid #c9d9ec;border-radius:8px;padding:0 12px;position:relative}
#view-home .global-search>span{color:#52749e}#view-home .global-search .compass-icon{width:18px}#view-home .global-search input{width:100%;min-width:0;border:0;background:transparent;font-size:13px;padding:10px;outline-offset:0}#view-home .global-search-results{top:100%;left:0;right:0;z-index:35}
.period-picker{display:flex;gap:10px;align-items:center;white-space:nowrap;font-size:13px;color:var(--compass-muted)}
.period-picker select,.compass-panel select{font-size:12px;padding:7px 9px;background:#fcfdff;border:1px solid #c8d7e9;border-radius:5px;color:var(--compass-ink);max-width:100%;min-height:34px}
.dashboard-context{display:flex;gap:10px;justify-content:space-between;color:var(--compass-muted);font-size:12px;line-height:1.5;margin-bottom:14px}
#view-home .link-button,.compass-dialog .link-button{font-size:12px;color:#1457a6;text-decoration:none;line-height:1.4}#view-home .link-button:hover,.compass-dialog .link-button:hover{text-decoration:underline}
.compass-status-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:14px}
.compass-status-card{display:flex;align-items:flex-start;gap:14px;text-align:left;min-width:0;border:1px solid var(--compass-line);background:#fbfcff;border-radius:8px;padding:20px 16px;min-height:114px;box-shadow:0 2px 4px #14385704;color:var(--compass-ink);cursor:pointer}
.compass-status-card:hover,.compass-financial-card:hover{border-color:#95b3d5;box-shadow:0 4px 12px #14385712}.compass-status-card b{display:block;font-size:27px;line-height:1.12;letter-spacing:-.5px}.compass-status-card .card-label{display:block;font-size:14px;font-weight:600;margin-top:5px;line-height:1.4}.compass-status-card small{display:block;font-size:12px;font-weight:400;line-height:1.4;color:var(--compass-muted);margin-top:4px}
.status-icon .compass-icon{height:38px;width:38px;stroke-width:1.65}.status-icon{color:#2168b6;margin-top:1px}
.compass-status-card.tone-blue{background:linear-gradient(120deg,#f5faff,#eaf4ff);border-color:#cadef7}.compass-status-card.tone-amber{background:linear-gradient(120deg,#fffaf1,#fcf3e4);border-color:#e9dec8}.tone-amber .status-icon{color:#d49400}.compass-status-card.tone-green{background:linear-gradient(120deg,#f1fcf7,#e8f6ef);border-color:#cfe6db}.tone-green .status-icon{color:#009257}.compass-status-card.tone-red{background:linear-gradient(120deg,#fff5f6,#fceef0);border-color:#edd8dd}.tone-red .status-icon{color:#d64051}
.compass-financial-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(135px,.82fr);gap:12px;margin-bottom:14px}
.compass-financial-card{border:1px solid var(--compass-line);border-radius:8px;background:linear-gradient(115deg,#fff,#f9fbfe);padding:19px 16px;text-align:left;color:var(--compass-ink);min-width:0;min-height:151px;cursor:pointer}.financial-main{display:flex;align-items:flex-start;gap:12px}.financial-icon{color:#2778c5}.financial-icon .compass-icon{width:31px;height:35px}.financial-icon.green{color:#159953}.financial-copy{min-width:0}.financial-copy b{display:block;font-size:21px;letter-spacing:-.5px;line-height:1.2;overflow-wrap:anywhere}.financial-copy .card-label{display:block;font-size:13px;font-weight:600;line-height:1.4;margin-top:5px}.financial-copy small{display:block;font-size:11px;color:var(--compass-muted);margin-top:4px;line-height:1.4}
.financial-trend{display:block;margin-top:14px;padding-left:43px;font-size:12px;line-height:1.4;color:var(--compass-muted)}.financial-trend b{font-size:13px;font-weight:600;display:block}.trend-up{color:#008542}.trend-down{color:#be3547}.financial-trend small{font-size:11px;display:block;margin-top:2px}
.compass-motto{display:flex;flex-direction:column;justify-content:center;border:1px solid var(--compass-line);border-radius:8px;background:linear-gradient(125deg,#fff,#f9fbff);margin:0;padding:22px 16px;font-size:14px;line-height:1.7;color:var(--compass-ink);text-align:center}.compass-motto p{margin:0;font-style:italic}.compass-motto footer{font-size:12px;color:var(--compass-muted);margin-top:12px;text-align:right}
.compass-charts{display:grid;grid-template-columns:1.04fr 1fr 1.16fr;gap:12px;margin-bottom:14px}.compass-panel{min-width:0;background:linear-gradient(125deg,#fff,#fafcff);border:1px solid var(--compass-line);border-radius:8px;padding:16px;box-shadow:0 1px 4px #14385703;color:var(--compass-ink)}
.compass-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px;min-height:25px}.compass-panel h2,.compass-dialog h2{font-size:17px;line-height:1.3;margin:0;font-weight:700;letter-spacing:-.3px}.compass-panel h2 span{white-space:nowrap}.compass-panel-head>.link-button{white-space:nowrap}.chart-caption{font-size:11px;color:var(--compass-muted);margin:0 0 12px;line-height:1.4}.chart-footnote{display:block;font-size:10px;line-height:1.5;color:var(--compass-muted);margin-top:8px}
.compass-funnel-row{display:grid;grid-template-columns:47% minmax(0,1fr);align-items:center;gap:12px;width:100%;border:0;background:none;text-align:left;color:var(--compass-ink);cursor:pointer;padding:2px 0;min-height:45px;border-radius:5px}.compass-funnel-row:hover{background:#edf5ff}.compass-funnel-shape{height:40px;display:flex;align-items:center;justify-content:center}.compass-funnel-shape i{display:block;height:100%;clip-path:polygon(0 0,100% 0,90% 100%,10% 100%);border-radius:3px;min-width:0;background:linear-gradient(105deg,#3887cf,#226eb9)}.compass-funnel-row:nth-child(2) i{background:linear-gradient(100deg,#90c7fd,#64b0f5)}.compass-funnel-row:nth-child(3) i{background:linear-gradient(100deg,#6cc17b,#42a965)}.compass-funnel-row:nth-child(4) i{background:linear-gradient(100deg,#a2dca4,#86d08e)}.compass-funnel-copy b{font-size:14px;display:block;font-weight:700;line-height:1.3;overflow-wrap:anywhere}.compass-funnel-copy span{font-size:11px;display:block;color:var(--compass-muted);margin-top:2px}
.status-chart{display:grid;grid-template-columns:1.04fr 1fr;align-items:center;gap:10px;min-height:194px}.status-donut{position:relative;min-width:0}.status-donut svg{display:block;width:100%;max-height:205px;transform:rotate(-90deg)}.donut-copy{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;pointer-events:none}.donut-copy b{font-size:29px;line-height:1.1}.donut-copy span{font-size:12px;line-height:1.4;margin-top:6px}.donut-copy small{font-size:10px;color:var(--compass-muted)}.status-legend{display:grid;gap:5px}.status-legend button{display:flex;align-items:center;gap:7px;padding:4px 0;width:100%;border:0;background:none;color:var(--compass-ink);font-size:11px;text-align:left;cursor:pointer;border-radius:4px}.status-legend button:hover{background:#eaf2fc}.status-legend .stage-dot{height:10px;width:10px;border-radius:50%;flex-shrink:0}.status-legend b{margin-left:auto;font-weight:400;white-space:nowrap}
.monthly-legend{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;font-size:10px;margin:6px 0 10px}.monthly-legend span{display:inline-flex;align-items:center;gap:6px}.bar-key{display:inline-block;background:#98caff;border:1px solid #82b9ee;width:14px;height:10px;border-radius:2px}.line-key{display:inline-block;width:17px;height:2px;background:#1564ac;position:relative}.line-key:after{content:"";position:absolute;top:-2px;left:6px;background:#1564ac;width:6px;height:6px;border-radius:50%}
#dashboardMonthlyChart svg{display:block;width:100%;height:auto;overflow:visible}.chart-data-link{display:block;margin-top:8px;margin-left:auto}.chart-empty{display:flex;align-items:center;justify-content:center;min-height:174px;text-align:center;color:var(--compass-muted);font-size:13px;line-height:1.6;padding:14px}
.compass-bottom{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1.03fr) minmax(190px,.63fr);gap:12px}.compass-bottom .table-wrap{border:0;border-radius:0}.compass-bottom table{background:transparent;table-layout:fixed}.compass-bottom th{font-size:10px;color:var(--compass-ink);font-weight:600;background:#edf2f8;padding:8px 6px}.compass-bottom td{font-size:11px;color:var(--compass-ink);padding:10px 6px;vertical-align:middle;line-height:1.4;overflow-wrap:anywhere}.compass-bottom tr:last-child td{border-bottom:0}
.recent-panel th:first-child{width:35%}.recent-panel th:nth-child(2){width:23%;text-align:right}.recent-panel th:nth-child(3){width:10%}.recent-panel th:nth-child(4){width:19%}.recent-panel th:nth-child(5){width:13%}.compass-bottom .quote-link{font-size:11px!important;font-weight:600;text-align:left;overflow-wrap:anywhere}.quote-customer{display:block;color:var(--compass-muted);font-size:10px;margin-top:4px;line-height:1.35}.compass-bottom td.value-cell{text-align:right;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.compass-status-pill{display:inline-block;padding:3px 8px;border-radius:5px;line-height:1.3;font-size:10px;color:#124d83;background:#daeafe}.compass-status-pill.stage-won{background:#c9edcd;color:#175c2c}.compass-status-pill.stage-approved{background:#d1f0e1;color:#135d41}.compass-status-pill.stage-issued{background:#e3dff7;color:#574277}.compass-status-pill.stage-lost{background:#fbdce1;color:#8f2033}.compass-status-pill.stage-cancelled{background:#e6eaf0;color:#43546c}.compass-status-pill.stage-submitted{background:#ffebba;color:#795107}
.attention-panel th:first-child{width:32%}.attention-panel th:last-child{width:18%;text-align:right}.attention-panel td:last-child{text-align:right}.attention-label{display:flex;gap:6px;align-items:center}.attention-label .compass-icon{width:17px;height:17px}.attention-label [data-icon]{color:#cc8500}.attention-label.severity-danger [data-icon]{color:#cf3d4d}.days-basis{display:block;font-size:9px;color:var(--compass-muted);margin-top:2px}
.compass-quick-actions{display:grid;gap:8px;margin-top:11px}.compass-quick-actions>button{display:flex;align-items:center;gap:10px;width:100%;border:1px solid #cbd9eb;border-radius:6px;background:linear-gradient(#fcfdff,#ecf2fa);color:var(--compass-ink);font-size:12px;font-weight:500;min-height:38px;padding:8px 12px;cursor:pointer;text-align:left}.compass-quick-actions>button.primary{background:linear-gradient(#2b77c0,#2063ad);border-color:#1b60aa;color:white;justify-content:center;font-weight:600}.compass-quick-actions>button:hover{filter:brightness(.97)}.compass-quick-actions .compass-icon{width:20px;height:20px}.compass-quick-actions .nav-badge{margin-left:auto}
.dashboard-data-note{font-size:11px;line-height:1.5;color:var(--compass-muted);margin:12px 0 0}.dashboard-error{padding:14px;border:1px solid #d69299;background:#fff2f3;color:#8f2033;border-radius:8px;margin:12px 0}.dashboard-error button{margin-left:10px}.dashboard-empty-row td{text-align:center!important;padding:24px!important;color:var(--compass-muted)!important}
.compass-dialog{border:1px solid #c9d9eb;border-radius:12px;padding:22px;width:min(1000px,calc(100vw - 32px));max-height:85vh;color:var(--compass-ink);box-shadow:0 20px 70px #0d294d35}.compass-dialog::backdrop{background:#0b254db3}.compass-dialog p{font-size:14px;line-height:1.65}.compass-dialog .table-wrap{margin-top:16px;max-height:60vh}.compass-dialog table{font-size:13px}.compass-dialog td{vertical-align:middle;padding:11px 9px}.compass-dialog th{font-size:12px}.compass-dialog h2{font-size:20px}.compass-dialog .quote-link{font-size:13px;font-weight:600}.compass-dialog .dashboard-filter{padding:10px;border:1px solid #c9d9eb;border-radius:7px;width:100%;margin-top:8px}.compass-dialog .detail-count{color:var(--compass-muted);font-size:12px}.compass-dialog .compass-status-pill{font-size:12px}.compass-dialog table .money{font-variant-numeric:tabular-nums}
@media(min-width:1750px){.app .main{padding:26px}.compass-status-card{padding:22px}.financial-copy b{font-size:25px}.compass-panel h2{font-size:19px}.compass-bottom td{font-size:13px}.compass-bottom .quote-link{font-size:13px!important}.compass-bottom th,.quote-customer{font-size:12px}.compass-status-pill{font-size:12px}.status-legend button{font-size:13px}.chart-caption,.chart-footnote{font-size:12px}}
@media(max-width:1350px){.compass-status-card{padding:17px 12px;gap:10px}.status-icon .compass-icon{width:30px;height:32px}.compass-status-card .card-label{font-size:13px}.financial-main{gap:8px}.financial-icon .compass-icon{width:25px;height:29px}.financial-copy b{font-size:19px}.compass-financial-card{padding:16px 12px}.financial-trend{padding-left:33px}.compass-panel{padding:13px}.compass-panel h2{font-size:16px}.status-chart{gap:6px}.status-legend button{font-size:10px;gap:4px}.compass-panel select{font-size:11px;padding:6px}.compass-funnel-copy b{font-size:12px}.compass-bottom{grid-template-columns:1.55fr 1fr}.quick-panel{grid-column:1/-1}.compass-quick-actions{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:6px}.compass-quick-actions>button{justify-content:center}}
@media(max-width:1120px){.app{grid-template-columns:188px minmax(0,1fr)}.compass-wordmark{width:188px}.sidebar .nav{font-size:13px;gap:9px}.compass-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.compass-status-card{min-height:104px}.compass-status-card .card-label{font-size:14px}.compass-financial-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.compass-motto{display:none}.financial-icon{display:none}.financial-trend{padding-left:0}.compass-charts{grid-template-columns:1fr 1fr}.monthly-panel{grid-column:1/-1}.monthly-panel #dashboardMonthlyChart{max-width:650px;margin:auto}.status-legend button{font-size:12px}.compass-greeting time{font-size:12px}.compass-greeting h1{font-size:26px}.compass-bottom{grid-template-columns:1fr}.quick-panel{grid-column:auto}.compass-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.compass-bottom table{font-size:13px}.compass-bottom td,.compass-bottom th{font-size:12px}.compass-bottom .quote-link{font-size:12px!important}.quote-customer{font-size:11px}.compass-status-pill{font-size:11px}}
@media(max-width:760px){.app{grid-template-columns:minmax(0,1fr);grid-template-rows:64px 1fr;grid-template-areas:"header" "main"}.compass-topbar{height:64px}.compass-wordmark{width:auto;margin-left:15px;text-align:left}.compass-wordmark span{font-size:20px;letter-spacing:1.2px}.compass-wordmark b{font-size:12px;margin-top:3px}.menu-toggle{display:inline-flex;margin-left:12px}.topbar-tools{gap:5px;padding-right:10px}.account-name,.account-chevron{display:none}.account-avatar{width:35px;height:35px;font-size:13px}.account-menu summary{gap:0}.app .sidebar{display:none;position:fixed;top:64px;left:0;width:240px;bottom:0;height:calc(100dvh - 64px);box-shadow:15px 0 40px #0f315333}.app.navigation-open .sidebar{display:flex}.app .main{padding:16px 12px}.skip-link{left:10px}.compass-greeting{display:block}.compass-greeting h1{font-size:25px}.compass-greeting p{font-size:13px}.compass-greeting time{display:block;padding-top:8px}.dashboard-toolbar{align-items:stretch;flex-direction:column;gap:10px}.period-picker{justify-content:space-between}.period-picker select{min-width:145px}.dashboard-context{flex-wrap:wrap;margin-bottom:12px}.compass-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.compass-status-card{padding:16px 11px;gap:10px;min-height:110px}.compass-status-card b{font-size:26px}.compass-status-card .card-label{font-size:13px}.compass-status-card small{font-size:11px}.compass-financial-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.financial-copy b{font-size:20px}.financial-copy .card-label{font-size:12px}.financial-trend{margin-top:12px}.compass-financial-card{min-height:153px;padding:15px 12px}.compass-charts{grid-template-columns:1fr}.monthly-panel{grid-column:auto}.compass-panel{padding:16px 13px}.compass-panel h2{font-size:17px}.status-chart{grid-template-columns:1fr 1fr;gap:16px}.status-donut svg{max-height:220px}.status-legend button{font-size:12px;padding:6px 0}.compass-funnel-copy b{font-size:15px}.compass-funnel-row{min-height:48px}.compass-quick-actions{grid-template-columns:1fr}.compass-quick-actions>button{justify-content:flex-start;min-height:42px;font-size:14px}.compass-quick-actions>button.primary{justify-content:center}.compass-bottom table{min-width:540px}.attention-panel table{min-width:0}.compass-bottom .table-wrap{border-radius:5px}.compass-bottom th{font-size:11px}.compass-dialog{padding:16px}.compass-dialog table{min-width:650px}.dashboard-data-note{font-size:11px}}
@media(prefers-reduced-motion:no-preference){.compass-status-card,.compass-financial-card{transition:box-shadow .15s,border-color .15s}}
