:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263b38;background:#f4f6f3;font-synthesis:none;--green:#176554;--ink:#17352e;--line:#dce3dc;--muted:#66766e}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:7px;background:var(--green);color:white;padding:12px 18px;font-weight:600;transition:background .15s}button:hover{background:#104d40}button:disabled{opacity:.55;cursor:wait}input,select,textarea{width:100%;border:1px solid #c6d2cb;border-radius:6px;padding:11px 12px;background:white;color:var(--ink);margin:7px 0 18px}input:focus,textarea:focus,select:focus{outline:2px solid #70ad98;outline-offset:2px}label{font-size:13px;font-weight:600}textarea{min-height:78px;resize:vertical}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1px;font-weight:550}h2{font-size:23px;letter-spacing:-.5px;font-weight:550}h3{font-size:16px;font-weight:600}p{line-height:1.6}.small{font-size:12px;color:var(--muted)}[hidden]{display:none!important}.wordmark{font-size:47px;letter-spacing:-4px;font-weight:600;line-height:1;display:flex;align-items:center;gap:18px}.wordmark span{font-size:11px;letter-spacing:2px;opacity:.6;border-left:1px solid #6c8980;padding-left:14px}.login-layout{min-height:100vh;display:grid;grid-template-columns:1.15fr 1fr}.login-story{background:var(--ink);color:#edf5ed;padding:65px 10%;display:flex;flex-direction:column;justify-content:center}.login-story .wordmark{margin-bottom:90px}.eyebrow{font-size:11px;letter-spacing:2px;color:#aac9b9}.login-story h1{font-size:clamp(40px,5vw,66px);line-height:1.08;letter-spacing:-2px;margin:20px 0 28px}.login-story>p:not(.eyebrow){max-width:400px;color:#c0d3c8;font-size:16px}.steps{font-size:12px;letter-spacing:.5px;margin-top:60px;color:#c0d3c8}.steps span{margin:0 15px;color:#769a87}.login-card{max-width:470px;width:100%;padding:40px;margin:auto}.environment{display:inline-block;font-size:10px;letter-spacing:1.3px;color:var(--green);background:#e4ece4;border:1px solid #d4e0d3;padding:7px 10px;border-radius:4px;margin-bottom:24px}.login-card h2{font-size:30px;margin-bottom:14px}.login-card>p{font-size:14px;color:var(--muted)}.login-card form{margin-top:30px}.login-card button{width:100%;display:flex;justify-content:space-between;margin:0 0 22px}.workspace{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{background:var(--ink);color:#e7f1e9;padding:33px 23px;position:fixed;width:220px;inset:0 auto 0 0;display:flex;flex-direction:column}.sidebar .wordmark{font-size:41px;margin-bottom:58px}.side-label{font-size:9px;letter-spacing:2px;color:#90afa0;margin-bottom:18px}.sidebar nav{display:grid;gap:6px}.nav-button{background:transparent;color:#bdcfc4;text-align:left;font-size:13px;padding:13px 14px;font-weight:500}.nav-button:hover,.nav-button.active{background:#2b4a3e;color:#fff}.sidebar-bottom{margin-top:auto;font-size:11px;color:#b3c8bd}.sidebar-bottom p{margin:18px 0 6px;color:#eef5ef}.online-dot{display:inline-block;width:6px;height:6px;background:#a6c48e;border-radius:50%;margin-right:6px}.text-button{background:transparent;padding:8px 0;color:#b3c8bd;font-weight:400;font-size:12px}.text-button:hover{background:transparent;color:#fff}main{grid-column:2;min-width:0}.topbar{height:75px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;font-size:11px;letter-spacing:.8px;background:#fafbf8}.divider{padding:0 13px;color:#9ba9a0}.quiet{color:var(--muted);background:transparent;font-size:12px;padding:8px 10px}.quiet:hover{color:var(--ink);background:#e7eee6}.page{padding:42px;max-width:1500px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:26px}.page-heading h1{margin:0 0 9px}.page-heading p{color:var(--muted);font-size:13px;margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:#fafbf8;border-radius:9px;margin-bottom:30px;overflow:hidden}.stat{padding:23px 25px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat-label{font-size:11px;color:var(--muted);margin-bottom:14px;display:block}.stat-value{font-size:29px;font-weight:500;letter-spacing:-.8px}.panel{border:1px solid var(--line);background:#fff;border-radius:9px;overflow:hidden;margin-bottom:22px}.panel-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line)}.panel-header h3{margin:0}.panel-header p{margin:0;color:var(--muted);font-size:12px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:10px;font-weight:500;letter-spacing:1px;color:var(--muted);background:#fbfcfa;padding:14px 24px;white-space:nowrap}td{padding:19px 24px;border-top:1px solid #eef1ec;vertical-align:middle}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f6f9f3}.primary-text{font-weight:550;color:var(--ink)}.secondary-text{font-size:11px;color:var(--muted);display:block;margin-top:6px}.status{font-size:10px;border-radius:4px;padding:6px 8px;display:inline-block;white-space:nowrap;background:#eef1ed;color:#52645a}.status.in_review,.status.blocked{background:#fbf0d8;color:#8c6416}.status.approved,.status.invoice_prepared,.status.done{background:#e7f1e5;color:#326944}.numeric{text-align:right;font-variant-numeric:tabular-nums}.arrow-cell{color:#92a297}.empty{padding:45px 24px;text-align:center;color:var(--muted);font-size:14px}.order-top{display:flex;align-items:center;gap:12px;margin-bottom:20px}.order-top button{padding-left:0}.detail-grid{display:grid;grid-template-columns:2fr 1fr;gap:24px}.meta{padding:24px}.meta dl{margin:0;display:grid;gap:9px}.meta dt{font-size:10px;color:var(--muted);letter-spacing:.8px;margin-top:12px;text-transform:uppercase}.meta dd{margin:0;font-size:13px;overflow-wrap:anywhere}.actions{display:flex;gap:9px;flex-wrap:wrap}.secondary{background:#e8efe6;color:#305541}.secondary:hover{background:#dce8d9}.danger{background:#f5e9e4;color:#985333}.danger:hover{background:#eedacf}.row-action{padding:6px 9px;font-size:11px}.notice{padding:16px 22px;color:#4d6455;background:#edf3e9;border:1px solid #d8e4d0;border-radius:7px;font-size:13px;margin-bottom:24px}.error{color:#a03930;font-size:13px}.voided{opacity:.5;text-decoration:line-through}dialog{width:min(520px,calc(100vw - 32px));border:1px solid var(--line);border-radius:12px;padding:27px;color:var(--ink);box-shadow:0 30px 80px #132b2330;max-height:90vh}dialog::backdrop{background:#17352e66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.dialog-heading h2{margin:0}.dialog-heading button{font-size:23px}.dialog-actions{display:flex;justify-content:flex-end}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.revision{font-size:11px;color:var(--muted)}.help{color:var(--muted);font-size:12px;margin:0 0 18px}.stack{display:grid;gap:12px}.stack button{width:100%}@media(max-width:1000px){.sidebar{width:180px;padding:28px 15px}.workspace{grid-template-columns:180px 1fr}.page{padding:27px}.topbar{padding:0 27px}.stat{padding:18px}.detail-grid{grid-template-columns:1fr}}@media(max-width:700px){.login-layout{grid-template-columns:1fr}.login-story{padding:35px;min-height:290px}.login-story .wordmark{margin-bottom:30px}.login-story h1{font-size:40px}.login-story>p:not(.eyebrow),.steps{display:none}.login-card{padding:35px 25px}.sidebar{position:relative;width:100%;padding:20px}.sidebar .wordmark{margin:0 0 20px;font-size:32px}.side-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow:auto;gap:3px}.nav-button{white-space:nowrap;font-size:12px;padding:10px}.workspace{display:block}.topbar{height:56px;padding:0 20px}.page{padding:24px 16px}.stats{grid-template-columns:repeat(2,1fr)}.stat{border-bottom:1px solid var(--line)}.stat:nth-child(2){border-right:0}.stat-value{font-size:25px}.page-heading{align-items:flex-start}.page-heading h1{font-size:27px}.page-heading button{font-size:12px;padding:11px}.panel-header,td,th{padding:16px}.detail-grid{gap:0}.field-grid{grid-template-columns:1fr;gap:0}}

