@font-face{font-family:EVPretendard;src:url('/page/css/fonts/pretendard/PretendardVariable.woff2') format('woff2');font-display:swap}
.ev-app,.ev-topbar,.ev-dialog{--pink:#e92387;--ink:#252431;--muted:#777581;--line:#e8e5e8;--wash:#f8f6f7;--blue:#355ce0;font-family:EVPretendard,Pretendard,-apple-system,BlinkMacSystemFont,"Malgun Gothic",sans-serif;color:var(--ink);font-size:15px;line-height:1.5}
.ev-app *,.ev-dialog *{box-sizing:border-box}.ev-erp{margin:0;background:#f8f9fc}.ev-erp .ev-app,.ev-erp .ev-dialog{--pink:#355ce0}
.ev-app{max-width:1240px;margin:auto;padding:48px 24px 70px}.ev-app button,.ev-app input,.ev-app select,.ev-app textarea,.ev-dialog button,.ev-dialog input,.ev-dialog select{font:inherit}
.ev-app button,.ev-dialog button,.ev-app a.ev-btn{cursor:pointer}.ev-app button:disabled,.ev-dialog button:disabled{opacity:.45;cursor:not-allowed}
.ev-titlebar{display:flex;align-items:center;justify-content:space-between;gap:10px 20px;flex-wrap:wrap}.ev-titlebar>.ev-btn{flex-shrink:0}
.ev-app :focus-visible,.ev-dialog :focus-visible{outline:3px solid #f899c9;outline-offset:3px}
.ev-app h1{font-size:38px;letter-spacing:-1.5px;line-height:1.2;margin:10px 0 14px}.ev-app h2{font-size:22px;letter-spacing:-.5px;margin:0 0 8px}.ev-app h3{font-size:17px;margin:0 0 10px}
.ev-eyebrow{color:var(--pink);font-weight:700;font-size:13px;letter-spacing:.8px}.ev-sub{color:var(--muted);margin:0 0 20px}.ev-topbar{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 5%;background:white;border-bottom:1px solid var(--line)}.ev-topbar a{color:#585663;text-decoration:none;font-size:14px}.ev-topbar small{color:var(--blue);margin-left:8px}.ev-topbar-brand{display:inline-flex;align-items:center;gap:12px;flex-shrink:0;white-space:nowrap}.ev-topbar-brand img{display:block;width:90px;height:30px;object-fit:contain}.ev-topbar-brand small{margin-left:0;font-weight:700}
.ev-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start;margin-top:30px}.ev-steps{display:flex;gap:8px;margin-bottom:24px}.ev-step{border:0;border-bottom:2px solid var(--line);background:none;flex:1;padding:15px 8px;color:var(--muted);text-align:left}.ev-step[aria-current=step]{color:var(--pink);border-color:var(--pink);font-weight:700}.ev-step span{display:inline-flex;border-radius:50%;width:25px;height:25px;align-items:center;justify-content:center;background:var(--wash);margin-right:6px}
.ev-panel{background:white;border:1px solid var(--line);border-radius:20px;padding:28px}.ev-app [hidden],.ev-dialog [hidden]{display:none!important}.ev-field{display:block;margin:22px 0}.ev-field>span{display:block;font-weight:600;margin-bottom:8px}
.ev-area{display:flex;align-items:center;max-width:160px;gap:12px}.ev-area input{font-size:26px;font-weight:700;width:220px}.ev-app input:not([type=checkbox]):not([type=radio]),.ev-app select,.ev-app textarea,.ev-dialog input,.ev-dialog select{border:1px solid #d8d5dc;border-radius:10px;padding:6px 12px;background:white;color:var(--ink);min-height:44px;max-width:100%}.ev-app input[type=checkbox],.ev-app input[type=radio]{width:20px;height:20px;accent-color:var(--pink);flex-shrink:0}.ev-help{display:block;font-size:13px;color:var(--muted);margin-top:8px}.ev-app details{border:1px solid var(--line);border-radius:13px;margin-top:12px;background:white}.ev-app summary{cursor:pointer;padding:17px;font-weight:600}.ev-app details>div{padding:0 17px 17px}.ev-option{display:flex;gap:10px;align-items:center;padding:12px 0;border-top:1px solid #f2eff2;justify-content:space-between}.ev-option label{display:flex;gap:10px;align-items:center;flex:1;min-height:34px}.ev-option.ev-child{padding-left:25px;font-size:14px}.ev-option select{max-width:57%;min-width:120px}.ev-option small{font-size:12px;color:var(--muted)}
.ev-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;align-items:center}.ev-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dad7df;border-radius:11px;min-height:46px;padding:11px 18px;background:white;color:var(--ink);text-decoration:none;font-weight:600}.ev-btn.ev-primary{background:var(--pink);border-color:var(--pink);color:white}.ev-btn.ev-small{padding:5px 10px;min-height:36px;font-size:13px}.ev-btn.ev-link{border:0;background:transparent;padding:5px 8px;color:var(--pink)}
.ev-summary{position:sticky;top:25px;border:1px solid var(--line);border-radius:20px;padding:26px;background:white;box-shadow:0 8px 24px #29203706}.ev-summary dl{margin:24px 0 12px}.ev-summary dl>div{display:flex;justify-content:space-between;gap:14px;margin:12px 0}.ev-summary dt{color:var(--muted);font-size:13px}.ev-summary dd{margin:0;font-weight:600}.ev-total{border-top:1px solid var(--line);padding-top:20px;margin-top:18px}.ev-total strong{display:block;color:var(--pink);font-size:30px;letter-spacing:-1px;overflow-wrap:anywhere}.ev-summary>.ev-btn{width:100%;margin-top:15px}.ev-summary .ev-help{line-height:1.6}
.ev-message{padding:14px 17px;border-radius:11px;background:#fff4dc;color:#77541a;margin:18px 0;white-space:pre-line;overflow-wrap:anywhere}.ev-message.ev-error{background:#fff0f2;color:#9e2f47}.ev-message.ev-success{background:#edf8f2;color:#256c48}.ev-badge{display:inline-block;background:var(--wash);color:var(--muted);padding:3px 7px;border-radius:5px;font-size:11px;margin:3px 5px 3px 0}.ev-badge.ev-required{background:#fff0f8;color:#bb2974}
.ev-row-heading{display:inline-flex;justify-content:space-between;width:calc(100% - 24px);gap:14px}.ev-row-heading small{color:var(--pink);white-space:nowrap}
.ev-dialog{width:min(720px,calc(100% - 28px));max-height:85vh;border:0;border-radius:20px;padding:26px;box-shadow:0 20px 80px #1a152033}.ev-dialog::backdrop{background:#17132375}.ev-dialog-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:20px}.ev-dialog h2{margin:0;font-size:22px}.ev-dialog .ev-search{width:100%;margin-bottom:14px}.ev-search-results{max-height:48vh;overflow:auto}.ev-search-item{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--line);padding:12px 0;font-size:14px}.ev-dialog .ev-actions{position:sticky;bottom:-26px;background:white;padding:15px 0}.ev-history-row{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line)}
.ev-settings-bar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:25px 0}.ev-settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px}.ev-settings-nav{position:sticky;top:20px;align-self:start}.ev-settings-nav button{display:block;text-align:left;width:100%;border:0;border-radius:8px;background:transparent;padding:11px}.ev-settings-nav button[aria-current=true]{background:#eaf0ff;color:var(--blue);font-weight:700}
.ev-rule{padding:20px;border:1px solid var(--line);border-radius:13px;background:white;margin-bottom:15px}.ev-rule-head{display:flex;align-items:center;gap:10px;justify-content:space-between}.ev-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}.ev-rule-grid label{font-size:12px;color:var(--muted)}.ev-rule-grid input,.ev-rule-grid select{width:100%;margin-top:5px}.ev-map{display:block;border:1px solid var(--line);background:#f8f9fc;border-radius:8px;padding:10px;min-height:50px;width:100%;font-size:12px!important;text-align:left}.ev-rule .ev-help{font-size:11px}.ev-setting-options{padding:18px;background:white;border:1px solid var(--line);border-radius:13px;margin-bottom:18px}.ev-setting-option{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:8px 0}.ev-loading{padding:70px 0;text-align:center;color:#777}.ev-print-only{display:none}
@media(max-width:850px){.ev-app{padding:28px 18px 130px}.ev-app h1{font-size:31px}.ev-layout{display:block;margin-top:22px}.ev-panel{padding:20px}.ev-summary{position:fixed;z-index:30;left:0;right:0;bottom:0;top:auto;border-radius:16px 16px 0 0;padding:12px 18px;display:flex;align-items:center;gap:16px;justify-content:space-between;box-shadow:0 -5px 30px #29203712}.ev-summary h3,.ev-summary dl,.ev-summary .ev-help,.ev-summary>.ev-print{display:none}.ev-total{padding:0;margin:0;border:0;font-size:12px}.ev-total strong{font-size:22px}.ev-summary>.ev-btn{width:auto;min-width:130px;margin:0}.ev-topbar{padding:14px 18px;font-size:13px}.ev-topbar b{display:none}.ev-topbar-brand{gap:8px}.ev-topbar-brand img{width:72px;height:24px}.ev-settings-layout{grid-template-columns:1fr}.ev-settings-nav{display:flex;overflow:auto;position:static;gap:8px;margin-bottom:8px}.ev-settings-nav button{white-space:nowrap;width:auto}.ev-rule-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ev-settings-bar{gap:8px}.ev-app summary{padding:15px}.ev-option{gap:8px}.ev-option.ev-child{padding-left:10px}.ev-dialog{padding:20px}}
@media(max-width:420px){.ev-app{padding-left:12px;padding-right:12px}.ev-panel{padding:17px}.ev-step{font-size:13px;padding:12px 2px}.ev-step span{width:21px;height:21px;margin-right:3px}.ev-option select{font-size:13px;min-width:0;max-width:55%;padding:9px 5px}.ev-line-price{font-size:13px}.ev-rule{padding:12px}.ev-rule-grid{grid-template-columns:1fr}.ev-map{min-height:44px}.ev-summary{gap:10px}}
.ev-print-sheet{display:none}
@media print{body>*{display:none!important}body>.ev-print-sheet{display:block!important;font-family:EVPretendard,sans-serif;color:#111;font-size:11px}.ev-print-sheet h1{font-size:24px}.ev-print-sheet table{width:100%;border-collapse:collapse}.ev-print-sheet th,.ev-print-sheet td{padding:8px 5px;border-bottom:1px solid #ccc;text-align:left}.ev-print-sheet tr{break-inside:avoid}.ev-print-sheet thead{display:table-header-group}.ev-print-sheet .num{text-align:right}.ev-print-sheet footer{margin-top:20px;font-size:10px}@page{size:A4;margin:15mm}}

.ev-option.ev-radio-option{display:block}.ev-option-title{display:block;font-weight:600;margin-bottom:10px}.ev-radio-group{display:flex;flex-wrap:wrap;gap:8px 18px}.ev-radio-group label{flex:0 1 auto;min-height:44px;cursor:pointer}.ev-radio-group input:disabled+span{color:var(--muted)}.ev-radio-group input:focus-visible{outline:2px solid var(--pink);outline-offset:3px}

.ev-option.ev-radio-option[data-option-row="existingFloor"]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px 18px}.ev-option[data-option-row="existingFloor"] .ev-option-title{margin-bottom:0}.ev-option[data-option-row="existingFloor"] .ev-radio-group{margin-left:auto;justify-content:flex-end}.ev-option[data-option-row="existingFloor"] .ev-radio-group label{white-space:nowrap}

/* Settings controls: keep quantity fields clear of the next divider. */
#estimate-settings .ev-rule-grid+.ev-option{margin-top:18px}#estimate-settings .ev-rule-condition{margin-top:16px}
.ev-preset-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.ev-preset-field{display:flex;gap:8px;align-items:flex-end;min-width:0}.ev-preset-field>label{flex:1;min-width:0;font-size:13px}.ev-preset-field select{display:block;width:100%;margin-top:6px}.ev-preset-field>.ev-btn{flex-shrink:0;min-height:44px}.ev-preset-add summary{font-size:13px}.ev-preset-add .ev-field{margin:8px 0}.ev-preset-add select{width:100%}
.ev-condition-field{border:1px solid var(--line);border-radius:10px;padding:14px;margin:16px 0;min-width:0}.ev-condition-field legend{padding:0 6px;font-weight:600}.ev-condition-values{display:flex;flex-wrap:wrap;gap:10px 18px;margin-bottom:14px}.ev-condition-values label{display:flex;align-items:center;gap:8px;min-height:36px}.ev-dialog .ev-condition-values input[type=checkbox]{width:20px;min-height:20px;height:20px;max-width:none;padding:0;accent-color:var(--blue)}
@media(max-width:1050px){.ev-preset-fields{grid-template-columns:1fr}}

/* Estimate accordions share the native keyboard behavior. */
#estimate-app{--ev-accordion-open:#fff7fb;--ev-accordion-hover:#fcf8fa}
.ev-erp :is(#estimate-app,#estimate-settings){--ev-accordion-open:#f3f6ff;--ev-accordion-hover:#f8f9fd}
:is(#estimate-app :is(#ev-step1,#ev-options,#ev-lines)>details,#estimate-settings .ev-preset-add,#estimate-app .ev-price-details)>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;list-style:none;border-radius:12px;transition:background-color .18s ease}
:is(#estimate-app :is(#ev-step1,#ev-options,#ev-lines)>details,#estimate-settings .ev-preset-add,#estimate-app .ev-price-details)>summary::marker{content:""}
:is(#estimate-app :is(#ev-step1,#ev-options,#ev-lines)>details,#estimate-settings .ev-preset-add,#estimate-app .ev-price-details)>summary::-webkit-details-marker{display:none}
:is(#estimate-app :is(#ev-step1,#ev-options,#ev-lines)>details,#estimate-settings .ev-preset-add,#estimate-app .ev-price-details)>summary::after{content:"";width:9px;height:9px;flex:0 0 9px;margin:0 5px 4px 10px;border-right:1.75px solid currentColor;border-bottom:1.75px solid currentColor;border-radius:1px;color:var(--muted);transform:rotate(45deg);transition:transform .18s ease,color .18s ease}
:is(#estimate-app :is(#ev-step1,#ev-options,#ev-lines)>details,#estimate-settings .ev-preset-add,#estimate-app .ev-price-details)[open]>summary{background:var(--ev-accordion-open);border-radius:12px 12px 0 0;margin-bottom:4px}
:is(#estimate-app :is(#ev-step1,#ev-options,#ev-lines)>details,#estimate-settings .ev-preset-add,#estimate-app .ev-price-details)[open]>summary::after{color:var(--pink);transform:rotate(225deg)}
@media(hover:hover){:is(#estimate-app :is(#ev-step1,#ev-options,#ev-lines)>details,#estimate-settings .ev-preset-add,#estimate-app .ev-price-details):not([open])>summary:hover{background:var(--ev-accordion-hover)}}
@media(prefers-reduced-motion:reduce){:is(#estimate-app :is(#ev-step1,#ev-options,#ev-lines)>details,#estimate-settings .ev-preset-add,#estimate-app .ev-price-details)>summary,:is(#estimate-app :is(#ev-step1,#ev-options,#ev-lines)>details,#estimate-settings .ev-preset-add,#estimate-app .ev-price-details)>summary::after{transition:none}}

#ev-lines>details>div>.ev-line:first-child{border-top:0}
#ev-existing>.ev-option:first-child,#ev-options>details>div>.ev-option:first-child{border-top:0}
#ev-lines>details>summary>.ev-row-heading{flex:1;min-width:0;width:auto;align-items:center;gap:12px}
#ev-lines>details>summary>.ev-row-heading>span{min-width:0;overflow-wrap:anywhere}
#ev-lines>details>summary .ev-badge{white-space:nowrap}

/* Estimate and settings selects keep room for the inset chevron. */
:is(#estimate-app,#ev-dialog,#estimate-settings,#es-dialog) select{appearance:none;-webkit-appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23777581' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px 16px}
#estimate-app #ev-lines .ev-price-details>summary{min-height:42px;padding:10px 17px;font-size:12px;color:var(--muted)}
@media(forced-colors:active){:is(#estimate-app,#ev-dialog,#estimate-settings,#es-dialog) select{appearance:auto;-webkit-appearance:auto;background-image:none;padding-right:12px}}

/* Direct material selection and ERP item entry. */
#ev-lines>details>summary .ev-row-heading>small{font-size:18px;font-weight:750;white-space:nowrap}
.ev-line-price{font-size:14px;font-weight:500;white-space:nowrap}
.ev-materials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.ev-material{display:flex;align-items:center;gap:8px;padding:11px 12px;border:1px solid var(--ev-border,#e4e3e9);border-radius:9px;cursor:pointer;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.ev-material input{flex:none;margin:0;accent-color:var(--pink,#ec238b)}
.ev-material.is-selected{border-color:var(--pink,#ec238b);background:#fff6fb}
.ev-erp .ev-material.is-selected{background:#f3f5ff;border-color:#4062ff}
.ev-material:focus-within{outline:2px solid currentColor;outline-offset:2px}
.ev-catalog,.ev-custom-section{padding:18px;border:1px solid #e4e3e9;border-radius:12px;margin:16px 0;background:#fafbfe}
.ev-catalog-filters{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:12px}
.ev-catalog-filters label,.ev-custom-row label{display:flex;flex-direction:column;gap:6px;font-size:12px;min-width:0}
.ev-catalog-filters input,.ev-catalog-filters select{width:100%;min-width:0}
#ev-cost-results{max-height:380px;overflow:auto}
#ev-cost-results .ev-search-item>div{min-width:0;overflow-wrap:anywhere}
#ev-cost-results button{flex-shrink:0}
.ev-custom-row{display:grid;grid-template-columns:2fr .7fr .8fr 1.1fr 1.1fr 1.2fr auto;gap:8px;align-items:end;padding:16px 0;border-top:1px solid #e4e3e9}
.ev-custom-row input{width:100%;min-width:0;padding:9px 8px}
.ev-custom-row strong{display:flex;align-items:center;min-height:44px;font-size:13px;overflow-wrap:anywhere}
.ev-material-settings fieldset{min-width:0;border:1px solid #e4e3e9;border-radius:8px;max-height:270px;overflow:auto}
.ev-material-settings fieldset label{display:flex;align-items:flex-start;gap:7px;margin:10px 0;font-size:12px}
.ev-material-settings input{width:auto;flex:none}
@media(max-width:700px){.ev-materials{grid-template-columns:1fr}.ev-catalog-filters{grid-template-columns:1fr}.ev-custom-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ev-custom-row label:first-child{grid-column:1/-1}#ev-lines>details>summary .ev-row-heading>small{font-size:16px}.ev-line-price{font-size:13px}.ev-catalog,.ev-custom-section{padding:12px}.ev-rule-head{gap:8px;flex-wrap:wrap}}


/* ERP product families stay inside their construction group. */
.ev-group-nav,.ev-category-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}
.ev-group-nav button,.ev-category-tabs button{border:1px solid var(--line,#e4e3e9);border-radius:8px;background:white;color:inherit;padding:8px 12px;font-size:12px;cursor:pointer;min-height:36px}
.ev-category-tabs button[aria-pressed=true]{background:#edf1ff;color:#3456db;border-color:#b3c2ff;font-weight:650}
.ev-group-nav button:hover{background:#f3f6ff}.ev-group-nav[hidden]{display:none}
#ev-lines>details{scroll-margin-top:24px}.ev-group-catalog{margin:16px 0 4px}
.ev-group-catalog>button{margin-bottom:10px}.ev-family-search{width:100%;margin-bottom:12px}
.ev-family{border:1px solid var(--line,#e4e3e9);border-radius:10px;padding:14px;margin:12px 0;background:#fafbff;min-width:0}
.ev-family .ev-rule-head{gap:10px;flex-wrap:wrap;margin:0}.ev-family .ev-rule-head>b{font-size:14px;overflow-wrap:anywhere}
.ev-family .ev-materials{margin-bottom:6px}.ev-family .ev-help{font-size:12px}
.ev-family-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px}
.ev-family-members label{display:flex;align-items:center;gap:8px;font-size:13px;min-width:0}.ev-family-members input{margin:0;flex:none;width:20px;height:20px;min-height:20px;accent-color:var(--blue)}
.ev-family-members span{overflow-wrap:anywhere}
@media(max-width:700px){.ev-group-nav{flex-wrap:nowrap;overflow:auto;padding-bottom:6px}.ev-group-nav button{flex:none}.ev-family{padding:12px}.ev-family-members{grid-template-columns:1fr}.ev-category-tabs{gap:6px}.ev-category-tabs button{padding:7px 10px}}

#ev-lines>details[data-empty=true]>summary .ev-row-heading>small{color:var(--muted);font-size:13px;font-weight:400}

/* Quote rows use the available content width, including beside the summary. */
.ev-line,.ev-catalog-choice{container-type:inline-size;padding:0;border-top:1px solid var(--line)}
.ev-line-main{display:grid;grid-template-columns:minmax(0,1fr) 144px minmax(110px,max-content) 44px;gap:12px;align-items:center;min-height:72px;padding:12px 0}
.ev-line-info{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;min-width:0}
.ev-line-title{display:inline-flex;align-items:center;gap:6px;min-width:0}
.ev-line-title>b{font-size:14px;font-weight:650;overflow-wrap:anywhere;min-width:0}
.ev-line-title>.ev-required{margin:0;flex:none}
.ev-line-name{font-size:12px;color:var(--muted);overflow-wrap:anywhere;min-width:0}
.ev-line-quantity{display:flex;align-items:center;gap:8px;min-width:0;margin:0}
.ev-app .ev-line-quantity input[type=number]{width:72px;flex:0 0 72px;min-width:0;min-height:38px;padding:6px 8px;text-align:right;font-size:14px;font-variant-numeric:tabular-nums}
.ev-line-quantity>small{font-size:12px;color:var(--muted);min-width:0;overflow-wrap:anywhere}
.ev-line-main>.ev-line-price{text-align:right;font-size:14px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.ev-line-actions{display:flex;justify-content:flex-end;min-width:0}
.ev-line-actions>.ev-btn{min-width:44px;min-height:38px;padding:6px 2px;font-size:12px;white-space:nowrap}
.ev-line-secondary{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-bottom:8px}
.ev-line-secondary>.ev-btn{min-height:36px;font-size:12px}
:is(.ev-line,.ev-catalog-choice)>.ev-materials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px}
:is(.ev-line,.ev-catalog-choice)>.ev-materials>.ev-material{max-width:100%;min-height:46px;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:white;font-size:13px}
:is(.ev-line,.ev-catalog-choice)>.ev-materials>.ev-material.is-selected{border-color:var(--pink);background:var(--ev-accordion-open);color:var(--ink)}
:is(.ev-line,.ev-catalog-choice)>.ev-materials>.ev-material:focus-within{outline-color:var(--pink)}
:is(.ev-line,.ev-catalog-choice)>.ev-materials>.ev-material>span{min-width:0;overflow-wrap:anywhere}
@container(max-width:610px){
 .ev-line-main{grid-template-columns:minmax(0,1fr) max-content;gap:8px 10px;padding:14px 0}
 .ev-line-info{grid-column:1;grid-row:1;display:block}
 .ev-line-name{display:block;margin-top:3px}
 .ev-line-main>.ev-line-price{grid-column:2;grid-row:1;align-self:start;padding-top:1px}
 .ev-line-quantity{grid-column:1;grid-row:2}
 .ev-app .ev-line-quantity input[type=number]{min-height:44px;font-size:16px}
 .ev-line-actions{grid-column:2;grid-row:2;justify-self:end}
 .ev-line-actions>.ev-btn{min-height:44px}
 :is(.ev-line,.ev-catalog-choice)>.ev-materials{grid-template-columns:1fr}
}
@media(pointer:coarse){.ev-app .ev-line-quantity input[type=number]{min-height:44px;font-size:16px}.ev-line-actions>.ev-btn,.ev-line-secondary>.ev-btn,:is(.ev-line,.ev-catalog-choice)>.ev-materials>.ev-material{min-height:44px}}

/* ERP products share one list with the selected quote rows. */
.ev-partial-note{display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5;margin-top:4px;letter-spacing:0}
.ev-partial-note[hidden]{display:none}
.ev-group-entries>:first-child{border-top:0}
.ev-group-products>.ev-category-tabs{margin-top:16px}
.ev-catalog-choice{padding:0 0 12px;min-width:0}
.ev-choice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:18px 0}
.ev-choice-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;min-width:0}
.ev-choice-title>b{font-size:14px;font-weight:650;overflow-wrap:anywhere}
.ev-choice-heading>small{font-size:12px;color:var(--muted);flex-shrink:0}
.ev-catalog-choice .ev-material:has(input:disabled){color:var(--muted);cursor:not-allowed;background:var(--wash)}
@media(max-width:700px){.ev-group-products>.ev-category-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}.ev-group-products>.ev-category-tabs>button{flex:none;white-space:nowrap}}

/* Shared selection UI: retain native inputs and keyboard semantics without glyphs. */
#estimate-app{--ev-selected:var(--pink);--ev-selected-bg:#fff1f8;--ev-selected-text:var(--ink);--ev-focus:#a92169}
.ev-erp #estimate-app{--ev-selected-bg:#f0f3ff;--ev-focus:#355ce0}
#estimate-app .ev-step{border:1px solid var(--line);border-radius:10px;background:white;min-height:56px;color:var(--ink)}
#estimate-app .ev-step[aria-current=step]{background:var(--ev-accordion-open);border-color:var(--pink);color:var(--pink)}
#estimate-app .ev-step[aria-current=step] span{background:var(--pink);color:white}
#estimate-app .ev-area{max-width:270px;padding-bottom:8px;border-bottom:2px solid var(--pink)}
#estimate-app .ev-area input{font-size:32px;border:0;border-radius:0;padding:4px 0;min-width:0;flex:1;width:100%;box-shadow:none}
#estimate-app .ev-option-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;font-weight:650}
#estimate-app .ev-option-title small{font-size:12px;font-weight:400;text-align:right}
#estimate-app .ev-radio-option,#estimate-app .ev-radio-option[data-option-row="existingFloor"]{display:block;padding:18px 0;border-top:0}
#estimate-app .ev-radio-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;justify-content:normal}
#estimate-app [data-option-row="existingFloor"] .ev-radio-group{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
#estimate-app .ev-choice-button{position:relative;display:flex;align-items:center;justify-content:center;gap:0;min-width:0;min-height:48px;margin:0;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);text-align:center;cursor:pointer;overflow-wrap:anywhere;font-size:14px;line-height:1.45}
#estimate-app .ev-choice-button:has(input:checked){background:var(--ev-selected-bg);color:var(--ev-selected-text);border-color:var(--ev-selected);font-weight:650;box-shadow:inset 0 0 0 1px var(--ev-selected)}
#estimate-app .ev-choice-button input,#estimate-app #ev-lines .ev-material>input{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:1}
#estimate-app .ev-choice-button:has(input:focus-visible),#estimate-app #ev-lines .ev-material:has(input:focus-visible){outline:3px solid var(--ev-focus);outline-offset:3px}
#estimate-app .ev-choice-button:has(input:disabled){background:var(--wash);color:var(--muted);border-color:var(--line);box-shadow:none;cursor:not-allowed}
#estimate-app .ev-choice-button:has(input:checked:disabled){border-color:var(--muted);font-weight:650}
#estimate-app .ev-choice-button input:disabled{cursor:not-allowed}
#estimate-app .ev-choice-button input:disabled+span{color:inherit}
#estimate-app .ev-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 0}
#estimate-app .ev-boolean-option{display:block;border:0;padding:0;min-width:0}
#estimate-app .ev-boolean-option>small{display:block;margin-top:5px}
#estimate-app .ev-selection-hint{font-size:12px;color:var(--muted);margin:14px 0 6px}
#estimate-app .ev-scope-family{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}
#estimate-app .ev-scope-family>.ev-boolean-option>.ev-choice-button{justify-content:flex-start;font-weight:650}
#estimate-app .ev-scope-children{margin:14px 0 0 8px;padding:0 0 0 14px;border-left:3px solid var(--line)}
#estimate-app .ev-scope-children .ev-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#estimate-app .ev-scope-children .ev-radio-group{grid-template-columns:repeat(2,minmax(0,1fr))}
#estimate-app .ev-child{padding-left:0}
#estimate-app .ev-scope-summary{min-width:0;max-width:60%;margin-left:auto;text-align:right;font-size:12px;font-weight:400;color:var(--muted);overflow-wrap:anywhere}
#estimate-app #ev-options>details>summary{gap:12px}
#estimate-app #ev-options>details>summary>span:first-child{flex-shrink:0}
#estimate-app #ev-lines .ev-material{position:relative;min-height:52px;gap:0;padding:12px;text-align:left;background:white;color:var(--ink);border-color:var(--line);box-shadow:none}
#estimate-app #ev-lines .ev-material:has(input:checked){border-color:var(--ev-selected);background:var(--ev-selected-bg);color:var(--ev-selected-text);font-weight:650;box-shadow:inset 0 0 0 1px var(--ev-selected)}
#estimate-app #ev-lines .ev-material:focus-within:not(:has(input:focus-visible)){outline:none}
#estimate-app #ev-lines .ev-material:has(input:disabled){background:var(--wash);color:var(--muted);box-shadow:none;cursor:not-allowed}
#estimate-app #ev-lines .ev-material>input:disabled{cursor:not-allowed}
#estimate-app .ev-product-copy,#estimate-app .ev-product-name{display:block;min-width:0;overflow-wrap:anywhere}
#estimate-app .ev-product-series{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-bottom:3px}
#estimate-app .ev-material:has(input:checked) .ev-product-series{color:var(--muted)}
#estimate-app .ev-line-info:has(>.ev-material-context){display:flex;align-items:baseline;gap:4px 10px}
#estimate-app .ev-material-context{display:block;flex:0 1 auto;min-width:0;margin:0;font-size:12px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
#estimate-app .ev-line-main{grid-template-columns:minmax(0,1fr) max-content minmax(105px,max-content) 44px}
#estimate-app .ev-line-quantity::before{content:'수량';font-size:12px;color:var(--muted);white-space:nowrap}
#estimate-app .ev-line-main>.ev-line-price{font-weight:650}
#estimate-app .ev-line-quantity input[type=number]{flex-basis:64px;width:64px}
#estimate-app .ev-line-quantity{gap:6px;min-width:144px}
#estimate-app .ev-line-quantity>small{white-space:nowrap;overflow-wrap:normal;flex-shrink:0}
#estimate-app .ev-category-tabs button[aria-pressed=true]{background:var(--ev-selected-bg);border-color:var(--ev-selected);color:var(--ev-selected-text)}
#estimate-app .ev-group-nav button,#estimate-app .ev-category-tabs button{min-height:44px}
@container(max-width:610px){
 #estimate-app .ev-line-main{grid-template-columns:minmax(0,1fr) max-content 44px;gap:10px 8px;padding:16px 0}
 #estimate-app .ev-line-info{grid-column:1/-1;grid-row:1}
 #estimate-app .ev-line-quantity{grid-column:1;grid-row:2;min-width:0;flex-wrap:wrap}
 #estimate-app .ev-line-main>.ev-line-price{grid-column:2;grid-row:2;align-self:center;padding:0}
 #estimate-app .ev-line-actions{grid-column:3;grid-row:2}
}
@media(max-width:850px){
 #estimate-app .ev-summary{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
 #estimate-app{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}
 #estimate-app .ev-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
 #estimate-app .ev-step{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:68px;padding:9px 3px;font-size:13px;text-align:center}
 #estimate-app .ev-step span{margin:0}
 #estimate-app .ev-radio-group{grid-template-columns:repeat(2,minmax(0,1fr))}
 #estimate-app .ev-choice-button{font-size:13px;padding:11px 8px}
 #estimate-app .ev-option-title{align-items:flex-start;flex-wrap:wrap}
 #estimate-app .ev-scope-summary{max-width:55%;font-size:11px}
 #estimate-app .ev-scope-children{margin-left:0;padding-left:10px}
 #estimate-app .ev-line-main{grid-template-columns:minmax(0,1fr) max-content 30px;gap:8px 6px}
 #estimate-app .ev-line-quantity::before{display:none}
 #estimate-app .ev-line-quantity input[type=number]{flex-basis:56px;width:56px}
 #estimate-app .ev-line-actions>.ev-btn{min-width:30px}
 #estimate-app .ev-line-main>.ev-line-price{font-size:13px}
}
@media(forced-colors:active){
 #estimate-app .ev-choice-button:has(input:checked),#estimate-app #ev-lines .ev-material:has(input:checked){border:3px solid Highlight;box-shadow:none}
}
