/* ========================================================
 * DEPILCLEAR WOMEN & MEN - SANDRA RAMOS
 * Folha de Estilos Modular (style.css)
 * ======================================================== */

/* Animação de rotação suave no ícone ao trocar tema (Sol/Lua) */
.theme-icon-spin {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-icon-spin.spinning {
  transform: rotate(360deg) scale(1.15);
}

/* ========================================================
 * BARRAS DE ROLAGEM PERSONALIZADAS
 * ======================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* Modo Escuro */
.dark ::-webkit-scrollbar-track {
  background: #120b1f;
}

.dark ::-webkit-scrollbar-thumb {
  background: #3c1e5f;
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #5b2891;
}

/* Modo Claro */
::-webkit-scrollbar-track {
  background: #f4eefa;
}

::-webkit-scrollbar-thumb {
  background: #cbb5e5;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b193d6;
}

/* ========================================================
 * EFEITOS VISUAIS E IDENTIDADE
 * ======================================================== */
/* Borda e iluminação dourada sutil */
.gold-border-glow {
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
}

/* ========================================================
 * PLANILHA FÍSICA DO MURAL DA RECEPÇÃO
 * ======================================================== */
.sheet-table {
  border-collapse: collapse;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

.sheet-table th, 
.sheet-table td {
  border: 1.5px solid #4a3b5a;
  padding: 6px 8px;
}

/* Bordas da planilha no Modo Escuro */
.dark .sheet-table th, 
.dark .sheet-table td {
  border: 1.5px solid #3c2a4f;
}

/* Bordas nítidas da planilha no Modo Claro (Visual Folha Impressa) */
html:not(.dark) .sheet-table th, 
html:not(.dark) .sheet-table td {
  border: 1.5px solid #2d2d2d;
}

/* ========================================================
 * STATUS DAS CÉLULAS (PRESENÇA NO MURAL)
 * ======================================================== */
/* Cliente Presente / Chegou (Verde suave com texto verde escuro) */
.sheet-arrived {
  background-color: #a7f3d0 !important;
  color: #064e3b !important;
  font-weight: 700;
}

.dark .sheet-arrived {
  background-color: #065f46 !important;
  color: #a7f3d0 !important;
  font-weight: 700;
}

/* Cliente Aguardando / Não Chegou */
.sheet-not-arrived {
  background-color: #ffffff;
  color: #180a29;
}

.dark .sheet-not-arrived {
  background-color: #170e28;
  color: #f1f5f9;
}

/* ========================================================
 * ESTILOS DE IMPRESSÃO (CTRL + P)
 * ======================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  
  #printable-sheet-target, 
  #printable-sheet-target * {
    visibility: visible;
  }
  
  #printable-sheet-target {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
/* Interruptor Cápsula Animado (Sol / Lua) */
.theme-switch-track {
  width: 64px !important;
  height: 32px !important;
  border-radius: 9999px !important;
  position: relative !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  padding: 3px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  overflow: hidden !important;
}

/* Fundo no Modo Claro (Gradiente Céu Azul e Dourado) */
html:not(.dark) .theme-switch-track {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 45%, #facc15 100%) !important;
}

/* Fundo no Modo Escuro (Céu Noturno / Violeta Profundo) */
.dark .theme-switch-track {
  background: linear-gradient(135deg, #1e1b4b 0%, #3b0764 50%, #581c87 100%) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
}

/* Esfera deslizante */
.theme-switch-thumb {
  width: 24px !important;
  height: 24px !important;
  border-radius: 9999px !important;
  position: absolute !important;
  top: 3px !important;
  left: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, box-shadow 0.4s ease !important;
}

/* Sol (Modo Claro) */
html:not(.dark) .theme-switch-thumb {
  transform: translateX(0px) !important;
  background: radial-gradient(circle at 30% 30%, #fffbeb 0%, #facc15 60%, #eab308 100%) !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.9), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Lua (Modo Escuro) */
.dark .theme-switch-thumb {
  transform: translateX(30px) !important;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e2e8f0 65%, #94a3b8 100%) !important;
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.7), 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* ========================================================
 * TRANSIÇÃO ATMOSFÉRICA GLOBAL (DIA / NOITE)
 * ======================================================== */

/* Interações rápidas e fluidas (hover / clique) */
button,
a,
input,
select,
textarea,
label,
.nav-item {
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease,
    opacity 0.15s ease;
}

button:not(:disabled):active,
.nav-item:active {
  transform: scale(0.96);
}

/* Transição suave Dia/Noite: só existe durante a troca de tema (não pesa nos botões) */
html.theme-animating,
html.theme-animating body,
html.theme-animating *:not(.theme-switch-thumb) {
  transition:
    background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.4s ease,
    box-shadow 0.5s ease !important;
}

/* Brilho dourado e bordas suaves no anoitecer */
.dark .gold-border-glow {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.18), inset 0 0 15px rgba(124, 58, 237, 0.08) !important;
  transition: box-shadow 0.75s ease, border-color 0.75s ease !important;
}

/* Animação celestial no interruptor */
.theme-switch-track {
  transition: background 0.65s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.65s ease, box-shadow 0.65s ease !important;
}

.theme-switch-thumb {
  transition: 
    transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), 
    background 0.65s cubic-bezier(0.4, 0, 0.2, 1), 
    box-shadow 0.65s ease !important;
}

/* Pulsação de luz do Sol / reflexo frio da Lua */
html:not(.dark) .theme-switch-thumb {
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.95), 0 0 24px rgba(250, 204, 21, 0.45) !important;
}

.dark .theme-switch-thumb {
  box-shadow: 0 0 14px rgba(226, 232, 240, 0.85), 0 0 22px rgba(167, 139, 250, 0.4) !important;
}

/* ========================================================
 * RELATÓRIO PERSONALIZADO (área de impressão dedicada)
 * ======================================================== */
#printable-report-target { display: none; }

@media print {
  body.printing-report { background: #ffffff !important; }
  body.printing-report > *:not(#printable-report-target) { display: none !important; }
  body.printing-report #printable-report-target {
    display: block !important;
    visibility: visible;
    position: static;
    width: 100%;
    background: #ffffff;
    color: #000000;
  }
  body.printing-report #printable-report-target * { visibility: visible; }
}


/* ========================================================
 * RESPONSIVIDADE (celular, tablet, notebook, desktop)
 * ======================================================== */
@supports (height: 100dvh) {
  #view-dashboard { height: 100dvh; }
}

/* iOS dá zoom automático em campos com fonte < 16px */
@media (max-width: 767px) {
  input, select, textarea { font-size: 16px !important; }
  body { -webkit-text-size-adjust: 100%; }
}

/* Alvos de toque confortáveis em telas sensíveis ao toque */
@media (pointer: coarse) {
  button, .nav-item { min-height: 36px; }
}

img { max-width: 100%; }

/* Diálogo de confirmação no padrão do sistema */
@keyframes confirmPop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


/* ========================================================
 * LOGO NO TEMA ESCURO: a logo é preta/roxa e some no fundo escuro.
 * Ganha uma "placa" clara com borda dourada discreta.
 * ======================================================== */
html.dark img[data-company-logo],
html.dark img.brand-logo {
  background: #ffffff;
  border-radius: 16px;
  padding: 6px 12px;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.45), 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* ========================================================
 * ACESSIBILIDADE
 * ======================================================== */
/* Foco sempre visível para quem navega pelo teclado */
:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; }

/* Quem pediu menos movimento no sistema não recebe animações */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Alvos de toque maiores em tablet/celular */
@media (pointer: coarse) {
  button, .nav-item, select { min-height: 40px; }
  input[type="checkbox"] { min-width: 22px; min-height: 22px; }
}

/* ========================================================
 * CONTRASTE (WCAG AA 4.5:1) no tema CLARO
 * Tons claros usados como cor de TEXTO ficam mais escuros; o tema escuro não muda.
 * ======================================================== */
html:not(.dark) .text-brand-gold { color: #7a5f08; }
html:not(.dark) .text-slate-400 { color: #556377; }
html:not(.dark) .text-slate-500 { color: #475569; }
html:not(.dark) .text-emerald-500 { color: #047857; }
html:not(.dark) .text-amber-500 { color: #8a5a00; }
html:not(.dark) .text-sky-500 { color: #0369a1; }
html:not(.dark) .text-rose-500 { color: #be123c; }
html:not(.dark) ::placeholder { color: #64748b; opacity: 1; }
/* texto branco sobre verde: verde mais escuro */
.bg-emerald-600 { background-color: #047857; }
.hover\:bg-emerald-500:hover { background-color: #059669; }
/* links violeta legíveis no tema escuro */
html.dark .text-brand-violet { color: #a78bfa; }

/* painel de modal recebe foco programático sem anel */
[tabindex="-1"]:focus { outline: none; }

/* ========================================================
 * ANIMAÇÕES (só transform/opacity: rodam na GPU, sem recalcular layout)
 * ======================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

/* Troca de aba */
.tab-pane:not(.hidden) { animation: fadeUp 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
/* Cartão de login */
#view-login > .max-w-md { animation: fadeUp 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
/* Modais: fundo esmaece, painel sobe */
[role="dialog"]:not(.hidden) { animation: overlayIn 0.16s ease-out both; }
[role="dialog"]:not(.hidden) > div { animation: modalIn 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Botão de login ocupado */
#login-submit[disabled] { opacity: 0.75; cursor: progress; }

/* Linhas clicáveis da tabela com foco de teclado visível */
tr[tabindex="0"]:focus-visible { outline: 2px solid #d4af37; outline-offset: -2px; }

/* ========================================================
 * AÇÃO PRINCIPAL FIXA NO CELULAR (FAB)
 * ======================================================== */
#mobile-fab { display: none; }
@media (max-width: 767px) {
  #mobile-fab:not([hidden]) {
    display: flex;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 35;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 9999px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: linear-gradient(90deg, #4c1d95, #7c3aed);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 25px -5px rgba(76, 29, 149, 0.55);
    animation: fadeUp 0.25s ease-out both;
  }
  /* Conteúdo não fica escondido atrás do botão */
  #view-dashboard main { padding-bottom: 88px; }
  /* Avisos aparecem acima do botão */
  #toast-wrapper { bottom: calc(84px + env(safe-area-inset-bottom)); right: 0; }
}

/* Mensagens do login (cores fixas: estas classes não estão no tailwind.css compilado) */
#login-error { color: #9f1239; background: #fff1f2; border-color: #fecdd3; }
html.dark #login-error { color: #fecdd3; background: rgba(136, 19, 55, 0.35); border-color: #881337; }
#login-caps { color: #92400e; }
html.dark #login-caps { color: #fcd34d; }

/* Botões de ação das tabelas ficam lado a lado (no celular empilhavam e cada linha ficava enorme) */
#clients-table-body td:last-child { white-space: nowrap; }

/* ========================================================
 * CONTRASTE (WCAG AA) no tema ESCURO — medido em todas as abas
 * ======================================================== */
html.dark .text-slate-500 { color: #94a3b8; }
html.dark .text-emerald-600\/80 { color: #34d399; }
html.dark .text-amber-600\/80 { color: #fbbf24; }
html.dark .bg-brand-lightBorder.rounded-full { background-color: #2e1f47; }
/* etiquetas de categoria no mural: a cor do texto vem inline e é escura */
html.dark .sheet-table span[style*="color"] { color: #f1f5f9 !important; }
/* texto branco sobre âmbar (ambos os temas): âmbar mais escuro */
.bg-amber-600 { background-color: #b45309; }
.hover\:bg-amber-500:hover { background-color: #d97706; }

/* CONTRASTE no tema CLARO — complementos medidos */
html:not(.dark) .text-pink-500 { color: #be185d; }
html:not(.dark) .text-teal-500,
html:not(.dark) .text-teal-600 { color: #0f766e; }
html:not(.dark) .text-emerald-600,
html:not(.dark) .text-emerald-600\/80 { color: #047857; }
html:not(.dark) .text-amber-600\/80 { color: #92400e; }
/* dourado sobre roxo escuro (iniciais da depiladora) continua dourado claro */
html:not(.dark) .bg-brand-purpleDeep.text-brand-gold { color: #d4af37; }

/* Toque: botões só com ícone ganham área mínima de 40px (WCAG 2.5.8) */
@media (pointer: coarse) {
  :is(main, [role="dialog"]) :is(button.p-1, button.p-1\.5, button.p-2):has(> svg:only-child) {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== Mural em tela cheia (depiladoras, TV ou ?mural) ===== */
html.modo-mural #app-sidebar,
html.modo-mural #mobile-menu-overlay,
html.modo-mural #mobile-fab,
html.modo-mural header.md\:hidden button[onclick="toggleMobileMenu()"],
html.modo-mural #section-recepcao > div > p:first-child { display: none !important; }
html.modo-mural main { padding-bottom: 16px; }
html.modo-mural .tab-pane:not(#section-recepcao) { display: none !important; }
html.modo-mural #section-recepcao { display: block !important; }
/* Depiladora só olha: sem marcar chegada nem editar */
html[data-funcao="depiladora"] #section-recepcao [onclick*="toggleReceptionArrival"],
html[data-funcao="depiladora"] #section-recepcao [oncontextmenu] { pointer-events: none; cursor: default; }

/* ===== Indicador de sincronização ===== */
#connection-indicator-desktop[data-sync="sync"] { color: #6d28d9; border-color: rgba(109, 40, 217, .35); background: rgba(109, 40, 217, .08); }
html.dark #connection-indicator-desktop[data-sync="sync"] { color: #c4b5fd; }
#dc-sync-pill { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; padding: 6px 12px; border-radius: 999px;
  font: 700 11px/1.2 Montserrat, system-ui, sans-serif; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); }
#dc-sync-pill[data-sync="off"] { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
#dc-sync-pill[data-sync="sync"] { background: #f5f3ff; color: #5b21b6; border-color: #c4b5fd; }
html.dark #dc-sync-pill { background: #052e22; color: #6ee7b7; border-color: #065f46; }
html.dark #dc-sync-pill[data-sync="off"] { background: #3a2a05; color: #fcd34d; border-color: #92400e; }
html.dark #dc-sync-pill[data-sync="sync"] { background: #241540; color: #c4b5fd; border-color: #5b21b6; }

/* ===== Importação de clientes ===== */
:is(#imp-modal, #wpp-modal) { position: fixed; inset: 0; z-index: 80; background: rgba(15, 8, 30, .6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: overlayIn .2s ease both; }
:is(#imp-modal, #wpp-modal) .imp-caixa { width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #1e1530; border-radius: 24px; padding: 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: modalIn .25s cubic-bezier(.2,.7,.2,1) both; }
html.dark :is(#imp-modal, #wpp-modal) .imp-caixa { background: #170e28; color: #f1f5f9; }
:is(#imp-modal, #wpp-modal) .imp-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
:is(#imp-modal, #wpp-modal) h3 { margin: 0; font-size: 18px; font-weight: 800; }
:is(#imp-modal, #wpp-modal) .imp-x { width: 40px; height: 40px; border-radius: 12px; font-size: 22px; line-height: 1; }
:is(#imp-modal, #wpp-modal) .imp-x:hover { background: rgba(124, 58, 237, .1); }
:is(#imp-modal, #wpp-modal) .imp-ajuda { font-size: 13px; color: #5b5470; margin: 0 0 12px; }
html.dark :is(#imp-modal, #wpp-modal) .imp-ajuda { color: #b9b2c9; }
:is(#imp-modal, #wpp-modal) .imp-arquivo { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 2px dashed #c4b5fd; border-radius: 18px; text-align: center; font-size: 13px; cursor: pointer; }
:is(#imp-modal, #wpp-modal) .imp-arquivo input { margin: 0 auto; max-width: 100%; font: inherit; }
:is(#imp-modal, #wpp-modal) .imp-erro { color: #b91c1c; font-size: 13px; font-weight: 600; min-height: 1em; }
html.dark :is(#imp-modal, #wpp-modal) .imp-erro { color: #fca5a5; }
:is(#imp-modal, #wpp-modal) .imp-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
:is(#imp-modal, #wpp-modal) .imp-campo { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; }
:is(#imp-modal, #wpp-modal) select { min-height: 40px; border-radius: 10px; border: 1px solid #e7ddf3; padding: 0 8px; background: #fbf9fe; color: inherit; font: inherit; font-weight: 500; }
html.dark :is(#imp-modal, #wpp-modal) select { background: #120a20; border-color: #2e1f47; }
:is(#imp-modal, #wpp-modal) .imp-resumo { font-weight: 700; font-size: 13px; margin: 14px 0 8px; color: #047857; }
html.dark :is(#imp-modal, #wpp-modal) .imp-resumo { color: #6ee7b7; }
:is(#imp-modal, #wpp-modal) .imp-rolagem { overflow-x: auto; }
:is(#imp-modal, #wpp-modal) .imp-tabela { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 520px; }
:is(#imp-modal, #wpp-modal) .imp-tabela th, :is(#imp-modal, #wpp-modal) .imp-tabela td { text-align: left; padding: 7px 8px; border-bottom: 1px solid rgba(124, 58, 237, .15); }
:is(#imp-modal, #wpp-modal) .imp-acoes { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
:is(#imp-modal, #wpp-modal) .imp-acoes button { min-height: 44px; padding: 0 16px; border-radius: 14px; font-weight: 700; font-size: 13px; border: 1px solid rgba(124, 58, 237, .3); }
:is(#imp-modal, #wpp-modal) .imp-primario { background: linear-gradient(90deg, #4c1d95, #7c3aed); color: #fff; border-color: transparent !important; }
:is(#imp-modal, #wpp-modal) .imp-primario[disabled] { opacity: .5; cursor: not-allowed; }

/* Botão "Sair" do mural (o menu lateral fica escondido nesse modo) */
#mural-sair { display: none; }
html.modo-mural #mural-sair {
  display: inline-flex; align-items: center; gap: 6px; position: fixed; z-index: 60;
  top: calc(10px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right));
  min-height: 40px; padding: 0 14px; border-radius: 999px; font: 700 13px/1 Montserrat, system-ui, sans-serif;
  background: #ffffff; color: #be123c; border: 1px solid #fecdd3; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); cursor: pointer;
}
html.modo-mural #mural-sair:hover { background: #fff1f2; }
html.dark.modo-mural #mural-sair { background: #2a0f18; color: #fda4af; border-color: #7f1d1d; }
html.modo-mural header.sticky { padding-right: 96px; }

/* ===== Mural simplificado das depiladoras ===== */
#mural-depiladora { display: none; }
html[data-funcao="depiladora"] #section-recepcao > :not(#mural-depiladora) { display: none !important; }
html[data-funcao="depiladora"] #mural-depiladora { display: block; max-width: 720px; margin: 0 auto; }
html[data-funcao="depiladora"] main { padding: 12px 12px 24px !important; }
html[data-funcao="depiladora"] #section-recepcao { margin: 0 !important; }

.md-topo { position: sticky; top: -12px; z-index: 5; padding: 12px 0; margin-top: -12px; background: var(--t-bg, #f6f4fa); }
.md-filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 18px; background: var(--t-card, #f4f0fb); border: 1px solid var(--t-border, #e8e1f3); }
.md-filtros button { min-height: 46px; border-radius: 14px; font: 800 15px/1 Montserrat, system-ui, sans-serif; color: var(--t-muted, #6b6280); background: transparent; border: 0; cursor: pointer; transition: background-color .15s, color .15s; }
.md-filtros button[aria-selected="true"] { background: var(--t-accent, #5b34d6); color: #fff; box-shadow: 0 6px 14px -8px rgba(91, 52, 214, .8); }
html.dark .md-filtros button[aria-selected="true"] { background: #6d4ae8; }
.md-resumo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: var(--t-surface, #fff); border: 1px solid var(--t-border, #e8e1f3); box-shadow: var(--t-shadow); }
.md-dia { display: block; font-size: 13px; font-weight: 700; color: var(--t-muted, #6b6280); text-transform: capitalize; }
.md-data { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.3px; color: var(--t-text, #1c1527); }
.md-total { text-align: right; line-height: 1; }
.md-total-num { display: block; font-size: 36px; font-weight: 900; color: #047857; }
html.dark .md-total-num { color: #6ee7b7; }
.md-total-txt { font-size: 12px; font-weight: 700; color: var(--t-muted, #6b6280); }

.md-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.md-grupo { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: start; }
.md-hora { padding: 8px 0; text-align: center; border-radius: 12px; font: 800 15px/1 ui-monospace, "SF Mono", Consolas, monospace; color: var(--t-accent-strong, #3f2399); background: var(--t-accent-soft, #efe9ff); }
.md-cards { display: grid; gap: 8px; }
.md-card { padding: 12px 14px; border-radius: 16px; background: var(--t-surface, #fff); border: 1px solid var(--t-border, #e8e1f3); border-left: 4px solid #d4af37; box-shadow: var(--t-shadow); }
.md-card.md-chegou { border-left-color: #10b981; background: color-mix(in srgb, #10b981 7%, var(--t-surface, #fff)); }
.md-linha { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.md-nome { font-size: 16px; font-weight: 800; color: var(--t-text, #1c1527); margin-right: auto; }
.md-tag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.md-tag-1vez { background: #f59e0b; color: #1c1100; }
.md-tag-ok { background: #d1fae5; color: #065f46; }
.md-tag-wait { background: #fef3c7; color: #92400e; }
html.dark .md-tag-ok { background: #064e3b; color: #a7f3d0; }
html.dark .md-tag-wait { background: #422006; color: #fde68a; }
.md-servicos { margin-top: 8px; }
.md-servicos span { font-size: 12.5px !important; padding: 3px 8px !important; }
html.dark .md-servicos span[style*="color"] { color: #f1f5f9 !important; }
.md-passou { opacity: .55; }
.md-vazio { padding: 40px 16px; text-align: center; font-weight: 700; color: var(--t-muted, #6b6280); border: 2px dashed var(--t-border, #e8e1f3); border-radius: 18px; }

/* Interruptor de tema: tamanho fixo (a regra geral de 40px de toque deixava sobra embaixo da bolinha) */
.theme-switch-track { min-height: 32px !important; flex-shrink: 0; }
