/* =========================================================================
   M10 ICE — tema visual (override premium "gelo/frio")
   Carregado DEPOIS do CoreUI (Vite no autenticado, mix no login) — vence por
   ordem + seletor. CoreUI 3 grava cor hardcoded no compilado, então aqui a
   troca é por SELETOR de classe, não por custom property.
   Fonte da verdade da identidade M10 ICE. Trocar a marca => public/images/logo*.svg
   ========================================================================= */
:root {
  --m10-navy:        #0b2a4a;  /* base da sidebar (navy glacial) */
  --m10-navy-2:      #103e6b;  /* topo do gradiente da sidebar   */
  --m10-primary:     #0c86e8;  /* azul glacial — ações/links     */
  --m10-primary-600: #0a6dc0;  /* hover/pressed                  */
  --m10-primary-700: #085aa0;
  --m10-cyan:        #38bdf8;  /* acento frost (glow/realce)     */
  --m10-frost:       #f3f8fc;  /* fundo da página (branco frio)  */
  --m10-frost-100:   #e8f2fb;
  --m10-ink:         #0f2942;  /* texto/títulos                  */
  --m10-muted:       #5b7186;
  --m10-border:      #dce8f2;
  --m10-shadow:      0 1px 2px rgba(15,41,66,.06), 0 4px 16px rgba(15,41,66,.06);
  --m10-shadow-lg:   0 10px 40px rgba(11,42,74,.16);
}

