:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#173449;background:#f3f6f8}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}button,input{font:inherit}button,a,input{outline-offset:3px}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #5ac5ad}.sidebar{width:286px;background:#133247;color:#d5e7ed;padding:30px 20px;flex-shrink:0;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:10px;color:white;font-weight:800;font-size:22px;letter-spacing:2px;text-decoration:none}.brand span{font-size:10px;color:#a0e7d5;background:#225347;padding:5px 7px;border-radius:4px}.nav-caption{font-size:10px;letter-spacing:1.6px;margin:32px 0 15px;color:#9bb6c5}.sidebar button{border:0;background:transparent;color:inherit;text-align:left;padding:11px 12px;border-radius:6px;width:100%;font-size:13px}.sidebar button:hover,.sidebar button.active{background:#245065;color:white}.sidebar .home-button{background:#1c806f;color:white;font-weight:650;margin-bottom:24px}.search-label{display:block;font-size:12px;margin-bottom:8px}.sidebar input{width:100%;padding:11px;border:1px solid #496575;border-radius:6px;background:#1c4055;color:white;margin-bottom:20px}.sidebar input::placeholder{color:#adc4cf}nav details{margin:8px 0}nav summary{padding:10px 6px;cursor:pointer;font-weight:650;font-size:13px}nav details details{margin:0 0 0 8px}nav details details summary{color:#9bd7c8;font-size:12px}nav details button{padding-left:18px}.sidebar #refresh{border:1px solid #496575;margin-top:24px;font-size:12px;text-align:center}.workspace{flex:1;min-width:0;display:flex;flex-direction:column}header{background:white;border-bottom:1px solid #dde6ec;padding:24px 38px;display:flex;justify-content:space-between;align-items:center;gap:20px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:#1a8875}h1{font-size:25px;margin:8px 0}h2{font-size:22px}.account{display:flex;align-items:center;gap:18px;font-size:13px}.account button{border:1px solid #cbd9e1;background:white;color:#24495e;padding:10px 18px;border-radius:6px}main{padding:28px 38px;flex:1;max-width:1450px;width:100%;margin:0 auto}#status{font-size:13px;color:#647c8a}#status:empty{display:none}.welcome{background:#e7f2ef;border:1px solid #cfE4dc;padding:35px;border-radius:12px;margin:22px 0 32px}.welcome h2{font-size:32px;letter-spacing:-.8px}.welcome>p:not(.eyebrow){color:#476578;line-height:1.6}.context{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.context span{padding:9px 14px;border-radius:5px;background:white;font-size:13px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-heading span{font-size:12px;color:#6b8190}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.cards button{background:white;border:1px solid #dce6eb;border-radius:9px;padding:22px;text-align:left;color:#173449;min-height:100px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600;line-height:1.5}.cards button:hover{border-color:#168b75;box-shadow:0 4px 18px #1734490a}.cards button span{color:#158570}.detail{background:white;padding:30px;border:1px solid #dae5eb;border-radius:10px;margin-top:22px}.permissions{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.permissions span{font-size:12px;padding:7px 12px;background:#e8f4ef;color:#196850;border-radius:5px}.module-note{color:#677f8d;line-height:1.6}footer{padding:18px 38px;border-top:1px solid #dde6ec;display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#6a8090}#nav-empty{font-size:13px;color:#b6ccd5}[hidden]{display:none!important}@media(max-width:950px){.sidebar{width:240px;padding:24px 14px}header,main{padding:22px}.account{align-items:flex-end;flex-direction:column;gap:8px}.welcome{padding:24px}.welcome h2{font-size:26px}}@media(max-width:650px){body{display:block}.sidebar{width:100%;height:auto;position:static;padding:20px}.nav-caption{margin:20px 0 10px}.sidebar .home-button{margin-bottom:16px}#menus{max-height:300px;overflow:auto}header{align-items:flex-start}h1{font-size:21px}main{padding:18px}.context{flex-direction:column}footer{padding:18px;flex-wrap:wrap}}
.seller{background:white;border:1px solid #d9e5e9;border-radius:12px;padding:26px;margin:22px 0}.seller-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.seller h2{margin:8px 0}.seller-name{color:#617d89;font-size:13px}.seller-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.seller label{display:grid;gap:5px;font-size:12px}.seller button,.seller select,.seller input,.welcome>button,.seller-help button{font:inherit;border:1px solid #c6d7dd;border-radius:6px;padding:9px 11px;background:white;color:#173449}.seller input{width:90px}.seller-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:22px 0}.seller-stats button{display:grid;gap:9px;text-align:left;background:#f3f8f6}.seller-stats button:hover{border-color:#168b75}.seller-stats span,.seller-stats small{font-size:12px}.seller-stats strong{font-size:26px;color:#177866}.seller-next{padding:12px;background:#eef5fa;border-radius:6px;font-size:13px}.seller-table{overflow-x:auto;margin-top:16px}.seller table{border-collapse:collapse;width:100%;font-size:13px}.seller td,.seller th{padding:12px 8px;text-align:left;border-bottom:1px solid #e4ecee}.seller th{font-size:12px;color:#536e7c}.seller-pages{display:flex;justify-content:end;align-items:center;gap:12px;margin-top:16px;font-size:12px}.seller-note{font-size:12px;color:#667f8b;line-height:1.6}.seller button:disabled{opacity:.5;cursor:default}.seller-help{max-width:640px;border:1px solid #c6d7dd;border-radius:12px;padding:28px;color:#173449;line-height:1.7}.seller-help::backdrop{background:#12324766}@media(max-width:1100px){.seller-heading{flex-direction:column}.seller-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.seller{padding:16px}.seller-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.about-link{display:block;margin-top:26px;padding:10px 12px;border-top:1px solid #496575;color:#b9d4dd;text-decoration:none;font-size:12px}.about-link:hover{color:white;text-decoration:underline}
.home-help{max-width:min(680px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;border:1px solid #cbdde2;border-radius:12px;padding:28px;color:#173449;background:white;line-height:1.7;box-shadow:0 18px 60px #102c3d33}.home-help::backdrop{background:#12324780}.home-help h2{margin-top:0}.home-help p{color:#476578}.home-help button{border:1px solid #b7d2ca;border-radius:6px;background:#eff8f5;color:#146c60;padding:10px 16px}.home-help button:hover{background:#dff1ec}

.seller .seller-number{display:inline-block;padding:8px 12px;border:1px solid #126653;border-radius:6px;background:#167d6b;color:#fff;font-weight:600;text-decoration:none;white-space:nowrap}.seller a.seller-number:hover{background:#126653;color:#fff}.seller a.seller-number:focus-visible{outline:3px solid #57bca7;outline-offset:2px}

.importar-tela.home-help { width: min(960px, calc(100vw - 48px)); max-width: 960px; }
#importar-modelos { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
#importar-modelos label { display: grid; gap: 6px; }
.importar-grade { overflow: auto; max-height: 45vh; margin-bottom: 16px; }
.importar-grade table { border-collapse: collapse; width: 100%; }
.importar-grade th, .importar-grade td { padding: 8px; text-align: left; border-bottom: 1px solid #d9e4ef; }
.monitor-nfe.home-help { width: min(1100px, calc(100vw - 32px)); max-width: 1100px; }
.monitor-nfe-controles { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 14px 0; }
.monitor-nfe-controles label { display: grid; gap: 4px; }
.monitor-nfe select, .monitor-nfe input { font: inherit; max-width: 100%; padding: 6px; }
.monitor-nfe td:last-child { font-family: monospace; }
.monitor-nfe button:disabled { opacity: .55; cursor: default; }

/* Importação: seções visíveis e separadores entre os tipos de arquivo. */
#importar-tela .importar-secao{border:0;border-top:1px solid #cbdde2;border-radius:0;padding:20px 0;margin:0;background:transparent}
#importar-tela h3{margin:0 0 8px;font-size:16px;color:#173449}
#importar-tela .importar-secao p{margin:0 0 14px;font-size:13px}
#importar-tela .importar-campos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end;margin-top:12px}
#importar-tela label{display:grid;gap:6px;font-size:13px;min-width:0}
#importar-tela input,#importar-tela select{font:inherit;width:100%;min-width:0;max-width:100%;padding:9px;border:1px solid #b8cdd6;border-radius:5px;background:#fff}
#importar-tela input[type=file]{font-size:12px;background:#f5f8fa}
#importar-tela .importar-campos>button{justify-self:start;align-self:end}
#importar-tela .importar-campos>form{display:grid;gap:12px;align-content:start;min-width:0}
#importar-tela .importar-campos>form>button{justify-self:start}
#importar-tela .importar-nota{grid-column:1/-1}
#importar-tela .importar-botoes{display:flex;flex-wrap:wrap;gap:10px}
#importar-status{padding:12px;background:#eef6f4;border:1px solid #c8ded7;border-radius:5px;overflow-wrap:anywhere}
#importar-tela .importar-grade{max-height:340px;border:1px solid #d9e4ef;border-radius:5px}
#importar-tela .importar-grade table{font-size:12px;line-height:1.45;min-width:850px}
#importar-tela .importar-grade th{position:sticky;top:0;background:#edf3f6;z-index:1}
#importar-tela .importar-grade td{padding:8px;white-space:nowrap}
#importar-tela .importar-grade tbody tr:nth-child(even){background:#f7fafb}
#importar-tela>form[method=dialog]{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #cbdde2;padding-top:16px}
@media(max-width:650px){#importar-tela .importar-campos{grid-template-columns:1fr}.importar-tela.home-help{width:calc(100vw - 20px);padding:18px}}
