:root {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --text: #101828;
    --muted: #667085;
    --primary: #0d6efd;
    --danger: #d92d20;
    --success: #039855;
    --warning: #f79009;
    --border: #eaecf0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 45%, #ffffff 100%);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, sans-serif;
    line-height: 1.45;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: linear-gradient(120deg, #f8fbff 0%, #eef4ff 48%, #e8f1ff 100%);
    border-bottom: 1px solid #c9d7ee;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(8px);
    margin-bottom: 1.5rem;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.72rem 0;
    gap: 0.95rem;
}

.brand {
    color: #0f2a4f;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.25px;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    line-height: 1;
}

.brand-logo {
    width: auto;
    height: 42px;
    max-width: 220px;
    object-fit: contain;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.3rem;
    border: 1px solid #d6e2f3;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 #ffffff, 0 2px 8px rgba(15, 23, 42, 0.06);
}

.nav-links a {
    color: #1e3a5f;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 650;
    padding: 0.44rem 0.7rem;
    border-radius: 9px;
    border: 1px solid transparent;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    color: #1e3a5f;
    font-size: 0.86rem;
    font-weight: 650;
    padding: 0.44rem 0.7rem;
    border-radius: 9px;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-dropdown > summary:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.nav-dropdown > summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown > summary::after {
    content: "▾";
    margin-left: 0.38rem;
    font-size: 0.72rem;
    opacity: 0.82;
}

.nav-dropdown:hover > summary {
    color: #0f2748;
    background: #eaf2ff;
    border-color: #bfd4f8;
    transform: translateY(-1px);
}

.nav-dropdown.is-active > summary,
.nav-dropdown[open] > summary {
    color: #ffffff;
    background: linear-gradient(120deg, rgba(29, 78, 216, 0.9) 0%, rgba(14, 165, 233, 0.86) 100%);
    border-color: rgba(125, 211, 252, 0.42);
    box-shadow: 0 4px 12px rgba(3, 14, 38, 0.28);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 50;
    min-width: 220px;
    display: grid;
    gap: 0.18rem;
    padding: 0.34rem;
    border: 1px solid #d0dff5;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
}

.nav-dropdown:not([open]) .nav-dropdown-menu {
    display: none;
}

.nav-dropdown-menu a {
    display: block;
    width: 100%;
    color: #1e3a5f;
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none;
    padding: 0.46rem 0.62rem;
    border-radius: 8px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: #0f2748;
    background: #eaf2ff;
    border-color: #bfd4f8;
    transform: none;
}

.nav-dropdown-menu a.is-active {
    color: #ffffff;
    background: linear-gradient(120deg, rgba(29, 78, 216, 0.9) 0%, rgba(14, 165, 233, 0.86) 100%);
    border-color: rgba(125, 211, 252, 0.42);
}

.nav-links a:hover {
    color: #0f2748;
    background: #eaf2ff;
    border-color: #bfd4f8;
    transform: translateY(-1px);
}

.nav-links a.is-active {
    color: #ffffff;
    background: linear-gradient(120deg, rgba(29, 78, 216, 0.9) 0%, rgba(14, 165, 233, 0.86) 100%);
    border-color: rgba(125, 211, 252, 0.42);
    box-shadow: 0 4px 12px rgba(3, 14, 38, 0.28);
}

.nav-links a.nav-link-logout {
    color: #b42318;
}

.nav-links a.nav-link-logout:hover {
    color: #912018;
    background: #fef3f2;
    border-color: #fecdca;
}

h1,
h2,
h3 {
    margin-top: 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.05);
}

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

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

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

label {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 0.58rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    font: inherit;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button,
.btn {
    border: 0;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 102px;
    min-height: 40px;
    border-radius: 10px;
    padding: 0.56rem 0.82rem;
    font-weight: 750;
    letter-spacing: 0.12px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(15, 23, 42, 0.2);
    filter: brightness(1.02);
}

button:active,
.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.16);
}

button:focus-visible,
.btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.btn-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.print-price-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.print-price-toggle-label {
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.print-price-toggle label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #334155;
    font-size: 0.88rem;
}

.print-price-toggle input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0;
    border: 0;
}

.voucher-actions {
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.6rem;
    border: 1px solid #d8dee9;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
}

.voucher-actions .btn {
    width: auto;
}

.voucher-actions .print-price-toggle {
    margin: 0;
    min-height: 42px;
    border-radius: 10px;
    border-color: #d7deea;
    background: #f8fafc;
}

.public-voucher-wrap {
    padding: 1.05rem 0 1.8rem;
}

.public-voucher-actions {
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.public-voucher-document {
    margin-bottom: 0.4rem;
}

.action-btn {
    min-height: 42px;
    min-width: 130px;
    border-radius: 10px;
    padding: 0.6rem 0.95rem;
    font-weight: 700;
    letter-spacing: 0.15px;
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.15);
    filter: brightness(1.03);
}

