/* ============================================================
   Colectivo Pro 360 — Sistema de diseño (Neo-Kawaii premium)
   Los colores se inyectan desde settings vía :root en el layout.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900&display=swap');

:root {
    --color-primary: #7C5CFC;
    --color-secondary: #FF8FB1;
    --color-accent: #3EC9A7;

    --primary-soft: color-mix(in srgb, var(--color-primary) 12%, white);
    --accent-soft: color-mix(in srgb, var(--color-accent) 14%, white);
    --secondary-soft: color-mix(in srgb, var(--color-secondary) 14%, white);

    --ink: #2A2340;
    --ink-soft: #6B6480;
    --muted: #9A93AD;
    --line: #ECE9F5;
    --bg: #F6F4FC;
    --surface: #FFFFFF;

    --ok: #2EAD6B;
    --ok-soft: #E4F7EE;
    --warn: #E6A100;
    --warn-soft: #FFF6E0;
    --danger: #E5484D;
    --danger-soft: #FDECEC;
    --info: #3E80C9;
    --info-soft: #E8F1FB;

    --radius: 18px;
    --radius-lg: 26px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 14px rgba(60, 40, 120, 0.06);
    --shadow: 0 10px 30px rgba(60, 40, 120, 0.10);
    --shadow-lg: 0 20px 50px rgba(60, 40, 120, 0.16);
    --sidebar-w: 258px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 800; color: var(--ink); line-height: 1.2; }
img { max-width: 100%; display: block; }

/* ---------- Layout del panel ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: 22px 16px;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
    z-index: 50;
    transition: transform .28s ease;
}

.sidebar__brand {
    display: flex; align-items: center; gap: 11px;
    padding: 6px 8px 20px;
}
.sidebar__brand-text { min-width: 0; flex: 1; }
.sidebar__logo,
.brand-mark {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: grid; place-items: center;
    color: #fff; font-weight: 900; font-size: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar__logo--img,
.brand-mark--img {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.sidebar__logo img,
.brand-mark img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 5px;
}
.sidebar__brand-name {
    font-size: 13.5px; font-weight: 900; line-height: 1.15;
    letter-spacing: -.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar__brand-sub { font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 2px; }

.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 16px 14px 8px; }

.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 14px;
    color: var(--ink-soft); font-weight: 700; font-size: 14.5px;
    margin-bottom: 3px; transition: all .15s ease;
    text-decoration: none; cursor: pointer;
}
.nav-item i { font-size: 20px; }
.nav-item:hover { background: var(--primary-soft); color: var(--color-primary); }
.nav-item.is-active {
    background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 70%, var(--color-secondary)));
    color: #fff; box-shadow: var(--shadow-sm);
}
.nav-item.is-active i { color: #fff; }

.main {
    flex: 1; margin-left: var(--sidebar-w);
    display: flex; flex-direction: column; min-width: 0;
    transition: margin-left .28s ease;
}

.topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(246, 244, 252, .82);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; gap: 16px;
    padding: 16px 26px; border-bottom: 1px solid var(--line);
}
.topbar__title { font-size: 20px; font-weight: 900; }
.topbar__sub { font-size: 13px; color: var(--muted); font-weight: 700; }
.topbar__spacer { flex: 1; }

.icon-btn {
    width: 44px; height: 44px; border-radius: 14px;
    border: 1px solid var(--line); background: var(--surface);
    display: grid; place-items: center; cursor: pointer;
    color: var(--ink-soft); font-size: 22px; position: relative;
    transition: all .15s ease;
}
.icon-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }
.badge-dot {
    position: absolute; top: 8px; right: 9px;
    min-width: 18px; height: 18px; padding: 0 4px;
    background: var(--danger); color: #fff; font-size: 11px; font-weight: 800;
    border-radius: 9px; display: grid; place-items: center;
    border: 2px solid var(--surface);
}

.user-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px 6px 6px; border-radius: 30px;
    border: 1px solid var(--line); background: var(--surface);
}
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    color: #fff; display: grid; place-items: center; font-weight: 800;
}
.user-chip__name { font-size: 13.5px; font-weight: 800; line-height: 1; }
.user-chip__role { font-size: 11px; color: var(--muted); font-weight: 700; }

.content { padding: 26px; flex: 1; }

/* ---------- Menú lateral colapsable ---------- */
.menu-toggle { display: grid; flex-shrink: 0; }
.sidebar__scrim { display: none; }

