/* Safari Lab workspace v23.23: scoped application shell; print and auth remain separate. */
.crm-workspace{background:#f3f6f8;color:#233a43;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding:0;margin:0}
.crm-workspace h1,.crm-workspace h2,.crm-workspace h3,.crm-workspace .stat .num{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.035em}
.workspace-top{height:74px;position:fixed;left:238px;right:0;top:0;background:#ffffffed;border-bottom:1px solid #e3eaee;display:flex;align-items:center;justify-content:space-between;padding:0 32px;z-index:80;backdrop-filter:blur(12px)}.workspace-location{font-size:14px;font-weight:600;color:#49616b;max-width:70%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.workspace-user{font-size:12px;color:#637b86;background:#f0f5f5;padding:8px 13px;border-radius:22px}.workspace-menu{display:none}.workspace-scrim{display:none}
.crm-workspace .topbar{position:fixed;left:0;top:0;bottom:0;width:238px;padding:27px 17px;background:#173e36;display:block;overflow-y:auto;z-index:100;border:0;border-radius:0;color:#fff}
.crm-workspace .topbar .brand{display:flex;align-items:center;gap:12px;margin:0 4px 32px;font:600 18px Inter,system-ui;color:white;letter-spacing:-.02em}.brand-mark{display:grid;place-items:center;flex:0 0 40px;height:40px;background:#dfb773;color:#173e36;border-radius:12px;font-size:14px;letter-spacing:.04em}.brand small{display:block;font:11px Inter,system-ui;letter-spacing:.03em;color:#b0c8c0;margin-top:5px}
.crm-workspace .topbar nav{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%;flex-wrap:nowrap}.crm-workspace .topbar nav>a,.crm-workspace .nav-dropdown-trigger{display:block;margin:0;padding:11px 14px;color:#bed1ca;text-decoration:none;font-size:13px;border-radius:9px;transition:background .15s;text-align:left;font-weight:500;white-space:normal}.crm-workspace .topbar nav>a.active,.crm-workspace .topbar nav>a:hover,.crm-workspace .nav-dropdown-trigger:hover,.crm-workspace .nav-dropdown-trigger.active{color:#fff;background:#ffffff14}.crm-workspace .topbar nav>a.active{background:#ffffff1f;box-shadow:inset 3px 0 #e5ba79}.crm-workspace .nav-dropdown{width:100%}.crm-workspace .nav-dropdown-trigger{width:100%;border:0;background:transparent}.crm-workspace .nav-dropdown-panel{position:static;background:#113229;border:0;box-shadow:none;min-width:0;width:100%;margin:3px 0 8px;border-radius:9px}.crm-workspace .topbar .nav-dropdown-panel a{color:#bed1ca;font-size:12px}.crm-workspace .nav-dropdown-group{color:#dcb679;font-size:10px;letter-spacing:.1em}.workspace-account{color:#b1c8c0;font-size:11px;padding:20px 14px 7px;border-top:1px solid #ffffff18;margin-top:14px;line-height:1.6}
.crm-workspace>.container{margin:74px 0 0 238px;max-width:none;width:calc(100% - 238px);padding:30px 32px 60px}.crm-workspace .card{border:1px solid #e2e9ed;border-radius:15px;background:#fff;box-shadow:0 4px 18px #243b4805}.crm-workspace .btn{border-radius:9px;font:600 12px Inter,system-ui;padding:11px 16px}.crm-workspace .btn.secondary,.crm-workspace .btn-secondary{background:#edf3f4;color:#36535f;border:1px solid #dfE9ed}.crm-workspace input,.crm-workspace select,.crm-workspace textarea{border-radius:8px;border-color:#d8e2e7;font-family:inherit}.crm-workspace :focus-visible{outline:3px solid #d9a441;outline-offset:3px}.crm-workspace .page-head h1{font-size:29px}.crm-workspace .badge{border-radius:20px;font-size:11px;padding:5px 10px}
.dashboard-workspace{display:flex;flex-direction:column;gap:25px}.dashboard-hero{background:linear-gradient(115deg,#17463c,#286052);border-radius:20px;padding:32px 36px;color:white;display:flex;justify-content:space-between;align-items:center;gap:24px;position:relative;overflow:hidden}.dashboard-hero h1{font-size:37px;color:white;margin:10px 0 9px;line-height:1.12}.dashboard-hero p{font-size:13px;color:#d0e0d8;max-width:520px;margin:0 0 20px;line-height:1.6}.eyebrow{font-size:10px;letter-spacing:.16em;color:#e4bf83;font-weight:650}.dashboard-date{color:#b7d1c5;font-size:11px}.hero-actions{display:flex;gap:9px;flex-shrink:0}.dashboard-hero .btn{background:#e2bc80;color:#193e34;border:0}.dashboard-hero .btn.secondary{background:#ffffff15;color:white;border:1px solid #ffffff36}
.desk-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.desk-shortcuts>a{display:flex;gap:12px;align-items:center;padding:18px 16px;background:#fff;border:1px solid #e2e9ed;border-radius:13px;text-decoration:none;color:#2b454f}.shortcut-icon{font-size:10px;color:#397462;background:#edf5f1;padding:10px;border-radius:9px}.desk-shortcuts strong{font-size:12px;display:block;line-height:1.4}.desk-shortcuts small{font-size:10px;color:#7b8d96;line-height:1.5;display:block;margin-top:4px}.desk-shortcuts>a>span:last-child{margin-left:auto;color:#829c92}
.dashboard-workspace .metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;margin:0}.dashboard-workspace .stat{padding:21px;background:#fff;border:1px solid #e1e9ed;border-radius:14px;min-width:0;flex:none;box-shadow:none}.dashboard-workspace .stat .num{font-size:26px;font-weight:650;color:#24473e;overflow-wrap:anywhere}.dashboard-workspace .stat .label{font-size:11px;color:#6c808c;margin-top:8px}.dashboard-workspace .stat .caption{font-size:10px;line-height:1.5;color:#8a9ba3;margin-top:8px}.dashboard-workspace .stat-brand{border-top:3px solid #6ba187}.dashboard-workspace .stat-accent{border-top:3px solid #d6ad6b}
.dashboard-workspace .dashboard-zone{margin:0}.dashboard-workspace .zone-title{font-size:20px;font-weight:650;color:#263f49;margin:0 0 7px}.dashboard-workspace .zone-sub{font-size:12px;color:#7b8c96;margin:0 0 20px}.dashboard-workspace .attention-zone{padding:24px;border:1px solid #e3e9ec;border-radius:16px;background:#eaf0f2}.dashboard-workspace .attention-zone.is-clear{background:#edf4f0;border-color:#dce8e1}.dashboard-workspace .attention-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:20px}.dashboard-workspace .attention-grid>*,.dashboard-workspace .attention-grid-col{min-width:0}.dashboard-workspace .card h3{font-size:15px;font-weight:650;letter-spacing:-.02em;color:#314a55}.table-scroll{width:100%;overflow-x:auto;border-radius:10px}.dashboard-workspace table{font-size:12px;width:100%;border-collapse:collapse}.dashboard-workspace th{background:#f6f8fa;color:#7a8c96;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:13px 12px;white-space:nowrap}.dashboard-workspace td{padding:15px 12px;border-bottom:1px solid #eef2f4;vertical-align:top;line-height:1.5}.dashboard-workspace .dashboard-table td:first-child{font-family:inherit;font-size:12px}.dashboard-workspace tr:hover td{background:#f6faf8}.guest-link{font-weight:650;color:#275c49;text-decoration:none}.dashboard-workspace .empty-state{padding:26px 16px!important;font-size:12px;background:#f8fafb;border-radius:10px;margin-top:16px}.dashboard-workspace .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.dashboard-workspace .bar-track{height:7px;background:#edf2f4;border-radius:20px}.dashboard-workspace .bar-fill{border-radius:20px}.dashboard-workspace .bar-row{margin:15px 0}.dashboard-workspace .fy-card{background:#214b40;color:#fff}.dashboard-workspace .fy-card h3{color:#d5e4db}.dashboard-workspace .fy-amount{font:650 29px Inter,system-ui;color:#e5bc7f}.dashboard-workspace .fy-sub,.dashboard-workspace .fy-empty{color:#bacfc4;font-size:11px}.dashboard-workspace .fy-amounts-stack{gap:8px}
@media(min-width:1500px){.crm-workspace>.container{padding-left:42px;padding-right:42px}}
@media(max-width:1250px){.desk-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-workspace .attention-grid{grid-template-columns:1fr}.dashboard-workspace .attention-grid-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-workspace .attention-grid-col>.card:last-child{grid-column:1/-1}.dashboard-workspace .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:900px){.crm-workspace .topbar{transform:translateX(-100%);transition:transform .2s;width:238px}.crm-workspace.nav-visible .topbar{transform:translateX(0)}.workspace-top{left:0;padding:0 20px;height:62px;gap:15px}.workspace-menu{display:block;background:transparent;border:0;font-size:22px;color:#285445;cursor:pointer}.workspace-user{margin-left:auto;font-size:11px}.workspace-location{max-width:55%}.nav-visible .workspace-scrim{display:block;position:fixed;inset:0;background:#12292366;z-index:95}.crm-workspace>.container{margin:62px 0 0;width:100%;padding:24px 20px 50px}.dashboard-hero{padding:27px}.dashboard-workspace .stat-row{flex-direction:unset}}
@media(max-width:550px){.crm-workspace>.container{padding:18px 14px 45px}.workspace-top{padding:0 14px}.workspace-user{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-workspace{gap:18px}.dashboard-hero{padding:25px 22px;border-radius:15px}.dashboard-hero h1{font-size:31px}.hero-actions{flex-wrap:wrap}.desk-shortcuts{gap:9px}.desk-shortcuts>a{padding:14px 10px;gap:8px}.shortcut-icon{display:none}.desk-shortcuts strong{font-size:11px}.desk-shortcuts small{font-size:10px}.dashboard-workspace .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-workspace .stat{padding:17px 14px}.dashboard-workspace .stat .num{font-size:23px}.dashboard-workspace .stat:last-child{grid-column:1/-1}.dashboard-workspace .attention-zone{padding:17px 12px}.dashboard-workspace .attention-grid-col,.dashboard-workspace .form-grid{display:grid;grid-template-columns:1fr}.dashboard-workspace .attention-grid-col>.card:last-child{grid-column:auto}.dashboard-workspace .card{padding:18px}.dashboard-workspace .zone-title{font-size:18px}}
@media print{.workspace-top,.workspace-scrim,.crm-workspace .topbar{display:none!important}.crm-workspace>.container{margin:0;width:100%;padding:0}.crm-workspace{background:white}}
