/* 🏠 Meu dia (app/meu-dia.js) — mesma cara da prévia aprovada em 28/09/2026 */
.md-hello { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.md-hello h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.5px; }
.md-hello p { margin: 0; color: var(--muted); }
.md-hello-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.md-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.md-chip.plantao { background: #efeafe; color: #5b3fc4; }
.md-home { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
/* interruptor no lugar da caixinha */
.md-home input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.md-home i { position: relative; flex-shrink: 0; width: 30px; height: 18px; border-radius: 999px; background: var(--tz-n300); transition: background .15s; }
.md-home i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.md-home input:checked + i { background: var(--tz-primary); }
.md-home input:checked + i::after { transform: translateX(12px); }
.md-home input:focus-visible + i { outline: 2px solid var(--tz-primary); outline-offset: 2px; }
.md-seg { display: flex; padding: 3px; border: 1px solid var(--tz-outline-container); border-radius: var(--tz-r-md); background: var(--surface); }
.md-seg button { padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; font-size: 12.5px; color: var(--muted); font-weight: 700; cursor: pointer; }
.md-seg button.on { background: var(--blue2); color: var(--blue); }
.md-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
/* cartões zerados de Negócios e Avisos são ruído: saem (o painel de baixo continua quando houver algo) */
.md-card.md-zero { display: none; }
.md-card { text-align: left; background: var(--surface); border: 1px solid var(--tz-outline-container); border-radius: var(--tz-r-md); padding: 12px 14px; color: var(--ink); cursor: pointer; font: inherit; }
.md-card:hover { border-color: #a9bfea; }
.md-card span { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.md-card b { display: block; font-size: 24px; margin-top: 2px; }
.md-card small { font-size: 11.5px; color: var(--muted); }
.md-card small.bad, .md-team .bad { color: #c2410c; font-weight: 700; }
.md-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.md-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.md-box { background: var(--surface); border: 1px solid var(--tz-outline-container); border-radius: var(--tz-r-md); overflow: hidden; scroll-margin-top: 80px; }
.md-box h3 { margin: 0; padding: 13px 16px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--tz-outline-divider); }
.md-box h3 small { color: var(--muted); font-weight: 600; font-size: 12px; }
.md-box h3 a { color: var(--blue); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.md-row { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--tz-outline-divider); }
.md-row:last-child { border-bottom: 0; }
.md-click, [data-agenda], [data-open-task] { cursor: pointer; }
.md-click:hover, .md-agenda .md-row:hover { background: var(--panel, #f8fafc); }
.md-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; flex: 0 0 auto; }
.md-grow { flex: 1; min-width: 0; }
.md-grow b { font-size: 13.5px; }
.md-grow p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-grow p.md-text { white-space: normal; color: var(--ink); }
.md-tag { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; background: #f0f3f7; color: #59667a; margin-left: 5px; white-space: nowrap; }
.md-tag.red { background: #fdeae4; color: #c2410c; } .md-tag.green { background: #e3f6ea; color: #177752; } .md-tag.amber { background: #fff4dc; color: #b45309; }
.md-tag.blue { background: var(--blue2); color: var(--blue); } .md-tag.g { background: #e8f0fe; color: #1a73e8; } .md-tag.purple { background: #efeafe; color: #5b3fc4; }
.md-wait { font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.md-wait.bad { color: #c2410c; }
.md-btn { padding: 6px 12px; border-radius: var(--tz-r-sm); border: 1px solid var(--tz-outline-control); background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; cursor: pointer; }
.md-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.md-group { padding: 8px 16px 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.md-group.bad { color: #c2410c; }
.md-check { width: 20px; height: 20px; border: 2px solid #b9c3d3; border-radius: 6px; background: transparent; flex: 0 0 auto; cursor: pointer; padding: 0; }
.md-check:hover { border-color: #16a34a; }
.md-check.on { background: #16a34a; border-color: #16a34a; }
.md-check.off { border-style: dashed; cursor: default; }
.md-done { opacity: .45; text-decoration: line-through; }
.md-time { width: 78px; flex: 0 0 auto; font-size: 12px; font-weight: 800; }
.md-time small { display: block; color: var(--muted); font-weight: 600; }
.md-agenda .md-row { border-left: 3px solid transparent; }
.md-agenda .md-row.visita { border-left-color: var(--blue); }
.md-agenda .md-row.google { border-left-color: #1a73e8; background: repeating-linear-gradient(135deg, rgba(66,133,244,.06) 0 6px, transparent 6px 12px); }
.md-agenda .md-row.plantao { border-left-color: #7c5cd6; }
.md-agenda .md-row.now { background: var(--blue2); }
.md-agenda .md-row.done { opacity: .55; }
.md-val { font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.md-notice { margin: 12px 16px; padding: 11px 13px; border: 1px solid #93c5fd; border-left: 4px solid var(--blue); border-radius: 10px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.md-notice.important { border-color: #fca5a5; border-left-color: #dc2626; }
.md-notice p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.md-empty { margin: 0; padding: 16px; color: var(--muted); font-size: 13px; }
.md-scroll { overflow-x: auto; }
.md-team { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-team th, .md-team td { padding: 9px 14px; border-bottom: 1px solid var(--tz-outline-divider); text-align: left; white-space: nowrap; }
.md-team th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.md-team small { color: var(--muted); }
.md-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; margin-right: 7px; }
.md-dot.on { background: #16a34a; }
@media (max-width: 1100px) { .md-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .md-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-grid { grid-template-columns: 1fr; }
  .md-row .md-btn { display: none; }
  .md-hello-right { width: 100%; }
  /* celular (23/10/2026): os números em 3 colunas (2 + 1 deixava um buraco) e o cabeçalho dos quadros quebra linha
     inteira em vez de espremer o título em 3 linhas */
  .md-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .md-card { padding: 10px !important; min-width: 0; }
  .md-card span { font-size: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .md-card small { font-size: 12px !important; }
  .md-box h3 { flex-wrap: wrap; row-gap: 8px; }
  .md-box h3 > a, .md-box h3 > button, .md-box h3 > span { white-space: nowrap; }
  .md-box h3 a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; border-radius: 8px; background: var(--panel); }
  .md-box .md-empty { min-height: 0; padding: 11px 14px !important; line-height: 1.4; }
  .md-btn { min-height: 40px; padding-inline: 12px; }
  .md-seg button { min-height: 40px; }
}

/* painéis sem nada para mostrar saem da tela (limpeza visual 20/10/2026); Esperando, Tarefas e Agenda ficam com a mensagem */
#md-negocios:has(.md-empty), #md-mural:has(.md-empty) { display: none; }
.md-card small.warn { color: var(--tz-warning, #b45309); font-weight: 600; }
