/* ===== Shell de la aplicación (según .claude/tickets-ui1.html) ===== */
:root {
    --side-bg: #141c2b;
    --side-fg: #b9c4d4;
    --side-active: #ffffff;
    --accent: #3550c8;
    --bg: #f3f4f7;
    --card-border: #e3e6ec;
}

body { background: var(--bg); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; color: #1d2433; }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--side-bg); color: var(--side-fg); flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 20px 20px 16px; color: #fff; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand .logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #3550c8, #0072B2); display: grid; place-items: center; color: #fff; }
.nav-sec { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #6c7a91; padding: 18px 20px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 20px; color: var(--side-fg); text-decoration: none; font-size: .92rem; border-left: 3px solid transparent; cursor: pointer; background: none; width: 100%; text-align: left; }
.side-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-link.active { background: rgba(53,80,200,.22); color: var(--side-active); border-left-color: #6f86ff; }
.side-link.disabled { opacity: .45; cursor: default; }
.side-link.disabled:hover { background: none; color: var(--side-fg); }
.side-link i { font-size: 1.05rem; width: 20px; }
main { flex: 1; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--card-border); padding: 12px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.25rem; margin: 0; font-weight: 650; }
.content { padding: 24px 28px 60px; }
.card { border-color: var(--card-border); border-radius: 12px; }
.card-header { background: #fff; border-bottom-color: var(--card-border); font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: #2a42ad; --bs-btn-hover-border-color: #2a42ad; }
.table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: #5d6880; font-weight: 600; background: #f8f9fb; }
.table td { vertical-align: middle; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.stat { padding: 14px 16px; }
.stat .num { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat .lbl { font-size: .8rem; color: #5d6880; }
.rst { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; }
.sticky-panel { position: sticky; top: 84px; }
.qr-box { display: inline-block; padding: 8px; background: #fff; border: 1px solid #e3e6ec; border-radius: 8px; }
.qr-box img { display: block; }
/* ===== Login ===== */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { color: #1d2433; padding: 0 0 20px; border-bottom: 0; }

@media (max-width: 991px) {
    .app { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; }
    .sidebar nav { display: flex; overflow-x: auto; }
    .nav-sec { display: none; }
    .side-link { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; width: auto; }
    .side-link.active { border-bottom-color: #6f86ff; }
    .topbar, .content { padding-left: 16px; padding-right: 16px; }
    .topbar { position: static; }
    .sticky-panel { position: static; }
}
