.quotation-toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}.quotation-toolbar .search-form{display:flex;gap:8px;flex-wrap:wrap}.quotation-editor{display:block}.quotation-editor-form-only{max-width:1200px}.quotation-form-card{padding:20px}.quotation-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quotation-form-grid .span-2{grid-column:1/-1}.quotation-items{width:100%;border-collapse:collapse;margin-top:10px}.quotation-items th,.quotation-items td{padding:7px;border-bottom:1px solid #e5e7eb;vertical-align:middle}.quotation-items input{min-width:0;width:100%}.quotation-items .num{text-align:right}.quotation-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:14px}.quotation-sheet{background:#fff;color:#111;min-height:297mm;padding:18mm 14mm;box-sizing:border-box;font-family:"Malgun Gothic",Arial,sans-serif}.quotation-sheet h1{text-align:center;letter-spacing:.55em;margin:0 0 24px}.quotation-head{display:grid;grid-template-columns:1fr 1.2fr;gap:26px;align-items:start}.quotation-meta p{margin:7px 0}.quotation-supplier{border:1px solid #222}.quotation-supplier-row{display:grid;grid-template-columns:90px 1fr 70px 1fr;border-bottom:1px solid #222}.quotation-supplier-row:last-child{border-bottom:0}.quotation-supplier-row>span{padding:6px;border-right:1px solid #222}.quotation-supplier-row>span:nth-child(2){border-right:1px solid #222}.quotation-total{margin:18px 0;border:1px solid #222;padding:10px;text-align:center;font-weight:700;font-size:17px}.quotation-print-table{width:100%;border-collapse:collapse}.quotation-print-table th,.quotation-print-table td{border:1px solid #222;padding:6px;text-align:center;height:27px}.quotation-print-table td.item{text-align:left}.quotation-grand-total{display:flex;justify-content:flex-end;margin-top:8px;font-size:18px;font-weight:700}.quotation-note{white-space:pre-wrap;margin-top:16px}.quotation-bank{margin-top:24px;font-weight:600}@media(max-width:1050px){.quotation-editor-form-only{max-width:none}}@media(max-width:640px){.quotation-form-grid{grid-template-columns:1fr}.quotation-form-grid .span-2{grid-column:auto}.quotation-toolbar .search-form{width:100%}.quotation-toolbar .search-form>*{flex:1 1 130px}}@media print{body>*{display:none!important}.quotation-sheet.print-target{display:block!important;position:absolute;inset:0;width:210mm;min-height:297mm;padding:14mm}.quotation-sheet.print-target *{visibility:visible!important}}
.quotation-basic-details{
  margin:0 0 20px;
  border:1px solid #d7e0e8;
  background:#fff;
}
.quotation-basic-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:54px;
  padding:12px 16px;
  cursor:pointer;
  list-style:none;
  user-select:none;
  background:#f7f9fb;
}
.quotation-basic-details summary::-webkit-details-marker{display:none}
.quotation-basic-details summary>span:first-child{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.quotation-basic-details summary strong{
  color:#20384c;
  font-size:14px;
}
.quotation-basic-details summary small{
  color:#718096;
  font-size:12px;
  font-weight:400;
}
.quotation-basic-toggle{
  flex:0 0 auto;
  color:#35617f;
  font-size:12px;
  font-weight:600;
}
.quotation-basic-details[open] .quotation-basic-toggle::before{content:"접기"}
.quotation-basic-details[open] .quotation-basic-toggle{font-size:0}
.quotation-basic-details[open] .quotation-basic-toggle::before{font-size:12px}
.quotation-basic-body{
  padding:18px 16px 16px;
  border-top:1px solid #e4e9ee;
}
.quotation-items-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:4px;
}
.quotation-items-heading h3{margin:0}
@media(max-width:640px){
  .quotation-basic-details summary{align-items:flex-start}
  .quotation-basic-details summary>span:first-child{display:grid;gap:3px}
  .quotation-basic-body{padding:14px 12px}
}

