:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #e5e7eb;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --sidebar: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-text: #94a3b8;
    --danger: #dc2626;
    --success: #16a34a;
    --shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
    --bg: #020617;
    --surface: #0f172a;
    --surface-soft: #111827;
    --border: #1e293b;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --sidebar: #020617;
    --sidebar-hover: #111827;
    --sidebar-text: #94a3b8;
    --shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    transition: background .25s ease, color .25s ease;
}

a {
    text-decoration: none;
}

/* AUTH */

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .25), transparent 32%),
        linear-gradient(135deg, var(--bg), var(--surface-soft));
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

html[data-theme="dark"] .auth-card {
    background: rgba(15, 23, 42, .86);
}

.auth-brand {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .3);
}

.auth-brand h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.auth-brand p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
}

.form-control,
.form-select {
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
}

.form-control {
    height: 46px;
    padding-left: 42px;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.form-control::placeholder {
    color: var(--muted);
}

.btn-auth {
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .2s ease;
}

.btn-auth:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* SUCCESS */
.btn-success-soft {
    background: rgba(22, 163, 74, .10);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, .18);
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    transition: .18s ease;
}

.btn-success-soft:hover {
    background: rgba(22, 163, 74, .16);
    color: #15803d;
}

/* DANGER */
.btn-danger-soft {
    background: rgba(220, 38, 38, .10);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, .18);
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    transition: .18s ease;
}

.btn-danger-soft:hover {
    background: rgba(220, 38, 38, .16);
    color: #b91c1c;
}

/* WARNING */
.btn-warning-soft {
    background: rgba(245, 158, 11, .12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, .18);
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    transition: .18s ease;
}

.btn-warning-soft:hover {
    background: rgba(245, 158, 11, .18);
    color: #b45309;
}

/* DARK */
.btn-dark-soft {
    background: rgba(15, 23, 42, .08);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    transition: .18s ease;
}

.btn-dark-soft:hover {
    background: rgba(15, 23, 42, .12);
    color: #020617;
}

/* LIGHT */
.btn-light-soft {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
    transition: .18s ease;
}

.btn-light-soft:hover {
    background: #f1f5f9;
}

.auth-alert {
    font-size: 13px;
    border-radius: 12px;
    padding: 10px 12px;
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.auth-theme-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
}

/* APP */

.app-shell {
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background: var(--sidebar);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    transition: width .25s ease, left .25s ease;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 76px;
}

.sidebar-brand {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 15px;
}

.brand-text span {
    font-size: 12px;
    color: var(--sidebar-text);
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .menu-item span {
    display: none;
}

.sidebar-menu {
    padding: 14px 10px;
    flex: 1;
}

.sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.menu-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    color: var(--sidebar-text);
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    transition: .18s ease;
}

.menu-item i {
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}

.menu-item:hover,
.menu-item.active {
    background: var(--sidebar-hover);
    color: #fff;
}

.menu-item.active {
    box-shadow: inset 3px 0 0 var(--primary);
}

.menu-item.logout:hover {
    background: rgba(220, 38, 38, .12);
    color: #fecaca;
}

.main {
    min-height: 100vh;
    margin-left: 250px;
    padding: 20px;
    transition: margin-left .25s ease;
}

.main.expanded {
    margin-left: 76px;
}

.topbar {
    min-height: 72px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.topbar p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.icon-btn,
.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    display: grid;
    place-items: center;
    transition: .18s ease;
}

.icon-btn:hover,
.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.theme-icon-dark {
    display: none;
}

html[data-theme="dark"] .theme-icon-light {
    display: none;
}

html[data-theme="dark"] .theme-icon-dark {
    display: block;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 7px 12px 7px 7px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.user-pill strong,
.user-pill span {
    display: block;
    line-height: 1.1;
}

.user-pill strong {
    font-size: 13px;
}

.user-pill span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.location-form {
    min-width: 180px;
}

.content {
    min-height: calc(100vh - 160px);
}

.app-footer {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    padding: 18px 0 6px;
}

.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-hero {
    min-height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .45), transparent 35%),
        linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-hero h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
}

.dashboard-hero p {
    max-width: 560px;
    margin: 8px 0 0;
    color: #cbd5e1;
}

.dashboard-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dash-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.dash-card span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.dash-card strong {
    display: block;
    color: var(--text);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
}

.dash-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 18px;
    font-size: 24px;
}

