:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, .primary-link { border: 0; border-radius: .55rem; padding: .65rem .9rem; background: #163b72; color: white; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .55; cursor: progress; }
.production-app { min-height: 100vh; }
.topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.5rem; background: white; border-bottom: 1px solid #dfe4ec; }
h1, h2, h3, p { margin-top: 0; }
.topbar h1 { margin-bottom: 0; font-size: 1.35rem; }
.eyebrow { margin-bottom: .2rem; color: #5e6b80; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.session-panel { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.app-main { width: min(1180px, calc(100% - 2rem)); margin: 1.25rem auto 3rem; display: grid; gap: 1rem; }
.search-panel, .case-workspace, .empty-state, .notice, .auth-screen { background: white; border: 1px solid #dfe4ec; border-radius: .8rem; padding: 1rem; box-shadow: 0 5px 24px rgba(23,32,51,.05); }
.auth-screen { width: min(520px, calc(100% - 2rem)); margin: 10vh auto; }
.public-enquiry-shell { width: min(680px, calc(100% - 2rem)); margin: 4vh auto; }
.public-enquiry-card { background: white; border: 1px solid #dfe4ec; border-radius: .8rem; padding: 1.25rem; box-shadow: 0 5px 24px rgba(23,32,51,.05); }
.public-enquiry-card input:not([type="checkbox"]):not([type="file"]) { border: 1px solid #b8c2d1; border-radius: .55rem; padding: .65rem .75rem; }
.turnstile-field { min-height: 92px; }
.verification-status { margin: .5rem 0 0; color: #5e6b80; font-size: .9rem; }
.search-row { display: flex; gap: .6rem; }
.search-row input { flex: 1; min-width: 0; border: 1px solid #b8c2d1; border-radius: .55rem; padding: .65rem .75rem; }
.case-header { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #e5e9f0; margin-bottom: 1rem; }
.stage-list { display: grid; gap: .35rem; padding-left: 1.4rem; }
.stage-list li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.notice-error { border-color: #c35f5f; background: #fff6f6; }
dl { display: grid; grid-template-columns: minmax(9rem, 1fr) 2fr; gap: .4rem 1rem; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
fieldset { border: 1px solid #dfe4ec; border-radius: .7rem; margin: 1rem 0; }
label { display: grid; gap: .35rem; margin: .7rem 0; }
textarea, select, input { max-width: 100%; }
@media (max-width: 680px) {
  .topbar, .case-header, .search-row { align-items: stretch; flex-direction: column; }
  .session-panel { justify-content: flex-start; }
  dl { grid-template-columns: 1fr; }
}

/* Low-typing SafetyAid Assessment */
.low-typing-assessment { padding: 1rem; }
.low-typing-intro { margin: .25rem 0 1rem; padding: .8rem .9rem; border-radius: .65rem; background: #eef7f5; color: #284c46; }
.quick-choice-group { margin: .9rem 0; padding: .85rem; background: #fbfcfe; }
.quick-choice-group legend { padding: 0 .35rem; font-weight: 800; }
.quick-choice-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.quick-choice { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.65rem; padding: .55rem .75rem; border: 1px solid #cbd5e1; border-radius: 999px; background: white; color: #20334d; font-weight: 700; box-shadow: none; }
.quick-choice:hover { border-color: #7f9ab8; background: #f6f9fc; }
.quick-choice-selected { border-color: #1b6f61; background: #e5f5f0; color: #164f46; }
.quick-choice-mark { display: inline-grid; width: 1.25rem; height: 1.25rem; place-items: center; border-radius: 999px; background: #e8eef6; color: #37506d; font-size: .8rem; }
.quick-choice-selected .quick-choice-mark { background: #1f8a75; color: white; }
.quick-choice-help { margin: .55rem 0 0; color: #718096; font-size: .82rem; }
.generated-assessment-output { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.generated-label { display: block; margin-bottom: .35rem; color: #465a73; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.generated-text { min-height: 5rem; padding: .8rem; border: 1px solid #dbe3ed; border-radius: .65rem; background: #f8fafc; line-height: 1.45; }
.generated-text-empty { color: #718096; font-style: italic; }
.optional-note { margin: .9rem 0; border: 1px solid #dbe3ed; border-radius: .65rem; background: white; }
.optional-note summary { cursor: pointer; padding: .75rem .85rem; font-weight: 800; color: #29425f; }
.optional-note[open] { padding-bottom: .2rem; }
.optional-note label { padding: 0 .85rem .75rem; }
.auto-chart-plan { margin: .9rem 0; padding: .85rem; border: 1px solid #dbe3ed; border-radius: .65rem; background: #fbfcfe; }
.auto-chart-plan h3 { margin-bottom: .55rem; font-size: 1rem; }
.auto-chart-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.auto-chart-chip { display: inline-flex; padding: .45rem .65rem; border-radius: 999px; background: #eaf2ff; color: #24538b; font-weight: 700; }
.auto-chart-empty { margin: 0; color: #718096; }
.assessment-date-field { max-width: 18rem; }
.assessment-date-field small { color: #718096; font-size: .8rem; }

@media (max-width: 680px) {
  .generated-assessment-output { grid-template-columns: 1fr; }
  .quick-choice { width: 100%; justify-content: flex-start; border-radius: .65rem; }
  .assessment-date-field { max-width: none; }
}

/* Approved Measurement Catalog V1 workspace */
.measurement-workspace { padding: 1rem; }
.measurement-intro { margin: .25rem 0 1rem; padding: .8rem .9rem; border-radius: .65rem; background: #eef5ff; color: #294866; }
.measurement-empty-state { padding: 1rem; border: 1px solid #e4b6b6; border-radius: .65rem; background: #fff7f7; }
.measurement-empty-state p { margin: .35rem 0 0; color: #6d4a4a; }
.measurement-chart-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.measurement-chart-tab { background: white; color: #29425f; border: 1px solid #cbd5e1; box-shadow: none; }
.measurement-chart-tab-active { background: #173f73; color: white; border-color: #173f73; }
.measurement-chart-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin: 1rem 0 .75rem; }
.measurement-chart-heading h3 { margin: .15rem 0 .25rem; }
.measurement-chart-heading p { margin: 0; color: #66758a; }
.measurement-chart-kicker { color: #5d6f86; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.measurement-verification-badge { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; padding: .4rem .65rem; font-size: .78rem; font-weight: 800; }
.measurement-verification-unverified { background: #fff4dd; color: #805a12; }
.measurement-verification-verified { background: #e4f5ed; color: #176249; }
.measurement-verification-not-required { background: #edf1f6; color: #526073; }
.measurement-chart-layout { display: grid; grid-template-columns: minmax(20rem, .95fr) minmax(28rem, 1.05fr); gap: 1rem; align-items: start; }
.measurement-guide-panel, .measurement-entry-panel { border: 1px solid #dbe3ed; border-radius: .75rem; background: white; overflow: hidden; }
.measurement-guide-panel { padding: .75rem; position: sticky; top: 1rem; }
.measurement-guide-panel img { display: block; width: 100%; height: auto; border-radius: .5rem; background: white; }
.measurement-guide-panel a { display: inline-flex; margin-top: .65rem; color: #1c5da8; font-weight: 700; text-decoration: none; }
.measurement-entry-header { display: grid; grid-template-columns: minmax(15rem, 1.6fr) minmax(7rem, .55fr) minmax(9rem, .7fr); gap: .7rem; padding: .7rem .8rem; background: #f4f7fb; color: #5b6b80; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.measurement-entry-row { display: grid; grid-template-columns: minmax(15rem, 1.6fr) minmax(7rem, .55fr) minmax(9rem, .7fr); gap: .7rem; align-items: center; padding: .75rem .8rem; border-top: 1px solid #edf1f5; }
.measurement-entry-copy { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .65rem; align-items: start; }
.measurement-entry-copy label { margin: 0; font-weight: 800; color: #20334d; }
.measurement-entry-copy small { display: block; margin-top: .2rem; color: #718096; line-height: 1.35; }
.measurement-code { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .3rem; border-radius: 999px; background: #e9f2ff; color: #1559a6; font-weight: 900; }
.measurement-value-control input, .measurement-state-control select { width: 100%; border: 1px solid #cbd5e1; border-radius: .55rem; padding: .58rem .62rem; background: white; }
.measurement-value-control input:disabled { background: #f3f5f8; color: #9aa6b5; }
.measurement-verification-panel { margin-top: 1rem; padding: .9rem; border: 1px solid #dbe3ed; border-radius: .75rem; background: #fbfcfe; }
.measurement-verification-copy h3 { margin-bottom: .35rem; }
.measurement-verification-copy p { margin-bottom: .7rem; color: #65758a; }
.measurement-verification-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.unable-measure-path { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #dbe3ed; }
.unable-measure-path textarea { min-height: 5rem; }
.measurement-attestation { display: flex; grid-template-columns: auto 1fr; align-items: start; gap: .55rem; }
.measurement-attestation input { margin-top: .18rem; }

@media (max-width: 980px) {
  .measurement-chart-layout { grid-template-columns: 1fr; }
  .measurement-guide-panel { position: static; }
}
@media (max-width: 680px) {
  .measurement-chart-heading { flex-direction: column; }
  .measurement-entry-header { display: none; }
  .measurement-entry-row { grid-template-columns: 1fr; gap: .5rem; }
  .measurement-value-control, .measurement-state-control { padding-left: 2.85rem; }
  .measurement-value-control input, .measurement-state-control select { min-height: 2.75rem; font-size: 1rem; }
  .measurement-verification-actions .quick-choice { width: 100%; }
}

.low-typing-product-configuration {
  display: grid;
  gap: 1rem;
}
.configuration-assessment-scope,
.product-catalog-selector,
.selected-configuration-items,
.configuration-generated-summary {
  border: 1px solid var(--line, #dbe3ef);
  border-radius: 0.8rem;
  padding: 0.9rem;
  background: #fff;
}
.configuration-assessment-scope h3,
.product-catalog-selector h3,
.selected-configuration-items h3,
.configuration-generated-summary h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.configuration-assessment-scope p,
.product-catalog-selector p,
.configuration-empty {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
}
.readonly-choice-list .quick-choice {
  cursor: default;
  pointer-events: none;
}
.product-catalog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.secondary-compact-button {
  border: 1px solid #cad5e5;
  background: #f8fafc;
  color: #173766;
  border-radius: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.product-catalog-card {
  display: grid;
  gap: 0.28rem;
  text-align: left;
  border: 1px solid #d6deea;
  background: #fff;
  color: #0f2747;
  border-radius: 0.75rem;
  padding: 0.8rem;
}
.product-catalog-card:hover {
  border-color: #7f9bd7;
  background: #f8fbff;
}
.product-catalog-card-selected {
  border-color: #3e6ed1;
  background: #edf4ff;
}
.product-catalog-card strong {
  font-size: 1rem;
}
.product-catalog-card small,
.product-catalog-family {
  color: #64748b;
  font-size: 0.78rem;
}
.selected-product-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
}
.selected-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid #dbe3ef;
  border-radius: 0.7rem;
  padding: 0.75rem;
  background: #f8fafc;
}
.selected-product-main {
  display: grid;
  gap: 0.2rem;
}
.selected-product-main span,
.selected-product-main small {
  color: #64748b;
}
.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 2rem 2.4rem 2rem;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #fff;
}
.quantity-stepper button {
  border: 0;
  background: #f1f5f9;
  min-height: 2rem;
  font-weight: 800;
  color: #163768;
}
.quantity-stepper output {
  text-align: center;
  font-weight: 800;
}
.remove-product-button {
  border: 1px solid #e2b7b7;
  background: #fff5f5;
  color: #9b1c1c;
  border-radius: 0.55rem;
  padding: 0.5rem 0.65rem;
}
.configuration-generated-summary dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
  margin: 0.7rem 0 0;
}
.configuration-generated-summary dl div {
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.65rem;
  background: #f8fafc;
}
.configuration-generated-summary dt {
  color: #64748b;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.configuration-generated-summary dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
}
@media (max-width: 760px) {
  .product-catalog-heading,
  .selected-product-card {
    grid-template-columns: 1fr;
    display: grid;
  }
  .secondary-compact-button {
    white-space: normal;
  }
}


/* Quotation low-typing V1 */
.low-typing-quotation{display:grid;gap:18px}.quotation-section-heading,.product-catalog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.quotation-section-heading h3,.quotation-lines h3,.quotation-dates h3{margin:0}.quotation-section-heading p,.quotation-lines p,.quotation-dates p{margin:4px 0 0}.quotation-currency{font-weight:800;background:#eef4ff;border-radius:999px;padding:6px 10px}.quotation-lines{display:grid;gap:12px}.quotation-line-card{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,240px) minmax(150px,200px);gap:14px;align-items:end;border:1px solid #dce4ef;border-radius:12px;padding:14px;background:#fff}.quotation-line-identity{display:grid;gap:3px}.quotation-line-identity span{font-size:12px;color:#667085}.quotation-line-identity strong{font-size:16px}.quotation-line-identity small{color:#667085}.quotation-line-total{display:grid;gap:3px;text-align:right}.quotation-line-total span{font-size:12px;color:#667085}.quotation-charge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.quotation-charge{border:1px solid #dce4ef;border-radius:12px;padding:14px}.quotation-charge legend{font-weight:800;padding:0 4px}.quotation-charge label,.quotation-custom-toggle label,.quotation-dates label{display:grid;gap:6px;margin-top:10px}.quotation-custom-toggle{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.secondary-compact-button.selected{border-color:#17866f;background:#e8f6f1}.quotation-dates{display:grid;gap:12px;border:1px solid #dce4ef;border-radius:12px;padding:14px}.quotation-dates>.quick-choice-group{margin:0}.quotation-valid-through{padding:9px 11px;background:#f7f9fc;border-radius:8px}.quotation-calculation{display:grid;gap:8px;border:1px solid #cdd9ea;border-radius:12px;background:#f8fbff;padding:14px}.quotation-calculation>div{display:flex;justify-content:space-between;gap:20px}.quotation-calculation .quotation-total{font-size:17px;border-top:1px solid #dce4ef;padding-top:10px;margin-top:2px}.quotation-calculation p{margin:6px 0 0;color:#667085;font-size:12px}@media(max-width:760px){.quotation-line-card{grid-template-columns:1fr}.quotation-line-total{text-align:left}.quotation-charge-grid{grid-template-columns:1fr}}

/* Customer Approval low-typing V1 */
.low-typing-customer-approval{display:grid;gap:16px}.low-typing-customer-approval>.quick-choice-group{margin:0}.approval-date-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dce4ef;border-radius:12px;padding:14px;background:#fff}.approval-date-panel h3{margin:0 0 4px}.approval-date-panel p{margin:0;color:#667085}.approval-date-panel input{max-width:210px}.approval-person-panel{display:grid;gap:12px;border:1px solid #dce4ef;border-radius:12px;padding:14px;background:#fff}.approval-person-panel legend{font-weight:800;padding:0 4px}.approval-person-panel label{display:grid;gap:6px}.approval-carried-value{margin:0;padding:9px 11px;background:#f7f9fc;border-radius:8px;color:#475467}.approval-exception-panel{display:grid;gap:8px;border:1px solid #e3d6ad;border-radius:12px;padding:14px;background:#fffaf0}.approval-exception-panel h3,.approval-exception-panel p{margin:0}.approval-exception-panel p{color:#7a6941}.approval-exception-panel label{display:grid;gap:6px}.approval-rejection-panel{border-color:#efc8c8;background:#fff7f7}.approval-rejection-panel p{color:#8a4e4e}.approval-evidence-panel{border:1px solid #dce4ef;border-radius:12px;padding:12px 14px;background:#fff}.approval-evidence-panel summary{cursor:pointer;font-weight:800}.approval-evidence-panel label{display:grid;gap:6px;margin-top:12px}@media(max-width:760px){.approval-date-panel{align-items:stretch;flex-direction:column}.approval-date-panel input{max-width:none}.approval-person-panel .quick-choice{width:100%;justify-content:flex-start;border-radius:.65rem}}

/* Advance Payment low-typing V1 */
.low-typing-advance-payment{display:grid;gap:16px}
.payment-summary-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.payment-summary-heading h2{margin:0 0 4px}.payment-summary-heading p{margin:0;color:#667085}
.payment-status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;white-space:nowrap}
.payment-status-due{background:#fff4dd;color:#805a12}.payment-status-complete{background:#e4f5ed;color:#176249}
.payment-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.payment-summary-grid>div{display:grid;gap:4px;padding:12px;border:1px solid #dce4ef;border-radius:12px;background:#fff}
.payment-summary-grid span{font-size:12px;color:#667085}.payment-summary-grid strong{font-size:16px;color:#172b4d}
.payment-summary-grid .payment-summary-emphasis{border-color:#b9d9cf;background:#f1faf7}
.payment-record-panel{display:grid;gap:14px}
.payment-amount-choice,.payment-method-choice{margin:0}
.payment-amount-field{max-width:340px;margin-top:12px}.payment-amount-field small,.payment-reference-field small{color:#667085}
.payment-amount-field input[readonly]{background:#f4f7fb;color:#334155;font-weight:800}
.payment-date-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dce4ef;border-radius:12px;padding:14px;background:#fff}
.payment-date-panel h3{margin:0 0 4px}.payment-date-panel p{margin:0;color:#667085}.payment-date-panel input{max-width:210px}
.payment-reference-field{border:1px solid #dce4ef;border-radius:12px;padding:14px;background:#fff;margin:0}
.payment-evidence-panel,.payment-exception-panel{border:1px solid #dce4ef;border-radius:12px;padding:12px 14px;background:#fff}
.payment-evidence-panel summary,.payment-exception-panel summary{cursor:pointer;font-weight:800}.payment-evidence-panel label{margin-top:12px}
.payment-verification-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #cdd9ea;border-radius:12px;background:#f8fbff;padding:14px}
.payment-verification-panel h3{margin:0 0 4px}.payment-verification-panel p{margin:0;color:#667085}
.payment-verification-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.payment-ledger{display:grid;gap:10px;border:1px solid #dce4ef;border-radius:12px;padding:14px;background:#fff}
.payment-ledger-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.payment-ledger-heading h3{margin:0 0 4px}.payment-ledger-heading p{margin:0;color:#667085}.payment-ledger-heading>span{font-size:12px;color:#667085}
.payment-ledger-empty{margin:6px 0;color:#667085}
.payment-ledger-list{display:grid;gap:8px}
.payment-ledger-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(100px,.45fr) minmax(145px,.6fr) auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid #edf1f5}
.payment-ledger-row:first-child{border-top:0}.payment-ledger-row>div:first-child{display:grid;gap:3px}.payment-ledger-row>div:first-child span{font-size:12px;color:#667085}
.payment-ledger-status{justify-self:start;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:800;text-transform:capitalize}
.payment-ledger-status-verified{background:#e4f5ed;color:#176249}.payment-ledger-status-pending-verification{background:#fff4dd;color:#805a12}.payment-ledger-status-rejected{background:#fff0f0;color:#8a3f3f}
.payment-ledger-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.payment-ledger-actions button,.payment-exception-panel button{min-height:36px}
.payment-exception-panel{border-color:#e3d6ad;background:#fffaf0}.payment-exception-panel p{color:#7a6941}
.payment-no-advance-panel{display:grid;gap:10px;border:1px solid #b9d9cf;border-radius:12px;padding:14px;background:#f1faf7}.payment-no-advance-panel h3,.payment-no-advance-panel p{margin:0}
.institutional-authorization-panel{display:grid;gap:12px;border:1px solid #bfd7ee;border-radius:12px;padding:14px;background:#f5f9ff}.institutional-authorization-panel h3,.institutional-authorization-panel p{margin:0}.institutional-authorization-panel label{display:grid;gap:6px}.institutional-authorization-panel details{border:1px solid #d9e5f1;border-radius:10px;padding:10px 12px;background:#fff}.institutional-authorization-panel summary{cursor:pointer;font-weight:800}.institutional-authorization-panel details label{margin-top:10px}.institutional-authorization-note{padding:9px 11px;border-radius:8px;background:#eef4ff;color:#415f84}.institutional-authorization-record{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:1px solid #b9d9cf;border-radius:12px;padding:12px;background:#f1faf7}.institutional-authorization-record>div{display:grid;gap:3px}.institutional-authorization-record span{font-size:12px;color:#667085}.institutional-authorization-record strong{color:#176249}@media(max-width:680px){.institutional-authorization-record{grid-template-columns:1fr}}
@media(max-width:980px){.payment-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-ledger-row{grid-template-columns:1fr 1fr}.payment-ledger-actions{justify-content:flex-start}}
@media(max-width:680px){.payment-summary-heading,.payment-date-panel,.payment-verification-panel,.payment-ledger-heading{align-items:stretch;flex-direction:column}.payment-summary-grid{grid-template-columns:1fr}.payment-date-panel input{max-width:none}.payment-verification-actions{justify-content:stretch}.payment-verification-actions button{width:100%}.payment-ledger-row{grid-template-columns:1fr}.payment-ledger-actions{justify-content:stretch}.payment-ledger-actions button{width:100%}}

/* Quality Control low-typing V1 */
.low-typing-quality-control{display:grid;gap:14px;padding:14px}
.low-typing-quality-control>.low-typing-intro{margin:0}
.qc-date-panel,.qc-pass-all-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dce4ef;border-radius:12px;padding:14px;background:#fff}
.qc-date-panel h4,.qc-pass-all-panel h4{margin:0 0 4px}.qc-date-panel p,.qc-pass-all-panel p{margin:0;color:#667085}.qc-date-panel input{max-width:210px}
.qc-pass-all-panel .quick-choice{flex:0 0 auto}
.qc-checklist-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.qc-check-item{margin:0;padding:12px;background:#fff}.qc-check-item legend{font-weight:800;padding:0 4px}.qc-check-item .quick-choice-list{margin-top:4px}
.qc-check-item label{margin:10px 0 0}.qc-check-item input{width:100%;border:1px solid #cbd5e1;border-radius:.55rem;padding:.58rem .62rem}
.qc-check-item-fail{border-color:#efc8c8;background:#fffafa}.qc-fail-choice{border-color:#e2c2c2}.qc-fail-choice-selected{border-color:#b54848;background:#fff0f0;color:#823434}.qc-fail-choice-selected .quick-choice-mark{background:#b54848;color:#fff}
.qc-pass-note{margin-top:8px;border-top:1px solid #edf1f5;padding-top:8px}.qc-pass-note summary{cursor:pointer;color:#526176;font-size:13px;font-weight:700}.qc-pass-note label{margin-bottom:0}
.qc-overall-findings{margin:0}.qc-overall-findings textarea{min-height:72px}
@media(max-width:820px){.qc-checklist-entry{grid-template-columns:1fr}.qc-date-panel,.qc-pass-all-panel{align-items:stretch;flex-direction:column}.qc-date-panel input{max-width:none}.qc-pass-all-panel .quick-choice{width:100%;justify-content:flex-start}}

/* Delivery / Fitting low-typing V1 */
.low-typing-delivery-fitting{display:grid;gap:14px;padding:14px}
.low-typing-delivery-fitting>.low-typing-intro{margin:0}
.delivery-date-panel,.delivery-normal-success-panel,.delivery-authority-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dce4ef;border-radius:12px;padding:14px;background:#fff}
.delivery-date-panel h4,.delivery-normal-success-panel h4,.delivery-authority-panel h4{margin:0 0 4px}.delivery-date-panel p,.delivery-normal-success-panel p,.delivery-authority-panel p{margin:0;color:#667085}.delivery-date-panel input{max-width:210px}
.delivery-recipient-panel{display:grid;gap:12px;margin:0;padding:14px;background:#fff}.delivery-recipient-panel>legend{font-weight:800;padding:0 4px}.delivery-recipient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.delivery-recipient-grid label{display:grid;gap:6px;margin:0}.delivery-recipient-role{margin:0}.delivery-authority-panel{background:#fffaf0;border-color:#e3d6ad}.delivery-authority-confirmed{background:#f1faf7;border-color:#b9d9cf}
.delivery-normal-success-panel .quick-choice{flex:0 0 auto}
.delivery-item-grid{display:grid;gap:12px}.delivery-item-card{margin:0;padding:14px;background:#fff}.delivery-item-card>legend{font-weight:800;padding:0 4px}.delivery-item-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-bottom:12px;padding:9px 11px;border-radius:8px;background:#f7f9fc;color:#475467}.delivery-item-carryforward{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(220px,1.2fr);gap:12px;align-items:end}.delivery-item-carryforward label{display:grid;gap:6px;margin:0}.delivery-item-carryforward small,.delivery-exception-reason small{color:#667085}.delivery-outcome-group,.delivery-fitting-status-group{margin:12px 0 0}.delivery-exception-choice{border-color:#e4c9c9}.delivery-exception-reason{display:grid;gap:6px;margin:12px 0 0;padding:12px;border:1px solid #efc8c8;border-radius:10px;background:#fff8f8}.delivery-validation-note{margin:10px 0 0;padding:9px 11px;border-radius:8px;background:#fff1f1;color:#8a4040;font-weight:700}.delivery-item-unavailable{background:#f8f9fb;color:#667085}.delivery-item-unavailable-note{margin:0}.delivery-notes-panel{margin:0}.delivery-save-draft{width:100%}
@media(max-width:820px){.delivery-date-panel,.delivery-normal-success-panel,.delivery-authority-panel{align-items:stretch;flex-direction:column}.delivery-date-panel input{max-width:none}.delivery-recipient-grid,.delivery-item-carryforward{grid-template-columns:1fr}.delivery-normal-success-panel .quick-choice,.delivery-authority-panel .quick-choice{width:100%;justify-content:flex-start}.delivery-item-summary{flex-direction:column}}

/* Training / Handover low-typing V1 */
.low-typing-training-handover{display:grid;gap:14px;padding:14px}
.low-typing-training-handover>.low-typing-intro{margin:0}
.training-blocker-summary{border:1px solid #e4d7b6;border-radius:12px;background:#fffaf0;padding:12px 14px}.training-blocker-summary h3{margin:0 0 6px}.training-blocker-summary ul{margin:0;padding-left:20px}
.training-date-panel,.training-ack-panel,.training-required-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dce4ef;border-radius:12px;padding:14px;background:#fff}.training-date-panel h4,.training-ack-panel h4,.training-required-heading h4{margin:0 0 4px}.training-date-panel p,.training-ack-panel p,.training-required-heading p{margin:0;color:#667085}.training-date-panel input{max-width:210px}
.training-method-group{margin:0}.training-manual-method{margin-top:10px}.training-manual-method summary,.training-recipient-edit summary,.training-item-notes-panel summary,.training-optional-panel summary,.training-ack-identity-panel summary{cursor:pointer;font-weight:800}.training-manual-method label,.training-recipient-edit label,.training-item-notes-panel label,.training-optional-panel label,.training-ack-identity-panel label{display:grid;gap:6px;margin-top:10px}
.training-recipient-panel{display:grid;gap:12px;margin:0;padding:14px;background:#fff}.training-recipient-panel>legend{font-weight:800;padding:0 4px}.training-carried-recipient{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:9px;background:#f1faf7;border:1px solid #b9d9cf}.training-carried-recipient>div{display:grid;gap:2px}.training-carried-recipient span,.training-carried-recipient small{color:#667085}.training-person-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:10px;align-items:end;margin-top:10px}.training-person-row button{min-height:42px}
.training-ack-panel{background:#fffaf0;border-color:#e3d6ad}.training-ack-confirmed{background:#f1faf7;border-color:#b9d9cf}.training-ack-panel .quick-choice{flex:0 0 auto}
.training-required-panel{display:grid;gap:12px}.training-required-heading .quick-choice{flex:0 0 auto}.training-item-card{border:1px solid #dce4ef;border-radius:12px;padding:14px;background:#fff}.training-item-card h5{margin:0 0 4px}.training-item-card>p{margin:0 0 10px;color:#667085}.training-instruction-list{display:grid;gap:8px}.training-instruction-list label{display:flex;gap:9px;align-items:flex-start;padding:9px 11px;border:1px solid #e1e7ef;border-radius:9px;background:#fbfcfe}.training-instruction-list label.training-instruction-complete{border-color:#b9d9cf;background:#f1faf7}.training-instruction-list input{margin-top:3px}.training-item-notes-panel{margin-top:10px}.training-optional-panel,.training-ack-identity-panel{border:1px solid #dce4ef;border-radius:12px;padding:12px 14px;background:#fff}.training-save-draft{width:100%}
@media(max-width:820px){.training-date-panel,.training-ack-panel,.training-required-heading{align-items:stretch;flex-direction:column}.training-date-panel input{max-width:none}.training-ack-panel .quick-choice,.training-required-heading .quick-choice{width:100%;justify-content:flex-start}.training-person-row{grid-template-columns:1fr}}

/* Follow-up low-typing V1 */
.followup-blocker-summary{border:1px solid #e4d7b6;border-radius:12px;background:#fffaf0;padding:12px 14px}.followup-blocker-summary h3{margin:0 0 6px}.followup-blocker-summary ul{margin:0;padding-left:20px}
.followup-low-typing-intro{margin:12px 0;padding:12px 14px;border-radius:10px;background:#eef9f5;color:#285b4b}.followup-contact-panel,.followup-draft-panel{display:grid;gap:12px;padding:14px;border:1px solid #dce4ef;border-radius:12px;background:#fff}.followup-contact-time-panel,.followup-normal-success-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px;border:1px solid #dce4ef;border-radius:10px;background:#fff}.followup-contact-time-panel h4,.followup-normal-success-panel h4{margin:0 0 4px}.followup-contact-time-panel p,.followup-normal-success-panel p{margin:0;color:#667085}.followup-contact-time-panel input{max-width:220px}.followup-quick-group{margin:0;padding:0;border:0}.followup-quick-group>legend{font-weight:800;margin-bottom:8px}.followup-legacy-select{margin-top:8px}.followup-legacy-select summary,.followup-optional-panel summary,.followup-exception-panel summary{cursor:pointer;font-weight:800}.followup-legacy-select label,.followup-optional-panel label,.followup-exception-panel label{display:grid;gap:6px;margin-top:10px}.followup-optional-panel,.followup-exception-panel{margin:0;padding:12px;border:1px solid #dce4ef;border-radius:10px;background:#fff}.followup-exception-panel{background:#fffaf3;border-color:#ead8b8}.followup-exception-panel>fieldset{margin-top:12px}.followup-unreachable-warning{padding:10px 12px;border-radius:8px;background:#fff4e5;color:#8a5617}.followup-primary-action{width:100%}
@media(max-width:820px){.followup-contact-time-panel,.followup-normal-success-panel{align-items:stretch;flex-direction:column}.followup-contact-time-panel input{max-width:none}.followup-normal-success-panel .quick-choice{width:100%;justify-content:flex-start}}


/* Orders Modern UI V2 — shared stage workspace */
.workflow-stage-card{gap:.9rem}.stage-workspace-cockpit{display:grid;grid-template-columns:minmax(0,1fr) 18rem;gap:.7rem;align-items:stretch}.stage-workspace-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.stage-workspace-metrics article{display:grid;align-content:start;gap:.16rem;min-height:5.35rem;padding:.7rem .76rem;border:1px solid #e1e8f1;border-radius:.65rem;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);box-shadow:0 3px 10px rgba(27,44,70,.035)}.stage-workspace-metrics article>span{color:#7a889b;font-size:.55rem;font-weight:850;letter-spacing:.055em;text-transform:uppercase}.stage-workspace-metrics article>strong{color:#19304d;font-size:.78rem;line-height:1.2}.stage-workspace-metrics article>small{margin-top:auto;color:#738198;font-size:.58rem;line-height:1.25}.stage-workspace-state-ready-to-work{border-color:#cde8dc!important;background:linear-gradient(180deg,#f8fdfb 0%,#f1faf6 100%)!important}.stage-workspace-state-ready-to-work>strong{color:#247258!important}.stage-workspace-state-needs-attention{border-color:#eed9ac!important;background:linear-gradient(180deg,#fffdf8 0%,#fff8e9 100%)!important}.stage-workspace-state-needs-attention>strong{color:#9a6420!important}.stage-workspace-state-closed{border-color:#cee8dc!important;background:linear-gradient(180deg,#f7fcfa 0%,#eef9f4 100%)!important}.stage-workspace-state-closed>strong{color:#276f58!important}.stage-workspace-guide{display:grid;align-content:start;gap:.35rem;padding:.78rem .82rem;border:1px solid #d9e5f1;border-radius:.68rem;background:linear-gradient(145deg,#f7faff 0%,#fff 70%)}.stage-workspace-guide .eyebrow{margin:0;color:#5c78a0;font-size:.54rem;font-weight:850;letter-spacing:.075em;text-transform:uppercase}.stage-workspace-guide h2{margin:0;color:#173250;font-size:.88rem}.stage-workspace-guide>p:not(.eyebrow){margin:.08rem 0 .32rem;color:#60718a;font-size:.61rem;line-height:1.45}.stage-workspace-guide dl{display:grid;gap:.34rem;margin:0;padding-top:.4rem;border-top:1px solid #e5ebf3}.stage-workspace-guide dl>div{display:flex;justify-content:space-between;gap:.65rem}.stage-workspace-guide dt{color:#7b899c;font-size:.54rem;font-weight:750}.stage-workspace-guide dd{margin:0;color:#334a67;font-size:.57rem;font-weight:800;text-align:right}.stage-workspace-integrity-note{display:grid;grid-template-columns:1.25rem 1fr;gap:.4rem;align-items:start;margin-top:.22rem;padding:.5rem;border-radius:.5rem;color:#436a5c;background:#edf8f3}.stage-workspace-integrity-note>span{display:grid;width:1.2rem;height:1.2rem;place-items:center;border-radius:50%;color:#fff;background:#35a57c;font-size:.6rem;font-weight:900}.stage-workspace-integrity-note p{margin:0;font-size:.55rem;line-height:1.35}.stage-workspace-integrity-note strong{color:#285e4e}.workflow-stage-card>section[aria-label$="workspace"]{box-shadow:0 3px 12px rgba(25,43,70,.025)}
@media(max-width:980px){.stage-workspace-cockpit{grid-template-columns:1fr}.stage-workspace-guide{grid-template-columns:minmax(0,1.4fr) minmax(13rem,.8fr);column-gap:1rem}.stage-workspace-guide .eyebrow,.stage-workspace-guide h2,.stage-workspace-guide>p{grid-column:1}.stage-workspace-guide dl,.stage-workspace-integrity-note{grid-column:2}.stage-workspace-guide dl{grid-row:1/3}}
@media(max-width:680px){.stage-workspace-metrics{grid-template-columns:1fr}.stage-workspace-guide{display:grid;grid-template-columns:1fr}.stage-workspace-guide .eyebrow,.stage-workspace-guide h2,.stage-workspace-guide>p,.stage-workspace-guide dl,.stage-workspace-integrity-note{grid-column:1;grid-row:auto}.stage-workspace-metrics article{min-height:auto}}

/* Orders Modern UI V3 — compact Closure workspace */
.case-closure-workspace-compact{display:grid;gap:.85rem;padding:.8rem}.closure-workspace-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:.15rem .1rem}.closure-workspace-heading h2{margin:.08rem 0 .18rem;color:#162f4c;font-size:1.05rem}.closure-workspace-heading p{margin:0;color:#65758d;font-size:.68rem}.closure-kicker{color:#71839a;font-size:.54rem;font-weight:850;letter-spacing:.075em;text-transform:uppercase}.closure-status-badge,.closure-evidence-lock{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:.34rem .58rem;font-size:.58rem;font-weight:850;white-space:nowrap}.closure-status-ready-to-close{color:#8a5b16;background:#fff4dd;border:1px solid #edd7aa}.closure-status-blocked{color:#9a3f3f;background:#fff0f0;border:1px solid #efcccc}.closure-status-closed{color:#286e58;background:#edf9f4;border:1px solid #cce7db}.closure-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.closure-summary-grid article{display:grid;gap:.12rem;min-height:4.75rem;padding:.68rem .72rem;border:1px solid #e1e8f1;border-radius:.64rem;background:#fff}.closure-summary-grid article>span,.closure-evidence-grid article>span{color:#7a889b;font-size:.52rem;font-weight:850;letter-spacing:.055em;text-transform:uppercase}.closure-summary-grid article>strong{color:#213b59;font-size:.76rem}.closure-summary-grid article>small{margin-top:auto;color:#728096;font-size:.55rem;line-height:1.25}.closure-summary-pass{border-color:#cae5d9!important;background:#f6fcf9!important}.closure-summary-pass strong{color:#277257!important}.closure-summary-attention{border-color:#eed5ad!important;background:#fffaf0!important}.closure-summary-attention strong{color:#9b6520!important}.closure-blocker-panel{padding:.7rem .8rem;border:1px solid #edcf9f;border-radius:.65rem;background:#fff8ec}.closure-blocker-panel h3{margin:0 0 .35rem;color:#89591a;font-size:.74rem}.closure-blocker-panel ul{margin:0;padding-left:1rem;color:#734b1c;font-size:.62rem}.closure-evidence-panel{display:grid;gap:.62rem;padding:.74rem;border:1px solid #dce6ef;border-radius:.72rem;background:linear-gradient(180deg,#fbfdff 0%,#fff 100%)}.closure-evidence-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.closure-evidence-heading h3{margin:.08rem 0 0;color:#193552;font-size:.86rem}.closure-evidence-lock{color:#526b87;background:#f0f5fa;border:1px solid #d9e4ee}.closure-evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.closure-evidence-grid article{display:grid;gap:.18rem;padding:.62rem;border:1px solid #e4e9f0;border-radius:.58rem;background:#fff}.closure-evidence-grid article p{margin:0;color:#3f536d;font-size:.62rem;line-height:1.4}.closure-evidence-summary{grid-column:1/-1;background:#f6fbf9!important;border-color:#d5e9df!important}.closure-evidence-summary p{color:#315d4f!important;font-weight:650}.closure-integrity-details{overflow:hidden;border:1px solid #dce5ef;border-radius:.68rem;background:#fff}.closure-integrity-details>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.72rem .78rem;cursor:pointer;list-style:none;color:#263f5e;font-size:.65rem;font-weight:850;background:#f7f9fc}.closure-integrity-details>summary::-webkit-details-marker{display:none}.closure-integrity-details>summary:before{content:"›";display:inline-grid;width:1.1rem;height:1.1rem;place-items:center;border-radius:50%;color:#4c6a8d;background:#e8f0f8;transition:transform .18s ease}.closure-integrity-details[open]>summary:before{transform:rotate(90deg)}.closure-integrity-details>summary>span{margin-right:auto}.closure-integrity-details>summary>small{color:#6b7b90;font-size:.55rem;font-weight:750}.closure-integrity-details>section{padding:.72rem}.closure-integrity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.48rem;margin:0;padding:0;list-style:none;counter-reset:closure-check}.closure-integrity-list>li{counter-increment:closure-check}.closure-integrity-list article{display:grid;gap:.2rem;height:100%;padding:.6rem .65rem;border:1px solid #e1e7ee;border-radius:.56rem;background:#fbfcfe}.closure-integrity-list article>p{margin:0;color:#68778c;font-size:.56rem;line-height:1.4}.closure-integrity-title{display:flex;align-items:flex-start;gap:.38rem}.closure-integrity-title>span{display:grid;flex:0 0 auto;width:1.12rem;height:1.12rem;place-items:center;border-radius:50%;color:#fff;font-size:.58rem;font-weight:900}.closure-integrity-title>p{margin:0;color:#2e4561;font-size:.6rem;font-weight:800;line-height:1.3}.closure-integrity-pass .closure-integrity-title>span{background:#36a77d}.closure-integrity-fail{border-color:#efcccc!important;background:#fff8f8!important}.closure-integrity-fail .closure-integrity-title>span{background:#cb5b5b}.closure-integrity-evidence{color:#466b5d!important}.closure-state-note{margin:0;padding:.62rem .7rem;border-radius:.58rem;font-size:.61rem;font-weight:650}.closure-state-ready{color:#386456;background:#eff9f5}.closure-state-blocked{color:#875526;background:#fff5e8}.closure-action-panel{display:grid;gap:.55rem;padding:.72rem;border:1px solid #dce5ef;border-radius:.68rem;background:#fff}.closure-action-panel>legend{padding:0 .28rem;color:#203a58;font-weight:850}.closure-action-panel>p{margin:0;color:#66778c;font-size:.61rem}.closure-action-panel label{display:grid;gap:.35rem;font-size:.62rem;font-weight:750}.closure-action-panel textarea{min-height:4.8rem}.closure-action-panel button{justify-self:start}
@media(max-width:980px){.closure-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.closure-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.closure-integrity-list{grid-template-columns:1fr}}
@media(max-width:620px){.closure-workspace-heading,.closure-evidence-heading{flex-direction:column}.closure-summary-grid,.closure-evidence-grid{grid-template-columns:1fr}.closure-evidence-summary{grid-column:auto}.closure-status-badge,.closure-evidence-lock{align-self:flex-start}.closure-integrity-details>summary{align-items:flex-start;flex-wrap:wrap}}

/* Orders Modern UI V4 — Production Workspace */
.production-phase-cockpit{display:grid;gap:.7rem;padding:.78rem;border:1px solid #dce6f0;border-radius:.72rem;background:linear-gradient(180deg,#fbfdff 0%,#fff 100%);box-shadow:0 3px 12px rgba(25,43,70,.025)}
.production-phase-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:.05rem .05rem .1rem}.production-phase-heading .eyebrow{margin:0 0 .16rem;color:#667d9d;font-size:.54rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.production-phase-heading h2{margin:0;color:#17314e;font-size:.98rem}.production-phase-heading>div>p:not(.eyebrow){margin:.18rem 0 0;color:#687991;font-size:.61rem}.production-phase-target{display:grid;min-width:10.5rem;gap:.12rem;padding:.52rem .62rem;border:1px solid #dbe4ed;border-radius:.56rem;background:#fff}.production-phase-target span{color:#78879b;font-size:.52rem;font-weight:850;letter-spacing:.055em;text-transform:uppercase}.production-phase-target strong{color:#2f4b6d;font-size:.68rem}
.production-checkpoint-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:0;padding:0;list-style:none}.production-checkpoint{display:grid;grid-template-columns:1.8rem minmax(0,1fr) auto;gap:.55rem;align-items:center;min-height:5.25rem;padding:.62rem .68rem;border:1px solid #e1e7ef;border-radius:.64rem;background:#fff}.production-checkpoint-number{display:grid;width:1.8rem;height:1.8rem;place-items:center;border-radius:50%;color:#687991;background:#eef2f7;font-size:.63rem;font-weight:900}.production-checkpoint-copy{display:grid;min-width:0;gap:.1rem}.production-checkpoint-stage{color:#75859a;font-size:.51rem;font-weight:850;letter-spacing:.045em;text-transform:uppercase}.production-checkpoint-copy strong{color:#243b58;font-size:.7rem}.production-checkpoint-copy small{color:#6d7d91;font-size:.56rem;line-height:1.3}.production-checkpoint-status{padding:.23rem .4rem;border-radius:999px;font-size:.52rem;font-weight:850;white-space:nowrap}.production-checkpoint-complete{border-color:#d3e9df;background:#f8fcfa}.production-checkpoint-complete .production-checkpoint-number{color:#fff;background:#34a77d}.production-checkpoint-status-complete{color:#2b6d59;background:#e7f5ee}.production-checkpoint-active{border-color:#9fb9dd;background:linear-gradient(135deg,#eef5ff 0%,#fafcff 100%);box-shadow:0 5px 16px rgba(54,91,142,.08)}.production-checkpoint-active .production-checkpoint-number{color:#fff;background:#466ca8}.production-checkpoint-active .production-checkpoint-copy strong{color:#244f82}.production-checkpoint-status-active{color:#285d94;background:#e2eefb}.production-checkpoint-upcoming{background:#fafbfc}.production-checkpoint-status-upcoming{color:#738197;background:#eef1f5}
.production-control-note{display:grid;grid-template-columns:1.25rem minmax(0,1fr);gap:.45rem;align-items:start;padding:.5rem .58rem;border-radius:.52rem;color:#456b5d;background:#edf8f3}.production-control-note>span{display:grid;width:1.2rem;height:1.2rem;place-items:center;border-radius:50%;color:#fff;background:#36a77d;font-size:.58rem;font-weight:900}.production-control-note p{margin:0;font-size:.56rem;line-height:1.4}.production-control-note strong{color:#2e604f}
.production-internal-order-package,.production-workshop-workspace,.production-qc-workspace{display:grid;gap:.65rem}.production-internal-order-package>h2,.production-workshop-workspace>h2,.production-qc-workspace>h2{margin:0;color:#16304e;font-size:1rem}.production-internal-order-package>p,.production-workshop-workspace>p,.production-qc-workspace>p{margin:0;color:#5e7089;font-size:.64rem}.production-internal-order-package>article,.production-job-card{padding:.7rem .74rem;border:1px solid #dfe7f0;border-radius:.62rem;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);box-shadow:0 3px 10px rgba(25,43,70,.03)}.production-internal-order-package>article h3,.production-job-card h3{margin:.05rem 0 .35rem;color:#203a58;font-size:.8rem}.production-internal-order-package>article p,.production-job-card>p{margin:.2rem 0;color:#546780;font-size:.61rem}.production-release-details{display:grid;gap:.5rem;padding:.72rem!important;background:#fbfcfe}.production-release-details legend{color:#203a58;font-weight:850}.production-release-details label{display:grid;gap:.3rem;color:#4d6078;font-size:.62rem;font-weight:750}.production-release-details textarea{min-height:4.4rem}
.production-workshop-workspace>div[aria-label="Workshop jobs"],.production-qc-workspace>div[aria-label="Quality Control jobs"]{display:grid;gap:.65rem}.production-job-card fieldset{margin-top:.55rem;background:#fbfcfe}.production-job-card section{margin-top:.55rem;padding:.55rem;border:1px solid #e7ebf1;border-radius:.5rem;background:#fff}.production-job-card section h4{margin:0 0 .35rem;color:#314962;font-size:.66rem}.production-job-card section ul,.production-job-card section ol{margin:.2rem 0;padding-left:1.05rem;color:#617187;font-size:.58rem}.production-qc-job-card .low-typing-quality-control{margin-top:.65rem}
@media(max-width:980px){.production-checkpoint-grid{grid-template-columns:1fr}.production-phase-heading{flex-direction:column}.production-phase-target{min-width:0;align-self:stretch}.production-checkpoint{grid-template-columns:1.8rem minmax(0,1fr) auto}}
@media(max-width:560px){.production-checkpoint{grid-template-columns:1.8rem minmax(0,1fr)}.production-checkpoint-status{grid-column:2;justify-self:start}.production-phase-cockpit{padding:.62rem}}

/* L1.3 — source-integrated Follow-up explicit confirmation interlock */
[data-rm-followup-fix2-panel="true"]{position:fixed;right:1.25rem;bottom:1.25rem;z-index:10000;display:grid;gap:.65rem;width:min(31rem,calc(100vw - 2.5rem));padding:.85rem;border:1px solid #e2cfa5;border-radius:.75rem;background:linear-gradient(180deg,#fffaf0 0%,#fff 100%);box-shadow:0 18px 48px rgba(20,35,58,.22)}
.rm-followup-fix2-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.rm-followup-fix2-heading h3{margin:.08rem 0 .25rem;color:#3b4658;font-size:.82rem}.rm-followup-fix2-heading p{margin:0;color:#6e6049;font-size:.61rem;line-height:1.45}.rm-followup-fix2-heading p strong{color:#8a5b18}.rm-followup-fix2-eyebrow{color:#9a6c29!important;font-size:.52rem!important;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.rm-followup-fix2-review{flex:0 0 auto;border-color:#d7b978;background:#fff;color:#76541e}.rm-followup-fix2-review-panel{display:grid;gap:.62rem;padding:.65rem;border:1px solid #e7d8b6;border-radius:.58rem;background:#fff}.rm-followup-fix2-check{display:flex!important;align-items:flex-start!important;gap:.55rem!important;margin:0!important;color:#4f5663!important;font-size:.63rem!important;font-weight:700!important;line-height:1.45}.rm-followup-fix2-check input{width:1rem;height:1rem;margin-top:.08rem;flex:0 0 auto}.rm-followup-fix2-actions{display:flex;justify-content:flex-end;gap:.5rem}.rm-followup-fix2-actions button{min-width:8rem}.rm-followup-fix2-actions button[data-primary="true"]:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){[data-rm-followup-fix2-panel="true"]{right:.75rem;bottom:.75rem;width:calc(100vw - 1.5rem)}.rm-followup-fix2-heading{align-items:stretch;flex-direction:column}.rm-followup-fix2-review{width:100%}.rm-followup-fix2-actions{flex-direction:column-reverse}.rm-followup-fix2-actions button{width:100%}}

/* L2 — minimal Product Registry */
.products-workspace { display: grid; gap: 1rem; }
.products-workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.products-workspace-heading h1 { margin: .1rem 0 .35rem; }
.products-workspace-heading p { margin: 0; max-width: 48rem; }
.workspace-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--os-muted); }
.product-registry-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; background: var(--os-surface); border: 1px solid var(--os-border); border-radius: .8rem; }
.product-registry-toggle, .product-active-control { display: flex; align-items: center; gap: .5rem; }
.product-editor { background: var(--os-surface); border: 1px solid var(--os-border); border-radius: .9rem; padding: 1rem; display: grid; gap: 1rem; }
.product-editor-heading { display: flex; justify-content: space-between; align-items: center; }
.product-editor-heading h2 { margin: 0; font-size: 1rem; }
.product-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem 1rem; }
.product-editor-grid label:not(.product-active-control) { display: grid; gap: .35rem; font-size: .82rem; font-weight: 700; }
.product-editor-grid input, .product-editor-grid select { min-height: 2.6rem; border: 1px solid var(--os-border); border-radius: .55rem; padding: .55rem .65rem; background: #fff; color: inherit; font: inherit; }
.product-editor-wide { grid-column: 1 / -1; }
.product-editor-actions { display: flex; justify-content: flex-end; }
.product-registry-list { display: grid; gap: .65rem; }
.product-registry-row { display: grid; grid-template-columns: minmax(12rem,1.25fr) minmax(7rem,.55fr) minmax(9rem,.75fr) minmax(14rem,1.35fr) auto; align-items: center; gap: 1rem; padding: .9rem 1rem; background: var(--os-surface); border: 1px solid var(--os-border); border-radius: .8rem; }
.product-registry-row-inactive { opacity: .65; }
.product-registry-row small { display: block; color: var(--os-muted); margin-bottom: .18rem; }
.product-registry-identity { display: grid; gap: .15rem; }
.product-registry-status { display: flex; align-items: center; gap: .65rem; justify-content: flex-end; }
.status-chip-active { background: #e8f5ee; color: #23663e; }
@media (max-width: 980px) { .product-registry-row { grid-template-columns: 1fr 1fr; } .product-registry-workshop, .product-registry-status { grid-column: 1 / -1; } .product-registry-status { justify-content: flex-start; } }
@media (max-width: 680px) { .products-workspace-heading, .product-registry-toolbar { align-items: stretch; flex-direction: column; } .product-editor-grid, .product-registry-row { grid-template-columns: 1fr; } .product-editor-wide, .product-registry-workshop, .product-registry-status { grid-column: auto; } }

/* L3 — Patient / Guardian / Payer distinction */
.case-party-workspace{display:grid;gap:.9rem}.case-party-intro{margin:0;padding:.7rem .8rem;border-radius:.6rem;background:#f5f8fc;color:#52647a;line-height:1.45}.case-party-carried{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.case-party-carried>div,.case-party-summary,.case-party-detail-panel{display:grid;gap:.3rem;padding:.7rem .8rem;border:1px solid #dfe7f0;border-radius:.6rem;background:#fff}.case-party-carried span,.case-party-summary span{color:#718096;font-size:.72rem}.case-party-carried small{color:#7b8797}.case-party-summary label,.case-party-detail-panel label,.case-party-admin-fields label{display:grid;gap:.35rem}.case-party-detail-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.case-party-detail-panel label:first-child{grid-column:1/-1}.case-party-admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.case-party-workspace input,.case-party-workspace select{min-height:2.5rem}.case-party-workspace .quick-choice-group{margin:0}
@media(max-width:680px){.case-party-carried,.case-party-detail-panel,.case-party-admin-fields{grid-template-columns:1fr}.case-party-detail-panel label:first-child{grid-column:auto}}

/* L5 lean commercial summary */
.commercial-summary{display:grid;gap:12px;padding:14px 16px;border:1px solid #dce4ef;border-radius:14px;background:#f8fbff}
.commercial-summary-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.commercial-summary-heading .eyebrow{margin:0 0 3px}.commercial-summary-heading h2{margin:0;font-size:16px;color:#172b4d}
.commercial-summary-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:#fff4dd;color:#805a12;font-size:11px;font-weight:800;white-space:nowrap}
.commercial-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.commercial-summary-grid article{display:grid;gap:4px;padding:11px 12px;border:1px solid #dce4ef;border-radius:11px;background:#fff}
.commercial-summary-grid span{font-size:12px;color:#667085}.commercial-summary-grid strong{font-size:16px;color:#172b4d}
.commercial-summary-grid .commercial-summary-balance{border-color:#b9d9cf;background:#f1faf7}
.commercial-summary-notes{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:12px;color:#667085}
@media(max-width:680px){.commercial-summary-heading{align-items:stretch;flex-direction:column}.commercial-summary-grid{grid-template-columns:1fr}}

/* L6 lean Case Activity Log */
.case-activity-log{border:1px solid #dce4ef;border-radius:14px;background:#fff;overflow:hidden}
.case-activity-log>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;cursor:pointer;list-style:none}
.case-activity-log>summary::-webkit-details-marker{display:none}
.case-activity-log>summary span:first-child{display:grid;gap:2px}
.case-activity-log>summary strong{font-size:14px;color:#172b4d}.case-activity-log>summary small{font-size:11px;color:#667085;font-weight:500}
.case-activity-count{display:inline-flex;min-width:28px;height:24px;align-items:center;justify-content:center;border-radius:999px;background:#eef4fb;color:#315fa7;font-size:11px;font-weight:800}
.case-activity-list{display:grid;gap:0;margin:0;padding:0 15px 8px;list-style:none;border-top:1px solid #edf1f5}
.case-activity-list li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:10px;align-items:start;padding:11px 0;border-bottom:1px solid #edf1f5}
.case-activity-list li:last-child{border-bottom:0}.case-activity-marker{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#8aa9cf}
.case-activity-copy{display:grid;gap:2px;min-width:0}.case-activity-copy strong{font-size:12px;color:#243b5a}.case-activity-copy small,.case-activity-list time{font-size:11px;color:#738196}
.case-activity-list time{white-space:nowrap}.case-activity-empty,.case-activity-limit{margin:0;padding:12px 15px;border-top:1px solid #edf1f5;color:#738196;font-size:11px}
@media(max-width:680px){.case-activity-list li{grid-template-columns:12px 1fr}.case-activity-list time{grid-column:2;white-space:normal}}

/* L7 lean Internal vs Shareable Case Notes */
.case-notes-panel{border:1px solid #dce4ef;border-radius:14px;background:#fff;overflow:hidden}
.case-notes-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;cursor:pointer;list-style:none}
.case-notes-panel>summary::-webkit-details-marker{display:none}.case-notes-panel>summary span:first-child{display:grid;gap:2px}
.case-notes-panel>summary strong{font-size:14px;color:#172b4d}.case-notes-panel>summary small{font-size:11px;color:#667085;font-weight:500}
.case-notes-count{display:inline-flex;min-width:28px;height:24px;align-items:center;justify-content:center;border-radius:999px;background:#f0f3f7;color:#46566d;font-size:11px;font-weight:800}
.case-notes-body{border-top:1px solid #edf1f5;padding:14px 15px}.case-note-composer{display:grid;gap:9px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.case-note-visibility{display:flex;gap:7px}.case-note-visibility button{min-height:32px;padding:0 12px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#475569;font-size:12px;font-weight:700;cursor:pointer}
.case-note-visibility button.selected{border-color:#6b86a8;background:#eaf1f8;color:#244c78}.case-note-visibility-help{margin:0;color:#64748b;font-size:11px;line-height:1.45}
.case-note-composer label{display:grid;gap:5px;color:#334155;font-size:12px;font-weight:700}.case-note-composer textarea{min-height:82px;resize:vertical;border:1px solid #cbd5e1;border-radius:9px;padding:9px 10px;background:#fff;color:#172b4d;font:inherit;font-weight:500}
.case-note-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.case-note-composer-actions small{color:#94a3b8;font-size:10px}.case-note-composer-actions button{min-height:34px;border:0;border-radius:8px;padding:0 13px;background:#315fa7;color:#fff;font-size:12px;font-weight:800;cursor:pointer}.case-note-composer-actions button:disabled{opacity:.5;cursor:not-allowed}
.case-notes-list{display:grid;gap:0;margin:12px 0 0;padding:0;list-style:none;border-top:1px solid #edf1f5}.case-notes-list li{display:grid;gap:6px;padding:11px 0;border-bottom:1px solid #edf1f5}.case-notes-list li:last-child{border-bottom:0}.case-note-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.case-note-meta time,.case-notes-list li>small{color:#7c899b;font-size:10px}.case-notes-list li>p{margin:0;color:#334155;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.case-note-badge{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;font-size:10px;font-weight:800}.case-note-badge-internal{background:#f1f5f9;color:#475569}.case-note-badge-shareable{background:#e8f5ed;color:#2e6b46}
.case-notes-empty,.case-notes-limit{margin:0;padding:12px 0 0;color:#7c899b;font-size:11px}.case-note-composer+.case-notes-empty{padding-top:12px}

/* L8 lean Case controls */
.case-control-panel,.case-control-hold,.case-control-terminal{border:1px solid #dce4ef;border-radius:14px;background:#fff;margin:0 0 14px;overflow:hidden}.case-control-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;cursor:pointer;list-style:none}.case-control-panel>summary::-webkit-details-marker{display:none}.case-control-panel>summary span{display:grid;gap:2px}.case-control-panel>summary strong{font-size:14px;color:#172b4d}.case-control-panel>summary small{font-size:11px;color:#667085;font-weight:500}.case-control-body{display:grid;gap:12px;border-top:1px solid #edf1f5;padding:14px 15px}.case-control-body section{display:grid;gap:8px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.case-control-body h3,.case-control-close h3{margin:0;color:#233654;font-size:13px}.case-control-body p,.case-control-close p,.case-control-terminal p,.case-control-hold p{margin:0;color:#5f6f84;font-size:11px;line-height:1.5}.case-control-body label,.case-control-close label{display:grid;gap:5px;color:#334155;font-size:11px;font-weight:700}.case-control-body textarea,.case-control-close textarea{min-height:72px;resize:vertical}.case-control-choice{display:flex;flex-wrap:wrap;gap:8px}.case-control-choice button{border:1px solid #cbd5e1;background:#fff;color:#475569}.case-control-choice button.selected{border-color:#64748b;background:#eef2f7;color:#172b4d}.case-control-hold{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 15px;border-color:#e7c66b;background:#fffaf0}.case-control-hold-copy{display:grid;gap:4px}.case-control-hold-copy strong{color:#7a5510}.case-control-hold-copy small{color:#8b6f36;font-size:10px}.case-control-hold-actions{display:flex;align-items:start}.case-control-close{grid-column:1/-1;border-top:1px solid #f0dfb6;padding-top:10px}.case-control-close>summary{cursor:pointer;color:#805d16;font-size:11px;font-weight:800}.case-control-close[open]{display:grid;gap:9px}.case-control-terminal{padding:14px 15px;border-color:#d7dde7;background:#f8fafc}.case-control-terminal>div{display:flex;gap:10px;align-items:center;margin-bottom:4px}.case-control-terminal strong{color:#334155}.case-control-terminal span{display:inline-flex;border-radius:999px;background:#e9edf3;color:#46566d;padding:3px 8px;font-size:10px;font-weight:800}.case-control-terminal small{display:block;margin-top:7px;color:#7c899b;font-size:10px}@media(max-width:720px){.case-control-hold{grid-template-columns:1fr}.case-control-hold-actions{justify-content:flex-start}}


/* L10 lean Operational Media Consent marker */
.case-media-consent{display:grid;gap:10px;padding:13px 15px;border:1px solid #dce4ef;border-radius:14px;background:#fff;margin:0 0 14px}
.case-media-consent-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.case-media-consent-heading .eyebrow{margin:0 0 2px}.case-media-consent-heading h2{margin:0;color:#172b4d;font-size:15px}
.case-media-consent-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:#eef2f7;color:#46566d;font-size:10px;font-weight:800;white-space:nowrap}
.case-media-consent-operational_use_allowed{border-color:#b9d9cf;background:#f7fcfa}.case-media-consent-operational_use_allowed .case-media-consent-status{background:#e8f5ed;color:#2e6b46}
.case-media-consent-declined{border-color:#ead0d0;background:#fffafa}.case-media-consent-declined .case-media-consent-status{background:#fbeaea;color:#8a3d3d}
.case-media-consent-scope,.case-media-consent-help{margin:0;color:#5f6f84;font-size:11px;line-height:1.5}.case-media-consent-help{padding:8px 10px;border-radius:9px;background:#fff;color:#7a4a4a}
.case-media-consent>small{color:#7c899b;font-size:10px}.case-media-consent-actions{display:flex;flex-wrap:wrap;gap:8px}.case-media-consent-actions button{min-height:34px;border:1px solid #cbd5e1;border-radius:999px;padding:0 12px;background:#fff;color:#475569;font-size:11px;font-weight:800;cursor:pointer}.case-media-consent-actions button.selected{border-color:#6b86a8;background:#eaf1f8;color:#244c78}.case-media-consent-actions button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:680px){.case-media-consent-heading{flex-direction:column;align-items:stretch}.case-media-consent-status{align-self:flex-start}}

/* L11 lean Workshop Production Sheet */
.workshop-production-sheet{margin:12px 0 16px;border:1px solid #dce4ef;border-radius:14px;background:#fff;overflow:hidden}
.workshop-production-sheet>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;cursor:pointer;list-style:none}.workshop-production-sheet>summary::-webkit-details-marker{display:none}.workshop-production-sheet>summary span:first-child{display:grid;gap:2px}.workshop-production-sheet>summary strong{font-size:14px;color:#172b4d}.workshop-production-sheet>summary small{font-size:11px;color:#667085;font-weight:500}
.workshop-production-sheet-count{display:inline-flex;min-width:28px;height:24px;align-items:center;justify-content:center;border-radius:999px;background:#eef4fb;color:#315fa7;font-size:11px;font-weight:800}
.workshop-production-sheet-body{display:grid;gap:14px;border-top:1px solid #edf1f5;padding:16px}.workshop-production-sheet-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.workshop-production-sheet-heading .eyebrow{margin:0 0 2px}.workshop-production-sheet-heading h3{margin:0;color:#172b4d;font-size:18px}.workshop-production-sheet-heading p:last-child{margin:4px 0 0;color:#5f6f84;font-size:12px;font-weight:700}.workshop-production-sheet-print{display:inline-flex;min-height:34px;align-items:center;border:1px solid #b9c7d8;border-radius:8px;padding:0 12px;background:#fff;color:#244c78;font-size:11px;font-weight:800;text-decoration:none;cursor:pointer;white-space:nowrap}
.workshop-production-sheet-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0}.workshop-production-sheet-meta div{display:grid;gap:3px;padding:10px 11px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.workshop-production-sheet-meta dt{color:#738196;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.workshop-production-sheet-meta dd{margin:0;color:#243b5a;font-size:12px;font-weight:800}
.workshop-production-sheet-table-wrap{overflow-x:auto;border:1px solid #dce4ef;border-radius:10px}.workshop-production-sheet-table{width:100%;border-collapse:collapse;min-width:760px}.workshop-production-sheet-table th,.workshop-production-sheet-table td{padding:9px 10px;border-bottom:1px solid #e7ecf2;text-align:left;vertical-align:top}.workshop-production-sheet-table th{background:#f6f8fb;color:#5d6d82;font-size:10px;text-transform:uppercase;letter-spacing:.03em}.workshop-production-sheet-table td{color:#334155;font-size:11px}.workshop-production-sheet-table tbody tr:last-child td{border-bottom:0}.workshop-production-sheet-table td strong,.workshop-production-sheet-table td small{display:block}.workshop-production-sheet-table td small{margin-top:3px;color:#7c899b;font-size:9px;font-weight:500}
.workshop-production-sheet-rework{display:grid;gap:8px;padding:11px 12px;border:1px solid #ead7b4;border-radius:10px;background:#fffaf2}.workshop-production-sheet-rework h4{margin:0;color:#725319;font-size:12px}.workshop-production-sheet-rework ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.workshop-production-sheet-rework li{display:grid;gap:2px;padding-top:7px;border-top:1px solid #f0e2c8}.workshop-production-sheet-rework li:first-child{padding-top:0;border-top:0}.workshop-production-sheet-rework strong{color:#5f481c;font-size:11px}.workshop-production-sheet-rework span,.workshop-production-sheet-rework small{color:#7b6742;font-size:10px}.workshop-production-sheet-empty,.workshop-production-sheet-footnote{margin:0;color:#7c899b;font-size:10px;line-height:1.45}.workshop-production-sheet-footnote{padding-top:2px;border-top:1px solid #edf1f5}
@media(max-width:720px){.workshop-production-sheet-heading{flex-direction:column}.workshop-production-sheet-meta{grid-template-columns:1fr}}
@media print{
  body.workshop-production-sheet-printing *{visibility:hidden!important}
  body.workshop-production-sheet-printing .workshop-production-sheet,body.workshop-production-sheet-printing .workshop-production-sheet *{visibility:visible!important}
  body.workshop-production-sheet-printing .workshop-production-sheet{position:absolute;left:0;top:0;width:100%;margin:0;border:0;border-radius:0;overflow:visible}
  body.workshop-production-sheet-printing .workshop-production-sheet>summary,body.workshop-production-sheet-printing .workshop-production-sheet-print{display:none!important}
  body.workshop-production-sheet-printing .workshop-production-sheet-body{display:grid!important;border:0;padding:0}
  body.workshop-production-sheet-printing .workshop-production-sheet-table-wrap{overflow:visible}
  body.workshop-production-sheet-printing .workshop-production-sheet-table{min-width:0}
}

/* L12 lean Serious Product Safety Incident record */
.product-safety-incidents{border:1px solid #e7caca;border-radius:14px;background:#fff;overflow:hidden;margin:0 0 14px}
.product-safety-incidents>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;cursor:pointer;list-style:none;background:#fffafa}.product-safety-incidents>summary::-webkit-details-marker{display:none}.product-safety-incidents>summary span:first-child{display:grid;gap:2px}.product-safety-incidents>summary strong{font-size:14px;color:#6f2929}.product-safety-incidents>summary small{font-size:11px;color:#7f6262;font-weight:500}
.product-safety-incident-count{display:inline-flex;min-width:28px;height:24px;align-items:center;justify-content:center;border-radius:999px;background:#fbeaea;color:#8a3d3d;font-size:11px;font-weight:800}
.product-safety-incidents-body{display:grid;gap:12px;border-top:1px solid #f0dede;padding:14px 15px}.product-safety-incidents-scope,.product-safety-incidents-help{margin:0;color:#5f6f84;font-size:11px;line-height:1.5}.product-safety-incidents-help{padding:9px 10px;border-radius:9px;background:#f8fafc}
.product-safety-incident-composer{display:grid;gap:10px;margin:0;padding:12px;border:1px solid #ead0d0;border-radius:12px;background:#fffafa}.product-safety-incident-composer legend{padding:0 5px;color:#7a3434;font-size:12px;font-weight:800}.product-safety-incident-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-safety-incident-composer label{display:grid;gap:5px;color:#334155;font-size:11px;font-weight:700}.product-safety-incident-composer input,.product-safety-incident-composer select,.product-safety-incident-composer textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#172b4d;font:inherit;font-weight:500}.product-safety-incident-composer input,.product-safety-incident-composer select{min-height:38px;padding:0 9px}.product-safety-incident-composer textarea{min-height:78px;padding:9px 10px;resize:vertical}
.product-safety-incident-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.product-safety-incident-actions small{color:#8b7272;font-size:10px}.product-safety-incident-actions button{min-height:36px;border:0;border-radius:8px;padding:0 13px;background:#8a3d3d;color:#fff;font-size:11px;font-weight:800;cursor:pointer}.product-safety-incident-actions button:disabled{opacity:.5;cursor:not-allowed}
.product-safety-incidents-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}.product-safety-incidents-list li{display:grid;gap:6px;padding:12px;border:1px solid #ead0d0;border-radius:11px;background:#fff}.product-safety-incident-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.product-safety-incident-meta strong{color:#7a3434;font-size:12px}.product-safety-incident-meta span{display:inline-flex;border-radius:999px;padding:3px 7px;background:#fbeaea;color:#8a3d3d;font-size:9px;font-weight:800}.product-safety-incident-meta time{margin-left:auto;color:#7c899b;font-size:10px}.product-safety-incidents-list p{margin:0;color:#334155;font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.product-safety-incidents-list li>small{color:#7c899b;font-size:10px}.product-safety-incidents-empty,.product-safety-incidents-limit{margin:0;color:#7c899b;font-size:11px}
@media(max-width:680px){.product-safety-incident-grid{grid-template-columns:1fr}.product-safety-incident-actions{align-items:stretch;flex-direction:column}.product-safety-incident-actions button{width:100%}.product-safety-incident-meta time{width:100%;margin-left:0}}


/* B2-B internal Case / Assessment attachments */
.internal-attachment-panel { display: grid; gap: .85rem; }
.internal-attachment-heading { align-items: flex-start; }
.internal-attachment-heading p { margin-bottom: 0; color: #65758a; }
.internal-attachment-count { display: inline-flex; white-space: nowrap; border-radius: 999px; padding: .38rem .62rem; background: #edf3fb; color: #355372; font-size: .78rem; font-weight: 800; }
.internal-attachment-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.internal-attachment-tab { border: 1px solid #cbd5e1; background: white; color: #29425f; box-shadow: none; }
.internal-attachment-tab.selected { border-color: #173f73; background: #173f73; color: white; }
.internal-attachment-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; padding: .85rem; border: 1px solid #dbe3ed; border-radius: .7rem; background: #fbfcfe; }
.internal-attachment-upload label { margin: 0; font-weight: 700; }
.internal-attachment-upload input[type="file"] { width: 100%; border: 1px solid #cbd5e1; border-radius: .55rem; padding: .55rem; background: white; }
.internal-attachment-upload-action { display: grid; justify-items: start; gap: .35rem; }
.internal-attachment-upload-action small { max-width: 20rem; overflow-wrap: anywhere; color: #65758a; }
.internal-attachment-helper, .internal-attachment-empty, .internal-attachment-message { margin: 0; color: #65758a; }
.internal-attachment-message { padding: .65rem .75rem; border-radius: .55rem; background: #f2f6fb; color: #294866; }
.internal-attachment-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.internal-attachment-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border: 1px solid #e1e7ef; border-radius: .65rem; background: white; }
.internal-attachment-file { min-width: 0; display: grid; gap: .18rem; }
.internal-attachment-file strong { overflow-wrap: anywhere; }
.internal-attachment-file small { color: #6b7b90; }
.internal-attachment-scan { white-space: nowrap; border-radius: 999px; padding: .35rem .55rem; font-size: .76rem; font-weight: 800; }
.internal-attachment-scan-pending { background: #fff4dd; color: #805a12; }
.internal-attachment-scan-rejected { background: #fff0f0; color: #9a3535; }
@media (max-width: 680px) {
  .internal-attachment-heading, .internal-attachment-list li { align-items: stretch; flex-direction: column; }
  .internal-attachment-upload { grid-template-columns: 1fr; }
  .internal-attachment-upload-action button { width: 100%; }
}

/* UIAUD-002 read-only reported intake evidence */
.case-reported-intake { display: grid; gap: .8rem; margin-bottom: 1rem; }
.reported-intake-evidence { display: grid; gap: .85rem; padding: 1rem; border: 1px solid #b9cde5; border-radius: .8rem; background: #f8fbff; }
.reported-intake-evidence > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.reported-intake-evidence > header h3 { margin: 0; color: #173f73; font-size: 1rem; }
.reported-intake-evidence > header .eyebrow { margin: 0 0 .15rem; }
.reported-intake-evidence > header > span { border-radius: 999px; padding: .3rem .55rem; background: #e5eef9; color: #294866; font-size: .74rem; font-weight: 800; }
.reported-intake-warning { margin: 0; padding: .7rem .8rem; border-left: 3px solid #b7791f; border-radius: .35rem; background: #fff8e8; color: #684c1d; font-size: .8rem; line-height: 1.5; }
.reported-intake-summary, .reported-intake-subsection dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.reported-intake-summary > div, .reported-intake-subsection dl > div { min-width: 0; padding: .65rem .7rem; border: 1px solid #dce6f1; border-radius: .55rem; background: #fff; }
.reported-intake-summary dt, .reported-intake-subsection dt { color: #65758a; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.reported-intake-summary dd, .reported-intake-subsection dd { margin: .2rem 0 0; color: #243b5a; font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.reported-intake-summary ul { margin: 0; padding-left: 1rem; }
.reported-intake-subsection { display: grid; gap: .5rem; }
.reported-intake-subsection h4 { margin: 0; color: #294866; font-size: .85rem; }
.reported-intake-subsection dd small { display: block; margin-top: .2rem; color: #6b7b90; font-size: .7rem; }
.reported-intake-loading, .reported-intake-error { margin: 0; padding: .75rem .85rem; border: 1px solid #dce4ef; border-radius: .65rem; background: #f8fafc; color: #53657b; font-size: .8rem; }
.reported-intake-error { border-color: #ead0d0; background: #fffafa; color: #7a3434; }
.reported-intake-error p { margin: .25rem 0; }
.reported-intake-error small { color: #7f6262; }
@media (max-width: 680px) {
  .reported-intake-evidence > header { flex-direction: column; }
  .reported-intake-summary, .reported-intake-subsection dl { grid-template-columns: 1fr; }
}


/* S1.1 Slice 3 — role queue status tabs */
.role-queue-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: thin;
}
.role-queue-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #d5dde7;
  border-radius: 999px;
  background: #fff;
  color: #4d5e73;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}
.role-queue-tab strong {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  background: #eef2f6;
  color: #53657b;
  font-size: 10px;
}
.role-queue-tab-active {
  border-color: #496b91;
  background: #edf3f9;
  color: #244c78;
}
.role-queue-tab-active strong {
  background: #dce8f4;
  color: #244c78;
}


/* S1.1 Slice 4 — Owner-controlled Modular Product Registry rules */
.product-modular-rules{display:grid;gap:1rem;border-color:#cdd9e8;background:#f9fbfe}
.product-modular-rules>p{margin:0;color:var(--os-muted);line-height:1.45}
.product-modular-heading,.product-modular-rule-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.product-modular-list{display:grid;gap:.75rem}
.product-modular-rule{display:grid;gap:.7rem;padding:.85rem;border:1px solid var(--os-border);border-radius:.7rem;background:#fff}
.product-modular-rule .product-editor-grid{margin:0}
.product-modular-fitting{display:flex;flex-wrap:wrap;gap:1rem;padding-top:.2rem}
@media(max-width:680px){.product-modular-heading,.product-modular-rule-heading{align-items:stretch;flex-direction:column}.product-modular-fitting{display:grid;gap:.55rem}}

.product-modular-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem;align-items:center}
.product-modular-add-row select{min-height:2.6rem;border:1px solid var(--os-border);border-radius:.55rem;padding:.55rem .65rem;background:#fff;color:inherit;font:inherit}
.product-modular-rule div>small,.product-modular-rule div>span{display:block;color:var(--os-muted);font-size:.76rem;margin-top:.15rem}
@media(max-width:680px){.product-modular-add-row{grid-template-columns:1fr}}


/* S1.1 Slice 4 — released Modular configuration context in QC */
.qc-released-configuration {
  display: grid;
  gap: .8rem;
  margin: .9rem 0;
  padding: .9rem;
  border: 1px solid #d7d7d7;
  border-radius: .75rem;
  background: #fafafa;
}
.qc-released-configuration-heading {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  align-items: start;
  justify-content: space-between;
}
.qc-released-configuration-heading h4,
.qc-released-configuration-heading p {
  margin: 0;
}
.qc-released-configuration-heading p {
  margin-top: .2rem;
}
.qc-released-configuration-heading > span {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.qc-released-configuration ul {
  display: grid;
  gap: .3rem;
  margin: .35rem 0 0;
  padding-left: 1.1rem;
}
.qc-released-configuration li {
  display: grid;
  gap: .1rem;
}
.qc-released-configuration li small {
  text-transform: capitalize;
}
.qc-released-configuration-flags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}


.delivery-professional-signoff {
  display: grid;
  gap: .35rem;
  margin: .8rem 0;
  padding: .8rem .9rem;
  border: 1px solid #d7ad68;
  border-radius: .75rem;
  background: #fff9ed;
}
.delivery-professional-signoff p {
  margin: 0;
}
