/* Alpha 11.3 · final workspace polish. Page controls, dense controls and timeline geometry are deliberately separate. */
:root{--workspace-top:52px;--workspace-page-x:28px;--workspace-page-y:26px;--page-control-height:36px;--line:#dfe3e7;--soft:#f6f7f8;--side:#f3f4f5;--accent:#34485b}
/* Navigation and page hierarchy */
.topbar{height:var(--workspace-top);padding:0 20px;background:#fff;gap:12px}
.topbar .crumb{font-size:13px;gap:10px}.topbar .crumb>.btn{width:34px;height:34px}.top-actions>.btn{width:34px;height:34px}.global-search{height:34px;min-height:34px}
.sidebar .brand{height:var(--workspace-top);padding-inline:9px}.sidebar-head{padding-bottom:12px}.sidebar .store-minimal{margin-top:8px;padding:8px 9px;min-height:49px}.sidebar .store-minimal .store-name{line-height:1.5}.sidebar-nav{padding-top:6px}.sidebar-nav .nav-heading{margin:13px 0 7px;color:#67717b}.sidebar-nav .nav{gap:2px;margin-bottom:15px}.sidebar .nav-item{height:36px;min-height:36px}.sidebar-bottom{padding-top:9px}.sidebar .profile{min-height:46px}
.work{padding:var(--workspace-page-y) var(--workspace-page-x) 40px}.content{max-width:1600px;min-width:0}.page-head{align-items:center;gap:20px;margin-bottom:24px}.page-head h1{font-size:25px;line-height:1.3;font-weight:650;letter-spacing:-.35px}.page-head .sub{font-size:13px;line-height:1.6;margin-top:6px}.page-title-line{gap:10px}.head-actions{gap:8px}.head-actions>.btn{min-width:108px;height:var(--page-control-height);font-size:13px}.head-actions>.btn.icon{min-width:36px;width:36px}
/* All page-level filters share a height; dense row actions remain dense. */
.toolbar{gap:12px;margin-bottom:16px;align-items:center}.toolbar>.flex,.toolbar .sale-filters{gap:10px;align-items:center}.toolbar .search-field,.toolbar .input:not(.native-backing),.toolbar .control-trigger,.toolbar select:not(.native-backing),.toolbar .btn:not(.icon),.customer-search .input,.customer-search .btn,.customer-filters .btn,.analysis-dates .btn,.analysis-dates .control-trigger{height:var(--page-control-height);min-height:var(--page-control-height);font-size:13px;line-height:1.4}.toolbar .search-field{padding-inline:11px}.toolbar .search-field input{height:100%;min-width:0;width:100%;line-height:1.4}.toolbar .control-trigger{padding-block:0}.toolbar .btn.icon{height:var(--page-control-height);width:var(--page-control-height)}.toolbar .sale-tabs .tab{height:var(--page-control-height)}.toolbar .sale-mine{min-width:108px}.customer-search .input{padding-inline:11px}.customer-filters{gap:8px}.filter-caption{line-height:1.55;margin-bottom:12px}
/* Tables and long-text states */
.table-wrap{border:1px solid var(--line);border-radius:6px;background:#fff;scrollbar-width:thin}.table{font-size:13px}.table th{height:38px;padding:0 14px;background:#f5f6f7;font-weight:550}.table td{height:52px;padding:10px 14px;vertical-align:middle}.table td:first-child,.table th:first-child{padding-left:14px}.table tbody tr:last-child td{border-bottom:0}.table .main-text{line-height:1.45}.table .sub-text{margin-top:3px;line-height:1.45}.table td .flex.wrap{gap:6px}.table .btn.sm{height:30px;min-height:30px;padding-inline:10px}.table .text-btn{min-height:30px;display:inline-flex;align-items:center;gap:4px}.pager{padding:14px 0;gap:12px;flex-wrap:wrap;color:var(--muted)}.empty{min-height:144px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:26px 16px;color:#69737d;background:#fafbfc;border:1px solid var(--line);border-radius:6px;line-height:1.6;font-size:13px;gap:8px}.empty svg{margin:0;color:#8b98a2}.notice{margin-bottom:16px}.tabs{gap:20px;scrollbar-width:thin;overscroll-behavior-inline:contain}.tab{height:40px;font-size:13px;line-height:1.4}.section-head{margin-bottom:14px}.section-head h2{font-size:16px}.metrics{margin-bottom:26px;border-radius:6px}.metric-title{line-height:1.45}.metric-note{line-height:1.45}.metric-n{font-size:30px}.dashboard-grid{gap:24px}.side-panel{padding-left:20px}.slot-line{height:35px}.timeline-scroll,.month-grid,.schedule-grid{border-radius:6px;scrollbar-width:thin}
/* Dialogs, configuration and forms */
.drawer-head{padding:19px 24px;background:#fff}.drawer-head h2,.dialog h2{font-size:20px}.drawer-head .sub{margin-top:5px}.drawer-body{padding:22px 24px}.drawer-body .drawer-section>h3,.drawer-section>.spread>h3,.ops-section h2,.settings-panel h2{font-size:15px;line-height:1.4}.drawer-section{min-width:0}.drawer-section>.spread{gap:12px;flex-wrap:wrap}.drawer-foot{padding:14px 24px;background:#f7f8f9;gap:10px}.drawer-foot .btn:not(.sm),.dialog form>.flex>.btn:not(.sm){height:36px}.dialog{padding:24px;gap:18px;border-radius:9px}.dialog>.spread{align-items:center}.field{gap:7px}.field .input,.field .control-trigger{min-height:36px}.field small{overflow-wrap:anywhere}.ops-body{gap:18px;min-width:0}.ops-section{padding:20px;border-radius:6px}.ops-section>.spread{gap:12px;flex-wrap:wrap}.ops-section>h2,.ops-section>.spread h2{margin-bottom:3px}.ops-week-row{gap:10px;align-items:end}.ops-week-row>strong,.ops-week-row>.radio-choice{align-self:center}.settings-panel{padding:20px;border-radius:6px}.settings-panel .spread>div:first-child{min-width:0}.settings-panel .sub{line-height:1.65}.tax-browser,.tax-detail{border-radius:6px}.tax-tools .input,.tax-tools .btn{height:36px}.analysis-panel{border-radius:6px}.analysis-panel-head{gap:12px;flex-wrap:wrap}.analysis-dates{gap:10px}.analysis-presets .btn{height:36px;min-height:36px}.analysis-hint{line-height:1.65}
/* Orders: independent content and settlement areas, without changing actions or totals. */
.order04-wrap.expanded{top:var(--workspace-top)}.order04-header{background:#fff;padding:19px 24px 0}.order04-header>.spread{align-items:flex-start}.order04-header h2{font-size:21px;line-height:1.35;margin:3px 0}.order04-header .order04-identity{gap:8px;align-items:center}.order04-header .sub{margin-top:4px;line-height:1.55}.order04-header .care-tools{gap:5px}.order04-header .care-tools .btn{height:27px;min-height:27px;padding-inline:8px}.order04-header>.spread>.flex{gap:6px;align-items:center}.order04-header>.spread>.flex>.btn{height:32px;min-height:32px}.order04-tabs{gap:24px;margin-top:13px}.order04-tabs .tab{height:42px}.order04-main{padding:22px 24px}.order04-main .drawer-section{padding-bottom:18px;margin-bottom:18px}.order04-main .drawer-section>.spread{margin-bottom:14px}.order04-main .drawer-section h3{font-size:15px}.order04-main .table td,.order04-main .table th{padding-inline:12px}.order04-main .table td:first-child,.order04-main .table th:first-child{padding-left:12px}.order04-side{padding:22px 22px;background:#f6f7f8}.order04-side h3{font-size:14px}.summary-part{min-width:0}.summary-part .details-grid{row-gap:12px;column-gap:10px}.summary-part .spread{gap:10px}.summary-balance .order04-amount{font-size:29px;line-height:1.2}.summary-balance>.btn{height:38px}.order04-wrap.compact .order04-compact-foot{background:#f6f7f8;padding:15px 24px 17px;border-top-color:#d6dce1}.compact-settlement-heading h3{font-size:14px}.compact-settlement-grid{gap:20px}.compact-payment{padding-left:20px}.compact-balance .btn{height:36px;min-height:36px}.close-order-bar{padding:10px 24px;gap:12px;flex-wrap:wrap}.service-ap-head{gap:12px;flex-wrap:wrap}.service-ap-head>div:first-child{min-width:0}.service-appointment{border-radius:6px}.job04{border-radius:6px;padding:14px}.job-role-button{min-height:58px}.job-roles{gap:9px}.ledger04{padding:14px 0}.order04-title-focus:focus{outline:none}
/* Local scroll containers retain their data density, rather than shrinking all columns. */
@media(max-width:1150px){:root{--workspace-page-x:22px;--workspace-page-y:22px}.dashboard-grid{gap:18px}.side-panel{padding-left:16px}.table td,.table th{padding-inline:11px}.table td:first-child,.table th:first-child{padding-left:11px}.ops-week-row{gap:9px}}
@media(max-width:760px){:root{--workspace-page-x:14px;--workspace-page-y:18px}.topbar{padding-inline:8px}.sidebar .brand{height:var(--workspace-top)}.sidebar-head{padding-bottom:7px}.sidebar .store-minimal{margin-top:2px;min-height:40px;padding:5px}.sidebar .nav-item{height:36px}.page-head{gap:12px;flex-wrap:wrap;margin-bottom:18px}.page-head h1{font-size:23px}.head-actions{justify-content:flex-start}.head-actions>.btn{min-width:0}.toolbar{gap:10px}.toolbar .search-field{max-width:100%}.drawer-head,.drawer-body{padding:16px}.drawer-foot{padding:12px 16px}.dialog{padding:18px;gap:15px}.ops-section,.settings-panel{padding:16px}.order04-wrap.expanded{top:0}.order04-header{padding:14px 16px 0}.order04-tabs{gap:18px;margin-top:10px}.order04-header h2{font-size:20px}.order04-main,.order04-side{padding:16px}.order04-wrap.compact .order04-compact-foot{padding:12px 16px}.close-order-bar{padding:10px 16px}.compact-settlement-grid{gap:12px}.compact-payment{padding-left:12px}.table td,.table th{padding-inline:10px}.table td:first-child,.table th:first-child{padding-left:10px}.global-search{min-width:0}}
@media(max-width:390px){.compact-payment{padding:9px 0 0}.order04-header>.spread{gap:8px}.order04-header>.spread>.flex{gap:4px}.order04-header>.spread>.flex>.btn{padding-inline:7px}.order04-header>.spread>.flex>.btn.icon{width:30px;padding:0}.page-head .sub{font-size:12px}.table .btn.sm{padding-inline:8px}.toolbar .sale-tabs{gap:14px}.toolbar .sale-mine{min-width:0}.toolbar .search-field{min-width:0}.drawer-body,.order04-main{padding:14px}}
/* Configuration forms: short values must not stretch across the entire desktop. */
.settings-panel+.settings-panel{margin-top:20px}.settings-panel>.spread{gap:14px;flex-wrap:wrap}.settings-panel h2+.sub{margin-top:6px}.settings-panel h2+.spread{margin-top:12px}.settings-panel .btn.sm{height:32px;min-height:32px}.settings-panel .flex.wrap{gap:8px;margin-top:10px}
#member-change-form{display:grid;grid-template-columns:repeat(2,minmax(0,260px));gap:12px 20px;margin-top:16px;align-items:start}#member-change-form>.radio-choice,#member-change-form>#member-change-error,#member-change-form>.flex{grid-column:1/-1}#member-change-form>.radio-choice{width:max-content;max-width:100%;padding:8px 12px;min-height:36px}#member-change-form>#member-change-error:empty{display:none}#member-change-form>.flex{margin-top:2px}#member-change-form .btn,#ops-week .btn{min-height:36px}#ops-week{margin-top:14px}#ops-week .ops-week-row{padding-block:10px}.ops-week-row>.radio-choice{min-height:36px;align-self:end}.ops-week-row>strong{align-self:end;min-height:36px;display:flex;align-items:center}
@media(max-width:650px){#member-change-form{grid-template-columns:minmax(0,1fr);gap:12px}.settings-panel+.settings-panel{margin-top:16px}}
/* Equal spacing below the page header; matching controls inside the product picker. */
.content>.page-head+.ops-body{padding-top:0}.product-picker-toolbar{gap:10px}.product-filters{height:36px;padding:3px;flex:none}.product-filters button{height:28px;padding:0 11px}.product-search-wrap{height:36px;border-radius:6px;padding-inline:10px}.product-search-wrap input{height:100%;line-height:1.4}.product-picker-list{gap:8px}.product-pick-row{min-height:58px;border-radius:6px;padding:10px}.customer-entry .customer-lookup{min-height:36px}.customer-entry .customer-link-tools{gap:6px}
/* Alpha 11.3.1 — restore full-width workspace, refine entry and historical forms. */
:root{--workspace-page-x:20px;--workspace-page-y:18px}
.work .content{max-width:none;width:100%;margin:0;min-width:0}
/* Auth layout is deliberately independent from the workspace container. */
.auth-refined.auth-page{background:#f4f6f7;grid-template-rows:auto minmax(0,1fr) auto;padding:28px clamp(24px,5vw,76px) 22px;gap:0}
.auth-refined.auth-page::before{display:none}
.auth-refined .auth-masthead{border-bottom:1px solid #dbe1e5;padding-bottom:17px;min-height:56px;align-items:center}
.auth-refined .auth-main{display:flex;align-items:center;justify-content:center;padding:40px 0;min-width:0}
.auth-refined .auth-frame{width:min(100%,960px);max-width:none;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:clamp(36px,7vw,108px);align-items:center;overflow:visible}
.auth-refined .auth-identity{position:relative;padding:32px 0;color:#293d4c;min-width:0}
.auth-refined .auth-identity h2{font-size:clamp(30px,4vw,49px);letter-spacing:-.6px;font-weight:650;line-height:1.2}
.auth-refined .auth-kicker{font-size:11px;letter-spacing:2.6px;color:#596e7d;margin-bottom:22px}
.auth-refined .auth-identity p{font-size:15px;line-height:1.8;margin:18px 0 0}
.auth-refined .auth-identity-rule{display:flex;height:3px;width:106px;gap:5px;background:none;margin-top:36px}
.auth-refined .auth-identity-rule span{height:3px;width:24px;background:#c3cdd4}.auth-refined .auth-identity-rule span:first-child{width:48px;background:#34485b}
.auth-refined .auth-frame .auth-card{box-sizing:border-box;width:100%;max-width:100%;padding:36px;border:1px solid #dce2e6;border-radius:10px;background:#fff;box-shadow:0 12px 44px #2536450b}
.auth-refined .auth-heading h1{font-size:24px;line-height:1.3;letter-spacing:0;margin:0}
.auth-refined .auth-sub{font-size:13px;color:#626d77;margin:10px 0 28px;line-height:1.65}
.auth-refined .login-form{display:grid;gap:20px;margin:0}
.auth-refined .auth-card .field{gap:8px;min-width:0}
.auth-refined .auth-card .input{height:46px;min-height:46px;width:100%;box-sizing:border-box;font-size:14px}
.auth-refined .auth-password-toggle{top:50%;transform:translateY(-50%);height:32px;right:7px;display:flex;align-items:center;justify-content:center}
.auth-refined .auth-submit{height:46px;margin:2px 0 0;display:flex;align-items:center;justify-content:center}
.auth-refined .auth-error:not([hidden]){margin:0;line-height:1.5;overflow-wrap:anywhere}
.auth-refined .auth-footer{border-top:1px solid #dbe1e5;padding-top:14px;align-items:flex-end;gap:16px;font-size:12px}
.auth-footer-left{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-width:0}.auth-filing{display:flex;align-items:center;gap:5px;min-width:0}.auth-filing:empty{display:none}.auth-filing img{width:16px;height:16px;object-fit:contain}.auth-filing a{color:#65737e;text-decoration:none;overflow-wrap:anywhere}.auth-filing a:hover{text-decoration:underline}
.history-create{gap:20px}.history-create>.drawer-section{margin:0;padding:0 0 20px}.history-create>.drawer-section[hidden],.history-create .cart-tools[hidden]{display:none}.history-create .history-fields{display:grid;gap:15px}.history-create .history-fields>h3{margin:0 0 2px}.history-clock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.history-clock-grid .input,.history-clock-grid .control-trigger,.history-fields>.field .control-trigger,.history-fields>.field .input,.history-correction .control-trigger,.history-correction .input{height:40px;min-height:40px}.history-clock{font-variant-numeric:tabular-nums;letter-spacing:.3px}.history-time-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:-6px}.history-time-tools .text-btn{font-size:12px;min-height:24px}.history-time-status{min-height:18px;line-height:1.5;margin-top:-8px}.history-time-status.invalid{color:#a54e49}.history-fields>.radio-choice,.history-correction>.radio-choice{padding:10px 12px;align-items:flex-start;line-height:1.55}.history-fields>p.sub,.history-correction>p.sub{line-height:1.65;margin:0}.history-create>.summary-box{padding:16px;gap:10px}.history-create>#create-error:empty,.history-correction>#history-correct-error:empty{display:none}.history-correction{gap:16px}.history-correction .history-time-tools{margin-top:-8px}.history-correction>.flex{justify-content:flex-end}.history-correction>.flex>.btn{height:36px;min-width:100px}.order04-header>.spread>.flex.wrap{justify-content:flex-end;flex-shrink:0;max-width:48%}
@media(max-width:1150px){:root{--workspace-page-x:20px;--workspace-page-y:18px}}
@media(max-width:760px){:root{--workspace-page-x:12px;--workspace-page-y:14px}.auth-refined.auth-page{padding:20px 20px 16px}.auth-refined .auth-main{padding:28px 0}.auth-refined .auth-frame{max-width:420px;grid-template-columns:minmax(0,1fr);gap:20px}.auth-refined .auth-identity{padding:8px 0 0}.auth-refined .auth-kicker{margin-bottom:10px}.auth-refined .auth-identity h2{font-size:29px}.auth-refined .auth-identity p{font-size:13px;margin-top:8px}.auth-refined .auth-identity-rule{display:none}.auth-refined .auth-frame .auth-card{padding:26px 24px}.auth-refined .auth-footer{font-size:11px}.history-create{gap:16px}.history-create>.drawer-section{padding-bottom:16px}.order04-header>.spread>.flex.wrap{max-width:50%}}
@media(max-width:400px){.auth-refined.auth-page{padding-inline:16px}.auth-refined .auth-frame .auth-card{padding:24px 20px}.history-clock-grid{gap:9px}.history-time-tools{align-items:flex-start}.order04-header>.spread>.flex.wrap{max-width:46%}}
.history-create .history-clock-grid,.history-correction .history-clock-grid{grid-template-columns:repeat(2,minmax(0,220px))}.history-create .history-fields>.field:has(select){max-width:454px}.history-create .history-time-tools,.history-create .history-time-status{max-width:454px}.history-time-status:empty{display:none}.drawer-foot:has(#history-create-submit){display:flex;justify-content:flex-end;gap:8px}.drawer-foot #history-create-submit,.drawer-foot:has(#history-create-submit)>.btn{height:36px;min-width:108px}.history-create .history-fields>.radio-choice{max-width:600px}
@media(max-width:500px){.history-create .history-clock-grid,.history-correction .history-clock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* RC 04: keep delivery actions together, after the original project's progress. */
.delivery-item-heading{min-width:0;overflow-wrap:anywhere;margin-bottom:8px}
.delivery-item-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line,#e1e4e8)}
.delivery-item-actions>.btn{min-height:34px;height:auto;line-height:1.45;padding:7px 12px;white-space:normal;max-width:100%;justify-content:center}
@media(max-width:480px){.delivery-item-actions>.btn{flex:1 1 100%;min-width:0}}
.delivery-record-hint{margin:8px 0 0;text-align:right;line-height:1.5}
@media(max-width:480px){.delivery-record-hint{text-align:left}}
