@import "plugins.bundle-15sg7VF.css";
@import "style.bundle-82h1Fsi.css";
@import "dialog-1T_NQml.css";

/* Small application-specific helpers only. Metronic provides all visual styling. */
.adtm-table,
.metronic-poc-table {
    min-width: 980px;
}

.adtm-brand-name {
    max-width: 12rem;
}

.adtm-stat-value,
.metronic-poc-stat-value {
    letter-spacing: -0.04em;
}

.adtm-auth-bg {
    background-position: center;
    background-size: cover;
}

.adtm-sort-link {
    color: inherit;
}

.adtm-sort-link:hover {
    color: var(--bs-primary);
}

.adtm-user-actions {
    min-width: 260px;
}

.live-button .indicator-progress {
    display: none;
}

.live-button[data-kt-indicator='on'] .indicator-label {
    display: none;
}

.live-button[data-kt-indicator='on'] .indicator-progress {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 767.98px) {
    .adtm-toolbar-actions {
        width: 100%;
    }

    .adtm-toolbar-actions > * {
        flex: 1 1 auto;
    }
}

.adtm-availability-calendar {
    min-height: 650px;
}

.adtm-availability-calendar .fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.adtm-availability-calendar .fc .fc-button {
    text-transform: none;
}

@media (max-width: 767.98px) {
    .adtm-availability-calendar {
        min-height: 560px;
    }

    .adtm-availability-calendar .fc .fc-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: .75rem;
    }

    .adtm-availability-calendar .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
}

.adtm-chart-container {
    min-height: 360px;
    position: relative;
}

.adtm-chart-container-sm {
    min-height: 300px;
    position: relative;
}

.adtm-statistics-table {
    min-width: 1180px;
}

/* Historical tour-list visual rules, adapted to Bootstrap 5 light/dark themes. */
.adtm-tour-row {
    --adtm-tour-row-bg: #fff;
}

.adtm-tour-row > td {
    background-color: var(--adtm-tour-row-bg) !important;
}

.adtm-tour-row--odd {
    --adtm-tour-row-bg: #f2f2f7;
}

.adtm-tour-row--imported {
    --adtm-tour-row-bg: #ff92f9;
}

.adtm-tour-row--amended {
    --adtm-tour-row-bg: #fac54b;
}

.adtm-tour-row--last-imported {
    --adtm-tour-row-bg: rgb(250 197 75 / .5);
}

.adtm-tour-date {
    color: #1e1e2d;
}

.adtm-tour-date > a {
    color: inherit !important;
}

.adtm-tour-row--cancelled-import {
    --adtm-tour-row-bg: #dc3545;
}

.adtm-tour-row--cancelled-import > td,
.adtm-tour-row--cancelled-import a {
    color: #fff !important;
}

[data-bs-theme='dark'] .adtm-tour-row {
    --adtm-tour-row-bg: #101b2c;
}

[data-bs-theme='dark'] .adtm-tour-row--odd {
    --adtm-tour-row-bg: #192e4e;
}

[data-bs-theme='dark'] .adtm-tour-row--imported {
    --adtm-tour-row-bg: rgb(255 146 249 / .4);
}

[data-bs-theme='dark'] .adtm-tour-row--amended {
    --adtm-tour-row-bg: rgb(250 197 75 / .2);
}

[data-bs-theme='dark'] .adtm-tour-row--last-imported {
    --adtm-tour-row-bg: rgb(245 185 66 / .12);
}

[data-bs-theme='dark'] .adtm-tour-row--imported > td {
    color: #fff;
}

[data-bs-theme='dark'] .adtm-tour-date {
    color: var(--bs-body-color);
}

[data-bs-theme='dark'] .adtm-tour-row--cancelled-import {
    --adtm-tour-row-bg: #8f1d2c;
}

/* Daily statistics cells use explicit theme-aware colors instead of Bootstrap's
 * light contextual table backgrounds, which become hard to read in dark mode. */
.adtm-daily-stats__day,
.adtm-daily-stats__value {
    color: #212529 !important;
}

.adtm-daily-stats__day > a {
    color: inherit !important;
}.adtm-daily-stats__value--danger {
    background-color: #f8d7da !important;
}

.adtm-daily-stats__value--warning {
    background-color: #fff3cd !important;
}

.adtm-daily-stats__value--success {
    background-color: #d1e7dd !important;
}

.adtm-daily-stats__value--strong-success {
    background-color: #b8dfcc !important;
}

.adtm-daily-stats__value--highlight {
    background-color: #ffe69c !important;
}

.adtm-daily-stats__totals > td {
    color: var(--bs-emphasis-color) !important;
    background-color: var(--bs-tertiary-bg) !important;
}

[data-bs-theme='dark'] .adtm-statistics-table tbody {
    color: #d6d8df !important;
}

[data-bs-theme='dark'] .adtm-statistics-table thead .text-muted {
    color: #a1a5b7 !important;
}

[data-bs-theme='dark'] .adtm-daily-stats__day,
[data-bs-theme='dark'] .adtm-daily-stats__value {
    color: #f5f8fa !important;
}[data-bs-theme='dark'] .adtm-daily-stats__value--danger {
    color: #ffccd2 !important;
    background-color: #5a2630 !important;
}

[data-bs-theme='dark'] .adtm-daily-stats__value--warning {
    color: #ffe69c !important;
    background-color: #57460d !important;
}

[data-bs-theme='dark'] .adtm-daily-stats__value--success {
    color: #b8e9cd !important;
    background-color: #164b32 !important;
}

[data-bs-theme='dark'] .adtm-daily-stats__value--strong-success {
    color: #c9f3d9 !important;
    background-color: #0b5d3a !important;
}

[data-bs-theme='dark'] .adtm-daily-stats__value--highlight {
    color: #ffe69c !important;
    background-color: #624f11 !important;
}

/* Tour list actions stay on one line; the existing responsive table owns overflow. */
.adtm-tour-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    min-width: max-content;
    width: max-content;
}

.adtm-tour-actions > * {
    flex: 0 0 auto;
}

/* Stable local category variants for the operational tour list. */
.adtm-category-badge {
    border: 1px solid transparent;
}

.adtm-category-badge--am1 {
    color: var(--bs-primary-text-emphasis) !important;
    background-color: var(--bs-primary-bg-subtle) !important;
    border-color: var(--bs-primary-border-subtle) !important;
}

.adtm-category-badge--am2 {
    color: var(--bs-success-text-emphasis) !important;
    background-color: var(--bs-success-bg-subtle) !important;
    border-color: var(--bs-success-border-subtle) !important;
}

.adtm-category-badge--am3 {
    color: var(--bs-info-text-emphasis) !important;
    background-color: var(--bs-info-bg-subtle) !important;
    border-color: var(--bs-info-border-subtle) !important;
}

.adtm-category-badge--am4 {
    color: #5c2d91 !important;
    background-color: #eee4fa !important;
    border-color: #cfb5ed !important;
}

.adtm-category-badge--wed {
    color: var(--bs-warning-text-emphasis) !important;
    background-color: var(--bs-warning-bg-subtle) !important;
    border-color: var(--bs-warning-border-subtle) !important;
}

.adtm-category-badge--default {
    color: var(--bs-secondary-text-emphasis) !important;
    background-color: var(--bs-secondary-bg-subtle) !important;
    border-color: var(--bs-secondary-border-subtle) !important;
}

[data-bs-theme='dark'] .adtm-category-badge--am4 {
    color: #e3c9ff !important;
    background-color: #2e1648 !important;
    border-color: #7545a8 !important;
}