.layout--sidebar-hidden .sidebar { transform: translateX(-100%); }
.layout--sidebar-hidden .main { margin-left: 0; }

@media (min-width: 861px) {
    .layout--sidebar-hidden .sidebar__scrim { display: none !important; }
}

/* ---------- Componentes ---------- */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    border: 1px solid var(--line);
}
.card--pad-lg { padding: 26px; }

.card-title { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.grid--kpi { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2-1 { grid-template-columns: 2fr 1fr; }

/* KPI cards */
.kpi { position: relative; overflow: hidden; }
.kpi__icon {
    width: 50px; height: 50px; border-radius: 15px;
    display: grid; place-items: center; font-size: 26px; margin-bottom: 14px;
}
.kpi__label { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.kpi__value { font-size: 28px; font-weight: 900; letter-spacing: -.5px; margin-top: 2px; }
.kpi__trend { font-size: 12.5px; font-weight: 800; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.i-primary { background: var(--primary-soft); color: var(--color-primary); }
.i-accent { background: var(--accent-soft); color: var(--color-accent); }
.i-secondary { background: var(--secondary-soft); color: var(--color-secondary); }
.i-warn { background: var(--warn-soft); color: var(--warn); }
.i-info { background: var(--info-soft); color: var(--info); }
.i-danger { background: var(--danger-soft); color: var(--danger); }

/* Botones chunky */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 14px; border: none; cursor: pointer;
    font-family: inherit; font-weight: 800; font-size: 14.5px;
    background: var(--surface); color: var(--ink); border: 1.5px solid var(--line);
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
    min-height: 46px; white-space: nowrap;
}
.btn i { font-size: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
    background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 65%, var(--color-secondary)));
    color: #fff; border-color: transparent; box-shadow: 0 8px 18px color-mix(in srgb, var(--color-primary) 35%, transparent);
}
.btn--accent { background: var(--color-accent); color: #fff; border-color: transparent; box-shadow: 0 8px 18px color-mix(in srgb, var(--color-accent) 32%, transparent); }
.btn--danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn--ghost { background: transparent; }
.btn--sm { padding: 8px 14px; min-height: 38px; font-size: 13px; border-radius: 11px; }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 28px; min-height: 54px; font-size: 16px; border-radius: 16px; }

/* Pills / badges */
.pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 30px; font-size: 12px; font-weight: 800;
}
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--danger { background: var(--danger-soft); color: var(--danger); }
.pill--info { background: var(--info-soft); color: var(--info); }
.pill--muted { background: var(--line); color: var(--ink-soft); }
.pill--primary { background: var(--primary-soft); color: var(--color-primary); }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Tablas */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
    text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); font-weight: 800; padding: 12px 14px; border-bottom: 2px solid var(--line);
    white-space: nowrap;
}
table.data th.th-sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 30px;
    position: relative;
    transition: color .12s, background .12s;
}
table.data th.th-sortable:hover { color: var(--color-primary); background: var(--primary-soft); }
table.data th.th-sortable::after {
    content: '⇅';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .35;
    font-size: 11px;
    font-weight: 900;
}
table.data th.is-sorted-asc::after { content: '↑'; opacity: 1; color: var(--color-primary); }
table.data th.is-sorted-desc::after { content: '↓'; opacity: 1; color: var(--color-primary); }
table.data th.is-sorted { color: var(--ink); }

.table-kit-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 0 0 14px;
    flex-wrap: wrap;
}
.table-kit-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(360px, 100%);
    width: 100%;
    position: relative;
    margin-left: auto;
}
.table-kit-search > i {
    position: absolute;
    left: 12px;
    color: var(--muted);
    font-size: 18px;
    pointer-events: none;
}
.table-kit-input { padding-left: 38px !important; width: 100%; }
.table-kit-count { font-size: 12px; color: var(--muted); font-weight: 800; white-space: nowrap; }
.table-kit-empty { margin-top: 8px; }

.input--sm { padding: 9px 12px; font-size: 13.5px; min-height: 40px; border-radius: 11px; }

