/* =========================================================================
   Componentes reutilizaveis: card, botoes, badges, alerts, metricas,
   listas com moldura, dropdown e barras de progresso.
   Estas classes sao a base das proximas telas.
   ========================================================================= */

/* ------------------------------- card ---------------------------------- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
}

.card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.card__title-icon {
    font-size: 20px;
    color: var(--text-dark);
    line-height: 1;
}

.card__body {
    padding: 0 20px 20px;
}

/* Cards da fileira 2: altura fixa com scroll interno independente. */
.card--fixed {
    height: 500px;
}

.card--fixed .card__body {
    flex: 1;
    overflow-y: auto;
}

/* Botao "atualizar" do header: gira 360 graus ao clicar. */
.card__refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
}

.card__refresh:hover {
    background: var(--card-inner-bg);
}

.card__refresh--spinning i {
    display: inline-block;
    animation: spin-360 600ms ease;
}

@keyframes spin-360 {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --------------------------- bloco interno ----------------------------- */
/* Superficie levemente destacada dentro de um card. */
.inner-block {
    background: var(--card-inner-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
}

/* ------------------------------ botoes --------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background 150ms ease;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-hover);
}

.btn--danger {
    background: var(--danger);
    color: #fff;
    padding: 8px 28px;
}

.btn--danger:hover {
    background: var(--danger-hover);
}

/* Botao de acao principal, largura total do card. */
.btn--block {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    font-weight: 700;
}

/* ------------------------------ alerts --------------------------------- */
.alert {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
}

.alert--warning {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
}

/* ------------------------------ badges --------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    border-radius: 2px;
}

.badge--danger {
    background: var(--danger);
}

/* -------------------------- barra de progresso ------------------------- */
.progress {
    margin-top: 4px;
}

.progress__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress__label {
    color: var(--text-muted);
}

.progress__value {
    font-weight: 700;
    color: var(--accent-link);
}

.progress__track {
    height: 6px;
    border-radius: 3px;
    background: var(--track-bg);
    overflow: hidden;
}

.progress__fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

/* ------------------------------ metricas ------------------------------- */
/* Sub-grid A: 3 metricas destacadas. */
.metrics-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Sub-grid B: 6 metricas simples. */
.metrics-simple {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.metric {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.metric__label {
    font-size: 14px;
    color: var(--text-dark);
}

.metrics-simple .metric__label {
    font-size: 13px;
}

.metric__value {
    font-size: 44px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
    margin-top: auto;
}

.metrics-simple .metric__value {
    font-size: 36px;
}

/* Metrica clicavel: label e valor em azul. */
.metric--link .metric__label,
.metric--link .metric__value {
    color: var(--accent-link);
}

/* Barra grossa (18px) sob as metricas destacadas. */
.metric-bar {
    display: flex;
    align-items: stretch;
    height: 18px;
    margin-top: 12px;
    background: var(--track-bg-strong);
    border-radius: 2px;
    overflow: hidden;
}

.metric-bar__fill {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 0;
}

/* Variante com badge vermelho encostado a esquerda (0 / 0). */
.metric-bar__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0 8px;
    background: var(--danger);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* --------------------- lista com moldura (atalhos) --------------------- */
.framed-list {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.framed-list + .framed-list {
    margin-top: 16px;
}

.framed-list__header {
    padding: 12px 16px;
    background: var(--card-inner-bg);
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.framed-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-dark);
}

.framed-list__item:last-child {
    border-bottom: none;
}

.framed-list__item:hover {
    background: var(--card-inner-bg);
}

.framed-list__icon {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1;
}

/* ---------------------------- notificacoes ----------------------------- */
.notification {
    background: var(--card-inner-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    transition: opacity 250ms ease;
}

/* Estado aplicado pelo JS antes de remover o item do DOM. */
.notification--dismissing {
    opacity: 0;
}

.notification__text {
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
}

.notification__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

/* ------------------------------ dropdown ------------------------------- */
/* Componente generico: serve ao menu do usuario, ao "Novo Cliente ou
   Liderado" e ao "Opcoes" de cada card. A animacao de entrada exige
   opacity/visibility — com display:none nao ha transicao (AD-005). */
.dropdown-wrap {
    position: relative;
}

.dropdown {
    /* fixed, e nao absolute: alguns menus vivem dentro de containers com
       overflow (a tabela rola na horizontal) e seriam recortados. As
       coordenadas sao calculadas por initDropdowns no momento da abertura. */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: 250px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}

.dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s;
}

/* Aberto para cima: so inverte o sentido da animacao de entrada — a
   posicao em si e calculada pelo JS (R-F01-015, R-F02-024). */
.dropdown--up {
    transform: translateY(6px);
}

.dropdown--up.dropdown--open {
    transform: translateY(0);
}

/* Variantes por contexto de uso. */
.dropdown--user {
    width: 250px;
}

.dropdown--novo {
    width: 160px;
}

.dropdown--opcoes {
    width: 185px;
}

/* Nos dois dropdowns novos os itens sao separados por divisor. */
.dropdown--novo .dropdown__item,
.dropdown--opcoes .dropdown__item {
    border-bottom: 1px solid var(--border);
}

.dropdown--novo .dropdown__item:last-child,
.dropdown--opcoes .dropdown__item:last-child {
    border-bottom: none;
}

.dropdown--novo .dropdown__item {
    padding: 12px 20px;
}

.dropdown--opcoes .dropdown__item {
    padding: 13px 20px;
}

.dropdown__header {
    padding: 12px 16px;
}

.dropdown__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.dropdown__email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown__divider {
    height: 1px;
    margin: 4px 0;
    background: var(--border);
    border: none;
}

.dropdown__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-dark);
}

.dropdown__item:hover {
    background: var(--card-inner-bg);
}

/* ------------------------- bloco de video ------------------------------ */
.video-block {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}

.video-block__thumb {
    position: relative;
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    line-height: 0;
}

.video-block__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Botao play circular sobreposto ao centro da thumbnail. */
.video-block__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: var(--text-dark);
    font-size: 24px;
    line-height: 1;
}

.video-block__title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
}