.quotation-basic-editbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  padding-bottom:12px;
  border-bottom:1px solid #edf1f4;
}
.quotation-basic-editbar span{
  color:#718096;
  font-size:12px;
}
.quotation-basic-details input:disabled{
  background:#f4f6f8;
  color:#4b5563;
  border-color:#d7e0e8;
  cursor:not-allowed;
  opacity:1;
}
.quotation-basic-details.is-editing input{
  background:#fff;
  color:inherit;
  cursor:text;
}
.quotation-basic-details.is-editing input[type="date"]{
  cursor:pointer;
}
@media(max-width:640px){
  .quotation-basic-editbar{
    align-items:flex-start;
  }
}

/* Admin quote editor: scoped visual refresh without changing data-entry behavior. */
#order-quotation-dialog {
  width: min(1140px, calc(100vw - 28px));
  height: min(88dvh, 1020px);
  max-width: none;
  padding: 0;
  border: 1px solid #d6e0e9;
  border-radius: 16px;
  background: #f3f6f9;
  box-shadow: 0 22px 65px rgba(14, 39, 62, .20);
}
#order-quotation-dialog[open] {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - var(--admin-modal-top-gap, 50px) - var(--admin-modal-bottom-gap, 16px));
  overflow: hidden;
}
#order-quotation-dialog .order-quotation-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 15px 23px;
  background: #fff;
  border-bottom: 1px solid #dfe6ee;
}
#order-quotation-dialog .order-quotation-header-text { min-width: 0; }
#order-quotation-dialog .order-quotation-kicker {
  display: block;
  margin-bottom: 4px;
  color: #587891;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
#order-quotation-dialog #order-quotation-title {
  display: block;
  color: #173650;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
