* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f6fa;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: #0f5e9c;
}

.auth-page {
    display: grid;
    align-items: center;
    min-height: 100vh;
    padding: 70px 18px 24px;
}

.auth-shell {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.b2b-register-shell {
    max-width: 980px;
}

.login-panel,
.panel {
    background: #ffffff;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}

.login-panel {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 28px 30px 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.075);
}

.eyebrow {
    margin: 0 0 8px;
    color: #65738a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.2;
}

h1 {
    color: #252525;
    font-size: 34px;
    font-weight: 800;
}

.auth-shell h1 {
    line-height: 1;
    margin: 0 0 26px;
}

h2 {
    margin-bottom: 12px;
    font-size: 20px;
}

.form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.auth-copy {
    margin: 0 0 16px;
    color: #c3badf;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.auth-form {
    display: block;
    margin-top: 0;
}

.b2b-register-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px 20px;
}

.b2b-register-grid .auth-field,
.b2b-register-grid .b2b-document-fields,
.b2b-register-grid .auth-message {
    margin: 0;
}

.b2b-register-actions {
    display: grid;
    gap: 12px;
}

@media (min-width: 900px) {
    .b2b-register-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .b2b-register-grid .full-width {
        grid-column: 1 / -1;
    }
}

.b2c-register-grid .auth-field {
    min-width: 0;
}

@media (min-width: 900px) {
    .b2c-register-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        align-items: start;
    }

    .b2c-register-grid .b2c-field-salutation {
        grid-column: span 2;
    }

    .b2c-register-grid .b2c-field-first-name,
    .b2c-register-grid .b2c-field-last-name {
        grid-column: span 5;
    }

    .b2c-register-grid .b2c-field-whatsapp,
    .b2c-register-grid .b2c-field-email,
    .b2c-register-grid .b2c-field-password,
    .b2c-register-grid .b2c-field-confirm-password {
        grid-column: span 6;
    }

    .b2c-register-grid .b2c-field-country,
    .b2c-register-grid .b2c-field-city {
        grid-column: span 3;
    }

    .b2c-register-grid .b2c-field-address {
        grid-column: span 6;
    }
}

.auth-field {
    display: block;
    margin: 0 0 14px;
}

.turnstile-field {
    min-height: 65px;
    overflow-x: auto;
}

.auth-field label {
    display: block;
    color: #303030;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 8px;
}

.auth-shell input,
.auth-shell select {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 2px solid #cfd8eb;
    border-radius: 10px;
    background: #eaf2ff;
    color: #050505;
    font-size: 15px;
    line-height: 1.2;
    outline: none;
}

.auth-shell input:focus,
.auth-shell select:focus {
    border-color: #5833cb;
    box-shadow: 0 0 0 4px rgba(88, 51, 203, 0.12);
}

.password-control {
    position: relative;
}

.auth-shell .password-control input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #5b6475;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.password-toggle .eye-slash {
    display: none;
}

.password-toggle.is-visible .eye-slash {
    display: block;
}

.password-toggle:hover {
    background: rgba(82, 45, 198, 0.08);
    color: #4725b6;
}

.password-toggle:focus {
    outline: 2px solid rgba(88, 51, 203, 0.35);
    outline-offset: 1px;
}

label {
    font-weight: 700;
}

.required-label::before {
    content: "* ";
    color: #b91c1c;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b8c3d1;
    border-radius: 6px;
    background: #ffffff;
    font: inherit;
}

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

button,
.logout-link,
.primary-button,
.secondary-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #0f5e9c;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.auth-primary {
    min-height: 40px;
    margin: 4px 0 16px;
    padding: 9px 17px;
    border: 0;
    border-radius: 9px;
    background: #522dc6;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.auth-primary:hover {
    background: #4725b6;
}

.auth-primary:disabled {
    background: #d7dce8;
    color: #65738a;
    cursor: not-allowed;
}

.auth-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 0;
}

.auth-tabs a {
    color: #4a148c;
    font-size: 16px;
    line-height: 1.2;
    padding: 0;
    text-decoration: underline;
}

.auth-tabs a:hover,
.auth-tabs a[aria-current="page"] {
    color: #32106c;
}

.compact-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}

.mobile-label {
    display: none;
}

.secondary-button {
    border: 1px solid #b8c3d1;
    background: #ffffff;
    color: #172033;
}

.disabled-button {
    opacity: 0.65;
    cursor: default;
    pointer-events: none;
}

.primary-button {
    background: #0f5e9c;
    color: #ffffff;
}

.whatsapp-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid #128c4c;
    border-radius: 6px;
    background: #1fa855;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(31, 168, 85, 0.18);
    white-space: nowrap;
}

.whatsapp-button:hover,
.whatsapp-button:focus {
    background: #168d46;
    color: #ffffff;
}

.whatsapp-button:focus {
    outline: 2px solid rgba(31, 168, 85, 0.35);
    outline-offset: 2px;
}

.whatsapp-button.compact-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}

.whatsapp-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: currentColor;
}

.disabled-button {
    opacity: 0.55;
    cursor: not-allowed;
}

.checkbox-label {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 700;
}

.checkbox-label input {
    width: auto;
    min-height: 0;
}

.booking-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #0b4f86;
    border-radius: 6px;
    background: #0b66b0;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(15, 94, 156, 0.18);
    white-space: nowrap;
}

.link-button {
    min-height: 0;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #0f5e9c;
    font-weight: 800;
    text-align: left;
    text-decoration: underline;
}

.link-button:hover,
.link-button:focus {
    color: #0b4f86;
}

.booking-cta.compact-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}

.booking-cta::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 900;
    line-height: 1;
}

.booking-cta:hover,
.booking-cta:focus {
    background: #095a9b;
    color: #ffffff;
}

.booking-cta:focus {
    outline: 2px solid rgba(9, 90, 155, 0.35);
    outline-offset: 2px;
}

.alert {
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #d48a8a;
    border-radius: 6px;
    background: #fff2f2;
    color: #8b1f1f;
}

.alert-success {
    border-color: #9bc4a6;
    background: #eef8f0;
    color: #256233;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 32px;
    background: #ffffff;
    border-bottom: 1px solid #d8e0ea;
}

.b2c-site-topbar {
    gap: 14px;
    min-height: 64px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.b2b-site-topbar {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 64px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.b2c-brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 1;
    text-decoration: none;
}

.b2b-brand-logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    line-height: 1;
    text-decoration: none;
}

.b2c-brand-logo img {
    display: block;
    width: auto;
    height: 36px;
    max-width: 142px;
    object-fit: contain;
}

.topbar.b2c-site-topbar:not(.internal-site-topbar) .b2c-brand-logo {
    max-width: 220px;
}

.topbar.b2c-site-topbar:not(.internal-site-topbar) .b2c-brand-logo > img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 200px;
    max-height: 52px;
    object-fit: contain;
}

.internal-site-topbar {
    position: relative;
}

.internal-header-title {
    display: grid;
    flex: 0 1 auto;
    min-width: 0;
    gap: 1px;
}

.internal-header-title span {
    color: #65738a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.internal-header-title strong {
    overflow: hidden;
    color: #252525;
    font-size: 18px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.internal-header-title--custom {
    flex: 1 1 auto;
    text-align: center;
}

.internal-header-title--custom strong {
    overflow: visible;
    font-size: 16px;
    text-overflow: clip;
    white-space: normal;
}

.internal-header-title--custom .internal-header-subtitle {
    color: #526071;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}

.internal-header-freshness {
    flex: 1 1 auto;
    min-width: 180px;
    color: #65738a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.internal-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.internal-header-user {
    min-width: 0;
    overflow: hidden;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.internal-menu {
    position: relative;
    flex: 0 0 auto;
}

.internal-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 92px;
}

.internal-menu-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 0.16s ease;
}

.internal-menu.is-open .internal-menu-button svg {
    transform: rotate(180deg);
}

.internal-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: grid;
    width: min(250px, calc(100vw - 28px));
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.16);
}

.internal-menu-dropdown[hidden] {
    display: none;
}

.internal-menu-link {
    display: block;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 6px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.internal-menu-link:hover,
.internal-menu-link:focus,
.internal-menu-link[aria-current="page"] {
    background: #eef4fb;
    color: #0f5e9c;
}

.internal-menu-logout {
    margin-top: 4px;
    border-top: 1px solid #e6edf5;
    border-radius: 0 0 6px 6px;
    color: #9b1c1c;
}

.b2b-brand-logo img {
    display: block;
    width: auto;
    height: 36px;
    max-width: 142px;
    object-fit: contain;
}

.b2c-trust-footer {
    padding: 0 32px 24px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.dashboard.b2b-dashboard + .b2c-trust-footer {
    max-width: 1320px;
}

.dashboard.b2b-booking-dashboard + .b2c-trust-footer {
    max-width: 1120px;
}

body.mobile-webview-booking .b2b-site-topbar,
body.mobile-webview-booking .b2b-booking-dashboard + .b2c-trust-footer {
    display: none;
}

.dashboard.b2c-detail-dashboard + .b2c-trust-footer {
    max-width: 1180px;
}

.b2c-trust-footer-inner {
    width: 100%;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(23, 32, 51, 0.05);
}

.b2c-trust-footer-inner-cols-1 {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding-right: 10px;
    padding-left: 10px;
}

.internal-footer-shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 24px;
}

.internal-footer-shell .b2c-trust-footer {
    max-width: none;
    padding: 0;
}

.b2c-trust-footer-strip {
    display: grid;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    min-width: 0;
}

.b2c-trust-footer-cols-1 {
    grid-template-columns: minmax(0, auto);
    justify-content: center;
    min-height: 0;
}

.b2c-trust-footer-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.b2c-trust-footer-cols-3 {
    grid-template-columns: minmax(140px, 0.8fr) minmax(260px, 1.6fr) minmax(140px, 0.8fr);
}

.b2c-trust-footer-column {
    min-width: 0;
}

.b2c-trust-footer-cols-1 .b2c-trust-footer-column {
    justify-self: center;
}

.b2c-trust-footer-cols-1 .b2c-trust-footer-icons {
    justify-content: center;
}

.b2c-trust-footer-cols-2 .b2c-trust-footer-column:first-child,
.b2c-trust-footer-cols-3 .b2c-trust-footer-column:first-child {
    justify-self: start;
}

.b2c-trust-footer-cols-2 .b2c-trust-footer-column:last-child,
.b2c-trust-footer-cols-3 .b2c-trust-footer-column:last-child {
    justify-self: end;
}

.b2c-trust-footer-cols-3 .b2c-trust-footer-column:nth-child(2) {
    justify-self: center;
}

.b2c-trust-footer-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
}

.b2c-trust-footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid #dfe6ef;
    border-radius: 999px;
    background: #ffffff;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.b2c-trust-footer-icon-whatsapp {
    color: #168f51;
}

.b2c-trust-footer-icon-email {
    color: #2563a6;
}

.b2c-trust-footer-icon-phone {
    color: #0f766e;
}

.b2c-trust-footer-icon-instagram {
    color: #c13584;
    border-color: rgba(193, 53, 132, 0.22);
    background: linear-gradient(135deg, rgba(245, 133, 41, 0.1), rgba(193, 53, 132, 0.1), rgba(88, 81, 219, 0.1));
}

.b2c-trust-footer-icon-android {
    color: #2e7d32;
}

.b2c-trust-footer-icon-link:hover,
.b2c-trust-footer-icon-link:focus-visible {
    border-color: currentColor;
    box-shadow: 0 0 0 3px rgba(15, 94, 156, 0.1);
    outline: 0;
}

.b2c-trust-footer-icon-link svg,
.b2c-trust-footer-hours svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.b2c-trust-footer-office-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #526173;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    min-width: 0;
}

.b2c-trust-footer-pill {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #dfe6ef;
    border-radius: 999px;
    background: #f9fbff;
    color: #526173;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.b2c-trust-footer-address-trigger {
    max-width: clamp(220px, 28vw, 520px);
}