/* Selector de vista (grid / lista / tabla) */
.cat-view-toggle {
    display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; flex-shrink: 0;
}
.cat-view-toggle button {
    border: none; background: #fff; padding: 10px 14px; cursor: pointer;
    font-weight: 800; color: var(--muted); font-family: inherit;
}
.cat-view-toggle button.is-active { background: var(--ink); color: #fff; }
.cat-view-toggle button i { font-size: 18px; vertical-align: middle; }
.list-views-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto;
}
table.data td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s ease; }
table.data tbody tr:hover { background: var(--bg); }
.td-strong { font-weight: 900; color: var(--ink); }
.td-muted { color: var(--muted); font-weight: 700; }

/* Formularios */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.field label .req { color: var(--danger); }
.input, .select, .textarea {
    font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink);
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 13px;
    background: var(--surface); width: 100%; transition: border .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 14%, transparent);
}
.textarea { resize: vertical; min-height: 90px; }
.field-hint { font-size: 12px; color: var(--muted); font-weight: 700; }

/* Alertas / flash */
.alert {
    padding: 14px 18px; border-radius: 14px; font-weight: 800; font-size: 14px;
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.alert i { font-size: 22px; }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.alert--error { background: var(--danger-soft); color: var(--danger); }
.alert--info { background: var(--info-soft); color: var(--info); }
.alert--warn { background: var(--warn-soft); color: var(--warn); }

/* Estado vacío */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { font-size: 54px; opacity: .5; }
.empty p { margin-top: 10px; font-weight: 700; }

/* Toolbar / filtros */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar__spacer { flex: 1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head p { color: var(--muted); font-weight: 700; margin-top: 2px; }

/* Chips de filtro */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 8px 16px; border-radius: 30px; border: 1.5px solid var(--line);
    background: var(--surface); font-weight: 800; font-size: 13px; color: var(--ink-soft); cursor: pointer;
}
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Progreso */
.bar { height: 9px; border-radius: 30px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 30px; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); }

