/* Dashboard: cartões, lembretes e aniversariantes */

  /* ================= DASHBOARD VIEW ================= */
  .content-dash{
    padding: 28px 36px 48px 36px; display:grid;
    grid-template-columns: 1fr 340px; gap: 22px; align-items:start;
  }
  .col{ display:flex; flex-direction:column; gap:22px; min-width:0; }

  .card{ background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); padding: 22px 24px 26px 24px; }
  .card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 6px; }
  .card-title{ font-family:'Playfair Display', serif; display:flex; align-items:center; gap:9px; font-size:17.5px; font-weight:700; color:var(--text-dark); }
  .dot{ width:7px; height:7px; border-radius:50%; background: var(--dot-blue); flex-shrink:0; }
  .info-icon{ color: var(--text-muted); opacity:.8; }
  .date-pill{ font-size:11.5px; font-weight:700; letter-spacing:.04em; color: var(--text-muted); }

  .btn-primary{
    display:flex; align-items:center; gap:7px; background: var(--sidebar-bg); color:#fff; border:none;
    padding: 9px 16px; border-radius: 9px; font-size:13.5px; font-weight:700; cursor:pointer;
    transition: background .15s ease; white-space:nowrap;
  }
  .btn-primary:hover{ background: var(--sidebar-active); }

  .table-header{
    display:grid; grid-template-columns: 1fr 1fr 80px; padding: 14px 4px 10px 4px;
    border-bottom: 1px solid var(--border); font-size:11.5px; font-weight:700;
    letter-spacing:.06em; color: var(--text-muted);
  }
  .table-header span:last-child{ text-align:right; }

  .empty-state{ padding: 56px 10px; text-align:center; color: var(--text-muted); font-size:14.5px; }

  .card-dark{ background: var(--sidebar-bg); border-radius: var(--radius); padding: 18px 18px 20px 18px; color:#fff; }
  .card-dark .card-title{ color:#fff; }
  .card-dark .card-head{ padding: 2px 4px 12px 4px; }

  .product-item{
    display:flex; gap:12px; background:#fff; border-radius: 12px; padding: 12px 12px;
    margin-bottom: 10px; align-items:flex-start;
  }
  .product-item:last-child{ margin-bottom:0; }
  .product-thumb{
    width:42px; height:52px; border-radius:8px; background: linear-gradient(160deg, #dfe7ec, #c7d3da);
    flex-shrink:0; display:flex; align-items:center; justify-content:center; color:#7c8992;
  }
  .product-info{ min-width:0; flex:1; }
  .product-title{ font-size: 13.5px; font-weight: 700; color: var(--text-dark); line-height:1.3; }
  .product-brand{ font-size: 12px; color: var(--text-muted); margin: 1px 0 4px 0; }
  .product-desc{
    font-size: 12px; color: #7a848a; line-height:1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden;
  }
  .tag{
    display:inline-block; margin-top:7px; font-size:10.5px; font-weight:700; letter-spacing:.03em;
    color: var(--tag-text); background: var(--tag-bg); padding: 3px 9px; border-radius: 20px;
  }
  .card-close{ background:none; border:none; color:#9aa5ab; cursor:pointer; padding:2px; }

  /* ---------- Lembretes ---------- */
  .lemb-item{ border:1px solid var(--border); border-radius:12px; padding:10px 12px; margin-top:8px; background:#fff; }
  .lemb-item.atrasado{ border-color:#f1c4c4; }
  .lemb-topo{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:3px; }
  .lemb-tipo{ font-size:10.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; padding:2px 8px; border-radius:10px; }
  .lemb-tipo.pos{ background:#e8f0fb; color:#35609a; }
  .lemb-tipo.retorno{ background:#e7f5ec; color:#23774a; }
  .lemb-tipo.sumida{ background:#fdf0e3; color:#9a5a17; }
  .lemb-tipo.manual{ background: var(--pink-light); color: var(--sidebar-bg); }
  .lemb-tipo.vespera{ background:#f3ecfb; color:#6a3fa0; }
  .lemb-tipo.aniversario{ background:#fdeef3; color:#b0336a; }
  .lemb-quando{ font-size:11.5px; color: var(--text-muted); font-weight:700; margin-left:auto; }
  .lemb-quando.atrasado{ color:#b42318; }
  .lemb-paciente{ font-weight:700; color: var(--text-dark); font-size:14px; cursor:pointer; }
  .lemb-paciente:hover{ text-decoration:underline; }
  .lemb-texto{ font-size:13px; color: var(--text-dark); margin-top:1px; line-height:1.4; }
  .lemb-acoes{ display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; position:relative; }
  .lemb-btn{
    border:1px solid var(--border); background:#fff; border-radius:8px; padding:6px 10px; font-size:12.5px;
    font-weight:700; color: var(--text-dark); cursor:pointer; display:inline-flex; align-items:center; gap:5px;
  }
  .lemb-btn:hover{ background:#f7f8f9; }
  .lemb-btn.whats{ background:#25d366; border-color:#25d366; color:#fff; }
  .lemb-btn.whats:hover{ background:#1ebe5a; }
  .lemb-adiar-menu{
    position:absolute; top:calc(100% + 4px); z-index:30; background:#fff; border:1px solid var(--border);
    border-radius:9px; box-shadow:0 8px 24px rgba(0,0,0,.12); overflow:hidden; min-width:150px;
  }
  .lemb-adiar-menu button{ display:block; width:100%; text-align:left; background:none; border:none; padding:9px 12px; font-size:13px; cursor:pointer; color: var(--text-dark); }
  .lemb-adiar-menu button:hover{ background: var(--tag-bg); }
  .lemb-rodape{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:12px; color: var(--text-muted); }
  .lemb-rodape a{ color: var(--sidebar-bg); font-weight:700; cursor:pointer; text-decoration:underline; }

  /* ---------- Aniversariantes do Dia ---------- */
  .aniv-item{
    display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--border);
    border-radius:12px; margin-top:8px; cursor:pointer; background:#fff;
  }
  .aniv-item:hover{ border-color: var(--gold); background:#fafbfc; }
  .aniv-avatar{
    width:38px; height:38px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center;
    font-weight:800; font-size:13px; overflow:hidden;
  }
  .aniv-avatar img{ width:100%; height:100%; object-fit:cover; }
  .aniv-info{ flex:1; min-width:0; }
  .aniv-nome{ font-weight:700; color: var(--text-dark); font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .aniv-sub{ color: var(--text-muted); font-size:12px; }
  .aniv-whats{
    flex-shrink:0; border:none; border-radius:9px; padding:8px 11px; background:#25d366; color:#fff;
    font-size:12.5px; font-weight:700; cursor:pointer; display:flex; align-items:center; gap:6px; white-space:nowrap;
  }
  .aniv-whats:hover{ background:#1ebe5a; }
  .aniv-whats[disabled]{ background: var(--tag-bg); color: var(--text-muted); cursor:not-allowed; }
  .aniv-proximos-titulo{ font-size:12px; font-weight:800; color: var(--text-muted); text-transform:uppercase; letter-spacing:.04em; margin:14px 0 2px 0; }
  .aniv-item.proximo{ padding:8px 12px; }
  .aniv-item.proximo .aniv-avatar{ width:30px; height:30px; font-size:11px; }
  .aniv-item.hoje{ border-color: var(--pink); background: var(--pink-light); }
  .aniv-item.hoje{ flex-wrap:wrap; }
  .aniv-item.hoje .aniv-whats{ flex-basis:100%; justify-content:center; padding:9px 11px; }
  .aniv-item.hoje .aniv-nome{ white-space:normal; }
  .aniv-item.passou{ opacity:.6; }
  .aniv-dia{
    flex-shrink:0; width:40px; text-align:center; line-height:1.05;
    font-weight:800; font-size:17px; color: var(--text-dark);
  }
  .aniv-dia small{ display:block; font-size:10px; font-weight:700; color: var(--text-muted); letter-spacing:.04em; }
  .aniv-badge-hoje{ display:inline-block; font-size:10.5px; font-weight:800; color:#fff; background: var(--pink); border-radius:10px; padding:2px 7px; margin-left:6px; vertical-align:middle; }
  .aniv-dica{ font-size:12px; color: var(--text-muted); margin-top:12px; line-height:1.45; }
  .aniv-dica a{ color: var(--sidebar-bg); font-weight:700; cursor:pointer; text-decoration:underline; }

  /* ---------- Acompanhamentos (planos de skincare perto do fim) ---------- */
  .table-header.acomp-grid, .acomp-row{ grid-template-columns: minmax(0,1.1fr) minmax(0,1fr) auto; column-gap:12px; }
  .table-header.acomp-grid span:nth-child(2){ text-align:left; }
  .acomp-row{ display:grid; align-items:center; padding:12px 4px; border-bottom:1px solid var(--border); }
  .acomp-row:last-child{ border-bottom:none; }
  .acomp-nome{ font-weight:600; color: var(--pink); cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .acomp-nome:hover{ text-decoration:underline; }
  .acomp-sub{ font-size:12px; color: var(--text-muted); margin-top:4px; }
  .acomp-acoes{ display:flex; gap:6px; justify-content:flex-end; }
  .acomp-acoes .lemb-btn{ white-space:nowrap; }
  @media (max-width: 520px){
    .table-header.acomp-grid{ display:none; }
    .acomp-row{ grid-template-columns: 1fr; row-gap:8px; }
    .acomp-acoes{ justify-content:flex-start; }
  }