.b2c-trust-footer-link {
    color: #0f5e9c;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.b2c-trust-footer-link:hover,
.b2c-trust-footer-link:focus-visible {
    border-color: #8fb8db;
    color: #0b4f85;
    box-shadow: 0 0 0 3px rgba(15, 94, 156, 0.1);
    outline: 0;
}

.b2c-trust-footer-hours {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 5px;
    color: #65738a;
    white-space: nowrap;
}

.b2c-trust-footer-hours svg {
    width: 17px;
    height: 17px;
}

.b2c-trust-footer-bank-zone {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.b2c-trust-footer-details {
    position: relative;
    display: inline-flex;
}

.b2c-trust-footer-details summary {
    list-style: none;
}

.b2c-trust-footer-details summary::-webkit-details-marker {
    display: none;
}

.b2c-trust-footer-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    z-index: 20;
    width: min(360px, calc(100vw - 36px));
    padding: 12px;
    background: #ffffff;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.16);
}

.b2c-trust-footer-office-panel {
    left: 50%;
    width: min(420px, calc(100vw - 36px));
    transform: translateX(-50%);
}

.b2c-trust-footer-bank-panel {
    right: 0;
}

.b2c-trust-footer-panel-title {
    display: block;
    margin-bottom: 8px;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.b2c-trust-footer-map {
    width: 100%;
    overflow: hidden;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #eef3f8;
}

.b2c-trust-footer-map iframe {
    display: block;
    width: 100%;
    height: 190px;
    border: 0;
}

.b2c-trust-footer-map-link {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
}

.b2c-trust-footer-bank-list {
    display: grid;
    gap: 7px;
}

.b2c-trust-footer-bank-row {
    display: grid;
    gap: 3px;
    padding: 8px 9px;
    background: #f9fbff;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
}

.b2c-trust-footer-bank-name,
.b2c-trust-footer-account-number,
.b2c-trust-footer-account-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.b2c-trust-footer-bank-name {
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.b2c-trust-footer-account-number {
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}

.b2c-trust-footer-account-name {
    color: #65738a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.b2b-header-identity {
    min-width: 0;
    text-align: center;
}

.b2b-header-identity strong,
.b2b-header-identity span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.b2b-header-identity strong {
    color: #172033;
    font-size: 18px;
    line-height: 1.2;
}

.b2b-header-identity span {
    margin-top: 3px;
    color: #65738a;
    font-size: 13px;
    line-height: 1.25;
}

.b2b-header-actions {
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.b2b-header-actions::-webkit-scrollbar {
    display: none;
}

.b2b-header-actions .active {
    border-color: #0f5e9c;
    background: #e8f1fb;
    color: #0b4f86;
}

.b2c-site-topbar .header-actions {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.b2c-site-topbar .header-actions::-webkit-scrollbar {
    display: none;
}

.b2c-traveler-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}

.b2c-traveler-details summary::-webkit-details-marker {
    display: none;
}

.b2c-traveler-summary-title {
    color: #162033;
    font-size: 18px;
    font-weight: 700;
}

.b2c-traveler-summary-action {
    color: #2d5b8a;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.b2c-traveler-hide-label,
.b2c-traveler-details[open] .b2c-traveler-show-label {
    display: none;
}

.b2c-traveler-details[open] .b2c-traveler-hide-label {
    display: inline;
}

.b2c-traveler-details-content {
    margin-top: 18px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 980px;
    margin: 32px auto;
    padding: 0 24px;
}

.catalog-dashboard {
    grid-template-columns: 1fr;
    max-width: 1320px;
}

.b2b-dashboard {
    grid-template-columns: 1fr;
    max-width: 1320px;
}

.b2b-marketing-dashboard {
    grid-template-columns: 1fr;
    max-width: 1200px;
}

.b2b-marketing-dashboard-modal {
    max-width: none;
    margin: 0;
    padding: 18px;
}

.b2b-marketing-modal-body {
    background: #f6f8fb;
}

.b2b-marketing-modal-heading h1 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2;
}

.detail-dashboard {
    grid-template-columns: 1fr;
    max-width: 1120px;
}

.supplier-dashboard {
    max-width: 1440px;
}

.match-dashboard {
    max-width: 1680px;
}

.import-dashboard {
    max-width: 1440px;
}

.user-dashboard {
    max-width: 1440px;
}

.group-dashboard,
.group-detail-dashboard {
    max-width: 1440px;
}

.panel {
    min-width: 0;
    padding: 24px;
}

.panel p {
    margin: 0;
    color: #526071;
}

.user-details {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px 16px;
    margin: 0;
}

.user-details dt {
    color: #65738a;
    font-weight: 700;
}

.user-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.toolbar-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.toolbar-panel .data-freshness {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 4px;
    color: #65738a;
    font-size: 13px;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.detail-hero h2 {
    margin-bottom: 8px;
    font-size: 26px;
}

.b2c-processing-hero {
    border-color: #9dbde0;
    background: #f8fbff;
}

.b2c-processing-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.b2c-processing-heading h2 {
    margin: 0;
}

.b2c-processing-spinner {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 3px solid #cfe0f3;
    border-top-color: #0f5e9c;
    border-radius: 50%;
    animation: b2c-processing-spin 0.9s linear infinite;
}

.b2c-processing-alert {
    border-color: #9dbde0;
    background: #edf6ff;
    color: #214f7a;
}

.b2c-processing-alert p,
.b2c-processing-hero p {
    margin: 8px 0 0;
}

@keyframes b2c-processing-spin {
    to {
        transform: rotate(360deg);
    }
}

.status-details,
.detail-grid {
    display: grid;
    margin: 0;
}

.status-details {
    min-width: 220px;
    grid-template-columns: 120px 1fr;
    gap: 8px 14px;
}

.detail-grid {
    grid-template-columns: 180px 1fr;
    gap: 10px 18px;
}

.status-details dt,
.detail-grid dt {
    color: #65738a;
    font-weight: 700;
}

.status-details dd,
.detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.b2b-booking-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
}

.b2b-booking-detail-grid dl {
    display: grid;
    grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
    gap: 8px 14px;
    margin: 0;
}

.b2b-booking-detail-grid dt {
    color: #65738a;
    font-weight: 700;
}

.b2b-booking-detail-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.b2b-booking-detail-notes {
    grid-column: 1 / -1;
}

.debug-details {
    margin-top: 18px;
}

.debug-details summary {
    color: #0f5e9c;
    cursor: pointer;
    font-weight: 700;
}

.debug-details pre {
    max-height: 420px;
    margin: 12px 0 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    background: #f8fafc;
    color: #172033;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    white-space: pre-wrap;
}

.placeholder-panel p {
    color: #65738a;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin-bottom: 6px;
}

.supplier-match-list {
    display: grid;
    gap: 16px;
}

.supplier-match-card,
.collateral-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.supplier-match-card-header,
.collateral-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.supplier-match-card-header strong {
    display: block;
    margin-top: 8px;
}

.collateral-list {
    display: grid;
    gap: 16px;
}

.collateral-section-heading {
    margin: 24px 0 12px;
}

.collateral-section-heading h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.collateral-card-group {
    border-left: 4px solid #2473c5;
}

.collateral-card-package {
    border-left: 4px solid #1f8a5b;
}

.collateral-card-archived {
    background: #f6f7f9;
    border-color: #cfd6df;
}

.scope-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-right: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.scope-group {
    background: #e8f1fb;
    color: #174f8f;
}

.scope-package {
    background: #e7f6ef;
    color: #166342;
}

.collateral-card h3,
.collateral-form h3 {
    margin: 8px 0 0;
    font-size: 18px;
}

.collateral-grid {
    grid-template-columns: 170px 1fr 170px 1fr;
}

.collateral-archived-grid {
    margin-bottom: 10px;
}

.collateral-archived-note {
    margin: 0;
    color: #5e6a78;
    font-weight: 700;
}

.collateral-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.management-collateral-body {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.management-collateral-details {
    min-width: 0;
}

.management-collateral-thumb {
    display: grid;
    place-items: center;
    width: 150px;
    min-height: 112px;
    overflow: hidden;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #eef3f8;
}

.management-collateral-thumb img {
    display: block;
    width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.collateral-action-button {
    min-width: 94px;
}

.internal-collateral-matrix {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.internal-collateral-tile {
    display: grid;
    grid-template-rows: auto minmax(150px, 1fr) auto;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.internal-collateral-tile h3 {
    min-height: 40px;
    margin: 0;
    color: #172033;
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.internal-collateral-thumb {
    display: grid;
    place-items: center;
    min-height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef3f8;
}

.internal-collateral-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: contain;
}

.internal-collateral-file-placeholder {
    display: grid;
    place-items: center;
    width: 72px;
    height: 88px;
    border: 1px solid #c9d5e2;
    border-radius: 6px;
    background: #ffffff;
    color: #526071;
    font-size: 14px;
    font-weight: 900;
}

.internal-collateral-pdf-placeholder {
    border-color: #efc4c4;
    color: #9b1c1c;
}

.internal-collateral-video-placeholder {
    border-color: #b8d4f0;
    color: #175a94;
}

.internal-collateral-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
    gap: 8px;
}

.group-collateral-management-card {
    display: block;
}

.group-collateral-management-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.group-collateral-management-header h3 {
    margin: 8px 0 0;
    font-size: 18px;
}

.group-collateral-management-body {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.group-collateral-management-content {
    min-width: 0;
}

.group-collateral-thumbnail {
    display: grid;
    place-items: center;
    width: 150px;
    min-height: 112px;
    overflow: hidden;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #eef3f8;
}

.group-collateral-thumbnail img {
    display: block;
    width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.group-collateral-thumbnail .internal-collateral-file-placeholder {
    width: 58px;
    height: 70px;
    font-size: 12px;
}

.icon-action-button {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    min-height: 34px;
    padding: 6px 8px;
    line-height: 1;
}

.icon-action-button.is-copied {
    border-color: #87b38d;
    background: #edf8ef;
    color: #256b31;
}

.detail-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.collateral-management-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.collateral-management-actions .inline-action-form {
    margin-top: 0;
}

.collateral-edit-panel {
    min-width: 0;
}

.collateral-edit-panel summary {
    display: inline-flex;
    list-style: none;
    cursor: pointer;
}

.collateral-edit-panel summary::-webkit-details-marker {
    display: none;
}

.collateral-edit-panel[open] {
    width: min(70vw, 520px);
}

.collateral-edit-form {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
}

.collateral-caption-block {
    min-width: 0;
    margin-top: 14px;
}

.collateral-caption-block strong {
    display: block;
    margin-bottom: 6px;
    color: #65738a;
}

.collateral-caption-text {
    min-width: 0;
    padding: 12px;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    background: #ffffff;
    color: #172033;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.copy-caption {
    min-height: 140px;
    background: #ffffff;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    white-space: pre-wrap;
}

.offer-copy-grid,
.caption-copy-list {
    display: grid;
    gap: 16px;
}

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

.caption-copy-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #d8e0ea;
}

.compact-section-heading {
    margin-bottom: 12px;
}

.compact-section-heading h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.offer-copy-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.offer-copy-card-official {
    border-color: #a8c7b6;
    background: #f6fbf8;
}

.offer-copy-card-fallback {
    border-color: #e4c77c;
    background: #fffaf0;
}

.offer-fallback-warning {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e0c06d;
    border-radius: 8px;
    background: #fffaf0;
    color: #5e4a15;
}

.offer-fallback-warning p {
    margin: 0;
}

.offer-fallback-warning p + p {
    margin-top: 4px;
}

.copy-card-title {
    margin: 4px 0 8px;
    color: #4b5870;
    font-size: 13px;
}

.copy-block-heading {
    display: flex;
    min-height: 44px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.copy-block-heading h3,
.copy-block-heading h4 {
    margin: 0;
    font-size: 17px;
}

.copy-textarea {
    width: 100%;
    max-width: 100%;
    min-height: 210px;
    background: #ffffff;
    color: #172033;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    white-space: pre-wrap;
}

.copy-textarea-large {
    min-height: 300px;
}

.variable-picker {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.variable-picker-heading {
    display: grid;
    gap: 2px;
}

.variable-picker-heading span {
    color: #172033;
    font-size: 13px;
    font-weight: 800;
}

.variable-picker-heading small {
    color: #65738a;
    font-size: 13px;
    font-weight: 400;
}

.variable-chip-list {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    gap: 8px;
}

.variable-chip {
    width: auto;
    max-width: 100%;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #b8c3d1;
    border-radius: 999px;
    background: #ffffff;
    color: #172033;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
    white-space: normal;
}

.variable-chip:hover,
.variable-chip:focus {
    border-color: #0f5e9c;
    background: #eef7ff;
    color: #174f8f;
}

.emoji-picker {
    margin-top: 10px;
}

.emoji-group-list {
    display: grid;
    gap: 10px;
}

.emoji-group {
    display: grid;
    gap: 6px;
}

.emoji-group-label {
    color: #65738a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.emoji-chip-list {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    gap: 6px;
}

.emoji-chip {
    width: 34px;
    min-height: 32px;
    padding: 4px;
    border: 1px solid #c5cfdc;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font-size: 18px;
    line-height: 1;
}

.emoji-chip:hover,
.emoji-chip:focus {
    border-color: #0f5e9c;
    background: #eef7ff;
}

.collateral-form {
    display: grid;
    gap: 14px;
    min-width: 0;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #d8e0ea;
}

.collateral-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.add-package-group-form {
    display: grid;
    gap: 14px;
}

.package-group-create-grid {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) minmax(150px, 1fr);
    gap: 14px;
}

.package-group-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.b2b-commercial-matrix {
    display: grid;
    grid-template-columns: minmax(150px, 0.85fr) repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #d8e0ea;
}

.b2b-commercial-corner,
.b2b-commercial-col-header,
.b2b-commercial-row-header,
.b2b-commercial-cell {
    min-width: 0;
    padding: 12px;
}

.b2b-commercial-corner,
.b2b-commercial-col-header,
.b2b-commercial-row-header {
    background: #f6f8fb;
}

.b2b-commercial-col-header,
.b2b-commercial-row-header {
    color: #263243;
    font-size: 13px;
    font-weight: 800;
}

.b2b-commercial-col-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.b2b-commercial-row-header {
    display: flex;
    align-items: center;
}

.b2b-commercial-cell {
    position: relative;
    display: grid;
    gap: 7px;
    background: #ffffff;
}

.b2b-commercial-cell span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    color: #526071;
    font-size: 12px;
    font-weight: 800;
}

.b2b-commercial-cell input {
    width: 100%;
    min-width: 0;
}

.b2b-commercial-checkbox-cell {
    align-items: center;
    justify-items: center;
}

.b2b-commercial-checkbox-cell input {
    width: 18px;
    height: 18px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 700;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.full-field {
    grid-column: 1 / -1;
}

.compact-match-details {
    min-width: 220px;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 6px 12px;
    margin: 0;
}

.compact-match-details dt {
    color: #65738a;
    font-weight: 700;
}

.compact-match-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.supplier-match-grid {
    grid-template-columns: 170px 1fr 170px 1fr;
}

.supplier-itinerary-details {
    margin-top: 16px;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px dashed #b8c3d1;
    border-radius: 8px;
    background: #f8fafc;
}

.compact-details {
    min-width: 220px;
    grid-template-columns: 56px 1fr;
}

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

.match-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.priority-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.summary-card {
    min-width: 0;
    min-height: 112px;
    padding: 20px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(23, 32, 51, 0.06);
}

.summary-card span {
    display: block;
    color: #65738a;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.summary-card strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
    line-height: 1;
}

.group-detail-summary .summary-card strong {
    font-size: 24px;
}

.filter-panel,
.table-panel {
    padding: 20px;
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr) minmax(180px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.dashboard-filter-form,
.priority-filter-form {
    grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr) minmax(180px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.match-filter-form {
    grid-template-columns: minmax(260px, 2fr) minmax(160px, 1fr) minmax(190px, 1fr) minmax(150px, 1fr) auto;
}

.group-filter-form {
    grid-template-columns: minmax(260px, 2fr) minmax(150px, 1fr) auto;
}

.b2b-filter-form {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(170px, 220px) auto;
}

.b2b-profile-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stacked-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 560px;
}

.stacked-form label {
    margin-bottom: -6px;
    color: #35445a;
    font-size: 13px;
    font-weight: 700;
}

.stacked-form .muted {
    margin-top: -4px;
}

.stacked-form .form-warning {
    margin: -4px 0 0;
    color: #8b1f1f;
    font-size: 13px;
    font-weight: 700;
}

.stacked-form button {
    justify-self: start;
}

.b2b-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 96px;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    background: #ffffff;
}

.b2b-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.filter-form label {
    display: block;
    margin-bottom: 6px;
    color: #35445a;
    font-size: 13px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.form-actions-inline {
    display: flex;
    align-items: end;
}

.filter-note {
    margin-top: 12px !important;
    color: #65738a;
    font-size: 13px;
}

.lookup-status,
.selected-customer-summary {
    margin-top: 12px !important;
    color: #526071;
    font-size: 13px;
    font-weight: 700;
}

.selected-customer-summary {
    padding: 10px 12px;
    border: 1px solid #c9d8ea;
    border-radius: 6px;
    background: #f4f9ff;
    color: #174f8f;
}

.customer-results {
    margin-top: 16px;
}

.view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.view-toggle .is-active {
    border-color: #0f5e9c;
    background: #eaf4fb;
    color: #0b4a7b;
}

.internal-dashboard-toolbar-panel {
    padding: 16px;
}

.internal-dashboard-toolbar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 18px;
}

.internal-dashboard-view-toggle {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.internal-dashboard-view-toggle .secondary-button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.internal-dashboard-filter-form {
    display: flex;
    flex: 1 1 620px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.internal-dashboard-filter-form > div {
    flex: 0 1 128px;
    min-width: 112px;
}

.internal-dashboard-filter-form .internal-filter-search {
    flex-basis: 190px;
}

.internal-dashboard-filter-form .internal-filter-month {
    flex-basis: 150px;
}

.internal-dashboard-filter-form .internal-filter-group {
    flex-basis: 190px;
}

.internal-dashboard-filter-form .internal-filter-priority {
    flex-basis: 132px;
}

.internal-dashboard-filter-form label {
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.1;
}

.internal-dashboard-filter-form input,
.internal-dashboard-filter-form select {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .internal-dashboard-toolbar {
        align-items: stretch;
    }

    .internal-dashboard-view-toggle,
    .internal-dashboard-filter-form {
        width: 100%;
    }

    .internal-dashboard-filter-form {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .internal-dashboard-filter-form > div,
    .internal-dashboard-filter-form .internal-filter-search,
    .internal-dashboard-filter-form .internal-filter-month,
    .internal-dashboard-filter-form .internal-filter-group,
    .internal-dashboard-filter-form .internal-filter-priority {
        flex: 1 1 100%;
    }
}

.internal-package-matrix {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.internal-package-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.internal-package-card-flyer {
    position: relative;
    height: 236px;
    border-radius: 0;
}

.internal-matrix-bottom-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.82));
}

.internal-matrix-bottom-overlay .internal-matrix-badge {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.internal-matrix-overlay-stats {
    min-width: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.internal-package-card-main,
.internal-matrix-meta,
.internal-card-actions {
    margin-right: 14px;
    margin-left: 14px;
}

.internal-package-card-main {
    display: grid;
    gap: 3px;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.internal-matrix-title-row {
    display: block;
    min-width: 0;
    color: #172033;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
}

.internal-matrix-title {
    display: inline;
}

.internal-package-card-main .link-button {
    display: inline;
    width: auto;
    max-width: none;
    font-size: inherit;
    font-weight: 900;
    line-height: inherit;
    overflow: visible;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
}

.internal-package-card-main .link-button:hover,
.internal-package-card-main .link-button:focus {
    color: #0f5e9c;
    text-decoration: underline;
}

.internal-card-date {
    color: #0b4f86;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.internal-card-meta-line {
    min-width: 0;
    margin: 0;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.internal-matrix-meta {
    display: grid;
    gap: 8px;
}

.internal-matrix-badge-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}

.internal-matrix-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #c9d5e2;
    border-radius: 999px;
    background: #f8fafc;
    color: #25364a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.internal-matrix-badge--class,
.internal-matrix-badge--source {
    width: 28px;
    padding-right: 0;
    padding-left: 0;
}

.internal-matrix-badge--class {
    border-color: #b9cbe0;
    background: #eef5fb;
    color: #0b4f86;
}

.internal-matrix-badge--priority {
    min-width: 86px;
    padding-right: 10px;
    padding-left: 10px;
    border-color: #d8c694;
    background: #fff8e6;
    color: #7a4b00;
}

.internal-matrix-badge--source {
    border-color: #b8d7c5;
    background: #edf8f1;
    color: #17643a;
}

.internal-matrix-meta-row {
    display: block;
    color: #172033;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
}

.internal-matrix-date,
.internal-matrix-price {
    display: inline;
    font-size: inherit;
    font-weight: 900;
    line-height: inherit;
    white-space: nowrap;
}

.internal-matrix-date {
    margin-left: 8px;
}

.internal-matrix-price {
    margin-left: 7px;
}

.internal-matrix-date {
    color: #172033;
}

.internal-matrix-price {
    color: #b42318;
}

.internal-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}

.internal-card-actions .compact-button {
    width: 100%;
    white-space: normal;
}

.internal-group-table {
    min-width: 1120px;
}

.bulk-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e3e9f0;
}

.bulk-action-bar strong {
    display: block;
    margin-bottom: 4px;
}

.bulk-action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.bulk-match-form {
    display: none;
}

.select-column {
    width: 44px;
    min-width: 44px;
    text-align: center;
}

.select-column input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 1220px;
    border-collapse: collapse;
}

.supplier-table {
    min-width: 1320px;
}

.match-table {
    min-width: 1930px;
}

.import-log-table {
    min-width: 1420px;
}

.user-table {
    min-width: 1180px;
}

.group-table {
    min-width: 1080px;
}

.group-departure-table {
    min-width: 1540px;
}

.priority-table {
    min-width: 1560px;
}

.b2b-schedule-table {
    min-width: 1120px;
}

.b2b-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.b2b-view-toggle .active {
    border-color: #0f5e9c;
    background: #e8f1fb;
    color: #0b4f86;
}

.b2b-schedule-groups {
    display: grid;
    gap: 14px;
}

.b2b-schedule-group {
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.b2b-schedule-group-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    cursor: pointer;
    list-style: none;
}

.b2b-schedule-group-header::-webkit-details-marker {
    display: none;
}

.b2b-schedule-group-toggle::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #b8c3d1;
    border-radius: 50%;
    background: #ffffff;
    color: #0b4f86;
    font-weight: 800;
    line-height: 1;
}

.b2b-schedule-group[open] .b2b-schedule-group-toggle::before {
    content: "-";
}

.b2b-schedule-group-title {
    min-width: 0;
    color: #172033;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.b2b-schedule-group-count {
    color: #526071;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.b2b-schedule-group-table {
    border-top: 1px solid #e3e9f0;
}

.b2b-schedule-matrix {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.b2b-schedule-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.b2b-schedule-card[hidden] {
    display: none;
}

.b2b-schedule-card-flyer {
    position: relative;
    height: 264px;
    background:
        linear-gradient(135deg, rgba(15, 94, 156, 0.13), rgba(31, 138, 91, 0.12)),
        #eef3f8;
    overflow: hidden;
}

a.b2b-schedule-card-flyer {
    display: block;
    color: inherit;
    text-decoration: none;
}

.b2b-schedule-card-flyer-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.b2b-schedule-card-placeholder {
    position: absolute;
    inset: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #9aa9ba;
    border-radius: 6px;
    color: #526071;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.b2b-schedule-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    padding: 8px;
    color: #ffffff;
}

.b2b-schedule-card-overlay span {
    display: inline-flex;
    width: 100%;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.68);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.b2b-schedule-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
}

.b2b-schedule-card-title {
    display: grid;
    gap: 4px;
    min-height: 48px;
}

.b2b-schedule-card-title .muted {
    display: block;
}

.b2c-package-title-link {
    color: inherit;
    text-decoration: none;
}

.b2c-package-title-link:hover,
.b2c-package-title-link:focus {
    color: #0f5e9c;
    text-decoration: underline;
}

.b2b-schedule-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.b2b-schedule-card-actions .compact-button {
    width: 100%;
    white-space: normal;
}

.b2c-schedule-card .b2b-schedule-card-overlay {
    padding: 9px;
}

.b2c-schedule-card .b2b-schedule-card-overlay span {
    min-height: 30px;
    padding: 5px 8px;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(0, 0, 0, 0.76);
    font-size: 15px;
    letter-spacing: 0;
}

.b2c-schedule-card .b2b-schedule-card-body {
    gap: 10px;
    padding: 11px;
}

.b2c-schedule-card .b2b-schedule-card-title {
    min-height: 0;
}

.b2c-schedule-card .b2b-schedule-card-actions {
    margin-top: 0;
}

.b2c-schedule-card .b2b-schedule-card-actions .compact-button {
    white-space: nowrap;
}

.b2c-view-toggle {
    align-items: center;
}

.b2c-listing-controls,
.b2c-listing-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.b2c-listing-filter-select {
    width: auto;
    min-width: 138px;
    min-height: 34px;
    padding: 6px 30px 6px 10px;
    font-size: 13px;
}

.b2c-listing-group-select {
    min-width: 178px;
}

.b2b-listing-controls,
.b2b-listing-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.b2b-listing-filter-select {
    width: auto;
    min-width: 138px;
    max-width: 230px;
    min-height: 34px;
    padding: 6px 30px 6px 10px;
    font-size: 13px;
}

.b2b-listing-group-select {
    min-width: 178px;
}

.b2c-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.b2c-table-actions .compact-button {
    white-space: nowrap;
}

.b2c-schedule-table {
    min-width: 760px;
}

.b2c-schedule-group-table {
    min-width: 820px;
}

.b2c-schedule-table td:first-child .muted {
    display: block;
    margin-top: 3px;
}

.b2b-schedule-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.b2b-marketing-panel {
    width: 100%;
    margin: 0 auto;
}

.b2b-marketing-table {
    width: 100%;
    min-width: 900px;
}

.b2b-marketing-table th,
.b2b-marketing-table td {
    vertical-align: top;
}

.b2b-marketing-table .action-cell {
    min-width: 260px;
}

.b2b-marketing-generate-form {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
}

.b2b-marketing-progress {
    display: grid;
    gap: 5px;
    width: min(220px, 100%);
}

.b2b-marketing-progress[hidden] {
    display: none;
}

.b2b-marketing-progress-text {
    color: #65738a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.b2b-marketing-progress-track {
    position: relative;
    display: block;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe6ef;
}

.b2b-marketing-progress-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f5e9c, #37a6d9);
    animation: b2b-marketing-progress 1s ease-in-out infinite;
}

@keyframes b2b-marketing-progress {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(320%);
    }
}

.has-b2b-modal {
    overflow: hidden;
}

.b2b-marketing-modal[hidden] {
    display: none;
}

.b2b-marketing-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(23, 32, 51, 0.55);
}

.b2b-marketing-modal-dialog {
    display: flex;
    flex-direction: column;
    width: min(1100px, 100%);
    max-height: 85vh;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(23, 32, 51, 0.34);
    overflow: hidden;
}

.b2b-itinerary-modal-dialog {
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: 85vh;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(23, 32, 51, 0.34);
    overflow: hidden;
}

.b2b-marketing-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid #d8e0ea;
    background: #ffffff;
}

.b2b-marketing-modal-frame {
    display: block;
    width: 100%;
    height: calc(85vh - 60px);
    border: 0;
    background: #f6f8fb;
}

.b2b-itinerary-modal-content {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 16px;
    overflow: auto;
}

.b2b-itinerary-modal-content .muted {
    margin: 0;
}

.b2b-itinerary-text {
    min-height: 360px;
}

.collateral-caption-modal-dialog {
    width: min(620px, 100%);
}

.collateral-caption-modal-text {
    max-height: 52vh;
    margin: 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #f8fafc;
    color: #172033;
    font: inherit;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.b2b-itinerary-unavailable {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #f6f8fb;
}

.b2c-detail-dashboard {
    max-width: 1180px;
}

.internal-booking-dashboard {
    max-width: 1180px;
}

.internal-booking-hero {
    align-items: center;
}

.internal-booking-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px !important;
}

.internal-booking-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #f8fafc;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.internal-credential-panel {
    padding: 16px;
}

.internal-credential-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #b9d3c5;
    border-radius: 8px;
    background: #f4fbf6;
}

.internal-credential-status.is-missing {
    border-color: #ead39a;
    background: #fffaf0;
}

.internal-credential-status h2 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 18px;
}

.internal-credential-status p {
    margin: 0;
    color: #526071;
    font-weight: 700;
}

.internal-booking-card {
    display: grid;
    gap: 18px;
}

.internal-booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.internal-booking-customer-grid {
    grid-template-columns: minmax(72px, 0.42fr) minmax(98px, 0.58fr) repeat(4, minmax(140px, 1fr));
    align-items: start;
}

.internal-booking-customer-grid .internal-booking-wide-field {
    grid-column: 3 / -1;
}

.internal-booking-customer-grid label {
    min-width: 0;
}

.internal-field-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 18px;
    min-width: 0;
    white-space: nowrap;
}

.internal-field-label .required-mark {
    display: inline;
    flex: 0 0 auto;
}

.internal-customer-country-field {
    grid-column: 1 / span 2;
}

.internal-customer-currency-field input[readonly] {
    color: #344054;
    background: #f4f6f8;
    cursor: default;
}

.internal-customer-currency-field,
.internal-customer-salutation-field {
    max-width: 120px;
}

.internal-booking-customer-grid input,
.internal-booking-customer-grid select {
    min-height: 40px;
}

.internal-booking-pax-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.internal-booking-room-grid {
    grid-template-columns: repeat(6, minmax(112px, 1fr));
}

.internal-pax-arrangement-grid,
.internal-room-composition-grid {
    gap: 12px;
}

.internal-pax-arrangement-grid label,
.internal-room-composition-grid label {
    min-height: 76px;
    padding: 10px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
}

.internal-pax-arrangement-grid input,
.internal-room-composition-grid input {
    min-height: 38px;
    padding: 7px 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
}

.internal-room-composition-heading h3 {
    margin: 4px 0 -4px;
    color: #172033;
    font-size: 15px;
}

.room-price-note {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.room-price-note.unavailable {
    color: #b42318;
}

.internal-estimate-breakdown {
    display: grid;
    gap: 0;
    padding: 10px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.72);
}

.internal-estimate-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid #e4e7ec;
    color: #475467;
    font-size: 13px;
}