.action-btn:active {
    transform: translateY(0);
}

.action-back {
    background: #334155;
    color: #fff;
}

.action-edit {
    background: #1d4ed8;
    color: #fff;
}

.action-print {
    background: #f59e0b;
    color: #111827;
}

.action-whatsapp {
    background: #16a34a;
    color: #fff;
}

.action-copy {
    background: #475569;
    color: #fff;
}

.action-copy-status {
    font-weight: 700;
    margin-left: 0.2rem;
}

body.hide-price .price-sensitive {
    display: none !important;
}

.btn-primary {
    background: linear-gradient(120deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(120deg, #334155 0%, #1f2937 100%);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(120deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.btn-success {
    background: linear-gradient(120deg, #16a34a 0%, #15803d 100%);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(120deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 0.55rem;
    vertical-align: top;
    font-size: 0.92rem;
}

th {
    color: #475467;
    background: #f8fafc;
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.77rem;
    color: #fff;
    white-space: nowrap;
}

.badge-Draft {
    background: #64748b;
}

.badge-Confirmed {
    background: #16a34a;
}

.badge-Cancelled {
    background: #dc2626;
}

.alert {
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf3;
    border-color: #86efac;
    color: #14532d;
}

.alert-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #7f1d1d;
}

.kpi {
    font-size: 1.5rem;
    font-weight: 700;
}

.kpi-label {
    color: #475467;
    font-size: 0.85rem;
}

.document {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: 10px;
}

.voucher-document {
    position: relative;
    border-color: #d8dee9;
    border-radius: 14px;
    padding: 1.1rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.voucher-document::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 45%, #0ea5e9 100%);
}

.document-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

.voucher-header-main {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
    min-width: 290px;
}

.voucher-company {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #d6deea;
    border-radius: 10px;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
}

.voucher-company-logo {
    width: auto;
    height: 52px;
    max-width: 220px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.voucher-company-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}

.voucher-company-line {
    color: #334155;
    font-size: 0.88rem;
    margin-top: 0.1rem;
    word-break: break-word;
}

.voucher-meta {
    padding-left: 0.1rem;
}

.voucher-reference-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.voucher-reference-separator {
    color: #98a2b3;
    font-weight: 700;
}

.voucher-value-inline {
    margin-left: 0.2rem;
}

.voucher-title {
    font-size: 2.05rem;
    line-height: 1.05;
    letter-spacing: 0.2px;
}

.voucher-section {
    margin-top: 0.78rem;
    padding: 0.64rem 0.7rem 0.68rem;
    border: 1px solid #e6ebf3;
    border-radius: 10px;
    background: #fff;
}

.voucher-info-grid > div {
    border: 1px solid #edf2f8;
    border-radius: 8px;
    padding: 0.45rem 0.52rem;
    background: #fcfdff;
}

.voucher-info-item {
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.4;
}

.flight-segment-airline {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.flight-segment-airline-logo {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
    padding: 2px;
}

.flight-datetime-time {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0.1px;
}

.voucher-notes-list {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    color: #334155;
    font-size: 0.93rem;
    line-height: 1.58;
}

.voucher-notes-list li + li {
    margin-top: 0.34rem;
}

.hotel-info-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.hotel-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 86px;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.15;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.hotel-map-link:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.document-code-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    min-width: 154px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.45rem;
    background: #fff;
}

.voucher-qr-image {
    width: 154px;
    height: 154px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.35rem;
    background: #fff;
    object-fit: contain;
    display: block;
}

.verify-link {
    max-width: 320px;
    word-break: break-all;
}

.section-title {
    margin: 0 0 0.45rem;
    color: #0f172a;
    font-size: 1.03rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.meta {
    color: #475467;
    font-size: 0.9rem;
}

.voucher-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.14rem 0.58rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16px;
    border: 1px solid transparent;
    line-height: 1.2;
}

.voucher-badge-status {
    margin-left: 0.25rem;
}

.voucher-status-confirmed {
    background: #ecfdf3;
    color: #027a48;
    border-color: #86efac;
}

.voucher-status-cancelled {
    background: #fff1f2;
    color: #be123c;
    border-color: #fda4af;
}

.voucher-status-pending {
    background: #fffbeb;
    color: #b45309;
    border-color: #fcd34d;
}

.voucher-status-draft {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.voucher-status-neutral {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.voucher-value-highlight {
    display: inline-flex;
    align-items: center;
    margin-left: 0.3rem;
    padding: 0.14rem 0.54rem;
    border-radius: 7px;
    border: 1px solid transparent;
    font-weight: 800;
    line-height: 1.25;
}

.voucher-value-hotel {
    background: #eef4ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.voucher-value-confirmation {
    background: #ecfeff;
    color: #0f766e;
    border-color: #99f6e4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.18px;
}

.voucher-value-pnr {
    background: transparent;
    color: #0f172a;
    border-color: transparent;
    padding: 0;
    border-radius: 0;
    display: inline;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.2px;
}

.voucher-footer-note {
    margin-top: 0.9rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #cdd7e6;
    color: #64748b;
    font-size: 0.82rem;
    text-align: right;
}

.voucher-footer-barcode {
    margin-top: 0.42rem;
    padding-top: 0.42rem;
    border-top: 1px solid #e4eaf4;
    text-align: center;
}

.voucher-footer-barcode-image {
    width: 100%;
    max-width: 560px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.voucher-footer-barcode-ref {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.16px;
}

body.login-immersive-page {
    background:
        radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 38%),
        radial-gradient(circle at 88% 82%, rgba(251, 113, 133, 0.12) 0%, rgba(251, 113, 133, 0) 34%),
        linear-gradient(160deg, #f2f4f8 0%, #f8fafc 50%, #eef2f8 100%);
    min-height: 100vh;
}

body.login-immersive-page .site-header {
    display: none;
}

body.login-immersive-page main.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body.login-immersive-page .alert {
    margin-bottom: 0.85rem;
}

.login-immersive {
    min-height: 100vh;
    padding: 0;
}

.login-immersive-card {
    border: 0;
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(380px, 1.02fr) minmax(420px, 1fr);
    min-height: 100vh;
    background: #ffffff;
    box-shadow: none;
}

.login-immersive-visual {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #171215 0%, #2b2020 52%, #201519 100%);
}

.login-visual-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

.login-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 60% 34%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(145deg, rgba(20, 12, 15, 0.58) 0%, rgba(28, 15, 21, 0.42) 48%, rgba(38, 9, 16, 0.56) 100%);
}

.login-visual-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-visual-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    color: #e5ecf8;
    font-size: 1.08rem;
    font-weight: 700;
}

.login-visual-logo {
    width: auto;
    height: 42px;
    max-width: 210px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(2, 8, 23, 0.22));
}

.login-visual-content h2 {
    margin: 0;
    max-width: 410px;
    font-size: clamp(2.35rem, 5.5vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: none;
}

.login-visual-content p {
    margin: 0;
    max-width: 430px;
    color: #e9edf6;
    font-size: 1rem;
    line-height: 1.5;
}

.login-immersive-form {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    margin-left: clamp(-76px, -5vw, -44px);
    border-top-left-radius: clamp(44px, 5vw, 76px);
    border-bottom-left-radius: clamp(44px, 5vw, 76px);
    box-shadow: -14px 0 34px rgba(15, 23, 42, 0.14);
    padding: clamp(1.4rem, 2vw, 2rem);
}

.login-immersive-wrap {
    width: min(500px, 100%);
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: clamp(0.3rem, 1vw, 0.8rem);
}

.login-immersive-wrap h1 {
    font-size: clamp(2.25rem, 4.6vw, 3.1rem);
    line-height: 1.04;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.login-immersive-wrap .meta {
    margin: 0.55rem 0 1.4rem;
    color: #667085;
    font-size: 1rem;
}

.login-immersive-wrap .login-form {
    gap: 1rem;
}

.login-immersive-wrap .login-field input {
    min-height: 56px;
    border-radius: 999px;
    border: 1px solid #d6dbe5;
    background: #ffffff;
    padding-inline: 1.1rem;
    font-size: 1rem;
}

.login-password-field {
    position: relative;
}

.login-password-field input {
    padding-right: 5rem !important;
}

.login-password-toggle {
    position: absolute;
    right: 0.62rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    min-width: 64px;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid #d2d9e6;
    background: #f8fafc;
    color: #344054;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.34rem 0.62rem;
    box-shadow: none;
}

.login-password-toggle:hover {
    transform: translateY(-50%);
    background: #eef4ff;
    border-color: #bdd3f9;
    color: #1d4ed8;
    box-shadow: none;
}

.login-submit-gradient {
    width: 100%;
    min-height: 56px;
    border-radius: 999px;
    border: 0;
    color: #ffffff;
    font-size: 1.03rem;
    font-weight: 800;
    letter-spacing: 0.15px;
    background: linear-gradient(90deg, #ff5a1f 0%, #ff3d54 55%, #ec4899 100%);
    box-shadow: 0 12px 22px rgba(236, 72, 153, 0.28);
}

.login-submit-gradient:hover {
    box-shadow: 0 14px 24px rgba(236, 72, 153, 0.34);
    filter: brightness(1.02);
}

.auth-box {
    width: min(450px, 94%);
    margin: 3.2rem auto;
}

.login-shell {
    width: min(560px, 95%);
    margin: 2rem auto 3rem;
}

.login-panel {
    display: block;
    padding: 0.85rem;
    border-radius: 18px;
    border-color: #d5deee;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.login-aside {
    border-radius: 14px;
    padding: 1.35rem;
    background: linear-gradient(132deg, #0f1f4a 0%, #1d4ed8 54%, #0ea5e9 100%);
    color: #e0ecff;
    display: grid;
    gap: 0.9rem;
    align-content: flex-start;
}

.login-eyebrow {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #bfdbfe;
    font-weight: 700;
}

.login-aside h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: 0.2px;
    color: #ffffff;
}

.login-lead {
    margin: 0;
    color: #dbeafe;
    font-size: 0.95rem;
}

.login-feature-list {
    display: grid;
    gap: 0.7rem;
}

.login-feature-item {
    padding: 0.66rem 0.75rem;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.26);
    border: 1px solid rgba(191, 219, 254, 0.3);
    display: grid;
    gap: 0.16rem;
}

.login-feature-item strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.login-feature-item span {
    color: #dbeafe;
    font-size: 0.82rem;
}

.login-form-wrap {
    border-radius: 14px;
    border: 1px solid #dce5f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1.25rem;
}

.login-form-wrap h1 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.1;
}

.login-form-wrap .meta {
    margin: 0.45rem 0 1rem;
    color: #475467;
}

.login-form {
    display: grid;
    gap: 0.9rem;
}

.login-field label {
    margin-bottom: 0.32rem;
    color: #334155;
    font-weight: 600;
}

.login-field input {
    min-height: 46px;
    border-radius: 10px;
    border-color: #cfd8e6;
    background: #ffffff;
}

.login-field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
    outline: none;
}

.login-submit {
    width: 100%;
    min-height: 46px;
    font-size: 1rem;
    margin-top: 0.1rem;
}

.two-factor-status-card,
.two-factor-setup-card {
    margin: 0;
}

.two-factor-steps {
    margin: 0 0 0.75rem;
    padding-left: 1.1rem;
    line-height: 1.5;
}

.two-factor-steps li {
    margin-bottom: 0.3rem;
}

.two-factor-qr-wrap {
    margin: 0.55rem 0 0.75rem;
    width: fit-content;
    padding: 0.5rem;
    border: 1px solid #d2dced;
    border-radius: 10px;
    background: #ffffff;
}

.two-factor-qr-image {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
}

.two-factor-secret {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.08em;
    color: #0f766e;
    font-weight: 700;
}

.two-factor-confirm-form {
    margin-top: 0.2rem;
}

.two-factor-code-input {
    max-width: 220px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 1.05rem;
    letter-spacing: 0.28em;
    text-align: center;
}

.room-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.rooms-stack {
    display: grid;
    gap: 0.85rem;
}

.room-card {
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    padding: 0.8rem;
    background: #fcfcfd;
}

.room-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.room-card-head h4 {
    margin: 0;
    font-size: 1rem;
}

.flight-logo-field {
    margin-top: 0.45rem;
    display: grid;
    gap: 0.4rem;
}

.flight-logo-preview {
    min-height: 42px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flight-logo-preview-image {
    display: block;
    max-height: 36px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
}

.flight-logo-placeholder {
    color: #64748b;
    font-size: 0.8rem;
}

.room-toolbar .btn,
.room-card-head .btn {
    width: auto;
}

.room-guest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.75rem;
}

.room-ages-block {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem;
    background: #fff;
}

.room-ages-block h5 {
    margin: 0 0 0.45rem;
    font-size: 0.92rem;
    color: #334155;
}

.room-guest-item {
    margin-bottom: 0.45rem;
}

.room-guest-item:last-child {
    margin-bottom: 0;
}

.room-guest-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.room-guest-row:last-child {
    margin-bottom: 0;
}

.room-guest-row label {
    margin-bottom: 0.18rem;
    font-size: 0.8rem;
}

.media-preview {
    margin-top: 0.5rem;
}

.media-preview img {
    display: block;
    max-width: 180px;
    max-height: 72px;
    width: auto;
    height: auto;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    padding: 0.35rem;
}

.media-preview img.media-preview-login {
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    padding: 0;
    object-fit: cover;
}

.bookings-page {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.bookings-hero {
    position: relative;
    overflow: hidden;
    border-color: #d6dff1;
    background: linear-gradient(140deg, #f8fbff 0%, #eef4ff 100%);
}

.bookings-hero::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.13) 0%, rgba(14, 165, 233, 0.06) 42%, rgba(14, 165, 233, 0) 72%);
    right: -120px;
    top: -180px;
    pointer-events: none;
}

.bookings-hero-head {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.95rem;
}

.bookings-title-wrap h1 {
    margin: 0;
    font-size: 2.15rem;
    line-height: 1.05;
    letter-spacing: 0.3px;
    color: #0f172a;
}

.bookings-title-wrap p {
    margin: 0.46rem 0 0;
    color: #475467;
    font-size: 0.95rem;
    max-width: 690px;
}

.bookings-hero-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bookings-hero-actions .btn {
    width: auto;
    min-height: 42px;
}

.bookings-stat-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.62rem;
}

