/* =====================================================================
   Agende Sim — estilos (mobile first, sem dependências externas)
   ===================================================================== */
:root {
    --primary: #4f46e5;
    --primary-600: #4338ca;
    --primary-200: #c7d2fe;
    --primary-ring: rgba(79, 70, 229, .35);
    --primary-glow: rgba(79, 70, 229, .15);
    --primary-50: #eef2ff;
    --success: #059669;
    --success-50: #ecfdf5;
    --danger: #dc2626;
    --danger-50: #fef2f2;
    --warning: #d97706;
    --warning-50: #fffbeb;
    --info: #0284c7;
    --info-50: #f0f9ff;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
    --sidebar: 256px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.5rem; font-weight: 700; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
pre { white-space: pre-wrap; word-break: break-word; background: #f8fafc; padding: 8px; border-radius: 6px; margin: 4px 0; max-height: 240px; overflow: auto; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- Utilidades ---------- */
.muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt { margin-top: 12px; }
.mb { margin-bottom: 14px; }
.mt-lg { margin-top: 28px; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inline { display: inline; }
.empty { color: var(--muted); text-align: center; padding: 24px 12px; }
.link { font-size: .875rem; font-weight: 500; }
.note { background: #f8fafc; border-left: 3px solid var(--border); padding: 8px 12px; border-radius: 4px; color: var(--text-2); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); vertical-align: middle; flex: none; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .9rem; line-height: 1.2; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; background: var(--surface); color: var(--text); }
.btn:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 1px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-light { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.btn-light:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost-danger { background: transparent; color: var(--danger); border-color: #fecaca; }
.btn-ghost-danger:hover { background: var(--danger-50); }
.btn-sm { padding: 6px 10px; font-size: .8rem; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--text-2); display: inline-flex; }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions-row.center { justify-content: center; }

/* ---------- Badges e alertas ---------- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; line-height: 1.6; background: #f1f5f9; color: var(--text-2); white-space: nowrap; vertical-align: middle; text-decoration: none !important; }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-warning { background: var(--warning-50); color: var(--warning); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-muted { background: #f1f5f9; color: var(--muted); }
.alert { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-size: .92rem; }
.alert-success { background: var(--success-50); border-color: #a7f3d0; color: #065f46; }
.alert-danger { background: var(--danger-50); border-color: #fecaca; color: #991b1b; }
.alert-warning { background: var(--warning-50); border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--info-50); border-color: #bae6fd; color: #075985; }
.alert-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }

/* ---------- Layout do app ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: #0f172a; color: #cbd5e1; display: flex; flex-direction: column; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; }
.sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 30; display: none; }
.sidebar.open + .sidebar-backdrop { display: block; }
.sidebar-brand { padding: 18px 20px 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; font-weight: 700; font-size: 1.05rem; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .5px; flex: none; }
.brand-lg { font-size: 1.4rem; color: var(--text); }
.brand-lg .brand-mark { width: 44px; height: 44px; font-size: 1rem; }
.sidebar-company { margin: 6px 14px 10px; padding: 10px 12px; background: rgba(255, 255, 255, .06); border-radius: 10px; }
.sidebar-company strong { display: block; color: #fff; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-company small { color: #94a3b8; font-size: .75rem; }
.nav { padding: 4px 10px 24px; }
.nav-group { text-transform: uppercase; font-size: .68rem; letter-spacing: .08em; color: #64748b; padding: 14px 10px 6px; font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #cbd5e1; font-size: .9rem; text-decoration: none !important; }
.nav-link svg { width: 18px; height: 18px; fill: currentColor; opacity: .8; flex: none; }
.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-link.active { background: var(--primary); color: #fff; }
.main { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.topbar-title { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 999px; font-size: .9rem; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: #f1f5f9; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-weight: 700; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.user-menu-head { padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.user-menu-head small { display: block; color: var(--muted); }
.user-menu-panel a, .user-menu-panel button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; text-decoration: none; }
.user-menu-panel a:hover, .user-menu-panel button:hover { background: #f1f5f9; }
.trial-bar { background: var(--primary-50); color: var(--primary-600); text-align: center; padding: 6px 12px; font-size: .82rem; font-weight: 500; }
.content { padding: 16px; width: 100%; max-width: 1400px; margin: 0 auto; }

@media (min-width: 1024px) {
    .sidebar { transform: none; }
    .sidebar-backdrop, .menu-toggle { display: none !important; }
    .main { margin-left: var(--sidebar); }
    .topbar { padding: 0 24px; }
    .content { padding: 24px; }
}

/* ---------- Cabeçalho de página, cards e grids ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head p { margin: 4px 0 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.card-narrow { max-width: 560px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head .card-title { margin-bottom: 0; }
.card-title { font-size: 1.02rem; font-weight: 700; margin-bottom: 12px; }
.card-subtitle { font-size: .9rem; margin: 16px 0 8px; }
.grid-2, .grid-3, .grid-4, .grid-main { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.grid-main > .card, .grid-2 > .card, .grid-3 > .card { margin-bottom: 16px; }
.grid-main, .grid-3.cards { gap: 0 16px; }
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-2, .span-3, .span-4 { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
    .span-2 { grid-column: span 2; }
    .span-3 { grid-column: span 3; }
    .span-4 { grid-column: span 4; }
}

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-label { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.kpi-value { font-size: 1.55rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.kpi-sm { font-size: 1.05rem; }
.kpi-delta { font-size: .8rem; color: var(--muted); }
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--danger); }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; padding: 0; -webkit-overflow-scrolling: touch; }
.card.table-wrap { padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tbody tr:hover td { background: #fafbff; }
.table tfoot td { border-bottom: 0; padding: 6px 14px; }
.table .total-row td { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--border); }
.table-compact td, .table-compact th { padding: 7px 8px; }
.card > .table-compact { margin: 0 -8px; width: calc(100% + 16px); }
.table td.actions { text-align: right; white-space: nowrap; }
.table td.actions > * { margin-left: 4px; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* ---------- Paginação ---------- */
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.pager-info { color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.pager .pager-info { margin: 0; }
.pager-links { display: flex; gap: 4px; flex-wrap: wrap; }
.pager-links a, .pager-links span { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: .85rem; color: var(--text-2); text-decoration: none; }
.pager-links .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }

/* ---------- Formulários ---------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.form legend { font-weight: 700; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.field label, .inline-field { font-size: .83rem; font-weight: 600; color: var(--text-2); }
input, select, textarea { font: inherit; font-size: .95rem; color: var(--text); background: var(--surface); border: 1px solid #cbd5e1; border-radius: var(--radius-sm); padding: 9px 11px; width: 100%; min-height: 40px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--primary); flex: none; }
input[type=color] { padding: 3px; height: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
input[disabled], input[readonly], select[disabled] { background: #f8fafc; color: var(--muted); }
.is-invalid { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .8rem; font-weight: 500; }
.hint { color: var(--muted); font-size: .78rem; font-weight: 400; }
.warning-text { color: var(--warning); font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 6px 0; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.input-sm { max-width: 120px; min-height: 34px; padding: 6px 8px; }
.inline-field { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.inline-field input { width: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; }
.filters input[type=search] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; flex: 0 1 auto; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--border); border-radius: var(--radius); padding: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.choice small { display: block; color: var(--muted); font-size: .8rem; }
.copy-box { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-box input { flex: 1 1 260px; width: auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }

/* ---------- Listas ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #f1f5f9; color: inherit; text-decoration: none !important; }
.list-item:hover { background: #fafbff; }
.list-main { flex: 1; min-width: 0; }
.list-main strong, .list-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main small { color: var(--muted); }
.list-side { font-size: .85rem; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 16px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.address { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: .9rem; }
.collapse { margin-top: 12px; }
.collapse > summary { list-style: none; display: inline-flex; }
.collapse > summary::-webkit-details-marker { display: none; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-form { display: flex; flex-direction: column; gap: 6px; }
.popover { position: relative; display: inline-block; }
.popover > summary { list-style: none; }
.popover > summary::-webkit-details-marker { display: none; }
.popover-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 12px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.popover-panel label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; }
.pay-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.pay-bar select { width: auto; }
.audit-details summary { cursor: pointer; color: var(--primary); font-size: .85rem; }
.audit-details > div { min-width: 260px; }

/* ---------- Gráfico de barras ---------- */
.chart { position: relative; height: 240px; display: flex; align-items: flex-end; gap: 3px; padding-top: 20px; border-bottom: 1px solid var(--border); }
.chart-bar { flex: 1; background: linear-gradient(180deg, #818cf8, var(--primary)); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; cursor: default; }
.chart-bar:hover { filter: brightness(1.1); }
.chart-bar .chart-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; font-size: .72rem; padding: 3px 7px; border-radius: 5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 2; }
.chart-bar:hover .chart-tip { opacity: 1; }
.chart-labels { display: flex; gap: 3px; margin-top: 4px; }
.chart-labels span { flex: 1; font-size: .62rem; color: var(--muted); text-align: center; overflow: hidden; white-space: nowrap; }
.chart-empty { width: 100%; align-self: center; text-align: center; color: var(--muted); }

/* ---------- Horários do profissional ---------- */
.schedule-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; align-items: center; }
@media (min-width: 720px) { .schedule-row { grid-template-columns: 140px 1fr auto; } }
.schedule-day { font-weight: 600; }
.schedule-ranges { display: flex; flex-wrap: wrap; gap: 10px; }
.range { display: inline-flex; align-items: center; gap: 6px; }
.range input { width: 120px; }
.range span { color: var(--muted); font-size: .85rem; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.perm-group { border: 1px solid var(--border) !important; border-radius: 10px; padding: 10px 12px !important; }
.perm-group legend { padding: 0 6px !important; font-size: .85rem !important; }

/* ---------- Agenda diária ---------- */
.calendar-card { padding: 0; overflow: hidden; }
.calendar { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cal-times { flex: 0 0 56px; position: sticky; left: 0; background: var(--surface); z-index: 5; border-right: 1px solid var(--border); }
.cal-col { flex: 1 0 200px; border-right: 1px solid var(--border); min-width: 200px; }
.cal-col:last-child { border-right: 0; }
.cal-head { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-weight: 600; font-size: .88rem; border-bottom: 1px solid var(--border); background: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: sticky; top: 0; }
.cal-body { position: relative; }
.cal-time { position: absolute; right: 6px; font-size: .7rem; color: var(--muted); transform: translateY(-50%); }
.cal-time:first-child { transform: none; }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px dashed #eef2f7; }
.cal-work { position: absolute; left: 0; right: 0; background: #fbfcff; }
.cal-body { background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 6px, #f1f5f9 6px, #f1f5f9 12px); }
.cal-work { background: var(--surface); }
.cal-slot { position: absolute; left: 0; right: 0; z-index: 1; border-radius: 4px; }
.cal-slot:hover { background: rgba(79, 70, 229, .07); }
.cal-slot:hover::after { content: "+"; position: absolute; right: 8px; top: 4px; color: var(--primary); font-weight: 700; }
.cal-block { position: absolute; left: 2px; right: 2px; z-index: 2; background: repeating-linear-gradient(45deg, #fee2e2, #fee2e2 6px, #fecaca 6px, #fecaca 12px); border-radius: 6px; padding: 4px 8px; font-size: .75rem; color: #991b1b; overflow: hidden; }
.cal-event { position: absolute; left: 4px; right: 4px; z-index: 3; border-radius: 6px; padding: 4px 8px; background: var(--primary-50); border-left: 4px solid var(--primary); color: var(--text); font-size: .78rem; overflow: hidden; text-decoration: none !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); line-height: 1.3; }
.cal-event:hover { filter: brightness(.97); z-index: 4; }
.cal-event strong, .cal-event small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event small { color: var(--text-2); }
.cal-event.status-confirmado { background: #e0e7ff; }
.cal-event.status-em_atendimento { background: #fef3c7; }
.cal-event.status-concluido { background: #d1fae5; }
.cal-event.status-faltou { background: #f1f5f9; opacity: .75; text-decoration: line-through !important; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.lg-agendado { background: var(--primary-50); border: 1px solid #c7d2fe; }
.lg-confirmado { background: #e0e7ff; }
.lg-em_atendimento { background: #fef3c7; }
.lg-concluido { background: #d1fae5; }
.lg-faltou { background: #f1f5f9; border: 1px solid var(--border); }
.lg-bloqueio { background: #fecaca; }

/* ---------- Autocomplete e horários ---------- */
.autocomplete { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 25; max-height: 280px; overflow-y: auto; }
.ac-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; font: inherit; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.ac-item small { color: var(--muted); display: block; font-size: .78rem; }
.ac-item:hover, .ac-item.active { background: var(--primary-50); }
.slots { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; align-items: center; }
.slot { padding: 7px 12px; border: 1px solid var(--primary-200); background: var(--surface); color: var(--primary); border-radius: 8px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { background: var(--primary-50); }
.slot.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.slots-lg .slot { padding: 10px 16px; font-size: .95rem; }

/* ---------- Venda ---------- */
.sale-item { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; align-items: end; }
.sale-item .field { margin: 0; }
.sale-item .field label { font-size: .72rem; }
.sale-item-total { font-weight: 700; text-align: right; align-self: center; }
@media (min-width: 900px) { .sale-item { grid-template-columns: 90px minmax(160px, 2fr) minmax(140px, 1.4fr) 80px 110px 100px 100px 36px; } }
.sale-summary { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 14px; font-size: .95rem; }
.sale-summary > div { display: flex; gap: 16px; align-items: center; }
.field-inline { display: flex; align-items: center; gap: 8px; }
.field-inline label { font-weight: 600; font-size: .85rem; }
.sale-total { font-size: 1.3rem; }
.sale-payment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.sale-payment .field { margin: 0; }
@media (min-width: 720px) { .sale-payment { grid-template-columns: minmax(180px, 2fr) 140px 100px 36px; } }

/* ---------- Autenticação ---------- */
body.auth { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #e0e7ff, transparent), radial-gradient(900px 500px at 110% 110%, #ede9fe, transparent), var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 20px; padding: 32px 16px; }
.auth-brand { text-align: center; }
.auth-brand p { color: var(--muted); margin: 8px 0 0; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 28px 24px; }
.auth-card:has(fieldset) { max-width: 720px; }
.auth-title { font-size: 1.35rem; margin-bottom: 16px; }
.auth-links { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 18px; font-size: .9rem; }
.error-page { text-align: center; padding: 48px 16px; max-width: 520px; margin: 0 auto; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.error-page h1 { margin: 12px 0 8px; }
.error-page p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Agenda pública ---------- */
body.public { background: var(--bg); }
.public-container { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 16px; }
.public-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; }
.public-company { display: flex; align-items: center; gap: 12px; }
.public-company strong { display: block; font-size: 1.1rem; }
.public-company small { color: var(--muted); }
.public-main { padding-top: 24px; padding-bottom: 32px; }
.public-hero { margin-bottom: 18px; }
.public-hero h1 { font-size: 1.6rem; }
.public-hero p { color: var(--muted); margin: 6px 0 0; }
.public-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px 16px; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.step-title span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .85rem; }
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-inline { flex-direction: row; flex-wrap: wrap; }
.option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.option:hover { border-color: var(--primary-200); }
.option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-body { flex: 1; min-width: 0; }
.option-body strong, .option-body small { display: block; }
.option-body small { color: var(--text-2); font-size: .82rem; }
.option-price { font-weight: 700; white-space: nowrap; }
.option-inline .option { flex: 1 1 180px; }
/* Calendário mensal (agenda pública): grade de 7 colunas que ocupa a largura disponível, sem rolagem */
.month-cal { max-width: 460px; margin: 0 auto 16px; }
.month-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.month-cal-head strong { font-size: 1.05rem; }
.month-cal-head .icon-btn { width: 40px; height: 40px; justify-content: center; font-size: 1.5rem; line-height: 1; border: 1px solid var(--border); background: var(--surface); }
.month-cal-head .icon-btn[disabled] { opacity: .35; cursor: default; }
.month-cal-week, .month-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month-cal-week span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; border: 2px solid transparent; background: transparent; font: inherit; font-size: .95rem; font-variant-numeric: tabular-nums; color: #cbd5e1; padding: 0; min-width: 0; }
.cal-day.empty { visibility: hidden; }
.cal-day.today { border-color: var(--border); }
.cal-day.available { background: var(--primary-50); color: var(--primary-600); font-weight: 700; cursor: pointer; }
.cal-day.available:hover { border-color: var(--primary); }
.cal-day.available:focus-visible { outline: 3px solid var(--primary-ring); }
.cal-day.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.month-cal-grid.loading { opacity: .5; }
.month-cal-legend { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.month-cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-left: 10px; }
.month-cal-legend .lg-disp { background: var(--primary-50); border: 1px solid var(--primary-200); margin-left: 0; }
.month-cal-legend .lg-indisp { background: #f1f5f9; border: 1px solid var(--border); }
.slots-title { font-size: .95rem; margin: 4px 0 10px; text-align: center; }
.public .slots-lg { justify-content: center; }
.summary { background: #f8fafc; border-radius: 10px; padding: 12px 14px; margin: 8px 0 16px; font-size: .92rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.reservation { text-align: center; max-width: 520px; margin: 0 auto; padding: 32px 24px; }
.reservation h1 { margin: 12px 0 6px; }
.reservation .dl { text-align: left; margin: 20px 0; }
.reservation-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--success-50); color: var(--success); }
.reservation-icon.cancel { background: var(--danger-50); color: var(--danger); }

/* ---------- Assinatura Agende Sim / plataforma ---------- */
.trial-bar a { font-weight: 700; margin-left: 6px; }
.trial-bar-danger { background: var(--danger-50); color: var(--danger); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }
.center-text { text-align: center; }
.blocked-hero { text-align: center; padding: 32px 20px; border-color: #fecaca; }
.blocked-hero h1 { margin: 8px 0; }
.blocked-hero p { color: var(--text-2); max-width: 620px; margin: 0 auto; }
.blocked-icon { font-size: 2.4rem; }
.plan-card { border: 2px solid var(--primary); }
.plan-name { font-size: 1.3rem; margin: 10px 0 4px; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; margin-bottom: 12px; }
.plan-price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan-features { list-style: none; padding: 0; margin: 0 0 16px; }
.plan-features li { padding: 5px 0 5px 24px; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.steps { padding-left: 20px; margin: 0 0 16px; }
.steps li { margin-bottom: 8px; }
.order-box { border: 1px dashed #c7d2fe; background: var(--primary-50); border-radius: var(--radius); padding: 14px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-box p { margin: 6px 0 12px; }
.pix-box { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.pix-box > span { font-weight: 700; }
.kpi-link { color: inherit; text-decoration: none !important; }
.kpi-link:hover { border-color: #c7d2fe; }
.sidebar-admin { background: #1e1b4b; }

/* ---------- Modal (<dialog>) ---------- */
.modal { border: 0; padding: 0; border-radius: 14px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--text); background: var(--surface); }
.modal::backdrop { background: rgba(15, 23, 42, .5); }
.modal > form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 1.1rem; margin: 0; }
.modal-head .icon-btn { font-size: 1.6rem; line-height: 1; padding: 2px 10px; }
.modal-body { padding: 16px 18px 4px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); background: #f8fafc; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; }
.check-sm { font-size: .82rem; margin: 2px 0 0; color: var(--text-2); }
.ac-create { color: var(--primary); font-weight: 600; }

/* ---------- WhatsApp do cliente ---------- */
.phone-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
td .phone-cell { display: flex; }
.wa-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #25d366; color: #fff; flex: none; }
.wa-btn svg { width: 16px; height: 16px; fill: currentColor; }
.wa-btn:hover, .wa-btn:focus-visible { background: #1ebe5b; }
.wa-menu { position: absolute; z-index: 60; min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.wa-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; }
.wa-menu a small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }
.wa-menu a:hover, .wa-menu a:focus { background: #ecfdf5; outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.brand-mark svg { width: 60%; height: 60%; fill: currentColor; }

/* ---------- Minha agenda online (personalização) ---------- */
.ao-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.ao-main, .ao-preview-wrap { min-width: 0; }
.ao-card .copy-box input { flex-basis: 180px; min-width: 0; }
/* Celular/tablet: a prévia vem primeiro, compacta, para a pessoa ver o resultado antes de editar. */
@media (max-width: 1099px) { .ao-preview-wrap { order: -1; } .ao-phone { max-width: 300px; } }
@media (min-width: 1100px) { .ao-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .ao-preview-wrap { position: sticky; top: 76px; } }
.ao-card { padding: 18px; }
.ao-title { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin: 0 0 14px; }
.ao-title span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .85rem; flex: none; }
.ao-hint { margin: -6px 0 12px; font-size: .85rem; }
.ao-label { font-size: .83rem; font-weight: 600; color: var(--text-2); }
.ao-link { margin-top: 6px; text-align: left; font-size: .88rem; }
/* Interruptor liga/desliga */
.ao-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ao-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ao-switch-ui { width: 52px; height: 30px; border-radius: 999px; background: #cbd5e1; position: relative; flex: none; transition: background .15s; }
.ao-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); transition: transform .15s; }
.ao-switch input:checked + .ao-switch-ui { background: var(--success); }
.ao-switch input:checked + .ao-switch-ui::after { transform: translateX(22px); }
.ao-switch input:focus-visible + .ao-switch-ui { outline: 3px solid var(--primary-ring); }
.ao-switch strong, .ao-switch small { display: block; }
.ao-switch small { color: var(--muted); font-size: .82rem; }
/* Cores */
.ao-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.ao-swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.ao-swatch > input { position: absolute; opacity: 0; pointer-events: none; }
.ao-swatch > span { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--border); display: grid; place-items: center; transition: box-shadow .12s, transform .12s; }
.ao-swatch > input:checked + span { box-shadow: 0 0 0 3px var(--text); transform: scale(1.08); }
.ao-swatch > input:checked + span::after { content: "✓"; color: #fff; font-weight: 800; font-size: 1.2rem; }
.ao-swatch > input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-ring); }
.ao-swatch em { font-style: normal; font-size: .72rem; color: var(--muted); }
.ao-outra-ui { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); overflow: hidden; }
.ao-outra-ui input[type=color] { opacity: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; cursor: pointer; }
.ao-swatch-outra > input:checked + .ao-outra-ui::after { content: none; }
/* Ícones */
.ao-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.ao-icon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; text-align: center; }
.ao-icon input { position: absolute; opacity: 0; pointer-events: none; }
.ao-icon:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.ao-icon:has(input:focus-visible) { outline: 3px solid var(--primary-ring); }
.ao-icon-box { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.ao-icon-box svg { width: 24px; height: 24px; fill: currentColor; }
.ao-icon-box b { font-size: .85rem; }
.ao-icon small { font-size: .74rem; color: var(--text-2); }
/* Horários */
.ao-hours { display: flex; flex-direction: column; gap: 6px; }
.ao-hour { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.ao-hour-dia { display: flex; align-items: center; gap: 10px; min-width: 150px; font-weight: 600; cursor: pointer; }
.ao-hour-dia input { width: 22px; height: 22px; min-height: 0; accent-color: var(--primary); }
.ao-hour-times { display: flex; align-items: center; gap: 6px; }
.ao-hour-times input { width: 118px; }
.ao-hour-fechado { display: none; color: var(--muted); font-size: .9rem; }
.ao-hour.fechado { background: #f8fafc; }
.ao-hour.fechado .ao-hour-times { display: none; }
.ao-hour.fechado .ao-hour-fechado { display: inline; }
/* Pagamento */
.ao-choices { display: grid; gap: 10px; }
.ao-pix { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.ao-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ao-chip { cursor: pointer; }
.ao-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ao-chip span { display: inline-block; padding: 9px 14px; border: 2px solid var(--border); border-radius: 999px; font-weight: 600; font-size: .9rem; }
.ao-chip input:checked + span { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.ao-chip input:focus-visible + span { outline: 3px solid var(--primary-ring); }
.ao-alerta { background: var(--warning-50); color: #92400e; border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin: 4px 0 0; }
/* Prévia */
.ao-preview-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: center; margin-bottom: 8px; }
.ao-phone { max-width: 340px; margin: 0 auto; border: 8px solid #0f172a; border-radius: 28px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow-lg); }
.ao-pv-header { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface); border-bottom: 3px solid var(--primary); }
.ao-pv-body { padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.ao-pv-body h3 { font-size: 1.05rem; margin: 0; }
.ao-pv-msg { color: var(--text-2); font-size: .85rem; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.ao-pv-whats { align-self: flex-start; background: #25d366; color: #fff; font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.ao-pv-step { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; }
.ao-pv-step span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .72rem; }
.ao-pv-slots { display: flex; gap: 6px; }
.ao-pv-pay { display: flex; gap: 6px; }
.ao-pv-opt { flex: 1; text-align: center; font-size: .74rem; font-weight: 600; padding: 7px 4px; border: 2px solid var(--border); border-radius: 10px; background: var(--surface); }
.ao-pv-opt.sel { border-color: var(--primary); background: var(--primary-50); }
.ao-save { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: flex-end; padding: 12px 0; margin-top: 8px; background: linear-gradient(transparent, var(--bg) 35%); }
@media (max-width: 640px) { .ao-save .btn { width: 100%; } .ao-hour-dia { min-width: 0; flex: 1 1 100%; } }

/* ---------- Agenda pública: informações, pagamento e PIX ---------- */
.public-header { border-bottom: 3px solid var(--primary); }
.public-mark { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; }
.public-msg { white-space: pre-line; overflow-wrap: anywhere; }
.public-info { padding: 12px 14px; }
.public-info > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer; list-style: none; font-weight: 600; }
.public-info > summary::-webkit-details-marker { display: none; }
.public-info-title::after { content: " ▾"; color: var(--muted); }
.public-info[open] .public-info-title::after { content: " ▴"; }
.public-info-zap { margin-left: auto; }
.public-hours { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.public-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; border-radius: 8px; font-size: .92rem; }
.public-hours li.hoje { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.public-whats { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); }
.public-whats svg { width: 30px; height: 30px; fill: currentColor; }
.public .public-footer { padding-bottom: 88px; }
.pay-step { margin: 4px 0 16px; }
.pay-title { font-size: 1rem; margin: 0 0 10px; }
.pay-options { margin-bottom: 4px; }
.pay-only { background: var(--primary-50); border-radius: 10px; padding: 10px 12px; margin: 0; }
.pix-box { border: 2px solid var(--primary-200); background: var(--primary-50); border-radius: 14px; padding: 14px; margin-top: 12px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.pix-head { font-size: 1.05rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pix-valor { margin-left: auto; font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.pix-line { display: flex; flex-direction: column; gap: 2px; }
.pix-line span { font-size: .8rem; color: var(--muted); }
.pix-key { font-size: 1.1rem; overflow-wrap: anywhere; }
.pix-copy input { background: #fff; }
.pix-copy .btn { flex: 1 1 200px; padding: 12px 16px; font-size: .95rem; }
.pix-steps { margin: 0; padding-left: 20px; font-size: .9rem; color: var(--text-2); display: grid; gap: 2px; }
.pix-note { margin: 0; font-size: .88rem; color: var(--text-2); }
.reservation.pix-first { margin-bottom: 16px; }
.reservation-sub { font-size: 1.1rem; margin: 0 0 4px; }

/* ---------- Impressão ---------- */
@media print {
    .sidebar, .topbar, .trial-bar, .actions-row, .filters, .form-actions, .pager, .btn, .alert { display: none !important; }
    .main { margin: 0 !important; }
    body { background: #fff; }
    .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
}