#order-quotation-dialog .order-quotation-close {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #d8e3ec;
  border-radius: 50%;
  background: #f4f7fa;
  color: #3e6079;
}
#order-quotation-dialog .order-quotation-close svg { width: 19px; height: 19px; }
#order-quotation-dialog .order-quotation-close:hover { background: #e7f0f7; border-color: #afc7da; }
#order-quotation-dialog .order-quotation-close:focus-visible { outline: 2px solid #276f9c; outline-offset: 2px; }
#order-quotation-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f3f6f9;
}
.quotation-editor { width: 100%; }
.quotation-editor-form-only { max-width: 1200px; margin-inline: auto; }
.quotation-form-card.panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.quotation-editor-section, .quotation-basic-details {
  margin: 0 0 14px;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 54, 79, .035);
}
.quotation-editor-section { padding: 20px 22px 22px; }
.quotation-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin-bottom: 17px;
}
.quotation-section-heading .quotation-section-number {
  display: inline-flex;
  flex: 0 0 29px;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: #edf4f9;
  color: #225d84;
  font-size: 12px;
  font-weight: 800;
}
.quotation-section-heading h3 {
  color: #173650;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.4;
}
.quotation-section-heading p { margin: 3px 0 0; color: #7a8d9e; font-size: 12px; }
.quotation-form-grid { column-gap: 18px; row-gap: 14px; }
.quotation-editor .quotation-form-grid > label,
.quotation-editor .wall-occupancy {
  min-width: 0;
  margin: 0;
  color: #3e5365;
  font-size: 12px;
  font-weight: 650;
}
.quotation-editor .quotation-form-grid > label { gap: 7px; }
.quotation-editor input:not([type="checkbox"]),
.quotation-editor select,
.quotation-editor textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d2dce6;
  border-radius: 8px;
  background: #fff;
  color: #253a4c;
  font: inherit;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.quotation-editor input:not([type="checkbox"]),
.quotation-editor select { height: 43px; padding: 9px 12px; }
.quotation-editor textarea { display: block; min-height: 80px; padding: 11px 12px; line-height: 1.5; resize: vertical; }
.quotation-editor input:focus-visible,
.quotation-editor select:focus-visible,
.quotation-editor textarea:focus-visible {
  outline: none;
  border-color: #2874a6;
  box-shadow: 0 0 0 3px rgba(40, 116, 166, .11);
}
.quotation-editor .quotation-basic-details { overflow: hidden; }
.quotation-basic-details summary {
  min-height: 61px;
  padding: 15px 21px;
  background: #fff;
}
.quotation-basic-details summary strong { font-size: 14px; font-weight: 750; }
.quotation-basic-details summary small { font-size: 12px; }
.quotation-basic-body { padding: 18px 21px 22px; background: #fcfdff; }
.quotation-basic-editbar { margin-bottom: 16px; }
.quotation-basic-details input:disabled { background: #f3f6f8; color: #566b7e; }
.quotation-basic-details.is-editing input { background: #fff; }
.quotation-items-heading { gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.quotation-items-heading .quotation-section-heading { margin: 0; }
.quotation-items-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e4ebf1;
  border-radius: 9px;
}
.quotation-items { min-width: 890px; margin-top: 0; }
.quotation-items th {
  padding: 12px 10px;
  background: #f4f7fa;
  color: #4f6377;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #dce5ec;
}
.quotation-items td { padding: 7px 6px; border-bottom: 1px solid #edf1f5; }
.quotation-items tbody tr:last-child td { border-bottom: none; }
.quotation-items tbody tr:hover { background: #f9fbfd; }
.quotation-editor .quotation-items input:not([type="checkbox"]) {
  height: 36px;
  padding: 6px 9px;
  font-size: 13px;
}
.quotation-items .num { font-variant-numeric: tabular-nums; }
.quotation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
  padding: 6px 0 0;
}
.quotation-editor button { border-radius: 8px; }
.quotation-actions button { min-height: 41px; padding: 9px 19px; font-size: 13px; font-weight: 650; }
.quotation-actions .quotation-save-button { background: #205f8e; color: #fff; border-color: #205f8e; }
.quotation-actions .quotation-save-button:hover { background: #174a70; }
.quotation-editor #q-message { margin: 9px 0 0; }
@media (max-width: 700px) {
  #order-quotation-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - var(--admin-modal-top-gap, 50px) - 12px);
    border-radius: 12px;
  }
  #order-quotation-dialog .order-quotation-header { min-height: 70px; padding: 12px 14px; gap: 10px; }
  #order-quotation-dialog .order-quotation-close { flex-basis: 40px; width: 40px; height: 40px; }
  #order-quotation-body { padding: 12px 10px 20px; }
  .quotation-editor-section { padding: 16px 13px 18px; }
  .quotation-basic-details summary { padding: 13px; }
  .quotation-basic-body { padding: 15px 13px 18px; }
  .quotation-form-grid { column-gap: 10px; row-gap: 14px; }
  .quotation-section-heading { margin-bottom: 15px; }
  .quotation-items-heading .quotation-section-heading { margin-bottom: 2px; }
  .quotation-actions button { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
}

/* Quotation sum is always visible alongside the Add item action. */
.quotation-cost-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.quotation-live-total {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid #d8e6f1;
  border-radius: 9px;
  background: #eff6fb;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.quotation-live-total span {
  color: #51718b;
  font-size: 12px;
  font-weight: 650;
}
.quotation-live-total strong {
  color: #174e77;
  font-size: 19px;
  font-weight: 800;
}
.quotation-cost-tools #q-add-item {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .quotation-cost-tools {
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }
  .quotation-live-total {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
  }
  .quotation-live-total strong { font-size: 16px; }
}

/* Prominent quotation save result; hidden until a message is present. */
.quotation-editor #q-message.quotation-save-feedback:empty {
  display: none;
}
.quotation-editor #q-message.quotation-save-feedback:not(:empty) {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin: 15px 0 0;
  padding: 17px 20px;
  border: 1px solid #b8d6e8;
  border-left: 5px solid #3679a8;
  border-radius: 11px;
  background: #eff7fc;
  color: #214f70;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}
.quotation-editor #q-message.quotation-save-feedback:not(:empty)::before {
  content: "i";
  display: inline-flex;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #3679a8;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.quotation-editor #q-message.quotation-save-feedback[data-state="success"] {
  background: #e9f7ee;
  border-color: #b6dfc5;
  border-left-color: #259454;
  color: #19643c;
}
.quotation-editor #q-message.quotation-save-feedback[data-state="success"]::before {
  content: "✓";
  background: #259454;
}
.quotation-editor #q-message.quotation-save-feedback[data-state="error"] {
  background: #fff0ee;
  border-color: #efc0b9;
  border-left-color: #c63d33;
  color: #9b2e28;
}
.quotation-editor #q-message.quotation-save-feedback[data-state="error"]::before {
  content: "!";
  background: #c63d33;
}
@media (max-width: 700px) {
  .quotation-editor #q-message.quotation-save-feedback:not(:empty) {
    min-height: 60px;
    padding: 14px;
    font-size: 15px;
  }
}
/* Mobile quotation item entry: keep each input usable instead of squeezing
   eight columns into the dialog width. Only the table scrolls horizontally. */