.bookings-stat-card {
    border: 1px solid #d9e3f4;
    border-radius: 10px;
    padding: 0.62rem 0.66rem;
    background: rgba(255, 255, 255, 0.92);
}

.bookings-stat-label {
    color: #4b5563;
    font-size: 0.79rem;
    letter-spacing: 0.15px;
}

.bookings-stat-value {
    margin-top: 0.12rem;
    color: #0f172a;
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1.06;
}

.bookings-filter-card {
    border-color: #d8e2f2;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.bookings-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) minmax(180px, 0.8fr) minmax(190px, 0.9fr) auto;
    gap: 0.7rem;
    align-items: end;
}

.bookings-filter-form label {
    margin-bottom: 0.24rem;
}

.bookings-filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    justify-content: flex-start;
}

.bookings-filter-actions .btn {
    width: auto;
    min-height: 42px;
}

.bookings-table-card {
    border-color: #d7e0f0;
    padding-top: 0.8rem;
}

.bookings-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.bookings-table-toolbar h2 {
    margin: 0;
    font-size: 1.02rem;
    color: #0f172a;
}

.bookings-table-toolbar p {
    margin: 0.25rem 0 0;
    color: #667085;
    font-size: 0.86rem;
}

.bookings-filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bookings-filter-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    background: #f8fafc;
    color: #334155;
    font-size: 0.76rem;
    font-weight: 700;
}

