
/* V438P - Tax Accounting Professional */
.v438p-tax-health,
.v438p-reconcile-flow{
  margin-bottom:12px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card);
}
.v438p-health-head,
.v438p-flow-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}
.v438p-health-head>div:first-child>span,
.v438p-flow-head>div>span{
  display:block;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--muted-foreground);
}
.v438p-health-head h2,
.v438p-flow-head h3{
  margin:3px 0 0;
  font-size:13px;
}
.v438p-period{
  text-align:right;
}
.v438p-period strong{
  display:block;
  font-size:10px;
}
.v438p-period small,
.v438p-flow-head>small{
  display:block;
  margin-top:2px;
  font-size:7.5px;
  color:var(--muted-foreground);
}
.v438p-kpis{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px;
}
.v438p-kpis article{
  position:relative;
  min-height:98px;
  padding:11px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--background);
  overflow:hidden;
}
.v438p-kpis article:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;height:3px;
  background:#64748b;
}
.v438p-kpis article.payable:after{background:#f59e0b}
.v438p-kpis article.total:after{background:#2563eb}
.v438p-kpis span{
  display:block;
  font-size:7.3px;
  font-weight:750;
  color:var(--muted-foreground);
}
.v438p-kpis b{
  display:block;
  margin-top:6px;
  font-size:16px;
  line-height:1.05;
  font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;
}
.v438p-kpis small{
  display:block;
  margin-top:6px;
  font-size:6.8px;
  line-height:1.35;
  color:var(--muted-foreground);
}

.v438p-flow{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items:center;
  gap:6px;
}
.v438p-flow button{
  min-width:0;
  min-height:76px;
  padding:9px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--background);
  color:var(--foreground);
  text-align:left;
  cursor:pointer;
}
.v438p-flow button:hover{
  border-color:color-mix(in srgb,var(--brand-green) 45%,var(--border));
}
.v438p-flow button>div>span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:20px;height:20px;
  border-radius:999px;
  background:var(--muted);
  font-size:7px;
  font-weight:800;
}
.v438p-flow button strong{
  display:block;
  margin-top:6px;
  font-size:8.5px;
}
.v438p-flow button small{
  display:block;
  margin-top:3px;
  font-size:7px;
  color:var(--muted-foreground);
}
.v438p-flow button.done{
  border-color:#86efac;
  background:#f0fdf4;
}
.v438p-flow i{
  font-style:normal;
  color:var(--muted-foreground);
  font-size:14px;
}
.v438p-alert-btn{
  width:100%;
  border:0;
  cursor:pointer;
  text-align:left;
}
.v438p-alert-status{
  gap:10px!important;
}

@media(max-width:1180px){
  .v438p-kpis{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .v438p-kpis article.total{
    grid-column:span 2;
  }
}

@media(max-width:760px){
  .v409-tax-page{
    overflow-x:hidden;
  }
  .v438p-tax-health,
  .v438p-reconcile-flow{
    margin-bottom:8px;
    padding:9px;
    border-radius:10px;
  }
  .v438p-health-head,
  .v438p-flow-head{
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
    margin-bottom:8px;
  }
  .v438p-health-head h2,
  .v438p-flow-head h3{
    font-size:11px;
  }
  .v438p-period{
    text-align:left;
  }
  .v438p-period strong{
    font-size:9px;
  }
  .v438p-period small,
  .v438p-flow-head>small{
    font-size:6.8px;
  }
  .v438p-kpis{
    grid-template-columns:1fr 1fr;
    gap:6px;
  }
  .v438p-kpis article{
    min-height:90px;
    padding:9px;
  }
  .v438p-kpis article.total{
    grid-column:1/-1;
  }
  .v438p-kpis span{
    font-size:6.7px;
  }
  .v438p-kpis b{
    font-size:14px;
  }
  .v438p-kpis small{
    font-size:6.5px;
  }

  .v438p-flow{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
  }
  .v438p-flow button{
    min-height:58px;
    padding:8px 9px;
  }
  .v438p-flow button>div{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:8px;
  }
  .v438p-flow button strong,
  .v438p-flow button small{
    margin-top:0;
  }
  .v438p-flow button strong{
    font-size:8px;
  }
  .v438p-flow button small{
    text-align:right;
    font-size:6.8px;
  }
  .v438p-flow i{
    align-self:center;
    transform:rotate(90deg);
    font-size:11px;
  }

  .v411-chart-grid{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .v411-chart-card{
    padding:8px!important;
    border-radius:9px!important;
  }
  .v411-chart-card .recharts-responsive-container{
    height:205px!important;
    min-height:205px!important;
  }
  .v438p-alert-status{
    grid-template-columns:1fr!important;
    gap:7px!important;
  }
  .v438p-alert-status>section{
    padding:9px!important;
    border-radius:9px!important;
  }

  /* Tabs & tables */
  .v436-tax-tabs{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:5px!important;
    overflow:visible!important;
  }
  .v436-tax-tabs button{
    width:100%!important;
    min-width:0!important;
    min-height:34px!important;
    font-size:7.4px!important;
    white-space:normal!important;
  }
  .v409-table-wrap{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  .v409-tax-head{
    gap:8px!important;
  }
  .v409-month{
    min-width:0!important;
    width:145px!important;
  }
}

@media(max-width:390px){
  .v438p-kpis,
  .v436-tax-tabs{
    grid-template-columns:1fr!important;
  }
  .v438p-kpis article.total{
    grid-column:auto;
  }
}
