/**
 * FELvus — estilos UI (identidad Multiservicios Sushell).
 *
 * @copyright 2026 Multiservicios Sushell
 * @license   Proprietary
 */

:root,
[data-theme="light"] {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #7c3aed;
    --brand-2: #a78bfa;
    --brand-deep: #5b21b6;
    --accent: #2563eb;
    --ok: #16a34a;
    --ok-bg: #dcfce7;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
    --shadow-soft: 0 6px 20px rgba(15, 23, 42, 0.08);
    --panel: #ffffff;
    --panel-soft: #f9fafb;
    --radius: 16px;
    --radius-sm: 12px;
    --hero: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 48%, #c4b5fd 100%);
    --sidebar: #111827;
    --sidebar-ink: #f9fafb;
    --guest-bg: linear-gradient(160deg, #f5f3ff 0%, #f3f4f6 45%, #ede9fe 100%);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --line: #334155;
    --brand: #a78bfa;
    --brand-2: #c4b5fd;
    --brand-deep: #7c3aed;
    --accent: #60a5fa;
    --ok: #4ade80;
    --ok-bg: rgba(22, 163, 74, 0.18);
    --danger: #f87171;
    --danger-bg: rgba(220, 38, 38, 0.18);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.3);
    --panel: #1e293b;
    --panel-soft: #0f172a;
    --hero: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%);
    --sidebar: #020617;
    --sidebar-ink: #f8fafc;
    --guest-bg: linear-gradient(160deg, #0f172a 0%, #1e1b4b 100%);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Ubuntu", "Segoe UI", system-ui, sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

strong, b, .page-title, .brand, .section-title, .stat-value, .btn, .form-label, .table thead th {
    font-weight: 700;
}

em, i, .text-muted, .feature-card span, .footer-note {
    font-style: italic;
    font-weight: 400;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }

.app-shell {
    --sidebar-width: 248px;
    --sidebar-width-collapsed: 76px;
    display: block;
    min-height: 100vh;
}

.app-shell.is-sidebar-collapsed {
    --sidebar-width: var(--sidebar-width-collapsed);
}

.app-shell.is-sidebar-collapsed .brand-text,
.app-shell.is-sidebar-collapsed .side-nav a .nav-label,
.app-shell.is-sidebar-collapsed .sidebar-profile,
.app-shell.is-sidebar-collapsed .sidebar-logout .btn {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    border: 0;
    pointer-events: none;
}

.app-shell.is-sidebar-collapsed .sidebar-logout::after {
    content: "⎋";
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
}

.app-shell.is-sidebar-collapsed .side-nav a {
    justify-content: center;
    padding-inline: 0.5rem;
}

.topbar-start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.sidebar-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 10px;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.sidebar-backdrop {
    display: none;
}

.felplex-status-card {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
}

.felplex-status-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.92rem;
}

.felplex-status-row span {
    color: var(--muted);
}

.app-sidebar {
    background: var(--sidebar);
    color: var(--sidebar-ink);
    padding: 1.25rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 60;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: width 0.2s ease;
    overflow: hidden;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.35rem 0.45rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand:hover {
    color: #fff;
}

.brand-logo {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, #7c3aed, #6366f1);
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    transition: opacity 0.15s ease;
}

.brand-name {
    line-height: 1.1;
}

.brand small {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(249, 250, 251, 0.86);
    padding: 0.62rem 0.75rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.93rem;
    text-decoration: none;
    line-height: 1.25;
    transition: background 0.15s ease, color 0.15s ease;
}

.side-nav a:hover,
.side-nav a.is-active {
    background: rgba(124, 58, 237, 0.32);
    color: #fff;
    font-weight: 700;
}

.sidebar-logout { margin-top: auto; }

.app-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.2s ease;
}

.app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.4rem 0.35rem;
}

.page-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.app-content {
    padding: 0.75rem 1.4rem 2rem;
}

body.is-pos-page .footer-note {
    display: none;
}

body.is-pos-page .app-content {
    padding-bottom: 0.5rem;
}