.video-block__desc {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ------------------------- bloco de boas-vindas ------------------------ */
.welcome__greeting {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.welcome__text {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
}

/* ------------------------- legenda de card ----------------------------- */
/* Linha "Resultados em dd/mm/aaaa - hh:mm:ss" acima das metricas. */
.card__legend {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

/* --------------------------- card de cliente --------------------------- */
.client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--client-card-w);
    min-height: 390px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    /* Sem overflow:hidden — ele recortaria o menu "Opcoes", que e filho do
       card. O arredondamento fica no proprio banner, que e o unico elemento
       que encosta nas bordas superiores. */
}

.client-card__banner {
    width: 100%;
    height: 135px;
    background: var(--card-banner);
    border-radius: var(--radius) var(--radius) 0 0;
    flex-shrink: 0;
}

/* Avatar sobreposto: metade invade o banner, metade a area branca. */
.client-card__avatar {
    width: 130px;
    height: 130px;
    margin-top: -65px;
    border: 4px solid var(--card-bg);
    border-radius: 50%;
    object-fit: cover;
    background: var(--card-bg);
    flex-shrink: 0;
}

/* Fallback sem foto: iniciais em fundo cinza. */
.client-card__iniciais {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-muted);
    color: #fff;
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
}

.client-card__nome {
    margin: 14px 12px 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-dark);
    text-align: center;

    /* Duas linhas no maximo — ellipsis simples so funciona em uma. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.client-card__email {
    margin: 6px 12px 0;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    word-break: break-word;
}

.client-card__telefone {
    margin: 4px 12px 0;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

/* Empurra o rodape para baixo, alinhando os botoes entre cards. */
.client-card__espacador {
    flex: 1;
}