#logout-mobile{display:none}.meta dd.stat-value{font-size:28px}.numeric{white-space:nowrap}@media(max-width:700px){#logout-mobile{display:inline-block}.topbar{font-size:9px}.topbar .quiet{font-size:10px;padding:8px 5px}}
.source-hash { overflow-wrap:anywhere; font-family:monospace; font-size:.8rem; }
#document-search-form input[type="checkbox"] { width:auto; margin-right:.5rem; }
#document-search-results article + article { border-top:1px solid var(--line); }
.task-text{white-space:pre-wrap;overflow-wrap:anywhere}.task-objective{font-size:20px;color:var(--ink)}.task-item + .task-item{border-top:1px solid var(--line)}.task-item h3{margin-top:16px}.task-item li{margin-bottom:8px}.task-item dl{margin-bottom:18px}.source-reference{border-left:3px solid #d8e4d0;padding-left:12px;margin:16px 0;font-size:12px}.source-reference p{margin:6px 0}.status.executed_verified{background:#e7f1e5;color:#326944}fieldset{border:1px solid var(--line);border-radius:6px;padding:16px;margin:12px 0 18px}legend{font-size:12px;color:var(--muted)}
.task-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}@media(max-width:1000px){.task-grid{grid-template-columns:minmax(0,1fr)}}