.internal-estimate-line:last-child {
    border-bottom: 0;
}

.internal-estimate-line strong {
    flex: 0 0 auto;
    color: #172033;
    font-size: 14px;
}

.internal-estimate-summary,
.internal-estimate-total {
    color: #1d2939;
    font-weight: 800;
}

.internal-estimate-total strong {
    font-size: 18px;
}

.internal-booking-form-grid label,
.internal-traveler-card label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #35445a;
    font-size: 13px;
    font-weight: 800;
}

.internal-booking-wide-field {
    grid-column: 1 / -1;
}

.internal-traveler-panel {
    display: grid;
    gap: 18px;
}

.internal-traveler-list {
    display: grid;
    gap: 16px;
}

.internal-traveler-card {
    padding: 18px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.internal-traveler-card-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.internal-traveler-card-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 18px;
}

.internal-traveler-passport-block {
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f8fafc;
}

.internal-traveler-main-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.internal-traveler-passport-details {
    display: grid;
    gap: 12px;
}

.internal-traveler-passport-details summary {
    width: fit-content;
    color: #0f5e9c;
    font-weight: 800;
    cursor: pointer;
}

.internal-adjustments-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.58);
}

.internal-adjustments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.internal-adjustments-heading h3 {
    margin: 0 0 2px;
    color: #172033;
    font-size: 15px;
}

