body {
    background: #f5f7fb;
    color: #1a1f36;
    font-family: Inter, Arial, sans-serif;
}

a {
    text-decoration: none;
}

.tracon-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e9edf5;
}

.navbar-brand {
    font-weight: 700;
    color: #0f4ea8;
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f4ea8, #22a6f2);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(15, 78, 168, 0.22);
}

.btn-brand,
.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, #0f4ea8, #1f77d2);
    color: #fff;
    border: 0;
    box-shadow: 0 10px 25px rgba(15, 78, 168, 0.18);
}

.btn-brand-outline,
.btn-brand-outline:hover,
.btn-brand-outline:focus {
    border: 1px solid #0f4ea8;
    color: #0f4ea8;
    background: #fff;
}

.btn-nav,
.btn-nav:hover,
.btn-nav:focus {
    color: #334155;
    background: transparent;
    border: 1px solid transparent;
}

.user-chip {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #eef5ff;
    color: #0f4ea8;
    font-weight: 600;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.45rem;
    border-radius: 999px;
    background: #f3f6fb;
    border: 1px solid #e5ebf3;
    font-size: 0.92rem;
}

.language-switch a {
    color: #475569;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
}

.language-switch a.active {
    background: #0f4ea8;
    color: #fff;
}

.page-shell {
    padding: 1.7rem 0 2.5rem;
}

.hero-panel {
    background: linear-gradient(135deg, #ffffff, #f6f9ff);
    border: 1px solid #e9eef8;
    border-radius: 24px;
    padding: 1.35rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.04);
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
}

.hero-panel h1 {
    font-size: 1.8rem;
    margin: 0;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0f4ea8;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.panel-card {
    background: #fff;
    border: 1px solid #ebeff5;
    border-radius: 24px;
    padding: 1.35rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.045);
}

.panel-card + .panel-card {
    margin-top: 1.1rem;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: #dbe4f0;
    min-height: 48px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0f4ea8;
    box-shadow: 0 0 0 0.18rem rgba(15, 78, 168, 0.12);
}

textarea.form-control {
    min-height: 110px;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.step-item {
    border: 1px solid #e7edf6;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: #fbfcff;
}

.step-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.table-wrap {
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.7rem;
    min-width: 720px;
}

.table-modern thead th {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
    border: 0;
    padding: 0 0.85rem 0.25rem;
}

.table-modern tbody tr {
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.table-modern tbody td {
    padding: 0.9rem 0.85rem;
    border: 0;
    vertical-align: middle;
}

.table-modern tbody tr td:first-child {
    border-radius: 16px 0 0 16px;
}

.table-modern tbody tr td:last-child {
    border-radius: 0 16px 16px 0;
}

.status-pill {
    padding: 0.36rem 0.78rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
}

.status-own {
    background: #ecfdf3;
    color: #166534;
}

.status-rent {
    background: #fff6e9;
    color: #9a5b00;
}

.toolbar-card {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.filter-pills {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe4f0;
    color: #475569;
    font-weight: 600;
}

.filter-pill.active {
    background: #0f4ea8;
    border-color: #0f4ea8;
    color: #fff;
}

.auth-wrap {
    min-height: calc(100vh - 100px);
    display: grid;
    place-items: center;
    padding: 1.5rem 0;
}

.auth-card {
    max-width: 1080px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.09);
}

.auth-side {
    background: linear-gradient(135deg, #0f4ea8, #1d86d8);
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-side p {
    color: rgba(255,255,255,0.85);
}

.auth-form {
    padding: 2rem;
}

.auth-form .panel-card {
    border: 0;
    box-shadow: none;
    padding: 0;
}

.auth-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.kpi-box {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 1rem;
}

.kpi-box strong {
    display: block;
    font-size: 1.4rem;
}

.qr-modal-content {
    border-radius: 28px;
    border: 0;
}

.qr-card {
    background: linear-gradient(135deg, #ffffff, #f7faff);
    border: 1px solid #e8eef8;
    border-radius: 24px;
    padding: 1.25rem;
    text-align: center;
}

.qr-card-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f4ea8;
    margin-bottom: 0.8rem;
}

.qr-canvas-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    width: 100%;
}

.qr-canvas-wrap img,
.qr-canvas-wrap canvas {
    max-width: 220px;
    max-height: 220px;
}

.barcode-svg {
    display: block;
    width: 100%;
    min-height: 86px;
    margin-top: 0.4rem;
}

.qr-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.code-btn {
    min-width: 85px;
}

.thumb-image {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e8eef8;
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 0.9rem;
}

.export-box {
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 18px;
    padding: 1rem;
}

.empty-state {
    padding: 2rem;
    border-radius: 20px;
    background: #fbfdff;
    border: 1px dashed #dbe4f0;
    text-align: center;
    color: #64748b;
}

.queue-count {
    background: #eef5ff;
    color: #0f4ea8;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
}

.quick-list {
    display: grid;
    gap: 0.75rem;
}

.quick-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 16px;
    border: 1px solid #e7edf6;
    padding: 0.9rem 1rem;
}

.print-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 247, 251, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid #e8edf5;
    margin-bottom: 1rem;
}

.print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem;
}

.print-code-card {
    page-break-inside: avoid;
    background: #fff;
    border: 1px solid #e9eef6;
    border-radius: 24px;
    padding: 1rem;
    text-align: center;
}

.print-code-card .qr {
    min-height: 190px;
    display: grid;
    place-items: center;
}

.print-code-card svg {
    width: 100%;
    min-height: 70px;
}

.small-muted {
    color: #64748b;
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-side {
        padding-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .step-grid,
    .export-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel h1 {
        font-size: 1.45rem;
    }

    .toolbar-card {
        align-items: stretch;
    }

    .auth-kpis {
        grid-template-columns: 1fr;
    }
}

@media print {
    .print-toolbar,
    .navbar,
    .btn,
    .language-switch,
    .alert {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .page-shell,
    .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
}