.dash-icon.primary {
    background: rgba(37, 99, 235, .12);
    color: var(--primary);
}

.dash-icon.success {
    background: rgba(22, 163, 74, .12);
    color: #16a34a;
}

.dash-icon.danger {
    background: rgba(220, 38, 38, .12);
    color: #dc2626;
}

.dash-icon.profit {
    background: rgba(37, 99, 235, .12);
    color: var(--primary);
}

.dash-alert-card {
    padding: 22px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(220, 38, 38, .10), rgba(245, 158, 11, .08)),
        var(--surface);
    border: 1px solid rgba(220, 38, 38, .18);
    box-shadow: var(--shadow);
}

.dash-alert-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dash-alert-head h5,
.dash-panel-head h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.dash-alert-head p,
.dash-panel-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.dash-alert-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 16px;
    background: rgba(220, 38, 38, .12);
    color: #dc2626;
    font-size: 22px;
}

.dash-alert-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.dash-alert-item {
    display: grid;
    grid-template-columns: 1.4fr 1fr 2fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.dash-alert-item strong {
    display: block;
    font-size: 14px;
}

.dash-alert-item span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.dash-alert-location {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.dash-alert-message {
    color: #dc2626;
    font-weight: 700;
    font-size: 13px;
}

.dash-panel {
    padding: 24px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.dash-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.dash-chart {
    position: relative;
    height: 380px;
}

.money-card {
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.money-card small {
    display: block;
    font-size: 11px;
    opacity: .7;
    margin-bottom: 2px;
}

.money-card strong {
    font-size: 15px;
}

.money-card.income {
    background: rgba(22, 163, 74, .10);
    color: #16a34a;
}

.money-card.expense {
    background: rgba(220, 38, 38, .10);
    color: #dc2626;
}

.money-card.profit {
    background: rgba(37, 99, 235, .10);
    color: #2563eb;
}

@media (max-width: 768px) {
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .dashboard-hero h2 {
        font-size: 28px;
    }

    .dash-alert-item {
        grid-template-columns: 1fr;
    }

    .dash-chart {
        height: 300px;
    }
}

/* COMPONENTES EXISTENTES MEJORADOS */

.card-clean,
.card-soft,
.section-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.card-soft:hover {
    transform: translateY(-1px);
}

.table {
    color: var(--text);
}

.table-clean th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.table-clean td {
    font-size: 13px;
}

.input-clean {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 12px;
}

.btn-soft {
    background: rgba(37, 99, 235, .1);
    border: 1px solid rgba(37, 99, 235, .18);
    color: var(--primary);
    border-radius: 10px;
    font-weight: 600;
}

.btn-soft:hover {
    background: rgba(37, 99, 235, .16);
    color: var(--primary-hover);
}

.section-title,
.report-title {
    font-weight: 800;
    font-size: 16px;
}

.section-sub,
.report-sub,
.kpi-label,
.label,
.stat-mini {
    font-size: 12px;
    color: var(--muted);
}

.value,
.kpi-value {
    font-size: 20px;
    font-weight: 800;
}

.row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 8px;
    transition: .18s ease;
}

.row-item:hover {
    box-shadow: var(--shadow);
}

.row-date {
    font-size: 12px;
    color: var(--muted);
}

.row-note {
    font-size: 13px;
}

.badge-profit {
    background: rgba(22, 163, 74, .12);
    color: var(--success);
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-loss {
    background: rgba(220, 38, 38, .12);
    color: var(--danger);
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.app-modal {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.app-modal .modal-header,
.app-modal .modal-footer {
    border-color: var(--border);
}

.app-modal .btn-close {
    filter: none;
}

html[data-theme="dark"] .app-modal .btn-close {
    filter: invert(1) grayscale(100%);
}

.textarea-clean {
    min-height: 110px;
    padding-left: 14px;
    resize: vertical;
}

.flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.flag-badge.danger {
    background: rgba(220, 38, 38, .12);
    color: #dc2626;
}

.flag-badge.info {
    background: rgba(14, 165, 233, .14);
    color: #0284c7;
}

.flag-badge.primary {
    background: rgba(37, 99, 235, .12);
    color: #2563eb;
}

.flag-badge.muted {
    background: rgba(100, 116, 139, .14);
    color: #64748b;
}

html[data-theme="dark"] .btn-outline-dark {
    color: var(--text);
    border-color: var(--border);
}

html[data-theme="dark"] .btn-outline-dark:hover {
    background: var(--surface-soft);
    color: var(--text);
}

.check-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.check-card input {
    display: none;
}

.check-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition: .18s ease;
}

.check-card:hover .check-content {
    border-color: var(--primary);
}

.check-card input:checked+.check-content {
    border-color: var(--primary);
    background: rgba(37, 99, 235, .06);
}

.check-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, .08);
    font-size: 18px;
    flex-shrink: 0;
}

.check-content strong {
    display: block;
    font-size: 14px;
}

.check-content small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.gallery-image-link {
    display: block;
}

.gallery-image {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    transition: .2s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.03);
}

.gallery-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.gallery-main-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 158, 11, .92);
    color: #fff;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.info-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.diagnostic-box {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.timeline-mini {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-item-mini {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    margin-top: 6px;
    flex-shrink: 0;
}

