/* Restores the approved local workbench: dark floating rail, grey-white canvas and independent pages. */
:root{--ink:#20342f;--muted:#687c70;--green:#244c3e;--spring:cubic-bezier(.32,.72,0,1);--layer-nav:10;--layer-modal:30;--layer-toast:40}
body{background:#f2f4f3;font-family:'Geist','Avenir Next','PingFang SC','Microsoft YaHei',sans-serif;-webkit-font-smoothing:antialiased}
.cloud-workspace{min-height:100dvh;color:var(--ink)}
.cloud-sidebar{position:fixed;inset:20px auto 20px 20px;width:216px;padding:24px 14px 16px;background:#1b3029;border-radius:30px;display:flex;flex-direction:column;gap:20px;overflow-y:auto;z-index:var(--layer-nav);box-shadow:0 25px 70px -30px #18382833,inset 0 1px #ffffff1f}
.sidebar-brand{display:flex;align-items:center;gap:11px;padding:7px 12px 16px}.sidebar-brand svg{flex:none;width:36px;height:40px;color:#c8dbbb}.sidebar-brand strong{display:block;font-size:19px;letter-spacing:.09em;color:#f5f8f4;font-weight:600}.sidebar-brand span{display:block;margin-top:6px;color:#93a69b;font-size:10px;letter-spacing:.1em}
#workspaceNav{display:flex;flex-direction:column;gap:4px}.nav-section-label{font-size:10px;letter-spacing:.12em;color:#92aa9d;padding:12px 16px 7px}.nav-section-label:first-child{padding-top:0}.nav-button{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:16px;padding:11px 14px;background:transparent;color:#afc0b5;font-size:13px;font-weight:500;text-align:left;transition:transform 420ms var(--spring),background-color 420ms var(--spring)}.nav-button:hover{background:#ffffff09;color:#fff;transform:translateX(2px)}.nav-button.active{background:#dce7d6;color:#254333;box-shadow:inset 0 1px #ffffffcc}.nav-button:focus-visible{outline:2px solid #c8dbbb;outline-offset:2px}.nav-icon{display:grid;place-items:center;flex:none;width:19px;height:19px}.nav-icon svg{width:20px;height:20px}.nav-active-dot{margin-left:auto;flex:none;width:4px;height:4px;border-radius:50%;background:currentColor;opacity:0}.active>.nav-active-dot{opacity:.7}.sidebar-footer{margin-top:auto;padding:18px 12px 0;box-shadow:inset 0 1px #ffffff12}.cloud-label{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#abc0b2}.sidebar-footer p{font-size:10px;color:#789184;margin-top:10px}.mobile-menu-toggle{display:none}
.cloud-main{margin-left:256px;max-width:1740px;padding:48px 32px 64px;min-width:0}.cloud-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}.page-eyebrow{display:flex;gap:10px;align-items:center;font-size:10px;letter-spacing:.12em;color:#82938b;margin-bottom:15px}.page-eyebrow>span:first-child{padding:5px 10px;border-radius:50px;background:#3e5d490e}.cloud-topbar h1{font-size:36px;font-weight:550;letter-spacing:-.045em;line-height:1.25}.cloud-topbar p{font-size:12px;line-height:1.8;color:#77877e;margin-top:10px}.cloud-account{display:flex;align-items:center;gap:12px;min-width:0}.cloud-account>span{max-width:220px;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:var(--muted)}
.book-strip{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 22px;border-radius:22px;background:#ffffffa8;box-shadow:inset 0 1px #fff}.book-strip>div:first-child{min-width:0}.book-strip strong{font-size:13px;font-weight:550;overflow-wrap:anywhere}.book-strip p{font-size:11px;color:var(--muted);line-height:1.7;margin-top:5px}.book-actions{grid-template-columns:minmax(170px,260px) auto;flex:none}.sync-line{margin:6px 2px 20px;color:#728578;font-size:11px;min-height:30px}.workspace-view{min-width:0;animation:workspace-enter 450ms var(--spring) both}@keyframes workspace-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.surface-shell{padding:6px;min-width:0;background:#334e4009;border-radius:28px;box-shadow:inset 0 1px #ffffffcc,0 28px 80px -50px #1737281f}.workspace-panel{min-width:0;background:#fff;border-radius:22px;padding:25px;box-shadow:inset 0 1px #ffffffcc}.workspace-panel h2{font-size:17px;font-weight:600;letter-spacing:-.025em}.workspace-panel>.eyebrow{margin-bottom:12px}.panel-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:24px;flex-wrap:wrap}.panel-head .eyebrow{margin-bottom:8px}.panel-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.view-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}.view-reopen{margin:16px 0}.view-reopen:has(+[data-records-host]){display:block}#view-quick:has(#entryDialog[open]) .view-reopen{display:none}[data-records-host]:not(:empty){margin-top:24px}#view-history>[data-records-host],#view-companies>[data-records-host]:first-child,#view-masters>[data-records-host]:first-child{margin-top:0}
.cloud-main .button{min-height:44px;height:auto;font-size:12px;padding:11px 20px;justify-content:center}.cloud-main .button.primary{padding:11px 20px;background:#244c3e}.cloud-main .field-shell{height:44px}.cloud-main input:not([type=checkbox]):not([type=radio]),.cloud-main select{height:38px}.cloud-main .textarea-shell{height:auto}.cloud-main .field-shell:has(textarea){height:auto}.cloud-main label{font-size:12px;line-height:20px}.workspace-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;align-items:start}.record-filters,.record-filters:has(#historyStatusField:not([hidden])){display:flex;gap:20px;max-width:none;align-items:flex-start;flex-wrap:wrap}.record-filters>label{flex:1;min-width:180px}.record-filters>label:last-child{flex:2}.records-panel .panel-heading{margin-bottom:22px}.records-panel table{min-width:800px}.records-panel td{max-width:280px}.records-panel .business-row-actions{max-width:none}.records-panel .button{min-height:34px;padding:7px 13px}.records-panel .panel-actions>.button{min-height:44px}.records-panel .table-wrap{margin-top:22px;max-height:680px}.records-panel th{position:sticky;top:0;z-index:1}.records-panel input[type=checkbox]{width:16px;height:16px;padding:0;accent-color:#315b43;box-shadow:none}.ledger-summary{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:#617563;margin:22px 0}.ledger-summary strong{font-weight:550;color:#254333;font-variant-numeric:tabular-nums}.overtime-selection-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0 12px}.overtime-selection-toolbar>span{font-size:12px;color:var(--muted)}.helper-text{font-size:11px;line-height:1.8;color:var(--muted);margin-top:14px}.audit-box{display:grid;gap:10px;margin-top:20px}.audit-item{padding:14px 16px;border-radius:16px;background:#f1f5ef;font-size:12px;line-height:1.8}.audit-item.warn{background:#fbf6e8;color:#806639}.audit-item strong{font-weight:550}.audit-item .button{margin-top:8px}.status-pill{display:inline-block;border-radius:50px;padding:5px 9px;background:#edf3e9;color:#5d7650;font-size:10px}.status-pill.pending{background:#faf3df;color:#8b7036}.status-pill.void{background:#f0f1ef;color:#85917d}.overtime-note-row td,.entry-note-row td{white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.8;color:#718166;background:#f8faf6}.entry-note-row td{background:#fafbfa}
.segmented{display:flex;flex-wrap:wrap;gap:4px;padding:5px;border-radius:24px;background:#2d4c380b;width:max-content;max-width:100%}.segmented button{border:0;border-radius:50px;background:transparent;color:#687c70;padding:10px 17px;font-size:12px;min-height:40px;transition:transform 400ms var(--spring),background-color 400ms var(--spring)}.segmented button[aria-pressed=true],.segmented button.active{background:#fff;color:#365a39;box-shadow:0 4px 16px -10px #26462924}.segmented button:active{transform:scale(.98)}.history-status-tabs{margin-top:22px}.project-tabs{margin-bottom:24px}.tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:24px}.tools-grid .workspace-panel{height:100%}.tools-grid .workspace-panel>.button{margin-top:24px}.tools-grid .muted{margin-top:12px}.book-inventory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:24px}.inventory-item{display:grid;gap:10px;color:var(--muted);font-size:12px}.inventory-item strong{font-size:24px;color:var(--ink);font-weight:500}
#masterDialog.master-embedded{position:static;width:100%;max-width:none;max-height:none;margin:0 0 24px;box-shadow:none;background:#334e4009}#masterDialog.master-embedded .master-panel{padding:25px}#entryDialog.editor-embedded textarea{min-height:350px}.cloud-main dialog.editor-embedded,.cloud-main dialog.documents-embedded{max-width:100%;min-width:0}#settlementEmptyHint{margin-top:20px}#view-settlement:has(.settlement-dialog[open]) #settlementEmptyHint{display:none}.cloud-main .workspace-footer{margin-top:32px;line-height:1.8}.cloud-main .error{margin-top:12px}
@media(min-width:1800px){.cloud-main{padding-inline:48px}}
@media(max-width:1200px){.cloud-main{padding:36px 24px 56px;margin-left:232px}.cloud-sidebar{width:192px;inset:16px auto 16px 16px;padding-inline:10px}.sidebar-brand{padding-inline:8px}.sidebar-brand strong{font-size:17px}.cloud-topbar h1{font-size:32px}.book-strip{align-items:flex-start;flex-direction:column}.book-actions{width:100%;grid-template-columns:minmax(0,1fr) auto}.workspace-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.cloud-account{flex-direction:column;align-items:flex-end}.cloud-account>span{max-width:150px}.book-inventory{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.cloud-sidebar{position:sticky;top:12px;inset:auto;max-height:calc(100dvh - 24px);width:auto;margin:12px;padding:12px 16px;border-radius:24px;display:block;overflow-y:auto}.sidebar-brand{padding:0;min-height:44px}.sidebar-brand svg{height:32px;width:30px}.sidebar-brand strong{font-size:17px}.sidebar-brand span{font-size:9px}.mobile-menu-toggle{display:block;position:absolute;right:16px;top:16px;width:40px;height:40px;border:0;border-radius:50%;background:#ffffff0c;color:#e7efe5}.mobile-menu-toggle span{position:absolute;left:11px;width:18px;height:1px;background:currentColor;transition:transform 400ms var(--spring)}.mobile-menu-toggle span:first-child{transform:translateY(-3px)}.mobile-menu-toggle span:last-child{transform:translateY(3px)}.cloud-workspace[data-nav-open=true] .mobile-menu-toggle span:first-child{transform:rotate(45deg)}.cloud-workspace[data-nav-open=true] .mobile-menu-toggle span:last-child{transform:rotate(-45deg)}#workspaceNav,.sidebar-footer{display:none}.cloud-workspace[data-nav-open=true] #workspaceNav{display:flex;margin-top:20px;animation:workspace-enter 350ms var(--spring)}.cloud-main{margin:0;padding:24px 16px 40px}.cloud-topbar{align-items:flex-start;margin-bottom:22px;gap:12px}.cloud-topbar h1{font-size:28px}.cloud-account>span{max-width:110px;font-size:10px}.cloud-account .button{padding:7px 12px;min-height:36px}.page-eyebrow{font-size:9px;gap:6px}.book-strip{padding:16px}.book-actions{gap:8px}.book-actions .button{padding:9px 13px}.workspace-panel{padding:20px 16px}.surface-shell{padding:5px;border-radius:25px}.workspace-filters{grid-template-columns:1fr 1fr;gap:16px}.workspace-filters>label:last-child{grid-column:1/-1}.record-filters{gap:16px}.record-filters>label{min-width:100%;flex-basis:100%}.panel-actions{gap:8px}.panel-heading{display:block}.panel-heading>.panel-actions{margin-top:16px}.view-toolbar{gap:12px}.segmented{width:100%;border-radius:20px}.segmented button{flex:1 1 auto;padding:9px 12px}.tools-grid{grid-template-columns:1fr;gap:20px}.cloud-main .sync-line{font-size:10px;align-items:flex-start;margin-top:12px}.cloud-main dialog .master-panel{padding:20px 16px}.records-panel .table-wrap{max-height:560px}.overtime-selection-toolbar{gap:8px}.overtime-selection-toolbar>span{width:100%}}
@media(prefers-reduced-motion:reduce){.workspace-view,#workspaceNav,.nav-button,.segmented button,.mobile-menu-toggle span{animation:none!important;transition:none!important}}

/* Business workspace settings retain the approved rail and card system. */
.book-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.book-actions>#bookPickerShell{min-width:170px;max-width:260px}.book-strip.single-book{padding-block:14px}.book-strip.single-book #bookPickerShell,.book-strip.single-book label[for=bookSelect]{display:none}.book-strip.single-book .book-actions{width:auto}.book-strip:has(#bookPickerShell[hidden]) .book-actions{width:auto}.book-strip p:empty{display:none}
#bookReadinessHost:empty,#bookActionsHost:empty,#workspaceAdminHost:empty{display:none}#bookReadinessHost:not(:empty),#bookActionsHost:not(:empty){margin-top:12px}#workspaceEmptyHost:not([hidden]){margin:24px 0}.settings-section{min-width:0;margin-top:30px}.settings-section-heading{margin-bottom:22px}.settings-section-heading h2{font-size:22px;font-weight:550;letter-spacing:-.025em;margin:0}.settings-section-heading p{font-size:13px;line-height:1.8;color:var(--muted);margin:8px 0 0}.tools-grid .workspace-panel h3,.settings-section .workspace-panel h3{font-size:16px;font-weight:600;margin:0}.settings-section #archivedRecordsHost:not(:empty),.settings-section #auditHistoryHost:not(:empty){margin-top:28px;padding-top:26px;box-shadow:inset 0 1px rgba(39,67,55,.06)}
@media(max-width:767px){.book-actions{width:100%;justify-content:flex-start}.book-actions>#bookPickerShell{flex:1;min-width:140px;max-width:none}.book-strip.single-book{flex-direction:row;align-items:center}.book-strip.single-book .book-actions{flex-shrink:0}.settings-section-heading h2{font-size:20px}.settings-section{margin-top:24px}.settings-section #archivedRecordsHost:not(:empty),.settings-section #auditHistoryHost:not(:empty){margin-top:22px;padding-top:22px}}
