* {
    margin: 0;
    padding: 0;
    box-sizing: bo

.notif-star-btn{backgr
.notif-pagination-label{font:var(--type-label-sm);color:var(--text-muted);white-space:nowrap}ound:none;border:none;cursor:pointer;padding:2px;color:var(--stone-300);flex-shrink:0;width:22px;height:22px;display:flex;align-items:center;justify-content:center;transition:color .2s ease,transform .2s ease}.notif-star-btn:hover{color:var(--amber-500);transform:scale(1.2)}.notif-star-active{color:var(--amber-500)!important}.notif-td-star{width:28px;text-align:center;vertical-align:middle}.notif-star-td{background:none;border:none;cursor:pointer;padding:0;color:var(--stone-300);opacity:.3;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;transition:color .2s ease,transform .2s ease}.notif-star-td:hover{color:var(--amber-500);opacity:1;transform:scale(1.2)}.notif-star-td.notif-star-active{color:var(--amber-500)!important;opacity:1!important}
rder-box;
}

body {
    font: var(--type-body);
    background: var(--surface-app);
    color: var(--text-default);
    display: flex;
    height: 100vh;
}

/* Layout principal */
.app-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-area {
    flex: 1;
    overflow: hidden;
    padding: var(--space-5);
}

.content-area:has(.calendar-toolbar) {
    padding: 0;
    overflow: hidden;
}

.content-area:has(.perfiles-wrapper) {
    padding: 0;
    overflow: hidden;
}

.content-area:has(.config-wrapper) {
    padding: 0;
    overflow: hidden;
}

.content-area:has(.financiero-wrapper) {
    padding: 0;
    overflow: hidden;
}

.content-area:has(.rpt-layout) {
    padding: 0;
    overflow: hidden;
}

.content-area:has(.notif-page) {
    padding: 0;
    overflow: hidden;
}

.mockup.financiero {
    background: var(--surface-app);
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Mockup genérico */
.mockup {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-default);
    padding: var(--space-5);
    display: none;
    height: 100%;
    overflow-y: auto;
}

.mockup.active {
    display: block;
}

.mockup.configuraciones {
    background: var(--surface-app);
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup.perfiles {
    background: var(--surface-app);
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mockup.calendario {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    border: none;
    overflow: hidden;
}

.mockup.reportes {
    background: var(--surface-app);
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    border: none;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* Utilidades */
.note {
    background: var(--surface-accent-soft);
    border-left: var(--border-width-3) solid var(--amber-500);
    padding: var(--space-3);
    margin: var(--space-4) 0;
    border-radius: var(--radius-xs);
    font: var(--type-body-sm);
    color: var(--text-muted);
}

.hidden {
    display: none;
}

/* ── Reservas Lista header ─────────────────────────────────────── */
.rl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding: var(--space-4) var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
.rl-header__hint {
    margin: 0;
    color: var(--text-muted);
    font: var(--type-body-sm);
    flex: 1;
}

/* Badge de origen web */
.web-origin-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.web-origin-badge-dark {
    background: #1e3a8a;
    color: #dbeafe;
    border-color: #3b82f6;
}

.web-order-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}
.web-order-link:hover {
    text-decoration: underline;
}

/* ── Notificaciones ──────────────────────────────────────── */
.notif-page {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    overflow: hidden;
}

.notif-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: var(--space-3);
}

.notif-page-header h1 {
    font: var(--type-h1);
    color: var(--text-strong);
    margin: 0;
    font-size: var(--text-xl);
}

/* ── Toast ── */
.notif-toast {
    display: none;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font: var(--type-label-sm);
    flex-shrink: 0;
    animation: notif-fade-in 0.25s ease-out;
}

.notif-toast-undo {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-xs);
    color: inherit;
    font: var(--weight-semibold) var(--text-xs)/1 var(--font-sans);
    padding: var(--space-0-5) var(--space-2);
    cursor: pointer;
    white-space: nowrap;
}
.notif-toast-undo:hover { background: rgba(255,255,255,0.3); }
.notif-toast-close { background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; opacity: 0.6; padding: 0 4px; }
.notif-toast-close:hover { opacity: 1; }

/* ── Split layout ── */
.notif-split {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: var(--space-4);
    overflow: hidden;
    min-height: 0;
}

.notif-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.notif-panel .adv-card__header {
    padding: var(--space-2) var(--space-3);
    flex-shrink: 0;
}

.notif-panel .adv-card__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font: var(--type-h3);
    font-size: var(--text-md);
}