.timeline-dot.warning {
    background: #f59e0b;
}

.timeline-dot.success {
    background: #16a34a;
}

.repair-preview-image {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: .18s ease;
}

.repair-preview-image:hover {
    transform: translateY(-2px);
}

.repair-preview-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.ticket-page {
    padding: 20px 0 40px;
}

.ticket-toolbar {
    margin-bottom: 20px;
}

.service-ticket {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .10);
    margin: auto;
    overflow: hidden;
}

.ticket-small {
    max-width: 380px;
    border-radius: 18px;
    padding: 18px;
    font-size: 13px;
}

.ticket-a4 {
    max-width: 820px;
    border-radius: 20px;
    padding: 34px;
    font-size: 14px;
}

.ticket-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px dashed #cbd5e1;
}

.ticket-logo {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #111827;
    color: #ffffff;
    font-size: 24px;
}

.ticket-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.ticket-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

.ticket-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.ticket-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.ticket-small .ticket-meta {
    grid-template-columns: 1fr;
}

.ticket-meta span,
.ticket-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-bottom: 3px;
}

.ticket-meta strong,
.ticket-grid strong {
    display: block;
    font-weight: 800;
    color: #111827;
}

.ticket-section {
    padding: 14px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.ticket-section-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 10px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ticket-small .ticket-grid {
    grid-template-columns: 1fr;
}

.ticket-checks {
    display: grid;
    gap: 6px;
    color: #111827;
}

.ticket-text {
    color: #111827;
    line-height: 1.6;
}

.ticket-price-box {
    margin: 16px 0;
    padding: 18px;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    border: 1px solid #334155;
}

.ticket-price-box span {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
}

.ticket-price-box strong {
    display: block;
    font-size: 30px;
    font-weight: 900;
    margin-top: 4px;
}

.ticket-price-box small {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
}

.ticket-conditions {
    padding: 14px 0;
    font-size: 12px;
    color: #334155;
    line-height: 1.55;
}

.ticket-conditions strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
}

.ticket-conditions ul {
    padding-left: 18px;
    margin: 0;
}

.ticket-signatures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
    text-align: center;
    color: #334155;
    font-size: 13px;
}

.ticket-signatures span {
    display: block;
    border-top: 1px solid #111827;
    margin-bottom: 8px;
}

.ticket-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

@media print {
    body {
        background: #ffffff !important;
    }

    body * {
        visibility: hidden;
    }

    #ticket,
    #ticket * {
        visibility: visible;
    }

    #ticket {
        position: absolute;
        inset: 0;
        margin: 0 auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .ticket-small {
        width: 80mm;
        max-width: 80mm;
        padding: 8mm;
        font-size: 12px;
    }

    .ticket-a4 {
        width: 210mm;
        max-width: 210mm;
        min-height: 297mm;
        padding: 18mm;
        font-size: 14px;
    }

    .no-print {
        display: none !important;
    }
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-right {
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .sidebar {
        left: -250px;
    }

    .sidebar.show {
        left: 0;
    }

    .sidebar.collapsed {
        width: 250px;
    }

    .sidebar.collapsed .brand-text,
    .sidebar.collapsed .menu-item span {
        display: flex;
    }

    .main,
    .main.expanded {
        margin-left: 0;
        padding: 14px;
    }

    .topbar {
        border-radius: 16px;
    }

    .user-pill {
        width: 100%;
    }

    .location-form {
        width: 100%;
    }

    .auth-card {
        padding: 26px 22px;
        border-radius: 20px;
    }
}