.crm{max-width:1240px;margin:45px auto 80px;padding:0 28px}.crm h1{font-size:38px;margin:0 0 16px}.crm h2{font-size:22px;font-weight:500;margin:0 0 20px}.crm h3{font-size:17px;margin:18px 0 12px}.crm p{line-height:1.8}.crm-toolbar,.crm-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:22px 0}.crm-toolbar h1{margin-right:auto}.crm a{color:inherit}.crm button,.crm .crm-button{padding:12px 19px;border:1px solid #b9754c;background:#af6841;color:white;font:inherit;font-size:14px;cursor:pointer;text-decoration:none;display:inline-block;text-align:center}.crm button.secondary,.crm .secondary{background:transparent;color:#51565f;border-color:#b9bdb4}.crm-card{background:#fcfcf8;border:1px solid #d2d6cc;padding:26px;margin:20px 0}.crm-note{color:#74796e;font-size:13px}.crm-table-wrap{overflow:auto}.crm table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.crm th{background:#e8ebe2;font-weight:500;white-space:nowrap}.crm th,.crm td{padding:15px 12px;border-bottom:1px solid #d4d8cd;vertical-align:top}.crm .badge{display:inline-block;padding:4px 9px;background:#e6eadd;color:#4c5c40;white-space:nowrap}.crm .badge.warm{background:#f2e0d2;color:#95572f}.crm .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.crm label{display:flex;flex-direction:column;gap:8px;font-size:13px}.crm input,.crm select,.crm textarea{box-sizing:border-box;width:100%;padding:11px;border:1px solid #cdd2c5;background:#fffefb;color:#343b30;font:inherit;min-width:0}.crm textarea{line-height:1.7;min-height:100px;resize:vertical}.crm .check{flex-direction:row;align-items:center}.crm .check input{width:auto}.crm .full{grid-column:1/-1}.crm .service-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.crm .service-choices label{background:#e9ece3;padding:14px;flex-direction:row;align-items:center}.crm .service-choices input{width:auto}.crm summary{display:flex;justify-content:space-between;padding:16px 0;cursor:pointer;font-size:15px;border-bottom:1px solid #d2d6cc}.crm summary::after{content:'＋';font-size:20px}.crm details[open]>summary::after{content:'−'}.crm .totals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:#434a45;color:#fff;padding:22px}.crm .totals span{font-size:13px;display:block}.crm .totals strong{display:block;font-size:24px;font-weight:500;margin-top:8px}.crm-status{color:#9a4828;white-space:pre-wrap;line-height:1.7}.crm .quote-paper{background:#fff;padding:35px;border:1px solid #d3d6ce;margin:24px 0}.crm .quote-paper h2{font-size:28px}.crm .quote-text{white-space:pre-line}.crm .tiny input{min-width:65px;padding:8px}.crm .tiny td,.crm .tiny th{padding:7px}.crm .selected{background:#434a45!important;color:white!important}.crm .muted-row{color:#74796e}.crm [hidden]{display:none!important}.crm .request-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:20px;background:#eee5db}.crm .request-head label{flex:1;min-width:160px}.crm .request-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.crm .request-meta>div{padding:12px;background:#f0f1eb}.crm .no-print{margin-bottom:20px}@media(max-width:760px){.crm{padding:0 16px;margin-top:25px}.crm h1{font-size:29px}.crm .form-grid,.crm .service-choices{grid-template-columns:1fr}.crm .totals{grid-template-columns:1fr}.crm-card,.crm .quote-paper{padding:18px}.crm .request-meta{grid-template-columns:1fr}.crm .crm-toolbar .crm-button{flex:1}}@media print{body{background:white!important}header,footer,.no-print,.crm-status,.crm .editor,.crm-toolbar,.crm-tabs{display:none!important}.crm{padding:0;margin:0;max-width:none}.crm .quote-paper{border:none;margin:0;padding:10mm}.crm .totals{color:#111;background:#eee;break-inside:avoid}.crm details>div{display:block!important}.crm details summary{display:none}.crm .quote-text{font-size:12px}.crm table{font-size:11px}}
/* Dense consultation and administration layout. */
main.crm{max-width:1400px;margin:12px auto 40px;padding:0 24px;min-height:0}
.crm .crm-toolbar{margin:10px 0;gap:10px}
.crm .crm-titlebar{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}
.crm .crm-titlebar h1{font-size:32px;line-height:1.25;margin:0}
.crm .crm-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.crm .crm-filterbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 10px}
.crm .crm-filterbar label{gap:4px}
.crm .crm-filterbar select{padding:8px 10px;min-width:140px}
.crm .crm-filterbar>span{padding-bottom:9px;font-size:12px}
.crm .crm-filterbar .crm-note{margin-left:auto;color:#858a7e}
.crm .crm-list{border:1px solid #d2d6cc;background:#fcfcf8}
.crm .crm-list th,.crm .crm-list td{padding:10px 12px}
.crm .crm-card{padding:18px;margin:12px 0;scroll-margin-top:80px}
.crm section{padding-block:0}
.crm .crm-card h2{margin-bottom:12px}
.crm .crm-card p{margin:8px 0}
.crm .crm-tabs{display:flex;gap:7px;margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid #cfd3c8;overflow-x:auto;flex-wrap:nowrap}
.crm .crm-tabs .crm-button{white-space:nowrap;padding:10px 13px;font-size:13px;flex-shrink:0}
.crm .admin-entry{background:#434a45;border-color:#434a45}
.crm .test-marker{color:#ad653e;font-weight:600;font-size:11px}
.crm .login-card{max-width:540px}
header nav .header-admin{font-size:11px;border:1px solid #a88870;padding:6px 9px;color:#f3dfcf;white-space:nowrap}
@media(max-width:760px){main.crm{padding:0 12px;margin-top:10px}.crm .crm-titlebar{align-items:start;gap:10px;flex-direction:column}.crm .crm-titlebar h1{font-size:27px}.crm .crm-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.crm .crm-actions .admin-entry{grid-column:1/-1}.crm .crm-actions .crm-button{padding:10px 8px;font-size:12px}.crm .crm-filterbar{gap:8px}.crm .crm-filterbar label{flex:1}.crm .crm-filterbar .crm-note{margin-left:0}.crm .crm-list th,.crm .crm-list td{padding:9px 10px}.crm .crm-tabs{margin-top:0}}
@media print{main.crm{margin:0;padding:0}}
/* Compact vertical spacing throughout administration and quotation screens. */
@media screen {
  main.crm.crm-admin { margin-block: 6px 16px; }
  .crm-admin .crm-toolbar { margin-block: 4px; gap: 8px; }
  .crm-admin h1 { margin-block: 0 4px; line-height: 1.2; }
  .crm-admin h2,
  .crm-admin .crm-card h2 { margin-block: 0 6px; line-height: 1.3; }
  .crm-admin h3 { margin-block: 8px 4px; line-height: 1.3; }
  .crm-admin p,
  .crm-admin .crm-card p { margin-block: 4px; line-height: 1.45; }
  .crm-admin .eyebrow { margin-block: 0 2px; }
  .crm-admin .crm-tabs { margin-block: 0 6px; padding-block: 0 6px; }
  .crm-admin .crm-tabs .crm-button,
  .crm-admin button,
  .crm-admin .crm-button { padding-block: 7px; }
  .crm-admin .crm-card { margin-block: 6px; padding: 10px 14px; }
  .crm-admin .form-grid { gap: 7px 14px; }
  .crm-admin label { gap: 3px; }
  .crm-admin input,
  .crm-admin select,
  .crm-admin textarea { padding-block: 6px; line-height: 1.4; }
  .crm-admin textarea { min-height: 56px; height: 64px; }
  .crm-admin .service-choices { gap: 6px 10px; }
  .crm-admin .service-choices label { padding-block: 7px; }
  .crm-admin th,
  .crm-admin td { padding-block: 7px; }
  .crm-admin .tiny th,
  .crm-admin .tiny td { padding-block: 3px; }
  .crm-admin .tiny input { padding-block: 5px; }
  .crm-admin .badge { padding-block: 2px; }
  .crm-admin .request-head { padding-block: 8px; gap: 8px; }
  .crm-admin .request-meta { gap: 6px 10px; }
  .crm-admin .request-meta > div { padding: 6px 10px; }
  .crm-admin .no-print { margin-bottom: 4px; }
  .crm-admin summary { padding-block: 7px; line-height: 1.4; }
  .crm-admin details { margin-block: 4px; }
  .crm-admin .totals { padding: 10px 14px; gap: 8px; }
  .crm-admin .totals strong { margin-top: 3px; }
  .crm-admin .quote-paper { margin-block: 8px; padding: 14px 18px; }
  .crm-admin .quote-section-title { margin-top: 10px; }
  .crm-admin .crm-status { margin-block: 4px; line-height: 1.4; }
  .crm-admin .crm-status:empty { display: none; }
}
@media print {
  .crm-admin .quote-paper { padding: 5mm; }
  .crm-admin .quote-paper h2 { margin-block: 0 8px; }
  .crm-admin .quote-paper h3 { margin-block: 8px 4px; }
  .crm-admin .quote-paper p { margin-block: 4px; line-height: 1.4; }
  .crm-admin .quote-paper td,
  .crm-admin .quote-paper th { padding-block: 5px; }
  .crm-admin .totals { padding: 10px; }
}
/* Formal quotation document. The screen guide is outside the printable article. */
.quote-website-notes{max-width:210mm;margin:10px auto;padding:10px 16px;background:#f0f1eb;border:1px solid #d3d7cb}
.quote-website-notes p{font-size:12px;line-height:1.6}
.crm .formal-quote{box-sizing:border-box;width:100%;max-width:210mm;margin:8px auto;padding:6mm 10mm;background:white;color:#202b31;font-family:Arial,'Noto Sans KR','Malgun Gothic',sans-serif;font-size:11px;line-height:1.45;box-shadow:0 4px 18px #263c3020}
.crm .formal-quote *{box-sizing:border-box}
.crm .formal-quote .q-letterhead{display:grid;grid-template-columns:62mm minmax(0,1fr);gap:0;align-items:center;border-bottom:2px solid #263c40;padding-bottom:6px;margin-bottom:7px;min-height:15mm}
.crm .formal-quote .q-brand-logo{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.crm .formal-quote .q-document-title{text-align:center;min-width:0;padding:0 4mm;margin:0}
.crm .formal-quote .q-document-title h2{font-size:23px;line-height:1.25;margin:0;font-weight:700;letter-spacing:.3px;overflow-wrap:anywhere}
.crm .formal-quote table{table-layout:fixed;width:100%;border-collapse:collapse;font-size:10px;margin:0 0 6px}
.crm .formal-quote th,.crm .formal-quote td{border:1px solid #8e9b97;padding:4px 6px;vertical-align:middle;line-height:1.4;overflow-wrap:anywhere}
.crm .formal-quote th{background:#edf0ed;color:#263c40;text-align:center;font-weight:600;white-space:normal}
.crm .formal-quote td{white-space:pre-line}
.crm .formal-quote caption{text-align:left;font-weight:700;font-size:11px;padding:2px 0 5px;caption-side:top;color:#263c40}
.crm .formal-quote caption>span{float:right;font-size:9px;font-weight:400}
.crm .formal-quote .q-meta th{width:16%}
.crm .formal-quote .q-meta td{width:34%}
.crm .formal-quote .q-parties{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:12px;margin:6px 0 3px}
.crm .formal-quote .q-recipient{padding:4px 0;margin:0;border:0}
.crm .formal-quote .q-recipient h3{font-size:10px;color:#68736e;margin:0 0 7px;font-weight:400}
.crm .formal-quote .q-client{font-size:18px;font-weight:700;border-bottom:1px solid #8e9b97;padding:0 0 8px;margin:0 0 9px}
.crm .formal-quote .q-client span{font-size:12px;font-weight:400;margin-left:8px}
.crm .formal-quote .q-recipient dl{display:grid;grid-template-columns:57px 1fr;gap:5px;border:0;margin:0 0 12px;padding:0}
.crm .formal-quote .q-recipient dt,.crm .formal-quote .q-recipient dd{margin:0;padding:0;min-height:14px;font-size:10px}
.crm .formal-quote .q-recipient>p:last-child{font-size:10px;margin:0}
.crm .formal-quote .q-supplier th{width:27%;font-size:9px}
.crm .formal-quote .q-supplier td{font-size:9px}
.crm .formal-quote .q-supplier th,.crm .formal-quote .q-supplier td{padding:3px 5px}
.crm .formal-quote .q-grand-total{border:2px solid #263c40;background:#f2f4f0;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:7px 10px;margin-top:3px}
.crm .formal-quote .q-grand-total>strong{font-size:13px}
.crm .formal-quote .q-grand-total small{font-size:9px;font-weight:400;display:block;margin-top:2px}
.crm .formal-quote .q-grand-total>span{font-size:21px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums}
.crm .formal-quote .q-amount-summary{margin:0 0 10px}
.crm .formal-quote .q-amount-summary th{width:20%}
.crm .formal-quote .q-amount-summary td{width:30%;text-align:right;font-weight:600}
.crm .formal-quote .q-line-table{font-size:11px}
.crm .formal-quote .q-line-table thead{display:table-header-group}
.crm .formal-quote .q-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.crm .formal-quote .q-center{text-align:center}
.crm .formal-quote .q-spec{font-size:10px;color:#52615a}
.crm .formal-quote .q-subtotal th,.crm .formal-quote .q-subtotal td{border-top:2px solid #64736e}
.crm .formal-quote .q-final-total th,.crm .formal-quote .q-final-total td{background:#edf0ed;font-weight:700}
.crm .formal-quote .q-conditions th{font-size:10.5px}
.crm .formal-quote .q-conditions td{font-size:10.5px;line-height:1.45}
.crm .formal-quote footer.q-document-footer{display:flex;flex-direction:column;gap:3px;background:transparent;border-top:1px solid #64736e;padding:5px 0 0;margin:7px 0 0;color:#263c40;line-height:1.4;text-align:center}
.crm .formal-quote .q-document-footer strong{font-size:11px}
.crm .formal-quote .q-document-footer span,.crm .formal-quote .q-document-footer small{font-size:8px}
.crm .formal-quote .q-blank{display:block;min-height:12px}
@media screen and (max-width:760px){
 .crm .formal-quote{padding:16px 12px}
 .crm .formal-quote .q-letterhead{grid-template-columns:minmax(95px,40%) minmax(0,1fr);gap:0}
 .crm .formal-quote .q-document-title h2{font-size:17px}
 .crm .formal-quote .q-parties{gap:8px}
 .crm .formal-quote .q-client{font-size:14px}
 .crm .formal-quote th,.crm .formal-quote td{padding:4px 3px;font-size:8px}
 .crm .formal-quote .q-grand-total>span{font-size:19px}
}
@page{size:A4;margin:7mm 10mm 8mm}
@media print{
 html,body{background:#fff!important;margin:0!important;padding:0!important}
 main.crm,main.crm.crm-admin{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
 .crm .formal-quote{max-width:none;width:100%;border:0!important;padding:0!important;margin:0!important;box-shadow:none!important;font-size:10px;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .crm .formal-quote footer.q-document-footer{display:flex!important}
 .crm .formal-quote .q-parties,.crm .formal-quote .q-letterhead,.crm .formal-quote .q-grand-total,.crm .formal-quote .q-amount-summary,.crm .formal-quote .q-document-footer{break-inside:avoid}
 .crm .formal-quote tr{break-inside:avoid;page-break-inside:avoid}
 .crm .formal-quote caption{break-after:avoid}
 .crm .formal-quote .q-conditions{break-inside:auto}
 .crm .formal-quote .q-grand-total{display:grid!important;grid-template-columns:1fr auto!important}
 .quote-website-notes,.supplier-editor,.crm>.crm-card,.crm>h1,.crm>.eyebrow,.crm>form,.crm>a{display:none!important}
}

/* Website-only explanation precedes original references. */
.crm .basis-content h3{font-size:17px;margin:0 0 9px}
.crm .basis-content h4{font-size:14px;margin:15px 0 6px}
.crm .basis-formula{white-space:pre-line;padding:12px 14px;background:#fff;border-left:3px solid #ad6742;line-height:1.7;margin:8px 0 12px}
.crm .basis-definitions{display:block;border:0;margin:0;padding:0;font-size:13px}
.crm .basis-definitions>div{display:grid;grid-template-columns:140px minmax(0,1fr);border-bottom:1px solid #d2d7ca;padding:9px 0;gap:14px}
.crm .basis-definitions dt{font-weight:700}
.crm .basis-definitions dd{margin:0;white-space:pre-line;line-height:1.65}
.crm .basis-links{display:flex;flex-wrap:wrap;gap:8px 20px}
@media screen and (max-width:600px){.crm .basis-definitions>div{grid-template-columns:1fr;gap:4px}}

.crm .formal-quote .q-line-table th:nth-child(1),.crm .formal-quote .q-line-table td:nth-child(1),.crm .formal-quote .q-line-table th:nth-child(4),.crm .formal-quote .q-line-table td:nth-child(4),.crm .formal-quote .q-line-table th:nth-child(5),.crm .formal-quote .q-line-table td:nth-child(5){padding-left:2px;padding-right:2px}

.archive-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}.archive-item{display:block;width:100%;text-align:left;white-space:normal;margin-top:15px;padding:16px!important}.archive-item strong,.archive-item small{display:block}.archive-item strong{margin-top:8px;line-height:1.5}.archive-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:16px}.crm-tabs{flex-wrap:wrap} .archive-grid h2{line-height:1.5}@media(max-width:800px){.archive-grid{grid-template-columns:1fr}.archive-grid aside{max-height:280px;overflow:auto}}@media print{body:has(.archive-grid) header,body:has(.archive-grid) footer,.archive-grid aside,.archive-grid button,.archive-grid~nav{display:none!important}.archive-grid{display:block}.archive-content{font-size:11pt}}
/* Phone layout: preserve readable labels and keep horizontal overflow local. */
@media screen and (max-width:760px){
 body:has(main.crm){min-width:0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body:has(main.crm) header{position:relative;display:flex;flex-wrap:wrap;gap:10px;padding:12px 14px;width:100%;min-width:0}
 body:has(main.crm) header .brand{min-width:0;max-width:100%;flex:1 1 100%}
 body:has(main.crm) header .header-logo{width:220px;max-width:100%;height:auto}
 body:has(main.crm) header .header-signature{display:none}
 body:has(main.crm) header nav{display:flex;flex:1 1 100%;flex-wrap:wrap;justify-content:flex-start;gap:6px 12px;min-width:0;width:100%;font-size:12px}
 body:has(main.crm) header nav>a{margin:0!important;white-space:nowrap;flex:0 0 auto;font-size:12px}
 body:has(main.crm) header nav .header-inquiry{min-height:36px;padding:6px 9px;font-size:11px}
 main.crm.crm-admin,main.crm{width:100%;max-width:100%;min-width:0;padding:0 12px;margin:12px auto 28px}
 .crm .crm-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
 .crm .crm-toolbar>div:has(h1){flex:1 0 100%;min-width:0}
 .crm h1{font-size:26px;letter-spacing:-1px;line-height:1.3;margin:0}
 .crm .eyebrow{font-size:9px;letter-spacing:1px;overflow-wrap:anywhere}
 .crm .crm-toolbar>.crm-button,.crm .crm-toolbar>button{flex:0 1 auto;white-space:normal;word-break:keep-all;min-height:40px;padding:9px 12px;font-size:12px;line-height:1.5}
 .crm .crm-toolbar>label{flex:1 1 130px;min-width:0}
 .crm .crm-toolbar>label:has(#search){flex-basis:100%}
 .crm input,.crm select,.crm textarea{font-size:16px;min-height:42px;max-width:100%;border-radius:4px}
 .crm .crm-tabs{display:flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow-x:auto;gap:6px;padding-bottom:10px;margin-bottom:12px;-webkit-overflow-scrolling:touch}
 .crm .crm-tabs .crm-button{flex:0 0 auto;min-height:38px;padding:8px 11px;white-space:nowrap;font-size:12px;line-height:1.6}
 .crm .crm-card{min-width:0;padding:12px;margin:10px 0}
 .crm .crm-table-wrap{max-width:100%;min-width:0}
 .crm .request-cards,.crm .request-cards tbody{display:block;width:100%}
 .crm .request-cards thead{display:none}
 .crm .request-cards tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:14px 0;border-bottom:1px solid #d4d8cd}
 .crm .request-cards tr:last-child{border-bottom:0}
 .crm .request-cards td{display:block;min-width:0;border:0;padding:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;word-break:normal}
 .crm .request-cards td::before{content:attr(data-label);display:block;font-size:10px;color:#74796e;margin-bottom:3px}
 .crm .request-cards td:nth-child(4){grid-column:1/-1}
 .crm .request-cards td:last-child a{display:inline-block;border:1px solid #b9bdb4;padding:6px 12px;min-height:36px}
 .crm .archive-grid{grid-template-columns:minmax(0,1fr);gap:8px}
 .crm .archive-grid>*,.crm .form-grid>*{min-width:0}
 .crm .archive-content{font-size:14px;line-height:1.8}
 .crm .archive-grid h2{font-size:21px;word-break:keep-all;overflow-wrap:anywhere}
 .crm .archive-item{font-size:13px}
 body:has(main.crm) footer{flex-wrap:wrap;gap:8px;padding:18px 14px;font-size:10px}
}
@media screen and (max-width:760px){
 body:has(main.crm){min-width:0;-webkit-text-size-adjust:100%}
 body:has(main.crm) header{position:relative;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px;padding:12px 14px;max-width:100%}
 body:has(main.crm) header .brand{min-width:0;max-width:100%}
 body:has(main.crm) header .header-logo{width:205px;max-width:100%;height:auto}
 body:has(main.crm) header .header-signature{display:none}
 body:has(main.crm) header nav{display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;min-width:0;gap:8px 12px;margin:0;font-size:12px}
 body:has(main.crm) header nav>a:not(.header-inquiry):not(.header-admin){margin-right:0}
 body:has(main.crm) header nav .header-inquiry{flex:0 1 auto;padding:7px 9px;min-height:34px;font-size:11px;white-space:nowrap}
 body:has(main.crm) header nav .header-admin{margin-left:auto;font-size:11px;padding:5px 8px;white-space:nowrap}
}