.internal-adjustments-heading p {
    margin: 0;
    color: #65738a;
    font-size: 12px;
    font-weight: 700;
}

.internal-adjustments-table-wrap {
    margin: 0;
}

.internal-adjustments-table {
    min-width: 780px;
    table-layout: fixed;
}

.internal-adjustments-table th,
.internal-adjustments-table td {
    padding: 6px;
}

.internal-adjustments-table th:nth-child(1),
.internal-adjustments-table td:nth-child(1) {
    width: 190px;
}

.internal-adjustments-table th:nth-child(2),
.internal-adjustments-table td:nth-child(2) {
    width: auto;
}

.internal-adjustments-table th:nth-child(3),
.internal-adjustments-table td:nth-child(3) {
    width: 108px;
}

.internal-adjustments-table th:nth-child(4),
.internal-adjustments-table td:nth-child(4) {
    width: 210px;
}

.internal-adjustments-table th:nth-child(5),
.internal-adjustments-table td:nth-child(5) {
    width: 88px;
}

.internal-adjustments-table th:nth-child(6),
.internal-adjustments-table td:nth-child(6) {
    width: 64px;
    text-align: center;
}

.internal-adjustments-table input,
.internal-adjustments-table select {
    width: 100%;
    min-height: 38px;
    padding: 7px 9px;
}

.internal-adjustment-quantity {
    max-width: 96px;
}

.internal-adjustment-currency[readonly] {
    color: #344054;
    background: #f4f6f8;
    cursor: default;
}

.internal-adjustment-error {
    min-height: 18px;
    margin: 0;
    color: #b42318;
    font-size: 12px;
    font-weight: 800;
}

.internal-submit-panel {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.internal-submit-panel .section-heading {
    margin-bottom: 0;
}

.internal-submit-panel #simulation-total {
    color: #172033;
    font-size: 24px;
    font-weight: 900;
}

.internal-submit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.internal-submit-actions .primary-button,
.internal-submit-actions .secondary-button {
    min-width: 150px;
}

.internal-submit-helper {
    flex: 1 1 100%;
    margin: 0;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.internal-submit-actions .booking-cta:disabled {
    border-color: #c5ccd6;
    background: #d8dee7;
    color: #667085;
    box-shadow: none;
    opacity: 1;
}

.b2c-package-detail {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.internal-package-hero {
    display: grid;
    grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.internal-package-hero-visual {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 94, 156, 0.12), rgba(31, 138, 91, 0.1)),
        #eef3f8;
}

.internal-package-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 620px;
    object-fit: contain;
    object-position: top center;
}

.internal-package-hero-placeholder {
    display: grid;
    place-content: center;
    min-height: 360px;
    padding: 24px;
    color: #526071;
    text-align: center;
}

.internal-package-hero-placeholder strong {
    color: #172033;
    font-size: 20px;
}

.internal-package-hero-placeholder span {
    max-width: 260px;
    margin-top: 6px;
    font-weight: 700;
    line-height: 1.45;
}

.internal-package-hero-copy {
    display: grid;
    align-content: center;
    gap: 16px;
    min-width: 0;
}

.internal-package-hero-copy h2 {
    margin: 0;
    color: #172033;
    font-size: 32px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.internal-package-hero-date {
    margin: 0;
    color: #344054;
    font-size: 17px;
    font-weight: 800;
}

.internal-package-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid #e3e9f0;
    border-bottom: 1px solid #e3e9f0;
}

.internal-package-summary-grid > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.internal-package-summary-grid dt {
    color: #65738a;
    font-size: 12px;
    font-weight: 800;
}

.internal-package-summary-grid dd {
    margin: 4px 0 0;
    color: #172033;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.internal-package-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.internal-package-compact {
    display: block;
}

.internal-package-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.internal-package-summary-main {
    display: block;
    min-width: 0;
}

