:root {
    --ink: #334155;
    --ink-soft: #64748b;
    --paper: #f1f5f9;
    --paper-2: #e2e8f0;
    --panel: #ffffff;
    --line: #e2e8f0;
    --accent: #0B2545;
    --accent-2: #1e293b;
    --accent-soft: #eff6ff;
    --accent-cyan: #2563eb;
    --cta: #2563eb;
    --danger: #dc2626;
    --warn: #d97706;
    --ok: #047857;
    --info: #2563eb;
    --sidebar: #16324F;
    --sidebar-2: #12283F;
    --sidebar-3: #0F2136;
    --sidebar-text: rgba(226, 232, 240, .88);
    --sidebar-text-hover: #fff;
    --sidebar-accent: #2474B8;
    --sidebar-accent-bright: #5BA3D9;
    --sidebar-border: rgba(255, 255, 255, .1);
    --radius: 8px;
    --radius-sm: 6px;
    --grad: #2563eb;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04);
    --glow: none;
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --font: Inter, "Segoe UI", system-ui, sans-serif;
    --display: Inter, "Segoe UI", system-ui, sans-serif;
    --sidebar-w: 220px;
    --sidebar-w-min: 68px;
}

* { box-sizing: border-box; }
html { font-size: 13px; }
html, body { margin: 0; min-height: 100%; }
body.secret-body, body.secret-guest {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    font-size: .8125rem;
    line-height: 1.4;
}
input, select, textarea, button, option, optgroup {
    font-family: var(--font) !important;
    font-size: inherit;
    letter-spacing: inherit;
}
select {
    color: var(--ink);
    background-color: #fff;
}
.data-table select, .data-table input, .pos-cart select {
    font: inherit;
    font-family: var(--font) !important;
    font-size: .75rem;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: .28rem .4rem;
    max-width: 100%;
}