/* ---- base / tipografia ------------------------------------------------- */
body, .c-app {
  background-color: var(--m10-frost) !important;
  color: var(--m10-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { color: var(--m10-ink); letter-spacing: -.01em; }
a { color: var(--m10-primary); }
a:hover { color: var(--m10-primary-600); }

/* ---- SIDEBAR (navy glacial + frost glow no ativo) ---------------------- */
.c-sidebar {
  background: linear-gradient(178deg, var(--m10-navy-2) 0%, var(--m10-navy) 60%, #071e38 100%) !important;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
}
.c-sidebar .c-sidebar-brand {
  background: rgba(255,255,255,.04) !important;
  flex-basis: 112px !important; height: 112px !important;   /* Lucas 2026-07-20: logo maior no desktop (tem mt detalhe) */
}
.c-sidebar .c-sidebar-brand-full { width: 96px !important; height: auto; }
.c-sidebar .c-sidebar-nav-link,
.c-sidebar .c-sidebar-nav-dropdown-toggle { color: #c7d9ea; font-weight: 500; }
.c-sidebar .c-sidebar-nav-link:hover,
.c-sidebar .c-sidebar-nav-dropdown-toggle:hover {
  color: #fff; background: rgba(56,189,248,.10);
}
.c-sidebar .c-sidebar-nav-icon { color: #7fb2dc; }
.c-sidebar .c-sidebar-nav-link:hover .c-sidebar-nav-icon,
.c-sidebar .c-sidebar-nav-link.c-active .c-sidebar-nav-icon { color: var(--m10-cyan); }
/* item ativo: barra frost + fundo glacial */
.c-sidebar .c-sidebar-nav-link.c-active,
.c-sidebar .c-active.c-sidebar-nav-dropdown-toggle {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(12,134,232,.55), rgba(12,134,232,.14)) !important;
  box-shadow: inset 3px 0 0 var(--m10-cyan);
}
.c-sidebar .c-sidebar-nav-dropdown.c-show > .c-sidebar-nav-dropdown-toggle { background: rgba(255,255,255,.05); color:#fff; }
/* botão de recolher a sidebar (desktop) — troca o chevron cinza padrão do
   CoreUI (SVG embutido, cor fixa #8a93a2, destoava do tema navy/frost) por
   um ícone bi- próprio, com a mesma linguagem visual dos itens do menu. */
.c-sidebar .c-sidebar-minimizer {
  background-color: transparent !important;
  border-top: 1px solid rgba(255,255,255,.06);
  align-items: center; justify-content: center !important;
  transition: background-color .15s ease;
}
.c-sidebar .c-sidebar-minimizer:before { content: none !important; }
.c-sidebar .c-sidebar-minimizer:hover { background-color: rgba(56,189,248,.10) !important; }
.m10-minimizer-icon {
  color: #c7d9ea; font-size: 1.05rem; transition: transform .25s ease, color .15s ease;
}
.c-sidebar .c-sidebar-minimizer:hover .m10-minimizer-icon { color: #fff; }
.c-sidebar.c-sidebar-minimized .m10-minimizer-icon { transform: rotate(180deg); }

/* ---- HEADER (barra branca coesa, conectada à sidebar) ------------------ */
.c-header {
  background: #fff !important;
  border-bottom: 1px solid var(--m10-border) !important;
  box-shadow: 0 1px 12px rgba(15,41,66,.04);
  min-height: 60px;
  padding: 0 1rem !important;
  align-items: center;
  position: relative;   /* âncora da logo central no mobile */
}
.c-header .c-header-nav-link { color: var(--m10-muted); }

/* ---- SUBHEADER / BREADCRUMB — trilha secundária, subordinada ao h1 -----
   O h1 do header já diz "você está aqui". O breadcrumb vira só a TRILHA
   ("como você chegou"). Regras:
   - página de TOPO (1 item só, ex.: Início) = eco do h1 -> some, e a faixa
     inteira colapsa (sem banda vazia de 48px).
   - tela interna (2+ itens) = trilha real -> aparece, pequena e muted. */
.c-subheader {
  border-top: 0 !important;
  background: transparent;
  min-height: 0;                 /* mata a banda fantasma de 48px do CoreUI */
  padding: 0 1rem !important;
  align-items: center;
}
/* colapsa a faixa toda quando o breadcrumb tem 1 item só (eco do h1):
   zera padding do subheader E do <ol> interno (o <ol> permanece no DOM, só
   o <li> some — então o padding dele criava uma banda fantasma de ~13px) */
.c-subheader:has(.breadcrumb-item:only-child) {
  padding: 0 !important; min-height: 0; border: 0 !important;
}
.c-subheader:has(.breadcrumb-item:only-child) .breadcrumb {
  padding: 0 !important; margin: 0 !important;
}
.c-subheader .breadcrumb-item:only-child { display: none; }

/* breadcrumb como caminho secundário: pequeno, muted, separador ">" */
.c-subheader .breadcrumb {
  margin: 0; padding: .4rem 0; background: transparent;
  border: 0 !important; border-radius: 0;
  font-size: .8rem; line-height: 1;
}
.c-subheader .breadcrumb-item,
.c-subheader .breadcrumb-item a { color: var(--m10-muted); }
.c-subheader .breadcrumb-item a:hover { color: var(--m10-primary); text-decoration: none; }
.c-subheader .breadcrumb-item.active { color: var(--m10-ink); font-weight: 600; }
/* separador ">" discreto no lugar do "/" do CoreUI */
.c-subheader .breadcrumb-item + .breadcrumb-item::before {
  content: "›"; color: var(--m10-muted); opacity: .7;
  padding: 0 .4rem;
}
.c-footer {
  background: transparent; border-top: 1px solid var(--m10-border);
  color: var(--m10-muted);
}

/* ---- BOTÕES ------------------------------------------------------------ */
.btn-primary {
  background: linear-gradient(180deg, var(--m10-primary) 0%, var(--m10-primary-600) 100%) !important;
  border-color: var(--m10-primary-600) !important; color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(180deg, var(--m10-primary-600), var(--m10-primary-700)) !important;
  box-shadow: 0 4px 14px rgba(12,134,232,.35) !important;
}
.btn-primary:disabled, .btn-primary.disabled { background: var(--m10-primary) !important; opacity:.55; }
.btn-info {
  background-color: var(--m10-cyan) !important; border-color: var(--m10-cyan) !important; color:#053049 !important;
}
.btn-outline-primary { color: var(--m10-primary) !important; border-color: var(--m10-primary) !important; }
.btn-outline-primary:hover { background: var(--m10-primary) !important; color:#fff !important; }
.btn-link { color: var(--m10-primary); }
.btn-pill { border-radius: 50rem; }

/* ---- BADGES / TEXTO / FUNDOS ------------------------------------------ */
.badge-primary { background-color: var(--m10-primary) !important; }
.badge-info    { background-color: var(--m10-cyan) !important; color:#053049 !important; }
.text-primary  { color: var(--m10-primary) !important; }
.text-info     { color: var(--m10-primary) !important; }
.bg-primary    { background-color: var(--m10-primary) !important; }
.bg-info       { background-color: var(--m10-cyan) !important; }

/* ---- CARDS ------------------------------------------------------------- */
.card {
  border: 1px solid var(--m10-border);
  border-radius: 14px;
  box-shadow: var(--m10-shadow);
  background: #fff;
}
.card .card-header {
  background: #fff; border-bottom: 1px solid var(--m10-border);
  border-top-left-radius: 14px; border-top-right-radius: 14px;
  font-weight: 600; color: var(--m10-ink);
}
/* faixa de destaque nos cards de KPI (bg-* já recebe a cor nova) */

/* ---- FORMULÁRIOS ------------------------------------------------------- */
.form-control, .custom-select {
  border-color: var(--m10-border);
  border-radius: 8px;
}
.form-control:focus, .custom-select:focus,
.select2-container--default.select2-container--focus .select2-selection {
  border-color: var(--m10-primary) !important;
  box-shadow: 0 0 0 .18rem rgba(12,134,232,.18) !important;
}
.input-group-text { background: var(--m10-frost-100); border-color: var(--m10-border); color: var(--m10-muted); }

/* ---- TABELAS ----------------------------------------------------------- */
.table thead th {
  text-transform: uppercase; font-size: .72rem; letter-spacing: .04em;
  color: var(--m10-muted); border-bottom: 2px solid var(--m10-border); font-weight: 700;
}
.table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: var(--m10-frost-100); }

/* ---- PAGINAÇÃO --------------------------------------------------------- */
.page-item.active .page-link { background-color: var(--m10-primary); border-color: var(--m10-primary); }
.page-link { color: var(--m10-primary); }

/* =========================================================================
   LOGIN / auth — atmosfera glacial
   ========================================================================= */
body.m10-auth {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(56,189,248,.28), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(12,134,232,.22), transparent 55%),
    linear-gradient(160deg, #0b2a4a 0%, #0f3a63 45%, #0a5fb8 100%) !important;
  position: relative;
}
body.m10-auth::before {                    /* textura frost sutil */
  content:""; position: fixed; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px);
  background-size: 26px 26px; opacity: .5;
}
body.m10-auth .container { position: relative; z-index: 1; }
body.m10-auth .card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.6) !important;
  border-radius: 18px !important;
  box-shadow: var(--m10-shadow-lg) !important;
  backdrop-filter: blur(4px);
}
body.m10-auth .card h1 { font-size: 1.6rem; font-weight: 800; color: var(--m10-ink); }
body.m10-auth .lead, body.m10-auth .text-center.mt-5 { color: rgba(255,255,255,.85) !important; }
body.m10-auth .input-group-text { background:#fff; }

/* =========================================================================
   MOBILE / RESPONSIVO — frente `mobile` (2026-07-20)
   Achados reais via QA de navegador (375x667 e 390x844), medidos por
   geometria DOM antes de qualquer fix — não é achismo. Regras SÓ adicionam
   ao que a fundação/preço já definiram acima; nada foi reescrito.
   ========================================================================= */

/* ---- indicador de scroll horizontal em toda tabela responsiva ---------
   As DataTables (Produtos/Clientes/Vendas/...) e as tabelas do PDV têm
   .table-responsive (overflow-x:auto do Bootstrap) — o scroll já existe e
   NÃO vaza pro body, mas sem nenhuma pista visual o vendedor não descobre
   que dá pra arrastar e perde colunas inteiras (Preço/Estoque/Ações). */
.table-responsive { position: relative; }
.table-responsive::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; width: 22px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(15,41,66,.10));
  pointer-events: none;
}
@media (min-width: 992px) {
  .table-responsive::after { display: none; } /* desktop: tabela já cabe, sem sombra */
}

@media (max-width: 767.98px) {
  /* compacta um pouco as células pra caber mais colunas antes de precisar rolar */
  .table td, .table th { padding: .55rem .5rem; font-size: .82rem; }
}

/* ---- tabelas de RESUMO (label + valor, 2 colunas) do PDV ---------------
   Achado real: a tabela de Imposto/Desconto/Frete/Total no carrinho e no
   modal de checkout media ~990px de largura mesmo tendo só 2 colunas
   curtas (table-layout:auto deixando o th esticar). table-layout:fixed
   trava as colunas em 100% do card, sem depender da causa exata. */
.pdv-summary-table { table-layout: fixed; width: 100% !important; }
.pdv-summary-table th, .pdv-summary-table td { word-break: break-word; }

/* ---- carrinho do PDV — tabela de itens vira "cards" em telas pequenas -
   Achado real: Produto/Preço/Quantidade/Ações somava ~990px; em 375-390px
   só a coluna Produto ficava visível, sem indicação de scroll — o
   vendedor não via preço nem conseguia tocar em remover/ajustar
   quantidade. Empilha cada linha como um cartão com rótulo antes do valor
   (usa os data-label já adicionados no blade). */
@media (max-width: 575.98px) {
  .pdv-cart-table thead { display: none; }
  .pdv-cart-table, .pdv-cart-table tbody, .pdv-cart-table tr, .pdv-cart-table td {
    display: block; width: 100%;
  }
  .pdv-cart-table tr {
    margin-bottom: .6rem; padding: .6rem .75rem;
    border: 1px solid var(--m10-border); border-radius: 10px;
  }
  .pdv-cart-table tr:last-child { margin-bottom: 0; }
  .pdv-cart-table td {
    text-align: right; padding: .3rem 0 .3rem 42%; position: relative; border: none;
  }
  .pdv-cart-table td[data-label]::before {
    content: attr(data-label);
    position: absolute; left: 0; text-align: left;
    font-weight: 700; font-size: .72rem; text-transform: uppercase;
    letter-spacing: .03em; color: var(--m10-muted);
  }
  .pdv-cart-table td[data-label="Produto"] { text-align: left; padding-left: 0; }
  .pdv-cart-table td[data-label="Produto"]::before { position: static; display: block; margin-bottom: .15rem; }
  /* linha "carrinho vazio" (colspan, sem data-label) não deve virar card */
  .pdv-cart-table td[colspan] { text-align: center; padding: .3rem 0; border: none; }
}

/* ---- alvo de toque confortável nos ícones de ação (a11y 2.5.8) --------- */
.pdv-cart-remove {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
}

/* ---- modal de checkout do PDV — botão Confirmar cortado em telas baixas
   Achado real (375x667): o <form> do checkout-modal envolve .modal-body +
   .modal-footer mas é display:block, quebrando o flex column que o
   Bootstrap .modal-dialog-scrollable espera entre .modal-content e seus
   filhos — o body crescia até o conteúdo inteiro e empurrava o footer
   (com o botão Confirmar) pra fora da tela, sem conseguir rolar até ele.
   Fazendo o <form> também ser um flex item/column, o scroll interno do
   .modal-body volta a funcionar e o footer com Confirmar fica sempre
   visível. */
.modal-dialog-scrollable form {
  display: flex; flex-direction: column; flex: 1 1 auto;
  min-height: 0; overflow: hidden;
}

/* ---- LOGO — maior no drawer mobile + logo no cabeçalho mobile (Lucas 2026-07-20)
   Achado do Lucas: no menu off-canvas do celular a logo ficava pequena
   (mesmo tamanho do desktop), e o cabeçalho fixo do mobile (o que fica
   visível com o menu FECHADO) não tinha logo nenhuma — só hambúrguer +
   botão PDV + avatar. */
@media (max-width: 991.98px) {
  .c-sidebar .c-sidebar-brand { flex-basis: 100px !important; height: 100px !important; }
  .c-sidebar .c-sidebar-brand-full { width: 80px !important; }
}

/* =======================================================================
   CABEÇALHO — redesign (Lucas 2026-07-20: header feio no desktop e mobile)
   Barra branca coesa: DESKTOP = título à esq. + cluster à dir. (space-between)
   MOBILE = 3 zonas: hambúrguer · logo central · PDV+avatar
   ======================================================================= */

/* --- Título de página (desktop) — fonte @yield('title') --- */
.m10-page-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--m10-ink);
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Cluster da direita — empurra pro fim, alinha ao centro vertical --- */
.m10-header-cluster {
  align-items: center;
  gap: .5rem;
  margin-bottom: 0;
}
.m10-header-cluster .c-header-nav-item { display: flex; align-items: center; }

/* --- Marca (logo) — só no mobile; SEM divisória vertical solta --- */
.m10-header-brand {
  display: flex; align-items: center;
}
.m10-header-brand img { height: 40px; width: auto; border-radius: 8px; }
@media (min-width: 992px) {
  .m10-header-brand { display: none; } /* desktop já mostra a logo grande na sidebar fixa */
}

/* --- Hambúrguer — touch target ≥44px --- */
.m10-header-toggler {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  color: var(--m10-muted) !important;
  transition: color .15s ease, background-color .15s ease;
  border-radius: 8px;
}
.m10-header-toggler i { font-size: 1.5rem; line-height: 1; }
.m10-header-toggler:hover { color: var(--m10-primary) !important; background: rgba(12,134,232,.08); }

/* --- CTA único: PDV --- */
.m10-pdv-btn { font-weight: 600; }

/* --- Sino — badge SÓ quando count>0 (o Blade só renderiza o span nesse caso) --- */
.m10-bell-link {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  border-radius: 8px;
  color: var(--m10-muted) !important;
  transition: color .15s ease, background-color .15s ease;
}
.m10-bell-link:hover { color: var(--m10-primary) !important; background: rgba(12,134,232,.08); }
.m10-bell-link i { font-size: 1.25rem; line-height: 1; }
.m10-bell-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; line-height: 1;
}

/* --- Chip do usuário --- */
.m10-user-link {
  display: flex !important; align-items: center; gap: .55rem;
  padding: .3rem .55rem !important; border-radius: 10px;
  min-height: 44px;
  transition: background-color .15s ease;
}
.m10-user-link:hover { background: rgba(12,134,232,.06); }
.m10-user-avatar { margin: 0; }

.m10-avatar-initials {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(160deg, var(--m10-primary) 0%, var(--m10-primary-600) 100%);
  color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  flex-shrink: 0;
}
.m10-user-name {
  font-size: .875rem; font-weight: 600; line-height: 1.15;
  color: var(--m10-ink);
}
.m10-user-role {
  font-size: .72rem; line-height: 1.15;
  color: var(--m10-muted);
}
.m10-user-caret { font-size: .7rem; color: var(--m10-muted); margin-left: .1rem; }

/* Meta do usuário (nome+papel): oculta no mobile, só o avatar aparece.
   .d-md-flex do Bootstrap veio SEM media query no build deste projeto
   (bug pré-existente do pipeline) — classe própria com o mesmo breakpoint. */
.m10-user-meta { display: none !important; }
@media (min-width: 992px) {
  .m10-user-meta { display: flex !important; }
}

/* =======================================================================
   MOBILE (<992px) — 3 zonas coesas: hambúrguer · logo central · PDV+avatar
   O truque: logo com margin-auto centraliza no espaço entre as 2 pontas.
   ======================================================================= */
@media (max-width: 991.98px) {
  /* Lucas 2026-07-20: logo COLADA no hambúrguer (não solta no centro) e MAIOR
     (tem mt detalhe). Fica logo após o menu com folguinha; o cluster PDV+avatar
     é empurrado pra direita pelo margin-left:auto dele. */
  .m10-header-brand {
    margin-left: .5rem; margin-right: 0;
    padding: 0;
  }
  .m10-header-brand img { height: 46px; }
  .m10-header-cluster { margin-left: auto !important; }  /* empurra PDV+avatar p/ a ponta direita */
  .m10-pdv-btn { padding: .35rem .75rem; }
}

/* =======================================================================
   DASHBOARD — painéis de valor (frente dashboard-fiado, 2026-07-20)
   4 painéis: Fiado a receber (herói) · Top devedores · Entrou/Faturado/Lucro
   · Gelo por produto. Cor com significado: vencido=danger, a-vencer=warning,
   caixa/positivo=success, primário=azul glacial.
   ======================================================================= */
:root {
  --m10-success:   #16a34a;
  --m10-success-bg:#e8f6ee;
  --m10-danger:    #dc2626;
  --m10-danger-bg: #fdecec;
  --m10-warning:   #d97706;
  --m10-warning-bg:#fef3e2;
  --m10-ink:       #0f2740;   /* texto forte sobre claro */
  --m10-surface:   #ffffff;
  --m10-shadow:    0 1px 2px rgba(11,42,74,.05), 0 6px 18px rgba(11,42,74,.06);
}

.m10-dash { font-variant-numeric: tabular-nums; }
.m10-dash .m10-card { border-radius: 14px; overflow: hidden; }
.m10-dash .m10-card__header {
  display: flex; align-items: center; justify-content: space-between;
  background: transparent; border-bottom: 1px solid var(--m10-border);
  font-weight: 700; color: var(--m10-ink); font-size: .95rem;
}
.m10-dash .m10-card__header i { color: var(--m10-primary); margin-right: .35rem; }
.m10-card__more { font-size: .8rem; font-weight: 600; }

/* ---- PAINEL 3 · faixa Entrou / Faturado / Lucro --------------------------- */
.m10-money-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.m10-money-cell {
  display: flex; align-items: center; gap: .9rem;
  background: var(--m10-surface); border: 1px solid var(--m10-border);
  border-radius: 14px; padding: 1.15rem 1.25rem; box-shadow: var(--m10-shadow);
  border-left: 4px solid var(--m10-border);
}
.m10-money-cell--in      { border-left-color: var(--m10-success); }
.m10-money-cell--profit  { border-left-color: var(--m10-primary); }
.m10-money-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: #eef5fc; color: var(--m10-primary);
}
.m10-money-cell--in .m10-money-icon     { background: var(--m10-success-bg); color: var(--m10-success); }
.m10-money-cell--profit .m10-money-icon { background: #eaf3fd; color: var(--m10-primary); }
.m10-money-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; color: var(--m10-muted); }
.m10-money-period { font-weight: 600; text-transform: none; letter-spacing: 0; }
.m10-money-value { font-size: 1.65rem; font-weight: 800; color: var(--m10-ink); line-height: 1.1; margin: .1rem 0; }
.m10-money-cell--in .m10-money-value { color: var(--m10-success); }
.m10-money-sub { font-size: .78rem; color: var(--m10-muted); }
.m10-money-sub i { color: var(--m10-warning); }