.internal-package-summary-main h2 {
    margin: 0;
    color: #172033;
    font-size: 26px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.internal-package-summary-line {
    margin: 0;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.internal-package-summary-action {
    flex: 0 0 auto;
}

.internal-ops-itinerary {
    display: grid;
    gap: 10px;
}

.ops-itinerary-simple-day {
    padding: 12px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #ffffff;
}

.ops-itinerary-simple-day h5 {
    margin: 0 0 7px;
    color: #111827;
    font-size: 15px;
    line-height: 1.3;
}

.ops-itinerary-day-meta {
    margin: 0 0 7px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.ops-itinerary-simple-lines {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ops-itinerary-simple-lines li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    color: #374151;
    font-size: 13px;
    line-height: 1.4;
}

.ops-itinerary-simple-time {
    color: #6b7280;
    font-weight: 800;
}

.b2c-package-detail-flyer {
    position: relative;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 94, 156, 0.13), rgba(31, 138, 91, 0.12)),
        #eef3f8;
    overflow: hidden;
}

.b2c-package-detail-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
}

.b2c-package-detail-flyer .b2b-schedule-card-placeholder {
    position: static;
    min-height: 360px;
}

.b2c-package-detail-summary {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.b2c-package-detail-summary h2 {
    margin: 0;
    color: #172033;
    font-size: 28px;
    overflow-wrap: anywhere;
}

.b2c-package-detail-meta {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px 16px;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid #e3e9f0;
    border-bottom: 1px solid #e3e9f0;
}

.b2c-package-detail-meta dt {
    color: #65738a;
    font-weight: 800;
}

.b2c-package-detail-meta dd {
    margin: 0;
    color: #172033;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.b2c-package-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.b2c-destination-learning {
    display: grid;
    gap: 16px;
}

.b2c-destination-learning-header {
    display: grid;
    gap: 4px;
}

.b2c-destination-learning-header h3 {
    margin: 0;
    color: #172033;
    font-size: 22px;
    line-height: 1.25;
}

.b2c-destination-learning-embed {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 8px;
    background: #101828;
}

.b2c-destination-learning-preview {
    display: grid;
    gap: 12px;
}

.b2c-destination-learning-part-row {
    display: grid;
    grid-template-columns: minmax(112px, 1fr) minmax(0, 2fr) minmax(112px, 1fr);
    align-items: center;
    gap: 10px;
}

.b2c-destination-learning-current-part {
    margin: 0;
    color: #344054;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

.b2c-destination-learning-nav-button,
.b2c-destination-learning-part-button {
    min-height: 34px;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    font: 800 13px/1.2 Arial, sans-serif;
    cursor: pointer;
}

.b2c-destination-learning-nav-button {
    width: 112px;
    padding: 7px 10px;
    background: #f8fafc;
    text-align: center;
}

.b2c-destination-learning-nav-button.next {
    justify-self: end;
}

.b2c-destination-learning-nav-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.b2c-destination-learning-part-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b2c-destination-learning-part-button {
    display: flex;
    align-items: center;
    max-width: 100%;
    padding: 7px 10px;
}

.b2c-destination-learning-part-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.b2c-destination-learning-part-button[aria-selected="true"] {
    border-color: #0f5e9c;
    background: #eaf4ff;
    color: #0b4a7b;
}

.b2c-destination-learning iframe {
    display: block;
    width: 100%;
    height: 360px;
    min-height: 260px;
    border: 0;
    border-radius: inherit;
    background: #101828;
}

.b2c-destination-learning-locked {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 18px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(1px);
    color: #566176;
    pointer-events: auto;
}

.b2c-destination-learning-embed.is-locked .b2c-destination-learning-frame {
    filter: brightness(0.94);
}

.b2c-destination-learning-lock-card {
    display: grid;
    width: min(100%, 420px);
    max-width: 420px;
    justify-items: center;
    gap: 12px;
    padding: 24px 28px;
    border: 1px solid #d8e1ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(16, 24, 40, 0.16);
    text-align: center;
}

.b2c-destination-learning-lock-icon {
    width: 34px;
    height: 34px;
    fill: #475467;
}

.b2c-destination-learning-lock-card p {
    margin: 0;
    color: #3d4658;
    font-weight: 700;
}

.b2c-destination-learning-lock-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 520px) {
    .b2c-destination-learning-part-row {
        grid-template-columns: 96px minmax(0, 1fr) 96px;
        gap: 6px;
    }

    .b2c-destination-learning-current-part {
        font-size: 14px;
    }

    .b2c-destination-learning-nav-button {
        width: 96px;
        padding: 7px 6px;
        font-size: 12px;
    }

    .b2c-destination-learning-part-list {
        display: grid;
        grid-template-columns: 1fr;
    }

    .b2c-destination-learning-part-button {
        width: 100%;
        justify-content: flex-start;
    }
}

.b2c-itinerary-content,
.b2c-itinerary-unavailable {
    margin: 0;
    padding: 16px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #f6f8fb;
    color: #172033;
    white-space: normal;
    overflow-wrap: anywhere;
}

.b2c-itinerary-content {
    display: block;
    overflow: auto;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.b2c-itinerary-proposal {
    display: grid;
    gap: 18px;
    color: #172033;
}

.b2c-itinerary-title {
    padding-bottom: 16px;
    border-bottom: 1px solid #e3e9f0;
}

.b2c-itinerary-title h3 {
    margin: 0;
    color: #172033;
    font-size: 25px;
    line-height: 1.25;
}

.b2c-itinerary-intro {
    display: grid;
    gap: 8px;
    color: #526071;
}

.b2c-itinerary-intro p,
.b2c-itinerary-day-body p {
    margin: 0;
}

.b2c-itinerary-days {
    display: grid;
    gap: 14px;
}

.b2c-itinerary-day {
    padding: 18px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.b2c-itinerary-day-header {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.b2c-itinerary-day-number {
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 8px 6px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #ffffff;
    color: #65738a;
    line-height: 1;
}

.b2c-itinerary-day-number span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.b2c-itinerary-day-number strong {
    color: #0f5e9c;
    font-size: 24px;
}

.b2c-itinerary-day-heading {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.b2c-itinerary-day-heading h4 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.b2c-itinerary-meals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.b2c-meal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #ffffff;
    color: #65738a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.b2c-meal-badge::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.b2c-meal-badge.is-included {
    border-color: #b9d3c5;
    background: #eef8f0;
    color: #256233;
}

.b2c-meal-badge.is-included::before {
    content: "\2713";
    background: #d8f0df;
    color: #166342;
}

.b2c-meal-badge.is-unavailable {
    border-color: #efc0c0;
    background: #fff2f2;
    color: #8b1f1f;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.b2c-meal-badge.is-unavailable::before {
    content: "X";
    background: #f8d7d7;
    color: #8b1f1f;
    text-decoration: none;
}

.b2c-itinerary-day-body {
    display: grid;
    gap: 10px;
    color: #344054;
}

.b2c-itinerary-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 20px;
}

.b2c-itinerary-list li {
    padding-left: 2px;
}

.b2c-itinerary-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.b2c-itinerary-proposal + .b2c-itinerary-info-grid {
    margin-top: 14px;
}

.b2c-itinerary-info-card {
    padding: 18px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.b2c-itinerary-info-card-includes {
    border-color: #b9d3c5;
    background: #f7fcf8;
}

.b2c-itinerary-info-card-excludes {
    border-color: #efc0c0;
    background: #fffafa;
}

.b2c-itinerary-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.b2c-itinerary-info-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 900;
    line-height: 1;
}

.b2c-itinerary-info-card-includes .b2c-itinerary-info-header span {
    background: #d8f0df;
    color: #166342;
}

.b2c-itinerary-info-card-includes .b2c-itinerary-info-header span::before {
    content: "\2713";
}

.b2c-itinerary-info-card-excludes .b2c-itinerary-info-header span {
    background: #f8d7d7;
    color: #8b1f1f;
}

.b2c-itinerary-info-card-excludes .b2c-itinerary-info-header span::before {
    content: "X";
}

.b2c-itinerary-info-header h4 {
    margin: 0;
    color: #172033;
    font-size: 18px;
}

.b2c-itinerary-info-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b2c-itinerary-info-list li {
    position: relative;
    padding-left: 24px;
    color: #344054;
}

.b2c-itinerary-info-list li::before {
    position: absolute;
    left: 0;
    top: 1px;
    font-weight: 900;
}

.b2c-itinerary-info-card-includes .b2c-itinerary-info-list li::before {
    content: "\2713";
    color: #166342;
}

.b2c-itinerary-info-card-excludes .b2c-itinerary-info-list li::before {
    content: "X";
    color: #8b1f1f;
}

.b2c-booking-flow {
    display: grid;
    gap: 18px;
    overflow: hidden;
}

.b2c-booking-flow-header {
    display: grid;
    gap: 5px;
    max-width: 720px;
}

.b2c-booking-flow-header h3 {
    margin: 0;
    color: #172033;
    font-size: 24px;
    line-height: 1.25;
}

.b2c-booking-flow-header p:last-child {
    margin: 0;
    color: #65738a;
    font-weight: 600;
}

.b2c-booking-flow-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b2c-booking-flow-step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 92px;
    padding: 14px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.b2c-booking-flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    z-index: 1;
    width: 18px;
    height: 2px;
    background: #c7d4e2;
}

.b2c-booking-flow-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: calc(50% - 4px);
    right: -16px;
    z-index: 2;
    width: 8px;
    height: 8px;
    border-top: 2px solid #c7d4e2;
    border-right: 2px solid #c7d4e2;
    transform: rotate(45deg);
}

.b2c-booking-flow-step:nth-child(6n)::before,
.b2c-booking-flow-step:nth-child(6n)::after {
    content: none;
}

.b2c-booking-flow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f5e9c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.b2c-booking-flow-marker {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    opacity: .85;
}

.b2c-booking-flow-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding-right: 14px;
}

