:root{font-family:"Malgun Gothic",sans-serif;color:#22334b;background:#f4f6fa;font-size:14px}*{box-sizing:border-box}body{margin:0}header,main{max-width:1440px;margin:auto;padding:28px 36px}header{display:flex;justify-content:space-between;align-items:center}h1{font-size:30px;margin:15px 0}p{line-height:1.7}a{color:#2759ae}button{cursor:pointer;background:#2759ae;color:white;border:0;border-radius:7px;padding:10px 16px;font:inherit}button:disabled{opacity:.5;cursor:wait}input,select,textarea{font:inherit;border:1px solid #c8d1df;border-radius:6px;padding:10px;background:white;color:#22334b;max-width:100%}label{display:flex;flex-direction:column;gap:7px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:16px}.card{padding:22px;background:white;border:1px solid #e0e5ed;border-radius:12px}.card strong{display:block;font-size:24px;margin-top:10px}.toolbar,.totals{display:flex;align-items:center;gap:12px;margin:22px 0;flex-wrap:wrap}.toolbar input{flex:1}.muted,small{color:#64748b}small{display:block;margin-top:6px}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;background:white}td,th{padding:14px;text-align:left;border-bottom:1px solid #e0e5ed}th{background:#eaf0f8;white-space:nowrap}#list tr{cursor:pointer}#list tr:hover{background:#eef4ff}.receivable{color:#245bb6}.payable,.overdue{color:#b83e46}dialog{width:min(1000px,95vw);max-height:92vh;border:0;border-radius:14px;padding:26px;box-shadow:0 20px 90px #13274455}dialog::backdrop{background:#17243b66}.dialog-head{display:flex;align-items:center;justify-content:space-between}h3{margin-top:28px}h3 button{font-size:12px;margin-left:10px}#items input,#schedule input{width:100%;min-width:90px}#items td:first-child{width:45%}#tx{width:100%;margin:10px 0}#links>div{padding:12px;background:#f0f4fa;margin:8px 0;border-radius:6px}#links button{margin-left:15px}#error,#notice{color:#b13039;white-space:pre-wrap}#history{font-size:12px;max-height:180px;overflow:auto;white-space:pre-wrap}#print-page{display:none}.print-doc h1{text-align:center;letter-spacing:12px}.print-doc .amount{font-size:22px;padding:20px;background:#edf2f8}.print-doc{white-space:normal}.print-doc p{white-space:pre-wrap}@media(max-width:700px){header,main{padding:18px}.summary,.grid{grid-template-columns:1fr 1fr}.card{padding:12px}.card strong{font-size:18px}header{align-items:flex-start;gap:12px}}@media print{@page{size:A4;margin:18mm}body{background:white}body>header,body>main,dialog{display:none!important}#print-page{display:block!important}table{font-size:12px}tr{break-inside:avoid}button{display:none}a{color:inherit}}
:root{--ink:#172d47;--rule:#d8dfe6}
#items td:first-child{min-width:270px}#items input[data-key="spec"]{font-size:12px;margin-top:6px;background:#f8fafc}#items input[data-key="unit"]{min-width:45px;width:60px}#document-view{width:min(990px,97vw);padding:0;background:#e9edf2}#document-paper{padding:24px;overflow:auto}.document-actions{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:15px 24px;background:white;border-bottom:1px solid var(--rule)}.document-actions>strong{margin-right:auto}.seal-option{display:flex;flex-direction:row;align-items:center;white-space:nowrap}.quotation{width:186mm;min-height:268mm;margin:auto;background:white;padding:0 0 10mm;color:#172536;font-family:"Malgun Gothic",sans-serif}.quote-topline{height:5px;background:#172d47}.quotation .quote-header{display:flex;justify-content:space-between;align-items:center;padding:22px 0 20px;margin:0;max-width:none;gap:20px;border-bottom:1px solid var(--rule)}.brand-lockup{display:flex;align-items:center;gap:18px}.company-logo{width:120px;height:auto;display:block}.brand-caption{font-size:20px;font-weight:700;letter-spacing:.3px}.brand-caption span{display:block;font-size:10px;color:#677688;letter-spacing:.5px;margin-top:6px}.quote-title{text-align:right}.quotation .quote-title h1{font-size:32px;letter-spacing:8px;margin:0 0 10px;line-height:1.2}.quote-title p{font-size:10px;letter-spacing:.6px;margin:0;color:#718095}.example-label{display:inline-block;font-size:10px;font-weight:400;margin-top:8px;padding:4px 8px;background:#edf2f7;color:#49637c}.quote-parties{display:grid;grid-template-columns:.85fr 1.15fr;gap:26px;padding:22px 0}.quotation .eyebrow{font-size:10px;color:#728197;letter-spacing:1px}.quotation h2{font-size:21px;margin:12px 0}.quotation h2 small{display:inline;font-size:12px;font-weight:400;margin-left:6px}.quote-project{font-size:12px;margin:12px 0 18px;line-height:1.6}.quote-recipient dl{display:grid;grid-template-columns:60px 1fr;gap:8px;font-size:11px;margin:0}.quote-recipient dt{color:#728197}.quote-recipient dd{margin:0}.quote-greeting{font-size:11px;margin-top:20px;color:#526172}.issuer-label{font-size:11px;font-weight:700;padding-bottom:8px;border-bottom:2px solid var(--ink)}.quote-issuer table{font-size:10px}.quote-issuer th,.quote-issuer td{padding:6px 7px;background:white;border-bottom:1px solid #e4e8ee;line-height:1.5}.quote-issuer th{width:56px;color:#728197;font-weight:400;white-space:nowrap}.quote-grand-total{display:flex;justify-content:space-between;align-items:center;background:#edf2f7;border-top:2px solid var(--ink);padding:18px 20px;margin:0 0 24px}.quote-grand-total div>span{display:block;font-size:11px;color:#50647a}.quote-grand-total small{display:inline;font-size:10px;margin-left:6px}.quote-grand-total strong{display:block;font-size:28px;margin-top:5px;color:#172d47;letter-spacing:-.4px}.quote-grand-total p{font-size:10px;color:#5f7186;text-align:right;margin:0}.quote-grand-total p span{display:block;margin-top:5px}.quote-items{font-size:11px;table-layout:fixed}.quote-items th{background:#172d47;color:white;font-weight:400;padding:11px 7px}.quote-items th:first-child{width:32px}.quote-items th:nth-child(2){width:auto;text-align:left}.quote-items th:nth-child(3){width:42px}.quote-items th:nth-child(4){width:35px}.quote-items th:nth-child(5){width:87px}.quote-items th:nth-child(6){width:100px}.quote-items td{padding:15px 7px;vertical-align:top;line-height:1.6}.quote-items .number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.quote-items .unit,.quote-items .line-number{text-align:center;color:#6c7a89}.quote-items .description strong{font-weight:600}.quote-items .description small{font-size:9px;color:#718095;white-space:pre-wrap;line-height:1.6}.quote-items tfoot th{background:white;color:#637186;text-align:right;font-size:10px;padding:8px 12px;border:0}.quote-items tfoot td{text-align:right;padding:8px 7px;border:0}.quote-items tfoot .total th,.quote-items tfoot .total td{border-top:1px solid #9eacbc;border-bottom:2px solid var(--ink);font-size:12px;font-weight:700;color:var(--ink);padding-top:12px;padding-bottom:12px}.quotation .quote-section h3{font-size:12px;margin:22px 0 10px}.quote-schedules{display:flex;border:1px solid var(--rule)}.quote-schedules>div{flex:1;padding:12px 15px;border-right:1px solid var(--rule)}.quote-schedules>div:last-child{border:0}.quote-schedules span{font-size:10px;color:#6a7a8e}.quote-schedules strong{display:block;font-size:15px;margin:5px 0}.quote-schedules small{font-size:10px}.quote-conditions p{font-size:10px;line-height:1.9;white-space:pre-line;margin:0}.quote-signature{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-height:82px;margin-top:18px}.quote-signature strong{display:block;font-size:12px}.quote-signature span{display:block;font-size:11px;margin-top:6px;text-align:right}.quote-signature .seal-word{display:inline;color:#7f8b99;margin:0 0 0 10px}.company-seal{width:66px;height:66px}.quote-footer{display:flex;align-items:center;flex-wrap:wrap;gap:12px;border-top:1px solid var(--rule);padding-top:12px;font-size:8px;color:#8b97a5;line-height:1.8}.quote-footer strong{color:#65768a;font-size:10px}.quote-footer span:last-child{margin-left:auto}@media print{@page{size:A4;margin:12mm}#document-view{display:none!important}#print-page{display:block!important}.quotation{width:100%;min-height:0;padding:0}.quotation .quote-header{padding-top:18px}.quote-items thead{display:table-header-group}.quote-items tfoot{display:table-row-group}.quote-section,.quote-signature,.quote-grand-total{break-inside:avoid}.quote-items th{-webkit-print-color-adjust:exact;print-color-adjust:exact}.quote-grand-total,.quote-topline{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* Keep the five-item example on one A4 page at the same readable scale. */
.quotation{padding-bottom:0}.quotation .quote-header{padding:12px 0}.company-logo{width:108px}.brand-lockup{gap:14px}.brand-caption{font-size:18px}.quote-title p{font-size:9px}.quotation .quote-title h1{font-size:28px;margin-bottom:5px}.example-label{font-size:9px;padding:3px 6px;margin-top:5px}.quote-parties{padding:13px 0;gap:22px}.quotation h2{font-size:20px;margin:10px 0}.quote-project{margin:10px 0 14px}.quote-greeting{margin-top:14px}.quote-issuer table{font-size:9px}.quote-issuer th,.quote-issuer td{padding:3px 6px;line-height:1.4}.issuer-label{padding-bottom:6px}.quote-grand-total{padding:12px 17px;margin-bottom:17px}.quote-grand-total strong{font-size:26px}.quote-items{font-size:11px}.quote-items th{padding:8px 6px;font-size:10px}.quote-items td{padding:6px;line-height:1.4}.quote-items .description small{margin-top:2px;font-size:9px;line-height:1.35}.quote-items tfoot th,.quote-items tfoot td{padding:4px 6px;font-size:10px;line-height:1.3}.quote-items tfoot .total th,.quote-items tfoot .total td{padding-top:7px;padding-bottom:7px;font-size:11px}.quotation .quote-section h3{margin:14px 0 8px;font-size:11px}.quote-schedules>div{padding:9px 12px}.quote-schedules strong{font-size:14px;margin:3px 0}.quote-conditions p{font-size:9px;line-height:1.6}.quote-signature{min-height:62px;margin-top:12px}.company-seal{width:58px;height:58px}.quote-footer{padding-top:8px;gap:10px}.quote-signature strong{font-size:11px}@media print{.quotation .quote-header{padding:12px 0}}

.company-settings{background:#f0f4f9;border:1px solid #dce3ee;border-radius:8px;padding:14px 16px;margin:10px 0 22px}.company-settings summary{cursor:pointer;color:#52627a}.company-settings summary strong{color:#172d47}.company-settings summary span{float:right;font-size:12px}.company-settings .grid{margin-top:18px}.catalog-row{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #dce3ee;padding:16px 0}.catalog-row>div:last-child{display:flex;align-items:center;gap:8px}.catalog-row button{padding:8px 12px}#catalog-search{width:100%}#catalog-error{color:#b13039}#catalog-upload{background:#f0f4f9;padding:16px;margin:16px 0}#source-preview{max-width:100%;max-height:250px;object-fit:contain;margin:12px auto}#ocr-text{width:100%}#catalog-form>button{margin-top:18px}#catalog-list{max-height:55vh;overflow:auto}#catalog-fields{margin-bottom:18px}#items td:last-child button{margin:3px;font-size:12px;padding:6px}.quote-signature{margin-top:8px;min-height:58px}.quotation .quote-section h3{margin-top:11px}

#items .line-discount{min-width:160px}#items .line-discount>div{display:flex;gap:5px}#items .line-discount input{min-width:75px;width:85px}#items .line-discount select{width:55px;padding:8px}#items .line-discount small{font-size:11px;white-space:nowrap}.quote-items .discount-note{color:#a04134}#items td:first-child{min-width:230px}

#catalog button[aria-pressed="true"]{background:#15375b;box-shadow:inset 0 0 0 2px #15375b}#catalog button[aria-pressed="false"]{background:#e7edf5;color:#274765}

.quotation .quote-payment{margin-top:14px;padding:13px 17px;border:1px solid #b8c8d8;border-left:4px solid #172d47;border-radius:5px;background:#f3f6fa;break-inside:avoid}.quotation .quote-payment h3{margin:0 0 9px;font-size:11px;color:#52667c}.payment-account{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}.payment-bank{font-size:13px;font-weight:700}.payment-account strong{font-size:21px;letter-spacing:.6px;font-variant-numeric:tabular-nums;line-height:1.4}.payment-holder{display:flex;gap:12px;margin-top:7px;font-size:11px;line-height:1.5}.payment-holder span{color:#607389}.payment-holder b{font-weight:600}.payment-raw{font-size:15px;font-weight:600;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}@media print{.quote-payment{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

#quote-form [hidden]{display:none!important}

.quote-filters{margin:22px 0;padding:18px 20px;border:1px solid #dce3ee;border-radius:12px;background:white}.period-tools,.period-presets,.sort-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.period-tools{margin-bottom:10px}.period-presets{align-items:center;column-gap:8px}.period-presets strong{margin-right:2px;white-space:nowrap}.view-options-row{display:flex;align-items:end;flex-wrap:wrap;gap:10px 26px}.sort-control{min-width:165px}.quote-filters label{font-size:12px;color:#53657d;gap:5px}.quote-filters input,.quote-filters select{font-size:14px}.soft{background:#e9eff7;color:#254666}.quote-filters p{margin:14px 0 0;color:#53657d;font-size:12px}.quote-filters .view-error{color:#b13039}@media(max-width:700px){.quote-filters{padding:14px}}

.card-entry{padding:14px;margin:10px 0;border:1px solid #dce3ee;border-radius:8px}.card-entry button{align-self:end;justify-self:start}

#editor .dialog-head{position:sticky;top:-26px;z-index:2;background:white;padding:8px 0;border-bottom:1px solid #e1e7ef}

.price-comparison{margin-top:10px}.price-comparison summary{cursor:pointer;color:#31509a;font-weight:600}.price-comparison p{white-space:pre-line;font-size:13px;line-height:1.7;color:#41536b}

@media print {
  .quote-items tfoot, .quote-signoff { break-inside: avoid; }
  .quote-signoff { display: flow-root; }
  .quote-footer { margin-top: 5px; }
}

.quotation .quote-header { padding: 8px 0; }
.quotation .company-logo { width: 94px; }
.quote-parties { grid-template-columns: 0.8fr 1.2fr; gap: 18px; padding: 10px 0; }
.quote-recipient dl { gap: 4px 8px; }
.quotation h2 { margin: 6px 0; }
.quote-project { margin: 5px 0 8px; overflow-wrap: anywhere; }
.quote-greeting { margin: 6px 0 0; }
.issuer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; margin: 0; font-size: 10px; }
.issuer-fields > div { display: grid; grid-template-columns: 43px minmax(0, 1fr); padding: 3px 0; border-bottom: 1px solid #e4e8ee; }
.issuer-fields .issuer-wide { grid-column: 1 / -1; }
.issuer-fields dt { color: #637186; }
.issuer-fields dd { margin: 0; overflow-wrap: anywhere; }
.quote-grand-total { padding: 7px 12px; margin-bottom: 10px; }
.quote-grand-total strong { font-size: 22px; margin-top: 2px; }
.quote-grand-total p span { margin-top: 2px; }
.quote-items td { padding: 4px 6px; }
.quote-items .description { overflow-wrap: anywhere; }
.quotation .quote-section h3 { margin: 9px 0 5px; }
.quote-schedules { flex-wrap: wrap; }
.quote-schedules > div { flex: 1 0 20%; padding: 5px 8px; }
.quote-signoff-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 10px; }
.quotation .quote-payment { margin: 0; padding: 7px 9px; }
.quotation .quote-payment h3 { margin-bottom: 4px; }
.payment-account { gap: 4px 10px; }
.payment-account strong { font-size: 17px; }
.payment-holder { margin-top: 3px; }
.quote-signature { grid-column: 2; min-height: 0; margin: 0; }
.company-seal { width: 48px; height: 48px; }
.quote-footer { margin-top: 6px; padding-top: 4px; }
@media print {
  .quotation .quote-header { padding: 8px 0; }
  .quote-conditions { break-inside: auto; }
  .quote-conditions h3 { break-after: avoid; }
}

.jpg-export { position: fixed; top: 0; left: -220mm; width: 210mm; }
.quotation.jpg-page { width: 210mm; min-height: 297mm; padding: 12mm; }
#document-jpg-links { padding: 12px 24px; background: white; }
#document-jpg-links a { display: inline-block; margin: 4px 12px 4px 0; }
.document-actions { flex-wrap: wrap; }

.confirmation-inbox.confirmation-important{background:#9a3412;color:#fff;border-color:#9a3412;font-weight:700}
.confirmation-pulse{animation:confirmation-pulse 1.3s ease-in-out 2}
@keyframes confirmation-pulse{50%{box-shadow:0 0 0 5px #fb923c65}}
@media(prefers-reduced-motion:reduce){.confirmation-pulse{animation:none}}
.confirmation-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.confirmation-panel{margin:14px 0 20px;padding:18px;border:1px solid #e8b094;border-radius:12px;background:#fff7ed;color:#252a35}
.confirmation-panel[hidden]{display:none}
.confirmation-panel.confirmation-idle{background:#fff;border-color:#dbe2e8}
.confirmation-panel.confirmation-idle h2{font-size:16px;color:#475569}
.confirmation-history .confirmation-card{border-color:#dbe2e8;border-left-color:#94a3b8}
.confirmation-history .confirmation-status{background:#f1f5f9;color:#475569}
.confirmation-panel h2{margin:0 0 10px;font-size:20px}
.confirmation-card{margin-top:10px;padding:16px;border:1px solid #e9d8cc;border-left:4px solid #c2410c;border-radius:9px;background:#fff}
.confirmation-card-title,.confirmation-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.confirmation-card-title{justify-content:space-between}
.confirmation-status{border-radius:12px;padding:4px 9px;background:#ffedd5;color:#7c2d12;font-weight:700;font-size:13px}
.confirmation-facts,.confirmation-reply{color:#475569;font-size:14px}
.confirmation-question{font-weight:700}
.confirmation-card textarea{width:100%;max-width:500px;display:block;margin:10px 0;box-sizing:border-box}
.confirmation-offline{color:#7c2d12}

.staff-quote-workspace > header {
  padding-bottom: 0;
}
.staff-quote-workspace > header h1 {
  margin: 0 0 8px;
}
.staff-quote-workspace > header p {
  margin: 0;
  color: #53657d;
}
.staff-quote-workspace main {
  padding-top: 8px;
}
.staff-quote-workspace #quote-tools {
  gap: 8px;
  margin: 12px 0 24px;
  padding: 12px;
  border: 1px solid #d8dfe6;
  border-radius: 12px;
  background: #fff;
}
.staff-quote-workspace #quote-tools button {
  min-height: 42px;
}
.staff-quote-workspace #quote-tools button:not(#new):not(.confirmation-important) {
  color: #214567;
  background: #edf3fa;
}
.staff-quote-workspace #quote-tools :is([aria-pressed="true"], [aria-expanded="true"]) {
  box-shadow: inset 0 0 0 2px currentColor;
}
.staff-quote-workspace #logout {
  margin-left: auto;
}
.staff-quote-workspace #quote-pages[hidden],
.staff-amount-label {
  display: none;
}
.staff-search-bar {
  gap: 8px;
  margin: 0 0 12px;
}
.staff-search-bar #search {
  flex: 2 1 250px;
  min-width: 0;
}
.staff-list-options {
  margin-bottom: 16px;
}
.staff-list-options > summary {
  width: fit-content;
  padding: 8px 4px;
  color: #254666;
  cursor: pointer;
  font-weight: 600;
}
.staff-list-options .quote-filters {
  margin: 8px 0 14px;
}
.quote-list-open {
  width: 100%;
  padding: 4px 0;
  text-align: left;
  overflow-wrap: anywhere;
  background: transparent;
  color: #204e9b;
}
.quote-list-open:hover strong {
  text-decoration: underline;
}
.staff-quote-workspace #payment-quick {
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d8dfe6;
  border-radius: 10px;
  background: #f3f7fb;
}
.staff-quote-workspace #payment-quick > :is(strong, small, span, p) {
  flex-basis: 100%;
  margin: 0;
}
.staff-quote-workspace #payment-quick-status:empty {
  display: none;
}
.staff-quote-workspace #staff-payment-reason {
  color: #495c70;
}
.staff-quote-workspace :is(button, input, select, summary):focus-visible {
  outline: 2px solid #2759ae;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .staff-quote-workspace > :is(header, main) {
    padding-left: 14px;
    padding-right: 14px;
  }
  .staff-quote-workspace #quote-tools {
    margin-bottom: 16px;
  }
  .staff-search-bar #search {
    flex-basis: 100%;
  }
  .staff-search-bar :is(select, button) {
    flex: 1 1 140px;
    min-width: 0;
  }
  .staff-quote-workspace #quote-list-panel .scroll > table,
  .staff-quote-workspace #list {
    display: block;
    background: transparent;
  }
  .staff-quote-workspace #quote-list-panel thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .staff-quote-workspace #list tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px 8px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #d8dfe6;
    border-radius: 10px;
    background: #fff;
  }
  .staff-quote-workspace #list td {
    min-width: 0;
    padding: 0;
    overflow-wrap: anywhere;
    border: 0;
  }
  .staff-quote-workspace #list td:first-child:not([colspan]) {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }
  .staff-quote-workspace #list td:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .staff-quote-workspace #list :is(td:nth-child(3), td:nth-child(7), td[colspan]) {
    grid-column: 1 / -1;
  }
  .staff-quote-workspace #list .quote-overdue-empty {
    display: none;
  }
  .staff-amount-label {
    display: block;
    margin: 0 0 4px;
  }
  .staff-quote-workspace #editor {
    width: calc(100vw - 20px);
    padding: 16px;
  }
  .staff-quote-workspace #editor .dialog-head {
    top: -16px;
    gap: 6px;
  }
  .staff-quote-workspace #editor #heading {
    min-width: 0;
    flex: 1;
    margin: 8px 0;
    font-size: 17px;
    overflow-wrap: anywhere;
  }
  .staff-quote-workspace #editor .dialog-head button {
    flex: none;
    margin: 0;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .staff-quote-workspace #editor .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-quote-workspace #editor .grid > * {
    min-width: 0;
  }
  .staff-quote-workspace #editor .grid :is(input, select) {
    width: 100%;
    min-width: 0;
  }
}


