:root{--ink:#10283c;--muted:#687a8b;--line:#e1e8ec;--paper:#f5f7f7;--white:#fff;--navy:#102b42;--blue:#1b5675;--teal:#168d89;--teal-dark:#0c716e;--orange:#d2803b;--pale:#e7f5f1;--gold:#fff3df;--shadow:0 10px 30px rgba(25,52,67,.07)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.topbar{height:78px;background:#fff;display:flex;align-items:center;padding:0 30px;gap:14px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.brandmark{width:36px;height:36px;border-radius:10px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:850;font-size:20px;letter-spacing:-.08em}.brandcopy{display:flex;flex-direction:column;line-height:1.1;gap:4px}.brandcopy strong{font-size:15px;letter-spacing:.04em}.brandcopy span{font-size:10px;font-weight:800;letter-spacing:.16em;color:#79909e}.topbar-spacer{flex:1}.pilot-pill{display:flex;align-items:center;gap:8px;border:1px solid #d8ebe5;color:var(--teal-dark);background:#f1faf6;padding:8px 11px;border-radius:30px;font-size:12px;font-weight:750}.pulse{display:inline-block;width:7px;height:7px;border-radius:100%;background:#1eab8c}.month-picker{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);font-weight:750}.month-picker input{border:1px solid var(--line);padding:9px 11px;border-radius:9px;background:#fff;color:var(--ink);font-weight:700;min-width:150px}.shell{display:flex;min-height:calc(100vh - 78px)}.sidebar{width:246px;flex:none;background:#f9fbfa;border-right:1px solid var(--line);padding:32px 16px}.sidebar-heading{font-size:10px;font-weight:850;letter-spacing:.16em;color:#9aa9b2;padding:0 16px;margin-bottom:14px}.sidebar-heading.second{margin-top:32px}.nav-link{width:100%;border:0;background:transparent;border-radius:10px;display:flex;align-items:center;gap:13px;padding:12px 14px;color:#516779;text-align:left;font-weight:700;font-size:13px;margin:3px 0}.nav-link:hover{background:#edf3f3}.nav-link.active{color:var(--teal-dark);background:#e8f5f1}.nav-icon{font-size:18px;width:19px;text-align:center;font-weight:700;line-height:1}.sidebar-note{margin:48px 11px 0;border:1px solid #dce6e4;border-radius:12px;background:#fff;padding:15px;color:#647988;font-size:12px;line-height:1.65}.sidebar-note strong{color:var(--ink)}.main{padding:0 32px 55px;flex:1;min-width:0;max-width:1600px}.source-bar{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);color:#778b99;font-size:11px;padding:14px 0}.panel{display:none}.panel.active{display:block}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:33px 0 27px}.eyebrow{font-size:10px;font-weight:850;letter-spacing:.17em;color:var(--teal);margin:0 0 10px}.page-heading h1{font-size:30px;letter-spacing:-.04em;margin:0 0 9px;line-height:1.1;font-weight:800}.subhead{font-size:13px;color:var(--muted);line-height:1.55;margin:0;max-width:680px}.button{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:11px 15px;border:1px solid transparent;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}.button.secondary{background:#fff;border-color:var(--line);color:var(--blue)}.button.secondary:hover{border-color:#8cb8b6;background:#f9fdfc}.button.primary{background:var(--teal-dark);color:#fff}.button.primary:hover{background:#075b58}.button.ghost{background:#fff;color:#627988;border-color:var(--line)}.hero{display:grid;grid-template-columns:minmax(0,1fr) 285px;border-radius:16px;background:var(--navy);color:#fff;overflow:hidden;box-shadow:var(--shadow)}.hero-main{padding:28px 30px 24px}.hero-kicker,.hero-side>span{font-size:10px;letter-spacing:.17em;font-weight:850;color:#a9c3cb}.hero-number{font-size:43px;line-height:1.1;letter-spacing:-.055em;font-weight:800;margin:14px 0 22px}.progress-track{height:7px;background:#335268;border-radius:50px;overflow:hidden}.progress-fill{height:100%;width:0;background:#36c0ad;border-radius:50px;transition:width .3s}.hero-foot{display:flex;justify-content:space-between;margin-top:11px;color:#afc4ce;font-size:11px}.hero-side{background:#153a50;border-left:1px solid #31536b;padding:28px 27px;display:flex;flex-direction:column;gap:10px}.hero-side strong{font-size:30px;letter-spacing:-.04em;color:#fff}.hero-side small{font-size:11px;line-height:1.5;color:#b4cbd3}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 35px}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px 20px;min-height:118px;box-shadow:0 2px 12px rgba(25,52,67,.025)}.metric span{display:block;font-size:12px;color:#668090;font-weight:650}.metric strong{display:block;font-size:25px;letter-spacing:-.035em;margin:8px 0 4px}.metric small{color:#8395a0;font-size:11px;line-height:1.4;display:block}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 18px}.section-head h2{font-size:18px;margin:0 0 5px;letter-spacing:-.02em}.section-head p{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.text-link{font-size:12px;color:var(--teal-dark);font-weight:800;text-decoration:none;white-space:nowrap}.text-link:hover{text-decoration:underline}.toolbar{display:flex;align-items:center;gap:10px;margin:0 0 12px;flex-wrap:wrap}.toolbar input[type=search],.toolbar select{border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#fff;font-size:12px;color:var(--ink);height:40px}.toolbar input[type=search]{width:min(380px,100%)}.toolbar select{min-width:160px}.toolbar .check{font-size:12px;color:#607585;display:flex;gap:7px;align-items:center;font-weight:650}.toolbar span:last-child{margin-left:auto;color:#899ba5;font-size:11px}.table-wrap{border:1px solid var(--line);background:#fff;border-radius:12px;overflow:auto;box-shadow:0 2px 13px rgba(25,52,67,.025)}table{width:100%;border-collapse:collapse;text-align:left;min-width:980px}thead{background:#f9fbfa}th{font-size:10px;text-transform:uppercase;letter-spacing:.095em;color:#8697a1;font-weight:850;padding:13px 15px;white-space:nowrap;border-bottom:1px solid var(--line)}td{font-size:12px;padding:13px 15px;border-bottom:1px solid #edf1f2;vertical-align:middle}tbody tr:hover{background:#fbfdfc}tbody tr:last-child td{border-bottom:0}.wo-id{font-weight:850;color:var(--blue);font-variant-numeric:tabular-nums}.primary-line{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:270px}.secondary-line{color:#8294a0;font-size:11px;margin-top:3px;line-height:1.35;max-width:300px}.money{font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}.money.unknown{color:#a67138;font-size:11px}.mini-button{border:1px solid #c8ddd9;color:var(--teal-dark);background:#f7fcfa;border-radius:7px;padding:7px 10px;font-size:11px;font-weight:800;white-space:nowrap}.mini-button:hover{background:#e8f5f1}.mini-button.selected{background:#e7f5ef;border-color:#b7dccd}.open-button{background:transparent;border:0;color:#52728a;font-size:11px;font-weight:800;white-space:nowrap;padding:5px}.open-button:hover{text-decoration:underline}.tag{display:inline-block;border-radius:6px;background:#eef3f5;color:#526c7a;font-weight:750;padding:5px 7px;font-size:10px;white-space:nowrap}.tag.ok{background:#e6f5ec;color:#18825c}.tag.warn{background:#fff1db;color:#a16b2f}.tag.blue{background:#e9f2fa;color:#376f95}.table-footnote{font-size:11px;color:#8598a2;line-height:1.55;margin:12px 0}.insight-bar{display:grid;grid-template-columns:180px 180px minmax(0,1fr);gap:18px;background:#edf5f4;border:1px solid #d9e8e5;border-radius:13px;padding:18px 22px;margin-bottom:34px;align-items:center}.insight-bar div{display:flex;flex-direction:column;gap:5px}.insight-bar strong{font-size:27px;letter-spacing:-.04em}.insight-bar small{font-size:10px;color:#718b91;line-height:1.4}.insight-bar p{border-left:1px solid #cedddc;margin:0;padding-left:22px;font-size:11px;line-height:1.55;color:#5d7880}.callout{border:1px solid #ead8b9;background:#fff9ee;border-radius:10px;padding:15px 18px;margin:-14px 0 23px;font-size:11px;line-height:1.6;color:#796643}.callout strong{color:#6e5125}.materials-metrics{margin-bottom:30px}.workflow-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:20px;align-items:start}.workflow-list,.workflow-detail{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.workflow-list{padding:8px}.workflow-list button{display:block;border:0;width:100%;padding:12px 13px;text-align:left;border-radius:8px;background:#fff;color:#627887;font-size:12px;font-weight:700}.workflow-list button.active,.workflow-list button:hover{background:#eaf5f2;color:var(--teal-dark)}.workflow-detail{padding:28px 32px;min-height:450px}.workflow-detail h2{margin:0 0 23px}.workflow-detail ol{columns:2;column-gap:46px;padding-left:22px;margin:0}.workflow-detail li{break-inside:avoid;padding:5px 0;font-size:12px;color:#506c7e;line-height:1.4}.detail-dialog{border:1px solid var(--line);box-shadow:0 30px 90px rgba(13,35,51,.22);border-radius:15px;max-width:650px;width:calc(100% - 30px);padding:27px 30px;color:var(--ink)}dialog::backdrop{background:rgba(12,32,45,.49)}.small-dialog{max-width:520px}.dialog-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.dialog-heading h2{margin:0;font-size:23px;letter-spacing:-.035em}.icon-button{border:0;background:#edf2f3;border-radius:8px;width:29px;height:29px;font-size:22px;color:#6d8795}.source-summary{background:#f4f8f8;border-radius:10px;border:1px solid #e3eded;padding:13px 15px;font-size:11px;color:#627e87;line-height:1.55;margin-bottom:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label,.wide-label{font-size:11px;font-weight:800;color:#5d7282;display:flex;flex-direction:column;gap:7px}.form-grid input,.form-grid select,.wide-label textarea{width:100%;border:1px solid #dce5e8;border-radius:8px;padding:10px 11px;font-size:12px;color:var(--ink);background:#fff}.wide-label{margin-top:17px}.wide-label textarea{resize:vertical;line-height:1.5}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}#toast{position:fixed;bottom:22px;right:22px;background:var(--navy);color:#fff;border-radius:9px;padding:12px 16px;font-size:12px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .2s,transform .2s;z-index:20}#toast.visible{opacity:1;transform:translateY(0)}.empty{padding:36px!important;text-align:center;color:#8a9aa4;font-size:12px}
@media(max-width:1100px){.sidebar{width:200px}.main{padding:0 22px 40px}.hero{grid-template-columns:1fr 220px}.hero-side strong{font-size:24px}.metric-grid{gap:9px}.metric{padding:15px}.insight-bar{grid-template-columns:150px 150px 1fr}}
@media(max-width:800px){.topbar{height:auto;min-height:70px;padding:12px 15px;flex-wrap:wrap}.pilot-pill{margin-left:auto}.month-picker{width:100%;justify-content:space-between}.shell{display:block}.sidebar{width:100%;padding:7px 9px;display:flex;gap:3px;overflow:auto;border-right:0;border-bottom:1px solid var(--line)}.sidebar-heading,.sidebar-note{display:none}.nav-link{width:auto;white-space:nowrap;padding:10px;font-size:11px}.main{padding:0 14px 35px}.source-bar{display:block;line-height:1.5}.source-bar span{display:block}.page-heading{padding-top:26px;display:block}.page-heading .button{margin-top:16px}.page-heading h1{font-size:25px}.hero{grid-template-columns:1fr}.hero-side{border-left:0;border-top:1px solid #31536b;padding:18px 25px}.hero-main{padding:22px 25px}.hero-number{font-size:36px}.metric-grid{grid-template-columns:1fr}.metric{min-height:auto}.insight-bar{grid-template-columns:repeat(2,1fr)}.insight-bar p{grid-column:1/-1;border-left:0;border-top:1px solid #cedddc;padding:15px 0 0}.workflow-layout{grid-template-columns:1fr}.workflow-list{display:flex;overflow:auto}.workflow-list button{min-width:160px}.workflow-detail ol{columns:1}.form-grid{grid-template-columns:1fr}.toolbar span:last-child{margin-left:0}.section-head{display:block}.section-head .text-link{display:inline-block;margin-top:10px}}
.hero-listed{color:#94b5c2;font-size:11px;margin-top:11px}.verification{border:1px solid #cfe8df;background:#f4fbf7;border-radius:10px;padding:15px;margin-bottom:18px}.verification p{font-size:10px;line-height:1.5;color:#69847c;margin:11px 0 0}.verification-check{justify-content:center;display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;color:#275e55!important;line-height:1.4}.verification-check input{width:16px!important;height:16px;flex:none}.verification .form-grid{align-items:end}

/* NAS MRO identity: the supplied logo, black structure, and orange actions. */
:root{
  --ink:#1d1c1b;--muted:#6f6a65;--line:#e2dbd3;--paper:#f5f2ed;
  --navy:#0c0c0d;--blue:#a84709;--teal:#e96412;--teal-dark:#bd4e08;
  --orange:#f97316;--pale:#fff1e4;--gold:#fff0de;
  --shadow:0 12px 32px rgba(34,24,15,.09)
}
.topbar{height:92px;background:#090909;color:#fff;border-bottom:3px solid var(--orange);gap:17px}
.brand-logo{width:158px;height:82px;object-fit:contain;flex:none;display:block}
.brandcopy{border-left:1px solid #39332f;padding-left:17px}
.brandcopy strong{font-size:16px;letter-spacing:-.01em;color:#fff}
.brandcopy span{color:#ff9d5c}
.pilot-pill{border-color:#5d3b27;color:#ffd3ae;background:#2a1b13}
.pulse{background:var(--orange);box-shadow:0 0 0 3px rgba(249,115,22,.17)}
.month-picker{color:#f3e9df}
.month-picker input{border-color:#5b5047;color:#fff;background:#1d1c1b;color-scheme:dark}
.shell{min-height:calc(100vh - 92px)}
.sidebar{background:#111111;border-right:1px solid #302b27}
.sidebar-heading{color:#a99483}
.nav-link{color:#d5ccc3;border-left:3px solid transparent;border-radius:0 8px 8px 0}
.nav-link:hover{background:#25201b;color:#fff}
.nav-link.active{background:#342116;color:#ff994b;border-left-color:var(--orange)}
.sidebar-note{background:#1d1a18;border-color:#3b2e25;color:#cfbfb0}
.sidebar-note strong{color:#fff}
.source-bar{color:#746c64}
.eyebrow{color:#bf4d06}
.button.secondary{color:#26211d;border-color:#d9cbbd}
.button.secondary:hover{border-color:#e96412;background:#fff8f1}
.button.primary{background:var(--orange);color:#1d130b}
.button.primary:hover{background:#ff9a4f}
.button.ghost{color:#625a53}
.hero{background:radial-gradient(circle at 70% 25%,#302016,#101010 60%);border:1px solid #2a211b}
.hero-kicker,.hero-side>span{color:#ffba82}
.hero-side{background:rgba(31,22,17,.85);border-left-color:#654028}
.hero-side strong{color:#ff9c4d}
.hero-side small,.hero-foot{color:#dfc6b2}
.progress-track{background:#423025}
.progress-fill{background:linear-gradient(90deg,#fb7921,#ffb36b)}
.hero-listed{color:#d4ac8d}
.metric{border-top:3px solid #ef6c19}
.metric span{color:#695e54}
.metric small{color:#776e66}
.text-link{color:#ae4405}
.toolbar input[type=search]:focus,.toolbar select:focus,.month-picker input:focus,
.form-grid input:focus,.form-grid select:focus,.wide-label textarea:focus{
  outline:2px solid #f28739;outline-offset:2px
}
thead{background:#1a1817}
th{color:#fff3e9;border-bottom-color:#3d3029}
td{border-bottom-color:#eee6dd}
tbody tr:hover{background:#fff8f1}
.wo-id{color:#ad4708}
.secondary-line{color:#756d65}
.mini-button{border-color:#f2bd93;color:#a9460b;background:#fff5ec}
.mini-button:hover,.mini-button.selected{border-color:#e67d33;background:#ffe6d0;color:#8e3500}
.open-button{color:#a84709}
.tag{background:#eee9e3;color:#504942}
.tag.ok{background:#fff0df;color:#9d420a}
.tag.warn{background:#ffdfbd;color:#843800}
.tag.blue{background:#f2ece7;color:#674b36}
.insight-bar{background:#fff1e3;border-color:#f1ceb0}
.insight-bar small,.insight-bar p{color:#745a46}
.insight-bar p{border-left-color:#ecc39e}
.callout{border-color:#efc49a;background:#fff2e4;color:#704b2e}
.callout strong{color:#67350d}
.workflow-list button{color:#5d554e}
.workflow-list button.active,.workflow-list button:hover{background:#fff0e2;color:#a43e00}
.workflow-detail li{color:#5d554e}
.source-summary{background:#faf6f1;border-color:#e8dbce;color:#65584d}
.icon-button{background:#f1e9e1;color:#604b3b}
.verification{border-color:#f0c6a4;background:#fff5ea}
.verification p{color:#795e48}
.verification-check{color:#8e3b07!important}
dialog::backdrop{background:rgba(9,9,9,.67)}
#toast{background:#171412;border:1px solid #e76a17}
@media(max-width:800px){
  .topbar{height:auto;min-height:80px;gap:9px}
  .brand-logo{width:105px;height:67px}
  .brandcopy{padding-left:10px}
  .brandcopy strong{font-size:13px}
  .brandcopy span{font-size:8px;letter-spacing:.12em}
  .sidebar{background:#111;border-bottom-color:#302b27}
  .sidebar::-webkit-scrollbar{height:4px}
  .sidebar::-webkit-scrollbar-thumb{background:#825039;border-radius:4px}
  .nav-link{border-left:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0}
  .nav-link.active{border-left:0;border-bottom-color:var(--orange)}
  .hero-side{border-top-color:#654028}
  .insight-bar p{border-left:0;border-top-color:#ecc39e}
}
.source-alert{border:1px solid #e5bc93;background:#fff2e4;border-radius:9px;padding:10px 13px;margin:12px 0 0;color:#744213;font-size:11px;line-height:1.5;font-weight:650}
.source-alert.stale{border-color:#d67a4b;background:#fff0e9;color:#8a340f}
.inline-link{border:0;background:transparent;padding:4px 0;cursor:pointer}
.readiness-metrics{margin:0 0 5px}
.readiness-note{margin:9px 0 30px}

[hidden]{display:none!important}
a.nav-link{text-decoration:none}
button:disabled{cursor:default;opacity:.5}

/* Concise shop screens and read-only detail cards. */
.insight-bar { grid-template-columns: repeat(2,minmax(0,1fr)); }
.deadline-note { margin: 14px 0 24px; color: var(--muted); font-size: 13px; }
.detail-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:20px 0; }
.detail-facts div { min-width:0; }
.detail-facts dt { color:#737373; font-size:12px; margin-bottom:4px; }
.detail-facts dd { margin:0; font-weight:600; overflow-wrap:anywhere; white-space:pre-wrap; }
.advanced-checks, .source-details { margin:16px 0; }
.advanced-checks summary, .source-details summary { cursor:pointer; color:#a44b00; font-weight:600; }
.source-details p { font-size:13px; line-height:1.6; }
@media(max-width:600px){ .detail-facts{grid-template-columns:1fr;} }

.wo-lookup { display:flex; align-items:center; gap:12px; margin:22px 0; flex-wrap:wrap; }
.wo-lookup label { font-weight:700; }
.wo-lookup input { padding:10px 12px; border:1px solid #d6ccc1; border-radius:8px; font:inherit; width:160px; }
.parts-dialog { width:min(1280px,96vw); max-width:96vw; padding:26px; border:1px solid #dfcbb6; border-radius:16px; max-height:90vh; overflow:auto; }
.parts-dialog::backdrop { background:rgba(0,0,0,.55); }
.parts-dialog .table-wrap { margin-top:18px; }
.parts-dialog td { vertical-align:top; }
.heading-actions { display:flex; flex-direction:column; gap:12px; align-items:flex-start; }

/* Sentence case for planner labels; source step names and identifiers stay as supplied. */
.eyebrow,.sidebar-heading,.hero-kicker,.hero-side>span,.brandcopy span,th { text-transform:none; letter-spacing:.02em; }
.material-quick-views { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:0 0 18px; }
.material-quick-views .button[aria-pressed="true"] { background:#342116; color:#fff; border-color:#bd4e08; }
.material-quick-views span { color:var(--muted); font-size:13px; margin-left:auto; }

/* NAS planner back navigation */
.planner-back{display:inline-block;margin:0 0 14px;padding:8px 12px;font-size:12px;line-height:1.35;text-align:left;max-width:100%}
.planner-back:focus-visible{outline:3px solid #ef7b27;outline-offset:3px}
.dialog-heading .planner-back{margin-bottom:12px}

.pagination{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.pagination span{margin-right:auto;color:var(--muted)}.pagination select{font:inherit;padding:10px;border:1px solid #d6ccc1;border-radius:8px}.pagination button:disabled{opacity:.45;cursor:default}

.rule-banner{background:#fff5e9;border:1px solid #e7c7a6;border-left:5px solid #e76a0b;border-radius:10px;padding:18px;margin:16px 0;line-height:1.55}.rule-banner p{margin:8px 0}.rule-banner small{color:#604b38}.outside-warning{margin:6px 0;padding:8px;background:#fff0da;border-left:4px solid #b94f00;border-radius:5px;color:#713400;font-size:13px;white-space:normal}.notes-preview{font-size:12px;margin:8px 0;max-width:340px;white-space:normal}.notes-preview summary{cursor:pointer;color:#8b3b00;font-weight:700}.notes-preview p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;line-height:1.5}.customer-rep{white-space:normal}

.alert-count{display:inline-block;background:#e56910;color:#fff;border-radius:20px;padding:2px 8px;font-size:12px;margin-left:5px}#alert-rows td{white-space:normal;min-width:130px}#alert-rows td:nth-child(4){min-width:250px;max-width:440px}

#alert-rows .primary-line,#alert-rows .secondary-line{white-space:normal;overflow:visible;text-overflow:clip;max-width:none;overflow-wrap:anywhere}
@media(max-width:1100px){#panel-alerts table{min-width:0}#panel-alerts thead{display:none}#alert-rows tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:2px solid #dfd3c6;padding:12px;gap:8px}#alert-rows td{display:block;border:0;min-width:0!important;max-width:none!important;padding:5px}#alert-rows td:nth-child(3),#alert-rows td:nth-child(4){grid-column:1/-1}#alert-rows td:nth-child(5){grid-column:1/-1;text-align:right}}

/* Keep charge and EDD beside the job at presentation zoom. */
#panel-dispositions .table-wrap table{table-layout:fixed;min-width:1080px;width:100%} #panel-dispositions th:first-child{width:250px} #panel-dispositions th:nth-child(2){width:175px} #panel-dispositions th:nth-child(3){width:185px} #panel-dispositions th:nth-child(4){width:170px} #panel-dispositions th:nth-child(5){width:145px} #panel-dispositions td{overflow-wrap:anywhere;white-space:normal} .charge-invoiced{margin-top:10px} .charge-scope{max-width:1100px} #disposition-view-details dd{white-space:pre-line}
.edd-cell{min-width:150px;vertical-align:top}.edd-date{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;margin:4px 0 7px;white-space:normal;overflow-wrap:anywhere;max-width:100%;line-height:1.3}.edd-cell .secondary-line,.edd-cell .tag{white-space:normal}.edd-cell .tag{line-height:1.35}#plan-rows td:nth-child(2),#approval-rows td:nth-child(2),#material-rows td:first-child{min-width:220px;max-width:290px;vertical-align:top}#plan-rows td:nth-child(2) .secondary-line,#approval-rows td:nth-child(2) .secondary-line,#material-rows td:first-child .secondary-line{white-space:normal;overflow-wrap:anywhere}

/* Fit the available panel width without hiding fields or shrinking the text. */
.table-wrap{container-type:inline-size;container-name:planner-table;max-width:100%;overflow:visible}
.table-wrap table{width:100%;min-width:0!important;table-layout:fixed}
.table-wrap th,.table-wrap td{min-width:0!important;white-space:normal;overflow-wrap:anywhere}
.table-wrap .primary-line,.table-wrap .secondary-line{white-space:normal;overflow:visible;text-overflow:clip;max-width:100%;overflow-wrap:anywhere}
.table-wrap .tag{max-width:100%;white-space:normal}
.toolbar input,.toolbar select{min-width:0!important;max-width:100%}
.page-heading>div,.heading-actions,.dialog-heading>div,.form-grid>label{min-width:0;max-width:100%}
.heading-actions{flex-wrap:wrap}
.dialog-heading h2,.source-summary,.rule-banner,.workflow-detail{overflow-wrap:anywhere}
.workflow-list{max-width:100%;flex-wrap:wrap;overflow:visible}
.workflow-list button{min-width:0;flex:1 1 160px;white-space:normal}
@media(max-width:800px){.sidebar{flex-wrap:wrap;overflow:visible}.nav-link{max-width:100%}}
@container planner-table (max-width:1080px){
  .table-wrap table{display:block;table-layout:auto}
  .table-wrap table thead{display:block!important;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .table-wrap table tbody{display:block;width:100%}
  .table-wrap table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 20px;width:100%;padding:16px;border-bottom:2px solid #e3d7cd;align-items:start}
  .table-wrap table tbody tr:last-child{border-bottom:0}
  .table-wrap table tbody td{display:block;width:auto!important;max-width:none!important;min-width:0!important;padding:0;border:0;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
  .table-wrap table tbody td::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:#79695e;margin-bottom:6px;line-height:1.4}
  .table-wrap table tbody td[data-label=""]::before{display:none}
  .table-wrap table tbody .row-action{grid-row:1;grid-column:2;justify-self:end;text-align:right}
  .row-action .open-button{background:#fff3e8;border:1px solid #e7b98e;border-radius:8px;font-size:13px;padding:9px 13px;white-space:normal}
  #plan-rows td:first-child,#approval-rows td:first-child{grid-row:1;grid-column:1}
  #plan-rows td:nth-child(2),#approval-rows td:nth-child(2){grid-row:2;grid-column:1}
  #plan-rows td:nth-child(3),#approval-rows td:nth-child(3){grid-row:2;grid-column:2}
  #wo-parts-rows td:first-child{grid-row:1;grid-column:1}
  #alert-rows td:first-child{grid-row:1;grid-column:1}
  #alert-rows td:nth-child(2),#alert-rows td:nth-child(3),#alert-rows td:nth-child(4){grid-column:1/-1}
  #alert-rows td:last-child{grid-row:1;grid-column:2}
  .table-wrap table tbody .empty-table-row td{grid-column:1/-1}
}
@container planner-table (max-width:440px){
  .table-wrap table tbody tr{grid-template-columns:minmax(0,1fr)}
  .table-wrap table tbody td{grid-column:1/-1!important;grid-row:auto!important}
  .table-wrap table tbody .row-action{order:-2;justify-self:start;text-align:left}
  #plan-rows td:first-child,#approval-rows td:first-child{order:-1}
}

/* Match space to the amount of information in each field. */
.main{max-width:none;padding:0 24px 32px}
.sidebar{width:218px;padding:24px 12px}
.page-heading{padding:24px 0 18px}
.hero-main{padding:22px 24px 18px}
.hero-number{margin:12px 0 16px}
.hero-side{padding:22px 20px;gap:8px}
.metric-grid{margin:12px 0 22px;gap:12px}
.metric{padding:15px 16px;min-height:100px}
.section-head{margin-bottom:12px}
.readiness-note{margin:8px 0 20px}
.insight-bar{padding:14px 18px;margin-bottom:22px;gap:14px}
.callout{padding:12px 15px;margin-bottom:18px}
.table-wrap th{padding:11px 10px}
.table-wrap td{padding:10px;vertical-align:top}
.table-wrap .mini-button{max-width:100%;padding:6px 7px;white-space:normal}
.table-wrap .open-button{max-width:100%;white-space:normal}
.outside-warning{padding:6px 8px;line-height:1.35;margin:5px 0}
.notes-preview{margin:5px 0;max-width:none}
.table-wrap .edd-date{margin:3px 0 5px}
.pagination{gap:10px;margin:14px 0}
.workflow-layout{grid-template-columns:240px minmax(0,1fr);gap:16px}
.workflow-detail{padding:20px 24px;min-height:0}
.workflow-detail h2{margin-bottom:16px}
.detail-dialog{max-width:780px;padding:22px 24px}
.parts-dialog{padding:22px}
.dialog-heading{margin-bottom:14px;gap:12px}
.dialog-heading .icon-button{flex:none}
.dialog-heading .planner-back{margin-bottom:8px}
.source-summary{padding:10px 12px;margin-bottom:14px}
.detail-facts{gap:12px 16px;margin:14px 0}
.form-grid{gap:12px}
.dialog-actions{flex-wrap:wrap;margin-top:18px}
.wide-label{margin-top:14px}
.rule-banner{padding:14px;margin:12px 0}
.wo-lookup{margin:16px 0}
.material-quick-views{gap:8px;margin-bottom:14px}

/* Simple fields use less width; WO context and next actions get more. */
@container planner-table (min-width:1081px){
  #panel-plan th:nth-child(1){width:7%}
  #panel-plan th:nth-child(2){width:25%}
  #panel-plan th:nth-child(3){width:10%}
  #panel-plan th:nth-child(4){width:13%}
  #panel-plan th:nth-child(5){width:15%}
  #panel-plan th:nth-child(6){width:9%}
  #panel-plan th:nth-child(7){width:9%}
  #panel-plan th:nth-child(8){width:7%}
  #panel-approvals th:nth-child(1){width:8%}
  #panel-approvals th:nth-child(2){width:25%}
  #panel-approvals th:nth-child(3){width:12%}
  #panel-approvals th:nth-child(4){width:13%}
  #panel-approvals th:nth-child(5){width:15%}
  #panel-approvals th:nth-child(6){width:9%}
  #panel-approvals th:nth-child(7){width:11%}
  #panel-approvals th:nth-child(8){width:7%}
  #panel-materials th:nth-child(1){width:27%}
  #panel-materials th:nth-child(2){width:10%}
  #panel-materials th:nth-child(3){width:18%}
  #panel-materials th:nth-child(4){width:6%}
  #panel-materials th:nth-child(5){width:11%}
  #panel-materials th:nth-child(6){width:8%}
  #panel-materials th:nth-child(7){width:12%}
  #panel-materials th:nth-child(8){width:8%}
  #panel-dispositions th:nth-child(1){width:27%}
  #panel-dispositions th:nth-child(2){width:14%}
  #panel-dispositions th:nth-child(3){width:18%}
  #panel-dispositions th:nth-child(4){width:14%}
  #panel-dispositions th:nth-child(5){width:10%}
  #panel-dispositions th:nth-child(6){width:17%}
  #panel-alerts th:nth-child(1){width:12%}
  #panel-alerts th:nth-child(2){width:23%}
  #panel-alerts th:nth-child(3){width:21%}
  #panel-alerts th:nth-child(4){width:37%}
  #panel-alerts th:nth-child(5){width:7%}
  #wo-parts-dialog th:nth-child(1){width:19%}
  #wo-parts-dialog th:nth-child(2),#wo-parts-dialog th:nth-child(3){width:6%}
  #wo-parts-dialog th:nth-child(4){width:13%}
  #wo-parts-dialog th:nth-child(5){width:8%}
  #wo-parts-dialog th:nth-child(6){width:18%}
  #wo-parts-dialog th:nth-child(7){width:23%}
  #wo-parts-dialog th:nth-child(8){width:7%}
}
@container planner-table (min-width:441px) and (max-width:1080px){
  .table-wrap table tbody tr{gap:10px 16px;padding:12px}
  .table-wrap table tbody td::before{margin-bottom:4px}
  #plan-rows tr,#approval-rows tr{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
  #plan-rows td:nth-child(2),#approval-rows td:nth-child(2){grid-row:2/5;grid-column:1}
  #plan-rows td:nth-child(3),#approval-rows td:nth-child(3){grid-row:2;grid-column:2}
  #plan-rows td:nth-child(4),#approval-rows td:nth-child(4){grid-row:3;grid-column:2}
  #plan-rows td:nth-child(5),#approval-rows td:nth-child(5){grid-row:4;grid-column:2}
  #plan-rows td:nth-child(6),#approval-rows td:nth-child(6){grid-row:5;grid-column:1}
  #plan-rows td:nth-child(7),#approval-rows td:nth-child(7){grid-row:5;grid-column:2}
  #material-rows td:first-child{grid-row:1/4;grid-column:1}
  #material-rows td:nth-child(2){grid-row:1;grid-column:2}
  #material-rows td:nth-child(3){grid-row:2;grid-column:2}
  #material-rows td:nth-child(5){grid-row:3;grid-column:2}
  #material-rows td:nth-child(4){grid-row:4;grid-column:1}
  #material-rows td:nth-child(6){grid-row:4;grid-column:2}
  #material-rows td:nth-child(7){grid-row:5;grid-column:1}
  #material-rows td:nth-child(8){grid-row:5;grid-column:2}
  #disposition-rows td:first-child{grid-row:1/3;grid-column:1}
  #disposition-rows td:nth-child(2){grid-row:1;grid-column:2}
  #disposition-rows td:nth-child(3){grid-row:2;grid-column:2}
  #disposition-rows td:nth-child(4){grid-row:3;grid-column:1}
  #disposition-rows td:nth-child(5){grid-row:3;grid-column:2}
  #disposition-rows td:nth-child(6){grid-row:4;grid-column:1/-1}
  #alert-rows td:nth-child(2){grid-row:2;grid-column:1}
  #alert-rows td:nth-child(3){grid-row:2;grid-column:2}
  #alert-rows td:nth-child(4){grid-row:3;grid-column:1/-1}
}
@container planner-table (min-width:600px) and (max-width:1080px){
  #wo-parts-rows tr{grid-template-columns:repeat(3,minmax(0,1fr))}
  #wo-parts-rows td:first-child{grid-row:1;grid-column:1/3}
  #wo-parts-rows .row-action{grid-row:1;grid-column:3}
  #wo-parts-rows td:nth-child(2){grid-row:2;grid-column:1}
  #wo-parts-rows td:nth-child(3){grid-row:2;grid-column:2}
  #wo-parts-rows td:nth-child(4){grid-row:2;grid-column:3}
  #wo-parts-rows td:nth-child(5){grid-row:3;grid-column:1}
  #wo-parts-rows td:nth-child(6){grid-row:3;grid-column:2}
  #wo-parts-rows td:nth-child(7){grid-row:3;grid-column:3}
  #invoice-rows tr{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1100px){.sidebar{width:190px}.main{padding:0 18px 28px}}
@media(max-width:800px){
  .main{padding:0 12px 24px}
  .sidebar{width:100%;padding:6px 8px}
  .page-heading{padding-top:20px}
  .page-heading .button{margin-top:12px}
  .workflow-layout{grid-template-columns:1fr}
  .workflow-detail{padding:18px}
  .hero-main{padding:18px 20px}
  .hero-side{padding:16px 20px}
  .metric-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
}
@media(min-width:560px) and (max-width:800px){
  .hero{grid-template-columns:minmax(0,1fr) 190px}
  .hero-side{border-top:0;border-left:1px solid #654028;justify-content:center}
  .hero-side strong{font-size:24px}
  .hero-foot{flex-wrap:wrap;gap:5px}
}
@media(max-width:440px){
  .table-wrap table tbody tr{padding:12px;gap:10px}
  .table-wrap table tbody td::before{margin-bottom:4px}
  .detail-dialog,.parts-dialog{padding:18px}
}

.linked-repair-orders>.table-wrap{margin-top:10px}

/* Readable shop typography: emphasize the job, deadline and next action.
   Supporting information keeps a consistent size instead of tiny labels. */
body{font-size:14px;line-height:1.4}
.topbar{height:82px;padding:0 24px;gap:14px}
.brand-logo{width:138px;height:72px}
.brandcopy strong{font-size:18px}
.brandcopy span,.sidebar-heading{font-size:11px;letter-spacing:.02em}
.pilot-pill,.month-picker{font-size:13px}
.month-picker input{padding:8px 10px}
.shell{min-height:calc(100vh - 82px)}
.sidebar{padding:20px 10px}
.sidebar-heading{padding:0 12px;margin-bottom:8px}
.sidebar-heading.second{margin-top:24px}
.nav-link{font-size:14px;line-height:1.3;gap:10px;padding:11px 12px;min-height:42px}
.source-bar{font-size:12px;padding:9px 0;gap:12px}
.page-heading{padding:18px 0 16px;gap:16px;align-items:center}
.page-heading h1{font-size:32px;line-height:1.15;margin:0 0 6px}
.eyebrow{font-size:11px;line-height:1.4;margin-bottom:6px}
.subhead{font-size:14px;line-height:1.45;max-width:900px}
.button{font-size:14px;line-height:1.3;padding:9px 12px;min-height:38px;white-space:normal}
.planner-back{font-size:13px;min-height:34px;padding:6px 10px;margin:0 10px 8px 0;vertical-align:middle}
.page-heading .planner-back+.eyebrow{display:inline-block;vertical-align:middle;margin:0 0 8px}
.hero-main{padding:18px 22px 16px}
.hero-kicker,.hero-side>span{font-size:12px;letter-spacing:.02em}
.hero-number{font-size:42px;line-height:1.1;margin:9px 0 12px}
.hero-foot{font-size:12px;line-height:1.4;gap:8px;flex-wrap:wrap;margin-top:9px}
.hero-side{padding:18px;gap:7px;justify-content:center}
.hero-side strong{font-size:30px;line-height:1.15}
.hero-side small{font-size:12px;line-height:1.4}
.metric-grid{margin:12px 0 18px;gap:12px}
.metric{padding:12px 14px;min-height:96px}
.metric span{font-size:13px;line-height:1.35}
.metric strong{font-size:28px;line-height:1.15;margin:6px 0 4px;overflow-wrap:anywhere}
.metric small{font-size:12px;line-height:1.4}
.metric-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.metric-title .text-link{font-size:12px;padding:0;line-height:1.4}
.section-head{gap:12px;margin-bottom:10px;align-items:center}
.section-head h2{font-size:21px;line-height:1.25;margin-bottom:4px}
.section-head p,.deadline-note,.readiness-note{font-size:13px;line-height:1.4}
.text-link{font-size:14px;line-height:1.35;white-space:normal}
.readiness-note{margin:6px 0 16px}
.insight-bar{padding:12px 16px;margin-bottom:16px;gap:12px}
.insight-bar strong{font-size:28px;line-height:1.15}
.insight-bar small,.insight-bar p,.callout,.source-alert{font-size:13px;line-height:1.4}
.callout{margin-top:0;padding:10px 12px;margin-bottom:14px}
.toolbar{gap:8px;margin-bottom:10px}
.toolbar input[type=search],.toolbar select{font-size:14px;line-height:1.3;padding:8px 10px;height:38px}
.toolbar .check{font-size:13px;line-height:1.3}
.toolbar span:last-child,.material-quick-views span{font-size:12px}
.table-wrap th{font-size:12px;line-height:1.35;padding:10px;letter-spacing:0}
.table-wrap td{font-size:14px;line-height:1.4;padding:10px}
.wo-id{font-size:16px;line-height:1.35}
.secondary-line,.notes-preview{font-size:13px;line-height:1.4;margin-top:3px}
.primary-line{font-size:14px;line-height:1.4}
.money{font-size:15px;line-height:1.4}
.money.unknown{font-size:13px}
.edd-date{font-size:16px;line-height:1.3}
.tag{font-size:12px;line-height:1.3;padding:4px 6px}
.mini-button,.open-button{font-size:14px;line-height:1.3;min-height:34px}
.open-button{padding:5px}
.outside-warning{font-size:13px;line-height:1.4}
.outside-warning .secondary-line{font-size:12px}
.table-footnote,.pagination{font-size:13px;line-height:1.4}
.pagination select{padding:8px 10px;min-height:38px}
.workflow-list button{font-size:14px;line-height:1.35;padding:10px 12px}
.workflow-detail h2{font-size:24px;line-height:1.2;margin-bottom:12px}
.workflow-detail ol{column-gap:32px}
.workflow-detail li{font-size:14px;line-height:1.45;padding:4px 0}
.detail-dialog,.parts-dialog{font-size:14px;line-height:1.4}
.dialog-heading h2{font-size:25px;line-height:1.2}
.icon-button{width:34px;height:34px;line-height:1}
.source-summary{font-size:13px;line-height:1.45}
.detail-facts dt{font-size:13px;line-height:1.35;margin-bottom:3px}
.detail-facts dd{font-size:15px;line-height:1.4}
.form-grid label,.wide-label{font-size:13px;line-height:1.35;gap:5px}
.form-grid input,.form-grid select,.wide-label input,.wide-label textarea{font-size:14px;line-height:1.4;padding:8px 10px;min-height:38px;max-width:100%}
.verification p,.source-details p{font-size:13px;line-height:1.45}
.dialog-actions{gap:8px;margin-top:16px}
.wo-lookup{gap:10px;margin:14px 0}
.wo-lookup input{font-size:14px;padding:8px 10px;min-height:38px}
.material-quick-views{gap:8px;margin-bottom:12px}
@container planner-table (min-width:1081px){
  #panel-plan th:nth-child(2){width:23%}
  #panel-plan th:nth-child(8){width:6%}
  #panel-approvals th:nth-child(2){width:24%}
  #panel-plan th:last-child,#panel-approvals th:last-child,#panel-alerts th:last-child{width:8%}
  #panel-alerts th:nth-child(4){width:36%}
}
@container planner-table (max-width:1080px){
  .table-wrap table tbody td::before{font-size:12px;line-height:1.3;margin-bottom:3px}
  .row-action .open-button{font-size:14px;line-height:1.3;padding:7px 10px;min-height:34px}
}
@media(max-width:800px){
  .topbar{height:auto;min-height:72px;padding:10px 12px;gap:8px}
  .brand-logo{width:100px;height:58px}
  .brandcopy{padding-left:10px}
  .brandcopy strong{font-size:16px}
  .brandcopy span{font-size:11px}
  .sidebar{gap:4px;padding:6px 8px}
  .nav-link{font-size:13px;padding:9px 10px;gap:7px;min-height:38px;margin:0}
  .source-bar span{display:inline}
  .page-heading{padding:14px 0}
  .page-heading h1{font-size:28px}
  .page-heading .planner-back{margin:0 8px 7px 0}
  .page-heading .button:not(.planner-back){margin-top:10px}
  .hero-number{font-size:36px}
  .hero-main{padding:16px 18px}
  .hero-side{padding:14px 18px}
  .hero-side strong{font-size:26px}
  .metric-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:10px;margin-bottom:16px}
  .metric{padding:11px 12px;min-height:0}
  .metric strong{font-size:26px}
  .heading-actions{gap:8px}
  .section-head .text-link{margin-top:4px}
}
@media(max-width:440px){
  .brand-logo{width:82px;height:54px}
  .brandcopy strong{font-size:15px}
  .pilot-pill{padding:6px 9px;font-size:12px}
  .page-heading h1{font-size:26px}
  .hero-number{font-size:34px}
  .metric-grid{grid-template-columns:1fr}
  .metric{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center}
  .metric>strong{grid-column:2;grid-row:1/3;margin:0;font-size:25px;max-width:100%}
  .metric>small{grid-column:1;grid-row:2}
  .metric-title{grid-column:1;grid-row:1}
  .detail-dialog,.parts-dialog{padding:16px}
}

/* Ordinary wording wraps between words. Only identifiers and free-text
   notes may break an unusually long token. Controls keep their label intact. */
.table-wrap th,.table-wrap td,
.table-wrap .primary-line,.table-wrap .secondary-line,
.table-wrap .tag,.table-wrap .edd-date,.table-wrap .outside-warning,
.button,.text-link,.nav-link{overflow-wrap:normal;word-break:normal;hyphens:manual}
#alert-rows .primary-line,#alert-rows .secondary-line,
#plan-rows td:nth-child(2) .secondary-line,#approval-rows td:nth-child(2) .secondary-line,
#material-rows td:first-child .secondary-line{overflow-wrap:normal}
.table-wrap .identifier-line{overflow-wrap:anywhere!important}
.notes-preview p,.detail-facts dd,.source-details p{overflow-wrap:break-word}
.table-wrap .mini-button,.table-wrap .open-button{white-space:nowrap;overflow-wrap:normal;word-break:normal;flex-shrink:0}
.table-wrap td.money{white-space:nowrap;overflow-wrap:normal}
.table-wrap .row-action{white-space:nowrap}
#panel-dispositions td{overflow-wrap:normal;word-break:normal}
.dialog-heading h2,.source-summary,.rule-banner,.workflow-detail,.metric strong{overflow-wrap:normal;word-break:normal}
.metric-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
@container planner-table (min-width:1081px){
  /* Reserve complete controls and values, then give the remaining width to
     WO context. Keep the widths compatible with the fixed table layout. */
  #panel-plan th:nth-child(1){width:104px}
  #panel-plan th:nth-child(2){width:auto}
  #panel-plan th:nth-child(3){width:11%}
  #panel-plan th:nth-child(4){width:14%}
  #panel-plan th:nth-child(5){width:14%}
  #panel-plan th:nth-child(6){width:116px}
  #panel-plan th:nth-child(7){width:116px}
  #panel-plan th:nth-child(8){width:90px}
  #panel-approvals th:nth-child(1){width:124px}
  #panel-approvals th:nth-child(2){width:auto}
  #panel-approvals th:nth-child(3){width:11%}
  #panel-approvals th:nth-child(4){width:14%}
  #panel-approvals th:nth-child(5){width:13%}
  #panel-approvals th:nth-child(6){width:116px}
  #panel-approvals th:nth-child(7){width:12%}
  #panel-approvals th:nth-child(8){width:90px}
  #panel-alerts th:nth-child(1){width:14%}
  #panel-alerts th:nth-child(2){width:22%}
  #panel-alerts th:nth-child(3){width:22%}
  #panel-alerts th:nth-child(4){width:auto}
  #panel-alerts th:nth-child(5){width:104px}
  #wo-parts-dialog th:nth-child(1){width:auto}
  #wo-parts-dialog th:nth-child(2){width:80px}
  #wo-parts-dialog th:nth-child(3){width:64px}
  #wo-parts-dialog th:nth-child(4){width:13%}
  #wo-parts-dialog th:nth-child(5){width:110px}
  #wo-parts-dialog th:nth-child(6){width:18%}
  #wo-parts-dialog th:nth-child(7){width:23%}
  #wo-parts-dialog th:nth-child(8){width:90px}
}

/* WO identity and priority retain whole labels at desktop and narrow widths. */
.wo-identity { display:flex; flex-wrap:wrap; align-items:center; gap:5px 7px; min-width:0; }
.priority-button { flex:0 0 auto; padding:4px 7px; border:1px solid #d8cec4; border-radius:6px; background:#fff; color:#655a50; font:600 12px/1.25 Arial,sans-serif; white-space:nowrap; overflow-wrap:normal; word-break:normal; cursor:pointer; }
.priority-button:hover { border-color:#ed6b00; }
.priority-button.important, .priority-badge.important { color:#884100; background:#fff0d8; border-color:#e7ad69; }
.priority-button.rush, .priority-badge.rush { color:#9a271b; background:#ffe6dc; border-color:#db7e57; }
.routine-button { flex:0 0 auto; padding:4px 7px; border:1px solid #dfb58e; border-radius:6px; color:#954509; background:#fff2e5; font:700 12px/1.25 Arial,sans-serif; white-space:nowrap; overflow-wrap:normal; word-break:normal; cursor:pointer; }
.routine-button:hover { background:#ffe4c8; border-color:#ed6b00; }
.routine-button:focus-visible { outline:2px solid #ed6b00; outline-offset:2px; }
.customer-deadline { margin-bottom:6px; font-size:13px; line-height:1.35; overflow-wrap:anywhere; }
.customer-deadline strong { display:block; font-size:12px; }
#panel-routine .table-wrap table { table-layout:fixed; width:100%; }
#panel-routine th:nth-child(1) { width:25%; }
#panel-routine th:nth-child(5) { width:28%; }
#panel-routine th:last-child { width:9%; }
#panel-routine td { vertical-align:top; overflow-wrap:anywhere; }
#panel-routine .open-button { display:block; white-space:nowrap; }
#priority-title { font-size:24px; }
#routine-dialog .form-grid > label { min-width:0; }

.dialog-heading h2 .wo-id { font-size:inherit; }

.dialog-sync-notice{margin:0 0 12px;padding:10px 12px;font-size:13px;line-height:1.4}

.creator-notice{margin:18px 0 0;padding-top:10px;border-top:1px solid var(--line);color:#70685f;font-size:12px;line-height:1.5;overflow-wrap:break-word;text-align:left}

/* On-demand WO context stays readable without permanent wide columns. */
.priority-notes p,.po-tracking,.missing-parts p{white-space:pre-wrap;overflow-wrap:anywhere}
.tracking-missing{color:#944000;font-weight:600}
.purchasing-report{margin:12px 0}
.purchasing-report #purchasing-report-summary{margin:10px 0;color:var(--muted,#625b55);font-size:.9rem}
#routine-wos-dialog table{table-layout:fixed;width:100%}
#routine-wos-dialog th,#routine-wos-dialog td{vertical-align:top;overflow-wrap:anywhere}
#routine-wos-dialog th:first-child{width:16%}
#routine-wos-dialog th:nth-child(3){width:30%}
#routine-wos-dialog th:last-child{width:12%}

/* Expanded material context spans its WO rather than stretching a narrow cell. */
.priority-note-badge{display:inline-flex;align-items:center;padding:3px 6px;border-radius:5px;background:#fff0d8;color:#884100;border:1px solid #e6bb80;font-size:12px;font-weight:700;white-space:nowrap;line-height:1.3}
.edd-label{font-weight:650}
.edd-date.missing-date{font-size:14px;font-weight:600;color:var(--muted)}
.wo-material-actions{display:flex;align-items:center;gap:5px 8px;flex-wrap:wrap;margin:8px 0}
.wo-material-actions.stacked-actions{flex-direction:column;align-items:flex-start;gap:4px}
.wo-material-actions .open-button{padding:4px 0;min-height:30px}
.wo-material-actions .buy-download{font-size:13px;min-height:32px;padding:6px 8px;white-space:normal;border-color:#e8b88d;color:#994000;background:#fff4e9}
.context-toggle{display:block;border:0;background:transparent;color:var(--teal-dark);font-weight:750;font-size:13px;line-height:1.35;text-align:left;padding:4px 0;margin-top:3px;max-width:100%;white-space:normal}
.context-toggle::before{content:'▸ ';}
.context-toggle[aria-expanded="true"]::before{content:'▾ ';}
#material-rows .material-summary-row>td{padding-bottom:12px;vertical-align:top}
#material-rows .material-context-row>td{padding:12px 14px!important;background:#fbf6f0;max-width:none}
.material-context-section+.material-context-section{margin-top:14px}
.material-context-section h3{font-size:14px;font-weight:750;line-height:1.35;margin:0 0 8px}
.material-context-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px}
.material-context-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:7px;padding:9px 11px;font-size:13px;line-height:1.4}
.material-context-card>strong{display:block;font-size:14px;overflow-wrap:anywhere}
.material-context-card .secondary-line{display:block;margin:2px 0 4px;font-size:13px}
.material-context-card .po-tracking{white-space:pre-wrap;overflow-wrap:anywhere}
@container planner-table (min-width:1081px){
  #panel-materials th:nth-child(1){width:25%}
  #panel-materials th:nth-child(2){width:12%}
  #panel-materials th:nth-child(3){width:18%}
  #panel-materials th:nth-child(4){width:6%}
  #panel-materials th:nth-child(5){width:12%}
  #panel-materials th:nth-child(6){width:9%}
  #panel-materials th:nth-child(7){width:9%}
  #panel-materials th:nth-child(8){width:9%}
}
@container planner-table (max-width:1080px){
  #material-rows .material-context-row{display:block;padding:0;border-bottom:2px solid var(--line)}
  #material-rows .material-context-row>td{display:block;grid-column:1/-1;grid-row:auto}
  #material-rows .material-context-row>td::before{display:none}
}

/* Familiar expandable WO rows, with the planner's NAS identity. */
.wo-expand-button{flex:none;width:26px;min-height:26px;border:1px solid #ddd4ca;border-radius:5px;background:#fff;color:#a84709;font-size:17px;line-height:1;padding:2px;cursor:pointer}
.wo-expand-button:hover,.wo-expand-button[aria-expanded="true"]{background:#fff0e2;border-color:#df985e}
.outside-tag{display:inline-block;margin:5px 0 2px;color:#914000;background:#fff0d8;white-space:normal}
.table-wrap tbody tr[data-stripe="even"]{background:#f8f6f3}
.table-wrap tbody tr[data-stripe]:hover{background:#fff7ee}
.wo-context-row>td{padding:12px 14px!important;background:#fbf6f0;max-width:none!important}
.wo-context-section{margin-bottom:12px}
.wo-context-section:last-child{margin-bottom:0}
.wo-context-section h3{font-size:14px;line-height:1.35;margin:0 0 8px}
.wo-context-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.wo-context-grid>div{min-width:0}
.wo-context-grid .detail-facts{margin:0;gap:8px 12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.wo-context-grid .detail-facts dt{font-size:12px}
.wo-context-grid .detail-facts dd{font-size:13px}
@container planner-table (max-width:1080px){
  .table-wrap table tbody .wo-context-row{display:block;padding:0}
  .table-wrap table tbody .wo-context-row>td{display:block;grid-column:1/-1;grid-row:auto}
  .table-wrap table tbody .wo-context-row>td::before{display:none}
}
@media(max-width:650px){.wo-context-grid{grid-template-columns:minmax(0,1fr)}}


/* Familiar order-list density for the October team review. */
.toolbar:has(input[type="search"]){padding:10px;background:#fff;border:1px solid var(--line);border-radius:8px;align-items:center}
.toolbar input[type="search"]{width:min(340px,100%);flex:1 1 240px}
.toolbar select{flex:0 1 auto}
.toolbar .check{white-space:nowrap}
.table-wrap{border-radius:8px}
.table-wrap th{padding:9px 8px;line-height:1.35}
.table-wrap td{padding:8px;line-height:1.4}
.secondary-line{color:#655e57}
.metric{min-height:84px;padding:10px 13px}
.metric strong{margin:4px 0 3px}
.metric-grid{gap:10px;margin:10px 0 14px}
.hero-main{padding:15px 20px}
.hero-side{padding:15px 18px}
.hero-number{font-size:38px;margin:8px 0 10px}
.page-heading{padding:18px 0 14px}
.page-heading h1{font-size:30px}
.wo-number-button{display:inline-block;border:0;background:transparent;padding:0;font:inherit;line-height:inherit;text-align:left;cursor:pointer;flex:none;white-space:nowrap}
.wo-number-button:hover{text-decoration:underline;text-underline-offset:3px}
.wo-number-button:focus-visible{outline:2px solid #ed6b00;outline-offset:3px;border-radius:3px}
.list-jump{align-self:center}
#approved-work-heading{scroll-margin-top:100px}
@media(min-width:801px){
  .topbar{height:80px}
  .brand-logo{height:68px;width:140px}
  .shell{min-height:calc(100vh - 80px);align-items:flex-start}
  .sidebar{position:sticky;top:80px;width:210px;height:calc(100vh - 80px);overflow-y:auto;padding:18px 10px}
  .sidebar-heading.second{margin-top:24px}
  .nav-link{padding:10px 11px;gap:9px;font-size:14px;line-height:1.4}
  .table-wrap thead{position:sticky;top:80px;z-index:2}
}
@container planner-table (min-width:1081px){
  #panel-plan th:nth-child(1){width:80px}
  #panel-plan th:nth-child(2){width:auto}
  #panel-plan th:nth-child(3){width:11%}
  #panel-plan th:nth-child(4){width:14%}
  #panel-plan th:nth-child(5){width:15%}
  #panel-plan th:nth-child(6){width:100px}
  #panel-plan th:nth-child(7){width:110px}
  #panel-plan th:nth-child(8){width:86px}
  #panel-approvals th:nth-child(1){width:104px}
  #panel-approvals th:nth-child(2){width:auto}
  #panel-approvals th:nth-child(3){width:13%}
  #panel-approvals th:nth-child(4){width:14%}
  #panel-approvals th:nth-child(5){width:16%}
  #panel-approvals th:nth-child(6){width:100px}
  #panel-approvals th:nth-child(7){width:15%}
  #panel-approvals th:nth-child(8){width:86px}
  #panel-plan .mini-button,#panel-approvals .mini-button{font-size:13px;min-height:30px;padding:5px}
  .table-wrap .open-button{font-size:13px;min-height:30px;padding:5px 2px}
}
@container planner-table (min-width:700px) and (max-width:1080px){
  .table-wrap table tbody tr{gap:10px 14px;padding:12px}
  #plan-rows tr:not(.wo-context-row),#approval-rows tr:not(.wo-context-row){grid-template-columns:repeat(3,minmax(0,1fr))}
  #plan-rows tr:not(.wo-context-row)>td,#approval-rows tr:not(.wo-context-row)>td{grid-row:auto;grid-column:auto}
  #plan-rows tr:not(.wo-context-row)>td:first-child,#approval-rows tr:not(.wo-context-row)>td:first-child{grid-row:1;grid-column:1}
  #plan-rows tr:not(.wo-context-row)>.row-action,#approval-rows tr:not(.wo-context-row)>.row-action{grid-row:1;grid-column:3}
  #plan-rows td:nth-child(2),#approval-rows td:nth-child(2){grid-row:2!important;grid-column:1!important}
  #plan-rows td:nth-child(3),#approval-rows td:nth-child(3){grid-row:2!important;grid-column:2!important}
  #plan-rows td:nth-child(4),#approval-rows td:nth-child(4){grid-row:2!important;grid-column:3!important}
  #plan-rows td:nth-child(5),#approval-rows td:nth-child(5){grid-row:3!important;grid-column:1!important}
  #plan-rows td:nth-child(6),#approval-rows td:nth-child(6){grid-row:3!important;grid-column:2!important}
  #plan-rows td:nth-child(7),#approval-rows td:nth-child(7){grid-row:3!important;grid-column:3!important}
  #material-rows .material-summary-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  #material-rows .material-summary-row>td{grid-row:auto;grid-column:auto}
  #material-rows .material-summary-row>td:first-child{grid-row:1;grid-column:1}
  #material-rows .material-summary-row>td:nth-child(2){grid-row:1;grid-column:2}
  #material-rows .material-summary-row>td:nth-child(3){grid-row:1;grid-column:3}
  #material-rows .material-summary-row>td:nth-child(5){grid-row:2;grid-column:2}
  #material-rows .material-summary-row>td:nth-child(6){grid-row:2;grid-column:3}
  #material-rows .material-summary-row>td:nth-child(7){grid-row:3;grid-column:1/3}
  #material-rows .material-summary-row>td:nth-child(8){grid-row:3;grid-column:3}
}
@media(max-width:800px){
  .list-jump{margin-top:10px}
  .toolbar:has(input[type="search"]){padding:8px}
}

/* Keep short window views compact without a tall empty identity column. */
@container planner-table (min-width:441px) and (max-width:699px){
  #plan-rows tr:not(.wo-context-row),#approval-rows tr:not(.wo-context-row){grid-template-columns:repeat(2,minmax(0,1fr))}
  #plan-rows td:nth-child(2),#approval-rows td:nth-child(2){grid-row:2;grid-column:1}
  #plan-rows td:nth-child(3),#approval-rows td:nth-child(3){grid-row:2;grid-column:2}
  #plan-rows td:nth-child(4),#approval-rows td:nth-child(4){grid-row:3;grid-column:1}
  #plan-rows td:nth-child(5),#approval-rows td:nth-child(5){grid-row:3;grid-column:2}
  #plan-rows td:nth-child(6),#approval-rows td:nth-child(6){grid-row:4;grid-column:1}
  #plan-rows td:nth-child(7),#approval-rows td:nth-child(7){grid-row:4;grid-column:2}
  #material-rows .material-summary-row>td:first-child{grid-row:1;grid-column:1}
  #material-rows .material-summary-row>td:nth-child(2){grid-row:1;grid-column:2}
  #material-rows .material-summary-row>td:nth-child(3){grid-row:2;grid-column:1}
  #material-rows .material-summary-row>td:nth-child(5){grid-row:2;grid-column:2}
  #material-rows .material-summary-row>td:nth-child(4){grid-row:3;grid-column:1}
  #material-rows .material-summary-row>td:nth-child(6){grid-row:3;grid-column:2}
  #material-rows .material-summary-row>td:nth-child(7){grid-row:4;grid-column:1}
  #material-rows .material-summary-row>td:nth-child(8){grid-row:4;grid-column:2}
}

.qa-form-button{display:block;margin-top:.35rem;}
#qa-form-dialog .facts-grid{gap:.6rem;}

/* Compact weekly production and permanent QA report access. */
#panel-plan .plan-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;min-width:82px;padding:7px 9px;line-height:1.2}
@container (min-width:1081px){#panel-plan table:not(#weekly-table) th:first-child{width:104px}}
.weekly-production{margin:14px 0 20px;border:1px solid #ded7ce;border-radius:12px;background:#fff;padding:14px}
.weekly-production>summary{font-size:21px;font-weight:750;color:#24211e;cursor:pointer}
.weekly-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:12px 0}
.weekly-toolbar label{font-size:13px;font-weight:650;display:flex;flex-direction:column;gap:4px}
.weekly-toolbar select{min-width:170px;width:auto;padding:7px 9px;font-size:14px}
.weekly-toolbar>span{font-size:14px;color:#716b65;margin-left:auto}
.weekly-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:10px}
.weekly-card{border:1px solid #e2dcd5;border-top:3px solid #ef6a00;border-radius:8px;padding:12px;min-width:0}
.weekly-dept-title{background:none;border:0;padding:0;margin:0 0 3px;font-weight:750;font-size:16px;text-align:left;cursor:pointer;color:#2b2521}
.weekly-card>.secondary-line{display:block;font-size:12px;margin:0}
.weekly-values{display:flex;flex-wrap:wrap;gap:8px 12px;margin:11px 0 7px}
.weekly-values>div{flex:1 1 108px;min-width:max-content}
.weekly-values span{display:block;font-size:12px;color:#716b65}.weekly-values strong{display:block;font-size:20px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}.weekly-gap{color:#ad4900}
.weekly-meter{height:5px;background:#eee9e4;border-radius:4px;overflow:hidden}.weekly-meter span{height:100%;background:#ef6a00;display:block}
.weekly-card p{font-size:12px;line-height:1.55;margin:9px 0 0}.weekly-work-list{margin-top:14px}.weekly-work-list>summary{font-weight:700;cursor:pointer}
#panel-plan #weekly-table th{width:auto}#panel-plan #weekly-table th:nth-child(1){width:18%}#panel-plan #weekly-table th:nth-child(2){width:24%}#panel-plan #weekly-table th:nth-child(5){width:29%}
.weekly-blockers{display:flex;flex-wrap:wrap;gap:4px}.weekly-blockers .tag{font-size:12px;white-space:normal}.weekly-parts{margin-top:5px}.weekly-parts summary{font-size:13px;font-weight:700;cursor:pointer;color:#a84900}.weekly-parts>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:6px}.weekly-parts p{font-size:13px;margin:6px 0;padding:7px;background:#fff6ed;border-radius:5px;overflow-wrap:anywhere}
.weekly-billing-note{font-size:12px;color:#756e67;margin-top:10px}.weekly-billing-note p{line-height:1.5;max-width:850px}
.qa-saved-report{border:1px solid #ded7ce;border-left:3px solid #ef6a00;border-radius:8px;padding:14px;margin:12px 0}.qa-saved-report h3{margin:0;font-size:17px}.qa-report-links,.qa-signed-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.qa-signed-row{margin-top:12px}.qa-report-links .button,.qa-signed-row .button{font-size:14px;padding:8px 12px}#qa-signed-upload{padding:15px;background:#faf6f0;border-radius:8px}#qa-signed-file{padding:8px}
@media(max-width:650px){.weekly-toolbar>span{width:100%;margin-left:0}.weekly-toolbar label{flex:1;min-width:170px}.weekly-toolbar select{width:100%}.weekly-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}.weekly-values strong{font-size:18px}}
.nav-link>.nav-icon{flex:0 0 19px}
.nav-label{min-width:0}
.keep-together{white-space:nowrap}

/* Completed EDDs use a dated outcome; pending work never receives this color. */
.edd-met-identity .wo-id{color:#17633b}
.edd-met-badge{background:#e4f4e9;color:#17633b;border:1px solid #b7ddc4;white-space:nowrap!important}
.target-date-label{margin-top:7px}
