:root{--bg:#f5f7fb;--surface:#fff;--text:#172b4d;--muted:#637393;--line:#dfe5ef;--blue:#2457d6;--pale:#e8f0ff;--orange:#be6500;--red:#b02a37;--green:#187452;--radius:8px}*{box-sizing:border-box}body{margin:0;color:var(--text);font:15px/1.5 'Segoe UI',Arial,sans-serif;background:var(--bg)}button,input,select,textarea{font:14px/1.4 'Segoe UI',Arial,sans-serif}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,a,input,select,textarea{outline-offset:3px}:focus-visible{outline:3px solid #91b2ff}button,.button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);padding:10px 16px;border-radius:7px;background:white;color:var(--text);font-size:14px;min-height:42px;font-weight:500;white-space:nowrap}button:hover,.button:hover{background:#f0f4fb;text-decoration:none}.primary{background:var(--blue);border-color:var(--blue);color:white}.primary:hover{background:#194bbf}.danger{color:var(--red);border-color:#e6b9bf}button:disabled{opacity:.5;cursor:not-allowed}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:white;border-right:1px solid var(--line);padding:14px 9px;z-index:20}.brand{font-size:22px;font-weight:700;letter-spacing:-.5px;padding:0 14px 24px;color:#0b1d3d}.nav{display:flex;flex-direction:column;gap:5px}.nav a{padding:12px 18px;display:flex;gap:15px;align-items:center;border-radius:6px;color:#273e67;font-size:15px}.nav a:hover{background:#f4f7fc;text-decoration:none}.nav a.active{background:var(--pale);color:var(--blue)}.icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.topbar{height:56px;margin-left:232px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;padding:0 32px;gap:22px}.topbar form{display:inline}.topbar button{border:0;min-height:30px;padding:3px 6px}.environment{display:flex;align-items:center;gap:8px;font-size:14px}.production{color:var(--red);font-weight:700}main{margin-left:232px;padding:26px 32px 40px;max-width:1900px}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}h1{font-size:36px;line-height:1.15;letter-spacing:-1px;margin:3px 0 5px;font-weight:700}h2{font-size:21px;letter-spacing:-.35px;line-height:1.35;margin:0 0 20px}h3{font-size:17px;margin:0 0 12px}.subtitle,.muted{color:var(--muted)}.subtitle{font-size:17px;margin:0}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:24px}.stats{display:grid;grid-template-columns:repeat(4,1fr);padding:22px 4px;margin-bottom:24px}.stat{padding:0 23px;border-right:1px solid #e5eaf3}.stat:last-child{border:0}.stat span{display:block;color:var(--muted);font-size:15px}.stat strong{display:block;font-size:32px;line-height:1.4;color:#0c1c3a;margin-top:4px}.tablewrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;background:#f3f6fa;font-weight:600;color:#223658;white-space:nowrap}td,th{padding:14px 18px;border-bottom:1px solid #e6ebf3;vertical-align:top}td{overflow-wrap:anywhere}tbody tr:last-child td{border-bottom:0}.empty{text-align:center;padding:38px 20px 44px;min-height:205px;border:1px solid #e8edf4;border-top:0;border-radius:0 0 6px 6px}.empty .icon{width:42px;height:42px;color:#8796b0;margin-bottom:8px}.empty strong{display:block;font-size:17px;font-weight:500;margin:4px 0}.empty p{margin:4px 0;color:var(--muted)}.setuprow{display:grid;grid-template-columns:minmax(130px,34%) 1fr;gap:18px;padding:14px 2px;border-top:1px solid #e6ebf3}.setuprow a{display:flex;gap:12px;align-items:center}.setuprow .icon{width:21px;height:21px}.warn{color:var(--orange)}.ok{color:var(--green)}.bad{color:var(--red)}.panel-footer{border-top:1px solid #e6ebf3;padding-top:24px;margin-top:2px;display:flex;align-items:center;gap:8px}.panel-footer .icon{width:16px;height:16px}.notice{padding:12px 16px;border:1px solid #d0def5;background:#eef4ff;border-radius:6px;margin-bottom:20px}.notice.error{background:#fff1f2;border-color:#e9c3c7;color:#8e2531}.notice.success{background:#edf8f2;border-color:#bddfce;color:#195f44}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 22px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.wide{grid-column:1/-1}.field label{font-weight:500;font-size:14px}.field small{color:var(--muted);font-size:12px}input:not([type=checkbox]),select,textarea{width:100%;background:#fff;border:1px solid #cdd6e4;border-radius:6px;color:var(--text);padding:10px 12px;min-height:42px}input[readonly]{background:#f3f5f9}input[type=checkbox]{accent-color:var(--blue);width:17px;height:17px;vertical-align:middle}.check{display:flex;align-items:center;gap:9px;font-size:14px;min-height:34px}textarea{min-height:85px}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:22px}.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin-bottom:20px}.filters .field{min-width:140px;flex:1}.filters .search{flex:2}.compact{font-size:13px}.status{display:inline-block;font-size:12px;line-height:1.3;padding:5px 8px;border-radius:4px;background:#edf1f7;color:#506585;white-space:normal}.status.autorizada,.status.uploaded_shopee{background:#eaf6ef;color:#17633b}.status.rejeitada_sefaz,.status.falha_upload_shopee{background:#fcebec;color:#9c2632}.status.dados_incompletos,.status.precisa_cadastro{background:#fff1dc;color:#996000}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.profile-grid .panel{margin:0}.key{font-family:Consolas,monospace;overflow-wrap:anywhere;font-size:13px}dl{display:grid;grid-template-columns:160px 1fr;gap:9px 15px}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.auth{max-width:455px;margin:9vh auto;padding:32px}.auth h1{font-size:28px;margin-bottom:14px}.auth .field{margin-top:15px}.auth .primary{width:100%;margin-top:24px}.auth .brand{padding:0 0 22px;font-size:20px}.mobile-menu{display:none}.two-thirds{display:grid;grid-template-columns:2fr 1fr;gap:24px}.inlineform{display:inline-flex}.hint{background:#f6f8fc;padding:12px 15px;border-radius:6px;margin:15px 0;font-size:13px;color:var(--muted)}details{margin-top:16px}summary{cursor:pointer;font-weight:600;padding:9px 0}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.pagination{display:flex;gap:16px;align-items:center;justify-content:flex-end;padding-top:20px}label[for]{cursor:pointer}.required{color:var(--red)}.list{padding-left:20px}.overflow-code{white-space:pre-wrap;word-break:break-word;font:12px/1.6 Consolas,monospace;max-height:300px;overflow:auto}.actions form{margin:0}.footer-note{color:var(--muted);font-size:12px;margin-top:24px}body.auth-page main{margin:0;padding:20px}
@media(min-width:1450px){main{padding-top:29px}.pagehead{margin-bottom:25px}h1{font-size:40px}.empty{min-height:207px;padding-top:40px}.stats{padding-top:22px;padding-bottom:22px}}
@media(max-width:1050px){.sidebar{width:205px}.topbar,main{margin-left:205px}main{padding:22px}.profile-grid,.two-thirds{grid-template-columns:1fr}.pagehead{align-items:flex-start}h1{font-size:30px}.stat{padding:0 14px}.subtitle{font-size:15px}td,th{padding:12px}}
@media(max-width:720px){.sidebar{transform:translateX(-100%);width:230px;box-shadow:6px 0 24px #172b4d20}.sidebar.open{transform:translateX(0)}.topbar{margin-left:0;padding:0 16px;gap:13px}.mobile-menu{display:inline-flex!important;margin-right:auto}main{margin-left:0;padding:20px 15px}.pagehead{flex-direction:column;gap:14px}h1{font-size:30px}.pagehead .primary{min-height:40px}.stats{grid-template-columns:1fr 1fr;gap:18px 0}.stat:nth-child(2){border:0}.stat strong{font-size:27px}.stat span{font-size:13px}.panel{padding:17px;margin-bottom:18px}h2{font-size:19px}.fields{grid-template-columns:1fr}.setuprow{grid-template-columns:110px 1fr;gap:9px;font-size:13px}.empty{min-height:210px}.filters .field{min-width:120px}.auth{margin:4vh auto;padding:25px}.environment{font-size:12px}.topbar .login-name{display:none}dl{grid-template-columns:100px 1fr}.tablewrap td,.tablewrap th{padding:11px 10px}.tablewrap table{min-width:510px}.actions{gap:8px}button,.button{font-size:13px}footer{font-size:12px}}
:root{--blue:#0b5bef;--text:#122443;--orange:#dd7100}.primary{font-size:16px;min-height:45px;padding:10px 20px}.sidebar .brand{padding-bottom:28px}.pagehead{align-items:flex-start}
@media(min-width:1450px){main{padding-top:26px;padding-bottom:24px}.pagehead{margin-bottom:22px}.stats{padding-top:24px;padding-bottom:24px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .12s}.sidebar{transition:transform .18s}}

[hidden]{display:none!important}[data-tax-overrides]{border:0;padding:0;margin:0;min-width:0}[data-tax-overrides] legend{font-weight:600;margin-bottom:16px}input[role=switch]{appearance:none;width:42px;height:24px;background:#9aa6bb;border:0;border-radius:20px;position:relative;cursor:pointer;margin-right:8px;vertical-align:middle}input[role=switch]::before{content:"";position:absolute;width:18px;height:18px;border-radius:50%;top:3px;left:3px;background:white}input[role=switch]:checked{background:var(--blue)}input[role=switch]:checked::before{left:21px}

.automation-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.automation-toggle{display:flex;align-items:center;gap:20px;min-height:48px}.automation-toggle strong{padding:5px 14px;border-radius:99px;background:#e9edf5;color:#364665}.automation-toggle[aria-checked="true"] strong{background:#d8f4e4;color:#17673b}

.sidebar{overflow-y:auto}.nav{gap:2px}.nav a{padding:10px 14px}.company-picker{display:flex!important;align-items:center;gap:8px;min-width:0;margin-right:auto;max-width:60%}.company-picker label{font-size:12px;white-space:nowrap}.company-picker select{min-height:34px;padding:5px 8px;min-width:90px;max-width:350px;font-size:13px}.company-picker button{white-space:nowrap}.topbar{gap:16px}.form-note{overflow-wrap:anywhere}
@media(max-width:720px){.topbar{height:auto;min-height:60px;flex-wrap:wrap;padding:10px 15px;gap:8px}.company-picker{order:4;max-width:100%;width:100%;margin:0}.company-picker select{max-width:none;flex:1}.company-picker label{font-size:11px}.topbar .mobile-menu{margin-right:auto}.nav a{padding:10px 14px}}

.report-table{min-width:1150px}.report-table th,.report-table td{padding:12px 14px;white-space:nowrap;overflow-wrap:normal}.report-table td .key,.report-table td code{white-space:normal;min-width:200px;max-width:260px;overflow-wrap:anywhere}.report-table td small,.report-table td[colspan]{white-space:normal}

.eyebrow{font-size:12px;color:var(--muted);margin:0 0 5px}.progress-heading,.progress-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.progress-heading h2{margin:0;display:flex;align-items:center;gap:10px}.order-progress>p{margin:12px 0}.progress-stages{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0;margin:20px 0;gap:12px}.progress-stages li{border-top:3px solid var(--line);padding-top:10px;font-size:13px;color:var(--muted)}.progress-stages .complete{border-color:var(--green);color:var(--green)}.progress-stages .current{border-color:var(--blue);color:var(--blue);font-weight:600}.stage-marker{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#edf1f7;margin-right:6px;font-size:12px}.complete .stage-marker{background:#eaf6ef}.current .stage-marker{background:var(--pale)}.progress-timing{font-variant-numeric:tabular-nums;padding:10px 12px;border-radius:6px;background:#f3f6fa}.progress-footer{border-top:1px solid var(--line);padding-top:12px}.progress-footer button{font-size:13px;min-height:34px;padding:6px 10px}.progress-spinner{width:18px;height:18px;flex:none;border:2px solid #cbdcfb;border-top-color:var(--blue);border-radius:50%;animation:progress-spin .8s linear infinite}.order-progress[data-state=confirmed]{border-color:#bddfce}.order-progress[data-state=confirmed] h2{color:var(--green)}.order-progress[data-state=failed] h2{color:var(--red)}.order-progress[data-state=paused] .current{border-color:var(--orange);color:var(--orange)}.order-jobs h2{margin-bottom:12px}.order-jobs h2 small{font-size:13px;font-weight:400}.order-jobs td,.order-jobs th{padding:10px 12px}.order-jobs td:last-child{max-width:470px}.order-jobs .tablewrap{max-height:340px}.order-jobs thead{position:sticky;top:0}.panel>p:first-child{margin-top:0}.panel>p:last-child{margin-bottom:0}h1{overflow-wrap:anywhere}button[aria-disabled=true]{opacity:.6;cursor:wait}.selection-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:14px 0}.selection-summary strong{font-variant-numeric:tabular-nums}.tablewrap:focus-visible{outline-offset:2px}
@keyframes progress-spin{to{transform:rotate(360deg)}}
.compact-actions{margin-top:10px;gap:18px}.selection-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}.selection-tools p,.selection-tools .actions{margin:0}.table-details{margin:4px 0 0}.table-details summary{padding:2px 0;font-size:12px;font-weight:400}.cell-note{display:block;margin-top:4px;max-width:270px;white-space:normal}.empty-state{padding:18px 2px}.empty-state p{margin:5px 0;color:var(--muted)}.batch-summary{border-top:1px solid var(--line);padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.batch-summary p{margin:5px 0}.batch-summary .actions{margin:0}.resend-option{font-size:13px}.settings-details{margin:0}.settings-details>summary{padding:0}.settings-details[open]>summary{margin-bottom:15px}.settings-actions{margin:0 0 24px}.batch-summary>div{min-width:0;overflow-wrap:anywhere}
.report-table td small.uf-route{white-space:nowrap}
.rules-table select{min-width:160px}.rules-table input{min-width:90px}.rules-table td:first-child{white-space:nowrap}
@media(prefers-reduced-motion:reduce){.progress-spinner{animation:none}}
@media(max-width:900px){.progress-stages{grid-template-columns:1fr;gap:8px;margin:16px 0}.progress-stages li{border-top:0;border-left:3px solid var(--line);padding:3px 0 3px 10px}.progress-stages .complete{border-left-color:var(--green)}.progress-stages .current{border-left-color:var(--blue)}.progress-heading{align-items:flex-start}.progress-footer{gap:8px}.progress-footer .muted{flex-basis:100%}.order-progress .notice{font-size:13px}}
.abnormal-status{white-space:nowrap;overflow-wrap:normal;word-break:normal}