/* ---- PAINEL 1 · HERÓI fiado a receber ------------------------------------- */
.m10-hero-fiado {
  position: relative; border-radius: 16px; padding: 1.5rem 1.6rem;
  color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--m10-navy-2) 0%, var(--m10-navy) 60%, #071e38 100%);
  box-shadow: 0 10px 30px rgba(11,42,74,.18);
}
.m10-hero-fiado::after {  /* brilho glacial sutil no canto */
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(12,134,232,.35), transparent 70%);
  pointer-events: none;
}
.m10-hero-fiado__head { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 1; }
.m10-hero-fiado__eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: #b9d8f2; }
.m10-hero-fiado__eyebrow i { margin-right: .35rem; }
.m10-hero-fiado__total { font-size: 2.5rem; font-weight: 800; line-height: 1.05; margin-top: .3rem; }
.m10-hero-fiado__link {
  color: #fff; font-size: .82rem; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.12); padding: .35rem .7rem; border-radius: 999px;
  transition: background .15s ease;
}
.m10-hero-fiado__link:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }

.m10-fiado-split { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.3rem; position: relative; z-index: 1; }
.m10-fiado-split__item { background: rgba(255,255,255,.08); border-radius: 12px; padding: .85rem 1rem; }
.m10-fiado-split__k { font-size: .78rem; font-weight: 600; color: #d5e6f5; display: flex; align-items: center; gap: .4rem; }
.m10-fiado-split__v { font-size: 1.5rem; font-weight: 800; line-height: 1.15; margin: .15rem 0; }
.m10-fiado-split__item--danger  .m10-fiado-split__v { color: #ff8f8f; }
.m10-fiado-split__item--warning .m10-fiado-split__v { color: #ffce7a; }
.m10-fiado-split__c { font-size: .72rem; color: #9fbdd8; }

.m10-fiado-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin-top: 1.25rem; background: rgba(255,255,255,.12); position: relative; z-index: 1; }
.m10-fiado-bar__seg { height: 100%; }
.m10-fiado-bar__seg--danger  { background: var(--m10-danger); }
.m10-fiado-bar__seg--warning { background: var(--m10-warning); }
.m10-fiado-bar__seg--ok      { background: var(--m10-success); }
.m10-fiado-legend { display: flex; gap: 1.1rem; margin-top: .6rem; font-size: .74rem; color: #c2d8ec; position: relative; z-index: 1; }
.m10-fiado-legend .m10-dot { margin-right: .3rem; }

.m10-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.m10-dot--danger  { background: var(--m10-danger); }
.m10-dot--warning { background: var(--m10-warning); }
.m10-dot--ok      { background: var(--m10-success); }

/* ---- PAINEL 2 · lista de devedores ---------------------------------------- */
.m10-debtor {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.15rem; border-bottom: 1px solid var(--m10-border);
  color: var(--m10-ink); transition: background .12s ease;
}
.m10-debtor:last-child { border-bottom: 0; }
.m10-debtor:hover { background: #f5faff; text-decoration: none; color: var(--m10-ink); }
.m10-debtor__avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem;
  background: #e7f1fb; color: var(--m10-primary-600);
}
.m10-debtor__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.m10-debtor__name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m10-debtor__value { flex: 0 0 auto; font-weight: 800; color: var(--m10-ink); }
.m10-badge { align-self: flex-start; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: .12rem .45rem; border-radius: 999px; }
.m10-badge--danger { background: var(--m10-danger-bg); color: var(--m10-danger); }
.m10-badge--ok     { background: var(--m10-success-bg); color: var(--m10-success); }

/* ---- PAINEL 4 · gelo por produto ------------------------------------------ */
.m10-ice { padding: .35rem .25rem; }
.m10-ice__top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.m10-ice__name { font-weight: 600; color: var(--m10-ink); }
.m10-ice__name i { color: var(--m10-primary); margin-right: .3rem; }
.m10-ice__money { font-weight: 700; color: var(--m10-primary-600); }
.m10-ice__bags { font-size: 1.75rem; font-weight: 800; color: var(--m10-ink); line-height: 1.1; margin: .15rem 0 .55rem; }
.m10-ice__bags span { font-size: .85rem; font-weight: 600; color: var(--m10-muted); }
.m10-ice__track { height: 8px; border-radius: 999px; background: #e9f1f8; overflow: hidden; }
.m10-ice__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--m10-primary), var(--m10-primary-600)); }

/* ---- estados vazios ------------------------------------------------------- */
.m10-empty { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem; color: var(--m10-muted); }
.m10-empty i { font-size: 1.8rem; }
.m10-empty strong { display: block; color: var(--m10-ink); }
.m10-empty span { font-size: .82rem; }
.m10-empty--good i { color: var(--m10-success); }
.m10-hero-fiado .m10-empty { color: #cfe2f2; }
.m10-hero-fiado .m10-empty strong { color: #fff; }
.m10-hero-fiado .m10-empty--good i { color: #7ee0a2; }

/* ---- responsivo: painéis empilham no mobile ------------------------------- */
@media (max-width: 767.98px) {
  .m10-money-strip { grid-template-columns: 1fr; gap: .75rem; }
  .m10-hero-fiado__total { font-size: 2rem; }
  .m10-fiado-split { grid-template-columns: 1fr; }
  .m10-money-value { font-size: 1.5rem; }
}

/* =======================================================================
   RELATÓRIOS — sistema visual 2026 (aditivo, frente relatorios-modern)
   Hierarquia (destaque no que importa), cor com SIGNIFICADO (verde=positivo,
   vermelho=negativo/vencido, âmbar=atenção, azul=neutro), números tabulares,
   cards com respiro. Tema gelo (frost + navy). — Lucas 2026-07-20
   ======================================================================= */
:root {
  --m10-pos:      #16a34a;   /* verde — receita / lucro / pago */
  --m10-pos-bg:   #e7f6ec;
  --m10-neg:      #dc2626;   /* vermelho — prejuízo / vencido / despesa */
  --m10-neg-bg:   #fdeaea;
  --m10-warn:     #d97706;   /* âmbar — a vencer / atenção */
  --m10-warn-bg:  #fdf3e3;
  --m10-neutral:  #0c86e8;   /* azul glacial — neutro */
  --m10-neutral-bg: #e8f2fb;
}

/* números sempre alinhados em colunas (preços, quantidades, timers) */
.m10-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* barra de filtro do relatório — respiro e leveza */
.m10-report-filter .card-body { padding: 1.25rem 1.5rem; }
.m10-report-filter label {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--m10-muted); margin-bottom: .35rem;
}

/* ---- KPI cards (substituem os "quadradinhos azuis idênticos") ---- */
.m10-kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
.m10-kpi {
  grid-column: span 3;
  background: #fff; border: 1px solid var(--m10-border);
  border-radius: 14px; padding: 1.1rem 1.25rem;
  box-shadow: var(--m10-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative; overflow: hidden;
}
.m10-kpi:hover { box-shadow: var(--m10-shadow-lg); transform: translateY(-2px); }
.m10-kpi__label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--m10-muted); margin-bottom: .55rem;
}
.m10-kpi__value {
  font-size: 1.65rem; font-weight: 700; line-height: 1.1;
  color: var(--m10-ink); font-variant-numeric: tabular-nums;
}
.m10-kpi__sub { font-size: .8rem; color: var(--m10-muted); margin-top: .25rem; }
.m10-kpi__icon {
  position: absolute; top: 1rem; right: 1rem;
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
/* HERO card — o número que mais importa (lucro/receita/total a receber) */
.m10-kpi--hero { grid-column: span 6; }
.m10-kpi--hero .m10-kpi__value { font-size: 2.4rem; }
.m10-kpi--hero .m10-kpi__icon { width: 44px; height: 44px; font-size: 1.4rem; }

/* variantes semânticas — cor da barra lateral + do valor + do ícone */
.m10-kpi--pos     { border-left: 4px solid var(--m10-pos); }
.m10-kpi--pos     .m10-kpi__value { color: var(--m10-pos); }
.m10-kpi--pos     .m10-kpi__icon  { background: var(--m10-pos-bg);  color: var(--m10-pos); }
.m10-kpi--neg     { border-left: 4px solid var(--m10-neg); }
.m10-kpi--neg     .m10-kpi__value { color: var(--m10-neg); }
.m10-kpi--neg     .m10-kpi__icon  { background: var(--m10-neg-bg);  color: var(--m10-neg); }
.m10-kpi--warn    { border-left: 4px solid var(--m10-warn); }
.m10-kpi--warn    .m10-kpi__value { color: var(--m10-warn); }
.m10-kpi--warn    .m10-kpi__icon  { background: var(--m10-warn-bg); color: var(--m10-warn); }
.m10-kpi--neutral { border-left: 4px solid var(--m10-neutral); }
.m10-kpi--neutral .m10-kpi__icon  { background: var(--m10-neutral-bg); color: var(--m10-neutral); }

/* spans por CLASSE (substituem os inline style="grid-column: span N" das views —
   inline vencia o media-query e cortava o número no mobile). Desktop = spans idênticos. */
.m10-kpi--span3 { grid-column: span 3; }
.m10-kpi--span4 { grid-column: span 4; }
.m10-kpi--span6 { grid-column: span 6; }
/* grid interno de 3 colunas (Fluxo de caixa no Lucro/Prejuízo) sem inline no elemento */
.m10-kpi-grid--3col { grid-template-columns: repeat(3, 1fr); }
.m10-kpi-grid--3col > .m10-kpi { grid-column: span 1; }

@media (max-width: 991.98px) {
  .m10-kpi, .m10-kpi--hero,
  .m10-kpi--span3, .m10-kpi--span4, .m10-kpi--span6 { grid-column: span 6; }
  .m10-kpi--hero .m10-kpi__value { font-size: 2rem; }
}
@media (max-width: 575.98px) {
  /* 1 coluna full-width no celular — o número deixa de ser cortado pela borda */
  .m10-kpi, .m10-kpi--hero,
  .m10-kpi--span3, .m10-kpi--span4, .m10-kpi--span6 { grid-column: span 12; }
  /* o grid interno de fluxo de caixa também colapsa pra 1 coluna */
  .m10-kpi-grid--3col { grid-template-columns: 1fr; }
  .m10-kpi-grid--3col > .m10-kpi { grid-column: span 1; }
  /* valor tabular grande cabe inteiro (full-width já resolve; nowrap garante) */
  .m10-kpi__value { white-space: nowrap; }
  .m10-kpi--hero .m10-kpi__value { font-size: 1.9rem; }
}

/* título de seção dentro do relatório */
.m10-section-title {
  font-size: .82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--m10-muted);
  margin: 1.75rem 0 .85rem; display: flex; align-items: center; gap: .5rem;
}

/* card de conteúdo do relatório (tabela/gráfico) */
.m10-report-card {
  background: #fff; border: 1px solid var(--m10-border);
  border-radius: 14px; box-shadow: var(--m10-shadow); overflow: hidden;
}
.m10-report-card > .card-body,
.m10-report-card__body { padding: 1.25rem 1.5rem; }

/* ---- barra de aging (a vencer | vencido 7/15/30+) ---- */
.m10-aging-bar {
  display: flex; height: 12px; border-radius: 999px; overflow: hidden;
  background: var(--m10-frost-100); margin: .35rem 0 1.1rem;
}
.m10-aging-bar span { display: block; height: 100%; }
.m10-aging-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .8rem; color: var(--m10-muted); }
.m10-aging-legend i { font-size: .6rem; margin-right: .35rem; vertical-align: middle; }

/* tabelas de relatório — linhas com respiro, cabeçalho discreto */
.m10-report-table { width: 100%; margin-bottom: 0; }
.m10-report-table thead th {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; color: var(--m10-muted);
  border-bottom: 1px solid var(--m10-border); border-top: 0;
  padding: .7rem .85rem; white-space: nowrap;
}
.m10-report-table tbody td {
  padding: .7rem .85rem; vertical-align: middle;
  border-top: 1px solid var(--m10-frost-100); color: var(--m10-ink);
}
.m10-report-table tbody tr:hover td { background: var(--m10-frost); }
.m10-report-table tfoot td {
  padding: .8rem .85rem; font-weight: 700; color: var(--m10-ink);
  border-top: 2px solid var(--m10-border); background: var(--m10-frost);
}
.m10-text-pos  { color: var(--m10-pos)  !important; font-weight: 600; }
.m10-text-neg  { color: var(--m10-neg)  !important; font-weight: 600; }
.m10-text-warn { color: var(--m10-warn) !important; font-weight: 600; }

/* pílula de aging por linha */
.m10-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px;
  white-space: nowrap;
}
.m10-pill--pos  { background: var(--m10-pos-bg);  color: var(--m10-pos); }
.m10-pill--neg  { background: var(--m10-neg-bg);  color: var(--m10-neg); }
.m10-pill--warn { background: var(--m10-warn-bg); color: var(--m10-warn); }
.m10-pill--neutral { background: var(--m10-neutral-bg); color: var(--m10-neutral); }

/* estado vazio */
.m10-empty {
  text-align: center; padding: 3rem 1rem; color: var(--m10-muted);
}
.m10-empty i { font-size: 2.5rem; color: var(--m10-border); display: block; margin-bottom: .75rem; }
.m10-empty p { margin: 0; font-size: .95rem; }

/* mini barra de proporção dentro de célula (relatório por produto/cliente) */
.m10-minibar { height: 6px; border-radius: 999px; background: var(--m10-frost-100); overflow: hidden; margin-top: .3rem; }
.m10-minibar span { display: block; height: 100%; background: var(--m10-neutral); border-radius: 999px; }

/* ============================================================
   MOBILE dos RELATÓRIOS (aditivo — só max-width, desktop intacto)
   BUG2: tabela cortada · BUG3: aging bar desalinhada
   ============================================================ */

/* --- scroll horizontal CONTIDO com dica de "tem mais à direita" (sombra à direita) ---
   aplicado a QUALQUER .table-responsive de relatório que NÃO virou card-stack */
@media (max-width: 767.98px) {
  .m10-report-card .table-responsive {
    position: relative;
    -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 24px 100% no-repeat,
      linear-gradient(to left,  #fff 30%, rgba(255,255,255,0)) right center / 24px 100% no-repeat,
      radial-gradient(farthest-side at 100% 50%, rgba(15,42,74,.14), rgba(15,42,74,0)) right center / 14px 100% no-repeat;
    background-attachment: local, local, scroll;
  }
}

/* --- CARD-STACK: tabelas que o Lucas mais olha (Fiado + por Cliente) viram cartões
   empilhados no mobile: cada linha = 1 card, cada célula = label(data-label): valor.
   Ativado por .m10-table-stack na tabela (só nessas duas views). --- */
@media (max-width: 575.98px) {
  .m10-table-stack { display: block; }
  .m10-table-stack thead { display: none; }              /* rótulos vêm do data-label */
  .m10-table-stack tbody,
  .m10-table-stack tfoot { display: block; }
  .m10-table-stack tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--m10-border);
    border-radius: 12px;
    padding: .35rem .9rem;
    margin-bottom: .7rem;
    box-shadow: var(--m10-shadow);
  }
  .m10-table-stack tbody tr:hover td { background: transparent; } /* hover de linha não faz sentido em card */
  .m10-table-stack tbody td {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    text-align: right !important;
    padding: .5rem 0;
    border-top: 1px solid var(--m10-frost-100);
    white-space: normal;
  }
  .m10-table-stack tbody td:first-child { border-top: 0; }
  .m10-table-stack tbody td::before {
    content: attr(data-label);
    text-align: left;
    font-size: .72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .03em; color: var(--m10-muted);
    flex: 0 0 auto; margin-right: .5rem;
  }
  /* célula sem data-label (nome do cliente com minibar) ocupa a largura toda, sem rótulo */
  .m10-table-stack tbody td.m10-cell-title { display: block; text-align: left !important; }
  .m10-table-stack tbody td.m10-cell-title::before { content: none; }
  /* rodapé Total vira 1 card destacado */
  .m10-table-stack tfoot tr {
    display: block;
    background: var(--m10-frost);
    border: 1px solid var(--m10-border);
    border-radius: 12px;
    padding: .35rem .9rem;
  }
  .m10-table-stack tfoot td {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; text-align: right !important;
    padding: .45rem 0; border-top: 1px solid var(--m10-frost-100);
  }
  .m10-table-stack tfoot td:first-child { border-top: 0; font-weight: 700; }
  .m10-table-stack tfoot td:empty { display: none; }
  .m10-table-stack tfoot td::before {
    content: attr(data-label);
    text-align: left; font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; color: var(--m10-muted);
    flex: 0 0 auto; margin-right: .5rem;
  }
  /* card-stack não precisa de scroll horizontal nem da sombra */
  .m10-report-card .table-responsive:has(.m10-table-stack) { background: none; overflow: visible; }
}

