/* Fiscal & SPED — tela única baseada na identidade visual do Central Gestão */
.fiscal-hub{max-width:1440px;margin:0 auto;padding-bottom:30px;color:var(--text-primary,#172b4d)}
.fiscal-hub-header{margin-bottom:14px}
.fiscal-hub-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.fiscal-hub-tab{padding:11px 16px;border:1px solid #d5e0ed;border-radius:9px;background:#fff;color:#153052;font-weight:650;cursor:pointer}
.fiscal-hub-tab:hover{border-color:#91add4}
.fiscal-hub-tab.fiscal-hub-active{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.fiscal-hub-content{display:flex;flex-direction:column;gap:16px;width:100%;max-width:100%}
.fiscal-hub-panel{display:block;width:100%;background:var(--card-bg,#fff);border:1px solid var(--border-color,#dce4ed);border-radius:12px;padding:20px;box-shadow:0 1px 2px rgba(17,38,64,.04)}
.fiscal-hub-panel h3{margin:0 0 8px;color:var(--text-primary,#142f50);font-size:1.05rem}
.fiscal-hub-subtitle{color:#566782;font-size:.87rem;margin:0 0 15px}
.fiscal-hub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 13px}
.fiscal-hub-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.fiscal-hub-label{font-size:.82rem;font-weight:700;color:#384e6d}
.fiscal-hub-value{min-height:39px;padding:9px 11px;background:#f4f7fb;border:1px solid #e4eaf3;border-radius:9px;overflow-wrap:anywhere}
.fiscal-hub-field input,.fiscal-hub-field select{min-height:41px;width:100%}
.fiscal-hub-status{border:1px solid;border-radius:7px;padding:8px 10px;font-size:.83rem;font-weight:650}
.fiscal-hub-good{background:#effbf3;color:#166534;border-color:#b8e2c2}
.fiscal-hub-warning{background:#fff8e9;color:#935e16;border-color:#f4dba5}
.fiscal-hub-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:14px 0 0}
.fiscal-hub-actions .btn{white-space:normal;text-align:center}
.fiscal-hub-note{font-size:.84rem;color:#58677d;margin:12px 0 0;line-height:1.55}
.fiscal-hub-checkbox{display:flex;align-items:flex-start;gap:8px;font-size:.85rem;color:#384e6d;margin-top:12px}
.fiscal-hub-checkbox input{margin-top:4px}
.fiscal-hub-table-wrap{overflow-x:auto;width:100%;margin-top:12px}
.fiscal-hub-table-wrap table{width:100%;min-width:780px}
.fiscal-hub-table-wrap td{overflow-wrap:anywhere;max-width:280px;font-size:.79rem}
@media(max-width:1100px){.fiscal-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.fiscal-hub-panel{padding:14px}.fiscal-hub-grid{grid-template-columns:1fr}.fiscal-hub-tab{flex:1;min-width:115px}}


/* Padronização visual dos formulários Fiscal & SPED — 2026-10-17.
   Aplicação isolada na tela fiscal centralizada: não altera regra fiscal, dados ou botões. */
.fiscal-hub{
  box-sizing:border-box;
  width:100%;
  max-width:1440px;
  min-width:0;
  padding:0 0 28px;
}
.fiscal-hub .fiscal-hub-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px 18px;
  margin:0 0 18px;
}
.fiscal-hub .fiscal-hub-header .page-title{
  margin:0;
  color:#112d51;
  font-size:clamp(22px,2vw,29px);
  line-height:1.35;
  font-weight:750;
}
.fiscal-hub .fiscal-hub-header .page-subtitle{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.55;
  color:#607996;
}
.fiscal-hub .fiscal-hub-tabs{
  box-sizing:border-box;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0 0 19px;
  padding:7px;
  background:#ebf3fc;
  border:1px solid #ccdbed;
  border-radius:8px;
}
.fiscal-hub .fiscal-hub-tab{
  min-height:40px;
  padding:8px 15px;
  border:1px solid #c1d2e9;
  border-radius:6px;
  background:#fff;
  color:#1a3d6b;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
}
.fiscal-hub .fiscal-hub-tab.fiscal-hub-active{
  background:#2563eb;
  border-color:#2563eb;
  color:white;
}
.fiscal-hub .fiscal-hub-tab:focus-visible,
.fiscal-hub .fiscal-hub-actions .btn:focus-visible{
  outline:2px solid #2563eb;
  outline-offset:2px;
}
.fiscal-hub .fiscal-hub-content{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.fiscal-hub .fiscal-hub-panel{
  box-sizing:border-box;
  min-width:0;
  width:100%;
  margin:0;
  padding:17px 20px 19px;
  background:#fff;
  border:1px solid #bfd0e6;
  border-radius:8px;
  box-shadow:0 1px 3px rgba(18,43,78,.055);
}
.fiscal-hub .fiscal-hub-panel > h3{
  display:block;
  margin:0 0 7px;
  padding:0;
  color:#183c69;
  font-size:16px;
  font-weight:750;
  line-height:1.4;
}
.fiscal-hub .fiscal-hub-subtitle{
  margin:0 0 15px;
  padding:0 0 13px;
  border-bottom:1px solid #d5e0ee;
  font-size:12px;
  line-height:1.5;
  color:#617997;
}
.fiscal-hub .fiscal-hub-panel > p,
.fiscal-hub .fiscal-hub-panel > ol{
  max-width:100%;
  line-height:1.6;
  font-size:13px;
  color:#365575;
}
.fiscal-hub .fiscal-hub-panel > ol{
  padding-left:22px;
  margin:11px 0;
}
.fiscal-hub .fiscal-hub-grid{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px 16px;
  align-items:start;
  min-width:0;
  width:100%;
  margin:8px 0 0;
  padding:17px;
  border:1px solid #b5cae6;
  border-radius:8px;
  background:#f0f6fd;
}
.fiscal-hub .fiscal-hub-grid:has(#fh-environment){
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:1040px;
}
.fiscal-hub .fiscal-hub-grid:has(#sped-start){
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:700px;
}
.fiscal-hub .fiscal-hub-field{
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:7px;
}
.fiscal-hub .fiscal-hub-label{
  display:block;
  margin:0;
  min-height:17px;
  color:#183b69;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
}
.fiscal-hub .fiscal-hub-field .form-control,
.fiscal-hub .fiscal-hub-field input,
.fiscal-hub .fiscal-hub-field select{
  box-sizing:border-box;
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  height:42px;
  min-height:42px;
  padding:9px 12px;
  border:1px solid #b3c7e2;
  border-radius:6px;
  background:#fff;
  color:#173b67;
  font-size:13px;
  line-height:1.45;
}
.fiscal-hub .fiscal-hub-field .form-control:focus-visible{
  outline:2px solid #2969df;
  outline-offset:1px;
}
.fiscal-hub .fiscal-hub-value{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  min-width:0;
  min-height:42px;
  padding:9px 12px;
  background:#eaf2fc;
  border:1px solid #bed1e9;
  border-radius:6px;
  color:#2c4b70;
  font-size:13px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.fiscal-hub .fiscal-hub-checkbox{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:10px 0 13px;
  padding:10px 12px;
  border:1px solid #d0dfef;
  border-radius:6px;
  background:#f7fbff;
  color:#26486f;
  line-height:1.5;
  font-size:12px;
}
.fiscal-hub .fiscal-hub-checkbox input{
  width:16px;
  height:16px;
  margin:2px 0 0;
  flex:0 0 auto;
  accent-color:#2563eb;
}
.fiscal-hub .fiscal-hub-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 0;
}
.fiscal-hub .fiscal-hub-actions:has([data-fh="save"]){
  justify-content:flex-end;
  max-width:1040px;
  padding-top:15px;
  border-top:1px solid #d4e0ef;
}
.fiscal-hub .fiscal-hub-actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:39px;
  padding:8px 14px;
  border-radius:6px;
  font-size:13px;
  line-height:1.4;
  white-space:normal;
  text-align:center;
}
.fiscal-hub .fiscal-hub-note{
  margin:12px 0 0;
  padding:10px 12px;
  border:1px solid #d2e0f0;
  border-radius:6px;
  background:#f8fbff;
  color:#5e7592;
  font-size:12px;
  line-height:1.55;
}
.fiscal-hub .fiscal-hub-table-wrap{
  width:100%;
  min-width:0;
  margin:13px 0 0;
  overflow-x:auto;
  border:1px solid #d2dfee;
  border-radius:7px;
  background:#fff;
}
.fiscal-hub .fiscal-hub-table-wrap table{
  width:100%;
  min-width:700px;
  border-collapse:collapse;
}
.fiscal-hub .fiscal-hub-table-wrap th{
  padding:12px 13px;
  background:#f4f8fd;
  color:#284a70;
  border-bottom:1px solid #d2dfee;
  font-size:12px;
  font-weight:700;
  line-height:1.4;
}
.fiscal-hub .fiscal-hub-table-wrap td{
  padding:12px 13px;
  border-bottom:1px solid #edf2f8;
  font-size:12px;
  line-height:1.5;
  vertical-align:middle;
}
.fiscal-hub .fiscal-hub-table-wrap tr:last-child td{border-bottom:0}
@media(max-width:950px){
  .fiscal-hub .fiscal-hub-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:650px){
  .fiscal-hub .fiscal-hub-panel{padding:14px 12px}
  .fiscal-hub .fiscal-hub-tabs{padding:6px}
  .fiscal-hub .fiscal-hub-tab{flex:1 1 130px}
  .fiscal-hub .fiscal-hub-grid,
  .fiscal-hub .fiscal-hub-grid:has(#fh-environment),
  .fiscal-hub .fiscal-hub-grid:has(#sped-start){
    grid-template-columns:minmax(0,1fr);
    padding:12px;
    gap:12px;
  }
  .fiscal-hub .fiscal-hub-actions .btn{flex:1 1 160px}
  .fiscal-hub .fiscal-hub-table-wrap table{min-width:660px}
}


/* Fiscal & SPED — densidade profissional, com escopo exclusivo da tela fiscal.
   Nenhuma regra fiscal ou ação foi alterada. */
.fiscal-hub{
  width:100%;
  max-width:1600px;
  padding-bottom:16px;
  font-size:13px;
}
.fiscal-hub .fiscal-hub-header{
  gap:6px 12px;
  margin-bottom:9px;
}
.fiscal-hub .fiscal-hub-header .page-title{
  font-size:clamp(21px,1.9vw,25px);
  line-height:1.25;
}
.fiscal-hub .fiscal-hub-header .page-subtitle{
  margin-top:3px;
  line-height:1.35;
  font-size:12px;
}
.fiscal-hub .fiscal-hub-tabs{
  margin-bottom:12px;
  padding:5px;
  gap:6px;
}
.fiscal-hub .fiscal-hub-tab{
  min-height:35px;
  padding:6px 12px;
  font-size:12px;
}
.fiscal-hub .fiscal-hub-content{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:12px;
  align-items:start;
}
.fiscal-hub .fiscal-hub-panel{
  grid-column:1/-1;
  margin:0;
  padding:13px 16px 14px;
  min-width:0;
  border-radius:9px;
  box-shadow:0 1px 2px rgba(18,43,78,.045);
}
.fiscal-hub .fiscal-hub-panel--overview{order:0;grid-column:1/-1;}
.fiscal-hub .fiscal-hub-panel--onboarding{order:1;grid-column:span 6;}
.fiscal-hub .fiscal-hub-panel--diagnosis{order:2;grid-column:span 6;}
.fiscal-hub .fiscal-hub-panel--settings{order:3;grid-column:1/-1;}
.fiscal-hub .fiscal-hub-panel--issuer{order:4;grid-column:span 7;}
.fiscal-hub .fiscal-hub-panel--certificate{order:5;grid-column:span 5;}
.fiscal-hub .fiscal-hub-panel--invoices{order:6;grid-column:1/-1;}
.fiscal-hub .fiscal-hub-panel--operations{order:7;grid-column:span 6;}
.fiscal-hub .fiscal-hub-panel--sped{order:8;grid-column:span 6;}
.fiscal-hub .fiscal-hub-panel > h3{
  margin-bottom:4px;
  font-size:14px;
  line-height:1.35;
}
.fiscal-hub .fiscal-hub-subtitle{
  margin:0 0 10px;
  padding:0 0 7px;
  font-size:11.5px;
  line-height:1.4;
}
.fiscal-hub .fiscal-hub-panel > p,
.fiscal-hub .fiscal-hub-panel > ol{
  font-size:12px;
  line-height:1.45;
  margin-top:6px;
  margin-bottom:6px;
}
.fiscal-hub .fiscal-hub-grid{
  gap:10px 12px;
  margin-top:7px;
  padding:11px 12px;
  border-radius:7px;
  background:#f2f7fd;
}
.fiscal-hub .fiscal-hub-grid:has(#fh-environment){
  grid-template-columns:repeat(4,minmax(0,1fr));
  max-width:none;
}
.fiscal-hub .fiscal-hub-grid:has(#sped-start){
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:none;
}
.fiscal-hub .fiscal-hub-field{
  gap:4px;
}
.fiscal-hub .fiscal-hub-label{
  min-height:0;
  font-size:11.5px;
  line-height:1.3;
}
.fiscal-hub .fiscal-hub-field .form-control,
.fiscal-hub .fiscal-hub-field input,
.fiscal-hub .fiscal-hub-field select{
  height:37px;
  min-height:37px;
  padding:7px 10px;
  font-size:12px;
}
.fiscal-hub .fiscal-hub-value{
  min-height:37px;
  padding:7px 10px;
  font-size:12px;
  line-height:1.35;
}
.fiscal-hub .fiscal-hub-checkbox{
  margin:7px 0 9px;
  padding:8px 10px;
  font-size:11.5px;
  line-height:1.3;
}
.fiscal-hub .fiscal-hub-actions{
  gap:7px;
  margin:10px 0 0;
}
.fiscal-hub .fiscal-hub-actions:has([data-fh="save"]){
  max-width:none;
  padding-top:9px;
}
.fiscal-hub .fiscal-hub-actions .btn{
  min-height:35px;
  padding:7px 11px;
  font-size:11.5px;
  line-height:1.3;
}
.fiscal-hub .fiscal-hub-status{
  display:inline-flex;
  align-items:center;
  padding:5px 9px;
  border-radius:6px;
  font-size:11.5px;
  line-height:1.3;
}
.fiscal-hub .fiscal-hub-note{
  margin:9px 0 0;
  padding:8px 10px;
  font-size:11.5px;
  line-height:1.4;
}
.fiscal-hub .fiscal-hub-panel--onboarding .fiscal-hub-actions,
.fiscal-hub .fiscal-hub-panel--diagnosis .fiscal-hub-actions{
  margin-top:7px;
}
.fiscal-hub .fiscal-hub-table-wrap{
  margin-top:10px;
  border-radius:6px;
}
.fiscal-hub .fiscal-hub-table-wrap table{
  min-width:690px;
}
.fiscal-hub .fiscal-hub-table-wrap th{
  padding:8px 10px;
  font-size:11px;
  line-height:1.3;
}
.fiscal-hub .fiscal-hub-table-wrap td{
  padding:7px 10px;
  font-size:11.5px;
  line-height:1.3;
}
.fiscal-hub .fiscal-hub-table-wrap tr[hidden]{
  display:none!important;
}
.fiscal-hub .fiscal-hub-details{
  margin-top:6px;
  border:1px solid #cfdeee;
  background:#f8fbff;
  border-radius:6px;
  color:#355476;
}
.fiscal-hub .fiscal-hub-details > summary{
  padding:8px 10px;
  cursor:pointer;
  color:#205087;
  font-size:12px;
  font-weight:650;
}
.fiscal-hub .fiscal-hub-details[open] > summary{
  border-bottom:1px solid #d8e3f0;
}
.fiscal-hub .fiscal-hub-details-body{
  padding:7px 13px 9px;
  font-size:12px;
  line-height:1.45;
}
.fiscal-hub .fiscal-hub-details-body p,
.fiscal-hub .fiscal-hub-details-body ol{
  margin:5px 0 7px;
}
.fiscal-hub .fiscal-hub-details-body ol{
  padding-left:18px;
}
.fiscal-hub .fiscal-hub-expand{
  margin-top:8px;
  border:1px solid #bfd0e6;
  background:#f3f8ff;
  color:#1e4c83;
  font-size:11.5px;
  font-weight:650;
  border-radius:6px;
  padding:7px 11px;
  cursor:pointer;
}
.fiscal-hub .fiscal-hub-expand:hover{
  background:#e7f1ff;
}
.fiscal-hub .fiscal-hub-expand:focus-visible,
.fiscal-hub .fiscal-hub-details summary:focus-visible{
  outline:2px solid #2563eb;
  outline-offset:2px;
}
.fiscal-hub-shortcuts{
  margin-top:12px!important;
  border-color:#bed3eb!important;
  border-radius:9px;
}
.fiscal-hub-shortcuts .card-header{
  padding:10px 14px!important;
  min-height:0;
  gap:7px 12px!important;
  font-size:12px;
}
.fiscal-hub-shortcuts .card-header > div{
  gap:6px!important;
}
.fiscal-hub-shortcuts .btn{
  min-height:33px;
  padding:6px 10px;
  font-size:11.5px;
}
@media(max-width:1280px){
  .fiscal-hub .fiscal-hub-grid:has(#fh-environment){
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:1080px){
  .fiscal-hub .fiscal-hub-panel--onboarding,
  .fiscal-hub .fiscal-hub-panel--diagnosis,
  .fiscal-hub .fiscal-hub-panel--issuer,
  .fiscal-hub .fiscal-hub-panel--certificate,
  .fiscal-hub .fiscal-hub-panel--operations,
  .fiscal-hub .fiscal-hub-panel--sped{
    grid-column:1/-1;
  }
}
@media(max-width:680px){
  .fiscal-hub .fiscal-hub-content{gap:9px;}
  .fiscal-hub .fiscal-hub-panel{padding:12px;}
  .fiscal-hub .fiscal-hub-grid,
  .fiscal-hub .fiscal-hub-grid:has(#fh-environment),
  .fiscal-hub .fiscal-hub-grid:has(#sped-start){
    grid-template-columns:minmax(0,1fr);
    padding:9px;
    gap:9px;
  }
  .fiscal-hub .fiscal-hub-tab{flex:1 1 140px;}
  .fiscal-hub .fiscal-hub-actions .btn{flex:1 1 150px;}
  .fiscal-hub .fiscal-hub-panel--invoices .fiscal-hub-actions .btn{flex:1 1 auto;}
}