.quotation-scroll-hint { display: none; }
@media (max-width: 700px) {
  .quotation-cost-section {
    min-width: 0;
  }
  .quotation-scroll-hint {
    display: block;
    margin: 0 0 9px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #eff6fb;
    color: #285b7d;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
  }
  .quotation-cost-section .quotation-items-scroll {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #98b4ca #eaf1f6;
  }
  .quotation-cost-section .quotation-items {
    width: 1120px;
    min-width: 1120px;
    table-layout: fixed;
    margin: 0;
  }
  .quotation-cost-section .quotation-items th,
  .quotation-cost-section .quotation-items td {
    box-sizing: border-box;
    white-space: nowrap;
  }
  .quotation-cost-section .quotation-items :is(th, td):nth-child(1) { width: 180px; }
  .quotation-cost-section .quotation-items :is(th, td):nth-child(2) { width: 195px; }
  .quotation-cost-section .quotation-items :is(th, td):nth-child(3) { width: 90px; }
  .quotation-cost-section .quotation-items :is(th, td):nth-child(4) { width: 140px; }
  .quotation-cost-section .quotation-items :is(th, td):nth-child(5) { width: 145px; }
  .quotation-cost-section .quotation-items :is(th, td):nth-child(6) { width: 120px; }
  .quotation-cost-section .quotation-items :is(th, td):nth-child(7) { width: 170px; }
  .quotation-cost-section .quotation-items :is(th, td):nth-child(11) { width: 80px; }
  .quotation-cost-section .quotation-items input:not([type="checkbox"]) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 8px 10px;
    font-size: 14px;
  }
  .quotation-cost-section .quotation-items button {
    white-space: nowrap;
  }
}
/* Keep quotation footer reachable on mobile even when the wide item table
   captures a swipe. The table remains horizontally scrollable as before. */
@media (max-width: 700px) {
  .quotation-editor-form-only {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }
  .quotation-editor-form-only .quotation-actions {
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 8;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 10px;
    margin-top: 16px;
    border: 1px solid #d8e3eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 5px 22px rgba(22, 48, 70, .14);
  }
  .quotation-editor-form-only .quotation-actions button {
    min-width: 0;
    min-height: 46px;
    flex: 1 1 0;
    padding: 9px 5px;
    white-space: nowrap;
  }
  /* Vertical gestures on the cost table may continue to scroll the page. */
  .quotation-cost-section .quotation-items-scroll {
    touch-action: pan-x pan-y;
    overscroll-behavior-y: auto;
  }
}
/* Mobile quotation LIST (not editor): global .search-form becomes column,
   while the old quote-specific flex-basis:130px grew all three controls tall.
   A two-row grid restores compact, finger-friendly search controls. */
.quotation-list-scroll-hint { display: none; }
@media (max-width: 700px) {
  .quotation-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin-bottom: 12px;
    min-width: 0;
  }
  .quotation-toolbar #q-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 8px;
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
    align-items: stretch;
  }
  .quotation-toolbar #q-search > * {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    flex: none;
    margin: 0;
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.3;
  }
  .quotation-toolbar #q-search > input[name="search"] {
    grid-column: 1 / -1;
  }
  .quotation-toolbar #q-search > select[name="status"] {
    grid-column: 1;
  }
  .quotation-toolbar #q-search > button[type="submit"] {
    grid-column: 2;
    padding-inline: 8px;
  }
  .quotation-toolbar #q-create {
    width: 100%;
    min-height: 44px;
    margin: 0;
  }
  .quotation-list-scroll-hint {
    display: block;
    margin: 2px 0 9px;
    font-size: 12px;
    line-height: 1.5;
    color: #44667e;
  }
  .quotation-list-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }
  .quotation-list-table > table {
    min-width: 960px;
  }
}

/* V7: quotation list only. Keep all state/action controls visible. */
@media (min-width: 701px) {
  .quotation-toolbar { flex-wrap: nowrap; gap: 12px; }
  .quotation-toolbar #q-search { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; flex: 1 1 auto; width: auto; max-width: none; min-width: 0; }
  .quotation-toolbar #q-search > input[name="search"] { flex: 0 1 500px; width: 500px; min-width: 120px; }
  .quotation-toolbar #q-search > select[name="status"] { flex: 0 0 130px; width: 130px; min-width: 130px; }
  .quotation-toolbar #q-search > button[type="submit"], .quotation-toolbar #q-create { flex: 0 0 auto; }
}
/* V8: quotation toolbar to table header spacing. */
@media (min-width: 701px) {
  .quotation-toolbar { margin-bottom: 12px; }
}

