/* Emall inherits the common palette. Product styles stay inside its module. */
.emall-module{--em-accent:#14775b;--em-accent-soft:#e7f3ed;--em-nav-width:216px;min-height:100dvh;color:var(--ink);background:var(--bg);font-size:13px;line-height:1.5}
[data-theme=dark] .emall-module{--em-accent:#7bdfb4;--em-accent-soft:#193b33}
.emall-module *{box-sizing:border-box}
.emall-module :is(button,input,select,textarea){font:inherit}
.emall-module :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.emall-module button{cursor:pointer}.emall-module button:disabled{cursor:default;opacity:.5}
.emall-module [hidden]{display:none!important}
.emall-module h1,.emall-module h2,.emall-module h3,.emall-module p{margin:0}
.emall-module h1{font-size:29px;line-height:1.2;font-weight:650;letter-spacing:-.7px}
.emall-module h2{font-size:17px;font-weight:620;line-height:1.4}
.emall-module h3{font-size:14px;font-weight:620;line-height:1.5;margin-bottom:12px}
.emall-module svg{display:inline-block;width:18px;height:18px;flex:none}
.emall-module .em-shell{display:grid;grid-template-columns:var(--em-nav-width) minmax(0,1fr);min-height:100dvh;--marzh-nav-width:var(--em-nav-width)}
.emall-module .em-sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:26px 14px 16px;overflow:auto;background:var(--surface);border-right:1px solid var(--line);min-width:0}
.emall-module .em-brand{display:flex;align-items:center;gap:11px;text-align:left;padding:0 12px 27px;border:0;background:none;color:var(--ink)}
.emall-module .em-brand strong{font-size:25px;font-weight:700;letter-spacing:-.7px}.emall-module .em-brand .brand-mark{width:29px;height:32px;flex:none}
.emall-module .em-market-label{display:flex;align-items:center;gap:10px;padding:12px 11px;border:1px solid var(--line);border-radius:9px;margin-bottom:26px;min-width:0}
.emall-module .em-market-label>span:first-child{width:29px;height:29px;flex:none;display:grid;place-items:center;font-size:25px;font-weight:800;line-height:1;background:var(--em-accent);color:#fff;border-radius:8px}
[data-theme=dark] .emall-module .em-market-label>span:first-child{color:#132d23}
.emall-module .em-market-label>div{min-width:0;flex:1}.emall-module .em-market-label strong{display:block;font-size:14px}
.emall-module .em-market-label small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--muted);margin-top:2px}
.emall-module .em-nav-label{font-size:9px;color:var(--muted);letter-spacing:1px;padding:0 12px 10px}
.emall-module .em-nav-item{display:flex;align-items:center;gap:12px;min-height:42px;width:100%;text-align:left;border:0;border-radius:7px;background:transparent;color:var(--muted);padding:9px 12px;margin-bottom:4px;font-size:12px;font-weight:520}
.emall-module .em-nav-item:hover{background:var(--surface-soft);color:var(--ink)}
.emall-module .em-nav-item.active{background:var(--em-accent-soft);color:var(--em-accent);font-weight:650}
.emall-module .em-sidebar-bottom{margin-top:auto;padding:28px 9px 0}.emall-module .em-sidebar-bottom>.em-text-button{font-size:11px;margin-bottom:18px}
.emall-module .em-account{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding-top:17px;min-width:0}
.emall-module .em-account>span{display:grid;place-items:center;width:30px;height:30px;background:var(--surface-soft);color:var(--muted);font-size:12px;border-radius:50%;flex:none}
.emall-module .em-account strong{font-size:11px;display:block;overflow-wrap:anywhere}.emall-module .em-account small{display:block;font-size:9px;color:var(--muted)}
.emall-module .em-content{min-width:0}
.emall-module .em-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:70px;padding:12px 28px;border-bottom:1px solid var(--line);background:var(--surface)}
.emall-module .em-topbar>span{white-space:nowrap;color:var(--muted);font-size:11px}.emall-module .em-topbar>span b{font-weight:400;color:var(--line);margin:0 12px}
.emall-module .em-topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0}
.emall-module .em-topbar .market-switch{min-width:0}.emall-module .em-topbar .market-switch button{font-size:11px}
.emall-module #em-main{padding:29px 29px 20px;max-width:1700px;margin:auto;min-width:0}
.emall-module .em-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.emall-module .em-eyebrow{font-size:9px;letter-spacing:1.3px;color:var(--em-accent);font-weight:650;margin-bottom:8px}
.emall-module .em-page-head p{font-size:11px;color:var(--muted);margin-top:8px}
.emall-module .em-head-actions,.emall-module .em-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.emall-module .em-head-actions{justify-content:flex-end}
.emall-module .em-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font-size:11px;font-weight:550;line-height:1.5;white-space:normal;text-decoration:none;text-align:center}
.emall-module .em-button:hover{background:var(--surface-hover)}.emall-module .em-button svg{width:15px;height:15px}
.emall-module .em-primary{background:#1c6a52;border-color:#1c6a52;color:#fff}.emall-module .em-primary:hover{background:#145640;border-color:#145640}
[data-theme=dark] .emall-module .em-primary{background:#258266;border-color:#39977c;color:#fff}[data-theme=dark] .emall-module .em-primary:hover{background:#309677}
.emall-module .em-selected{background:var(--em-accent-soft);border-color:var(--em-accent);color:var(--em-accent)}
.emall-module .em-text-button{display:inline-flex;align-items:center;gap:5px;text-align:left;color:var(--blue);background:none;border:0;padding:0;min-height:24px;font-size:11px;font-weight:550;text-decoration:none}
.emall-module .em-text-button svg{width:14px;height:14px}.emall-module .em-icon-button{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:var(--surface)}
.emall-module .em-badge{display:inline-flex;align-items:center;max-width:100%;border-radius:5px;background:var(--surface-soft);color:var(--muted);font-size:9px;font-weight:550;line-height:1.5;padding:3px 7px;white-space:normal}
.emall-module .em-badge.good{background:var(--green-soft);color:var(--green)}.emall-module .em-badge.warn{background:var(--amber-soft);color:var(--amber)}
.emall-module .em-muted,.emall-module .em-caption{color:var(--muted);font-size:11px;line-height:1.65}.emall-module .em-caption{margin:12px 0}
.emall-module .em-note{margin-bottom:17px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);padding:12px 15px;color:var(--muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.emall-module .em-note.warn{background:var(--amber-soft);color:var(--amber)}.emall-module .em-note.good{background:var(--green-soft);color:var(--green)}.emall-module .negative{color:var(--red)}
.emall-module .em-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:23px}
.emall-module .em-stat{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:left;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--ink)}
.emall-module .em-stat:hover{border-color:var(--em-accent)}.emall-module .em-stat>span{font-size:11px;color:var(--muted)}
.emall-module .em-stat>strong{font-size:28px;font-weight:630;line-height:1.3;margin:5px 0;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.emall-module .em-stat>small{font-size:9px;color:var(--muted)}
.emall-module .em-panel{padding:23px;background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0}.emall-module .em-panel+.em-panel{margin-top:19px}
.emall-module .em-panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.emall-module .em-panel-title>div{min-width:0}.emall-module .em-panel-title .em-caption{margin:6px 0 0}
.emall-module .em-table-panel{padding:0;overflow:hidden}
.emall-module .em-table-tools{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:17px 19px;border-bottom:1px solid var(--line)}
.emall-module .em-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:0 10px;min-height:36px;flex:1;min-width:210px;color:var(--muted);margin:0}
.emall-module .em-search>input{width:100%;min-width:0;background:transparent;border:0;outline:none;color:var(--ink);padding:7px 0;font-size:11px}
.emall-module .em-search:focus-within{outline:2px solid var(--blue);outline-offset:2px}.emall-module .em-search>input:focus-visible{outline:0}
.emall-module .em-table-tools .em-field{margin:0;min-width:130px;flex:0 1 170px}.emall-module .em-table-tools .em-field>span{font-size:9px;margin-bottom:4px}.emall-module .em-table-tools .em-field>select{min-height:36px;font-size:11px;padding:6px 9px}
.emall-module .em-table-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain}
.emall-module .em-table{border-collapse:collapse;width:100%;font-size:11px;text-align:left;font-variant-numeric:tabular-nums}
.emall-module .em-table th{background:var(--surface-soft);color:var(--muted);font-size:10px;font-weight:550;white-space:nowrap;padding:12px 15px;border-bottom:1px solid var(--line);text-align:left}
.emall-module .em-table td{padding:12px 15px;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap}.emall-module .em-table tr:last-child td{border-bottom:0}.emall-module .em-table tr:hover td{background:var(--surface-soft)}
.emall-module .em-table td:first-child{white-space:normal;min-width:215px;max-width:370px}
.emall-module .em-product{display:flex;align-items:center;gap:11px;color:var(--ink);background:none;border:0;text-align:left;padding:0;width:100%;min-width:0}
.emall-module .em-product>span:last-child{min-width:0;flex:1}.emall-module .em-product strong{display:block;font-size:11px;font-weight:580;white-space:normal;line-height:1.5;overflow-wrap:anywhere}
.emall-module .em-product small{display:block;font-size:10px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.emall-module .em-photo{display:grid;place-items:center;width:39px;min-width:39px;height:48px;border:1px solid var(--line);border-radius:6px;background:var(--surface-soft);overflow:hidden;color:var(--muted)}
.emall-module .em-photo img{width:100%;height:100%;object-fit:contain;background:#fff}.emall-module .em-photo-large{width:78px;min-width:78px;height:94px}.emall-module .em-photo-large svg{width:25px;height:25px}
.emall-module .em-row-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}.emall-module .em-row-badges:empty{display:none}
.emall-module .em-pagination{padding:12px 18px;display:flex;justify-content:space-between;align-items:center;gap:15px;color:var(--muted);font-size:10px;border-top:1px solid var(--line)}
.emall-module .em-pagination>div{display:flex;gap:7px}.emall-module .em-pagination .em-button{min-height:29px;padding:4px 10px;font-size:10px}
.emall-module .em-field{display:block;min-width:0;margin-bottom:16px}.emall-module .em-field>span{display:block;font-size:11px;font-weight:550;color:var(--muted);margin-bottom:7px}
.emall-module .em-field :is(input,select,textarea),.emall-module .em-cost-table :is(input,select){display:block;min-width:0;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--ink);min-height:38px;padding:8px 10px;font-size:12px}
.emall-module .em-field textarea{resize:vertical;line-height:1.6;white-space:pre}.emall-module input::placeholder,.emall-module textarea::placeholder{color:var(--muted);opacity:.75}
.emall-module .em-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 17px}
.emall-module .em-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.emall-module .em-two-col>.em-panel+.em-panel{margin-top:0}
.emall-module .em-section-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px;color:var(--muted);font-size:11px}.emall-module .em-section-intro>p{max-width:680px}.emall-module .em-section-intro>span{white-space:nowrap}
.emall-module .em-cost-table td:first-child{min-width:230px}.emall-module .em-cost-table input{min-width:105px;width:120px;max-width:100%}.emall-module .em-cost-table select{min-width:75px}.emall-module .em-cost-table td:last-child input{min-width:140px;width:165px}
.emall-module .em-cost-table .em-edited td{background:var(--em-accent-soft)}
.emall-module .em-save-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:13px 18px;background:var(--em-accent-soft);border-top:1px solid var(--line)}.emall-module .em-save-bar>span{font-size:11px;margin-right:auto;color:var(--em-accent)}
.emall-module .em-import{margin-top:20px}.emall-module :is(.em-import,.em-details)>summary{cursor:pointer;color:var(--ink);font-size:13px;font-weight:580;list-style-position:inside}.emall-module .em-import[open]>summary{margin-bottom:15px}
.emall-module .em-details{padding:15px 0;margin:6px 0 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.emall-module .em-details[open]>summary{margin-bottom:17px}
.emall-module .em-file-picker{position:relative;overflow:hidden;cursor:pointer}.emall-module .em-file-picker>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.emall-module .em-file-picker:focus-within{outline:2px solid var(--blue);outline-offset:3px}
.emall-module .em-import-errors{color:var(--red);background:var(--red-soft);border-radius:6px;font-size:11px;line-height:1.8;padding:13px 15px 13px 30px;margin-top:15px}
.emall-module .em-import-preview{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.emall-module .em-import-preview>.em-button{margin-top:16px}
.emall-module .em-selected-product{display:flex;align-items:center;gap:12px;padding:12px 0 17px;border-bottom:1px solid var(--line);margin-bottom:20px}.emall-module .em-selected-product strong{font-size:12px;display:block}.emall-module .em-selected-product small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.emall-module .em-presets{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.emall-module .em-presets .em-button{min-height:30px;padding:5px 11px;font-size:10px}
.emall-module .em-installment{padding:15px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);margin-bottom:20px}.emall-module .em-installment .em-caption{margin-bottom:0}
.emall-module .em-econ-result{padding-top:3px}.emall-module .em-result-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}
.emall-module .em-result-value{display:block;margin:15px 0;font-size:36px;line-height:1.2;font-weight:650;letter-spacing:-.8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.emall-module .em-inline-metrics{display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:10px;margin:14px 0}.emall-module .em-inline-metrics b{display:block;color:var(--ink);font-size:14px;margin-top:5px;font-weight:600}.emall-module .em-inline-metrics dd{margin:5px 0 0;color:var(--ink);font-size:12px}
.emall-module .em-missing{margin:15px 0;padding:12px;border-radius:7px;background:var(--amber-soft);color:var(--amber);font-size:11px;line-height:1.7}
.emall-module .em-cost-lines{margin:22px 0 0;padding:0;border-top:1px solid var(--line);font-size:11px}.emall-module .em-cost-lines>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid var(--line)}.emall-module .em-cost-lines dt{color:var(--muted)}.emall-module .em-cost-lines dt>small{display:block;font-size:9px;opacity:.8;margin-top:2px}.emall-module .em-cost-lines dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.emall-module .em-target-price{background:var(--em-accent-soft);border:1px solid var(--line);border-radius:8px;padding:16px;margin-top:18px;color:var(--em-accent)}.emall-module .em-target-price span{display:block;font-size:11px}.emall-module .em-target-price strong{display:block;font-size:24px;margin-top:5px}
.emall-module .em-scenario-table{margin-top:20px;font-size:10px}.emall-module .em-scenario-table th,.emall-module .em-scenario-table td{padding:9px}.emall-module .em-scenario-table td:first-child{min-width:120px}
.emall-module .em-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}
.emall-module .em-quick-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:7px 12px;text-align:left;padding:19px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}.emall-module .em-quick-card>svg:first-child{color:var(--em-accent);margin-bottom:5px;grid-column:1}.emall-module .em-quick-card strong{font-size:12px;grid-column:1}.emall-module .em-quick-card span{font-size:10px;color:var(--muted);grid-column:1}.emall-module .em-quick-card>svg:last-child{grid-column:2;grid-row:2;color:var(--muted);width:15px}.emall-module .em-quick-card:hover{border-color:var(--em-accent)}
.emall-module .em-report-list{margin-top:20px;border-top:1px solid var(--line)}.emall-module .em-report-list>article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.emall-module .em-report-list strong{font-size:11px;display:block}.emall-module .em-report-list small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.emall-module .em-report-list .em-text-button{white-space:nowrap;font-size:10px}
.emall-module .em-ledger{margin-top:20px}.emall-module .em-steps{padding:0;margin:0 0 23px;list-style:none}.emall-module .em-steps li{display:flex;gap:13px;margin:20px 0}.emall-module .em-steps b{display:grid;place-items:center;width:27px;height:27px;border:1px solid var(--line);border-radius:50%;font-size:10px;color:var(--muted);font-weight:550;flex:none}.emall-module .em-steps strong{display:block;font-size:12px;font-weight:550}.emall-module .em-steps span{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.emall-module .em-loading{display:flex;align-items:center;justify-content:center;gap:14px;min-height:250px;color:var(--muted);font-size:13px}
.emall-module .em-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:60px 24px;border:1px dashed var(--line);border-radius:10px;background:var(--surface)}.emall-module .em-empty-icon{display:grid;place-items:center;width:54px;height:54px;background:var(--em-accent-soft);color:var(--em-accent);border-radius:15px;margin-bottom:18px}.emall-module .em-empty-icon svg{width:25px;height:25px}.emall-module .em-empty h2{font-size:20px}.emall-module .em-empty p{font-size:12px;color:var(--muted);line-height:1.75;max-width:430px;margin:11px 0 21px}.emall-module .em-table-panel>.em-empty{border:0;border-radius:0;padding:40px 20px}
.emall-module .em-sync{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:8px;padding:14px 16px;margin-bottom:20px;background:var(--surface)}.emall-module .em-sync strong{font-size:12px;display:block}.emall-module .em-sync small{font-size:11px;color:var(--muted);display:block;margin-top:3px}
.emall-module .em-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;font-size:9px;color:var(--muted);padding-top:25px}.emall-module .em-pad{padding:0 16px}
.emall-module .em-check{display:flex;align-items:flex-start;gap:9px;margin:12px 0 18px;color:var(--muted);font-size:11px;line-height:1.6}.emall-module .em-check input{width:16px;height:16px;flex:none;accent-color:var(--em-accent);margin-top:2px}
.emall-module .em-drawer-backdrop{position:fixed;inset:0;background:#0c1e3155;backdrop-filter:blur(2px);z-index:80}.emall-module .em-drawer{position:fixed;inset:0 0 0 auto;width:480px;max-width:100vw;overflow:auto;overscroll-behavior:contain;z-index:81;background:var(--surface);box-shadow:var(--shadow);padding:23px 27px 25px;outline:none}
.emall-module .em-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px;color:var(--muted);font-size:10px}.emall-module .em-drawer-product{display:flex;align-items:center;gap:16px;margin-bottom:24px}.emall-module .em-drawer-product>div{min-width:0}.emall-module .em-drawer-product h2{font-size:18px;overflow-wrap:anywhere}.emall-module .em-drawer-product p{font-size:11px;color:var(--muted);margin:7px 0}.emall-module .em-drawer-product span{font-size:10px;color:var(--muted)}
.emall-module .em-drawer .em-econ-result{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin:20px 0}.emall-module .em-drawer .em-result-value{font-size:29px}.emall-module .em-drawer-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:5px}
.emall-module .em-effective-charges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.emall-module .em-effective-charges>div{min-width:0;border:1px solid var(--line);border-radius:8px;padding:13px;background:var(--surface-soft)}
.emall-module .em-effective-charges span,.emall-module .em-effective-charges small{display:block;color:var(--muted);font-size:10px;line-height:1.5;overflow-wrap:anywhere}.emall-module .em-effective-charges strong{display:block;font-size:17px;line-height:1.45;margin:7px 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.emall-module .em-effective-charges strong small{display:inline;font-size:12px}.emall-module .em-delivery-measures{margin-top:6px}
.emall-module .em-assumptions{margin:14px 0 0;padding:13px 0}.emall-module .em-assumptions summary{font-size:11px}.emall-module .em-assumptions ul{margin:10px 0 0;padding-left:18px;color:var(--muted);font-size:11px;line-height:1.65}.emall-module .em-cost-lines dt{min-width:0;overflow-wrap:anywhere}
.emall-module .em-known-subtotal{font-size:11px;color:var(--muted);margin-top:13px}.emall-module .em-known-subtotal b{color:var(--ink);margin-left:5px}.emall-module .em-known-subtotal small{display:block;margin-top:4px;font-size:10px}.emall-module .em-cell-note{display:block;color:var(--muted);font-size:9px;margin-top:4px}
.emall-module .em-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 18px;background:var(--surface-soft);border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.emall-module .em-selection-bar>div{display:flex;flex-wrap:wrap;gap:7px}
.emall-module .em-catalog .em-table :is(th,td).em-selection-cell{width:42px;min-width:42px;max-width:42px;padding:5px}.emall-module .em-catalog .em-table td:nth-child(2){min-width:230px;max-width:370px;white-space:normal}.emall-module .em-row-select{display:grid;place-items:center;min-width:32px;min-height:40px;margin:0;cursor:pointer}.emall-module .em-row-select input{width:16px;height:16px;accent-color:var(--em-accent)}
.emall-module .em-price-cell{display:block;color:var(--ink);background:none;border:0;border-bottom:1px dashed var(--line);text-align:left;padding:4px 0;font-size:11px;line-height:1.5;min-height:40px;font-variant-numeric:tabular-nums}.emall-module .em-price-cell:hover{color:var(--em-accent);border-color:var(--em-accent)}.emall-module .em-price-cell small{display:block;font-size:9px;color:var(--blue)}
.emall-module .em-price-dialog{position:fixed;z-index:81;left:50%;top:50%;transform:translate(-50%,-50%);width:760px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:24px;outline:none}.emall-module .em-price-dialog .em-drawer-head{margin-bottom:16px}.emall-module .em-price-dialog .em-panel-title{margin-bottom:16px}.emall-module .em-price-dialog .em-panel-title .em-caption{margin-top:6px}.emall-module .em-price-dialog .em-presets{align-items:center;margin-bottom:15px}.emall-module .em-price-dialog .em-presets .em-caption{margin:0 0 0 5px}
.emall-module .em-price-rows{border:1px solid var(--line);border-radius:8px;overflow:hidden}.emall-module .em-price-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.5fr) minmax(120px,.5fr);gap:10px 16px;padding:14px;border-bottom:1px solid var(--line)}.emall-module .em-price-row:last-child{border:0}.emall-module .em-price-row>div{min-width:0}.emall-module .em-price-product strong{display:block;font-size:12px;overflow-wrap:anywhere}.emall-module .em-price-product span{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:5px;overflow-wrap:anywhere}
.emall-module .em-price-before>span,.emall-module .em-price-after>span{display:block;font-size:9px;color:var(--muted);margin-bottom:6px}.emall-module .em-price-before>strong,.emall-module .em-price-after>strong{font-size:13px;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.emall-module .em-price-before>small,.emall-module .em-price-after>small{display:block;color:var(--muted);font-size:9px;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}.emall-module .em-price-after{color:var(--em-accent)}
.emall-module .em-price-after input{display:block;width:100%;min-width:0;min-height:38px;padding:8px 9px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-size:12px}.emall-module .em-price-row-result{display:flex;align-items:center;gap:8px;flex-wrap:wrap;grid-column:1/-1;font-size:10px;color:var(--muted);overflow-wrap:anywhere}.emall-module .em-price-warning{grid-column:1/-1;font-size:10px;line-height:1.6;color:var(--amber);background:var(--amber-soft);padding:8px 10px;border-radius:5px;overflow-wrap:anywhere}
.emall-module .em-price-footer{position:sticky;bottom:-24px;display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:18px;padding:14px 0 0;background:var(--surface);border-top:1px solid var(--line)}.emall-module .em-price-status{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 16px;overflow-wrap:anywhere}.emall-module .em-price-status .loading-ring{flex:none}
.emall-module .em-skip{position:fixed;top:-70px;left:14px;z-index:200;padding:11px 17px;background:var(--surface);border:2px solid var(--blue);border-radius:7px;color:var(--ink);text-decoration:none}.emall-module .em-skip:focus{top:12px}
@media(max-width:1180px){
 .emall-module #em-main{padding:25px 20px 20px}.emall-module .em-topbar{padding:12px 20px}.emall-module .em-topbar>span{display:none}.emall-module .em-topbar-actions{margin-left:auto}.emall-module .em-stats{gap:10px}.emall-module .em-stat{padding:15px}.emall-module .em-table-tools{gap:10px}
 .emall-module .em-two-col{grid-template-columns:1fr}.emall-module .em-simulator{grid-template-columns:minmax(290px,1fr) minmax(290px,1fr);gap:15px}.emall-module .em-simulator .em-panel{padding:18px}.emall-module .em-result-value{font-size:30px}
}
@media(max-width:1020px){
 .emall-module .em-simulator{grid-template-columns:1fr}.emall-module .em-page-head{align-items:flex-start}.emall-module .em-head-actions{max-width:220px}.emall-module .em-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.emall-module .em-quick-actions{grid-template-columns:1fr}
 .emall-module .em-quick-card{grid-template-columns:30px minmax(0,1fr) auto;gap:3px 13px}.emall-module .em-quick-card>svg:first-child{grid-column:1;grid-row:1/3;margin:auto}.emall-module .em-quick-card strong,.emall-module .em-quick-card span{grid-column:2}.emall-module .em-quick-card>svg:last-child{grid-column:3;grid-row:1/3;margin:auto}
}
@media(max-width:760px){
 .emall-module .em-shell{display:block}.emall-module .em-sidebar{position:relative;display:block;width:100%;height:auto;min-height:0;max-height:none;padding:14px 15px 0;border-right:0;border-bottom:1px solid var(--line);overflow:visible}
 .emall-module .em-brand{padding:0;min-height:30px}.emall-module .em-brand strong{font-size:22px}.emall-module .em-brand .brand-mark{width:25px;height:28px}.emall-module .em-market-label{position:absolute;right:15px;top:12px;padding:5px 8px;margin:0;max-width:55%;gap:7px}.emall-module .em-market-label>span:first-child{width:23px;height:23px;font-size:20px}.emall-module .em-market-label small{display:none}.emall-module .em-market-label strong{font-size:12px}
 .emall-module .em-nav-label,.emall-module .em-sidebar-bottom{display:none}.emall-module .em-sidebar nav{display:flex;gap:5px;overflow:auto;overscroll-behavior-x:contain;padding:13px 0 9px;margin-top:4px;scrollbar-width:thin}.emall-module .em-nav-item{width:auto;min-height:35px;flex:none;font-size:11px;padding:7px 10px;margin:0;gap:6px}.emall-module .em-nav-item svg{width:15px;height:15px}
 .emall-module .em-topbar{min-height:55px;padding:9px 15px}.emall-module .em-topbar-actions{width:100%;gap:6px;justify-content:space-between}.emall-module .em-topbar .market-switch{flex:1;min-width:0;overflow:auto;scrollbar-width:none}.emall-module .em-topbar .market-switch button{font-size:10px;padding:5px 6px;flex:none;white-space:nowrap}.emall-module .em-topbar .theme-toggle{padding:6px;min-width:30px}.emall-module .em-topbar .theme-toggle>span{display:none}.emall-module .em-topbar .icon-btn{width:29px;min-width:29px;padding:5px}
 .emall-module #em-main{padding:23px 15px 18px}.emall-module h1{font-size:26px}.emall-module .em-eyebrow{font-size:8px;letter-spacing:1px}.emall-module .em-page-head{gap:13px;flex-wrap:wrap;margin-bottom:20px}.emall-module .em-page-head p{font-size:10px}.emall-module .em-head-actions{max-width:none;justify-content:flex-start;gap:7px}
 .emall-module .em-button{min-height:35px;padding:7px 11px;font-size:11px}.emall-module .em-head-actions .em-button{min-height:32px;padding:6px 10px;font-size:10px}.emall-module .em-panel{padding:18px}.emall-module .em-panel.em-table-panel{padding:0}.emall-module .em-stat{padding:15px}.emall-module .em-stat>strong{font-size:27px}.emall-module .em-stat>small{font-size:9px}
 .emall-module .em-table-tools{padding:13px;gap:10px}.emall-module .em-search{flex-basis:100%;min-width:0}.emall-module .em-table-tools .em-field{flex:1;min-width:115px}.emall-module .em-table th,.emall-module .em-table td{padding:10px}.emall-module .em-table td:first-child{min-width:190px;max-width:260px}.emall-module .em-product{gap:9px}.emall-module .em-product strong{font-size:11px}
 .emall-module .em-pagination{padding:11px 13px;gap:8px}.emall-module .em-section-intro{flex-direction:column;gap:8px}.emall-module .em-footer{flex-wrap:wrap;gap:5px;font-size:9px}.emall-module .em-result-top{align-items:flex-start}.emall-module .em-result-value{font-size:31px}.emall-module .em-report-list>article{flex-wrap:wrap}.emall-module .em-drawer{width:100%;padding:20px}
 .emall-module .em-empty{padding:44px 18px}.emall-module .em-empty h2{font-size:19px}.emall-module .em-form-grid{gap:0 13px}.emall-module .em-field>span{font-size:10px}.emall-module .em-field :is(input,select,textarea){font-size:14px;min-height:40px}
 .emall-module .em-price-dialog{padding:18px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.emall-module .em-price-dialog .em-button,.emall-module .em-price-dialog .em-icon-button,.emall-module .em-selection-bar .em-button{min-height:40px}.emall-module .em-price-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:13px}.emall-module .em-price-product{grid-column:1/-1}.emall-module .em-price-footer{bottom:-18px;align-items:stretch}.emall-module .em-price-footer .em-button{flex:1;white-space:normal}.emall-module .em-selection-bar{padding:12px 13px}.emall-module .em-effective-charges{gap:9px}.emall-module .em-effective-charges>div{padding:11px}
}
@media(max-width:440px){.emall-module .em-stats{gap:9px}.emall-module .em-stat{padding:13px}.emall-module .em-stats .em-stat>small{font-size:8px}.emall-module .em-table-tools .em-field:last-child{flex-basis:100%}.emall-module .em-result-top{flex-wrap:wrap;gap:8px}.emall-module .em-form-grid{grid-template-columns:1fr 1fr}.emall-module .em-drawer-actions>.em-button{flex:1}.emall-module .em-save-bar{padding:12px}.emall-module .em-save-bar>span{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.emall-module *{scroll-behavior:auto!important;animation:none!important}}
@media print{.emall-module .em-sidebar,.emall-module .em-topbar,.emall-module .em-head-actions,.emall-module .em-table-tools{display:none}.emall-module .em-shell{display:block}.emall-module #em-main{padding:0}.emall-module .em-table-scroll{overflow:visible}}