.b2c-booking-flow-copy strong {
    color: #172033;
    font-size: 14px;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.b2c-booking-flow-copy small {
    color: #65738a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.b2c-booking-flow-step-start,
.b2c-booking-flow-step-action {
    border-color: #b7d7f2;
    background: #f4f9fe;
    color: #0f5e9c;
}

.b2c-booking-flow-step-payment {
    border-color: #b7d7f2;
    background: #f0f7ff;
    color: #0b4a7b;
}

.b2c-booking-flow-step-process {
    border-color: #ead39a;
    background: #fffaf0;
    color: #a15c00;
}

.b2c-booking-flow-step-readiness {
    border-color: #d7c8f4;
    background: #f8f5ff;
    color: #6840a6;
}

.b2c-booking-flow-step-travel {
    border-color: #b9d3c5;
    background: #f4fbf6;
    color: #1f7a48;
}

.b2c-booking-flow-step-start .b2c-booking-flow-badge,
.b2c-booking-flow-step-action .b2c-booking-flow-badge,
.b2c-booking-flow-step-payment .b2c-booking-flow-badge {
    background: #0f5e9c;
}

.b2c-booking-flow-step-process .b2c-booking-flow-badge {
    background: #b86b00;
}

.b2c-booking-flow-step-readiness .b2c-booking-flow-badge {
    background: #6840a6;
}

.b2c-booking-flow-step-travel .b2c-booking-flow-badge {
    background: #1f7a48;
}

@media (max-width: 700px) {
    .b2c-booking-flow {
        gap: 16px;
    }

    .b2c-booking-flow-header h3 {
        font-size: 21px;
    }

    .b2c-booking-flow-steps {
        position: relative;
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 14px;
    }

    .b2c-booking-flow-steps::before {
        content: "";
        position: absolute;
        top: 12px;
        bottom: 12px;
        left: 15px;
        width: 2px;
        background: #c7d4e2;
    }

    .b2c-booking-flow-step {
        min-height: 0;
        margin-left: 12px;
        padding: 13px;
    }

    .b2c-booking-flow-step:not(:last-child)::before,
    .b2c-booking-flow-step:not(:last-child)::after {
        content: none;
    }
}

@media (min-width: 701px) and (max-width: 980px) {
    .b2c-booking-flow-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .b2c-booking-flow-step:nth-child(3n)::before,
    .b2c-booking-flow-step:nth-child(3n)::after {
        content: none;
    }
}

.b2c-detail-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.b2c-detail-bottom-cta h2 {
    margin: 0;
}

.b2c-not-found {
    display: grid;
    gap: 12px;
}

.b2b-user-table {
    min-width: 1900px;
}

.passenger-manifest-table {
    min-width: 1680px;
}

.guest-manifest-table {
    min-width: 1180px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e3e9f0;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
    color: #526071;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

td {
    font-size: 14px;
    overflow-wrap: anywhere;
}

td strong,
.muted {
    display: block;
}

.muted {
    color: #65738a;
    font-size: 12px;
}

.empty-cell {
    padding: 32px 10px;
    color: #65738a;
    text-align: center;
}

.passport-upload-cell {
    display: grid;
    gap: 12px;
    min-width: 310px;
}

.passport-document-summary {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 0;
}

.passport-thumb-button,
.passport-thumb,
.passport-file-badge {
    width: 72px;
    height: 54px;
}

.passport-thumb-button {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.passport-thumb {
    display: block;
    object-fit: cover;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    background: #f8fafc;
}

.passport-document-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 54px;
    border: 1px solid #c9d8ea;
    border-radius: 6px;
    background: #f8fafc;
    color: #1f4b7a;
    text-decoration: none;
}

.passport-document-link .passport-thumb {
    border: 0;
}

.passport-icon,
.passport-icon-fallback {
    display: inline-flex;
    width: 28px;
    height: 28px;
}

.passport-thumb[hidden],
.passport-icon-fallback[hidden] {
    display: none;
}

.passport-icon {
    fill: currentColor;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.passport-file-badge {
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #c9d8ea;
    border-radius: 6px;
    appearance: none;
    background: #f4f9ff;
    color: #174f8f;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.passport-empty {
    margin: 0;
}

.passport-upload-form {
    display: grid;
    gap: 8px;
}

.passport-upload-form label {
    display: grid;
    gap: 5px;
    color: #35445a;
    font-size: 12px;
    font-weight: 700;
}

.passport-upload-form input[type="file"] {
    max-width: 280px;
    font-size: 12px;
}

.passport-upload-form button {
    justify-self: start;
}

.guest-primary-row td {
    vertical-align: middle;
}

.guest-primary-row select,
.guest-primary-row input {
    min-width: 0;
    margin-bottom: 6px;
}

.guest-primary-row select:last-child,
.guest-primary-row input:last-child {
    margin-bottom: 0;
}

.guest-detail-row td {
    background: #fbfcfe;
}

.b2b-guest-list {
    display: grid;
    gap: 16px;
}

.b2b-guest-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #fbfcfe;
}

.b2b-guest-card h3 {
    margin: 0;
    color: #1e2b3c;
    font-size: 16px;
}

.b2b-guest-card .guest-passport-actions {
    min-width: 0;
}

.guest-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
}

.guest-detail-grid label,
.passport-file-control {
    display: grid;
    gap: 5px;
    color: #35445a;
    font-size: 12px;
    font-weight: 700;
}

.guest-detail-grid input,
.guest-detail-grid select {
    width: 100%;
}

.guest-passport-actions {
    display: grid;
    gap: 7px;
    min-width: 220px;
}

.passport-upload-card {
    align-content: start;
    padding: 12px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fafc;
}

.guest-passport-actions .secondary-button {
    justify-self: start;
}

.guest-passport-actions [hidden] {
    display: none !important;
}

.passport-extraction-status {
    display: grid;
    gap: 3px;
    font-size: 12px;
}

.passport-file-input {
    max-width: 220px;
    font-size: 12px;
}

.passport-file-control input[type="file"] {
    max-width: 220px;
    font-size: 12px;
}

.passport-upload-progress {
    width: 100%;
    max-width: 260px;
}

.manifest-data-list {
    display: grid;
    grid-template-columns: 150px minmax(160px, 1fr);
    gap: 4px 10px;
    min-width: 360px;
    margin: 0;
}

.manifest-data-list dt {
    color: #65738a;
    font-size: 12px;
    font-weight: 700;
}

.manifest-data-list dd {
    margin: 0;
    color: #172033;
    font-size: 12px;
}

.notice {
    padding: 12px 16px;
    border: 1px solid #aac7df;
    border-radius: 8px;
    background: #eef7ff;
    color: #254762;
    font-weight: 700;
}

.notice h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.notice p {
    margin: 8px 0;
}

.notice-success {
    border-color: #9bc4a6;
    background: #eef8f0;
    color: #256233;
}

.notice-danger {
    border-color: #d8a2a2;
    background: #fff2f2;
    color: #8b1f1f;
}

.notice-warning {
    border-color: #dfb45f;
    background: #fff7e6;
    color: #6f4a05;
}

.booking-number {
    font-size: 20px;
}

.b2c-booking-number-processing {
    color: #b42318;
    font-weight: 700;
}

.b2c-booking-number-failed {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.compact-detail-grid {
    margin-top: 12px;
    grid-template-columns: 170px 1fr;
    font-weight: 400;
}

.inline-action-form {
    margin-top: 14px;
}

.resolve-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.resolve-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(111, 74, 5, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.resolve-form h3 {
    margin: 0;
    font-size: 16px;
}

.resolve-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.resolve-form textarea {
    resize: vertical;
}

.danger-button {
    border-color: #d8a2a2;
    color: #8b1f1f;
}

.payload-summary {
    min-width: 260px;
    max-width: 420px;
}

.auth-message {
    margin-top: 18px;
}

.muted-note {
    margin-top: 6px !important;
    color: #65738a !important;
    font-size: 13px;
}

.bulk-confirm-dialog {
    width: min(720px, calc(100vw - 28px));
    max-height: min(720px, calc(100vh - 28px));
    padding: 0;
    border: 1px solid #b8c3d1;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(23, 32, 51, 0.28);
}

.bulk-confirm-dialog::backdrop {
    background: rgba(23, 32, 51, 0.48);
}

.passport-preview-dialog {
    width: min(90vw, 520px);
    max-height: 80vh;
    padding: 0;
    border: 1px solid #b8c3d1;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(23, 32, 51, 0.28);
}

.passport-preview-dialog::backdrop {
    background: rgba(23, 32, 51, 0.55);
}

.passport-preview-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 80vh;
}

.passport-preview-header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #d8e0ea;
}

.passport-preview-header h2 {
    margin: 0;
    font-size: 18px;
}

.passport-preview-body {
    max-height: calc(80vh - 58px);
    overflow: auto;
    background: #f8fafc;
}

.passport-preview-image {
    display: block;
    width: 100%;
    height: auto;
}

.passport-preview-frame {
    display: block;
    width: 100%;
    min-height: 70vh;
    border: 0;
    background: #fff;
}

.bulk-confirm-content {
    padding: 22px;
}

.bulk-confirm-content h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

.bulk-confirm-list {
    max-height: 300px;
    margin: 14px 0;
    padding-left: 24px;
    overflow-y: auto;
}

.bulk-confirm-list li {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.bulk-confirm-warning {
    padding: 12px;
    border: 1px solid #dfc27f;
    border-radius: 6px;
    background: #fff8e6;
    color: #6b520f;
    font-weight: 700;
}

.bulk-confirm-proceed {
    margin-top: 12px;
    font-weight: 700;
}

.bulk-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.warning-panel {
    border-color: #e0c06d;
    background: #fffaf0;
}

.warning-list {
    margin: 0;
    padding-left: 20px;
    color: #5e4a15;
}

.warning-list li + li {
    margin-top: 6px;
}

.import-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.import-action-form button {
    width: 100%;
}

.user-form-grid,
.user-edit-form {
    display: grid;
    gap: 14px;
}

.user-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.form-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}

.user-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.user-card {
    padding: 18px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.user-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.user-card-heading h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.user-card-heading p {
    overflow-wrap: anywhere;
}

.password-reset-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #d8e0ea;
}

button:disabled {
    background: #b8c3d1;
    color: #526071;
    cursor: not-allowed;
}

.command-output-panel h3 {
    margin: 18px 0 8px;
    font-size: 16px;
}

.command-output {
    max-height: 360px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    background: #101828;
    color: #f8fafc;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    white-space: pre-wrap;
}

.status-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    background: #f8fafc;
    color: #35445a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.b2c-dashboard .table-panel .status-pill,
.b2b-dashboard .table-panel .status-pill,
.catalog-dashboard .table-panel .status-pill {
    min-width: 138px;
    justify-content: center;
}

.table-sort-link {
    color: inherit;
    text-decoration: none;
}

.table-sort-link:hover {
    text-decoration: underline;
}

.status-confirmed {
    border-color: #9bc4a6;
    background: #eef8f0;
    color: #256233;
}

.status-rejected {
    border-color: #d8a2a2;
    background: #fff2f2;
    color: #8b1f1f;
}

.status-ignored {
    border-color: #cfd8e3;
    background: #f1f3f6;
    color: #526071;
}

.status-active {
    border-color: #9bc4a6;
    background: #eef8f0;
    color: #256233;
}

.status-archived {
    border-color: #cfd8e3;
    background: #f1f3f6;
    color: #526071;
}

.status-booking-success {
    border-color: #9bc4a6;
    background: #eef8f0;
    color: #256233;
}

.status-booking-failed {
    border-color: #d8a2a2;
    background: #fff2f2;
    color: #8b1f1f;
}

.status-booking-review {
    border-color: #dfb45f;
    background: #fff7e6;
    color: #6f4a05;
}

.status-booking-partial {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.status-booking-queued {
    border-color: #c7d1dd;
    background: #f1f5f9;
    color: #435166;
}

.status-booking-running {
    border-color: #9dbde0;
    background: #edf6ff;
    color: #214f7a;
}

.status-booking-default {
    border-color: #cfd8e3;
    background: #f8fafc;
    color: #35445a;
}

.source-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    white-space: nowrap;
    padding: 4px 10px;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    background: #f8fafc;
    color: #35445a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.source-touress {
    border-color: #b8c3d1;
    background: #f8fafc;
    color: #35445a;
}

.source-supplier-confirmed {
    border-color: #9bc4a6;
    background: #eef8f0;
    color: #256233;
}

.source-supplier-unknown {
    border-color: #d7bf78;
    background: #fff8df;
    color: #715312;
}

.source-review {
    border-color: #d8a2a2;
    background: #fff2f2;
    color: #8b1f1f;
}

.priority-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    white-space: nowrap;
    padding: 4px 10px;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    background: #f8fafc;
    color: #35445a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.priority-push-sale {
    border-color: #d5a24f;
    background: #fff3d7;
    color: #68410b;
}

.priority-almost-closing {
    border-color: #d8a2a2;
    background: #fff2f2;
    color: #8b1f1f;
}

.priority-open {
    border-color: #9bc4a6;
    background: #eef8f0;
    color: #256233;
}

.priority-closed {
    border-color: #cfd8e3;
    background: #f1f3f6;
    color: #526071;
}

.priority-review,
.priority-unknown {
    border-color: #b8b0d8;
    background: #f4f0ff;
    color: #4a337e;
}

.table-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quality-heading {
    align-items: center;
}

.quality-summary {
    min-width: 150px;
    display: grid;
    justify-items: end;
    gap: 8px;
}

.quality-summary strong,
.quality-score {
    color: #172033;
    font-weight: 800;
}

.quality-summary strong {
    font-size: 34px;
    line-height: 1;
}

.quality-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    white-space: nowrap;
    padding: 4px 10px;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    background: #f8fafc;
    color: #35445a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.quality-ready {
    border-color: #9bc4a6;
    background: #eef8f0;
    color: #256233;
}

.quality-needs_review {
    border-color: #d7bf78;
    background: #fff8df;
    color: #715312;
}

.quality-incomplete {
    border-color: #d8a2a2;
    background: #fff2f2;
    color: #8b1f1f;
}

.quality-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.quality-checklist li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fbfcfe;
}

.quality-checklist strong {
    color: #526071;
    font-size: 12px;
    text-transform: uppercase;
}

.quality-source {
    display: block;
    margin-top: 3px;
    color: #526071;
    font-size: 12px;
    line-height: 1.3;
}

.quality-checkmark {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f3f6;
    color: #526071;
    font-weight: 800;
}

