/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sidebar-w:   260px;
    --topbar-h:    56px;
    --bg:          #f0f4f8;
    --surface:     #ffffff;
    --sidebar-bg:  #1e293b;
    --sidebar-txt: #94a3b8;
    --accent:      #3b82f6;
    --accent-dark: #1d4ed8;
    --danger:      #ef4444;
    --warn:        #f97316;
    --ok:          #22c55e;
    --txt:         #1e293b;
    --txt-muted:   #64748b;
    --border:      #e2e8f0;
    --radius:      10px;
    --shadow:      0 1px 4px rgba(0,0,0,.08);
}

html {
    height: 100%;
    font-size: 16px;
}
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--txt);
    min-height: 100%;
    display: block; /* NUNCA flex — os modais viram colunas */
    -webkit-text-size-adjust: 100%;
}

/* ════════════════════════════════════════════════════════════════════════════
   LOGIN
════════════════════════════════════════════════════════════════════════════ */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.login-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    text-align: center;
}
.login-icon  { font-size: 3rem; margin-bottom: 12px; }
.login-card h1  { font-size: 1.7rem; font-weight: 800; }
.login-sub   { color: var(--txt-muted); font-size: .9rem; margin: 6px 0 28px; }
.login-erro  {
    background: #fee2e2; color: #b91c1c;
    border-radius: 8px; padding: 10px 14px;
    font-size: .85rem; margin-bottom: 16px; text-align: left;
}
.login-hint  { font-size: .75rem; color: var(--txt-muted); margin-top: 20px; line-height: 1.6; }
.btn-full    { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

/* ════════════════════════════════════════════════════════════════════════════
   LAYOUT PC: sidebar fixa + conteúdo à direita
════════════════════════════════════════════════════════════════════════════ */

/* Sidebar */
#sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
    transition: transform .25s ease;
}

#sidebar .brand {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
    cursor: pointer;
    transition: background .15s;
}
#sidebar .brand:hover {
    background: rgba(255,255,255,.05);
}
#sidebar .brand h1 { font-size: 1rem; font-weight: 700; color: #fff; }
#sidebar .brand p  { font-size: .75rem; color: var(--sidebar-txt); margin-top: 2px; }

#sidebar nav  { flex: 1; padding: 12px 0; overflow-y: auto; }

#sidebar .sidebar-footer {
    flex-shrink: 0;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.nav-label {
    font-size: .65rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--sidebar-txt); padding: 8px 20px 4px;
}

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px;
    color: var(--sidebar-txt);
    cursor: pointer; font-size: .88rem;
    border: none; background: none;
    width: 100%; text-align: left;
    transition: background .15s, color .15s;
    min-height: 44px;
}
.nav-item:hover  { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(59,130,246,.25);  color: #fff; }

.nav-item .dot {
    width: 8px; height: 8px;
    border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.nav-item .count {
    margin-left: auto;
    background: rgba(255,255,255,.12);
    color: #cbd5e1; font-size: .7rem; font-weight: 600;
    border-radius: 20px; padding: 2px 8px; min-width: 24px; text-align: center;
}
.nav-item .count.zero { opacity: .35; }

.btn-nova-escala {
    display: block; width: 100%;
    padding: 10px 12px; margin-top: 2px;
    background: rgba(59,130,246,.2);
    border: 1px dashed rgba(59,130,246,.5);
    color: #93c5fd; border-radius: var(--radius);
    font-size: .82rem; cursor: pointer;
    transition: background .15s; min-height: 44px;
}
.btn-nova-escala:hover { background: rgba(59,130,246,.35); }

/* Conteúdo principal — fica à direita da sidebar */
#main {
    margin-left: var(--sidebar-w);
    padding: 32px 40px;
    min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════════════════════
   TOPBAR (só aparece no mobile)
════════════════════════════════════════════════════════════════════════════ */
#topbar {
    display: none;          /* escondido no PC */
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--sidebar-bg);
    align-items: center;
    padding: 0 16px; gap: 12px;
    z-index: 300;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
#topbar h2 {
    font-size: .95rem; font-weight: 700; color: #fff;
    flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#btn-menu {
    background: none; border: none; color: #fff;
    cursor: pointer; padding: 8px;
    display: flex; align-items: center;
    min-width: 44px; min-height: 44px;
}