.notif-panel-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-2) !important;
    min-height: 0;
}

/* Todas panel allows horizontal scroll for table */
.todas-panel .notif-panel-body {
    overflow-x: auto;
}

.notif-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-10) var(--space-5);
    color: var(--text-muted);
    text-align: center;
    font: var(--type-body-sm);
}
.notif-panel-empty svg { opacity: 0.3; }

.notif-loading-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    color: var(--text-muted);
    font: var(--type-body-sm);
}

/* ── Toolbar ── */
.notif-toolbar {
    padding: var(--space-1-5) var(--space-3);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-sunken);
    flex-shrink: 0;
}

.notif-toolbar-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.notif-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    overflow: hidden;
}

.notif-toolbar-group .adv-btn {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.notif-toolbar-group .adv-btn + .adv-btn {
    border-left: 1px solid var(--border-subtle);
}

.notif-toolbar-spacer {
    flex: 1;
}

.notif-toolbar-label {
    font: var(--type-caption);
    color: var(--text-muted);
    padding: 0 var(--space-0-5);
    flex-shrink: 0;
}

.notif-input-sm {
    height: 28px;
    padding: 0 var(--space-1-5);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font: var(--type-body-sm);
    color: var(--text-default);
    background: var(--surface-card);
    flex-shrink: 0;
}

.notif-input-sm:focus {
    outline: none;
    border-color: var(--pine-500);
    box-shadow: 0 0 0 2px color-mix(in oklch, var(--pine-500) 20%, transparent);
}

.notif-select-sm {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' width='12' height='12'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 24px;
    cursor: pointer;
}

.notif-toolbar-search {
    display: flex;
    align-items: center;
    gap: var(--space-1-5);
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 0 var(--space-2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.notif-toolbar-search:focus-within {
    border-color: var(--pine-500);
    box-shadow: 0 0 0 2px color-mix(in oklch, var(--pine-500) 20%, transparent);
}

.notif-toolbar-search svg {
    flex-shrink: 0;
    color: var(--text-subtle);
}

.notif-search-input {
    border: none;
    background: transparent;
    padding: var(--space-1) 0;
    font: var(--type-body-sm);
    color: var(--text-default);
    width: 140px;
    outline: none;
}

.notif-search-input::placeholder {
    color: var(--text-subtle);
}

/* ════════════════════════════════════════════════════════════
   ITEM DA LISTA (Não lidas)
   ════════════════════════════════════════════════════════════ */
.notif-item {
    position: relative;
    margin-bottom: var(--space-1);
    overflow: hidden;
    border-radius: var(--radius-md);
}

.notif-item-swipe-bg {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding-left: 14px;
    background: var(--pine-600);
    color: #fff;
    font: var(--weight-semibold) var(--text-xs)/1 var(--font-sans);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    z-index: 0;
    pointer-events: none;
}

.notif-item-inner {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-2-5);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease-out;
    cursor: default;
}
.notif-item-inner:hover { border-color: var(--border-default); box-shadow: var(--shadow-xs); }

.notif-item-icon {
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.notif-i-green { background: color-mix(in oklch, var(--fern-500) 14%, transparent); color: var(--fern-600); }
.notif-i-blue { background: color-mix(in oklch, var(--sky-500) 14%, transparent); color: var(--sky-600); }
.notif-i-purple { background: color-mix(in oklch, #9333ea 14%, transparent); color: #7c3aed; }
.notif-i-amber { background: color-mix(in oklch, var(--amber-500) 14%, transparent); color: var(--amber-600); }
.notif-i-cyan { background: color-mix(in oklch, var(--sky-500) 14%, transparent); color: var(--sky-600); }

.notif-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.notif-item-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1-5); }
.notif-item-type { font: var(--weight-semibold) var(--text-2xs)/1 var(--font-sans); letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-strong); }
.notif-item-time { font: var(--type-caption); font-size: 10px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.notif-item-cliente { font: var(--weight-semibold) var(--text-sm)/1.2 var(--font-sans); color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-meta { display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; }
.notif-item-monto { font: var(--weight-bold) var(--text-sm)/1 var(--font-mono); font-feature-settings: 'tnum' 1; color: var(--fern-700); }
.notif-item-id { font: var(--type-mono); font-size: 9px; color: var(--text-muted); background: var(--surface-sunken); padding: 1px 4px; border-radius: var(--radius-xs); }
.notif-item-act { font: var(--type-caption); font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

.notif-item-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    flex-shrink: 0;
}
.notif-item-actions .adv-iconbtn { width: 28px; height: 28px; opacity: 0; transition: opacity 0.2s ease; }
.notif-item-inner:hover .notif-item-actions .adv-iconbtn { opacity: 0.5; }
.notif-item-actions .adv-iconbtn:hover { opacity: 1 !important; background: var(--surface-sunken); }
.notif-btn-read { color: var(--fern-600) !important; opacity: 1 !important; }
.notif-mail-btn { opacity: 1 !important; }
.notif-mail-btn:hover { color: var(--fern-600) !important; background: color-mix(in oklch, var(--fern-500) 12%, transparent) !important; }
.notif-mail-sent { color: var(--fern-600) !important; opacity: 0.5 !important; }

@media (hover: none) and (pointer: coarse) {
    .notif-item-actions .adv-iconbtn { opacity: 0.4; }
}

/* ════════════════════════════════════════════════════════════
   TABELA (Todas)
   ════════════════════════════════════════════════════════════ */
.notif-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.notif-table thead th {
    position: sticky; top: 0;
    background: var(--surface-sunken);
    padding: var(--space-1-5) var(--space-2);
    text-align: left;
    font: var(--type-eyebrow);
    font-size: 10px;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--text-subtle);
    border-bottom: 1px solid var(--border-default);
    white-space: nowrap;
    z-index: 2;
}

.notif-table tbody td {
    padding: var(--space-1-5) var(--space-2);
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.notif-table tbody tr:hover { background: var(--surface-hover); }

.notif-tr-unread { background: var(--surface-brand-soft); }
.notif-tr-read { color: var(--text-muted); }
.notif-tr-read .notif-td-tipo { color: var(--text-muted); }
.notif-tr-read .notif-td-monto { color: var(--text-muted); }

.notif-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--pine-500); }
.notif-dot-read { background: var(--border-subtle); }
.notif-td-indicator { width: 20px; text-align: center; vertical-align: middle; }

.notif-td-tipo {
    font: var(--weight-semibold) 9px/1 var(--font-sans);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--text-strong);
    white-space: nowrap;
}

.notif-td-cliente { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font: var(--type-body-sm); }
.notif-td-detalhe { max-width: 170px; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); font: var(--type-caption); }
.notif-td-monto { font: var(--weight-semibold) var(--text-sm)/1 var(--font-mono); font-feature-settings: 'tnum' 1; color: var(--fern-700); text-align: right; }