.quality-checklist .is-complete .quality-checkmark {
    background: #eef8f0;
    color: #256233;
}

.quality-checklist .is-missing .quality-checkmark {
    background: #fff2f2;
    color: #8b1f1f;
}

.match-actions {
    display: flex;
    min-width: 170px;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-panel {
    padding: 20px;
}

.calendar-heading,
.calendar-month-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-heading {
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-heading p {
    margin: 0;
    color: #65738a;
}

.calendar-month-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.calendar-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(128px, 1fr));
    min-width: 896px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    overflow: hidden;
    background: #d8e0ea;
    gap: 1px;
}

.calendar-weekday,
.calendar-day {
    background: #ffffff;
}

.calendar-weekday {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: #526071;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 132px;
    padding: 8px;
}

.calendar-day.is-outside-month {
    background: #f8fafc;
}

.calendar-day-number {
    margin-bottom: 6px;
    color: #35445a;
    font-size: 12px;
    font-weight: 800;
}

.is-outside-month .calendar-day-number {
    color: #9aa6b5;
}

.calendar-event-list {
    display: grid;
    gap: 5px;
}

.calendar-event {
    display: grid;
    gap: 3px;
    padding: 6px 7px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #f8fafc;
    color: #172033;
    text-decoration: none;
}

.calendar-event:hover,
.calendar-event:focus {
    outline: 2px solid rgba(23, 32, 51, 0.22);
    outline-offset: 1px;
}

.calendar-event.is-selected {
    box-shadow: inset 0 0 0 2px currentColor;
}

.calendar-event.priority-push-sale {
    border-color: #d5a24f;
    background: #fff3d7;
    color: #68410b;
}

.calendar-event.priority-almost-closing {
    border-color: #d8a2a2;
    background: #fff2f2;
    color: #8b1f1f;
}

.calendar-event.priority-open {
    border-color: #9bc4a6;
    background: #eef8f0;
    color: #256233;
}

.calendar-event.priority-closed {
    border-color: #cfd8e3;
    background: #f1f3f6;
    color: #526071;
}

.calendar-event.priority-review,
.calendar-event.priority-unknown {
    border-color: #b8b0d8;
    background: #f4f0ff;
    color: #4a337e;
}