/* Espacios grid */
.space-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.space-card {
    border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface);
    overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
}
.space-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.space-card__top { height: 96px; display: grid; place-items: center; position: relative; }
.space-card__code { font-size: 26px; font-weight: 900; color: #fff; }
.space-card__body { padding: 14px 16px; }
.space-card__name { font-weight: 800; font-size: 14px; }
.space-card__meta { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 3px; }

.st-disponible { background: linear-gradient(135deg, var(--ok), #4ecb8a); }
.st-ocupado { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); }
.st-reservado { background: linear-gradient(135deg, var(--warn), #ffcf5c); }
.st-mantenimiento { background: linear-gradient(135deg, #8a8597, #b3aec2); }

/* Modal */
.modal-scrim {
    position: fixed; inset: 0; background: rgba(42, 35, 64, .5);
    display: none; place-items: center; z-index: 100; padding: 20px;
    backdrop-filter: blur(3px);
}
.modal-scrim.is-open { display: grid; }
.modal {
    background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 520px;
    box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
    animation: pop .2s ease;
}
.modal--wide { max-width: 760px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: 18px; }
.modal__body { padding: 24px; }
.modal__foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* Utilidades */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-900 { font-weight: 900; }
.w-full { width: 100%; }
.hide { display: none !important; }

/* Gráficos */
.barchart { display: flex; align-items: flex-end; gap: 10px; height: 210px; padding-top: 10px; }
.barchart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.barchart__bar {
    width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, var(--color-primary), color-mix(in srgb, var(--color-secondary) 80%, var(--color-primary)));
    transition: height .5s ease, filter .15s, transform .15s; min-height: 4px;
}
.barchart__col:hover .barchart__bar { filter: brightness(1.08); }
.barchart__val {
    font-size: 10px; font-weight: 900; color: var(--ink-soft);
    white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.barchart__lbl { font-size: 11px; color: var(--muted); font-weight: 800; white-space: nowrap; }
.barchart--lg { height: 240px; }

.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex-shrink: 0; background: var(--line); }
.donut::after { content: ''; position: absolute; inset: 26px; background: var(--surface); border-radius: 50%; }
.donut__center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; }
.donut__center b { font-size: 26px; font-weight: 900; }
.donut__center span { font-size: 11px; color: var(--muted); font-weight: 800; display: block; }
.legend { display: grid; gap: 10px; }
.legend__item { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13.5px; }
.legend__dot { width: 12px; height: 12px; border-radius: 4px; }

.notif-list { display: flex; flex-direction: column; gap: 4px; }
.notif {
    display: flex; gap: 12px; padding: 12px; border-radius: 14px; align-items: flex-start;
    transition: background .12s ease;
}
.notif:hover { background: var(--bg); }
.notif__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.notif__title { font-weight: 800; font-size: 13.5px; }
.notif__msg { font-size: 12.5px; color: var(--muted); font-weight: 700; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__panel {
    position: absolute; right: 0; top: calc(100% + 10px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); width: 340px; padding: 10px; display: none; z-index: 60;
}
.dropdown__panel.is-open { display: block; }
.dropdown__head { padding: 8px 12px; font-weight: 900; font-size: 14px; display:flex; justify-content:space-between; align-items:center; }

/* Responsive */
@media (max-width: 1100px) {
    .grid--kpi { grid-template-columns: repeat(2, 1fr); }
    .grid--2-1, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.is-open { transform: translateX(0); }
    .layout--sidebar-hidden .sidebar { transform: translateX(-100%); }
    .layout--sidebar-hidden .sidebar.is-open { transform: translateX(0); }
    .main { margin-left: 0; }
    .sidebar__scrim.is-open { display: block; position: fixed; inset: 0; background: rgba(42,35,64,.4); z-index: 45; }
    .form-grid { grid-template-columns: 1fr; }
    .content { padding: 18px; }
    .topbar { padding: 14px 18px; }
    .user-chip__name, .user-chip__role, .topbar__sub { display: none; }
}
@media (max-width: 480px) {
    .grid--kpi { grid-template-columns: 1fr; }
}

/* Acciones rápidas */
.quick-actions {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px;
}
.quick-action {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 16px; border-radius: var(--radius); background: var(--surface);
    border: 1.5px solid var(--line); text-decoration: none; color: var(--ink);
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.quick-action:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--color-primary); }
.quick-action i { font-size: 24px; color: var(--color-primary); }
.quick-action b { font-size: 14px; font-weight: 900; }
.quick-action span { font-size: 11px; color: var(--muted); font-weight: 700; line-height: 1.3; }
button.quick-action, button[data-copy-url].btn { font-family: inherit; cursor: pointer; }
button[data-copy-url].is-copied { opacity: .95; }

.portal-welcome {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.rent-block--sep {
    padding-top: 20px; margin-top: 20px; border-top: 2px dashed var(--line);
}

.pill--accent { background: var(--accent-soft); color: var(--color-accent); }

.toast-stack {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
    padding: 14px 20px; border-radius: 14px; font-weight: 800; font-size: 14px;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
    animation: toast-in .3s ease;
}
.toast--ok { background: #0a6847; color: #fff; }
.toast--error { background: #9b2c42; color: #fff; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
.js-panel-toast { display: none !important; }

.pedidos-alert-bar {
    margin: 0 24px 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 12%, #fff), #fff);
    border: 1px solid color-mix(in srgb, var(--color-primary) 22%, #fff);
    box-shadow: var(--shadow-sm);
}
.pedidos-alert-bar__main {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.pedidos-alert-bar__main > i {
    font-size: 22px; color: var(--color-primary);
}
.pedidos-alert-bar__main strong { display: block; font-size: 15px; }
.pedidos-alert-bar__status { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.pedidos-alert-bar__status.is-open { color: var(--ok); }
.pedidos-alert-bar__status.is-closed { color: var(--warn); }
.pedidos-alert-bar__main .btn { margin-left: auto; }
.pedidos-alert-bar__list {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.pedidos-alert-bar__item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 12px; border-radius: 10px; background: #fff;
    border: 1px solid var(--line); text-decoration: none; color: inherit;
    min-width: 140px;
}
.pedidos-alert-bar__item strong { font-size: 13px; }
.pedidos-alert-bar__item span { font-size: 12px; color: var(--muted); font-weight: 700; }
.card--soft { background: var(--surface-2, #f8f7fb); border: 1px solid var(--line); border-radius: 14px; }
