/* Central de módulos: visual da referência aprovado. Escopo exclusivo da home. */
body.module-home,body.module-home>main{background:#101827;min-height:100vh}
body.module-home #dashboard .module-hub-heading>p{color:#b8c5d6}
body.module-home #dashboard #moduleCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.module-home #dashboard #moduleCards>.module-card{
  --card-accent:#22c3f3;--card-icon-bg:#203c50;
  min-width:0;min-height:192px;padding:15px;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;
  border:1px solid #334155;border-radius:15px;background:#1c2636;color:#f7f9fc;
  font-family:Inter,'DM Sans',Arial,sans-serif;text-align:left;text-decoration:none;
  box-shadow:none;transition:border-color .18s,background .18s,transform .18s;
}
body.module-home #dashboard #moduleCards>.module-card[hidden]{display:none!important}
body.module-home #dashboard #moduleCards>.module-card:hover{background:#223047;border-color:var(--card-accent);transform:translateY(-2px)}
body.module-home #dashboard #moduleCards>.module-card:focus-visible{outline:2px solid var(--card-accent);outline-offset:3px}
body.module-home #dashboard #moduleCards>.module-card.commissions{--card-accent:#a78bfa;--card-icon-bg:#34334f}
body.module-home #dashboard #moduleCards>.module-card.expenses{--card-accent:#ffba16;--card-icon-bg:#3d3d36}
body.module-home #dashboard #moduleCards>.module-card.field-team{--card-accent:#34d399;--card-icon-bg:#203f42}
body.module-home #dashboard #moduleCards>.module-card.hr{--card-accent:#f472b6;--card-icon-bg:#3c304a}
body.module-home #dashboard #moduleCards>.module-card.payments{--card-accent:#43df88;--card-icon-bg:#203f42}
body.module-home #dashboard #moduleCards>.module-card.licitacoes{--card-accent:#22d3ee;--card-icon-bg:#203c50}
body.module-home #dashboard #moduleCards>.module-card.overview{--card-accent:#60a5fa;--card-icon-bg:#243a55}
body.module-home #dashboard #moduleCards>.module-card.settings-card{--card-accent:#94a3b8;--card-icon-bg:#303c4d}
body.module-home #dashboard #moduleCards .module-icon{
  display:grid;place-items:center;width:50px;height:50px;flex:none;border-radius:10px;
  background:var(--card-icon-bg);color:var(--card-accent)
}
body.module-home #dashboard #moduleCards .module-icon svg{width:24px;height:24px;display:block}
body.module-home #dashboard #moduleCards .module-card>span:nth-child(2){width:100%;min-width:0}
body.module-home #dashboard #moduleCards .module-card strong{display:block;font:700 16px/1.4 Inter,'DM Sans',Arial,sans-serif;color:#f7f9fc;overflow-wrap:anywhere}
body.module-home #dashboard #moduleCards .module-card small{display:block;margin-top:9px;color:#e0e7f0;font:400 16px/1.4 Inter,'DM Sans',Arial,sans-serif;overflow-wrap:anywhere}
body.module-home #dashboard #moduleCards .module-card>i{display:flex;align-items:center;justify-content:center;align-self:flex-end;margin-top:auto;color:var(--card-accent);width:20px;height:20px;flex:none}
body.module-home #dashboard #moduleCards .module-card>i svg{width:17px;height:17px}
@media(max-width:860px){body.module-home #dashboard #moduleCards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){
 body.module-home #dashboard #moduleCards{grid-template-columns:minmax(0,1fr)}
 body.module-home #dashboard #moduleCards>.module-card{min-height:156px}
}
@media(prefers-reduced-motion:reduce){body.module-home #dashboard #moduleCards>.module-card{transition:none;transform:none}}

/* Submenus: mesmo padrao visual da home, sem alterar a navegacao. */
body.authenticated:has(#dashboard.active #moduleDrawer:not([hidden])){background:#101827}
body.authenticated:has(#dashboard.active #moduleDrawer:not([hidden]))>main{background:#101827;min-height:100vh}
#dashboard #moduleDrawer{background:transparent;border:0;padding:0;border-radius:15px}
#dashboard #moduleDrawer .module-drawer-head{margin-bottom:16px}
#dashboard #moduleDrawer .module-drawer-head h2{font:700 22px/1.3 Inter,'DM Sans',Arial,sans-serif;color:#f7f9fc}
#dashboard #moduleDrawer .module-drawer-head p:last-child{color:#b8c5d6;font-size:14px}
#dashboard #moduleDrawer .module-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#dashboard #moduleDrawer .module-action{
 --card-accent:#22c3f3;--card-icon-bg:#203c50;
 display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;
 min-height:192px;min-width:0;padding:15px;text-align:left;
 border:1px solid #334155;border-radius:15px;background:#1c2636;color:#f7f9fc;
 box-shadow:none;font-family:Inter,'DM Sans',Arial,sans-serif;transition:border-color .18s,background .18s,transform .18s;
}
#dashboard #moduleDrawer .module-action[hidden]{display:none!important}
#dashboard #moduleDrawer .module-action:hover{background:#223047;border-color:var(--card-accent);transform:translateY(-2px)}
#dashboard #moduleDrawer .module-action:focus-visible{outline:2px solid var(--card-accent);outline-offset:3px}
#dashboard #moduleDrawer .action-tasks,#dashboard #moduleDrawer .action-measurements{--card-accent:#60a5fa;--card-icon-bg:#243a55}
#dashboard #moduleDrawer .action-contracts,#dashboard #moduleDrawer .action-commissions,#dashboard #moduleDrawer .action-commission_rules{--card-accent:#a78bfa;--card-icon-bg:#34334f}
#dashboard #moduleDrawer .action-team,#dashboard #moduleDrawer .action-intermittents,#dashboard #moduleDrawer .action-payment_summary{--card-accent:#34d399;--card-icon-bg:#203f42}
#dashboard #moduleDrawer .action-expenses{--card-accent:#ffba16;--card-icon-bg:#3d3d36}
#dashboard #moduleDrawer .action-hr{--card-accent:#f472b6;--card-icon-bg:#3c304a}
#dashboard #moduleDrawer .action-reference_lists,#dashboard #moduleDrawer .action-users{--card-accent:#94a3b8;--card-icon-bg:#303c4d}
#dashboard #moduleDrawer .module-action>.module-action-icon{display:grid;place-items:center;width:50px;height:50px;flex:none;border-radius:10px;background:var(--card-icon-bg);color:var(--card-accent)}
#dashboard #moduleDrawer .module-action-icon svg{display:block;width:24px;height:24px}
#dashboard #moduleDrawer .module-action>span:nth-child(2){width:100%;min-width:0}
#dashboard #moduleDrawer .module-action strong{display:block;font:700 16px/1.4 Inter,'DM Sans',Arial,sans-serif;color:#f7f9fc;overflow-wrap:anywhere}
#dashboard #moduleDrawer .module-action small{display:block;margin-top:9px;color:#e0e7f0;font:400 16px/1.4 Inter,'DM Sans',Arial,sans-serif;overflow-wrap:anywhere}
#dashboard #moduleDrawer .module-action>i{display:flex;align-items:center;justify-content:center;align-self:flex-end;margin: auto 0 0;color:var(--card-accent);width:20px;height:20px;flex:none}
#dashboard #moduleDrawer .module-action>i svg{width:17px;height:17px}
@media(max-width:860px){#dashboard #moduleDrawer .module-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#dashboard #moduleDrawer .module-actions{grid-template-columns:minmax(0,1fr)}#dashboard #moduleDrawer .module-action{min-height:156px}}
@media(prefers-reduced-motion:reduce){#dashboard #moduleDrawer .module-action{transition:none;transform:none}}

/* Indicadores e cards financeiros: superfícies e tipografia comuns,
   mantendo layout de dados, filtros e sinalização semântica. */
#managerOverview .metric,#listPage .expense-stat,#listPage .payment-summary-card,#listPage .payment-payee-card{
 background:#1c2636;border:1px solid #334155;border-radius:15px;color:#f7f9fc;box-shadow:none;
}
#managerOverview .metric p,#managerOverview .metric small,#listPage .expense-stat small,#listPage .expense-stat em,
#listPage .payment-summary-card small,#listPage .payment-summary-card span,#listPage .payment-payee-card-head small{color:#cbd5e1;font-size:11px;line-height:1.45}
#managerOverview .metric strong,#listPage .payment-summary-card strong,#listPage .expense-stat strong{
 color:#f7f9fc;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere;line-height:1.25
}
#managerOverview .metric-icon,#listPage .expense-stat-icon,#listPage .payment-payee-avatar{border-radius:10px}
#listPage .expense-stat:hover,#listPage .expense-stat.active{background:#223047;border-color:#38bdf8}
#listPage .expense-stat:focus-visible{outline:2px solid #38bdf8;outline-offset:2px}
#listPage .payment-summary-card.overdue strong{color:#fca5a5}
#listPage .payment-summary-card.paid strong{color:#86efac}
#listPage .payment-summary-card.total strong{color:#7dd3fc}
#listPage .payment-summary-card.commissions strong{color:#c4b5fd}
#listPage .payment-summary-card.advances strong{color:#fcd34d}
#listPage .payment-summary-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media(max-width:1000px){#listPage .payment-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){#listPage .payment-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#listPage .payment-summary-cards{grid-template-columns:minmax(0,1fr)}}