.calendar-event-main,
.calendar-event-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.calendar-event-main {
    justify-content: space-between;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.calendar-event-main strong,
.calendar-event-main span,
.calendar-event-meta,
.calendar-event-classes {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-meta {
    color: inherit;
    font-size: 11px;
    opacity: 0.86;
}

.calendar-event-classes {
    display: block;
    color: inherit;
    font-size: 10px;
    line-height: 1.2;
    opacity: 0.68;
}

.calendar-more-count {
    display: block;
    min-height: 30px;
    padding: 6px 7px;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    background: #ffffff;
    color: #526071;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.calendar-more-count:hover,
.calendar-more-count:focus,
.calendar-more-count.is-selected {
    border-color: #95a4b8;
    color: #172033;
    outline: 2px solid rgba(23, 32, 51, 0.18);
    outline-offset: 1px;
}

.calendar-date-panel,
.calendar-detail {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #d8e0ea;
}

#calendar-detail {
    scroll-margin-top: 16px;
}

.calendar-date-list {
    display: grid;
    gap: 8px;
}

.calendar-date-row {
    display: grid;
    grid-template-columns: minmax(44px, 0.35fr) minmax(180px, 1.6fr) minmax(94px, 0.8fr) minmax(70px, 0.55fr) minmax(70px, 0.55fr) minmax(90px, 0.7fr) minmax(160px, 1.2fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #d8e0ea;
    border-left-width: 5px;
    border-radius: 8px;
    background: #ffffff;
}

.calendar-date-row.priority-push-sale {
    border-left-color: #d5a24f;
}

.calendar-date-row.priority-almost-closing {
    border-left-color: #d8a2a2;
}

.calendar-date-row.priority-open {
    border-left-color: #9bc4a6;
}

.calendar-date-row.priority-closed {
    border-left-color: #cfd8e3;
}

.calendar-date-row.priority-review,
.calendar-date-row.priority-unknown {
    border-left-color: #b8b0d8;
}

.calendar-date-abbr {
    color: #172033;
    font-size: 14px;
    font-weight: 900;
}

.calendar-date-name {
    min-width: 0;
    color: #172033;
    font-weight: 800;
}

.calendar-date-metric,
.calendar-date-classes {
    color: #526071;
    font-size: 12px;
    font-weight: 800;
}

.calendar-date-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.calendar-class-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-class-links .secondary-button {
    gap: 6px;
}

.calendar-class-itinerary-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #c9d5e2;
    border-radius: 6px;
    background: #ffffff;
    text-decoration: none;
}

.calendar-class-itinerary-link span {
    color: #65738a;
    font-size: 11px;
    font-weight: 700;
}

.calendar-class-price {
    color: #65738a;
    font-size: 11px;
    font-weight: 700;
}

.inline-action-form {
    margin: 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    color: #526071;
}

.pagination div {
    display: flex;
    gap: 10px;
}

@media (max-width: 900px) {
    .internal-package-hero {
        grid-template-columns: 1fr;
    }

    .internal-package-hero-copy h2 {
        font-size: 26px;
    }

    .internal-package-summary-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .internal-package-summary-action,
    .internal-package-summary-action .booking-cta {
        width: 100%;
    }

    .internal-package-summary-grid,
    .internal-collateral-matrix {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-left: 24px;
        padding-right: 24px;
    }

    .b2c-site-topbar {
        align-items: center;
        flex-wrap: nowrap;
    }

    .internal-site-topbar {
        flex-wrap: nowrap;
    }

    .internal-header-freshness {
        display: none;
    }

    .b2b-site-topbar {
        grid-template-columns: auto minmax(180px, 1fr);
    }

    .b2b-site-topbar .b2b-header-actions {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .b2c-site-topbar .header-actions {
        justify-content: flex-end;
    }

    .b2c-trust-footer {
        padding-right: 24px;
        padding-left: 24px;
    }

    .b2c-trust-footer-strip {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .b2c-trust-footer-office-info {
        grid-column: 1;
        order: 1;
        flex-wrap: wrap;
    }

    .b2c-trust-footer-icons {
        grid-column: 1;
        order: 2;
        justify-content: center;
    }

    .b2c-trust-footer-bank-zone {
        grid-column: 1;
        order: 3;
        justify-content: center;
    }

    .dashboard {
        grid-template-columns: 1fr;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .summary-grid,
    .match-summary-grid,
    .priority-summary-grid,
    .import-action-grid,
    .user-card-grid,
    .offer-copy-grid,
    .quality-checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-form,
    .match-filter-form,
    .dashboard-filter-form,
    .priority-filter-form,
    .group-filter-form,
    .b2b-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .internal-booking-form-grid,
    .internal-booking-pax-grid,
    .internal-booking-room-grid,
    .internal-traveler-main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .internal-booking-customer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .internal-booking-customer-grid .internal-booking-wide-field {
        grid-column: 1 / -1;
    }

    .internal-customer-country-field {
        grid-column: 1 / -1;
    }

    .internal-customer-currency-field,
    .internal-customer-salutation-field {
        max-width: none;
    }

    .internal-traveler-card-body {
        grid-template-columns: 1fr;
    }

    .filter-actions,
    .form-actions {
        align-self: end;
        flex-wrap: wrap;
    }

    .collateral-grid,
    .supplier-match-grid {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .b2b-schedule-matrix {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .internal-package-matrix {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-hero,
    .toolbar-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .b2c-package-detail {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {
    .internal-package-summary-grid,
    .internal-collateral-matrix {
        grid-template-columns: 1fr;
    }

    .internal-package-hero-visual,
    .internal-package-hero-placeholder {
        min-height: 280px;
    }

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

    .b2b-view-toggle,
    .b2b-schedule-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
        width: 100%;
    }

    .b2b-schedule-group-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .b2b-schedule-group-count {
        grid-column: 2;
    }

    .b2c-table-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .b2c-table-actions .compact-button {
        width: 100%;
        white-space: normal;
    }

    .b2b-schedule-matrix {
        grid-template-columns: 1fr;
    }

    .internal-package-matrix,
    .internal-card-actions {
        grid-template-columns: 1fr;
    }

    .b2c-trust-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .b2c-trust-footer-inner {
        padding: 9px;
    }

    .b2c-trust-footer-pill {
        min-height: 30px;
        padding: 5px 8px;
        font-size: 13px;
    }

    .b2c-trust-footer-icon-link {
        width: 36px;
        height: 36px;
    }

    .b2c-trust-footer-office-info {
        font-size: 13px;
    }

    .b2c-trust-footer-details {
        width: 100%;
    }

    .b2c-trust-footer-details summary {
        width: 100%;
        justify-content: center;
    }

    .b2c-trust-footer-address-trigger {
        max-width: 100%;
    }

    .b2c-trust-footer-panel,
    .b2c-trust-footer-bank-panel {
        right: auto;
        left: 0;
        width: 100%;
        transform: none;
    }

    .b2b-marketing-modal {
        align-items: stretch;
        padding: 10px;
    }

    .b2b-marketing-modal-dialog,
    .b2b-itinerary-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
    }

    .b2b-marketing-modal-frame {
        height: calc(100vh - 76px);
    }

    .b2b-marketing-dashboard-modal {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 18px;
    }

    .login-panel {
        border-radius: 14px;
        padding: 24px 20px 22px;
    }

    .auth-shell h1 {
        font-size: 31px;
        margin-bottom: 22px;
    }

    .auth-copy {
        font-size: 14px;
    }

    .auth-field label,
    .auth-tabs a {
        font-size: 16px;
    }

    .auth-shell input,
    .auth-shell select {
        min-height: 40px;
        font-size: 14px;
        padding: 8px 12px;
    }

    .auth-shell .password-control input {
        padding-right: 44px;
    }

    .topbar,
    .dashboard {
        padding-left: 18px;
        padding-right: 18px;
    }

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

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .b2c-site-topbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .internal-site-topbar {
        flex-direction: row;
    }

    .internal-header-actions {
        gap: 8px;
    }

    .internal-header-user {
        max-width: 38vw;
    }

    .b2b-site-topbar {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px 12px;
    }

    .b2b-header-identity {
        text-align: left;
    }

    .b2b-header-identity strong {
        font-size: 16px;
    }

    .b2b-header-identity span {
        white-space: normal;
    }

    .b2b-site-topbar .b2b-header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        overflow-x: visible;
    }

    .b2b-listing-controls,
    .b2b-listing-filter-form {
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    .b2b-listing-filter-select,
    .b2b-listing-group-select {
        width: 100%;
        max-width: none;
    }

    .b2c-site-topbar .header-actions {
        display: flex;
        width: auto;
        min-width: 0;
        flex: 0 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .b2c-brand-logo img {
        height: 32px;
        max-width: 124px;
    }

    .topbar.b2c-site-topbar:not(.internal-site-topbar) .b2c-brand-logo {
        max-width: 170px;
    }

    .topbar.b2c-site-topbar:not(.internal-site-topbar) .b2c-brand-logo > img {
        height: 40px;
        max-width: 160px;
        max-height: 40px;
    }

    .internal-header-title strong {
        font-size: 16px;
    }

    .toolbar-panel,
    .detail-hero,
    .calendar-heading,
    .section-heading,
    .supplier-match-card-header,
    .collateral-card-header,
    .user-card-heading,
    .empty-state,
    .pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .summary-grid,
    .match-summary-grid,
    .priority-summary-grid,
    .filter-form,
    .match-filter-form,
    .dashboard-filter-form,
    .priority-filter-form,
    .group-filter-form,
    .b2b-profile-form,
    .import-action-grid,
    .user-form-grid,
    .user-edit-form,
    .user-card-grid,
    .offer-copy-grid {
        grid-template-columns: 1fr;
    }

    .internal-booking-form-grid,
    .internal-booking-pax-grid,
    .internal-booking-room-grid,
    .internal-traveler-main-grid {
        grid-template-columns: 1fr;
    }

    .internal-booking-customer-grid {
        grid-template-columns: 1fr;
    }

    .internal-customer-country-field {
        grid-column: 1 / -1;
    }

    .internal-credential-status,
    .internal-traveler-card-heading,
    .internal-submit-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .internal-submit-actions > *,
    .internal-credential-status .compact-button {
        width: 100%;
    }

    .internal-submit-helper {
        text-align: left;
    }

    .pagination div {
        flex-direction: column;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .view-toggle,
    .calendar-month-nav,
    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .calendar-month-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-grid,
    .b2b-booking-detail-grid,
    .resolve-grid,
    .supplier-match-grid,
    .collateral-grid,
    .status-details,
    .user-details,
    .compact-match-details,
    .compact-details {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .b2b-booking-detail-grid dl {
        grid-template-columns: 1fr;
    }

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

    .package-group-create-grid {
        grid-template-columns: 1fr;
    }

    .management-collateral-body {
        grid-template-columns: 1fr;
    }

    .management-collateral-thumb {
        width: 100%;
    }

    .group-collateral-management-header {
        flex-direction: column;
    }

    .group-collateral-management-body {
        grid-template-columns: 1fr;
    }

    .group-collateral-thumbnail {
        width: 100%;
    }

    .b2b-commercial-matrix {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
        border-radius: 8px;
        background: #f6f8fb;
    }

    .b2b-commercial-corner,
    .b2b-commercial-col-header {
        display: none;
    }

    .b2b-commercial-row-header {
        padding: 0;
        background: transparent;
        font-size: 14px;
    }

    .b2b-commercial-cell {
        padding: 0;
        background: transparent;
    }

    .b2b-commercial-cell span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .collateral-management-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        min-width: 0;
    }

    .collateral-edit-panel[open] {
        width: 100%;
    }

    .quality-summary {
        justify-items: start;
    }

    .quality-checklist {
        grid-template-columns: 1fr;
    }

    .filter-actions,
    .form-actions,
    .match-actions {
        min-width: 0;
        width: 100%;
    }

    .form-actions > *,
    .match-actions > *,
    .import-action-form button,
    .collateral-form > button,
    .auth-primary {
        width: 100%;
    }

    .filter-actions > *,
    .view-toggle > *,
    .calendar-month-nav > *,
    .header-actions > * {
        width: 100%;
        min-height: 34px;
        padding: 6px 8px;
        font-size: 13px;
        line-height: 1.15;
    }

    .b2c-site-topbar .header-actions > * {
        width: auto;
        min-width: 0;
        padding-left: 9px;
        padding-right: 9px;
        white-space: nowrap;
    }

    .b2c-schedule-card .b2b-schedule-card-overlay span {
        min-height: 28px;
        padding-left: 7px;
        padding-right: 7px;
        font-size: 14px;
    }

    .desktop-label {
        display: none;
    }

    .mobile-label {
        display: inline;
    }

    .calendar-heading,
    .calendar-month-nav,
    .view-toggle {
        align-items: stretch;
    }

    .calendar-legend {
        align-items: flex-start;
    }

    .pagination .secondary-button {
        flex: 1 1 180px;
    }

    .calendar-panel {
        padding: 14px;
    }

    .calendar-scroll {
        overflow-x: visible;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        min-width: 0;
        width: 100%;
    }

    .calendar-weekday {
        min-height: 30px;
        justify-content: center;
        padding: 5px 3px;
        font-size: 10px;
    }

    .calendar-day {
        min-width: 0;
        min-height: 92px;
        padding: 4px 3px;
    }

    .calendar-day-number {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .calendar-event-list {
        gap: 3px;
    }

    .calendar-event {
        gap: 1px;
        padding: 3px 4px;
        border-radius: 4px;
        font-size: 10px;
        line-height: 1.12;
        overflow: hidden;
    }

    .calendar-event-main,
    .calendar-event-meta {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .calendar-event-main {
        font-size: 10px;
        line-height: 1.15;
    }

    .calendar-event-meta {
        font-size: 9px;
        line-height: 1.15;
        opacity: 0.9;
    }

    .calendar-event-classes {
        display: none;
    }

    .calendar-more-count {
        min-height: 24px;
        padding: 4px;
        border-radius: 4px;
        font-size: 10px;
        line-height: 1.15;
        text-align: center;
    }

    .calendar-date-row {
        grid-template-columns: 52px 1fr;
        align-items: start;
    }

    .calendar-date-name,
    .calendar-date-actions {
        grid-column: 2;
    }

    .calendar-date-priority,
    .calendar-date-metric,
    .calendar-date-classes {
        grid-column: 1 / -1;
    }

    .section-heading {
        margin-bottom: 14px;
    }

    .copy-block-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .copy-block-heading .compact-button,
    .inline-action-form,
    .inline-action-form button {
        width: 100%;
    }

    .b2c-package-detail-meta {
        grid-template-columns: 1fr;
    }

    .b2c-itinerary-info-grid {
        grid-template-columns: 1fr;
    }

    .b2c-detail-bottom-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .b2c-itinerary-day {
        padding: 16px;
    }

    .b2c-itinerary-day-header {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 12px;
    }

    .variable-picker-heading small {
        line-height: 1.35;
    }

    table {
        min-width: 980px;
    }

    .supplier-table,
    .import-log-table,
    .group-departure-table,
    .priority-table {
        min-width: 1120px;
    }

    .match-table {
        min-width: 1550px;
    }

    .bulk-action-bar,
    .bulk-confirm-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bulk-action-buttons,
    .bulk-confirm-actions {
        justify-content: flex-start;
    }

    .bulk-action-buttons button,
    .bulk-confirm-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    .auth-page {
        padding: 14px;
    }

    .login-panel,
    .panel {
        padding: 18px 16px;
    }

    .topbar {
        padding: 18px 14px;
    }

    .dashboard {
        gap: 14px;
        margin-top: 18px;
        margin-bottom: 18px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .detail-hero h2 {
        font-size: 22px;
    }

    .summary-card {
        min-height: 96px;
        padding: 16px;
    }

    .summary-card strong {
        font-size: 26px;
    }

    .filter-panel,
    .table-panel {
        padding: 16px;
    }

    .form-actions button,
    .import-action-form button,
    .collateral-form > button,
    .user-edit-form button,
    .user-form-grid button {
        width: 100%;
    }

    .header-actions,
    .view-toggle {
        gap: 8px;
    }

    .calendar-month-nav {
        gap: 6px;
    }

    .filter-actions > *,
    .view-toggle > *,
    .calendar-month-nav > *,
    .header-actions > * {
        min-height: 32px;
        padding: 5px 6px;
        font-size: 12px;
    }

    .calendar-panel {
        padding: 10px 8px;
    }

    .calendar-grid {
        border-radius: 6px;
    }

    .calendar-weekday {
        min-height: 26px;
        padding: 4px 1px;
        font-size: 9px;
    }

    .calendar-day {
        min-height: 74px;
        padding: 3px 2px;
    }

    .calendar-day-number {
        margin-bottom: 2px;
        font-size: 10px;
    }

    .calendar-event-list {
        gap: 2px;
    }

    .calendar-event {
        padding: 2px 3px;
        border-radius: 3px;
    }

    .calendar-event-main {
        font-size: 9px;
    }

    .calendar-event-meta {
        font-size: 8px;
    }

    .calendar-more-count {
        min-height: 22px;
        padding: 3px 2px;
        font-size: 9px;
    }

    .password-toggle {
        width: 28px;
        min-height: 28px;
    }

    .auth-tabs {
        gap: 10px 14px;
    }

    .quality-checklist li {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .quality-checklist .status-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    th,
    td {
        padding: 10px 8px;
    }
}

/* B2C Safari logo hard override */
body .topbar.b2c-site-topbar .b2c-brand-logo,
body .b2c-site-topbar .b2c-brand-logo {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 200px !important;
}

body .topbar.b2c-site-topbar .b2c-brand-logo > img,
body .b2c-site-topbar .b2c-brand-logo > img,
body img.b2c-brand-logo {
    height: 52px !important;
    max-height: 52px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    display: block !important;
}

@media (max-width: 700px) {
    body .topbar.b2c-site-topbar .b2c-brand-logo > img,
    body .b2c-site-topbar .b2c-brand-logo > img,
    body img.b2c-brand-logo {
        height: 40px !important;
        max-height: 40px !important;
        max-width: 160px !important;
    }
}

@media (max-width: 768px) {
    html {
        max-width: 100%;
        overflow-x: hidden;
    }

    .b2b-booking-dashboard {
        width: 100%;
        max-width: 100%;
        margin-top: 14px;
        margin-bottom: 14px;
        padding-right: 12px;
        padding-left: 12px;
        overflow-x: hidden;
    }

    .b2b-booking-dashboard *,
    .b2b-booking-dashboard *::before,
    .b2b-booking-dashboard *::after {
        max-width: 100%;
    }

    .b2b-booking-dashboard .panel,
    .b2b-booking-dashboard .table-panel {
        width: 100%;
        padding: 16px;
        overflow-x: hidden;
    }

    .b2b-booking-dashboard .detail-hero {
        gap: 16px;
    }

    .b2b-booking-dashboard .detail-hero h2 {
        overflow-wrap: anywhere;
    }

    .b2b-booking-dashboard .status-details,
    .b2b-booking-dashboard .detail-grid,
    .b2b-booking-dashboard .compact-detail-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .b2b-booking-dashboard .status-details dd,
    .b2b-booking-dashboard .detail-grid dd,
    .b2b-booking-dashboard .compact-detail-grid dd {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .b2b-booking-dashboard .section-heading {
        gap: 6px;
    }

    .b2b-booking-dashboard .section-heading h2 {
        font-size: 20px;
    }

    .b2b-booking-dashboard .filter-form,
    .b2b-booking-dashboard .b2b-pax-summary {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: stretch;
        width: 100%;
    }

    .b2b-booking-dashboard .filter-form label {
        min-width: 0;
        width: 100%;
        margin-bottom: 0;
    }

    .b2b-booking-dashboard input,
    .b2b-booking-dashboard select,
    .b2b-booking-dashboard textarea {
        width: 100%;
        min-width: 0;
    }

    .b2b-booking-dashboard input[type="file"] {
        max-width: 100%;
        font-size: 12px;
    }

    .b2b-booking-dashboard .b2b-total-pax {
        width: 100%;
    }

    .b2b-booking-dashboard .b2b-room-price-list {
        width: 100%;
        min-width: 0;
    }

    .b2b-booking-dashboard .b2b-room-price-line {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
        align-items: start;
    }

    .b2b-booking-dashboard .b2b-room-price-line span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .b2b-booking-dashboard .b2b-room-price-line strong {
        justify-self: end;
        max-width: 42vw;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .b2b-booking-dashboard .b2b-guest-list,
    .b2b-booking-dashboard .b2b-guest-card {
        width: 100%;
        min-width: 0;
    }

    .b2b-booking-dashboard .b2b-guest-card {
        padding: 14px;
    }

    .b2b-booking-dashboard .guest-detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .b2b-booking-dashboard .guest-passport-actions {
        width: 100%;
        min-width: 0;
    }

    .b2b-booking-dashboard .passport-upload-progress {
        max-width: 100%;
    }

    .b2b-booking-dashboard .filter-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
    }

    .b2b-booking-dashboard .filter-actions > *,
    .b2b-booking-dashboard .primary-button,
    .b2b-booking-dashboard .secondary-button {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .b2b-booking-dashboard + .b2c-trust-footer {
        display: none;
    }
}

@media (max-width: 480px) {
    .b2b-booking-dashboard {
        padding-right: 10px;
        padding-left: 10px;
    }

    .b2b-booking-dashboard .panel,
    .b2b-booking-dashboard .table-panel {
        padding: 14px 12px;
    }

    .b2b-booking-dashboard .b2b-room-price-line {
        grid-template-columns: 1fr;
    }

    .b2b-booking-dashboard .b2b-room-price-line strong {
        max-width: 100%;
        justify-self: end;
    }

    .b2b-booking-dashboard .filter-actions {
        grid-template-columns: 1fr;
    }
}