/* Work-order workspace, based on the user's September 21 visual references. */
:root{--green:#137fcd;--ink:#24394c;--line:#dce5ed;--muted:#74899d;color:#293c4e;background:#eaf0f4}
.sidebar{background:linear-gradient(165deg,#14255c,#104c6e)}
.nav-button:hover,.nav-button.active{background:#205d91}.topbar{background:#fff;height:58px}.page{max-width:none;padding:24px}.panel{border-color:#e2e9ef}.quiet:hover{background:#e6f4fc}.secondary{background:#e7f3fb;color:#167ac0}.secondary:hover{background:#d5ebf9}button:hover{background:#096aa9}input:focus,select:focus,textarea:focus{outline-color:#54ade8}
.order-register{background:#edf2f6;min-height:calc(100vh - 108px);border:1px solid var(--line);border-radius:9px;overflow:hidden}.register-title,.order-tabs{background:linear-gradient(110deg,#075186,#1b648e);color:#fff}.register-title{padding:18px 24px}.register-title h1{font-size:20px;letter-spacing:0;margin:0}.register-toolbar{display:flex;align-items:center;gap:28px;padding:16px;background:#fff;color:var(--muted);font-size:13px}.register-toolbar button{background:#fff;color:#1688d5;border:1px solid #1688d5}.order-register table{min-width:1020px}.order-register th{background:#edf2f6;padding:15px 12px 8px;font-size:10px;letter-spacing:.3px}.order-register td{padding:9px 12px;background:#fff;border:1px solid #edf2f6}.order-register tr:hover td{background:#e5f5fc}.column-filters th{padding:0 4px 10px}.column-filters input,.column-filters select{margin:0;padding:9px 8px;border-radius:0;border-color:#dae3eb;background:#f6f9fb;min-width:110px;font-size:12px}.order-number{font-weight:650;width:105px}.order-register td.order-number.draft{background:#fff1bd}.order-register td.order-number.in_review{background:#e0eaff}.order-register td.order-number.approved,.order-register td.order-number.invoice_prepared{background:#dcf2e6}.order-number button{color:#263e55;padding:3px}.order-register .status{font-size:12px;padding:2px;background:transparent;color:#334b60}.order-register .numeric{font-size:12px}.order-caption{margin-bottom:16px}.order-caption h1{font-size:24px}.order-tabs{display:flex;align-items:center;gap:8px;padding:12px 18px;border-radius:8px 8px 0 0;overflow:auto}.order-tabs button{background:transparent;white-space:nowrap;color:#d8e9f5;border-radius:5px;padding:11px 16px;font-size:13px}.order-tabs button.active,.order-tabs button:hover{background:#2b82b8;color:white}.order-ref{background:#ffe89b;color:#294359;font-size:14px;font-weight:700;min-width:100px;text-align:center;border-radius:5px;padding:12px 16px;margin-right:20px}.order-workspace{background:#eaf0f4;padding:22px;min-height:65vh;border:1px solid var(--line)}.order-home{display:grid;grid-template-columns:minmax(220px,30%) minmax(0,1fr);gap:24px;align-items:start}.order-customer{border-right:1px solid #d6e0e9;padding-right:24px}.order-customer h2{font-size:21px;overflow-wrap:anywhere}.order-customer dl{font-size:13px;line-height:1.6}.order-customer dt{color:var(--muted);margin-top:20px}.order-customer dd{margin:5px 0;overflow-wrap:anywhere}.order-customer .panel{margin-top:24px;background:transparent;border:0}.order-customer .meta{padding:0}.order-workspace td{padding:12px 18px}.order-workspace th{background:#f1f5f8}.order-workspace .panel{border-radius:8px}.order-workspace .empty{min-height:230px;padding-top:85px}
@media(max-width:1000px){.page{padding:18px}.order-home{grid-template-columns:1fr}.order-customer{border-right:0;border-bottom:1px solid var(--line);padding:0 0 18px}.order-workspace{padding:16px}}
@media(max-width:700px){.page{padding:14px 10px}.register-toolbar{gap:12px;flex-wrap:wrap}.order-tabs{padding:10px;gap:3px}.order-tabs button{padding:10px}.order-ref{min-width:70px;margin-right:4px}.order-workspace{padding:10px}.order-caption h1{font-size:21px}}
.order-neighbors{display:flex;margin-right:12px}.order-neighbors button{font-size:23px;border:1px solid #ffffff30;padding:5px 12px}.order-neighbors button:disabled{cursor:default;opacity:.35}.order-timeline{list-style:none;margin:0;padding:24px}.order-timeline li{border-left:2px solid #d6e7f3;padding:0 0 24px 20px;font-size:13px}.order-timeline span,.order-timeline time{display:block;color:var(--muted);font-size:12px;margin-top:7px}
.performer-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.performer-row strong{overflow-wrap:anywhere;font-size:13px}.performer-row+.small{margin-top:16px}.performer-row>div:last-child{display:flex;flex-wrap:wrap}
.entry-table{min-width:740px}.entry-table td{padding:10px 14px}.entry-voided td:not(:last-child){text-decoration:line-through;color:var(--muted)}.inline-entry{border-top:1px solid var(--line);padding:20px;background:#f3f9fd}.inline-entry h3{font-size:13px}.inline-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.inline-fields input,.inline-fields select{margin-bottom:6px}.inline-entry .error:empty{display:none}.inline-entry .actions{margin-top:14px}.inline-fields label{font-size:11px}
.internal-panel .meta{background:#fffdf4}.internal-panel .meta dd{border:1px solid #f0dfaa;border-radius:5px;background:#fff;padding:12px;min-height:42px}.internal-panel .meta .small{margin:18px 0 0}.internal-panel .meta dt{color:#9a7b21}

.order-performer{display:inline-block;border:1px solid var(--line);border-radius:3px;padding:3px 6px;margin:2px;font-size:11px;white-space:nowrap}.order-performer.completed{color:#16724d;border-color:#8ac7ae;background:#effaf5}

/* Keep the register compact while preserving access to every column. */
.order-register table{table-layout:fixed;min-width:1440px;width:100%}
.order-register th:nth-child(1){width:160px}.order-register th:nth-child(2){width:150px}.order-register th:nth-child(3){width:160px}.order-register th:nth-child(4){width:200px}.order-register th:nth-child(5){width:170px}.order-register th:nth-child(6){width:260px}.order-register th:nth-child(7){width:180px}.order-register th:nth-child(8){width:90px}.order-register th:nth-child(9){width:190px}
.order-register td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:44px}.order-register td:nth-child(7){white-space:normal}.order-register .order-number{position:sticky;left:0;z-index:1}.order-register .table-scroll:focus-visible{outline:2px solid #1688d5;outline-offset:-2px}

.order-register th:first-child{position:sticky;left:0;z-index:2;background:#edf2f6}

.customer-orders{margin-top:28px}.customer-order-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.customer-order-link{color:#263e55;background:#e0eaff;border:1px solid transparent;padding:10px 6px;font-size:12px;overflow-wrap:anywhere}.customer-order-link span{display:block;font-size:10px;font-weight:400;margin-top:5px}.customer-order-link.draft{background:#fff1bd}.customer-order-link.approved,.customer-order-link.invoice_prepared{background:#dcf2e6}.customer-order-link[aria-current="page"]{border:2px solid #1688d5}.customer-order-link:hover{color:#075186;background:#d0eafa}

.project-contact{padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.project-contact:last-of-type{border-bottom:0}.project-contact dl{font-size:13px}.project-contact dt{color:var(--muted)}.project-contact dd{margin:4px 0 12px}

/* Order search and keyboard navigation */
.register-toolbar{flex-wrap:wrap;gap:16px;align-items:end}
.order-search{flex:1;min-width:230px;max-width:470px}
.order-search,.order-project{display:grid;gap:5px;font-size:12px;font-weight:600}
.order-search input,.order-project select{min-height:38px;margin:0}
.order-keyboard-help{margin:0;padding:8px 16px;color:var(--muted);font-size:12px;border-bottom:1px solid #dce4ec}
#order-rows tr:focus-within{background:#e4f4fc}
.order-register :focus-visible{outline:2px solid #1688d5;outline-offset:2px}

.registry-table td{vertical-align:middle;white-space:nowrap}.registry-table td:first-child{min-width:240px;max-width:320px;white-space:normal}.registry-table td:last-child{min-width:310px;white-space:normal}.registry-table td:last-child button{display:inline-block;width:auto;margin:3px;padding:7px 9px}
/* Order print output uses a dedicated, read-only snapshot rather than printing controls. */
.print-order-sheet{display:none}
@media print{
  @page{size:auto;margin:14mm}
  body{background:#fff;color:#172721;font:10pt/1.4 Arial,sans-serif}
  #workspace{display:block!important;min-height:0}
  #workspace>.sidebar,#workspace main>.topbar,#message,#content>.order-top,#content>.page-heading,#editor{display:none!important}
  #workspace main,.page{display:block!important;max-width:none;margin:0;padding:0}
  #content>.print-order-sheet{display:block!important;color:#172721}
  #content>:not(.print-order-sheet){display:none!important}
  .print-order-header{display:flex;justify-content:space-between;gap:16mm;border-bottom:2px solid #176554;padding-bottom:7mm;margin-bottom:8mm}
  .print-order-header .eyebrow{color:#176554;font-size:8pt;letter-spacing:1.5pt;margin:0 0 3mm}
  .print-order-header h1{font-size:22pt;margin:0 0 2mm;letter-spacing:0}
  .print-order-header p{margin:0;color:#52645a}
  .print-order-stamp{display:grid;align-content:start;gap:2mm;text-align:right;white-space:nowrap}
  .print-order-facts{display:grid;grid-template-columns:1fr 1fr;gap:8mm;border-bottom:1px solid #cad5ce;padding-bottom:6mm}
  .print-order-facts dl{display:grid;grid-template-columns:34mm 1fr;gap:2mm 4mm;margin:0}
  .print-order-facts dt{font-size:8pt;text-transform:uppercase;color:#52645a}
  .print-order-facts dd{margin:0;overflow-wrap:anywhere}
  .print-order-section{break-inside:avoid;margin-top:7mm}
  .print-order-section h2{font-size:12pt;letter-spacing:0;border-bottom:1px solid #cad5ce;padding-bottom:2mm;margin-bottom:3mm}
  .print-order-section p{white-space:pre-wrap;margin:0}
  .print-order-section table{font-size:9pt}
  .print-order-section th{background:#edf2ee;color:#344b40;font-size:8pt;padding:2mm;text-align:left}
  .print-order-section td{padding:2mm;border-top:1px solid #dde4df}
  .print-order-footer{border-top:1px solid #cad5ce;margin-top:9mm;padding-top:3mm;color:#52645a;font-size:8pt}
}
.order-image-preview{display:block;max-width:100%;max-height:70vh;object-fit:contain;margin:0 auto 18px;border:1px solid var(--line);border-radius:6px;background:#f4f6f3}
.order-image-gallery{max-width:900px}.order-image-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.order-image-tile{margin:0;min-width:0;border:1px solid var(--line);border-radius:8px;background:#f7f9f7;overflow:hidden}.order-image-tile img{display:block;width:100%;height:190px;object-fit:contain;background:#e9efeb}.order-image-tile figcaption{padding:8px 10px;font-size:12px;overflow-wrap:anywhere}.order-image-tile figcaption span{display:block;color:var(--muted);font-size:11px;margin-top:3px}.order-image-unavailable{min-height:100px;display:grid;place-items:center;padding:12px;color:var(--muted);text-align:center}.order-image-gallery-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px}.order-image-gallery-nav span{font-size:12px;color:var(--muted)}@media(max-width:560px){.order-image-gallery-grid{grid-template-columns:1fr}.order-image-tile img{height:210px}.order-image-gallery-nav button{padding:9px 7px}}
/* Compact, related field groups for the work-order editor. */
dialog#editor{width:min(680px,calc(100vw - 32px));padding:24px}
#editor-fields{display:grid;gap:16px}
.editor-section{padding:16px 18px 4px;border:1px solid var(--line);border-radius:9px;background:#fbfcfa}
.editor-section h3{margin:0 0 12px;font-size:14px}
.editor-section .help{margin:-6px 0 12px}
.editor-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;align-items:start}
.editor-field{min-width:0}
.editor-field-wide{grid-column:1/-1}
#editor-fields label{display:block;margin:0 0 3px;font-size:12px;color:#465b52}
#editor-fields input,#editor-fields select,#editor-fields textarea{margin:0 0 12px;padding:9px 10px}
#editor-fields textarea{min-height:76px}
#editor-fields .editor-field-grid .editor-field-grid{gap:0 10px}
.dialog-heading{margin-bottom:18px}
.dialog-actions{padding-top:10px;border-top:1px solid var(--line)}
.order-context-block{margin-top:18px;padding:14px 14px 6px;border:1px solid #d6e0e9;border-radius:8px;background:#f3f7fa}
.order-context-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.order-context-heading h3{margin:0;font-size:13px}
.order-context-heading button{flex:0 0 auto}
.order-context-block>p{margin:0 0 8px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.order-customer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.order-customer-heading h2{margin:0;min-width:0}
.order-customer-heading button{flex:0 0 auto;white-space:nowrap}
.order-customer .order-context-block{margin-top:10px;padding:10px 12px 2px}
.order-customer .order-context-heading{margin-bottom:4px}
.order-customer .order-context-block>p{margin-bottom:6px}
@media(max-width:480px){.order-customer-heading{align-items:flex-start;flex-direction:column}.order-customer-heading button{width:auto}}
@media(max-width:700px){dialog#editor{padding:18px}.editor-section{padding:14px 14px 2px}.editor-field-grid{grid-template-columns:1fr}.editor-field-wide{grid-column:auto}}

.commitment-actions summary{cursor:pointer;color:var(--blue,#087abf);white-space:nowrap}.commitment-actions>div{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding-top:6px}

/* Keep entry blocks dense, with one shared action row and readable mobile flow. */
#editor-fields{gap:10px}
.editor-section{padding:12px 14px 2px}
.editor-section h3{margin-bottom:9px}
#editor-fields input,#editor-fields select,#editor-fields textarea{margin-bottom:9px;padding:8px 10px}
#editor-fields textarea{min-height:64px}
.dialog-heading{margin-bottom:12px}
.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:12px}
@media(max-width:700px){.editor-section{padding:10px 12px 2px}}

.address-search{margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid var(--line)}.address-search-row{display:flex;align-items:flex-start;gap:8px}.address-search-row input{min-width:0;flex:1}.address-candidate{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 0}.address-candidate span{min-width:0;overflow-wrap:anywhere}.address-candidate button{flex:none}

.address-source{padding:8px 10px;border-left:2px solid var(--line);background:#f3f7fa;margin:6px 0}.address-source p{margin:4px 0;overflow-wrap:anywhere}

/* Compact work-order tools retain accessible names and visible keyboard focus. */
.order-register .register-toolbar{gap:10px;align-items:center;padding:12px 16px}
.order-register .register-toolbar .order-tool{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:0;border:1px solid transparent;border-radius:7px;color:#42647f;background:transparent}
.order-register .register-toolbar .order-tool:hover{background:#edf5fb;border-color:#d8e6f0;color:#075186}
.order-tool:focus-visible{outline:2px solid #1688d5;outline-offset:3px}
.order-tool .tool-tip{position:absolute;top:calc(100% + 6px);right:0;white-space:nowrap;background:#263e55;color:#fff;font-size:12px;padding:6px 9px;border-radius:5px;z-index:20;opacity:0;pointer-events:none}
.order-tool:hover .tool-tip,.order-tool:focus-visible .tool-tip{opacity:1}
.order-register #order-count{margin-left:auto;white-space:nowrap}
@media(max-width:700px){.order-register .register-toolbar .order-tool{width:44px;height:44px;flex-basis:44px}.order-register #order-count{margin-left:0}}

.order-top .order-tool{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border-radius:7px;background:transparent;color:#42647f;border:1px solid #d8e6f0}
.order-top .order-tool:hover{background:#edf5fb;color:#075186}
.order-top .revision{margin-right:auto}
@media(max-width:700px){.order-top .order-tool{width:44px;height:44px}}

/* Keep tools reachable while only the table scrolls horizontally. */
.order-register{overflow:visible}
.order-register .register-title{border-radius:8px 8px 0 0}
.order-register .register-toolbar .order-search{flex:1 1 260px;min-width:0}
.order-register .register-toolbar .order-project{flex:0 1 220px;min-width:0}
.order-register .register-toolbar .order-search input,.order-register .register-toolbar .order-project select{width:100%;box-sizing:border-box}
.order-register .register-toolbar .tool-tip{max-width:min(240px,calc(100vw - 32px));white-space:normal;width:max-content;text-align:left}
@media(max-width:700px){.order-register .register-toolbar .order-search{flex-basis:100%}.order-register .register-toolbar .order-project{flex:1 1 180px}.order-register .register-toolbar #new-order{min-height:44px}}

.password-login{width:min(420px,calc(100% - 32px));margin:clamp(24px,10vh,100px) auto;padding:28px;background:#fff;border:1px solid var(--line);border-radius:12px}.password-login label{display:block}.password-login button{width:100%}

.preview-notice{position:fixed;bottom:8px;right:8px;z-index:99;padding:8px 12px;background:#17352e;color:#fff;border-radius:7px;font-size:12px}@media print{.preview-notice{display:none}}

/* Work-order reading rhythm: bounded columns and compact related blocks. */
.order-home{grid-template-columns:minmax(280px,400px) minmax(0,1fr);gap:20px}
.order-customer .panel-header{flex-wrap:wrap;gap:8px;padding-inline:0}
.order-customer .panel-header .actions{flex-wrap:wrap}
.order-customer .panel-header button{white-space:nowrap}
.order-customer{padding-right:20px}
.order-customer h2{font-size:18px;line-height:1.35}
.order-customer dt{margin-top:12px}
.order-customer dd{margin:3px 0}
.order-workspace .panel-header{padding:14px 18px}
.order-workspace .meta{padding:16px 18px}
.order-workspace .meta dt{margin-top:6px}
.order-workspace .panel{margin-bottom:16px}
.order-workspace .empty{min-height:0;padding:24px 18px}
.customer-billing{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.customer-billing summary{cursor:pointer;font-size:13px;font-weight:600;line-height:1.5}
.customer-billing summary:focus-visible{outline:2px solid #1688d5;outline-offset:4px;border-radius:3px}
.customer-billing[open] summary{margin-bottom:10px}
.customer-billing dl{margin-top:0}
@media(max-width:1000px){.order-home{grid-template-columns:1fr}.order-customer{padding-right:0}}

.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1100px}.settings-grid .meta{line-height:1.5}.settings-grid select{max-width:320px}.lou-compact .table-scroll td{padding-block:9px}.lou-compact .table-scroll th{padding-block:9px}.lou-compact .order-register td{padding-block:6px}@media(max-width:700px){.settings-grid{grid-template-columns:1fr;gap:0}}

.organization-logo-preview{display:block;max-width:240px;max-height:120px;object-fit:contain;margin-bottom:16px}.organization-logo-upload{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:6px;cursor:pointer;overflow:hidden}.organization-logo-upload input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.organization-logo-upload:focus-within{outline:2px solid var(--blue,#167ac6);outline-offset:3px}

.print-organization-logo{display:block;max-width:180px;max-height:60px;object-fit:contain;margin-bottom:12px}.print-organization{margin-bottom:20px}.print-organization p,.print-organization-footer{font-size:10px;white-space:pre-line}.print-organization-footer{margin-top:24px;border-top:1px solid #d8e2e8;padding-top:12px}