.combo-wrap, .custom-dropdown { position: relative; display: block; min-width: 0; width: 100%; max-width: 100%; min-height: 2rem; overflow: visible; }
.input-with-btn .combo-wrap, .input-with-btn .custom-dropdown { flex: 1; }
.empresa-switch .combo-wrap, .empresa-switch .custom-dropdown { display: none !important; }
.aunox-pick-native {
    position: absolute !important; width: 1px !important; height: 1px !important;
    opacity: 0 !important; pointer-events: none !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0); border: 0; padding: 0; margin: 0;
}
.aunox-pick { position: relative; display: block; min-width: 0; width: 100%; }
.aunox-pick-trigger {
    width: 100%; height: 2.25rem; min-height: 2.25rem; text-align: left;
    font-family: var(--font) !important; font-size: .75rem; font-weight: 500; color: #0f172a;
    background: #fff; border: 1px solid #e2e8f0; border-radius: .5rem;
    padding: 0 2rem 0 .65rem; cursor: pointer; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.aunox-pick-trigger:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.aunox-pick::after {
    content: ""; position: absolute; right: .65rem; top: 50%; width: .4rem; height: .4rem;
    border-right: 1.5px solid #64748b; border-bottom: 1.5px solid #64748b;
    transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.aunox-pick--ctx { flex: 1; min-width: 0; }
.aunox-pick--ctx .aunox-pick-trigger {
    height: 100%; min-height: 0; border: 0; border-radius: 0; background: transparent;
    padding: 0 1.1rem 0 0; font-weight: 600;
}
.aunox-pick--ctx::after { display: none; }
.aunox-pick--ctx:focus-within .aunox-pick-trigger { box-shadow: none; }
.aunox-pick-menu {
    position: absolute; z-index: 50; left: 0; top: calc(100% + 2px); width: 100%;
    max-height: 260px; overflow: auto; background: #fff; border: 1px solid #e2e8f0;
    border-radius: .5rem; box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}
.aunox-pick-item {
    display: block; width: 100%; text-align: left; border: 0; background: #fff;
    padding: .45rem .65rem; font: inherit; font-size: .75rem; color: #0f172a; cursor: pointer;
}
.aunox-pick-item:hover, .aunox-pick-item.is-selected { background: #ecfeff; color: #0e7490; }
.aunox-pick--blue .aunox-pick-trigger:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.aunox-pick--purple .aunox-pick-trigger:focus { border-color: #1e3a5f; box-shadow: 0 0 0 3px rgba(30, 58, 95, .12); }
.aunox-pick--emerald .aunox-pick-trigger:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.aunox-pick--cyan .aunox-pick-trigger:focus { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.data-table .combo-wrap, .data-table .custom-dropdown { min-width: 11rem; }
.combo-btn, .custom-dropdown > .dropdown-trigger.combo-btn {
    width: 100%; height: 2rem; min-height: 2rem; max-height: 2rem; text-align: left;
    font-family: var(--font) !important; font-size: .75rem; font-weight: 400; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .375rem 1.6rem .375rem .65rem; cursor: pointer; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-sizing: border-box;
}
.combo-btn:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.combo-wrap::after, .custom-dropdown:has(> .combo-btn)::after {
    content: ""; position: absolute; right: .55rem; top: 50%; width: .4rem; height: .4rem;
    border-right: 1.5px solid #64748b; border-bottom: 1.5px solid #64748b;
    transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.combo-panel, .dropdown-menu {
    position: absolute; z-index: 50; left: 0; top: calc(100% + 2px); width: 100%;
    max-height: 240px; overflow: auto; background: #fff; border: 1px solid var(--line);
    border-radius: 6px; box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.combo-panel.is-layer, .dropdown-menu.is-layer { position: fixed; width: auto; right: auto; }
.dropdown-menu[hidden], .cli-results[hidden] { display: none !important; }
.combo-search {
    width: calc(100% - .7rem); margin: .35rem; padding: .28rem .45rem;
    border: 1px solid var(--line); border-radius: 4px;
    font-family: var(--font) !important; font-size: .75rem;
}
.combo-opt, .dropdown-item {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    padding: .35rem .55rem; font-family: var(--font) !important; font-size: .75rem;
    color: var(--ink); cursor: pointer; line-height: 1.35;
}
.combo-opt:hover, .combo-opt.is-active, .dropdown-item:hover, .dropdown-item.is-active { background: var(--accent-soft); color: #1d4ed8; }
.combo-opt.is-selected, .dropdown-item.is-selected { font-weight: 600; }

.secret-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; align-items: start; transition: grid-template-columns .2s ease; }
.secret-shell.is-collapsed { grid-template-columns: var(--sidebar-w-min) 1fr; }
.secret-sidebar {
    background: linear-gradient(180deg, var(--sidebar) 0%, #142A44 48%, var(--sidebar-2) 100%);
    color: var(--sidebar-text);
    padding: .5rem .5rem 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    overscroll-behavior: contain;
    border-right: 1px solid rgba(34, 211, 238, .12);
    box-shadow: 2px 0 24px rgba(30, 41, 93, .18);
}
.secret-sidebar::-webkit-scrollbar { width: 6px; }
.secret-sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 233, .35); border-radius: 8px;
}
.brand {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-shrink: 0;
    margin: -.5rem -.5rem 0;
    padding: .75rem .65rem;
    border-bottom: 1px solid var(--sidebar-border);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, .08) 100%),
        var(--sidebar-3);
    position: relative;
}
.brand::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sidebar-accent-bright), transparent);
    opacity: .45;
}
.brand-text { min-width: 0; flex: 1; }
.brand strong { display: block; font-size: .8rem; color: #fff; line-height: 1.15; font-weight: 800; letter-spacing: .04em; }
.brand small { font-size: .62rem; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: rgba(165, 180, 252, .75); }
.brand-logo {
    width: 1.85rem; height: 1.85rem; border-radius: 8px;
    object-fit: contain; background: #fff; flex-shrink: 0;
    padding: 2px; border: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.sidebar-toggle {
    margin-left: auto; width: 1.45rem; height: 1.45rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px;
    background: rgba(255, 255, 255, .06); color: rgba(199, 210, 254, .9); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
    transition: background .15s, color .15s, border-color .15s;
}
.sidebar-toggle svg { width: .85rem; height: .85rem; }
.sidebar-toggle:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(34, 211, 238, .35); }
.secret-shell.is-collapsed .brand-text,
.secret-shell.is-collapsed .nav-label,
.secret-shell.is-collapsed .nav-section-label,
.secret-shell.is-collapsed .sidebar-foot span { display: none; }
.secret-shell.is-collapsed .secret-nav a { justify-content: center; padding: .6rem; }
.secret-shell.is-collapsed .nav-section { justify-content: center; padding: .35rem .2rem; margin: .2rem 0; }
.secret-shell.is-collapsed .brand { justify-content: center; flex-wrap: wrap; }
.secret-shell.is-collapsed .sidebar-toggle { margin: .25rem 0 0; }
.brand-logo.lg { width: 5.5rem; height: 5.5rem; margin: 0 auto .85rem; display: block; }
.brand-logo.brand-logo-full {
    width: 8.5rem; height: 8.5rem; border-radius: 18px;
    background: #fff; padding: .35rem;
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.brand-mark {
    width: 2.4rem; height: 2.4rem; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), #3d8fd1);
    color: #fff; font-weight: 700;
}
.brand-mark.lg { width: 3.2rem; height: 3.2rem; font-size: 1.4rem; margin: 0 auto .75rem; }
.secret-nav {
    display: flex; flex-direction: column; gap: 1px;
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
    padding: .35rem 0 .5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 233, .35) transparent;
}
.secret-nav::-webkit-scrollbar { width: 6px; }
.secret-nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 233, .35); border-radius: 8px;
}
.secret-nav a {
    color: var(--sidebar-text);
    text-decoration: none;
    padding: .42rem .55rem;
    border-radius: 6px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.secret-nav a .nav-ico { width: 1rem; height: 1rem; flex-shrink: 0; color: rgba(165, 180, 252, .88); transition: color .12s; }
.secret-nav a.active {
    background: linear-gradient(90deg, rgba(8, 145, 178, .42) 0%, rgba(255, 255, 255, .1) 100%);
    color: #fff;
    font-weight: 700;
    border-left-color: var(--sidebar-accent-bright);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.secret-nav a.active .nav-ico { color: #fff; }
.secret-nav a:hover:not(.disabled):not(.active) {
    background: rgba(255, 255, 255, .08);
    color: var(--sidebar-text-hover);
}
.secret-nav a:hover:not(.disabled) .nav-ico { color: #fff; }
.secret-nav a.disabled { opacity: .4; cursor: not-allowed; }
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.secret-nav .nav-section {
    appearance: none; -webkit-appearance: none;
    font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(165, 180, 252, .72);
    margin: .35rem 0 .05rem; padding: .28rem .4rem;
    font-weight: 700; width: 100%;
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
    gap: .35rem; background: transparent; border: 0; box-shadow: none;
    cursor: pointer; text-align: left; border-radius: 6px;
    min-height: 0; min-width: 0; height: auto; line-height: 1.2;
    transition: background .12s, color .12s;
}
.secret-nav .nav-section:hover, .secret-nav .nav-section:focus-visible {
    color: #fff; background: rgba(255, 255, 255, .06); outline: none;
}
.nav-section-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secret-nav .nav-section-chevron {
    width: 10px !important; height: 10px !important; max-width: 10px; max-height: 10px;
    flex: 0 0 10px; display: block; transition: transform .15s ease;
}
.secret-nav .nav-group:not(.is-collapsed) .nav-section-chevron { transform: rotate(90deg); }
.nav-group-items { display: flex; flex-direction: column; gap: 1px; }
.secret-nav .nav-group.is-collapsed > .nav-group-items,
.secret-nav .nav-group-items[hidden] { display: none !important; }
.badge.warn { background: #fef3c7; color: #92400e; }
.reserva-body { display: grid; place-items: start center; padding: 2rem 1rem; }
.reserva-card { width: min(640px, 100%); }
.sidebar-foot {
    flex-shrink: 0; margin-top: 0; padding: .5rem .6rem .65rem;
    border-top: 1px solid var(--sidebar-border);
    display: flex; flex-direction: column; gap: .1rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .12));
    z-index: 2;
}
.sidebar-foot span { color: rgba(224, 231, 255, .9); font-size: .68rem; font-weight: 600; }
.sidebar-foot small { color: rgba(165, 180, 252, .65); font-size: .62rem; }
.app-version { display: none; }

.secret-main { display: flex; flex-direction: column; min-width: 0; }
.secret-topbar {
    display: flex; align-items: center; gap: .5rem;
    padding: .4rem .75rem;
    height: 3rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky; top: 0; z-index: 10;
}
.global-search { position: relative; flex: 1; min-width: 0; max-width: 28rem; }
.global-search .ui-ico {
    position: absolute; left: .5rem; top: 50%; transform: translateY(-50%);
    width: .85rem; height: .85rem; color: #94a3b8; pointer-events: none;
}
.global-search input {
    width: 100%; height: 2rem; border: 1px solid var(--line); border-radius: 6px;
    background: var(--paper); padding: 0 .6rem 0 1.7rem; font: inherit; font-size: .75rem; color: var(--ink);
}
.global-search input:focus {
    outline: none; background: #fff; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.empresa-switch { display: flex; flex-direction: row; align-items: center; gap: .55rem; min-width: 0; flex-shrink: 0; }
.empresa-kicker { display: none; }
.ctx-field { display: none; }
.ctx-label { display: none; }
.ctx-select-wrap {
    display: flex; align-items: center; gap: .45rem;
    height: 2.125rem; min-width: 0; max-width: 13rem;
    padding: 0 .5rem 0 .45rem;
    background: #fff; border: 1px solid #e2e8f0; border-radius: .5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .15s, box-shadow .15s;
    position: relative;
}
.ctx-select-wrap::after { display: none; }
.ctx-select-wrap:has(select:not([data-aunox-pick]))::after {
    display: block;
    content: "";
    position: absolute;
    right: .45rem;
    top: 50%;
    width: .35rem;
    height: .35rem;
    border-right: 1.5px solid #94a3b8;
    border-bottom: 1.5px solid #94a3b8;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    z-index: 1;
}
.ctx-select-wrap:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .12);
}
.ctx-select-wrap .ctx-ico {
    width: 1.125rem; height: 1.125rem; flex-shrink: 0;
}
.ctx-empresa .ctx-ico { color: #1e3a5f; }
.ctx-sucursal .ctx-ico { color: #2563eb; }
.ctx-select-wrap select {
    flex: 1; min-width: 0; width: 100%; height: 100%;
    border: 0; background: transparent; padding: 0 .15rem 0 0;
    font: inherit; font-size: .75rem; font-weight: 600; color: #0f172a;
    cursor: pointer; appearance: none; -webkit-appearance: none;
}
.ctx-select-wrap .aunox-pick { flex: 1; min-width: 0; height: 100%; }
.ctx-select-wrap select:focus { outline: none; box-shadow: none; }
.ctx-select-wrap.ctx-readonly { cursor: default; max-width: 12rem; }
.ctx-sucursal-fija {
    display: inline-flex; align-items: center; flex: 1; min-width: 0;
    height: 100%; padding: 0 .15rem 0 0;
    font-size: .75rem; font-weight: 600; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border: 0; background: transparent;
}
.empresa-switch label { font-size: .75rem; color: var(--ink-soft); }
.login-form input {
    border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
    padding: .28rem .5rem; height: 2rem; font: inherit; font-size: .75rem; color: inherit;
}
.login-form input:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.topbar-right { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.user-chip { text-align: left; }
.user-chip span { display: block; font-weight: 600; font-size: .75rem; line-height: 1.15; color: #1e293b; }
.user-chip small { color: var(--ink-soft); font-size: .62rem; }
.avatar {
    width: 1.5rem; height: 1.5rem; border-radius: 4px; background: var(--accent); color: #fff;
    display: grid; place-items: center; font-size: .62rem; font-weight: 600; flex-shrink: 0;
}
.user-menu { position: relative; }
.user-menu summary {
    list-style: none; display: flex; align-items: center; gap: .4rem; cursor: pointer;
    padding: .15rem .4rem .15rem .15rem; border-radius: 6px; border: 1px solid var(--line); background: #fff;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--paper); }
.user-menu-panel {
    position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20;
    min-width: 220px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem;
}
.user-menu-meta { padding: .55rem .7rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.user-menu-meta strong { display: block; font-size: .88rem; }
.user-menu-meta small { color: var(--ink-soft); }
.user-menu-panel a, .user-menu-panel button {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    padding: .5rem .7rem; font: inherit; cursor: pointer; color: inherit; text-decoration: none; border-radius: 6px;
}
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--paper); }
.btn-ghost, .btn-primary, .icon-btn, .btn-danger, .btn-primary.inline, a.btn-ghost, a.btn-primary {
    border: 0; cursor: pointer; font-family: var(--font) !important; border-radius: .375rem;
    font-weight: 500; font-size: .75rem; line-height: 1.25; height: auto;
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    padding: .375rem .75rem; text-decoration: none; box-sizing: border-box;
    transition: background .12s ease, border-color .12s ease;
}
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover, .btn-task:hover, .combo-btn:hover {
    background: #fff; border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4338ca; color: #fff; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #fecaca; }
.icon-btn { display: none; background: var(--paper-2); width: 2rem; height: 2rem; padding: 0; border-radius: .375rem; }

.secret-content { padding: .85rem 1rem 1.25rem; }
.page-head { margin-bottom: .7rem; }
.page-head h1, h1, h2, h3, .panel h2, .section-title, .factura-panel h2, .lineas-panel h2 {
    font-family: var(--font) !important; font-size: .875rem; margin: .05rem 0; font-weight: 600;
    color: #0B2545;
}
.panel h2, .factura-panel h2, .form-panel > h2, .lineas-panel h2, .inv-alerts > h2, .section-title {
    background: rgba(241, 245, 249, .6);
    border-left: 3px solid #0B2545;
    padding: .28rem .55rem;
    border-radius: 0 6px 6px 0;
    margin: 0 0 .65rem;
}
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
    gap: .75rem;
    margin: 0 0 .85rem;
    width: 100%;
}
.kpi-card {
    background: linear-gradient(165deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
    border: 1px solid #bfdbfe;
    border-radius: .85rem;
    padding: .85rem 1rem;
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    min-height: 4.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 20px -14px rgba(15, 23, 42, .18);
}
.kpi-card.tone-ok {
    background: linear-gradient(165deg, #ecfdf5 0%, #f0fdf4 55%, #fff 100%);
    border-color: #a7f3d0;
}
.kpi-card.tone-info {
    background: linear-gradient(165deg, #eff6ff 0%, #f0f9ff 55%, #fff 100%);
    border-color: #bfdbfe;
}
.kpi-card.tone-teal {
    background: linear-gradient(165deg, #f0fdfa 0%, #ecfeff 55%, #fff 100%);
    border-color: #99f6e4;
}
.kpi-card.tone-warn {
    background: linear-gradient(165deg, #fffbeb 0%, #fff7ed 55%, #fff 100%);
    border-color: #fde68a;
}
.kpi-card.tone-danger {
    background: linear-gradient(165deg, #fef2f2 0%, #fff1f2 55%, #fff 100%);
    border-color: #fecaca;
}
.kpi-card:nth-child(4n+1):not([class*="tone-"]) {
    background: linear-gradient(165deg, #eff6ff 0%, #f0f9ff 55%, #fff 100%);
}
.kpi-card:hover { filter: brightness(1.01); }
.kpi-label {
    display: block; font-size: .68rem; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; color: #64748b; margin-bottom: .28rem;
}
.kpi-value {
    display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em;
    color: #0f172a; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.kpi-value.tone-warn, .kpi-ico.tone-warn { color: #b45309; }
.kpi-value.tone-danger { color: #b91c1c; }
.kpi-value.tone-ok { color: #047857; }
.kpi-value.tone-info { color: #1d4ed8; }
.kpi-value.tone-teal { color: #0f766e; }
.kpi-ico {
    width: 2.35rem; height: 2.35rem; border-radius: .7rem; display: grid; place-items: center;
    flex-shrink: 0;
}
.kpi-ico .ui-ico { width: 1.15rem; height: 1.15rem; }
.kpi-ico.tone-ok { background: #d1fae5; color: #059669; }
.kpi-ico.tone-info { background: #dbeafe; color: #2563eb; }
.kpi-ico.tone-teal { background: #ccfbf1; color: #0d9488; }
.kpi-ico.tone-warn { background: #fef3c7; color: #d97706; }
.kpi-ico.tone-danger { background: #fee2e2; color: #dc2626; }
.filters {
    position: relative;
    display: flex; flex-wrap: wrap; gap: .5rem .65rem; margin-bottom: .75rem; align-items: flex-end;
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: .55rem .65rem;
    overflow: visible;
}
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: var(--ink-soft); margin: 0; font-weight: 700; }
.muted { color: var(--ink-soft); margin: 0; }
.section-title { font-size: .875rem; font-weight: 600; margin: 1rem 0 .5rem; color: var(--ink); }

.stat-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1rem;
}
.stat-grid article, .panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .7rem .8rem;
    overflow: visible;
}
.chart-grid .panel:nth-child(1) { background: #fff; border-top: 2px solid #0B2545; }
.chart-grid .panel:nth-child(2) { background: #fff; border-top: 2px solid #10b981; }
.stat-grid article:hover { border-color: #cbd5e1; }
.stat-grid strong { display: block; margin-top: .3rem; font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.money-grid strong { color: var(--ink); }
.stat-label, .stat-grid span { display: block; color: var(--ink-soft); font-size: .78rem; font-weight: 600; }
.stat-hint { display: block; margin-top: .3rem; color: var(--ink-soft); font-size: .75rem; font-weight: 500; }
.panel h2 { margin: 0 0 .75rem; font-size: 0.95rem; font-weight: 700; }
.dash-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.dash-row { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--paper-2); }
.dash-row:last-child { border-bottom: 0; }
.empty-state { color: var(--ink-soft); font-size: .88rem; padding: .5rem 0; }
.alert-row { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.checklist { padding-left: 1.1rem; color: var(--ink-soft); }
.checklist li { margin: .35rem 0; }
.flash { background: var(--paper); border: 1px solid var(--line); color: var(--ink); padding: .7rem .95rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.flash.warn { background: #fff8e6; border-color: #f3dd8c; color: #8a6a00; }
.flash.danger { background: #fdecec; border-color: #f0c0c0; color: var(--danger); }

.secret-guest {
    min-height: 100vh; display: block; position: relative; overflow: hidden;
    background: var(--paper);
}
.guest-bg { display: none; }
.login-split {
    min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
}
.login-promo {
    position: relative; color: var(--ink); padding: 2.2rem 2.4rem; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; gap: .85rem;
    background: #fff; border-right: 1px solid var(--line);
}
.login-promo::before { display: none; }
.login-promo > * { position: relative; }
.login-promo h2 {
    font-family: Inter, sans-serif; font-size: 1.15rem;
    line-height: 1.35; margin: 0; font-weight: 600; color: #1e293b;
}
.login-promo h2 em { font-style: normal; color: var(--accent); }
.login-promo p { margin: 0; color: var(--ink-soft); max-width: 28rem; line-height: 1.5; font-size: .8rem; }
.login-promo ul { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .45rem; }
.login-promo li { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .8rem; }
.login-promo li span {
    width: 1.7rem; height: 1.7rem; border-radius: 6px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); border: 1px solid #dbeafe;
}
.login-promo li span .ui-ico { width: .9rem; height: .9rem; }
.login-side {
    display: grid; place-items: center; padding: 1.5rem 1.2rem; background: var(--paper);
}
.guest-card {
    position: relative; width: min(380px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.35rem 1.2rem 1.1rem;
}
.login-form .btn-primary { width: 100%; }
.login-brand { text-align: center; margin-bottom: 1.4rem; }
.login-brand h1 { font-family: var(--font); margin: 0; font-size: 1.35rem; }
.login-brand p { margin: .35rem 0 0; color: var(--ink-soft); }
.login-form { display: grid; gap: .85rem; }
.login-form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.login-form input { border-radius: 12px; padding: .7rem .8rem; }
.remember { display: flex !important; align-items: center; gap: .5rem; font-weight: 400 !important; }
.field-error { color: var(--danger); font-size: .85rem; }
.login-hint { text-align: center; color: var(--ink-soft); font-size: .8rem; margin: 1rem 0 0; }
.login-hint a { color: var(--accent); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) {
    .login-split { grid-template-columns: 1fr; }
    .login-promo { min-height: 220px; padding: 1.6rem 1.4rem; }
}

@media (max-width: 960px) {
    .secret-shell { grid-template-columns: 1fr; }
    .secret-sidebar {
        position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-105%);
        transition: transform .2s ease; width: min(280px, 85vw);
        height: 100vh; max-height: 100vh; overflow-y: auto;
    }
    .secret-sidebar.open { transform: translateX(0); }
    .icon-btn { display: grid; place-items: center; flex-shrink: 0; }
    .stat-grid, .dash-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-chip small { display: none; }
    .sidebar-toggle { display: none; }

    /* Topbar móvil: una sola fila estable (sin wrap ni desborde) */
    .secret-topbar {
        height: 3rem;
        min-height: 3rem;
        max-height: 3rem;
        flex-wrap: nowrap;
        align-items: center;
        gap: .35rem;
        padding: 0 .5rem;
        overflow: hidden;
    }
    .secret-topbar .global-search { display: none; }
    .secret-topbar .empresa-switch {
        flex: 1 1 auto;
        min-width: 0;
        gap: .3rem;
        overflow: hidden;
    }
    .secret-topbar .ctx-select-wrap {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        height: 2rem;
        padding: 0 .35rem 0 .3rem;
    }
    .secret-topbar .ctx-select-wrap .ctx-ico { width: 1rem; height: 1rem; }
    .secret-topbar .ctx-select-wrap select,
    .secret-topbar .ctx-sucursal-fija {
        font-size: .68rem;
        font-weight: 600;
    }
    .secret-topbar .topbar-right,
    .secret-topbar .taskbar {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: .25rem;
        margin-left: 0;
        overflow: visible;
    }
    /* App / Ver REQ viven en el menú lateral; en móvil solo cámara + usuario */
    .secret-topbar .topbar-right > .btn-task:not(.btn-req-grabar) { display: none; }
    .secret-topbar .btn-task span { display: none; }
    .secret-topbar .btn-task {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        padding: 0;
        justify-content: center;
        gap: 0;
    }
    .secret-topbar .user-menu { flex-shrink: 0; }
    .secret-topbar .user-menu .user-chip { display: none; }
    .secret-topbar .user-menu summary {
        padding: .1rem;
        gap: 0;
        border: 0;
        background: transparent;
    }
}
@media (max-width: 560px) {
    .stat-grid, .dash-lists { grid-template-columns: 1fr; }
    .empresa-switch label { display: none; }
    .secret-topbar .ctx-empresa { flex: 1.35 1 0; }
    .secret-topbar .ctx-sucursal { flex: .85 1 0; max-width: 6.5rem; }
}

.row-between { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.btn-print {
    width: 2.15rem; height: 2.15rem; padding: 0; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0;
}
.btn-print:hover { background: var(--accent-soft); color: var(--accent); border-color: #c5dcf0; }
.head-actions, .taskbar {
    display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: wrap;
}
.btn-task {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #fff; color: #334155; border: 1px solid #e2e8f0;
    border-radius: .375rem; padding: .375rem .75rem;
    font-family: var(--font) !important; font-size: .75rem; font-weight: 500; line-height: 1.25;
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-task:hover { background: #f8fafc; color: #334155; }
.btn-task .task-ico, .btn-task .ui-ico { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-task.is-create .task-ico { color: #059669; }
.btn-task.is-download .task-ico { color: #2563eb; }
.btn-task.is-edit .task-ico { color: #f59e0b; }
.btn-task.is-danger .task-ico { color: #e11d48; }
.btn-task.is-config .task-ico { color: #64748b; }
.btn-task.is-device .task-ico { color: #2563eb; }
.head-actions .btn-primary, .head-actions .btn-ghost, .head-actions .btn-print {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #fff; color: #334155; border: 1px solid #e2e8f0;
    border-radius: .375rem; padding: .375rem .75rem; height: auto;
    font-size: .75rem; font-weight: 500;
}
.head-actions .btn-primary:hover, .head-actions .btn-ghost:hover {
    background: #fff; color: #334155; border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}
.topbar-right { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.table-wrap {
    position: relative;
    background: #fff; border: 1px solid rgba(226, 232, 240, .9); border-radius: var(--radius);
    overflow-x: auto; overflow-y: visible;
    border-top: 2px solid #0B2545;
}
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .75rem; }
.data-table th, .data-table td { padding: .45rem .7rem; border-bottom: 1px solid #f1f5f9; text-align: left; vertical-align: middle; }
.data-table th { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; background: var(--paper); font-weight: 600; }
.data-table tbody tr:hover { background: #f1f5f9; }
.data-table tr:last-child td { border-bottom: 0; }
.right { text-align: right !important; }
.data-table td.right { white-space: nowrap; }
.data-table td.right .btn-ghost, .data-table td.right .btn-primary, .data-table .link {
    vertical-align: middle;
}
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.badge { display: inline-block; padding: .12rem .45rem; border-radius: 4px; font-size: .65rem; font-weight: 600; background: var(--paper); color: var(--ink-soft); }
.badge.ok { background: #ecfdf5; color: #047857; }
.badge.off { background: #f1f5f9; color: #64748b; }
.badge.warn { background: #fffbeb; color: #b45309; }
.chip { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .12rem .5rem; margin: .1rem; font-size: .75rem; color: var(--ink-soft); }
a.chip { text-decoration: none; color: inherit; }
.chip-on { background: var(--accent-soft); color: var(--accent); border-color: #c5dcf0; }
.tiny { font-size: .8rem; }
.form-panel {
    position: relative;
    background: #fff; border: 1px solid rgba(226, 232, 240, .9); border-radius: var(--radius);
    padding: .85rem .95rem; margin-bottom: .85rem;
    overflow: visible;
}
.howto-ol { margin: 0; padding-left: 1.25rem; color: var(--ink); line-height: 1.65; }
.howto-ol li { margin: .45rem 0; }
.form-section-kicker {
    font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-soft); font-weight: 700; margin: 0 0 .65rem;
}
.filters input, .filters select, .mini-form input, .mini-form select, textarea {
    border: 1px solid var(--line); background: #fff; border-radius: .375rem; padding: .375rem .65rem; font: inherit;
}
.form-grid input:focus, .form-grid select:focus, textarea:focus, .filters input:focus, .filters select:focus,
.combo-btn:focus, input[type="date"]:focus {
    outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
}
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .85rem 1rem; align-items: start; overflow: visible; }
.form-grid > * { min-width: 0; }
.form-grid.one-col { grid-template-columns: minmax(0, 1fr); }
.form-grid > label:not(.check), .fieldset > .form-grid > label:not(.check), .filters > label:not(.check) {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1.25rem auto;
    column-gap: .3rem;
    row-gap: .28rem;
    align-items: end;
    color: #334155; font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none;
    min-height: 0;
}
.form-grid > label:not(.check) {
    overflow: visible;
    padding-bottom: .7rem;
}
.factura-panel label:not(.check), .form-panel label:not(.check), .pos-cart label:not(.check),
.modal-card label:not(.check), .mini-form label:not(.check) {
    color: #334155; font-size: .75rem; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.form-grid > label:not(.check) > .lbl-row {
    grid-row: 1; grid-column: 1;
    min-width: 0; max-height: 1.25rem; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
}
.form-grid > label:not(.check) > .tip {
    grid-row: 1; grid-column: 2;
}
.form-grid > label:not(.check) > input,
.form-grid > label:not(.check) > select,
.form-grid > label:not(.check) > textarea,
.form-grid > label:not(.check) > .id-lookup,
.form-grid > label:not(.check) > .combo-wrap,
.form-grid > label:not(.check) > .custom-dropdown,
.form-grid > label:not(.check) > .input-with-btn,
.form-grid > label:not(.check) > .ctrl {
    grid-row: 2; grid-column: 1 / -1;
}
.form-grid > label:not(.check):has([required]) > .lbl-row::after {
    content: " *"; color: #dc2626; font-weight: 600;
}
.form-grid > label:not(.check) > small.muted,
.form-grid > label:not(.check) > .field-hint:not(.field-error):not(:has(img)) {
    display: none;
}
.form-grid > label:not(.check) > .field-error,
.form-grid > label:not(.check) > small.field-error {
    display: block;
    position: absolute; left: 0; top: calc(100% - .55rem);
    margin: 0; font-size: 10px; line-height: 1.25; font-weight: 500;
    color: #dc2626; z-index: 1;
}
.form-grid > label:not(.check) > .field-error[hidden],
.form-grid > label:not(.check) > .field-error:empty {
    display: none !important;
}
.form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.form-grid select,
.fieldset input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.fieldset select,
.pos-cart select,
.modal-card input:not([type="checkbox"]):not([type="file"]),
.modal-card select {
    box-sizing: border-box;
    height: 2rem; min-height: 2rem; max-height: 2rem;
    padding: .375rem .65rem;
    border: 1px solid #e2e8f0; border-radius: .375rem;
    background: #fff; width: 100%;
    line-height: 1.2;
}
.filters input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.filters select {
    box-sizing: border-box;
    height: 2rem; min-height: 2rem; max-height: 2rem;
    padding: .375rem .65rem;
    border: 1px solid #e2e8f0; border-radius: .375rem;
    background: #fff;
    line-height: 1.2;
}
.form-grid textarea, .modal-card textarea { max-height: none; height: auto; min-height: 4rem; }
.form-grid .id-lookup input { width: auto; }
.form-grid .input-with-btn input,
.form-grid .input-with-btn select { width: auto; flex: 1; min-width: 0; }
.cli-block > label {
    display: block !important;
    min-height: 0 !important;
    grid-template-rows: none !important;
    padding-bottom: 0 !important;
    margin-bottom: .35rem;
}
.id-lookup { display: flex; align-items: stretch; gap: .35rem; }
.id-lookup input { flex: 1; min-width: 0; }
.id-lookup [data-consulta-btn] {
    flex: 0 0 auto; padding: .2rem .55rem; font-size: .68rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase; height: 2rem; min-height: 2rem; max-height: 2rem; white-space: nowrap;
    box-sizing: border-box;
}
.id-lookup [data-consulta-btn] svg { width: .85rem; height: .85rem; }
input[type="date"], input[type="datetime-local"], input[type="time"] {
    -webkit-appearance: none; appearance: none;
    font-family: ui-monospace, Consolas, "Courier New", monospace !important;
    font-size: .75rem; color: #334155;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 3v3M16 3v3M4 9h16M6 5h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .5rem center; background-size: 1rem;
    padding: .375rem 2rem .375rem .625rem; border: 1px solid #e2e8f0; border-radius: .375rem;
    min-height: 2rem; height: 2rem; max-height: 2rem; color-scheme: light;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0; cursor: pointer; width: 1.35rem; height: 1.35rem;
}
.span-2 { grid-column: span 2; }
.fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 1rem 0; padding: 1rem; overflow: visible; position: relative; }
.fieldset legend { padding: 0 .4rem; font-weight: 700; color: var(--accent-2); }
.check { display: flex !important; align-items: center; gap: .5rem; font-weight: 400 !important; text-transform: none; letter-spacing: 0; font-size: .8rem; color: var(--ink); min-height: 0 !important; }
.check.tight { font-size: .85rem; white-space: nowrap; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: .4rem; margin-top: 1rem; flex-wrap: wrap; }
.split-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .45rem; }
.flash.danger { background: #fdecec; border-color: #f0c0c0; color: var(--danger); }
.flash.danger ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 900px) {
    .form-grid, .split-panels { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
}

.mini-form input, .mini-form select, textarea {
    border: 1px solid var(--line); background: #fff; border-radius: .375rem; padding: .375rem .65rem; font: inherit;
}
.filters input[type="search"] { min-width: min(220px, 100%); flex: 1; }
.filters > button { align-self: flex-end; min-height: 2rem; }
textarea { width: 100%; resize: vertical; }
.mini-form { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: .75rem; }
.simple-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.simple-list li { padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.pager { margin-top: 1rem; }
.pager nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.pager a, .pager span {
    display: inline-block; padding: .35rem .65rem; border: 1px solid var(--line);
    border-radius: 8px; background: var(--panel); text-decoration: none; color: inherit; font-size: .85rem;
}
.pager .active span, .pager [aria-current="page"] span { background: var(--accent); color: #fff; border-color: var(--accent); }

.manual-brand-head {
    display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.manual-brand-logo {
    width: 2.25rem; height: 2.25rem; object-fit: contain;
    border-radius: 6px; background: #fff;
    border: 1px solid var(--line); padding: 2px; flex-shrink: 0;
}
.manual-index { margin: 0; padding-left: 1.1rem; line-height: 1.55; font-size: .8rem; }
.manual-index a { color: var(--accent); text-decoration: none; }
.manual-index a:hover { text-decoration: underline; }
.manual-body { display: grid; gap: .65rem; }
.manual-body h2 { margin: 0 0 .4rem; font-family: var(--font); font-size: .9rem; font-weight: 600; color: #1e293b; }
.manual-body h3 { margin: .55rem 0 .25rem; font-size: .8rem; font-weight: 600; }
.manual-body p, .manual-body li { font-size: .8rem; color: var(--ink); line-height: 1.45; }
.manual-body ol { margin: .35rem 0 .5rem; padding-left: 1.15rem; }
.manual-shot {
    margin: .65rem 0 .35rem; padding: 0;
    border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff;
}
.manual-shot img { display: block; width: 100%; height: auto; }
.manual-shot figcaption {
    padding: .35rem .55rem; font-size: .68rem; color: var(--ink-soft);
    border-top: 1px solid var(--line); background: var(--paper);
}
.manual-check { list-style: none; padding: 0; margin: .35rem 0 0; }
.manual-check li { padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: .8rem; }
.manual-check li::before { content: "☐ "; color: var(--ink-soft); }
.flash.error { background: #fdecec; border: 1px solid #f0c0c0; color: var(--danger); }
.field-error { display: block; color: #dc2626; font-size: .82rem; margin-top: .25rem; }
input.is-invalid, select.is-invalid, textarea.is-invalid, .combo-btn.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
    padding-right: 1.45rem;
    background-image: radial-gradient(circle at calc(100% - .7rem) 50%, #dc2626 0 3.5px, transparent 4px);
    background-repeat: no-repeat;
}
.id-lookup:has(.is-invalid) {
    background-image: none;
}
.id-lookup input.is-invalid {
    background-image: radial-gradient(circle at calc(100% - .7rem) 50%, #dc2626 0 3.5px, transparent 4px);
    background-repeat: no-repeat;
}
input.is-ok:not(.is-invalid) {
    padding-right: 1.45rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23047857' stroke-width='2.4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .4rem center; background-size: .85rem;
}
input[type="date"].is-invalid,
input[type="datetime-local"].is-invalid,
input[type="time"].is-invalid {
    background-image:
        radial-gradient(circle at calc(100% - 1.85rem) 50%, #dc2626 0 3.5px, transparent 4px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='1.8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 3v3M16 3v3M4 9h16M6 5h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: right 1.75rem center, right .5rem center;
    background-size: auto, 1rem;
    padding-right: 2.6rem;
}
.btn-ghost:disabled, .btn-primary:disabled, .btn-danger:disabled {
    opacity: .55; cursor: not-allowed; box-shadow: none;
}

.tip {
    position: relative; width: 1rem; height: 1rem; padding: 0; margin: 0;
    border: 0; background: transparent; color: #94a3b8; cursor: help;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    border-radius: 999px;
}
.tip svg { width: 1rem; height: 1rem; display: block; }
.tip:hover, .tip:focus, .tip:focus-visible { color: #64748b; outline: none; }
.tip::after {
    content: attr(data-tip);
    position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
    min-width: 12rem; max-width: 16rem; width: max-content;
    padding: .35rem .55rem; border-radius: .375rem;
    background: #fff; color: #1e3a8a; font-size: 11px; font-weight: 600; line-height: 1.35;
    border: 1px solid #bfdbfe;
    text-transform: none; letter-spacing: 0; white-space: normal; text-align: left;
    box-shadow: 0 8px 20px rgba(30, 58, 138, .15);
    opacity: 0; pointer-events: none; z-index: 30;
}
.tip:hover::after, .tip:focus::after, .tip:focus-visible::after { opacity: 1; }

.icon-tool { position: relative; }
.icon-tool[data-tip]::after,
.btn-del-line[data-tip]::after {
    content: attr(data-tip);
    position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
    padding: .35rem .55rem; border-radius: .375rem; white-space: nowrap;
    background: #fff; color: #1e3a8a; font-size: 11px; font-weight: 600;
    border: 1px solid #bfdbfe;
    opacity: 0; pointer-events: none; z-index: 30;
    box-shadow: 0 8px 20px rgba(30, 58, 138, .15);
}
.icon-tool:hover::after, .icon-tool:focus-visible::after,
.btn-del-line:hover::after, .btn-del-line:focus-visible::after { opacity: 1; }

.req-gallery { display: flex; flex-wrap: wrap; gap: .85rem; }
.req-thumb {
    display: flex; flex-direction: column; gap: .35rem; width: min(180px, 100%);
    text-decoration: none; color: inherit;
}
.req-thumb img {
    width: 100%; height: 120px; object-fit: cover; border-radius: 10px;
    border: 1px solid var(--line); background: #fff;
}

.icon-tool {
    width: 2rem; height: 2rem; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink-soft); text-decoration: none; flex-shrink: 0;
}
.icon-tool .ui-ico { width: 1.05rem; height: 1.05rem; }
.icon-tool:hover { color: var(--accent); background: var(--accent-soft); border-color: #c5dcf0; }
.icon-tool.is-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.icon-tool.is-accent:hover { filter: brightness(1.08); color: #fff; }
.icon-tool.btn-req-grabar { width: 2rem; height: 2rem; padding: 0; }
.icon-btn .ui-ico { width: 1.1rem; height: 1.1rem; }
.secret-shell.is-collapsed .sidebar-toggle svg { transform: rotate(180deg); }

.btn-req-grabar.btn-task, .btn-req-lista {
    display: inline-flex; align-items: center; gap: .4rem;
}
.btn-req-grabar.btn-task:hover { background: #f8fafc; color: #334155; }

.fab-req {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0e4f86, #2b86c9);
    color: #fff; text-decoration: none; font-weight: 700;
    padding: .9rem 1.15rem; border-radius: 999px;
    box-shadow: 0 12px 28px rgba(14, 79, 134, .35);
}
.fab-req:hover { color: #fff; filter: brightness(1.05); }
.fab-req-label { font-size: .92rem; letter-spacing: .02em; }

.fab-wa {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 45;
    display: inline-flex; align-items: center; gap: .55rem;
    background: linear-gradient(135deg, #128C7E, #25D366);
    color: #fff; text-decoration: none; font-weight: 700;
    padding: .85rem 1.1rem; border-radius: 999px;
    box-shadow: 0 12px 28px rgba(18, 140, 126, .4);
}
.fab-wa:hover { color: #fff; filter: brightness(1.06); }
.fab-wa__ico { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.fab-wa__label { font-size: .92rem; letter-spacing: .02em; }

@media (max-width: 900px) {
    .fab-req { right: .85rem; bottom: .85rem; }
    .fab-wa { right: .85rem; bottom: .85rem; padding: .8rem; }
    .fab-wa__label { display: none; }
    .fab-soporte { left: .85rem; right: auto; bottom: .85rem; padding: .8rem; }
    .fab-soporte__label { display: none; }
}

/* —— Centro de Soporte AUNOX —— */
.fab-soporte {
    position: fixed; left: 1.25rem; right: auto; bottom: 1.25rem; z-index: 46;
    display: inline-flex; align-items: center; gap: .55rem;
    background: linear-gradient(135deg, #0e4f86, #1a6fb5);
    color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 700;
    padding: .85rem 1.1rem; border-radius: 999px;
    box-shadow: 0 12px 28px rgba(14, 79, 134, .35);
}
.fab-soporte:hover { filter: brightness(1.06); }
.fab-soporte__ico {
    width: 1.35rem; height: 1.35rem; border-radius: 50%;
    background: rgba(255,255,255,.2); display: grid; place-items: center;
    font-size: .95rem; font-weight: 800;
}
.fab-soporte__badge {
    position: absolute; top: -.25rem; right: -.15rem;
    min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem;
    border-radius: 999px; background: #e11d48; color: #fff;
    font-size: .7rem; font-weight: 800; display: grid; place-items: center;
}

.soporte-panel {
    position: fixed; left: 1.25rem; right: auto; bottom: 5rem; z-index: 47;
    width: min(380px, calc(100vw - 1.5rem));
    background: #fff; border: 1px solid var(--line, #d7e3ef);
    border-radius: 16px; box-shadow: 0 18px 48px rgba(10, 30, 48, .22);
    overflow: hidden; display: flex; flex-direction: column; max-height: min(560px, 70vh);
}
.soporte-panel[hidden] { display: none !important; }
.soporte-panel__head {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: .9rem 1rem; background: #0e4f86; color: #fff;
}
.soporte-panel__head .muted { color: rgba(255,255,255,.75); }
.soporte-panel__close {
    border: 0; background: transparent; color: #fff; font-size: 1.4rem;
    cursor: pointer; line-height: 1; padding: .1rem .35rem;
    z-index: 2; position: relative;
}
.soporte-panel__home, .soporte-panel__chat { padding: .85rem; display: flex; flex-direction: column; gap: .55rem; min-height: 0; flex: 1; }
.soporte-panel__home[hidden], .soporte-panel__chat[hidden] { display: none !important; }
.soporte-option {
    display: block; text-align: left; text-decoration: none; color: inherit;
    border: 1px solid var(--line, #d7e3ef); border-radius: 12px;
    padding: .75rem .85rem; background: #f7fbfe; cursor: pointer; font: inherit;
}
.soporte-option:hover { border-color: #0e4f86; background: #eef6fc; }
.soporte-option--wa { border-color: #b7e4c7; background: #f0faf4; }
.soporte-option--muted { background: #fff; }
.soporte-option__title { display: block; font-weight: 700; color: #0e4f86; }
.soporte-option__desc { display: block; font-size: .85rem; color: #5a7388; margin-top: .15rem; }
.soporte-panel__status { font-size: .82rem; color: #5a7388; margin-bottom: .25rem; }
.soporte-back { align-self: flex-start; margin-top: .25rem; }

.soporte-msgs {
    flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem;
    min-height: 180px; max-height: 320px; padding: .25rem 0;
}
.soporte-msg { max-width: 88%; display: flex; flex-direction: column; gap: .15rem; }
.soporte-msg--cliente { align-self: flex-end; }
.soporte-msg--operador, .soporte-msg--sistema { align-self: flex-start; }
.soporte-msg__bubble {
    padding: .55rem .75rem; border-radius: 12px; font-size: .92rem;
    background: #eef6fc; color: #123a56; white-space: pre-wrap; word-break: break-word;
}
.soporte-msg--cliente .soporte-msg__bubble { background: #0e4f86; color: #fff; }
.soporte-msg--sistema .soporte-msg__bubble { background: #f3f4f6; color: #4b5563; font-style: italic; }
.soporte-msg__time { font-size: .72rem; color: #8aa0b2; padding: 0 .2rem; }
.soporte-msg--cliente .soporte-msg__time { text-align: right; }

.soporte-composer {
    display: flex; gap: .45rem; align-items: center; margin-top: .35rem;
}
.soporte-composer__tools { display: flex; gap: .25rem; flex-shrink: 0; }
.soporte-tool {
    border: 1px solid var(--line, #d7e3ef); background: #fff; border-radius: 8px;
    width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
    cursor: pointer; font-size: 1rem; padding: 0; line-height: 1;
}
.soporte-tool:hover { background: #eef6fc; }
.soporte-tool.is-recording { background: #fee2e2; border-color: #fecaca; animation: req-pulse 1.2s ease-in-out infinite; }
.soporte-composer input {
    flex: 1; border: 1px solid var(--line, #d7e3ef); border-radius: 999px;
    padding: .55rem .9rem; font: inherit; min-width: 0;
}
.soporte-composer .btn-primary {
    border: 0; border-radius: 999px; padding: .55rem .95rem;
    background: #0e4f86; color: #fff; font-weight: 700; cursor: pointer;
}
.soporte-msg__media { display: block; margin-bottom: .35rem; }
.soporte-msg__media img {
    display: block; max-width: min(240px, 70vw); max-height: 180px;
    border-radius: 10px; border: 1px solid #d7e3ef; object-fit: cover; background: #fff;
}
.soporte-msg__audio { display: block; width: min(240px, 70vw); margin-bottom: .35rem; }
.soporte-msg__file {
    display: inline-block; margin-bottom: .35rem; font-size: .85rem; font-weight: 600;
    color: #0e4f86; text-decoration: underline;
}

.soporte-kpis { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }
.soporte-kpi {
    text-decoration: none; color: #0e4f86; font-weight: 700; font-size: .88rem;
    padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--line, #d7e3ef);
    background: #fff;
}
.soporte-kpi.is-on, .soporte-kpi:hover { background: #0e4f86; color: #fff; border-color: #0e4f86; }

.soporte-inbox {
    display: grid; grid-template-columns: minmax(220px, 280px) 1fr minmax(200px, 260px);
    gap: 0; border: 1px solid var(--line, #d7e3ef); border-radius: 14px;
    background: #fff; min-height: 520px; overflow: hidden;
}
.soporte-inbox__list {
    border-right: 1px solid var(--line, #d7e3ef); overflow-y: auto; max-height: 70vh;
}
.soporte-inbox__item {
    display: block; padding: .75rem .85rem; text-decoration: none; color: inherit;
    border-bottom: 1px solid #eef3f8;
}
.soporte-inbox__item:hover, .soporte-inbox__item.is-active { background: #f0f7fc; }
.soporte-inbox__item-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.soporte-inbox__preview { font-size: .88rem; margin-top: .2rem; color: #334155; }
.soporte-inbox__meta { font-size: .75rem; color: #8aa0b2; margin-top: .25rem; }
.soporte-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #94a3b8; }
.estado-nueva .soporte-dot { background: #e11d48; }
.estado-en_atencion .soporte-dot { background: #f59e0b; }
.estado-esperando_cliente .soporte-dot { background: #22c55e; }

.soporte-inbox__chat {
    display: flex; flex-direction: column; min-width: 0; min-height: 0;
    border-right: 1px solid var(--line, #d7e3ef);
}
.soporte-inbox__chat-head {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    padding: .75rem 1rem; border-bottom: 1px solid var(--line, #d7e3ef); flex-wrap: wrap;
}
.soporte-inbox__actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.soporte-inbox__chat .soporte-msgs { max-height: none; flex: 1; padding: .85rem 1rem; }
.soporte-inbox__chat .soporte-composer { padding: .75rem 1rem; border-top: 1px solid var(--line, #d7e3ef); margin: 0; }

.soporte-inbox__info { padding: 1rem; overflow-y: auto; max-height: 70vh; }
.soporte-inbox__info h3 { margin: 0 0 .75rem; font-size: 1rem; color: #0e4f86; }
.soporte-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem .65rem; font-size: .88rem; }
.soporte-dl dt { color: #8aa0b2; }
.soporte-dl dd { margin: 0; word-break: break-word; }
.soporte-assign { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.soporte-assign select { padding: .45rem .55rem; border-radius: 8px; border: 1px solid var(--line, #d7e3ef); }
.soporte-empty { padding: 2rem 1rem; text-align: center; color: #8aa0b2; }
.btn-ghost {
    border: 1px solid var(--line, #d7e3ef); background: #fff; color: #0e4f86;
    border-radius: 8px; padding: .35rem .65rem; font: inherit; font-weight: 600; cursor: pointer;
    text-decoration: none;
}
.btn-ghost:hover { background: #eef6fc; }

@media (max-width: 1100px) {
    .soporte-inbox { grid-template-columns: minmax(200px, 240px) 1fr; }
    .soporte-inbox__info { display: none; }
}
@media (max-width: 720px) {
    .soporte-inbox { grid-template-columns: 1fr; min-height: auto; }
    .soporte-inbox__list { max-height: 240px; border-right: 0; border-bottom: 1px solid var(--line, #d7e3ef); }
    .soporte-panel { right: .75rem; left: .75rem; width: auto; bottom: 4.5rem; }
}

.req-capture-overlay {
    position: fixed; inset: 0; z-index: 80;
    display: none; place-items: center;
    background: rgba(10, 30, 48, .45);
}
.req-capture-overlay.visible { display: grid; }
.req-capture-card {
    background: #fff; color: #0e4f86; font-weight: 700;
    padding: 1rem 1.35rem; border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
}

.req-captura-preview {
    margin-bottom: 1rem; padding: .85rem;
    border: 1px solid var(--line); border-radius: 12px; background: #f7fbfe;
}
.req-captura-preview img {
    display: block; width: min(100%, 520px); max-height: 280px;
    object-fit: contain; border-radius: 8px; border: 1px solid var(--line);
    background: #fff; margin-top: .5rem;
}

.req-dictar-box {
    display: flex; flex-wrap: wrap; gap: .65rem 1rem; align-items: center;
    margin: 0 0 1rem;
}
.btn-dictar {
    border: 0; cursor: pointer; font: inherit; font-weight: 700;
    border-radius: 999px; padding: .55rem 1rem;
    background: #123a56; color: #fff;
}
.btn-dictar.is-listening {
    background: #b42318;
    animation: req-pulse 1.2s ease-in-out infinite;
}
@keyframes req-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, .45); }
    50% { box-shadow: 0 0 0 8px rgba(180, 35, 24, 0); }
}

body.req-annotate-open { overflow: hidden; }
.req-annotate-modal {
    position: fixed; inset: 0; z-index: 90;
    display: none; place-items: center;
    background: rgba(8, 24, 40, .62);
    padding: .75rem;
}
.req-annotate-modal.visible { display: grid; }
.req-annotate-dialog {
    width: min(1100px, 100%);
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
    background: #f4f8fc;
    border-radius: 16px;
    border: 1px solid #c9d9e8;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.req-annotate-head {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 1rem 1.1rem; border-bottom: 1px solid var(--line);
    background: #fff; border-radius: 16px 16px 0 0;
}
.req-annotate-actions { display: flex; gap: .5rem; align-items: center; }
.req-annotate-toolbar {
    display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center;
    padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); background: #eef5fb;
}
.req-annotate-colors { display: flex; gap: .45rem; }
.req-annotate-swatch {
    width: 1.55rem; height: 1.55rem; border-radius: 999px; border: 2px solid #fff;
    box-shadow: 0 0 0 1px #9db4c9; cursor: pointer; padding: 0;
}
.req-annotate-swatch.active { box-shadow: 0 0 0 2px #0e4f86; }
.req-annotate-size { display: flex; align-items: center; gap: .45rem; color: var(--ink-soft); font-size: .85rem; }
.req-annotate-stage {
    padding: .85rem 1.1rem 1.1rem; overflow: auto;
    background:
        linear-gradient(45deg, #e8eef4 25%, transparent 25%) 0 0 / 16px 16px,
        linear-gradient(-45deg, #e8eef4 25%, transparent 25%) 0 0 / 16px 16px,
        #f7fbfe;
}
.req-annotate-stage canvas {
    display: block; margin: 0 auto; max-width: 100%;
    cursor: crosshair; touch-action: none;
    background: #fff; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 40, 70, .12);
}

.input-with-btn { display: flex; gap: .4rem; align-items: stretch; width: 100%; min-width: 0; position: relative; overflow: visible; }
.input-with-btn select, .input-with-btn input { flex: 1; min-width: 0; }
.input-with-btn > .btn-ghost {
    height: 2rem; min-height: 2rem; max-height: 2rem;
    padding: .2rem .55rem; box-sizing: border-box;
}
.modal-card { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; max-width: 420px; overflow: visible; }
.modal-card::backdrop { background: rgba(8,24,40,.45); }
.modal-card form { display: grid; gap: .6rem; }
.drop-actions { position: relative; display: inline-block; }
.drop-actions summary { cursor: pointer; list-style: none; }
.drop-actions[open] .drop-menu { display: block; }
.drop-menu {
    display: none; position: absolute; right: 0; z-index: 50;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    min-width: 180px; padding: .35rem; box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.drop-menu.is-layer { display: block; }
.drop-menu a, .drop-menu button {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    padding: .45rem .65rem; font: inherit; cursor: pointer; color: inherit; text-decoration: none;
}
.drop-menu a:hover, .drop-menu button:hover { background: #eef5fb; }
.totals-box {
    display: grid; gap: .2rem; margin-top: 1rem; width: min(22rem, 100%); margin-left: auto;
    background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: .5rem; padding: .7rem .9rem;
}
.totals-box > div {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem;
    font-size: .75rem; font-weight: 500; color: #334155;
}
.totals-box > div strong {
    font-family: ui-monospace, Consolas, "Courier New", monospace !important;
    font-size: .75rem; font-weight: 600; color: #1e293b;
    font-variant-numeric: tabular-nums; text-align: right; min-width: 5.5rem;
}
.totals-box > div:last-child {
    margin-top: .35rem; padding-top: .45rem; border-top: 1px solid #e2e8f0;
    font-size: .8rem; font-weight: 700; color: #1e3a5f;
}
.totals-box > div:last-child strong {
    color: #0B2545; font-size: 1.05rem; font-weight: 700;
}
.modal-card { border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; max-width: 460px; background: #fff; }
.modal-card h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.pago-extra { display: none; }
.pago-extra.visible { display: grid; }

/* REQ-000080: resumen de cartera en pagos / cobros */
.pay-summary {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem;
}
.pay-summary__item {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .5rem;
    border-top: 2px solid #1e3a5f; padding: .5rem .65rem;
}
.pay-summary__label {
    display: block; font-size: .65rem; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: .04em;
}
.pay-summary__value {
    display: block; margin-top: .15rem; font-size: 1rem; font-weight: 700; color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.pay-summary__value.is-late { color: #b91c1c; }

.modo-cobro-toggle { display: flex; gap: 0.5rem; margin-top: 0.25rem; }
.modo-cobro-opt { display: flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; cursor: pointer; font-size: 0.8125rem; }
.modo-cobro-opt:has(input:checked) { border-color: #0891b2; background: #ecfeff; }
.pagos-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0.75rem 0 0.5rem; font-size: 0.8125rem; }
.pago-row { border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.625rem; margin-bottom: 0.5rem; background: #f8fafc; }
.pago-row-head { display: grid; grid-template-columns: 1fr 8rem auto; gap: 0.5rem; align-items: end; }
.pago-row-extra { margin-top: 0.5rem; }
.pagos-resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: 0.5rem; font-size: 0.8125rem; margin-top: 0.5rem; padding: 0.5rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.5rem; }
.pagos-resumen strong { display: block; font-family: ui-monospace, monospace; font-size: 0.9375rem; }
.pagos-pendiente.pagos-ok { color: #059669; }
.pagos-pendiente.pagos-warn { color: #dc2626; }
.pagos-detalle-list { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.75rem; color: #475569; }
.btn-sm { padding: 0.2rem 0.5rem; font-size: 0.75rem; min-height: 1.75rem; }
.factura-panels { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.factura-panel {
    position: relative;
    background: #fff; border: 1px solid rgba(226, 232, 240, .9); border-radius: 8px;
    padding: .8rem .9rem;
    overflow: visible;
}
.factura-panels > .factura-panel:first-child { border-top: 2px solid #0B2545; }
.factura-panels > .factura-panel:nth-child(2) { border-top: 2px solid #10b981; }
.lbl-row { display: inline-flex; align-items: center; gap: .375rem; color: #334155; font-weight: 600; font-size: .75rem; margin-bottom: .25rem; }
.lbl-ico { width: 1rem; height: 1rem; flex-shrink: 0; }
.lbl-ico[data-ico="user"], .lbl-ico[data-ico="idcard"] { color: #2563eb; }
.lbl-ico[data-ico="building"] { color: #2563eb; }
.lbl-ico[data-ico="pin"], .lbl-ico[data-ico="clock"] { color: #64748b; }
.lbl-ico[data-ico="card"], .lbl-ico[data-ico="cash"], .lbl-ico[data-ico="wallet"] { color: #16a34a; }
.lbl-ico[data-ico="calendar"] { color: #0891b2; }
.lbl-ico[data-ico="hash"], .lbl-ico[data-ico="receipt"] { color: #2563eb; }
.lbl-ico[data-ico="briefcase"], .lbl-ico[data-ico="truck"] { color: #1e3a5f; }
.lbl-ico[data-ico="coin"], .lbl-ico[data-ico="percent"] { color: #d97706; }
.lbl-ico[data-ico="bank"] { color: #0d9488; }
.lbl-ico[data-ico="default"], .lbl-ico:not([data-ico]) { color: #64748b; }
.form-grid > label:not(.check), .pos-shell label, .pos-cart label, .filters label, .fieldset label {
    font-size: .75rem; font-weight: 600; color: #334155;
}
.aunox-module-head {
    display: flex; align-items: center; gap: .875rem;
    width: 100%; padding: .625rem .75rem;
    background: #fff; border: 1px solid #f1f5f9; border-radius: .75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.aunox-module-head__icon {
    flex-shrink: 0; width: 3rem; height: 3rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: .75rem; border: 1px solid transparent;
}
.aunox-module-head__icon .ui-ico { width: 1.5rem; height: 1.5rem; }
.aunox-module-head.is-cyan .aunox-module-head__icon { background: #ecfeff; border-color: #a5f3fc; color: #0891b2; }
.aunox-module-head.is-rose .aunox-module-head__icon { background: #fff1f2; border-color: #fecdd3; color: #e11d48; }
.aunox-module-head.is-emerald .aunox-module-head__icon { background: #ecfdf5; border-color: #a7f3d0; color: #059669; }
.aunox-module-head.is-indigo .aunox-module-head__icon { background: #f1f5f9; border-color: #e2e8f0; color: #0B2545; }
.aunox-module-head.is-amber .aunox-module-head__icon { background: #fffbeb; border-color: #fde68a; color: #d97706; }
.aunox-module-head.is-violet .aunox-module-head__icon { background: #f1f5f9; border-color: #e2e8f0; color: #1e3a5f; }
.aunox-module-head.is-slate .aunox-module-head__icon { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
.aunox-module-head__text { display: flex; flex-direction: column; gap: .125rem; flex: 1; min-width: 0; }
.aunox-module-head__text h1 { margin: 0; font-size: 1rem; font-weight: 700; color: #0f172a; letter-spacing: -.01em; }
.aunox-module-head__text p { margin: 0; font-size: .75rem; font-weight: 400; color: #64748b; }
.aunox-module-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; flex-shrink: 0; margin-left: auto; }
.aunox-module-head-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; width: 100%; }
.aunox-module-head-bar .aunox-module-head { margin-bottom: 0; flex: 1; min-width: 0; }
.field-hint { display: block; margin-top: .25rem; font-size: .75rem; color: var(--ink-soft); font-weight: 500; }
.btn-icon {
    width: 2rem; height: 2rem; border-radius: 8px; border: 1px solid var(--line);
    background: #fff; cursor: pointer; color: #dc2626; font-size: 1.15rem; line-height: 1;
}
.btn-icon:hover { background: #fef2f2; }
.inv-module { margin: 0 0 1rem; }
.inv-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: .65rem; align-items: start; }
.inv-alerts {
    background: #fff; border: 1px solid rgba(226, 232, 240, .9); border-radius: 8px;
    padding: .65rem .75rem; border-top: 2px solid #f59e0b;
}
.inv-alerts h2 { margin: 0 0 .2rem; }
.stock-alert-row {
    display: flex; align-items: center; gap: .5rem; padding: .4rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.stock-alert-row:last-child { border-bottom: 0; }
.stock-alert-row > div { flex: 1; min-width: 0; }
.badge.stock-cero { color: #e11d48; background: #fff1f2; }
.badge.stock-min { color: #d97706; background: #fffbeb; }
.badge.top-rent { color: #047857; background: #ecfdf5; }
.font-num { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: .75rem; }
.btn-task-mini { padding: .25rem .4rem; }
.inv-rent { background: #fff; border-top: 2px solid #10b981; }
@media (max-width: 980px) { .inv-grid { grid-template-columns: 1fr; } }
.kpi-link { text-decoration: none; color: inherit; }
a.kpi-card { color: inherit; }
.chart-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: .85rem; margin-bottom: 1rem; }
.bar-chart { display: flex; align-items: flex-end; gap: .35rem; height: 160px; padding-top: .5rem; }
.bar-col {
    flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
    height: 100%; text-decoration: none; color: inherit; min-width: 0;
}
.bar-fill {
    width: 70%; max-width: 28px; background: #2563eb; border-radius: 6px 6px 2px 2px;
    min-height: 4px;
}
.bar-fill.teal { background: #0e7490; }
.bar-label { font-size: .62rem; color: var(--ink-soft); margin-top: .3rem; white-space: nowrap; }
.kardex-table th { text-align: center; }
.pos-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 1rem; align-items: start; }
.pos-search { width: 100%; margin-bottom: .7rem; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .55rem; max-height: 70vh; overflow: auto; }
.pos-tile {
    display: flex; flex-direction: column; gap: .2rem; text-align: left;
    border: 1px solid var(--line); border-radius: 12px; padding: .7rem .75rem;
    background: #fff; cursor: pointer;
}
.pos-tile:hover { border-color: #2563eb; }
.pos-tile span { font-size: .72rem; color: var(--ink-soft); }
.pos-tile em { font-style: normal; font-weight: 700; }
.pos-cart { position: sticky; top: .8rem; }
.is-disabled { pointer-events: none; opacity: .55; }
@media (max-width: 980px) {
    .factura-panels, .chart-grid, .pos-layout { grid-template-columns: 1fr; }
}
.salon-week { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.salon-board {
    display: grid;
    grid-template-columns: 56px repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: auto;
    background: #fff;
    min-height: 400px;
}
.salon-hours { border-right: 1px solid var(--line); background: #f8fafc; }
.salon-hours-head, .salon-col-head {
    height: 52px; padding: .4rem .5rem; border-bottom: 1px solid var(--line);
    display: flex; flex-direction: column; justify-content: center;
}
.salon-hour {
    height: 36px; font-size: .62rem; color: var(--ink-soft);
    padding: 0 .4rem; border-bottom: 1px dashed #e2e8f0;
}
.salon-col { min-width: 160px; border-right: 1px solid var(--line); }
.salon-col:last-child { border-right: 0; }
.salon-col-head { background: color-mix(in srgb, var(--pro, #2563eb) 12%, #fff); }
.salon-col-head strong { font-size: .78rem; }
.salon-col-head small { color: var(--ink-soft); font-size: .65rem; }
.salon-col-body { position: relative; height: calc(36px * 24); background-image: repeating-linear-gradient(to bottom, transparent, transparent 35px, #f1f5f9 35px, #f1f5f9 36px); }
.salon-cita {
    position: absolute; left: 4px; right: 4px;
    border-left: 3px solid #2563eb; background: #eff6ff;
    border-radius: 6px; padding: .25rem .35rem; overflow: hidden;
    font-size: .68rem; line-height: 1.2;
}
.salon-cita strong, .salon-cita span, .salon-cita small { display: block; }
.salon-cita.estado-terminada { background: #f1f5f9; opacity: .75; }
.salon-cita-actions { display: flex; gap: .3rem; margin-top: .15rem; }
.salon-cita-actions button {
    border: 0; background: transparent; color: #2563eb; cursor: pointer;
    font-size: .62rem; padding: 0;
}
.salon-dot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }

.cli-block { position: relative; margin: 1rem 0; border-top: 2px solid #0B2545; }
.cli-block > label { min-height: 0 !important; margin-bottom: .35rem; color: #1e293b; }
.cli-block .lbl-ico, .cli-card .lbl-ico { color: #94a3b8; width: 1rem; height: 1rem; }
.cli-search-row { display: flex; gap: .5rem; align-items: stretch; }
.cli-picker { position: relative; overflow: visible; }
.cli-search {
    position: relative; flex: 1; min-width: 0;
}
.cli-search-ico {
    position: absolute; left: .6rem; top: 50%; transform: translateY(-50%);
    width: 1rem; height: 1rem; color: #94a3b8; pointer-events: none;
}
.cli-search input {
    width: 100%; min-height: 2.15rem; padding: .4rem .7rem .4rem 2rem;
    border: 1px solid #e2e8f0; border-radius: .375rem; background: #fff;
    font-size: .75rem; color: #1e293b;
}
.cli-search input:focus {
    outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
}
.cli-block #venta-cliente {
    position: absolute; opacity: 0; pointer-events: none; height: 0; width: 0;
}
.btn-nuevo-cli {
    flex: 0 0 auto; min-height: 2.15rem; padding: .4rem .85rem;
    border-radius: .375rem; border: 1px solid #0B2545; background: #0B2545; color: #fff;
    font-size: .75rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn-nuevo-cli:hover { background: #4338ca; }
.cli-results {
    position: absolute; z-index: 50; top: 100%; left: 0; width: 100%;
    background: #fff; border: 1px solid #e2e8f0; border-radius: .375rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1); max-height: 220px; overflow: auto;
    margin-top: .35rem;
}
.cli-hit {
    display: flex; justify-content: space-between; gap: .75rem; width: 100%;
    text-align: left; background: none; border: 0; padding: .45rem .7rem;
    font: inherit; cursor: pointer; color: #1e293b;
}
.cli-hit:hover { background: #f1f5f9; }
.cli-hit span { color: #64748b; font-variant-numeric: tabular-nums; font-size: .7rem; }
.cli-card {
    display: flex; align-items: flex-start; gap: .75rem;
    margin-top: .65rem; padding: .65rem .75rem;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .5rem;
}
.cli-card-grid {
    flex: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: .45rem 1rem; min-width: 0;
}
.cli-k { display: inline-flex; align-items: center; gap: .375rem; color: #1e293b; font-size: .75rem; font-weight: 500; }
.cli-card strong { display: block; font-size: .75rem; font-weight: 600; color: #334155; margin-top: .1rem; }
.cli-card .btn-del-line { margin-left: auto; }

.lineas-panel {
    position: relative;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: .8rem .9rem; margin: 1rem 0;
    overflow: visible;
    border-top: 2px solid #0B2545;
}
.lineas-wrap { overflow: visible; border: 1px solid #e2e8f0; border-radius: 6px; }
.lineas-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 860px; font-size: .75rem; }
.lineas-table th {
    background: #f8fafc; color: #334155; font-weight: 500; font-size: .75rem;
    text-transform: none; letter-spacing: 0; text-align: left;
    padding: .4rem .5rem; border-bottom: 1px solid #e2e8f0; white-space: nowrap;
}
.lineas-table td { padding: .25rem .35rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; overflow: visible; }
.lineas-table tbody tr:hover { background: #f8fafc; }
.lineas-table .col-item { width: 25%; min-width: 11rem; }
.lineas-table .col-cant { width: 4.5rem; }
.lineas-table .col-desc { width: auto; min-width: 9rem; }
.lineas-table .col-precio, .lineas-table .col-dto, .lineas-table .col-iva, .lineas-table .col-imp { width: 6.5rem; }
.lineas-table .col-del { width: 2.4rem; text-align: center; }
.lineas-table input, .lineas-table select, .lineas-table .combo-btn {
    width: 100%; min-height: 1.85rem; padding: .25rem .375rem;
    border: 1px solid #e2e8f0; border-radius: .375rem; background: #fff;
    font-size: .75rem; color: #1e293b;
}
.lineas-table textarea.linea-desc {
    min-height: 3.4rem; max-height: none; height: auto; text-align: left;
    font-family: var(--font) !important; resize: vertical; line-height: 1.35;
}
.lineas-table .linea-cant, .lineas-table .linea-precio, .lineas-table .linea-dto, .lineas-table .linea-sub {
    font-family: ui-monospace, Consolas, "Courier New", monospace !important;
    font-size: .75rem; color: #1e293b; text-align: right;
}
.lineas-table input:focus, .lineas-table select:focus, .lineas-table .combo-btn:focus {
    outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
}
.lineas-table .combo-wrap, .lineas-table .custom-dropdown { min-width: 0; width: 100%; max-width: 100%; }
.btn-del-line {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.85rem; height: 1.85rem; border: 0; border-radius: .375rem;
    background: #fff1f2; color: #e11d48; cursor: pointer; padding: 0;
}
.btn-del-line svg { width: .95rem; height: .95rem; }
.btn-del-line:hover { background: #ffe4e6; }
.btn-add-item {
    display: inline-flex; align-items: center; gap: .35rem; margin-top: .65rem;
    border: 0; border-radius: .375rem; background: #ecfdf5; color: #059669;
    font-size: .75rem; font-weight: 600; padding: .4rem .7rem; cursor: pointer;
}
.btn-add-item svg { width: .9rem; height: .9rem; }
.btn-add-item:hover { background: #d1fae5; }
@media (max-width: 720px) {
    .cli-search-row { flex-direction: column; }
    .cli-card-grid { grid-template-columns: 1fr; }
    .lineas-wrap { overflow-x: auto; overflow-y: visible; }
}

/* —— Listados (mismo criterio que Ventas) —— */
.filters > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.filters > select {
    min-height: 2rem; font-size: .75rem; color: #1e293b;
    border: 1px solid #e2e8f0; border-radius: .375rem; padding: .375rem .65rem; background: #fff;
}
.filters > label:not(.check) { min-width: 8.5rem; }
.filters .btn-ghost { min-height: 2rem; font-size: .75rem; }
.data-table tbody td { font-size: .75rem; color: #334155; }
.data-table tfoot th, .data-table tfoot td {
    background: #f1f5f9; color: #1e3a5f; font-size: .75rem; font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.data-table code {
    font-size: .7rem; background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 4px; padding: .05rem .3rem; color: #334155;
}
.table-wrap tbody tr td[colspan] {
    color: #64748b; padding: .85rem .7rem; background: #f8fafc;
}
.pager a, .pager span { font-size: .75rem; border-radius: .375rem; }

/* —— Transaccionales (mismo criterio que Nueva factura) —— */
.form-panel:not(:has(.factura-panel)) { border-top: 1px solid #e2e8f0; }
.form-panel > .factura-panel { border-top: 1px solid #e2e8f0; margin-bottom: .75rem; }
.form-panel.compact { padding: .7rem .8rem; }
.form-panel > .form-grid { margin-bottom: .15rem; }
.form-panel .table-wrap {
    margin-top: 1rem; overflow: visible;
    border-top: 1px solid #e2e8f0;
}
.form-panel .data-table { font-size: .75rem; min-width: 640px; }
.form-panel .data-table th {
    text-transform: none; letter-spacing: 0; font-size: .75rem; font-weight: 500;
    color: #334155; background: #f8fafc;
}
.form-panel .data-table input:not([type="hidden"]):not([type="checkbox"]),
.form-panel .data-table select,
.form-panel .data-table textarea,
.form-panel .data-table .combo-btn {
    width: 100%; min-height: 1.85rem; padding: .25rem .375rem;
    border: 1px solid #e2e8f0; border-radius: .375rem; background: #fff;
    font-size: .75rem; color: #1e293b;
}
.form-panel .data-table input[type="number"] {
    font-family: ui-monospace, Consolas, "Courier New", monospace !important;
    text-align: right; font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
}
.form-panel .data-table input[type="number"]::-webkit-outer-spin-button,
.form-panel .data-table input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.form-panel .linea-del {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 1.85rem; padding: .2rem .45rem; border: 0; border-radius: .375rem;
    background: #fff1f2; color: #e11d48; font-size: .7rem; font-weight: 600; cursor: pointer;
}
.form-panel .linea-del:hover { background: #ffe4e6; }
.form-panel #ret-add, .form-panel .btn-add-line {
    display: inline-flex; align-items: center; gap: .35rem; margin-top: .65rem;
    border: 0; border-radius: .375rem; background: #ecfdf5; color: #059669;
    font-size: .75rem; font-weight: 600; padding: .4rem .7rem; cursor: pointer;
}
.form-panel #ret-add:hover { background: #d1fae5; }
.form-panel p:has(#ret-tot) {
    margin: .75rem 0 0; padding: .7rem .9rem; max-width: 22rem; margin-left: auto;
    background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: .5rem;
    font-size: .75rem; font-weight: 500; color: #334155; text-align: right;
}
.form-panel p:has(#ret-tot) strong { color: #0B2545; font-size: 1.05rem; font-family: ui-monospace, Consolas, monospace; }
.lineas-panel .data-table { width: 100%; min-width: 640px; font-size: .75rem; }
.lineas-panel .data-table td { font-size: .75rem; color: #334155; }
.lineas-panel .data-table tfoot th, .lineas-panel .data-table tfoot td {
    background: #f1f5f9; color: #1e3a5f;
}
.pos-catalog {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: .8rem .9rem; border-top: 2px solid #0B2545;
}
.pos-search {
    min-height: 2.15rem; padding: .4rem .7rem .4rem .7rem;
    border: 1px solid #e2e8f0; border-radius: .375rem; font-size: .75rem;
}
.pos-search:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.pos-cart.factura-panel { border-top: 2px solid #10b981; }
.pos-cart .table-wrap { border-top: 1px solid #e2e8f0; margin: .65rem 0; }
.pos-cart label { display: grid; gap: .28rem; margin: .45rem 0; font-size: .75rem; font-weight: 500; color: #334155; }

@media print {
    .secret-sidebar, .secret-topbar, .form-actions, .no-print { display: none !important; }
}

.lopdp-banner {
    position:fixed; left:0; right:0; bottom:0; z-index:60;
    display:flex; gap:.75rem; align-items:center; justify-content:space-between; flex-wrap:wrap;
    padding:.7rem 1rem; background:#0f172a; color:#e2e8f0; font-size:.8rem;
}
.lopdp-banner[hidden] { display:none !important; }
.lopdp-banner p { margin:0; max-width:46rem; line-height:1.45; }
.lopdp-banner a { color:#93c5fd; }
.lopdp-banner-ok {
    border:0; border-radius:6px; background:#0B2545; color:#fff; font:inherit; font-weight:600;
    padding:.4rem .8rem; cursor:pointer;
}



/* �� Alertas flotantes (toasts) �� */
.aunox-toasts {
  position: fixed; top: 1rem; right: 1rem; z-index: 50;
  display: flex; flex-direction: column; gap: .75rem;
  width: 20rem; max-width: calc(100vw - 2rem);
  pointer-events: none;
}
.aunox-toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: .75rem;
  background: #fff; border: 1px solid #f1f5f9; border-left-width: 3px;
  border-radius: .75rem; padding: 1rem; box-shadow: 0 10px 15px -3px rgba(15,23,42,.1), 0 4px 6px -4px rgba(15,23,42,.1);
  position: relative; animation: aunoxToastIn .25s ease;
  transition: opacity .2s, transform .2s;
}
.aunox-toast.is-out { opacity: 0; transform: translateX(12px); }
.aunox-toast-success { border-left-color: #10b981; }
.aunox-toast-error { border-left-color: #f43f5e; }
.aunox-toast-info { border-left-color: #3b82f6; }
.aunox-toast-icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.aunox-toast-success .aunox-toast-icon { color: #10b981; }
.aunox-toast-error .aunox-toast-icon { color: #f43f5e; }
.aunox-toast-info .aunox-toast-icon { color: #3b82f6; }
.aunox-toast-spin { animation: aunoxSpin .9s linear infinite; }
.aunox-toast-body { min-width: 0; flex: 1; padding-right: 1rem; }
.aunox-toast-title { margin: 0; color: #0f172a; font-weight: 600; font-size: .875rem; line-height: 1.3; }
.aunox-toast-msg { margin: .125rem 0 0; color: #64748b; font-size: .75rem; line-height: 1.4; }
.aunox-toast-x {
  position: absolute; top: .625rem; right: .625rem; border: 0; background: transparent;
  color: #cbd5e1; cursor: pointer; padding: .2rem; border-radius: .25rem; line-height: 0;
}
.aunox-toast-x:hover { color: #64748b; }
@keyframes aunoxToastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes aunoxSpin { to { transform: rotate(360deg); } }