.client-card__rodape {
    margin-bottom: 20px;
}

/* ------------------------ botoes complementares ------------------------ */
.btn--info {
    background: var(--info);
    color: #fff;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
}

.btn--info:hover {
    background: var(--info-hover);
}

/* O "Novo Cliente ou Liderado" usa --primary com as medidas da barra. */
.acoes .btn--primary {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
}

.btn--neutro {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-dark);
    padding: 10px;
}

.btn--neutro:hover {
    background: var(--card-inner-bg);
}

.btn--sucesso {
    flex: 1;
    background: var(--success);
    color: #fff;
    font-weight: 600;
    padding: 10px;
}

/* Botao discreto com contorno — usado no "Opcoes" do card. */
.btn-outline {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--card-inner-bg);
}

/* --------------------------- campos de form ---------------------------- */
.campo + .campo {
    margin-top: 18px;
}

.campo__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
}

.campo__controle {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--card-bg);
}

.campo__controle:focus {
    outline: none;
    border-color: var(--primary);
}

.drawer__acoes {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ----------------------------- paginacao ------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    font-size: 14px;
    color: var(--text-dark);
}

.pagination__item:hover {
    background: var(--card-inner-bg);
}

.pagination__item--atual {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination__item--atual:hover {
    background: var(--primary);
}

.pagination__item--off {
    opacity: .45;
    pointer-events: none;
}

/* ---------------------------- estado vazio ----------------------------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 64px 16px;
    text-align: center;
}

.empty-state__icone {
    font-size: 48px;
    color: var(--text-muted);
    line-height: 1;
}

.empty-state__texto {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

.empty-state .btn {
    padding: 10px 20px;
}

/* ---------------------------- barra de acoes --------------------------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

/* Select e botao "Executar" colados. */
.toolbar__grupo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar__select {
    width: 170px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
}

/* Botoes da barra: mesma altura e peso, cores por variante. */
.toolbar .btn,
.toolbar .btn--executar {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    transition: background .15s ease;
}

.btn--executar {
    background: var(--green-soft);
    padding: 9px 14px;
}

.btn--executar:hover:not(:disabled) {
    background: var(--green-soft-hover);
}

.btn--executar:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn--acao {
    background: var(--blue-action);
}

.btn--acao:hover {
    background: var(--blue-action-hover);
}

.btn--report {
    background: var(--blue-report);
}

.btn--report:hover {
    background: var(--blue-report-hover);
}

.btn--verde {
    background: var(--green);
}

.btn--verde:hover {
    background: var(--green-hover);
}

/* ------------------------------ tabela --------------------------------- */
/* Scroll horizontal proprio: a tabela nunca empurra a largura da pagina. */
.table-wrap {
    overflow-x: auto;
    background: var(--card-bg);
    border: 1px solid var(--table-border);
    border-radius: var(--radius-sm);
}

.tabela {
    width: 100%;
    /* Piso de largura: sem ele, em telas estreitas as colunas se espremem e a
       coluna de e-mail quebra em muitas linhas, inflando a altura das linhas.
       Abaixo desse piso quem rola e o .table-wrap. */
    min-width: 1080px;
    border-collapse: collapse;
    background: var(--card-bg);
}

.tabela thead th {
    padding: 14px 10px;
    background: var(--card-bg);
    border-bottom: 2px solid var(--table-border);
    border-right: 1px solid var(--table-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--table-head-text);
    text-align: center;
    white-space: nowrap;
}

.tabela thead th:last-child {
    border-right: none;
}

.tabela tbody td {
    padding: 12px 10px;
    border-right: 1px solid var(--table-border);
    border-bottom: 1px solid var(--table-border);
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    color: var(--text-dark);
}

.tabela tbody td:last-child {
    border-right: none;
}

/* Zebra e destaque da linha sob o cursor. */
.tabela tbody tr:nth-child(odd) {
    background: var(--card-bg);
}

.tabela tbody tr:nth-child(even) {
    background: var(--row-stripe);
}

.tabela tbody tr:hover {
    background: var(--row-hover);
}

/* Larguras sugeridas na §4.1; a coluna de e-mail fica com o restante. */
.tabela__col-check     { width: 34px; }
.tabela__col-data      { width: 82px; }
.tabela__col-convidado { width: 130px; }
.tabela__col-confirmada { width: 125px; }
.tabela__col-status    { width: 78px; }
.tabela__col-idioma    { width: 58px; }
.tabela__col-opcoes    { width: 100px; }

/* Data em cima, hora embaixo. */
.celula-data__dia {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.celula-data__hora {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.sem-valor {
    color: var(--text-muted);
}

.celula-email {
    word-break: break-all;
}

.link-confirmada {
    color: var(--accent-link);
    text-decoration: none;
}

.link-confirmada:hover {
    text-decoration: underline;
}

/* Status: apenas a cor do texto, sem badge. */
.status {
    font-weight: 400;
}

.status--ok         { color: var(--status-ok); }
.status--andamento  { color: var(--info); }
.status--nova       { color: var(--text-muted); }
.status--rejeitado  { color: var(--danger); }

.bandeira {
    width: 20px;
    height: 14px;
    border-radius: var(--radius-sm);
    display: inline-block;
    vertical-align: middle;
}

/* Botao "Opcoes" da linha. */
.btn-opcoes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    color: var(--text-dark);
    white-space: nowrap;
}

.btn-opcoes:hover {
    background: var(--card-inner-bg);
}

.btn-opcoes .bi {
    font-size: 10px;
}

.tabela__rodape {
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-muted);
}

.tabela__rodape strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* Menu da linha: mais largo, com divisores. */
.dropdown--linha {
    width: 340px;
}

.dropdown--linha .dropdown__item {
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
}

.dropdown--linha .dropdown__item:last-child {
    border-bottom: none;
}

.dropdown__item--perigo {
    color: var(--danger);
}

/* ---------------------- campo de data com botao ------------------------ */
/* Input e botao colados: o botao arredonda so do lado direito. */
.input-group {
    display: flex;
}

.input-group__campo {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

.input-group__botao {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-dark);
    font-size: 15px;
}

.input-group__botao:hover {
    background: var(--card-inner-bg);
}

/* ---------------------------- tela de login ---------------------------- */
/* Fora do shell: sem topbar nem sidebar, cartao centrado sobre o fundo. */
.login-pagina {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--app-bg);
}