/* FAB (botão flutuante — só mobile) */
#fab {
    display: none;          /* escondido no PC */
    position: fixed;
    bottom: 24px; right: 20px;
    width: 56px; height: 56px;
    background: var(--accent); color: #fff;
    border: none; border-radius: 50%;
    font-size: 1.8rem; cursor: pointer;
    box-shadow: 0 4px 16px rgba(59,130,246,.5);
    z-index: 150;
    align-items: center; justify-content: center;
    transition: transform .15s;
}
#fab:active { transform: scale(.92); }

/* Overlay fundo para sidebar mobile */
#sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4); z-index: 199;
}
#sidebar-overlay.open { display: block; }

/* ════════════════════════════════════════════════════════════════════════════
   TELAS
════════════════════════════════════════════════════════════════════════════ */
.screen { display: none; }
.screen.active { display: block; }

/* Cabeçalho de cada tela */
.page-header {
    display: flex; align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.page-header h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.page-header p  { font-size: .85rem; color: var(--txt-muted); margin-top: 4px; }

/* ════════════════════════════════════════════════════════════════════════════
   BOTÕES
════════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--radius);
    font-size: .88rem; font-weight: 600;
    cursor: pointer; border: none; white-space: nowrap;
    transition: background .15s, transform .1s;
    min-height: 44px;
}
.btn:active { transform: scale(.97); }

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

.btn-ghost {
    background: var(--surface); color: var(--txt-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--border); }

.btn-danger { background: #fee2e2; color: #b91c1c; border: none; }
.btn-danger:hover { background: #fecaca; }

/* ════════════════════════════════════════════════════════════════════════════
   LISTAS DE PENDÊNCIAS
════════════════════════════════════════════════════════════════════════════ */
.lista-section { margin-bottom: 36px; }

.section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: .75rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--txt-muted); margin-bottom: 12px;
}
.section-title .badge {
    background: var(--border); color: var(--txt-muted);
    border-radius: 20px; padding: 1px 8px; font-size: .72rem;
}

/* Card de pendência */
.card-pendencia {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 14px;
    border-left: 4px solid var(--border);
    transition: box-shadow .15s, opacity .25s, transform .25s;
}
.card-pendencia:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }

