/* Scheme 01 · 10-02 / 10-03. Original quote form, calculation output and
 * customer-scoped records only. No fields, controls, prices or state added.
 * Native dialog visibility and source inline conditional fields remain owned
 * by the original controller. No universal display rule for form labels.
 */
@layer plan01 {
  body.erp-plan01 #customerQuoter {
    min-width: 0 !important;
    padding: 0 !important;
    color: #172438 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-variant-numeric: tabular-nums;

    & *, & *::before, & *::after { box-sizing: border-box; }
    & .quote-spotlight {
      grid-template-columns: minmax(0, 1fr) auto !important;
      gap: 20px 24px !important;
      margin: 0 0 20px !important;
      padding: 0 !important;
      border: 0 !important;
      border-radius: 0 !important;
      background: #fff !important;
      box-shadow: none !important;
    }
    & .quote-spotlight-main { min-width: 0; }
    /* Redundant decorative "常用工具" label; all task/custody copy retained. */
    & .quote-spotlight-main > span { display: none !important; }
    & .quote-spotlight-main h2 {
      margin: 0 0 6px !important;
      color: #172438 !important;
      font-size: 29px !important;
      font-weight: 740 !important;
      line-height: 1.28 !important;
      letter-spacing: -.5px !important;
    }
    & .quote-spotlight-main p { margin: 0 !important; font-size: 14px !important; color: #5b6b80 !important; line-height: 1.5 !important; }
    & .quote-tool { display: flex !important; flex-wrap: wrap; align-items: center !important; gap: 10px !important; }
    & .quote-summary { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; }
    & .quote-summary .mini-card {
      min-width: 0 !important; min-height: 88px !important; padding: 12px 16px !important;
      background: #f4f8fa !important; border: 1px solid #e0e9f0 !important;
      border-radius: 5px !important; box-shadow: none !important;
    }
    & .quote-summary .mini-card :is(span, p) { color: #5b6b80 !important; font-size: 12px !important; line-height: 1.5 !important; overflow-wrap: anywhere; }
    & .quote-summary .mini-card strong { color: #172438 !important; font-size: 18px !important; line-height: 1.5 !important; overflow-wrap: anywhere; }
    & .quote-summary .quote-summary-focus { background: #f6fcfa !important; border-color: #abd8ce !important; }
    & .customer-quote-boundary-note { margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
    & .quote-flow-note {
      grid-template-columns: auto minmax(0, 1fr) !important; gap: 8px 16px !important;
      padding: 12px 16px !important; border: 1px solid #e0e9f0 !important;
      border-radius: 5px !important; background: #f4f8fa !important;
    }
    & .quote-flow-note > span { padding: 3px 8px !important; color: #087568 !important; background: #d0f6eb !important; border-radius: 4px !important; font-weight: 550 !important; }
    & .quote-flow-note strong { color: #172438 !important; font-size: 13px !important; line-height: 1.5 !important; }
    & .quote-flow-note p { grid-column: 1 / -1; margin: 0 !important; font-size: 12px !important; color: #5b6b80 !important; line-height: 1.6 !important; }
    & .quote-flow-note-actions { grid-column: 1 / -1; justify-content: flex-start !important; min-width: 0 !important; flex-wrap: wrap; gap: 8px !important; }
    & .quote-records-header { margin: 0 0 12px !important; padding: 0 !important; background: #fff !important; border: 0 !important; }
    & .quote-records-header h2 { margin: 0 0 4px !important; color: #172438 !important; font-size: 18px !important; line-height: 1.5 !important; }
    & .quote-records-header span { color: #5b6b80 !important; font-size: 13px !important; line-height: 1.5 !important; white-space: normal !important; }
    & .customer-quote-workbench { gap: 16px !important; margin: 0 0 20px !important; }
    & .customer-quote-workbench-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
    & .customer-quote-workbench-grid .module-handoff-card {
      min-width: 0 !important; min-height: 0 !important; padding: 12px 16px !important;
      border: 1px solid #e0e9f0 !important; border-radius: 5px !important;
      background: #fff !important; box-shadow: none !important;
    }
    & .module-handoff-card > span { color: #5b6b80 !important; font-size: 13px !important; }
    & .module-handoff-card strong { color: #172438 !important; font-size: 22px !important; line-height: 1.4 !important; }
    & .module-handoff-card p { min-height: 0 !important; color: #5b6b80 !important; font-size: 12px !important; line-height: 1.5 !important; }
    & .customer-quote-workbench-queue { padding: 16px !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important; background: #fff !important; box-shadow: none !important; }
    & .customer-quote-workbench-head { flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px !important; }
    & .customer-quote-workbench-head strong { color: #172438 !important; font-size: 14px !important; }
    & .customer-quote-workbench-head span { color: #5b6b80 !important; font-size: 12px !important; }
    & .customer-quote-workbench-list { gap: 0 !important; }
    & .customer-quote-workbench-item {
      min-width: 0; gap: 12px 20px !important; padding: 12px 0 !important;
      border: 0 !important; border-top: 1px solid #e0e9f0 !important;
      border-radius: 0 !important; background: #fff !important; box-shadow: none !important;
    }
    & .customer-quote-workbench-item > div { min-width: 0; }
    & .customer-quote-workbench-item strong { color: #172438 !important; font-size: 14px !important; line-height: 1.5 !important; overflow-wrap: anywhere; }
    & .customer-quote-workbench-item p { color: #5b6b80 !important; font-size: 12px !important; line-height: 1.6 !important; overflow-wrap: anywhere; }
    & .customer-quote-workbench-actions { min-width: 0 !important; gap: 8px !important; flex-wrap: wrap !important; }
    & .quote-records { margin: 0 !important; max-width: 100%; overflow-x: auto !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important; }
    & .quote-records table { width: 100% !important; min-width: 1180px !important; border-collapse: collapse !important; font-size: 13px !important; line-height: 1.5 !important; }
    & .quote-records th { padding: 12px !important; color: #485b73 !important; background: #f0f6f9 !important; font-size: 12px !important; font-weight: 550 !important; white-space: nowrap; }
    & .quote-records td { padding: 10px 12px !important; color: #172438 !important; background: #fff !important; vertical-align: middle; }
    & .quote-records :is(th, td) { border: 1px solid #edf2f6 !important; }
    & .quote-records tr:not(.quote-focus-banner-row):hover td { background: #f6fcfa !important; }
    & .quote-records th:last-child, & .quote-records td:last-child { min-width: 200px !important; width: 220px !important; }
    & .quote-focus-banner { min-width: 0; padding: 12px 16px !important; gap: 8px 16px !important; flex-wrap: wrap; border: 0 !important; border-radius: 4px !important; color: #172438 !important; background: #f4f8fa !important; box-shadow: none !important; }
    & .quote-focus-banner :is(p, small, span) { color: #5b6b80 !important; }
    & .empty { padding: 24px 16px !important; color: #5b6b80 !important; background: #f4f8fa !important; border-radius: 4px !important; }
  }

  body.erp-plan01 #quoteDialog {
    width: min(1320px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    padding: 0 !important;
    border: 1px solid #e0e9f0 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #172438 !important;
    overflow: auto !important;
    font-variant-numeric: tabular-nums;

    & *, & *::before, & *::after { box-sizing: border-box; }
    & #quoteForm {
      display: grid !important; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) !important;
      grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
      align-items: start !important; gap: 20px !important;
      width: 100% !important; max-width: none !important; min-width: 0 !important;
      height: auto !important; max-height: none !important; overflow: visible !important;
      padding: 22px 28px !important; margin: 0 !important;
      border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important;
    }
    & #quoteForm > * { min-width: 0; }
    & .dialog-header {
      grid-column: 1 / -1; grid-row: 1;
      position: static !important; margin: 0 !important; padding: 0 !important;
      gap: 16px !important; align-items: center !important; border: 0 !important;
    }
    & .dialog-header h2 { margin: 0 !important; color: #172438 !important; font-size: 29px !important; font-weight: 740 !important; line-height: 1.28 !important; letter-spacing: -.5px; }
    & #quoteDialogContext {
      grid-column: 1 / -1; grid-row: 2; margin: 0 !important; padding: 12px 16px !important;
      border: 1px solid #e0e9f0 !important; border-radius: 5px !important;
      background: #f4f8fa !important; color: #172438 !important; box-shadow: none !important;
      font-size: 13px !important; line-height: 1.6 !important; overflow-wrap: anywhere;
    }
    & #quoteDialogContext:empty { padding: 0 !important; border: 0 !important; }
    & #quoteDialogContext span { color: #5b6b80 !important; }
    & #quoteForm > .form-grid {
      grid-column: 1; grid-row: 3; display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 24px !important;
      margin: 0 !important; padding: 20px !important; border: 1px solid #e0e9f0 !important; border-radius: 5px !important;
      background: #fff !important;
    }
    & #quoteForm label { min-width: 0 !important; margin: 0 !important; gap: 7px !important; color: #172438 !important; font-size: 13px !important; font-weight: 550 !important; line-height: 1.5 !important; }
    & #quoteForm > label { grid-column: 1; grid-row: 4; }
    & #quoteForm :is(input:not([type="hidden"]), select, textarea) {
      width: 100% !important; min-width: 0 !important; max-width: 100% !important;
      min-height: 39px !important; padding: 9px 12px !important;
      border: 1px solid #cad8e5 !important; border-radius: 4px !important;
      background: #fff !important; color: #40536a !important;
      font: inherit !important; font-weight: 400 !important; box-shadow: none !important; caret-color: #008575;
    }
    & #quoteForm input[readonly] { background: #f6f9fb !important; }
    & #quoteForm :is(input, textarea)::placeholder { color: #64758a !important; opacity: 1; }
    & #quoteForm textarea { min-height: 74px !important; resize: vertical; }
    & .quote-size-block { grid-column: auto !important; }
    & .quote-size-fields { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; min-width: 0 !important; }
    & #quoteHeatTransferSizeField .quote-size-fields { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    & #quotePreview {
      grid-column: 2; grid-row: 3 / 5; align-self: start;
      min-width: 0 !important; margin: 0 !important; padding: 16px !important;
      border: 1px solid #e0e9f0 !important; border-radius: 5px !important;
      background: #f4f8fa !important; color: #172438 !important;
    }
    & #quotePreview:empty { padding: 0 !important; border: 0 !important; }
    & #quotePreview .empty { padding: 20px 4px !important; color: #5b6b80 !important; background: transparent !important; font-size: 13px !important; }
    & .quote-preview-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
    & .quote-preview-grid article {
      min-width: 0 !important; min-height: 0 !important; grid-column: auto !important;
      padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid #e0e9f0 !important;
      border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
    }
    & .quote-preview-grid article:first-child { padding-top: 0 !important; }
    & .quote-preview-grid article:last-child { border-bottom: 0 !important; }
    & .quote-preview-grid span { color: #5b6b80 !important; font-size: 12px !important; letter-spacing: 0 !important; line-height: 1.5 !important; }
    & .quote-preview-grid strong { display: block; margin-top: 5px; color: #172438 !important; font-size: 13px !important; font-weight: 550 !important; line-height: 1.65 !important; overflow-wrap: anywhere; }
    & .dialog-actions {
      grid-column: 1 / -1; grid-row: 5; position: static !important;
      display: flex !important; flex-wrap: wrap; justify-content: flex-end !important;
      gap: 10px !important; margin: 0 !important; padding: 16px 0 0 !important;
      border-top: 1px solid #e0e9f0 !important;
    }
  }

  body.erp-plan01 :is(#customerQuoter, #quoteDialog) {
    & :is(button.primary-button, button.ghost-button, button.small-button, button.icon-button) {
      min-height: 39px !important; padding: 8px 15px !important;
      color: #172438 !important; background: #fff !important;
      border: 1px solid #ccdae6 !important; border-radius: 5px !important;
      font-size: 13px !important; font-weight: 550 !important; line-height: 1.5 !important;
      white-space: normal !important; box-shadow: none !important;
    }
    & button.primary-button { color: #fff !important; background: #008575 !important; border-color: #008575 !important; }
    & :is(button, input, select, textarea):focus-visible { outline: 2px solid #008575 !important; outline-offset: 3px; }
    & button:not(:disabled):hover { filter: brightness(.97); }
    & button:disabled { color: #68778a !important; background: #edf1f5 !important; border-color: #d6e0e9 !important; cursor: not-allowed; }
    & ::selection { background: #d0f6eb; color: #172438; }
    & :is(.quote-records, #quoteForm) { scrollbar-color: #9aabb9 #f4f8fa; scrollbar-width: thin; }
  }
  @media (min-width: 981px) {
    body.erp-plan01 #quoteDialog {
      inset: 134px 0 0 232px !important; margin: 0 !important;
      width: calc(100vw - 232px) !important; max-width: none !important;
      height: calc(100dvh - 134px) !important; max-height: none !important;
      border: 0 !important; border-radius: 0 !important;
    }
    body.erp-plan01 #quoteDialog::backdrop { background: transparent !important; backdrop-filter: none !important; }
  }
  @media (max-width: 1180px) {
    body.erp-plan01 #customerQuoter .quote-spotlight { grid-template-columns: minmax(0, 1fr) !important; }
    body.erp-plan01 #quoteDialog #quoteForm { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important; }
    body.erp-plan01 #quoteDialog #quoteForm > .form-grid { gap: 16px !important; padding: 16px !important; }
  }
  @media (max-width: 780px) {
    body.erp-plan01 #customerQuoter .quote-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.erp-plan01 #customerQuoter .customer-quote-workbench-grid { grid-template-columns: minmax(0, 1fr) !important; }
    body.erp-plan01 #customerQuoter .customer-quote-workbench-item { flex-direction: column !important; align-items: stretch !important; }
    body.erp-plan01 #customerQuoter .customer-quote-workbench-actions { justify-content: flex-start !important; }
    body.erp-plan01 #quoteDialog #quoteForm { display: block !important; padding: 20px !important; }
    body.erp-plan01 #quoteDialog #quoteForm > :is(.dialog-header, #quoteDialogContext, .form-grid, label, #quotePreview) { margin: 0 0 20px !important; }
    body.erp-plan01 #quoteDialog #quoteForm > label { display: grid; }
    body.erp-plan01 #quoteDialog #quoteDialogTitle { font-size: 25px !important; }
  }
  @media (max-width: 480px) {
    body.erp-plan01 #customerQuoter .quote-summary { grid-template-columns: minmax(0, 1fr) !important; }
    body.erp-plan01 #customerQuoter .quote-flow-note { grid-template-columns: minmax(0, 1fr) !important; }
    body.erp-plan01 #customerQuoter .quote-flow-note > span { justify-self: start; }
    body.erp-plan01 #quoteDialog { width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; max-height: calc(100dvh - 16px) !important; }
    body.erp-plan01 #quoteDialog #quoteForm { padding: 16px !important; }
    body.erp-plan01 #quoteDialog #quoteForm > .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
    body.erp-plan01 #quoteDialog #quoteForm :is(input:not([type="hidden"]), select, textarea) { font-size: 16px !important; }
    body.erp-plan01 :is(#quoteDialog, #customerQuoter) :is(button.primary-button, button.ghost-button, button.small-button, button.icon-button, input:not([type="hidden"]), select) { min-height: 44px !important; }
    body.erp-plan01 #quoteDialog .dialog-actions > button { flex: 1 1 calc(50% - 10px); min-width: 0 !important; }
  }
}