/* Quotation photo attachments */
#quote-photo-editor{border:1px solid #d9e2ed;border-radius:10px;padding:16px;margin:20px 0;background:#f8fafc}
#quote-photo-editor h3{margin:0 0 8px}.photo-add{display:inline-flex;max-width:100%;gap:8px;font-weight:600}
.quote-photo-card{display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;padding:16px 0;border-top:1px solid #d9e2ed;margin-top:16px}
.quote-photo-card canvas{width:140px;height:110px;object-fit:contain;background:white;border-radius:6px}.quote-photo-card textarea{width:100%}.quote-photo-card strong{overflow-wrap:anywhere}.photo-order{display:flex;gap:8px;margin-top:8px}.photo-order button{padding:6px 12px}
.quotation.quote-photo-page{break-before:page;page-break-before:always;break-inside:avoid;padding-bottom:0;margin-top:20px;min-height:268mm}
.quote-photo-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 0;margin:0;border-bottom:1px solid #d9e2ed;max-width:none;font-size:12px;gap:16px}.quote-photo-heading>div:last-child{text-align:right}
.quote-photo-page figure{margin:16px 0}.quote-photo-image{height:155mm;display:flex;align-items:center;justify-content:center;background:#f8fafc;border:1px solid #e2e8f0;padding:10px}
.quote-photo-image canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.quote-photo-page figcaption{padding:14px 0;font-size:12px;overflow-wrap:anywhere}.quote-photo-page figcaption p{white-space:pre-wrap;line-height:1.7;margin:8px 0}
@media print{:root,body,#print-page{background:white}.quotation.quote-photo-page{margin-top:0;min-height:0}.quote-photo-image{height:145mm}}
@media(max-width:600px){.quote-photo-card{grid-template-columns:90px minmax(0,1fr)}.quote-photo-card canvas{width:90px}}

.dialog-head .staff-draft-delete{margin-left:auto;margin-right:8px;background:#fff7f6;color:#8b2e26;border:1px solid #dfa8a2}

.won-input{position:relative;display:block;min-width:0}
.won-input-label{position:absolute;inset:0 11px;display:flex;align-items:center;pointer-events:none;white-space:nowrap;overflow:hidden;font:inherit;font-variant-numeric:tabular-nums}
.won-input-label[hidden],.won-input:focus-within>.won-input-label{display:none}
.won-input:not(:focus-within):has(>.won-input-label:not([hidden]))>input{color:transparent}

#quote-form .quote-writing-details { margin: 4px 0 16px; }
#quote-form .quote-writing-details > summary { cursor: pointer; margin-bottom: 8px; color: #234b75; }
#quote-form .quote-writing-company { margin-top: 12px; }
#quote-form .quote-writing-actions {
 position: sticky;
 bottom: -26px;
 z-index: 3;
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 8px 12px;
 margin-top: 12px;
 padding: 12px 0;
 background: #fff;
 border-top: 1px solid #d8e2ef;
}
#quote-form .quote-writing-actions #total { flex: 1 0 100%; margin-bottom: 2px; }
#quote-form .quote-writing-actions #error { flex: 1 0 100%; margin: 0; }
#quote-form .quote-writing-actions #error:empty, #quote-writing-status:empty { display: none; }
#quote-writing-status, .quote-vat-mode { color: #334b66; }
#quote-writing-draft { margin-bottom: 14px; padding: 10px 14px; border: 1px solid #d8e2ef; border-radius: 8px; }
#quote-writing-draft p { margin: 0 0 8px; }
#quote-writing-draft button, .quote-writing-close button { margin: 0 6px 6px 0; }
.quote-writing-close { max-width: min(440px, calc(100vw - 24px)); }
.quote-writing-close pre { max-height: 55vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote-writing-suggestions { display: grid; max-height: 210px; overflow: auto; background: #f3f7fc; border: 1px solid #c4d3e5; border-radius: 6px; }
.quote-writing-suggestions [role="option"] { text-align: left; white-space: normal; padding: 7px 9px; cursor: pointer; }
.quote-writing-suggestions [role="option"]:hover, .quote-writing-suggestions [aria-selected="true"] { background: #dbe9ff; }
#quote-form #vat-ten[aria-pressed="true"] { color: #fff; background: #173e69; }
@media (min-width: 651px) {
 #quote-form #items [data-product-save], #quote-form #items [data-remove] { white-space: nowrap; }
}
@media (max-width: 650px) {
 #quote-form .quote-writing-actions { bottom: -16px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
 #quote-form .quote-writing-actions #saved-preview-hint { margin: 0; }
 #quote-form .quote-writing-actions #total { font-size: 15px; }
}

.quote-order-choices{display:grid;gap:4px;margin-top:7px;color:var(--ink,#183349);font-size:.86rem}
.quote-order-choices label{display:flex;flex-direction:row;align-items:center;gap:6px;min-height:26px;white-space:nowrap;cursor:pointer}
.quote-order-choices input[type=radio]{width:1rem;height:1rem;margin:0;flex:none}
#notice.quote-order-saved{color:#17604b}

.quote-sync-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin-bottom:12px}.quote-sync-row p{margin:0}.quote-sync-row button{padding:5px 10px;font-size:12px}#refresh-feedback{font-size:12px;color:#465970}.quote-filters #view-date-feedback{color:#b13039}.quote-filters #view-date-feedback:empty{display:none}
.quote-filters{--filter-control-height:42px}
.quote-filters :is(button,input,select){block-size:var(--filter-control-height);line-height:1.4}
.range-tools{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:10px}
.range-tools input{width:100%;min-width:0}
.range-separator{display:grid;place-items:center;block-size:var(--filter-control-height)}
.period-field{min-width:0;display:grid;gap:5px}.period-entry{position:relative;inline-size:142px;max-inline-size:100%}.range-tools .period-entry{inline-size:100%;min-inline-size:0}.period-entry input[type=text]{inline-size:100%;padding:0 34px 0 9px;font-variant-numeric:tabular-nums}.period-entry .period-native{position:absolute;inset:auto 0 0 auto;inline-size:1px;opacity:0;pointer-events:none}.quote-filters .period-picker{position:absolute;right:0;top:0;width:34px;padding:0;background:transparent;color:#22334b;place-items:center;display:grid}.quote-filters .period-picker[hidden]{display:none}.calendar-icon{width:14px;height:13px;position:relative;border:1.5px solid currentColor;border-radius:2px}.calendar-icon::before{content:"";position:absolute;inset:3px 0 auto;border-top:1.5px solid currentColor}.calendar-icon::after{content:"";position:absolute;top:-3px;left:2px;width:1.5px;height:4px;background:currentColor;box-shadow:6px 0 currentColor}
@media(max-width:700px){.view-options-row,.range-tools,.sort-tools{width:100%}.sort-tools label{flex:1}.sort-control{min-width:145px}}
@media(min-width:701px){.range-tools .period-entry{inline-size:142px}}
@media(max-width:380px){.range-tools{gap:6px}.range-tools .period-entry input[type=text]{padding-left:5px;padding-right:26px}.range-tools .period-picker{width:26px}}