/* V2 compact quotation list only */
.quotation-list-table {max-width:100%;min-width:0;overflow-x:auto;}
.quotation-list-table > table {width:100%;min-width:1280px;table-layout:fixed;}
.quotation-list-table > table > thead > tr > th,.quotation-list-table > table > tbody > tr > td {padding:8px 9px;vertical-align:middle;white-space:normal;word-break:keep-all;overflow-wrap:break-word;font-size:13px;line-height:1.4;}
.quotation-list-table th:nth-child(1){width:12%;}.quotation-list-table th:nth-child(2){width:9%;}.quotation-list-table th:nth-child(3){width:7%;}.quotation-list-table th:nth-child(4){width:9%;}.quotation-list-table th:nth-child(5){width:19%;}.quotation-list-table th:nth-child(6){width:10%;}.quotation-list-table th:nth-child(7){width:9%;}.quotation-list-table th:nth-child(8){width:25%;}
.quotation-list-table .q2-sub {display:block;color:#637386;font-size:12px;}
.quotation-list-table .q2-work-line + .q2-work-line {margin-top:3px;}
.quotation-list-table .q2-money {white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums;}
.quotation-list-table select[data-q-state]{width:100%;min-width:0;height:30px;padding:3px 5px;font-size:12px;}
.quotation-list-table .q2-actions{display:flex;flex-wrap:nowrap;gap:4px;align-items:center;}
.quotation-list-table .q2-actions button{margin:0;white-space:nowrap;min-height:28px;padding:3px 7px;font-size:12px;}
.quotation-list-table .q2-state{white-space:nowrap;font-weight:600;}.quotation-list-table .q2-SENT{color:#23734d;}

/* V3: reserve a single action row, including revision history. */
.quotation-list-table .q2-actions button{flex:0 0 auto;width:auto;min-width:0;max-width:none;box-sizing:border-box;padding-inline:6px;}

/* V4 dispatch history */
.q4-dispatch-dialog{width:min(520px,calc(100vw - 32px));max-height:85vh;box-sizing:border-box;border:1px solid #bac5d0;border-radius:10px;padding:20px;color:#24384b;background:white;overflow:auto;}
.q4-dispatch-dialog::backdrop{background:rgba(15,30,45,.45);}
.q4-dispatch-dialog h3{margin:0 0 12px;}.q4-dispatch-meta{font-size:13px;color:#637386;margin:6px 0;}
.q4-dispatch-list{max-height:52vh;overflow:auto;margin:14px 0;}.q4-dispatch-entry{border-top:1px solid #dce3eb;padding:12px 0;}.q4-dispatch-entry dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:6px 10px;margin:8px 0 0;font-size:13px;}.q4-dispatch-entry dt{color:#637386;}.q4-dispatch-entry dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;}.q4-sent{color:#23734d;}.q4-cancelled{color:#a33a32;}.q4-dispatch-dialog>button{display:block;margin-left:auto;}
/* Preserve one action row even for drafts with both kinds of history. */
.quotation-list-table > table{min-width:1480px;}.quotation-list-table th:nth-child(5){width:17%;}.quotation-list-table th:nth-child(8){width:27%;}

/* Center submission queue */
.q-center-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}.q-center-filters button{display:flex;gap:8px;align-items:center;margin:0;padding:8px 12px;white-space:nowrap}.q-center-filters button[aria-pressed="true"]{background:#205b87;color:white;border-color:#205b87}.q-center-filters strong{font-variant-numeric:tabular-nums}.q-center-badge{display:table;margin-top:4px;border-radius:4px;padding:2px 6px;font-size:11px;font-weight:600;white-space:normal;background:#edf1f5;color:#526477}.q-center-PENDING,.q-center-MISSING{background:#fff2dc;color:#925500}.q-center-DONE{background:#edf8f0;color:#23683c}.q-center-RECHECK{background:#fdecea;color:#a33a32}.q-center-filters [data-center-filter="PENDING"]:not([aria-pressed="true"]){color:#925500}.q-center-filters [data-center-filter="DONE"]:not([aria-pressed="true"]){color:#23683c}
[data-page="quotations"][data-center-pending]::after,[data-mobile-page="quotations"][data-center-pending]::after{content:attr(data-center-pending);display:inline-block;margin-left:6px;padding:1px 6px;border-radius:12px;background:#f18a27;color:white;font-size:11px;font-weight:700;line-height:1.5}

.q-center-REPORTED{background:#edf8f0;color:#23683c}.q-center-filters [data-center-filter="REPORTED"]:not([aria-pressed="true"]){color:#23683c}

.quotation-list-table .q2-ISSUED{color:#2563eb}.quotation-list-table .q2-REPORTED{color:#23734d}

/* Work-order workflow status */
.q-center-filters button[hidden]{display:none!important}.q-center-WORK_WAIT,.q-center-HOLD,.q-center-OTHER,.q-center-CANCELLED{background:#edf1f5;color:#526477}.q-center-WORKING{background:#eaf2ff;color:#28558c}.q-center-WAITING{background:#fff2dc;color:#925500}.q-center-MISSING{background:#fdecea;color:#a33a32}.q-center-filters [data-center-filter="MISSING"]:not([aria-pressed="true"]){color:#a33a32}

/* RH_CENTER_CONFIRM_V1 */
.quotation-list-table .q-confirm-badge{display:table;margin-top:4px;padding:3px 7px;border:1px solid transparent;border-radius:5px;font-size:11px;font-weight:700;line-height:1.5;white-space:nowrap;min-height:0;min-width:0;width:auto;box-shadow:none;}
.quotation-list-table .q-confirm-pending,.q-center-CONFIRMING{background:#fff2dc;color:#925500;border-color:#eed6a8;}
.quotation-list-table .q-confirm-complete{background:#edf8f0;color:#23683c;border-color:#b9dfc7;}
.quotation-list-table button.q-confirm-badge{cursor:pointer;}.quotation-list-table button.q-confirm-badge:focus-visible{outline:2px solid #205b87;outline-offset:2px;}
.q-center-filters [data-center-filter="CONFIRMING"]:not([aria-pressed="true"]){color:#925500;}

/* RH quotation mail UI v2: scoped to quotation list, not editor */
.quotation-list-table > table{min-width:1330px;table-layout:fixed;border-collapse:separate;border-spacing:0}
.quotation-list-table > table > thead > tr > th,.quotation-list-table > table > tbody > tr > td{padding:9px 10px;vertical-align:middle;line-height:1.45;border-bottom:1px solid #e4eaf0}
.quotation-list-table > table > thead > tr > th{background:#edf2f6;color:#42566a;font-weight:650;white-space:nowrap}
.quotation-list-table > table > thead > tr > th:nth-child(1){width:44px;text-align:center;padding:6px}
.quotation-list-table > table > thead > tr > th:nth-child(2){width:12%}
.quotation-list-table > table > thead > tr > th:nth-child(3){width:10%}
.quotation-list-table > table > thead > tr > th:nth-child(4){width:8%}
.quotation-list-table > table > thead > tr > th:nth-child(5){width:9%}
.quotation-list-table > table > thead > tr > th:nth-child(6){width:18%}
.quotation-list-table > table > thead > tr > th:nth-child(7){width:11%;text-align:right}
.quotation-list-table > table > thead > tr > th:nth-child(8){width:15%}
.quotation-list-table > table > thead > tr > th:nth-child(9){width:auto}
.quotation-list-table td.q-mail-select-cell{text-align:center;padding:6px!important}
.quotation-list-table input[type=checkbox]#q-mail-all,.quotation-list-table input[type=checkbox][data-mail-id]{appearance:auto!important;display:inline-block!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;padding:0!important;margin:0!important;vertical-align:middle;accent-color:#205b87;cursor:pointer;box-shadow:none!important}
.quotation-list-table input#q-mail-all[hidden]{display:none!important}
.quotation-list-table input[type=checkbox]:disabled{cursor:default;opacity:.5}
.quotation-list-table tbody tr:hover>td{background:#f7fafc}
.quotation-list-table tbody tr.q-mail-selected>td{background:#eaf3fb}
.quotation-list-table .q2-actions{flex-wrap:wrap;gap:5px}
.quotation-list-table .q2-actions button{border-radius:5px;min-height:29px;padding:4px 8px}
.quotation-list-table .q2-state{display:block;font-size:12px;color:#28558c}
.quotation-list-table .q2-SENT{color:#23734d}.quotation-list-table .q2-DRAFT{color:#64748b}
.quotation-list-table .q-center-badge,.quotation-list-table .q-confirm-badge{display:inline-block;margin:3px 4px 0 0;vertical-align:middle;line-height:1.4}
.quotation-list-table .q2-sub{font-size:11px;line-height:1.5}
#q-mail-tools{gap:10px;align-items:center;background:#f5f8fb;border:1px solid #dbe5ee;border-radius:8px;padding:12px 14px;margin:0 0 12px;flex-wrap:wrap}
#q-mail-tools[hidden]{display:none!important}
#q-mail-tools .q-mail-intro{display:flex;flex-direction:column;gap:2px;margin-right:auto;min-width:150px}
#q-mail-tools .q-mail-intro strong{font-size:14px;color:#203b52}
#q-mail-tools .q-mail-intro small{font-size:11px;color:#637386}
#q-mail-tools label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;white-space:nowrap}
#q-mail-tools input[type=date]{width:155px;min-width:0;height:36px;min-height:36px;margin:0;padding:5px 8px;border-radius:6px;font-size:13px}
#q-mail-tools button{min-height:36px;height:auto;margin:0;padding:7px 12px;border-radius:6px;font-size:12px;white-space:nowrap}
#q-mail-tools button:disabled{opacity:.5;cursor:not-allowed}
#q-mail-count{font-size:12px;color:#205b87;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.quotation-toolbar:has(#q-search){flex-wrap:wrap;gap:10px}
.quotation-toolbar #q-search{flex-wrap:wrap;gap:8px}
.quotation-toolbar #q-search>input[name=search]{flex:1 1 240px;width:auto;min-width:180px}
.quotation-toolbar #q-search>select{flex:0 1 145px;width:145px;min-width:110px}
.quotation-toolbar #q-search>input,.quotation-toolbar #q-search>select,.quotation-toolbar #q-search>button,.quotation-toolbar #q-create{height:36px;min-height:36px;border-radius:6px;font-size:13px}
.q-center-filters button{border-radius:6px;min-height:36px;font-size:12px;padding:7px 10px}
.q-center-filters button strong{background:rgba(100,116,139,.12);border-radius:5px;padding:1px 6px}
.q-center-filters button[aria-pressed=true] strong{background:rgba(255,255,255,.2)}
@media(max-width:700px){#q-mail-tools .q-mail-intro{flex-basis:100%}#q-mail-tools label{flex:1 1 180px}.quotation-toolbar #q-search>select{width:100%;min-width:0}.quotation-toolbar #q-search>button[type=submit]{grid-column:auto}.quotation-toolbar #q-search>input[name=search]{min-width:0;width:100%}}

/* RH quotation mail UI v4: one horizontal, left-aligned status group. */
.quotation-list-table > table{min-width:1740px;table-layout:fixed}
.quotation-list-table > table > thead > tr > th:nth-child(1){width:40px}
.quotation-list-table > table > thead > tr > th:nth-child(2){width:155px}
.quotation-list-table > table > thead > tr > th:nth-child(3){width:115px}
.quotation-list-table > table > thead > tr > th:nth-child(4){width:95px}
.quotation-list-table > table > thead > tr > th:nth-child(5){width:85px}
.quotation-list-table > table > thead > tr > th:nth-child(6){width:auto}
.quotation-list-table > table > thead > tr > th:nth-child(7){width:110px}
.quotation-list-table > table > thead > tr > th:nth-child(8){width:450px;text-align:left}
.quotation-list-table > table > thead > tr > th:nth-child(9){width:112px;text-align:center}
.quotation-list-table > table > thead > tr > th:nth-child(10){width:215px}
.quotation-list-table > table > tbody > tr > td{padding-block:8px}
.quotation-list-table .q-status-cell{text-align:left}
.quotation-list-table .q-status-line{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:4px;min-width:0}
.quotation-list-table .q-status-line > .q2-state,.quotation-list-table .q-status-line > .q-center-badge,.quotation-list-table .q-status-line > .q-confirm-badge,.quotation-list-table .q-status-line > .q2-sub{display:inline-flex;align-items:center;flex:0 0 auto;margin:0;padding:3px 6px;border-radius:4px;white-space:nowrap;font-size:11px;font-weight:600;line-height:1.4;min-height:0;width:auto;box-sizing:border-box}
.quotation-list-table .q-status-line > .q2-state{background:#eaf2ff;color:#28558c}
.quotation-list-table .q-status-line > .q2-SENT,.quotation-list-table .q-status-line > .q2-REPORTED{background:#edf8f0;color:#23683c}
.quotation-list-table .q-status-line > .q2-DRAFT{background:#edf1f5;color:#526477}
.quotation-list-table .q-status-line > select[data-q-state]{width:auto;max-width:100%;flex:0 0 auto}
.quotation-list-table > table > tbody > tr > td.q-mail-date{text-align:center;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums;color:#42566a}
.quotation-list-table .q-mail-empty{color:#94a3b8}

.quotation-list-table > table > thead > tr > th{box-sizing:border-box}
.quotation-list-table .q-status-line > *{flex-shrink:0}
.quotation-list-table .q-status-line > select[data-q-state]{min-width:90px}

/* RH quotation mail UI v5: fit all ten columns inside the available panel. */
.quotation-list-table {width:100%;max-width:100%;min-width:0;box-sizing:border-box;container-type:inline-size;}
.quotation-list-table > table {width:100%;min-width:0;max-width:100%;table-layout:fixed;box-sizing:border-box;}
.quotation-list-table > table > thead > tr > th,.quotation-list-table > table > tbody > tr > td {box-sizing:border-box;padding:6px 5px;min-width:0;overflow-wrap:anywhere;word-break:normal;}
.quotation-list-table > table > thead > tr > th {white-space:normal;}
.quotation-list-table > table > thead > tr > th:nth-child(1){width:3%;}
.quotation-list-table > table > thead > tr > th:nth-child(2){width:11%;}
.quotation-list-table > table > thead > tr > th:nth-child(3){width:8%;}
.quotation-list-table > table > thead > tr > th:nth-child(4){width:6%;}
.quotation-list-table > table > thead > tr > th:nth-child(5){width:6%;}
.quotation-list-table > table > thead > tr > th:nth-child(6){width:12%;}
.quotation-list-table > table > thead > tr > th:nth-child(7){width:8%;}
.quotation-list-table > table > thead > tr > th:nth-child(8){width:24%;}
.quotation-list-table > table > thead > tr > th:nth-child(9){width:8%;}
.quotation-list-table > table > thead > tr > th:nth-child(10){width:14%;}

.quotation-list-table .q-status-line {gap:3px;flex-wrap:wrap;align-content:center;}
.quotation-list-table .q-status-line > .q2-state,.quotation-list-table .q-status-line > .q-center-badge,.quotation-list-table .q-status-line > .q-confirm-badge,.quotation-list-table .q-status-line > .q2-sub {padding:2px 4px;font-size:11px;max-width:100%;}
.quotation-list-table .q2-actions {gap:3px;flex-wrap:wrap;}
.quotation-list-table .q2-actions button,.quotation-list-table td > button.small {padding:3px 5px;min-width:0;max-width:100%;font-size:11px;min-height:26px;white-space:normal;overflow-wrap:anywhere;}
.quotation-list-table .q2-money,.quotation-list-table > table > tbody > tr > td.q-mail-date {white-space:normal;overflow-wrap:anywhere;}
.quotation-list-table .q-status-line > select[data-q-state]{min-width:0;max-width:100%;}
@container (max-width:1200px) {
 .quotation-list-table > table > thead > tr > th,.quotation-list-table > table > tbody > tr > td {padding:5px 3px;font-size:12px;}
 .quotation-list-table .q-status-line > .q2-state,.quotation-list-table .q-status-line > .q-center-badge,.quotation-list-table .q-status-line > .q-confirm-badge,.quotation-list-table .q-status-line > .q2-sub {font-size:10px;padding:2px 3px;}
}
@container (max-width:780px) {
 .quotation-list-table > table {min-width:780px;}
}

/* RH v6: center headers only; retain data alignment. */
.quotation-list-table > table > thead > tr > th {text-align:center!important;}
