/* Clear, familiar structure with colour used alongside text labels. */
html {scroll-padding-top:150px}
[hidden]{display:none!important}
:root {--sht-blue:#2563a1;--sht-teal:#087e78;--sht-gold:#b46c09;--sht-pink:#b71961}
body {line-height:1.5}
html[data-theme=light] .globalbar{background:#293355}
html[data-theme=light] .card{border:1px solid #cdd6e1;border-radius:10px;box-shadow:0 2px 8px #24345108}
html[data-theme=light] :is(.subcard,fieldset,.product-form-section){background:#fff;border:1px solid #cad5e0;border-inline-start:4px solid var(--sht-blue);border-radius:8px}
:is(.job-form-page,.product-form-page,.record-edit-page) :is(fieldset,.subcard,.product-form-section){padding:20px;margin-block:20px;min-width:0}
:is(.job-form-page,.product-form-page,.record-edit-page) :is(h3,legend){font-weight:750;letter-spacing:.01em}
html[data-theme=light] :is(.job-form-page,.product-form-page,.record-edit-page) :is(h3,legend){color:#233c5b}
html[data-theme=light] :is(.section-contact,#selfCollectionAccess){border-inline-start-color:var(--sht-teal)}
html[data-theme=light] :is(.section-notes,.sht-import-guide){border-inline-start-color:var(--sht-gold)}
html[data-theme=light] .section-identity{border-inline-start-color:var(--sht-pink)}
:is(.job-form-page,.product-form-page,.record-edit-page) label{font-weight:650;line-height:1.55}
:is(.job-form-page,.product-form-page,.record-edit-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){min-height:43px;padding:10px 12px;border-radius:6px;font-size:15px;font-weight:400;max-width:100%;box-sizing:border-box}
:is(input,select,textarea,button,a,summary):focus-visible{outline:3px solid #2787ce;outline-offset:3px}
input[type=checkbox],input[type=radio]{width:18px;height:18px;vertical-align:middle;accent-color:#a51951}
textarea{line-height:1.6;resize:vertical}
.grid{gap:18px}
html[data-theme=light] :is(.smallhint,.tiny.muted){color:#4b5c70}
.smallhint,.tiny.muted{line-height:1.6;font-weight:400}
html[data-theme=light] :is(.warningbox,.notice){background:#fff5dc;color:#624105;border:1px solid #dbb66d;border-inline-start:5px solid #b46c09;border-radius:7px;padding:14px 18px}
.warningbox{line-height:1.6}
.sht-stock-help,.sht-import-guide,.sht-mode-explanation{padding:14px 18px;border:1px solid var(--line);border-radius:8px;margin-block:12px;line-height:1.65}
html[data-theme=light] :is(.sht-stock-help,.sht-mode-explanation){background:#edf5fc;color:#213f5e}
.sht-stock-help{grid-column:1/-1}
.sht-stock-help summary{cursor:pointer;font-weight:700}
.sht-stock-help dt{font-weight:750;margin-top:10px}.sht-stock-help dd{margin:3px 0 12px}
.sht-stock-current{font-weight:400;display:block;line-height:1.6;margin-top:9px;font-size:14px}
.sht-collection-summary{margin:16px;border-inline-start:5px solid var(--sht-teal)!important}
.sht-collection-summary .btnrow{justify-content:space-between}.sht-collection-summary h3{margin:0}
.sht-private-access summary{cursor:pointer;font-weight:700}
.sht-voice-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 16px;border-bottom:1px solid var(--line);font-size:13px}
html[data-theme=light] .sht-voice-tools{background:#f4f7fb;color:#233c5b}
.sht-voice-tools select,.sht-voice-tools button{font-size:13px;min-height:34px;padding:5px 9px}
.sht-voice-tools label{display:flex;align-items:center;gap:8px;margin:0}
.sht-voice-status{font-size:12px}.sht-voice-tools button{cursor:pointer}
html[data-theme=light] .dash-grid .dash-tile{background:#fff!important;color:#24364a;border:1px solid #ccd6e1;border-top:0;border-bottom:6px solid var(--sht-blue);border-radius:9px;box-shadow:none}
html[data-theme=light] .dash-grid .dash-tile .muted{color:#4e6073}
html[data-theme=light] .dash-grid .tile-link:nth-child(4n+2) .dash-tile{border-bottom-color:#07857d}
html[data-theme=light] .dash-grid .tile-link:nth-child(4n+3) .dash-tile{border-bottom-color:#bb740b}
html[data-theme=light] .dash-grid .tile-link:nth-child(4n) .dash-tile{border-bottom-color:#b31e52}
html[data-theme=light] .attention-mark{color:#a21d32}
html[data-theme=light] .card.dash-tile{background:#fff!important;color:#24364a!important;border-radius:9px;border-bottom:6px solid #2563a1!important;box-shadow:none}
html[data-theme=light] .card.dash-tile :is(.metric,strong){color:#24364a!important}
html[data-theme=light] .card.dash-tile .muted{color:#4e6073!important}
html[data-theme=light] .card.dash-tile.tile-overdue{background:#fff0f3!important;border-bottom-color:#b31e52!important}
html[data-theme=light] .grouphead{border-inline-start:4px solid #7184a1}
html[data-theme=light] .form-section-nav a{background:#edf3fa;color:#284f78;border-radius:5px;padding:8px 12px}
@media(max-width:700px){:is(.job-form-page,.product-form-page,.record-edit-page) :is(fieldset,.subcard,.product-form-section){padding:14px;margin-block:14px}.sht-collection-summary{margin:10px}.sht-voice-tools{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
/* Pale, distinct dashboard tiles; use strong contrast for every tile label. */
html[data-theme=light] body .dash-shell .dash-grid .card.dash-tile{background:var(--tile-bg,#eaf2ff)!important;border-bottom-color:var(--tile-line,#3b6cad)!important;color:#20354a!important}
html[data-theme=light] body .dash-shell .dash-grid .card.dash-tile :is(.metric,strong,.muted,.tiny){color:#20354a!important}
html[data-theme=light] .tile-overdue.attention-tile::after{display:none!important}
/* Compact kit list: hierarchy is conveyed by indentation, weight and dividers. */
html .job-items-card .items-grid-scroll :is(td,th){padding:4px 7px!important;font-family:Arial,"Segoe UI",sans-serif;font-size:13px;line-height:1.3!important}
html .job-items-card .items-grid-scroll .itemrow{height:auto!important;min-height:0!important}
html .job-items-card .items-grid-scroll th{font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere}
html .job-items-card .items-grid-scroll .inline-edit{padding:1px 4px!important;min-height:21px!important}
html .job-items-card .items-grid-scroll .grouphead{min-height:30px!important;padding-block:3px!important;border-inline-start:3px solid #68829c!important;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
html[data-theme=light] .job-items-card .items-grid-scroll .grouphead{background:#edf2f7!important}
html[data-theme=light] .job-items-card .items-grid-scroll .sht-subgroup .grouphead{background:#f7f9fb!important;border-inline-start-color:#9fb2c5!important}
html .job-items-card .items-grid-scroll .grouphead .group-name{font-family:Arial,"Segoe UI",sans-serif;font-size:14px!important;font-weight:700;line-height:1.25}
html .job-items-card .equipment-section-heading{padding:8px 10px;min-height:40px}
html .job-items-card .equipment-section-heading h3{font-size:16px}
html .job-items-card .equipment-section{margin-bottom:14px;min-height:0}
html .job-items-card .items-grid-scroll .wh-status{padding:2px 6px;font-size:10px;line-height:1.2}
html .job-items-card .items-grid-scroll .grouphead>button:last-of-type{font-size:11px;padding:3px 6px}
html[data-theme=light] body .job-items-card .availability-value.ok,html[data-theme=light] body .sht-stock-available{color:#27794d!important;background:#f0faf3!important;border-color:#cbe4d4!important}
html[data-theme=light] body .job-items-card .availability-value.shortlink,html[data-theme=light] body .sht-stock-negative{color:#b32339!important;background:#fff0f2!important;border-color:#efc9d0!important}
html[data-theme=dark] .sht-stock-available{color:#9cdeb8!important}html[data-theme=dark] .sht-stock-negative{color:#ff9eac!important}
.sht-compact-menu{position:fixed;z-index:500;width:245px;max-width:calc(100vw - 16px);max-height:70vh;overflow:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:7px;box-shadow:0 6px 20px #0003;padding:5px}
.sht-compact-menu button,html .job-items-card .rowmenu :is(button,a){display:block;box-sizing:border-box;width:100%;border:0!important;border-radius:3px;text-align:left;background:transparent!important;color:inherit!important;padding:8px 10px!important;font-family:Arial,"Segoe UI",sans-serif;font-size:13px!important;line-height:1.4!important;min-height:0!important;white-space:normal}
.sht-compact-menu button:hover,html .job-items-card .rowmenu :is(button,a):hover{background:var(--panel3)!important}
.sht-compact-menu button.danger,html .job-items-card .rowmenu .danger{color:#b32339!important;border-top:1px solid var(--line)!important;margin-top:4px}
html .job-items-card .rowmenu{width:235px!important;min-width:0!important;padding:5px!important;border-radius:7px!important;box-shadow:0 6px 20px #0003!important}
@media(max-width:700px){html .job-items-card .items-grid-scroll :is(td,th){padding-block:5px!important}.sht-compact-menu button{padding-block:10px!important}}
.invoice-part-pill{background:#80550c!important;color:#fff!important;border:1px solid #ad7e25;white-space:nowrap}
html[data-theme=light] .pill.invoice-part-pill{background:#fff0cf!important;color:#654007!important;border-color:#c59542}
/* Compact page introductions and a calm, welcoming new-job form. */
html body .wrap{padding-top:10px!important}
html body .wrap .app-breadcrumbs{margin:0 0 10px;padding:4px 0;line-height:1.4}
html body .wrap .record-breadcrumb{margin:0 0 10px;line-height:1.4}
html body .wrap .job-local-breadcrumb{margin-block:0 8px!important}
.new-job-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid var(--line)}
.new-job-header h2{margin:0!important;font-size:23px;line-height:1.3;padding:0!important;border:0!important}
.new-job-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.new-job-actions :is(a,button){min-height:40px;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:9px 14px;border-radius:7px;font-weight:650}
html[data-theme=light] .new-job-actions .ai-import-button{background:#e7f4f1;color:#176351;border-color:#91c8b9}
.new-job-page .form-section-nav{margin:0 0 12px;gap:6px}
.new-job-page .form-section-nav a{padding:6px 10px!important;font-size:12px}
html .new-job-page form#f>.subcard,html .new-job-page form#f>fieldset{margin:14px 0!important;padding:18px!important}
html[data-theme=light] .new-job-page form#f>.subcard:nth-of-type(3n+1){background:#f3f8ff!important;border-left-color:#6294cf!important}
html[data-theme=light] .new-job-page form#f>.subcard:nth-of-type(3n+2){background:#f8f5ff!important;border-left-color:#9b81c8!important}
html[data-theme=light] .new-job-page form#f>.subcard:nth-of-type(3n){background:#f1faf7!important;border-left-color:#53a48f!important}
html[data-theme=light] .new-job-page #selfCollectionAccess{background:#fff9ee!important;border-left-color:#c69a4b!important}
.new-job-page form#f>.subcard>h3{margin-top:0!important;margin-bottom:14px!important;padding-bottom:8px!important}
@media(max-width:700px){html body .wrap{padding-top:8px!important}.new-job-header{gap:10px;margin-bottom:12px}.new-job-header h2{font-size:21px}.new-job-actions{margin-left:auto}.new-job-actions :is(a,button){min-height:42px;padding:9px 12px}html .new-job-page form#f>.subcard,html .new-job-page form#f>fieldset{padding:14px!important}}
.rms-selection-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;margin:12px 0;border:1px solid var(--line);border-radius:7px;background:var(--panel2)}
.rms-selection-toolbar label{display:flex;align-items:center;gap:8px;margin:0;font-weight:700}.rms-selection-toolbar .tiny{flex-basis:100%}
.issue-writeoff{border-inline-start:4px solid #a62b40!important;margin-top:18px}.issue-writeoff textarea{width:100%;box-sizing:border-box}

/* Preserve the item tree against the compact table's shared cell padding. */
html .job-items-card .items-grid-scroll .itemrow>td:first-child{padding-left:var(--item-indent,40px)!important}
html .job-items-card .items-grid-scroll .itemrow :is(.tree-toggle,.tree-spacer){display:inline-block;box-sizing:border-box;width:20px!important;min-width:20px!important;height:20px;vertical-align:middle;margin:0 6px 0 0;padding:0!important;text-align:center;line-height:18px;font-size:14px!important}
html .job-items-card .items-grid-scroll .itemrow .tree-toggle{border:0!important;background:transparent!important;color:var(--text)!important;border-radius:2px}
html .job-items-card .items-grid-scroll .itemrow .tree-toggle:hover{background:var(--panel3)!important}
html .job-items-card .items-grid-scroll .itemrow.child>td:first-child{border-left:0}