.bookings-table {
    min-width: 1020px;
    border-collapse: separate;
    border-spacing: 0;
}

.bookings-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fbff;
    color: #334155;
    border-bottom: 1px solid #dbe5f4;
    white-space: nowrap;
}

.bookings-table tbody tr {
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.bookings-table tbody tr:hover {
    background: #f8fbff;
}

.bookings-table td {
    border-bottom-color: #e8edf6;
}

.booking-ref-code {
    font-family: Menlo, Consolas, Monaco, "Courier New", monospace;
    font-size: 0.84rem;
    letter-spacing: 0.2px;
    color: #0f172a;
    font-weight: 700;
    word-break: break-word;
}

.booking-type-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.56rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.booking-type-badge.type-flight-itinerary {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.booking-type-badge.type-hotel-voucher {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.booking-type-badge.type-combined {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.booking-type-badge.type-unknown {
    background: #f8fafc;
    color: #334155;
    border-color: #e2e8f0;
}

.booking-contact-line {
    display: block;
    color: #0f172a;
    line-height: 1.36;
}

.booking-contact-phone {
    color: #475467;
}

.bookings-table .btn-row {
    gap: 0.42rem;
}

.bookings-table .btn-row .btn {
    width: auto;
    min-height: 36px;
    min-width: 82px;
    padding: 0.45rem 0.7rem;
}

.bookings-table .btn-row form {
    margin: 0;
}

.booking-delete-wrap {
    display: inline-flex;
    flex-direction: column;
    gap: 0.4rem;
}

.booking-delete-confirm {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fff1f2;
    padding: 0.42rem;
}

.booking-delete-wrap.is-open .booking-delete-confirm {
    display: flex;
}

.booking-delete-confirm form {
    margin: 0;
}

.booking-delete-warning {
    font-size: 0.78rem;
    color: #7f1d1d;
    font-weight: 700;
    line-height: 1.35;
}

.bookings-pagination {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e6ebf4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.bookings-pagination-summary {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
}

.bookings-pagination-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.bookings-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0 0.45rem;
}

.bookings-pagination-link:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.bookings-pagination-link.is-active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.bookings-pagination-link.is-disabled {
    color: #9ca3af;
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.bookings-pagination-ellipsis {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0 0.1rem;
}

.bookings-empty-row td {
    text-align: center;
    padding: 1rem 0.8rem;
}

.bookings-empty-row .meta {
    display: block;
    margin-top: 0.25rem;
}

.dashboard-page {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    border-color: #d5def0;
    background: linear-gradient(130deg, #0f172a 0%, #1d4ed8 62%, #0ea5e9 100%);
    color: #fff;
}

.dashboard-hero-main h1 {
    margin: 0;
    font-size: 2.12rem;
    line-height: 1.05;
    letter-spacing: 0.2px;
    color: #fff;
}

.dashboard-hero-main p {
    margin: 0.48rem 0 0;
    color: #dbeafe;
    max-width: 660px;
    font-size: 0.95rem;
}

.dashboard-hero-meta {
    margin-top: 0.55rem;
    color: #bfdbfe;
    font-size: 0.82rem;
}

.dashboard-hero-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.dashboard-hero-actions .btn {
    width: auto;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.dashboard-kpi-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-kpi-card {
    border-color: #d9e2f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-kpi-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
}

.dashboard-kpi-label {
    margin-top: 0.3rem;
    font-size: 0.84rem;
    color: #475467;
    font-weight: 600;
}

.dashboard-kpi-meta {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.78rem;
}

.dashboard-insight-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-panel {
    border-color: #d9e3f2;
    background: #fff;
}

.dashboard-panel h2 {
    margin: 0 0 0.7rem;
    font-size: 1rem;
    color: #0f172a;
}

.dashboard-breakdown-list {
    display: grid;
    gap: 0.35rem;
}

.dashboard-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #334155;
    font-size: 0.88rem;
}

.dashboard-breakdown-row strong {
    color: #0f172a;
    font-size: 0.9rem;
}

.dashboard-progress {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 0.28rem;
}

.dashboard-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

.dashboard-progress.is-warning span {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.dashboard-progress.is-danger span {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.dashboard-progress.is-flight span {
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
}

.dashboard-progress.is-hotel span {
    background: linear-gradient(90deg, #15803d 0%, #22c55e 100%);
}

.dashboard-progress.is-combined span {
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 100%);
}

.dashboard-insight-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.56rem 0.62rem;
    font-size: 0.86rem;
    line-height: 1.42;
}

.dashboard-insight-item.tone-success {
    border-color: #86efac;
    background: #ecfdf3;
    color: #166534;
}

.dashboard-insight-item.tone-warning {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

.dashboard-insight-item.tone-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.dashboard-insight-item.tone-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.dashboard-insight-item.tone-neutral {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #334155;
}

.dashboard-quick-links {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dashboard-quick-links a {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.58rem;
}

.dashboard-quick-links a:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.dashboard-recent-card {
    border-color: #d7e0f0;
}

.dashboard-recent-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
}

.dashboard-recent-head h2 {
    margin: 0;
    font-size: 1.04rem;
    color: #0f172a;
}

.dashboard-recent-head p {
    margin: 0.22rem 0 0;
    color: #64748b;
    font-size: 0.84rem;
}

.dashboard-recent-table {
    min-width: 920px;
}

.dashboard-empty-row td {
    text-align: center;
    color: #64748b;
}

.monitor-page {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.monitor-hero {
    border-color: #d5def0;
    background: linear-gradient(132deg, #0f172a 0%, #1e3a8a 52%, #0ea5e9 100%);
    color: #fff;
}

.monitor-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
}

.monitor-hero p {
    margin: 0.4rem 0 0;
    color: #dbeafe;
    max-width: 760px;
}

.monitor-hero-meta {
    margin-top: 0.55rem;
    color: #bfdbfe;
    font-size: 0.83rem;
}

.monitor-kpi-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.monitor-kpi-card {
    border-color: #d9e2f2;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.monitor-kpi-value {
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
}

.monitor-kpi-label {
    margin-top: 0.3rem;
    font-size: 0.84rem;
    color: #475467;
    font-weight: 650;
}

.monitor-kpi-meta {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.78rem;
}

.monitor-filter-card {
    border-color: #d8e2f2;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.monitor-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(140px, 0.7fr) minmax(210px, 1fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) minmax(120px, 0.55fr) auto;
    gap: 0.7rem;
    align-items: end;
}

.monitor-filter-actions {
    display: flex;
    gap: 0.45rem;
}

.monitor-filter-actions .btn {
    width: auto;
    min-height: 42px;
}

.monitor-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.monitor-table-card {
    border-color: #d7e0f0;
    padding-top: 0.8rem;
}

.monitor-table-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.monitor-table-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.monitor-head-inline-form {
    margin: 0;
}

.monitor-delete-btn[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
}

.monitor-table-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.02rem;
}

.monitor-table-head p {
    margin: 0.24rem 0 0;
    color: #667085;
    font-size: 0.85rem;
}

.monitor-table {
    min-width: 1200px;
}

.monitor-select-col {
    width: 46px;
    text-align: center;
}

.monitor-select-col input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1d4ed8;
    cursor: pointer;
}

.monitor-event-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.2rem 0.56rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1px;
    white-space: nowrap;
}

.monitor-event-pill.tone-success {
    color: #166534;
    background: #ecfdf3;
    border-color: #86efac;
}

.monitor-event-pill.tone-danger {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.monitor-event-pill.tone-warning {
    color: #92400e;
    background: #fffbeb;
    border-color: #fcd34d;
}

.monitor-event-pill.tone-info {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.monitor-table code {
    font-size: 0.74rem;
    color: #1f2937;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 0.14rem 0.36rem;
    display: inline-block;
    line-height: 1.3;
}

.monitor-details-cell {
    max-width: 420px;
    font-size: 0.79rem;
    color: #475467;
    line-height: 1.35;
    word-break: break-word;
}

.monitor-side-card {
    border-color: #d9e3f2;
    background: #fff;
}

.monitor-side-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
}

.monitor-side-card .meta {
    margin: 0.32rem 0 0.65rem;
}

.monitor-risk-list {
    display: grid;
    gap: 0.45rem;
}

@media (max-width: 1200px) {
    .monitor-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .room-guest-grid {
        grid-template-columns: 1fr;
    }

    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .nav-links {
        width: 100%;
        overflow: visible;
        flex-wrap: wrap;
        padding: 0.34rem;
    }

    .nav-links a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown > summary {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        margin-top: 0.35rem;
        background: #ffffff;
        box-shadow: none;
    }

    .nav-dropdown-menu a {
        white-space: normal;
    }

    body.login-immersive-page main.container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .login-immersive {
        min-height: 100vh;
        padding: 0;
    }

    .login-immersive-card {
        grid-template-columns: 1fr;
        min-height: 100vh;
        border-radius: 0;
    }

    .login-immersive-visual {
        min-height: 360px;
        margin-right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: none;
    }

    .login-visual-content {
        padding: 1.35rem 1.25rem;
        gap: 1rem;
    }

    .login-visual-content h2 {
        max-width: 100%;
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .login-visual-content p {
        max-width: 100%;
    }

    .login-immersive-form {
        margin-left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        box-shadow: none;
        padding: 1rem 0.95rem 1.2rem;
    }

    .brand-logo {
        height: 34px;
        max-width: 170px;
    }

    .document-code-stack {
        align-items: flex-start;
        width: 100%;
    }

    .voucher-company-logo {
        height: 44px;
        max-width: 170px;
    }

    .voucher-title {
        font-size: 1.65rem;
    }

    .public-voucher-actions {
        justify-content: stretch;
    }

    .public-voucher-actions .action-btn {
        width: 100%;
        min-width: 0;
    }

    .dashboard-hero {
        flex-direction: column;
    }

    .login-shell {
        width: min(560px, 95%);
        margin-top: 1.2rem;
    }

    .login-panel {
        padding: 0.75rem;
    }

    .login-form-wrap {
        padding: 1rem;
    }

    .dashboard-hero-main h1 {
        font-size: 1.78rem;
    }

    .dashboard-hero-actions {
        width: 100%;
    }

    .dashboard-hero-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-insight-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-recent-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-recent-table {
        min-width: 0;
    }

    .dashboard-recent-table thead {
        display: none;
    }

    .dashboard-recent-table,
    .dashboard-recent-table tbody,
    .dashboard-recent-table tr,
    .dashboard-recent-table td {
        display: block;
        width: 100%;
    }

    .dashboard-recent-table tbody tr {
        border: 1px solid #dce4f2;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
        padding: 0.42rem 0.62rem;
        margin-bottom: 0.7rem;
    }

    .dashboard-recent-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .dashboard-recent-table td {
        padding: 0.44rem 0.2rem 0.44rem 7.9rem;
        border-bottom: 1px dashed #e3e8f3;
        position: relative;
        min-height: 2rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .dashboard-recent-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0.2rem;
    }

    .dashboard-recent-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.2rem;
        top: 0.46rem;
        width: 7.2rem;
        color: #64748b;
        font-size: 0.74rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.25px;
    }

    .dashboard-recent-table td[data-label="Actions"] {
        padding-left: 0.2rem;
    }

    .dashboard-recent-table td[data-label="Actions"]::before {
        display: none;
    }

    .bookings-hero-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.7rem;
    }

    .bookings-title-wrap h1 {
        font-size: 1.75rem;
    }

    .bookings-hero-actions {
        width: 100%;
    }

    .bookings-hero-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .bookings-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bookings-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .monitor-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .bookings-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .monitor-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .monitor-table-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .monitor-table-head-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .bookings-table-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .bookings-table {
        min-width: 0;
    }

    .monitor-table {
        min-width: 0;
    }

    .bookings-table thead {
        display: none;
    }

    .bookings-table,
    .bookings-table tbody,
    .bookings-table tr,
    .bookings-table td {
        display: block;
        width: 100%;
    }

    .bookings-table tbody tr {
        border: 1px solid #dce4f2;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 5px 14px rgba(15, 23, 42, 0.05);
        padding: 0.42rem 0.62rem;
        margin-bottom: 0.7rem;
    }

    .bookings-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .bookings-table td {
        padding: 0.44rem 0.2rem 0.44rem 7.9rem;
        border-bottom: 1px dashed #e3e8f3;
        position: relative;
        min-height: 2rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .bookings-table td:last-child {
        border-bottom: 0;
        padding-bottom: 0.2rem;
    }

    .bookings-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.2rem;
        top: 0.46rem;
        width: 7.2rem;
        color: #64748b;
        font-size: 0.74rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.25px;
    }

    .bookings-table td[data-label="Actions"] {
        padding-left: 0.2rem;
    }

    .bookings-table td[data-label="Actions"]::before {
        display: none;
    }

    .bookings-table td[data-label="Actions"] .btn-row {
        justify-content: flex-start;
    }

    .monitor-table td.monitor-select-col {
        padding-left: 0.2rem;
        border-bottom: 0;
        min-height: auto;
    }

    .monitor-table td.monitor-select-col::before {
        display: none;
    }

    .booking-delete-wrap {
        width: 100%;
    }

    .booking-delete-confirm {
        width: 100%;
    }

    .booking-delete-confirm .btn {
        min-width: 78px;
    }

    .bookings-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .bookings-pagination-links {
        justify-content: flex-start;
    }

    .bookings-empty-row td {
        padding: 1rem 0.35rem;
        text-align: left;
    }

    .bookings-empty-row td::before {
        display: none;
    }
}

@media (max-width: 620px) {
    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .monitor-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-hero-actions .btn {
        width: 100%;
    }

    .dashboard-recent-table td {
        padding-left: 0.2rem;
    }

    .dashboard-recent-table td::before {
        position: static;
        display: block;
        width: auto;
        margin-bottom: 0.12rem;
    }

    .bookings-stat-grid {
        grid-template-columns: 1fr;
    }

    .bookings-filter-form {
        grid-template-columns: 1fr;
    }

    .monitor-filter-form {
        grid-template-columns: 1fr;
    }

    .bookings-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .monitor-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bookings-filter-actions .btn {
        width: 100%;
    }

    .monitor-filter-actions .btn {
        width: 100%;
    }

    .login-immersive-visual {
        min-height: 300px;
    }

    .login-visual-brand {
        font-size: 0.95rem;
    }

    .login-visual-logo {
        height: 34px;
    }

    .login-immersive-wrap h1 {
        font-size: 2rem;
    }

    .login-immersive-wrap .meta {
        font-size: 0.92rem;
    }

    .login-immersive-wrap .login-field input,
    .login-submit-gradient {
        min-height: 52px;
    }

    .bookings-table td {
        padding-left: 0.2rem;
    }

    .bookings-table td::before {
        position: static;
        display: block;
        width: auto;
        margin-bottom: 0.12rem;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 9mm;
    }

    .no-print,
    .site-header {
        display: none !important;
    }

    body.hide-price .price-sensitive {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111827;
        font-size: 11.6px;
        line-height: 1.35;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .public-voucher-wrap {
        padding: 0;
    }

    /* Keep voucher layout structured in print (don't collapse to mobile single-column). */
    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .document,
    .voucher-document {
        border: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .voucher-document::before {
        height: 3px;
    }

    .voucher-title {
        font-size: 25px;
        margin-bottom: 0.12rem;
    }

    .voucher-company {
        border-color: #cbd5e1;
        background: #f8fafc;
    }

    .voucher-company-logo {
        height: 44px;
        max-width: 180px;
    }

    .document-header {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .voucher-header-main {
        flex: 1;
        min-width: 0;
    }

    .document-code-stack {
        width: auto !important;
        min-width: 138px;
        align-items: center;
    }

    .document-code-stack img {
        max-width: 100%;
        height: auto;
    }

    .voucher-section {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-top: 0.5rem;
        padding: 0.46rem 0.52rem;
        border-color: #dde4ee;
    }

    .voucher-info-grid > div {
        border-color: #e8edf5;
        background: #fff;
        padding: 0.34rem 0.4rem;
    }

    .document-header {
        gap: 0.55rem;
        padding-bottom: 0.45rem;
        margin-bottom: 0.45rem;
    }

    .document-code-stack {
        border-color: #dce3ed;
        padding: 0.35rem;
        gap: 0.22rem;
    }

    .document-code-stack .voucher-qr-image {
        width: 132px;
        height: 132px;
        max-width: none;
        padding: 0.22rem;
        border-radius: 6px;
    }

    .section-title {
        margin-bottom: 0.28rem;
        font-size: 13px;
        letter-spacing: 0.1px;
    }

    table {
        break-inside: auto;
        page-break-inside: auto;
    }

    tr,
    td,
    th {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    th,
    td {
        padding: 0.31rem 0.34rem;
        font-size: 10.7px;
    }

    th {
        color: #334155;
        background: #f8fafc !important;
    }

    .voucher-footer-note {
        margin-top: 0.5rem;
        padding-top: 0.32rem;
        font-size: 9.8px;
        color: #475569;
    }

    .voucher-footer-barcode {
        margin-top: 0.25rem;
        padding-top: 0.24rem;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .voucher-footer-barcode-image {
        max-width: 100%;
        height: 42px;
    }

    .voucher-footer-barcode-ref {
        font-size: 8.8px;
        margin-top: 0.1rem;
    }

    .hotel-map-link {
        background: #ffffff;
        color: #1d4ed8;
        border: 1px solid #1d4ed8;
        padding: 0.12rem 0.4rem;
        min-width: 64px;
        font-size: 8.9px;
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
    }

    .voucher-badge,
    .voucher-value-highlight {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
