:root{--navy:#09283f;--blue:#174e77;--green:#078451;--yellow:#e6a500;--ink:#172e42;--muted:#667787;--line:#dde5eb;--bg:#f4f7fa;--radius:12px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}a{color:var(--blue)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:0;border-radius:8px;min-height:42px;padding:10px 16px;font-weight:600;transition:background .15s}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--green);color:white}.primary:hover{background:#066a42}.secondary{background:white;border:1px solid var(--line);color:var(--ink)}.secondary:hover{background:#f0f5f8}.danger{background:#fee8e6;color:#ae3025}.icon-button{background:transparent;color:inherit;padding:5px 9px;min-height:32px}.wide{width:100%}.muted{color:var(--muted)}.small,small{font-size:.875rem;line-height:1.55}.eyebrow,.tag{font-size:.75rem;letter-spacing:.11em;font-weight:700}.tag{display:inline-block;background:#e6f4ee;color:#126346;padding:7px 10px;border-radius:6px;letter-spacing:.05em}.login-layout{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.login-story{padding:48px 9%;background:#e8eff4;display:flex;flex-direction:column;justify-content:space-between;gap:50px;min-height:100vh}.login-brand img{width:250px;height:auto}.login-story h1{font-size:clamp(2.8rem,4.5vw,4.5rem);letter-spacing:-.05em;line-height:1.08;margin:22px 0}.login-story p{max-width:440px;font-size:1.1rem;line-height:1.7;color:#526b7e}.story-line{padding:14px 0;border-bottom:1px solid #d1dce4;max-width:420px}.story-line span{color:var(--green);font-weight:700;margin-right:18px;font-size:.85rem}.login-panel{display:grid;place-items:center;padding:40px;background:white}.login-box{width:100%;max-width:390px}.login-box h2{font-size:1.9rem;letter-spacing:-.04em;margin:22px 0 8px}.login-box form{display:grid;gap:20px;margin-top:30px}.subtle-link{display:block;margin-top:28px;font-size:.875rem}.form-error{color:#ae3025;white-space:pre-wrap}label{display:flex;flex-direction:column;gap:7px;font-size:.875rem;font-weight:600}input,select,textarea{border:1px solid #cbd6df;border-radius:7px;padding:11px 12px;width:100%;background:white;color:var(--ink);min-height:43px}select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2351687a' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}input:focus,select:focus,textarea:focus{border-color:var(--green);outline:2px solid #07905b20}textarea{resize:vertical;min-height:90px}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--green)}.check{flex-direction:row;align-items:center;font-weight:400}.app-layout{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:var(--navy);color:#c6d6e2;position:fixed;inset:0 auto 0 0;width:250px;display:flex;flex-direction:column;padding:25px 16px;z-index:20}.brand{display:block;background:white;padding:10px;border-radius:9px;margin-bottom:32px}.brand img{display:block;width:100%;height:auto}.sidebar-caption{font-size:.68rem;letter-spacing:.15em;padding:0 12px;margin-bottom:15px;color:#8da7ba}.sidebar nav{display:grid;gap:5px;overflow:auto}.nav-item{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;color:#bbcfde;font-weight:500;min-height:44px;padding:11px 13px;font-size:.9rem}.nav-item svg{width:19px;height:19px;flex-shrink:0}.nav-item.active{color:#fff;background:#1a435c;box-shadow:inset 3px 0 var(--yellow)}.nav-item:hover{background:#14394f;color:white}.nav-item.test{background:#087f53;color:white;margin-bottom:12px}.nav-divider{font-size:.68rem;letter-spacing:.12em;padding:20px 12px 8px;color:#8da7ba}.sidebar-bottom{margin-top:auto;padding-top:24px;display:flex;gap:9px;align-items:center;font-size:.8rem}.sidebar-bottom small{display:block;color:#8da7ba;font-size:.7rem}.sidebar-bottom .icon-button{font-size:.75rem;margin-left:auto}.avatar{border-radius:8px;background:#1d465f;color:white;width:32px;height:32px;display:grid;place-items:center}.main-area{grid-column:2;min-width:0;display:flex;flex-direction:column}.topbar{height:82px;background:white;border-bottom:1px solid var(--line);padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{font-size:.85rem;color:var(--muted)}.breadcrumb span{margin:0 12px;color:#c7d0d7}.breadcrumb strong{color:var(--ink);font-weight:500}.topbar-actions{display:flex;gap:22px;align-items:center}.emitter-switch{font-size:.65rem;color:var(--muted);gap:2px}.emitter-switch select{border:0;min-height:30px;padding:3px 25px 3px 0;font-size:.85rem;max-width:240px;font-weight:600}.connection{font-size:.75rem;color:#668075;border:1px solid #d8e6df;padding:6px 9px;border-radius:20px}main#content{padding:34px;max-width:1600px;width:100%;margin:0 auto;flex:1}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:26px}.page-head h1{margin:0 0 8px;font-size:1.8rem;letter-spacing:-.045em}.page-head p{margin:0;color:var(--muted);line-height:1.6;font-size:.9rem}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:22px}.card h2{font-size:1.1rem;margin:0 0 9px;letter-spacing:-.02em}.card h3{font-size:1rem;margin:0 0 8px}.card p{line-height:1.65}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stat{background:white;padding:23px;border:1px solid var(--line);border-radius:var(--radius)}.stat span{font-size:.8rem;color:var(--muted)}.stat strong{font-size:1.9rem;display:block;margin-top:15px;letter-spacing:-.05em}.two-cols{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.empty{text-align:center;padding:45px 20px}.empty svg{width:42px;height:42px;color:#94a9b8;margin-bottom:15px}.empty h2{font-size:1.1rem}.empty p{color:var(--muted);font-size:.9rem;max-width:470px;margin:10px auto 23px}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:22px}table{border-collapse:collapse;width:100%;font-size:.875rem;text-align:left}th{background:#f8fafc;color:#5a6f80;font-size:.72rem;letter-spacing:.025em;font-weight:600;white-space:nowrap}td,th{padding:15px 18px;border-bottom:1px solid #e8edf1}tr:last-child td{border-bottom:0}td strong{font-weight:600}td small{color:var(--muted);display:block}.table-actions{display:flex;gap:7px}.table-actions button{min-height:32px;padding:6px 10px;font-size:.78rem}.badge{display:inline-block;border-radius:5px;padding:5px 8px;background:#edf2f6;color:#486075;font-size:.73rem;white-space:nowrap}.badge.green{background:#e1f4eb;color:#087446}.badge.yellow{background:#fff3d3;color:#8e6400}.badge.red{background:#fee9e7;color:#ad3024}.filterbar{display:flex;gap:12px;margin-bottom:20px}.filterbar input{max-width:420px}.notice{padding:14px 18px;border-radius:8px;background:#edf4fa;border:1px solid #d3e2ef;color:#335b78;font-size:.875rem;line-height:1.6;margin-bottom:20px}.notice.warning{background:#fff7e2;border-color:#f1dfab;color:#775c13}.mode-banner{padding:12px 34px;background:#fff0c7;color:#745810;font-size:.875rem;display:flex;align-items:center;justify-content:space-between}.mode-banner button{font-size:.8rem;min-height:30px;padding:5px 10px}.app-footer{padding:20px 34px;color:#7a8c9a;font-size:.75rem;display:flex;justify-content:space-between}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid-form .full{grid-column:1/-1}.section-label{grid-column:1/-1;font-size:.8rem;color:var(--green);border-bottom:1px solid var(--line);padding-bottom:10px;margin-top:10px;font-weight:700}.form-footer{display:flex;justify-content:flex-end;gap:10px;grid-column:1/-1;padding-top:15px;border-top:1px solid var(--line);margin-top:5px}dialog{border:0;border-radius:14px;box-shadow:0 20px 90px #082a4255;padding:0;max-width:840px;width:calc(100% - 32px);max-height:90vh;color:var(--ink)}dialog::backdrop{background:#09283f80;backdrop-filter:blur(3px)}.dialog-head{padding:23px 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:1.2rem;margin:0}#modal-body,#quick-body{padding:24px 26px}.log{background:#102b3f;color:#c8dce9;border-radius:9px;padding:18px;max-height:400px;overflow:auto;font: .8rem/1.7 ui-monospace,monospace;white-space:pre-wrap;word-break:break-word}.log-entry{margin-bottom:13px;border-bottom:1px solid #264255;padding-bottom:10px}.key{font-family:ui-monospace,monospace;word-break:break-all}.item-row{display:grid;grid-template-columns:minmax(160px,2fr) minmax(120px,1.3fr) 90px 100px 90px 38px;gap:8px;align-items:end;padding:14px 0;border-bottom:1px solid var(--line)}.item-row label{font-size:.72rem}.item-row input,.item-row select{padding:9px 7px;font-size:.85rem}.item-summary{font-size:.85rem;font-weight:600;margin:18px 0;text-align:right}.profile-card{border:1px solid var(--line);border-radius:10px;padding:20px;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:15px}.profile-card p{margin:5px 0;font-size:.85rem;color:var(--muted)}#toast{position:fixed;right:25px;bottom:25px;max-width:460px;padding:15px 20px;background:#123d2e;color:white;border-radius:9px;box-shadow:0 8px 35px #052d2825;display:none;z-index:100;font-size:.9rem}#toast.error{background:#92372f}.mobile-only{display:none}.checklist{list-style:none;padding:0;margin:20px 0}.checklist li{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.checklist li span{width:25px;height:25px;border-radius:50%;background:#eaf1f5;color:#687e8f;display:grid;place-items:center;font-size:.8rem}.checklist li.done span{background:#ddf2e7;color:var(--green)}.checklist a{margin-left:auto;font-size:.85rem}.skeleton{padding:40px;color:var(--muted)}@media(max-width:1100px){.connection{display:none}.stats{grid-template-columns:repeat(2,1fr)}.two-cols{grid-template-columns:1fr}.item-row{grid-template-columns:repeat(3,1fr)}.item-row>:first-child{grid-column:span 2}}@media(max-width:760px){.app-layout{grid-template-columns:1fr}.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:none}.main-area{grid-column:1}.mobile-only{display:block}.topbar{padding:0 18px;height:72px}.breadcrumb{display:none}.topbar-actions{gap:10px}.emitter-switch select{max-width:190px}main#content{padding:24px 16px}.page-head{flex-direction:column}.page-head h1{font-size:1.6rem}.grid-form{grid-template-columns:1fr}.stats{gap:12px}.stat{padding:18px}.card{padding:20px}.app-footer{padding:20px 16px}.app-footer span{display:none}.login-layout{grid-template-columns:1fr}.login-story{display:none}.login-panel{min-height:100vh;padding:25px}.mode-banner{padding:10px 16px;gap:12px}.profile-card{align-items:flex-start}td,th{padding:13px 12px}}

[hidden]{display:none!important}.overview-title{margin-top:20px!important}.actions>select{width:auto;min-width:220px}.filterbar{margin-top:16px}

.dialog-head{position:sticky;top:0;background:white;z-index:2}

#barcode-video{width:100%;max-height:55vh;border-radius:10px;background:#102b3f}

.input-action{display:flex;gap:8px;align-items:stretch}.input-action input{min-width:0;flex:1}.input-action button{flex-shrink:0}label small[role=status]{font-weight:400;color:var(--muted);font-size:.8rem;line-height:1.5}

.form-field{display:flex;flex-direction:column;gap:7px;min-width:0}.field-caption{display:flex;align-items:center;gap:8px;min-height:24px}.field-caption label{flex:1}.help-button{border:1px solid #aebfcd;border-radius:50%;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;display:inline-grid;place-items:center;background:#f4f8fb;color:#285d7d;font-size:.85rem;font-weight:700;line-height:1}.help-button:hover{background:#deedf6;border-color:#457da0}.field-hint{font-weight:400;font-size:.82rem;color:var(--muted);line-height:1.55;margin:0}.text-button{background:none;color:var(--blue);padding:0;min-height:24px;font-size:inherit;text-decoration:underline}.optional-group{border:1px solid var(--line);border-radius:10px;padding:18px}.optional-title{display:flex;align-items:center;gap:12px;justify-content:space-between}.optional-title label{line-height:1.6}.optional-title input{flex-shrink:0}.optional-group #rtc-fields{margin-top:22px;border-top:1px solid var(--line);padding-top:20px}.setting-choice{border-bottom:1px solid var(--line);padding-bottom:18px}.setting-choice p{margin:8px 0 0 28px}.help-type{background:#e8f3fb;color:#225475;border-radius:7px;padding:12px 15px;font-size:.9rem;font-weight:600;margin-bottom:20px}.help-article{font-size:1rem;line-height:1.75}.help-article h3{margin:24px 0 7px;font-size:1.05rem}.help-article p{margin:12px 0}.help-article li{margin:7px 0}.help-source{border-top:1px solid var(--line);padding-top:18px;margin-top:24px;font-size:.9rem}#help-body{padding:24px 28px}#help-dialog{max-width:720px}.detail-list{display:grid;grid-template-columns:160px 1fr;gap:13px;font-size:.9rem;margin:0 0 25px}.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;overflow-wrap:anywhere}.user-stats .stat{padding:14px}.user-stats .stat strong{font-size:1.4rem}@media(max-width:600px){.detail-list{grid-template-columns:1fr;gap:5px}.detail-list dd{margin-bottom:10px}.field-caption{align-items:flex-start}#help-body{padding:20px}.setting-choice p{margin-left:0}}

.sheet-top,.sheet-tools,.sheet-pagination,.sheet-submit{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:18px 0}.sheet-top>div:first-child{min-width:260px}.sheet-top small{display:block;color:var(--muted);margin-top:7px}.sheet-tools{align-items:flex-start;flex-wrap:wrap}.sheet-tools input[type=search]{max-width:330px}.sheet-tools button{font-size:.82rem;padding:9px 12px}.sheet-grid{overflow:auto;max-height:65vh;border:1px solid var(--line);border-radius:9px;background:white;margin-top:18px}.worksheet{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.worksheet thead{position:sticky;top:0;z-index:3}.worksheet th,.worksheet td{padding:0;border-bottom:1px solid #dfe7ed;border-right:1px solid #e8edf1;min-width:180px;max-width:260px}.worksheet thead th{padding:10px 12px;vertical-align:top;white-space:normal;background:#edf3f7}.worksheet thead strong{display:block;font-size:.8rem;color:var(--ink);margin:5px 0}.sheet-group{font-size:.65rem;letter-spacing:.04em;text-transform:uppercase;color:#697f8f}.sheet-map{background:transparent;padding:0;min-height:26px;color:#946500;font-size:.72rem;text-align:left;font-weight:500;max-width:220px}.sheet-map.mapped{color:#087446}.worksheet input:not([type=checkbox]),.worksheet select{border:0;border-radius:0;background:transparent;min-height:44px;font-size:.82rem;min-width:180px;width:100%;padding:10px 12px}.worksheet .sheet-row-head{min-width:48px;max-width:55px;width:48px;text-align:center;background:#f2f6f9;padding:6px;vertical-align:middle}.worksheet .sheet-row-head small{display:block;font-size:.65rem;font-weight:400}.worksheet input[type=checkbox]{vertical-align:middle}.worksheet tr.sheet-child td{background:#f8fbfd}.worksheet tr.sheet-problem td{background:#fff5e3}.sheet-pagination{font-size:.8rem;color:var(--muted)}.sheet-pagination button{min-height:32px;padding:7px 10px;font-size:.8rem}.sheet-submit{align-items:flex-start}.sheet-submit h2{margin-bottom:8px}.sheet-submit>div:first-child{max-width:430px}.sheet-submit .actions{align-items:flex-end}.mapping-list{max-height:48vh;overflow:auto;border:1px solid var(--line);border-radius:8px;margin:20px 0}.mapping-row,.mapping-preview{display:grid;grid-template-columns:minmax(0,1fr) 100px 90px;gap:12px;padding:14px;border-bottom:1px solid var(--line);align-items:center}.mapping-preview{grid-template-columns:1fr 1.2fr}.mapping-preview small{display:block;max-width:260px;overflow-wrap:anywhere;color:var(--muted);font-size:.78rem}.mapping-preview strong{font-size:.88rem}.sheet-validation{border:1px solid #eccb87;border-radius:8px;background:#fff8e9;padding:18px;margin-top:15px}.sheet-validation h3{margin:0 0 12px;font-size:.95rem}.sheet-validation button{display:block;text-align:left;margin:8px 0;color:#7e5415;font-size:.85rem}#project-run{margin-bottom:15px}@media(max-width:850px){.sheet-top,.sheet-submit{flex-direction:column;align-items:stretch}.sheet-grid{max-height:60vh}.mapping-row{grid-template-columns:1fr 80px}.mapping-row>label:first-child{grid-column:1/-1}.mapping-preview{grid-template-columns:1fr}.sheet-pagination{flex-wrap:wrap}.sheet-tools .actions{gap:7px}}

.mapping-row{grid-template-columns:minmax(0,1fr) 90px 170px}.column-actions{display:flex;gap:5px}.column-actions button{padding:7px 9px;min-height:34px;font-size:.78rem}.worksheet td>.secondary{font-size:.75rem;min-height:30px;margin:6px;white-space:nowrap}@media(max-width:600px){.mapping-row{grid-template-columns:1fr}.mapping-row>label:first-child{grid-column:auto}.column-actions{justify-content:flex-end}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cfop-input{display:flex;border:1px solid #cbd6df;border-radius:8px;overflow:hidden;background:white}.cfop-input:focus-within{border-color:var(--green);outline:2px solid #07905b20}.cfop-input input{border:0;border-radius:0;min-width:0;flex:1;outline:none!important;letter-spacing:.03em}.cfop-search-trigger{display:flex;align-items:center;gap:7px;min-height:44px;background:#edf5f1;color:#087446;border-radius:0;border-left:1px solid #d5e7dd;padding:10px 13px;font-size:.85rem}.cfop-search-trigger:hover{background:#dceee4}.cfop-search-trigger svg{width:18px;height:18px}.cfop-selected-label{font-size:.8rem;color:var(--muted);font-weight:400;line-height:1.55}.cfop-catalog-link{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--blue);text-decoration:underline;padding:0;min-height:24px;font-size:inherit}#cfop-dialog{max-width:1000px}#cfop-body{padding:24px 28px}.cfop-intro{display:flex;align-items:flex-start;gap:16px;margin-bottom:18px}.cfop-intro p{font-size:.9rem;line-height:1.6;margin:0;color:var(--muted)}.cfop-intro .tag{white-space:nowrap}.cfop-current{font-size:.83rem;background:#edf6f1;color:#32634c;padding:12px 15px;border-radius:8px;margin-bottom:18px;line-height:1.6}.cfop-search-box{display:flex;align-items:center;gap:12px;border:1px solid #adc7bb;border-radius:10px;padding:5px 16px;background:#fff;box-shadow:0 3px 14px #143b2710}.cfop-search-box:focus-within{outline:3px solid #07845120;border-color:var(--green)}.cfop-search-box>svg{width:23px;height:23px;color:var(--green);flex-shrink:0}.cfop-search-box input{border:0;outline:none;min-width:0;font-size:1rem;padding:13px 0}.cfop-shortcut{font-size:.7rem;white-space:nowrap;color:#8a9b91}.cfop-filters{display:flex;gap:14px;align-items:flex-end;margin:18px 0 22px;flex-wrap:wrap}.cfop-filters>label:not(.check){min-width:190px;flex:1}.cfop-filters .check{font-size:.8rem;min-height:44px;gap:8px}.cfop-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 13px;font-size:.85rem}.cfop-results-heading .text-button{font-size:.8rem}.cfop-result{border:1px solid var(--line);border-radius:11px;padding:18px 20px;margin-bottom:12px;background:white}.cfop-result.is-current{border-color:#9ac8ae;background:#fcfefc}.cfop-result-top{display:flex;align-items:flex-start;gap:16px}.cfop-code{font-variant-numeric:tabular-nums;font-weight:700;font-size:1.1rem;background:#eef4f8;color:#164e70;padding:10px 12px;border-radius:7px;white-space:nowrap;letter-spacing:.02em}.cfop-result-title{flex:1;min-width:0}.cfop-result-title h3{font-size:.95rem;line-height:1.55;margin:0 0 8px;font-weight:600}.cfop-badges{display:flex;gap:6px;flex-wrap:wrap}.cfop-badges span{font-size:.68rem;color:#647c8d;background:#f1f5f8;border-radius:5px;padding:4px 7px}.cfop-badges .cfop-other-document{background:#fff1d2;color:#8b6819}.cfop-pick{font-size:.8rem;min-height:37px;padding:9px 13px;white-space:nowrap}.cfop-result details{margin:13px 0 0 96px;border-top:1px solid #edf1f4;padding-top:10px}.cfop-result summary{cursor:pointer;list-style:none;color:var(--blue);font-size:.83rem;font-weight:600;padding:4px 0}.cfop-result summary::-webkit-details-marker{display:none}.cfop-result summary span{display:inline-block;margin-left:5px}.cfop-result details[open] summary span{transform:rotate(180deg)}.cfop-application p{font-size:.89rem;line-height:1.8;margin:13px 0;white-space:pre-line}.cfop-validity{font-size:.75rem;color:var(--muted)}.cfop-result mark{background:#ffe5a0;color:inherit;border-radius:2px;padding:0 1px}.cfop-restriction{font-size:.77rem;color:#886723;margin:12px 0 0 96px}.cfop-more{display:block;width:100%;margin:16px 0}.cfop-source{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:.75rem;color:var(--muted);border-top:1px solid var(--line);padding-top:17px;margin-top:24px}.cfop-empty,.cfop-load-error{padding:30px 20px;text-align:center;color:var(--muted);font-size:.9rem;line-height:1.7}.cfop-empty h3{color:var(--ink)}@media(max-width:700px){#cfop-body{padding:20px 16px}.cfop-intro{flex-direction:column;gap:10px}.cfop-shortcut{display:none}.cfop-filters{gap:10px}.cfop-filters>label:not(.check){min-width:130px}.cfop-filters .check{width:100%;min-height:30px}.cfop-search-box{padding:3px 12px;gap:8px}.cfop-search-box input{font-size:.9rem}.cfop-result{padding:15px}.cfop-result-top{flex-wrap:wrap;gap:12px}.cfop-code{font-size:1rem;padding:9px}.cfop-result-title{flex-basis:calc(100% - 100px)}.cfop-pick{width:100%}.cfop-result details{margin-left:0}.cfop-restriction{margin-left:0}.cfop-results-heading{align-items:flex-start}.cfop-results-heading .text-button{max-width:125px;text-align:right}.cfop-result-title h3{font-size:.88rem}}

.cfop-selected-label:not(.form-error){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cfop-application-hit{font-weight:400;font-size:.75rem;color:#80671b}

/* Nota, catálogo e processamento em espaços independentes. */
[hidden]{display:none!important}.note-dialog{width:min(1200px,96vw);max-width:1200px}.note-step{padding:10px 0}.note-step-nav{display:flex;gap:12px;padding:4px 0 20px;border-bottom:1px solid #e3e9ee}.note-step .item-row{grid-template-columns: minmax(180px,2fr) minmax(160px,1.4fr) 100px 130px 110px auto}.note-step .actions select{flex:1;min-width:220px}.note-step .actions input[type=search]{width:100%}.sheet-options{position:relative}.sheet-options summary{cursor:pointer;list-style:none;padding:11px 16px;border:1px solid #dce4e8;border-radius:8px}.sheet-options>.card{position:absolute;z-index:5;right:0;min-width:220px;display:grid;gap:10px;margin-top:8px}.note-summary{width:100%;min-width:700px}.note-summary tbody tr{cursor:pointer}.note-summary tbody tr:hover{background:#f2f8f6}.note-summary td,.note-summary th{white-space:normal}.mapping-list+.actions{align-items:end;display:flex;gap:12px}.mapping-list+.actions label{flex:1}.catalog-body{padding:24px}#tax-dialog{width:min(1000px,95vw);max-width:1000px}#tax-search{width:100%;font-size:18px}.tax-result{display:flex;align-items:start;gap:24px;justify-content:space-between;border-top:1px solid #e2e8ee;padding:20px 0}.tax-result>div{flex:1}.tax-result h3{margin:8px 0;font-size:16px}.tax-result details{margin:12px 0;color:#526174}.tax-result strong{color:#16815c;font-size:18px}.tax-result mark{background:#fff0a8;color:inherit}.category-row{display:flex;gap:10px;align-items:center;margin:15px 0}.category-row input{min-width:100px;flex:1}.category-row small{white-space:nowrap}#visible-list{display:grid;gap:15px;margin-top:20px}.processing-page .sidebar{display:none}.processing-page .app-layout{display:block}.processing-page .main-area{margin-left:0;width:100%}.processing-page #content{max-width:1400px;margin:auto}.processing-page .emitter-switch{pointer-events:none}.process-steps{display:flex;gap:24px;position:sticky;top:0;z-index:3;background:#f5f8fa;padding:18px;border:1px solid #dce5eb;border-radius:12px;margin-bottom:24px}.process-steps a{font-weight:600;color:#166a52}.process-result{margin:20px 0}.process-result details{margin-top:24px}.process-result .page-head h3{margin:0}.process-result .key{overflow-wrap:anywhere}.processing-page section{scroll-margin-top:90px}#process-results{margin-top:34px}.product-variants{display:grid;gap:12px}.variant-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end}@media(max-width:800px){.note-step .item-row{grid-template-columns:1fr 1fr}.category-row{flex-wrap:wrap}.process-steps{position:static;flex-direction:column;gap:12px}.variant-row{grid-template-columns:1fr 1fr}.tax-result{gap:10px}.note-step-nav{flex-wrap:wrap}}
.note-step-nav .primary{background:#087e5d;color:#fff;border-color:#087e5d}.note-step-nav .secondary:not(.primary){background:#fff;color:#123046}.variant-row{padding:14px;border:1px solid #e1e9ed;border-radius:10px;background:#f8fbfa}#variants-panel{margin-top:16px}#variant-add{margin-top:12px}.note-dialog .dialog-head{position:sticky;top:0;z-index:4;background:white}.sheet-tools input[type=search]{max-width:380px}#tax-source{margin-top:20px}