/* Cores de urgência */
.card-pendencia.vencida { border-left-color: #7f1d1d; }
.card-pendencia.hoje    { border-left-color: var(--danger); }
.card-pendencia.amanha  { border-left-color: var(--danger); }
.card-pendencia.urgente { border-left-color: var(--warn); }
.card-pendencia.proximo { border-left-color: #eab308; }
.card-pendencia.ok      { border-left-color: var(--ok); }

.card-info { flex: 1; min-width: 0; }

.card-descricao {
    font-size: .95rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card-meta {
    display: flex; align-items: center;
    gap: 6px; margin-top: 5px; flex-wrap: wrap;
}

.tag-escala {
    font-size: .72rem; font-weight: 600;
    background: #dbeafe; color: #1d4ed8;
    padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.tag-rep {
    font-size: .72rem; color: var(--txt-muted);
    background: var(--bg); padding: 2px 8px;
    border-radius: 20px; white-space: nowrap;
}
.tag-prazo {
    font-size: .74rem; font-weight: 600;
    padding: 2px 10px; border-radius: 20px; white-space: nowrap;
}
.tag-prazo.vencida { background: #fee2e2; color: #b91c1c; }
.tag-prazo.hoje    { background: #fee2e2; color: var(--danger); }
.tag-prazo.amanha  { background: #fee2e2; color: var(--danger); }
.tag-prazo.urgente { background: #ffedd5; color: #c2410c; }
.tag-prazo.proximo { background: #fef9c3; color: #854d0e; }
.tag-prazo.ok      { background: #dcfce7; color: #15803d; }

.card-actions { display: flex; gap: 6px; flex-shrink: 0; }

.btn-concluir {
    padding: 8px 16px;
    background: #dcfce7; color: #15803d;
    border: none; border-radius: 8px;
    font-size: .82rem; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    min-height: 40px;
    transition: background .15s;
}
.btn-concluir:hover { background: #bbf7d0; }

.btn-icon {
    width: 40px; height: 40px;
    border: none; border-radius: 8px;
    background: var(--bg); color: var(--txt-muted);
    cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.btn-icon.edit:hover { background: #dbeafe; color: var(--accent); }
.btn-icon:not(.edit):hover { background: #fee2e2; color: var(--danger); }

/* Empty state */
.empty-state {
    text-align: center; padding: 40px 20px;
    background: var(--surface); border-radius: var(--radius);
    border: 2px dashed var(--border);
}
.empty-state .icon { font-size: 2rem; margin-bottom: 10px; }
.empty-state p { color: var(--txt-muted); font-size: .9rem; }

/* ════════════════════════════════════════════════════════════════════════════
   ESCALAS GRID
════════════════════════════════════════════════════════════════════════════ */
.escalas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.escala-card {
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px 16px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
}
.escala-card .nome-wrap .nome { font-size: .95rem; font-weight: 600; display: block; }
.escala-card .nome-wrap .sub  { font-size: .74rem; color: var(--txt-muted); margin-top: 3px; }
.escala-card-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════════════
   PERFIL
════════════════════════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px; margin-bottom: 24px;
}
.stat-card {
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 24px 16px; text-align: center;
}
.stat-card .stat-num   { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-card .stat-label { font-size: .78rem; color: var(--txt-muted); margin-top: 6px; }

.perfil-card {
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 24px;
    margin-bottom: 16px;
}
.perfil-card h3 { font-size: 1rem; font-weight: 700; }

.senha-ok {
    background: #dcfce7; color: #15803d;
    border-radius: 8px; padding: 10px 14px; font-size: .85rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   FORMULÁRIO
════════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block; font-size: .82rem;
    font-weight: 600; margin-bottom: 6px; color: var(--txt);
}
.form-group input,
.form-group select {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: .95rem; color: var(--txt); background: var(--bg);
    outline: none; transition: border-color .15s;
    font-family: inherit; min-height: 46px;
    appearance: auto;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); background: #fff; }

.form-erro {
    color: var(--danger); font-size: .82rem;
    margin-bottom: 12px; min-height: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;   /* cobre tudo — não usa inset pra ser compatível */
    background: rgba(0, 0, 0, 0.55);
    z-index: 9000;               /* alto o suficiente para ficar acima de tudo */
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
    background: var(--surface);
    border-radius: 16px;
    padding: 28px;
    width: 100%; max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: slide-up .2s ease;
}
@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.modal h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

.modal-actions {
    display: flex; gap: 10px;
    justify-content: flex-end;
    margin-top: 20px; flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════════════════
   TOAST
════════════════════════════════════════════════════════════════════════════ */
#toast {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1e293b; color: #fff;
    padding: 13px 22px; border-radius: 10px;
    font-size: .88rem; font-weight: 500;
    z-index: 999; pointer-events: none;
    max-width: 90vw; text-align: center;
    transition: transform .3s ease;
    white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════════════════════════════════════════
   PRIORIDADE
════════════════════════════════════════════════════════════════════════════ */
.tag-prio {
    font-size: .7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
    white-space: nowrap;
}
.tag-prio.alta  { background: #fee2e2; color: #b91c1c; }
.tag-prio.media { background: #ffedd5; color: #c2410c; }
.tag-prio.baixa { background: #dcfce7; color: #15803d; }

/* ════════════════════════════════════════════════════════════════════════════
   CONCLUÍDAS
════════════════════════════════════════════════════════════════════════════ */
.btn-ver-concluidas {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    color: var(--txt-muted);
    font-size: .85rem; font-weight: 500;
    cursor: pointer; width: 100%;
    transition: background .15s, border-color .15s;
}
.btn-ver-concluidas:hover    { background: var(--border); }
.btn-ver-concluidas.aberto   { border-color: var(--ok); color: var(--ok); background: #f0fdf4; }

.card-pendencia.concluida {
    opacity: .55;
    border-left-color: var(--border) !important;
}
.card-pendencia.concluida .card-descricao {
    text-decoration: line-through;
    color: var(--txt-muted);
}
.card-pendencia.concluida .card-actions { display: flex; }

/* ════════════════════════════════════════════════════════════════════════════
   PAGE-HEADER ACTIONS
════════════════════════════════════════════════════════════════════════════ */
.page-header-actions {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}

/* ════════════════════════════════════════════════════════════════════════════
   MULTI-ESCALA (checkboxes no modal de nova pendência)
════════════════════════════════════════════════════════════════════════════ */
.escala-multi-wrapper {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
    background: var(--surface);
}
.check-todas-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: #eff6ff;
    border-bottom: 2px solid var(--border);
    cursor: pointer;
    font-size: .85rem; font-weight: 700;
    color: var(--accent);
    user-select: none;
}
.check-escala-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-size: .88rem;
    transition: background .12s;
    user-select: none;
}
.check-escala-item:last-child { border-bottom: none; }
.check-escala-item:hover { background: var(--bg); }
.check-todas-item input[type="checkbox"],
.check-escala-item input[type="checkbox"] {
    width: 17px; height: 17px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   BUSCA
════════════════════════════════════════════════════════════════════════════ */
.busca-wrapper { position: relative; margin-bottom: 20px; }
.busca-input {
    width: 100%; padding: 13px 18px;
    border: 2px solid var(--border); border-radius: 12px;
    font-size: 1rem; background: var(--surface);
    outline: none; transition: border-color .15s;
    font-family: inherit;
}
.busca-input:focus { border-color: var(--accent); background: #fff; }
.busca-dica {
    text-align: center; padding: 40px 20px;
    color: var(--txt-muted); font-size: .9rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   CALENDÁRIO
════════════════════════════════════════════════════════════════════════════ */
.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-header-dia {
    text-align: center; font-size: .7rem; font-weight: 700;
    color: var(--txt-muted); padding: 6px 0;
    text-transform: uppercase; letter-spacing: .04em;
}
.cal-dia {
    background: var(--surface); border-radius: 8px;
    padding: 8px 6px; min-height: 60px;
    cursor: pointer; border: 2px solid transparent;
    transition: background .12s, border-color .12s;
}
.cal-dia:hover { background: var(--border); }
.cal-dia.outro-mes { opacity: .3; pointer-events: none; }
.cal-dia.hoje { border-color: var(--accent); }
.cal-dia.tem-pend { background: #dbeafe; }
.cal-dia.tem-venc  { background: #fee2e2; }
.cal-dia.selecionado { border-color: var(--accent-dark); background: #bfdbfe; }
.cal-dia-num {
    font-size: .82rem; font-weight: 700; color: var(--txt); line-height: 1;
}
.cal-badge {
    display: inline-block; margin-top: 4px;
    background: var(--accent); color: #fff;
    border-radius: 20px; font-size: .62rem; font-weight: 700;
    padding: 1px 5px;
}
.cal-dia.tem-venc .cal-badge { background: var(--danger); }

/* Header do dia selecionado no calendário */
.cal-dia-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* Botão compacto (usado no calendário) */
.btn.btn-sm {
    padding: 7px 14px;
    font-size: .82rem;
    min-height: 36px;
}

/* ════════════════════════════════════════════════════════════════════════════
   CONTATOS
════════════════════════════════════════════════════════════════════════════ */
.contato-card {
    background: var(--bg); border-radius: 8px;
    padding: 12px 14px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px;
}
.contato-info { flex: 1; min-width: 0; }
.contato-nome { font-size: .9rem; font-weight: 600; }
.contato-meta { font-size: .78rem; color: var(--txt-muted); margin-top: 2px; }
.contato-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 4px;
    background: #25d366; color: #fff;
    border: none; border-radius: 8px;
    padding: 6px 12px; font-size: .78rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    min-height: 36px; transition: background .15s;
}
.btn-whatsapp:hover { background: #1aad53; }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Sidebar: escondida por padrão, desliza ao abrir */
    #sidebar { transform: translateX(-100%); }
    #sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,.35);
    }

    /* Topbar aparece */
    #topbar { display: flex; }

    /* FAB aparece */
    #fab { display: flex; }

    /* Conteúdo: sem margem lateral, abaixo da topbar */
    #main {
        margin-left: 0;
        padding: 80px 14px 100px;
    }

    /* Botão "+ Nova Pendência" no cabeçalho some (usa FAB); Contatos fica visível */
    .page-header > .btn { display: none; }
    .page-header-actions .btn-primary { display: none; }
    .page-header-actions .btn-ghost   { display: inline-flex; }

    /* Cards empilham os botões embaixo */
    .card-pendencia { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
    .card-actions   { width: 100%; justify-content: flex-end; }
    .btn-concluir   { flex: 1; justify-content: center; text-align: center; }

    /* Modal vira bottom sheet */
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal {
        border-radius: 20px 20px 0 0;
        max-width: 100%; max-height: 88vh;
    }

    /* Escalas em coluna única */
    .escalas-grid { grid-template-columns: 1fr; }

    /* Botões do modal lado a lado */
    .modal-actions .btn { flex: 1; justify-content: center; }

    /* Toast acima do FAB */
    #toast { bottom: 90px; }
}

/* Telas muito pequenas */
@media (max-width: 380px) {
    .tag-escala, .tag-rep, .tag-prazo { font-size: .68rem; padding: 2px 6px; }
    .card-descricao { font-size: .88rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SALVAR DISPOSITIVO — checkbox no login
════════════════════════════════════════════════════════════════════════════ */
.check-lembrar {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; user-select: none;
    font-size: .85rem; color: var(--txt-muted);
}
.check-lembrar input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--accent);
    cursor: pointer; flex-shrink: 0;
}
.check-lembrar:hover { color: var(--txt); }

/* ════════════════════════════════════════════════════════════════════════════
   CARD INFO — clicável para abrir detalhe
════════════════════════════════════════════════════════════════════════════ */
.card-info {
    flex: 1; min-width: 0;
    border-radius: 6px;
    transition: background .12s;
}
.card-info:hover {
    background: rgba(59, 130, 246, .06);
}
/* Badge de obs/arquivo no card */
.tag-has-obs {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: .72rem;
    background: #f1f5f9;
    color: var(--txt-muted);
    padding: 2px 7px;
    border-radius: 20px;
}

/* ════════════════════════════════════════════════════════════════════════════
   MODAL DETALHE — observações + arquivos
════════════════════════════════════════════════════════════════════════════ */
.det-separator {
    height: 1px;
    background: var(--border);
    margin: 0 0 4px;
}

/* Botão de upload (estilo label) */
.btn-upload-label {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    background: var(--bg);
    border: 1.5px dashed var(--border);
    border-radius: 8px;
    font-size: .85rem; font-weight: 500;
    color: var(--txt-muted);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.btn-upload-label:hover {
    background: #e8f0fe;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-upload-label input[type="file"] { display: none; }

/* Lista de arquivos dentro do modal */
.arquivo-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; margin-bottom: 6px;
    background: var(--bg); border-radius: 8px;
    font-size: .85rem; overflow: hidden;
}
.arquivo-icone { font-size: 1.1rem; flex-shrink: 0; }
.arquivo-nome  {
    flex: 1; min-width: 0;
    color: var(--accent); text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.arquivo-nome:hover { text-decoration: underline; }
.arquivo-tamanho {
    font-size: .72rem; color: var(--txt-muted); white-space: nowrap; flex-shrink: 0;
}