/* --- BUG3: aging bar — as 5 faixas (A vencer / ≤7d / 8-15 / 16-30 / 30+) em .row>.col
   ficam espremidas no mobile. Vira lista label→valor em 2 colunas alinhadas. --- */
@media (max-width: 575.98px) {
  .m10-aging-legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .9rem; text-align: left !important; }
  .m10-aging-legend-grid > .col {
    flex: none; max-width: none; padding: 0;
    display: flex; align-items: baseline; justify-content: space-between;
    gap: .5rem; border-bottom: 1px solid var(--m10-frost-100); padding-bottom: .35rem;
  }
  .m10-aging-legend-grid > .col .m10-num { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .m10-kpi { transition: none; }
  .m10-kpi:hover { transform: none; }
}

/* ============================================================
   LISTAS MOBILE — linha compacta + toca pra abrir (frente listas-mobile)
   Um transformador JS (public/js/m10-mobile-list.js) converte, em <768px,
   QUALQUER table.dataTable (DataTables) e table.m10-report-table (relatórios)
   em lista de linhas compactas expansíveis. Este CSS estiliza o que o JS monta.
   AÇÃO: só max-width — o DESKTOP (>=768px) fica INTACTO (nada aqui vaza pra ele).
   ============================================================ */
@media (max-width: 767.98px) {

  /* enquanto o JS não rodou, a marca .m10-ml-armed some com o overflow lateral
     (evita "flash" da tabela larga rolando de lado antes da transformação) */
  /* width:100% !important vence o inline "width:0px" que o DataTables grava na
     <table> quando recalcula colunas no mobile (some da report-table, mas mata
     a dataTable — a causa da "linha vazia"). idem tbody/tr/td: viram bloco 100%. */
  .m10-ml-armed { display: block; width: 100% !important; }
  .m10-ml-armed thead { display: none; }
  .m10-ml-armed tbody { display: block; width: 100%; }
  .m10-ml-armed tbody tr.m10-ml-row,
  .m10-ml-armed tbody tr.m10-ml-empty { width: 100% !important; }
  .m10-ml-armed tbody tr.m10-ml-row > td:first-child { width: 100% !important; max-width: none !important; box-sizing: border-box; }

  /* rodapé (Total) das tabelas de relatório: vira 1 card resumo (label:valor) */
  .m10-ml-armed tfoot { display: block; }
  .m10-ml-armed tfoot tr {
    display: block; background: var(--m10-frost);
    border: 1px solid var(--m10-border); border-radius: 12px; padding: .35rem .9rem;
  }
  .m10-ml-armed tfoot td {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; text-align: right !important; padding: .45rem 0;
    border-top: 1px solid var(--m10-frost-100); white-space: normal;
  }
  .m10-ml-armed tfoot td:first-child { border-top: 0; font-weight: 700; }
  .m10-ml-armed tfoot td:empty { display: none; }
  .m10-ml-armed tfoot td[data-label]::before {
    content: attr(data-label); text-align: left;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; color: var(--m10-muted); flex: 0 0 auto; margin-right: .5rem;
  }

  /* cada linha vira um "cartão-linha" compacto e tocável */
  .m10-ml-armed tbody tr.m10-ml-row {
    display: block;
    background: #fff;
    border: 1px solid var(--m10-border);
    border-radius: 12px;
    margin-bottom: .6rem;
    box-shadow: var(--m10-shadow);
    overflow: hidden;
    /* neutraliza o herdado do tema Triangle e do card-stack antigo */
    padding: 0;
    width: 100%;
  }
  .m10-ml-armed tbody tr.m10-ml-row:hover td { background: transparent; }

  /* as células originais somem visualmente (viram fonte de dados p/ o JS) */
  .m10-ml-armed tbody tr.m10-ml-row > td { display: none; }

  /* ---- CABEÇA da linha (sempre visível, alvo de toque >=44px) ---- */
  .m10-ml-head {
    display: flex; align-items: center; gap: .6rem;
    width: 100%;
    min-height: 56px;
    padding: .7rem .9rem;
    background: none; border: 0; text-align: left;
    cursor: pointer; color: inherit; font: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .m10-ml-head:focus-visible { outline: 2px solid var(--m10-primary); outline-offset: -2px; border-radius: 12px; }

  .m10-ml-headmain { flex: 1 1 auto; min-width: 0; }
  .m10-ml-primary {
    display: block; font-weight: 700; color: var(--m10-ink);
    font-size: .95rem; line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .m10-ml-sub {
    display: block; margin-top: .1rem;
    font-size: .78rem; color: var(--m10-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  /* status (badge/pílula) e coluna-chave à direita */
  .m10-ml-headside {
    flex: 0 0 auto; display: flex; flex-direction: column;
    align-items: flex-end; gap: .25rem; text-align: right; max-width: 46%;
  }
  .m10-ml-key {
    font-weight: 700; color: var(--m10-ink); font-size: .95rem;
    font-variant-numeric: tabular-nums; white-space: nowrap;
  }
  .m10-ml-headside .badge,
  .m10-ml-headside .m10-pill { white-space: nowrap; }

  .m10-ml-chevron {
    flex: 0 0 auto; color: var(--m10-muted); font-size: 1.05rem;
    transition: transform .22s ease; margin-left: .1rem;
  }
  .m10-ml-row.is-open .m10-ml-chevron { transform: rotate(180deg); }

  /* ---- PAINEL expandido (acordeão suave) ---- */
  .m10-ml-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height .26s ease;
    border-top: 0 solid var(--m10-frost-100);
  }
  .m10-ml-row.is-open .m10-ml-panel {
    max-height: 1200px;       /* alto o bastante p/ qualquer linha; anima suave */
    border-top-width: 1px;
  }
  .m10-ml-detail { padding: .35rem .9rem .6rem; }
  .m10-ml-drow {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; padding: .45rem 0;
    border-top: 1px solid var(--m10-frost-100);
  }
  .m10-ml-drow:first-child { border-top: 0; }
  .m10-ml-dlabel {
    flex: 0 0 auto; font-size: .72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .03em; color: var(--m10-muted);
  }
  .m10-ml-dval {
    flex: 1 1 auto; text-align: right; color: var(--m10-ink);
    font-variant-numeric: tabular-nums; word-break: break-word;
  }
  /* rodapé de ações do painel */
  .m10-ml-actions {
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end;
    padding-top: .6rem; margin-top: .35rem;
    border-top: 1px solid var(--m10-frost-100);
  }
  /* dropdown de ações abre pra baixo dentro do cartão (não dropleft, que corta) */
  .m10-ml-actions .btn-group.dropleft { position: static; }
  .m10-ml-actions .dropdown-menu { right: 0; left: auto; }

  /* célula "vazia" (colspan de estado-vazio do DataTables/relatório) fica normal */
  .m10-ml-armed tbody tr.m10-ml-empty { display: block; background: none; border: 0; box-shadow: none; }
  .m10-ml-armed tbody tr.m10-ml-empty > td { display: block; }

  /* a tabela transformada não precisa de scroll lateral nem da sombra de "tem mais" */
  .dataTables_wrapper:has(.m10-ml-armed) .table-responsive,
  .m10-report-card .table-responsive:has(.m10-ml-armed) { overflow: visible; background: none; }
  .m10-ml-armed.dataTable { border: 0; }

  /* --- desativa o card-stack ANTIGO das 3 views de relatório: o novo padrão
     (linha-compacta) assume. As regras .m10-table-stack ficam no arquivo
     (inertes) porque a classe foi removida dos blades desta frente. --- */
}