.login-cartao {
    width: 100%;
    max-width: 380px;
    padding: 32px 28px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

/* O logo da marca e branco — sobre o cartao claro precisa da faixa escura. */
.login-logo {
    display: block;
    width: 150px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    background: var(--topbar-bg);
    border-radius: var(--radius-sm);
}

.login-titulo {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-dark);
}

.login-cartao .campo {
    text-align: left;
}

.login-erro {
    margin: 0 0 16px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--danger);
    background: var(--card-inner-bg);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-sm);
    text-align: left;
}

.login-entrar {
    margin-top: 20px;
}

/* ------------------ item de menu que e um <button> ---------------------- */
/* O logout e um form POST dentro do dropdown; o botao precisa se vestir de
   item de menu. */
.dropdown__form {
    margin: 0;
}

.dropdown__item--botao {
    display: block;
    width: 100%;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

/* --------------------------- utilitarios ------------------------------- */
.text-muted { color: var(--text-muted); }
.stack > * + * { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-12 { margin-bottom: 12px; }
/* Reserva a altura minima de um card cujo corpo ainda sera implementado. */
.placeholder-body { min-height: 40px; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------- breakpoints dos sub-grids ------------------------- */
@media (max-width: 1199px) {
    .metrics-simple {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .metrics-highlight {
        grid-template-columns: 1fr;
    }

    .metrics-simple {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-block {
        grid-template-columns: 1fr;
    }
}