.theme-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Cards / panels estilo WPFEL */
.panel,
.table-wrap,
.hero-panel,
.stat-block,
.card-box {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.panel,
.table-wrap,
.hero-panel,
.card-box {
    padding: 1.25rem 1.35rem;
}

.hero-banner {
    background: var(--hero);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.hero-banner h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.hero-banner p {
    margin: 0;
    opacity: 0.95;
    max-width: 48rem;
    line-height: 1.45;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    white-space: nowrap;
}

.badge-pill.is-ok {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: transparent;
}

.badge-pill.is-soft {
    background: #fff;
    color: #4b5563;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1rem 0;
}

.stat-block {
    padding: 1rem 1.1rem;
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-value.is-ok { color: var(--ok); }
.stat-value.is-ink { color: var(--ink); }

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.section-icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: #eff6ff;
    color: var(--accent);
    font-size: 0.85rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.muted { color: var(--muted); }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.35rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

.detail-list li:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); font-weight: 600; }
.detail-list strong { font-weight: 700; text-align: right; }

.alert {
    border-radius: 12px;
    border: 0;
    font-weight: 600;
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.alert-success {
    background: var(--ok-bg);
    color: var(--ok);
}

.btn {
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-deep);
    --bs-btn-hover-border-color: var(--brand-deep);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
}

.btn-outline-danger {
    --bs-btn-color: var(--danger);
    --bs-btn-border-color: var(--danger);
}

.btn-outline-secondary {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--line);
}

.form-control,
.form-select {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
    border-radius: 10px;
    min-height: 44px;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.table {
    --bs-table-bg: transparent;
    color: var(--ink);
    margin: 0;
}

.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 800;
    border-bottom-color: var(--line);
}

