/* Acabamento visual do computador (v0.18): só acima de 900 px. Não muda nenhuma função, só a aparência.
 * Princípios: números sempre alinhados, uma única sombra para tudo que "flutua", cabeçalhos de tabela discretos,
 * foco sempre em roxo, ícones de linha no menu e os números do dia no topo do Início. */
@media (min-width: 901px) {
  :root { --radius: 12px; --shadow: 0 1px 2px rgba(20, 20, 45, .05), 0 10px 24px -14px rgba(20, 20, 45, .18); }
  body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  .view { padding: 26px 32px 32px; }
  .main::after { opacity: .6; }                          /* marca d'água mais sutil, não disputa com os dados */

  /* títulos */
  .page-head h1 { font-size: 25px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
  .page-head p { font-size: 13.5px; margin-top: 4px; }

  /* menu lateral */
  .sidebar { background: linear-gradient(180deg, #0e0e15 0%, #0b0b0f 100%); }
  .nav-item { padding: 9px 12px; border-radius: 10px; font-weight: 500; transition: background .15s ease, color .15s ease; }
  .nav-item.active { background: rgba(255, 255, 255, .08); font-weight: 600; }
  .nav-item .ico, .nav-head .ico { display: inline-flex; width: 22px; justify-content: center; font-size: 0; opacity: .85; }
  .nav-item.active .ico { opacity: 1; }
  .nav-item .ico svg, .nav-head .ico svg { display: block; }
  .nav-head { transition: background .15s ease; }

  /* tabelas */
  th { background: #f7f8fb; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #6b6f80; padding: 11px 14px; border-bottom: 1px solid #e6e8f0; }
  td { padding: 12px 14px; border-bottom: 1px solid #f0f1f6; font-variant-numeric: tabular-nums; }
  tbody tr:last-child td { border-bottom: 0; }
  tbody tr { transition: background .12s ease; }
  tbody tr:hover { background: #f7f3fd; }
  .card > .table-wrap, .card .table-wrap { border-radius: var(--radius); }

  /* cartões e indicadores */
  .card { border-color: #eaecf3; }
  .kpi { padding: 18px 20px; border-left-width: 4px; }
  .kpi b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .kpi span { font-size: 13px; }
  .hm-m b { font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .hm-metrics { border-radius: 16px; border-color: #eaecf3; box-shadow: var(--shadow); }
  .hm-hoje { border-radius: 16px; padding: 18px 22px 10px; }
  .falta-box { border-left-width: 3px; }

  /* botões, campos e selos */
  .btn { border-radius: 10px; font-weight: 600; transition: background .15s ease, box-shadow .15s ease, transform .1s ease; }
  .btn:active { transform: scale(.98); }
  .btn.primary { box-shadow: 0 6px 14px -8px rgba(122, 20, 212, .75); }
  input[type=text], input[type=tel], input[type=email], input[type=date], input[type=time], input[type=search], select, textarea { border-radius: 10px; border-color: #dcdfea; transition: border-color .15s ease, box-shadow .15s ease; }
  input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; box-shadow: 0 0 0 4px rgba(122, 20, 212, .13); }
  .btn:focus-visible, .nav-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
  .pill { font-weight: 600; padding: 3px 10px; }
  .tab { font-weight: 600; transition: background .15s ease, border-color .15s ease; }
  .tab:hover { border-color: #cfd2e0; }
  .modal { border-radius: 16px; }
  .modal-head h2 { letter-spacing: -.01em; }

  /* Início: os números do dia vêm primeiro, depois o que pede ação */
  .view:has(> .hm-top) { display: flex; flex-direction: column; }
  .view:has(> .hm-top) > * { order: 5; flex: none; }
  .view > .hm-top { order: 0; }
  .view > .hm-metrics { order: 1; margin-bottom: 18px; }
  .view > .hm-hoje { order: 2; }
  .view > .hm-guia { order: 9; }
}
@media (min-width: 901px) and (max-width: 1150px) { .view { padding: 22px 18px 28px; } .falta-box td { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