.notif-td-acoes { white-space: nowrap; text-align: right; }

.notif-tr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border: none;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.3;
}
.notif-tr-btn:hover { opacity: 1; background: var(--surface-hover); }
.notif-tr-btn-read { color: var(--fern-600); }
.notif-tr-btn-read:hover { background: color-mix(in oklch, var(--fern-500) 12%, transparent); }
.notif-tr-btn-unread { color: var(--amber-600); }
.notif-tr-btn-unread:hover { background: color-mix(in oklch, var(--amber-500) 12%, transparent); }
tbody tr:hover .notif-tr-btn { opacity: 0.5; }
tbody tr:hover .notif-tr-btn:hover { opacity: 1; }

.notif-mail-pending { color: var(--stone-400) !important; opacity: 0.3 !important; }
.notif-mail-pending:hover { color: var(--fern-600) !important; opacity: 0.8 !important; }
.notif-mail-sent { color: var(--fern-600) !important; opacity: 0.5 !important; }

.notif-mail-wrap { display:inline-flex; align-items:center; gap:2px; }
.notif-mail-langs { display:none; align-items:center; gap:1px; }
.notif-mail-lang-opt {
    display:inline-flex; align-items:center; justify-content:center;
    background:none; border:1px solid #d4d0c8; border-radius:4px; cursor:pointer;
    padding:1px 5px; font-size:10px; font-weight:600; line-height:1.4;
    color:var(--text-muted,#7a7a7a); transition:all 0.15s; white-space:nowrap;
}
.notif-mail-lang-opt:hover { background:#e8f5ef; border-color:#2d6a4f; color:#1a3a2a; }
tbody tr:hover .notif-mail-lang-opt { opacity:0.7; }
tbody tr:hover .notif-mail-lang-opt:hover { opacity:1; }

.notif-tr-expand svg { transition: transform 0.25s ease; }
.notif-tr-expand.expanded svg { transform: rotate(180deg); }

/* Estrella */
.notif-star-btn {
    background: none; border: none; cursor: pointer; padding: 2px;
    color: var(--stone-300); flex-shrink: 0;
    width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
    transition: color .2s ease, transform .2s ease;
}
.notif-star-btn:hover { color: var(--amber-500); transform: scale(1.2); }
.notif-star-active { color: var(--amber-500) !important; }

.notif-td-star { width: 26px; text-align: center; vertical-align: middle; }
.notif-star-td {
    background: none; border: none; cursor: pointer; padding: 0;
    color: var(--stone-300); opacity: 0.3;
    width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
    transition: color .2s ease, transform .2s ease;
}
.notif-star-td:hover { color: var(--amber-500); opacity: 1; transform: scale(1.2); }
.notif-star-td.notif-star-active { color: var(--amber-500) !important; opacity: 1 !important; }

/* ── Acordeón ── */
.notif-tr-expanded-row td {
    padding: 0 !important;
    background: var(--surface-sunken);
    border-bottom: 2px solid var(--border-default);
}

.notif-expanded-body {
    padding: var(--space-3) var(--space-4);
    font: var(--type-body-sm);
    color: var(--text-default);
}

.notif-expand-dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-1) var(--space-2);
}
.notif-expand-dl dt {
    font: var(--weight-semibold) var(--text-2xs)/1 var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-subtle);
}
.notif-expand-dl dd { color: var(--text-default); }