.toolbar {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.quick-links a {
    border: 1px solid var(--line);
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    color: var(--ink);
    background: var(--surface);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.quick-links a:hover {
    border-color: var(--brand-2);
    color: var(--brand-deep);
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Guest / login (estilo Sushell split, sin demos) */
.guest-body {
    --guest-navy: #0b0e14;
    --guest-panel: #0f141d;
    --guest-panel-2: #121826;
    --guest-border: #1e293b;
    --guest-muted: #94a3b8;
    --guest-ink: #f8fafc;
    --guest-accent: #6366f1;
    min-height: 100vh;
    background:
        radial-gradient(600px 600px at -10% -20%, rgba(99, 102, 241, 0.12), transparent 60%),
        radial-gradient(600px 600px at 110% 120%, rgba(16, 185, 129, 0.06), transparent 55%),
        var(--guest-navy);
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.guest-panel {
    width: min(1100px, 100%);
    min-height: min(640px, calc(100vh - 3rem));
    display: grid;
    grid-template-columns: 5fr 7fr;
    background: rgba(15, 20, 29, 0.92);
    border: 1px solid var(--guest-border);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.guest-hero {
    background: linear-gradient(160deg, #1e1b4b 0%, #0f172a 55%, #172554 100%);
    color: var(--guest-ink);
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    border-right: 1px solid rgba(30, 41, 59, 0.8);
    min-height: 100%;
}

.guest-body-inner {
    padding: 2.5rem 2.5rem;
    background: rgba(11, 14, 20, 0.45);
    color: var(--guest-ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guest-brand-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.guest-brand-mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    background: var(--guest-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

.guest-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.guest-brand-tag {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.guest-hero-copy h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.guest-hero-copy p {
    margin: 0;
    color: var(--guest-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.guest-hero-features {
    display: grid;
    gap: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 65, 85, 0.7);
}

.guest-hero-features span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--guest-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.guest-feature-icon {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    font-size: 0.85rem;
}

.guest-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #818cf8;
}

.guest-kicker::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--guest-accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.guest-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: #fff;
}

.guest-subtitle {
    margin: 0 0 1.25rem;
    color: #64748b;
    font-size: 0.86rem;
}

.guest-body-inner .alert {
    border-radius: 12px;
    border: 0;
    font-size: 0.88rem;
}

.guest-body-inner .form-label {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guest-body-inner .form-control {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #1e293b;
    color: #f8fafc;
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
}

.guest-body-inner .form-control:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--guest-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    color: #fff;
}

.guest-body-inner .form-control::placeholder {
    color: #64748b;
}

.guest-body-inner .btn-primary {
    background: var(--guest-accent);
    border-color: var(--guest-accent);
    border-radius: 12px;
    font-weight: 700;
    padding: 0.8rem 1rem;
}

.guest-body-inner .btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

.guest-body-inner a {
    color: #a5b4fc;
}

.guest-body-inner a:hover {
    color: #c7d2fe;
}

.guest-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.guest-label-row .form-label {
    margin-bottom: 0;
}

.guest-label-row a {
    font-size: 0.75rem;
}

.branch-cards {
    display: grid;
    gap: 1rem;
}

.branch-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.85rem;
}

.branch-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.branch-card-head h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.branch-card-meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.branch-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.branch-kpi {
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0.65rem 0.75rem;
}

.branch-kpi span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.branch-kpi strong {
    font-size: 1.05rem;
}

.branch-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gt-flag {
    display: none;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-profile {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.35rem 0.5rem;
}

.sidebar-profile:hover {
    color: #fff;
}

.branch-topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.global-search-trigger {
    white-space: nowrap;
}

.global-search-modal[hidden] {
    display: none !important;
}

.global-search-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: start center;
    padding: 10vh 1rem 1rem;
}

.global-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.global-search-dialog {
    position: relative;
    width: min(720px, 100%);
    z-index: 1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.feature-card {
    display: grid;
    gap: 0.4rem;
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-2);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
}

.feature-card span {
    color: var(--muted);
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.4;
}

.feature-checklist {
    margin: 0;
    padding-left: 1.1rem;
}

.feature-checklist.columns-2 {
    columns: 2;
    column-gap: 2rem;
}

.feature-placeholder {
    padding: 1rem;
    border-radius: 12px;
    background: var(--panel-soft);
}

.search-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-results li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
}

.search-results li span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.small-link {
    display: inline-block;
    margin-top: 0.75rem;
}

.hero-banner.compact {
    padding: 1.1rem 1.25rem;
}

.pos-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
}

.pos-toolbar {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pos-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pos-grid {
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    align-content: start;
    padding: 0.75rem;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
}

.pos-product-card {
    display: grid;
    gap: 0.35rem;
    text-align: left;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    cursor: pointer;
}

.pos-product-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.pos-empty {
    color: var(--muted);
    padding: 1rem;
    text-align: center;
}

.pos-totals {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.pos-totals div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.pos-totals .is-total {
    font-size: 1.15rem;
    font-weight: 800;
}

.pos-pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.pos-links {
    display: grid;
    gap: 0.35rem;
}

.pos-links-title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 0.35rem;
}

.pos-links a {
    color: var(--brand);
    font-weight: 500;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb-nav a {
    color: inherit;
}

/* Sobre FELvus / novedades */
.about-dl {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.about-dl > div {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.5rem 0.85rem;
    align-items: start;
}

.about-dl dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.about-dl dd {
    margin: 0;
    font-weight: 600;
}

.about-wrap {
    word-break: break-word;
    font-weight: 500 !important;
    font-size: 0.88rem;
}

.about-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.about-checks li {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.9);
}

.about-checks li.is-ok {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(240, 253, 244, 0.7);
}

.about-checks li.is-bad {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(254, 242, 242, 0.8);
}

.about-checks li strong {
    font-size: 0.92rem;
}

.about-checks li span {
    color: var(--muted);
    font-size: 0.84rem;
}

.about-ext {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.about-modules {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
    max-height: 18rem;
    overflow: auto;
}

.about-modules li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.about-changelog-list {
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
}

.about-changelog-list li {
    margin-bottom: 0.35rem;
}

@media (max-width: 1100px) {
    .pos-shell { grid-template-columns: 1fr; }
    .feature-checklist.columns-2 { columns: 1; }
}

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .app-shell,
    .app-shell.is-sidebar-collapsed {
        --sidebar-width: 0px;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 40;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .sidebar-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(280px, 86vw);
        z-index: 50;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        height: 100vh;
        flex-direction: column;
        flex-wrap: nowrap;
        box-shadow: var(--shadow);
    }

    .app-sidebar.is-mobile-open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .app-shell.is-sidebar-collapsed .brand-text,
    .app-shell.is-sidebar-collapsed .side-nav a .nav-label {
        opacity: 1;
        width: auto;
        pointer-events: auto;
    }

    .side-nav {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .sidebar-logout { margin-top: auto; margin-left: 0; }

    .app-topbar { padding-top: 0.85rem; }

    .page-title {
        font-size: 1.1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stat-grid { grid-template-columns: 1fr; }
    .hero-banner { flex-direction: column; }

    .branch-kpis {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .guest-panel {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .guest-hero {
        border-right: 0;
        border-bottom: 1px solid rgba(30, 41, 59, 0.8);
        padding: 1.5rem 1.35rem;
    }

    .guest-body-inner {
        padding: 1.5rem 1.35rem;
        justify-content: flex-start;
    }
}

/* POS: compactar topbar genérica y dar espacio al terminal */
.app-shell.is-pos-shell .app-topbar.is-pos-topbar-hidden {
    display: none;
}

.app-shell.is-pos-shell .app-content.is-pos-content {
    padding-top: 0.35rem;
}

@media (max-width: 900px) {
    .app-shell.is-pos-shell .app-topbar.is-pos-topbar-hidden {
        display: flex;
        padding: 0.55rem 0.85rem 0.15rem;
    }

    .app-shell.is-pos-shell .app-topbar.is-pos-topbar-hidden .topbar-actions {
        display: none;
    }
}

.demo-mode-banner {
    background: linear-gradient(90deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
    font-size: 0.875rem;
    padding: 0.55rem 1rem;
    text-align: center;
}

.demo-mode-banner--guest {
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: left;
}

[data-theme="dark"] .demo-mode-banner {
    background: linear-gradient(90deg, #1d4ed8 0%, #6d28d9 100%);
}