.notif-expand-list {
    margin: 0;
    padding-left: var(--space-3);
}
.notif-expand-list li { font: var(--type-caption); margin-bottom: 2px; }

/* ── Animaciones ── */
@keyframes notif-fade-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Responsive: tablet ── */
@media (max-width: 1100px) {
    .notif-split { grid-template-columns: 1fr; }
    .notif-page { padding: var(--space-3); }
}

/* ── Responsive: mobile ── */
@media (max-width: 768px) {
    .notif-page { padding: var(--space-2); gap: var(--space-2); }

    .notif-page-header h1 { font-size: var(--text-lg); }
    .notif-page-header .adv-btn { font-size: var(--text-2xs); padding: var(--space-1) var(--space-2); }

    .notif-split {
        display: flex;
        flex-direction: column-reverse;
        overflow-y: auto;
        gap: var(--space-2);
    }

    .nao-lidas-panel { max-height: 50vh; }
    .todas-panel { max-height: 55vh; }
    .notif-panel { min-height: 120px; }
    .notif-panel .adv-card__header { padding: var(--space-1-5) var(--space-2); }

    /* Toolbar en mobile: scroll horizontal */
    .notif-toolbar { overflow-x: auto; padding: var(--space-1) var(--space-2); }
    .notif-toolbar-row { flex-wrap: nowrap; }
    .notif-toolbar-group { flex-shrink: 0; }
    .notif-toolbar-search { flex-shrink: 0; }
    .notif-toolbar-search input { width: 100px; }
    .notif-toolbar-divider { display: none; }
    .notif-toolbar-label { display: none; }
    .notif-input-sm { font-size: var(--text-2xs); padding: 0 var(--space-1); height: 26px; }

    /* Paginación stacked */
    .notif-pagination { flex-direction: column; align-items: stretch; gap: var(--space-1-5); }

    /* Tabla en mobile */
    .todas-panel .notif-panel-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .notif-table { min-width: 520px; }
    .notif-table thead th { font-size: 9px; padding: var(--space-1) var(--space-1-5); }
    .notif-table tbody td { padding: var(--space-1) var(--space-1-5); font-size: var(--text-2xs); }
    .notif-td-tipo { font-size: 8px !important; }
    .notif-td-cliente { max-width: 100px; }
    .notif-td-detalhe { max-width: 120px; }

    /* Items en lista más compactos */
    .notif-item-inner { padding: var(--space-1-5) var(--space-2); gap: var(--space-1-5); }
    .notif-item-icon { width: 28px; height: 28px; }
    .notif-item-type { font-size: 9px; }
    .notif-item-cliente { font-size: var(--text-2xs); }
    .notif-item-monto { font-size: var(--text-2xs); }
    .notif-item-actions .adv-iconbtn { opacity: 0.4; }
}
/* ── Responsive: mobile layout ── */
@media (max-width: 768px) {
    body {
        height: 100vh;
    }

    .app-container {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
    }

    .content-area {
        padding: var(--space-3);
    }

    /* Anti-overflow global */
    img, video, canvas, pre, iframe, object, embed {
        max-width: 100%;
    }

    /* Scroll horizontal aislado en contenedores */
    * {
        -ms-overflow-style: none;
    }
}
