/**
 * Safari Island Resort - Front Office
 * Dark mode, background image (set on body in layout)
 */

/* --- Panels (no blur) --- */
.safari-glass {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.safari-glass-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Header --- */
.safari-header.safari-header-transparent,
.safari-header.safari-header-transparent .navbar {
    background: rgba(15, 23, 42, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}
.safari-header .navbar-brand {
    color: #fff !important;
    font-size: 1.1rem;
}
.safari-header .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 0.25rem;
    font-weight: 500;
}
.safari-header .nav-link:hover,
.safari-header .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
}
.safari-header .dropdown-menu,
.safari-header .dropdown-menu-dark {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.safari-header .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}
.safari-header .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.safari-header .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 1);
}
.safari-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Navbar: left (brand) + center (nav links) + right (user) */
.safari-navbar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}
.safari-navbar-left {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}
.safari-navbar-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}
.safari-navbar-center .navbar-nav {
    flex-wrap: nowrap;
}
.safari-navbar-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}
.safari-navbar-center .nav-link {
    white-space: nowrap;
}
/* Legacy: horizontal sidebar (e.g. if used elsewhere) */
.safari-sidebar-horizontal {
    min-height: 2.5rem;
    flex-wrap: nowrap;
}
.safari-sidebar-horizontal .navbar-nav {
    flex-wrap: nowrap;
}
.safari-sidebar-horizontal .nav-link {
    white-space: nowrap;
}

/* --- Main content (fixed header) --- */
.safari-main {
    margin-top: 56px;
    min-height: calc(100vh - 56px);
}

/* --- Main content area --- */
#mainContent {
    min-height: calc(100vh - 56px);
}
#moduleContent .module-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}
#moduleContent .card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
#moduleContent .card-body {
    color: #cbd5e1;
}

/* --- Dark forms (Bootstrap overrides) --- */
.form-control-dark,
.form-select-dark,
#moduleContent .form-control,
#moduleContent .form-select {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
.form-control-dark::placeholder,
#moduleContent .form-control::placeholder {
    color: rgba(226, 232, 240, 0.5);
}
.form-control-dark:focus,
.form-select-dark:focus,
#moduleContent .form-control:focus,
#moduleContent .form-select:focus {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
    box-shadow: 0 0 0 0.2rem rgba(148, 163, 184, 0.15);
}
.form-label.text-gray-200,
#moduleContent .form-label {
    color: #e2e8f0 !important;
}

/* --- Data table (dark) --- */
.safari-table {
    font-size: 0.9rem;
    color: #cbd5e1;
}
.safari-table thead th {
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
.safari-table tbody td {
    border-color: rgba(255, 255, 255, 0.06);
}
.safari-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}
.safari-table tfoot td,
.safari-commission-table__foot td {
    border-color: rgba(255, 255, 255, 0.12);
    border-top: 2px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
}
.safari-table .btn-sm {
    padding: 0.2rem 0.5rem;
}

/* --- Module card --- */
.module-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}
.module-card .card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
.module-card .card-body {
    color: #cbd5e1;
}

/* --- Global: NO white backgrounds anywhere in module content (remember) --- */
#moduleContent .module-card .card-body,
#moduleContent .module-card .table,
#moduleContent .module-card .table-responsive,
#moduleContent .module-card .safari-table,
#moduleContent .module-card .safari-table tbody,
#moduleContent .module-card .safari-table tbody tr,
#moduleContent .module-card .safari-table tbody td,
#moduleContent .module-card .table tbody,
#moduleContent .module-card .table tbody tr,
#moduleContent .module-card .table tbody td {
    background: transparent !important;
    background-color: transparent !important;
}
#moduleContent .module-card .card-body {
    background: transparent !important;
    background-color: transparent !important;
}
#moduleContent .module-card .safari-table tbody,
#moduleContent .module-card .table tbody {
    background: rgba(15, 23, 42, 0.6) !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
}
#moduleContent .module-card .safari-table tbody tr,
#moduleContent .module-card .safari-table tbody td,
#moduleContent .module-card .table tbody tr,
#moduleContent .module-card .table tbody td {
    background: rgba(15, 23, 42, 0.6) !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    color: #e2e8f0 !important;
}
#moduleContent .module-card .safari-table tfoot tr,
#moduleContent .module-card .safari-table tfoot td {
    background: rgba(15, 23, 42, 0.85) !important;
    background-color: rgba(15, 23, 42, 0.85) !important;
    color: #e2e8f0 !important;
}

/* Safari Commission Report — full dark table (no white tfoot / Bootstrap bleed) */
#moduleContent .module-card.safari-commission-report-module .table-responsive {
    background: rgba(15, 23, 42, 0.5) !important;
    background-color: rgba(15, 23, 42, 0.5) !important;
    border-radius: 0.5rem;
}
#moduleContent .module-card.safari-commission-report-module .table {
    --bs-table-bg: rgba(15, 23, 42, 0.6);
    --bs-table-color: #e2e8f0;
    --bs-border-color: rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6) !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    color: #e2e8f0 !important;
    margin-bottom: 0;
    box-shadow: none;
}
#moduleContent .module-card.safari-commission-report-module .table thead th {
    background: rgba(30, 41, 59, 0.85) !important;
    background-color: rgba(30, 41, 59, 0.85) !important;
    color: #f1f5f9 !important;
}
#moduleContent .module-card.safari-commission-report-module .table th,
#moduleContent .module-card.safari-commission-report-module .table td {
    white-space: nowrap;
}
#moduleContent .module-card.safari-commission-report-module .table td.safari-commission-details {
    white-space: normal;
    min-width: 420px;
    max-width: 720px;
}
#moduleContent .module-card.safari-commission-report-module .table tbody tr,
#moduleContent .module-card.safari-commission-report-module .table tbody td {
    background: rgba(15, 23, 42, 0.65) !important;
    background-color: rgba(15, 23, 42, 0.65) !important;
    color: #e2e8f0 !important;
}
#moduleContent .module-card.safari-commission-report-module .table.table-hover tbody tr:hover td {
    background: rgba(30, 41, 59, 0.9) !important;
    background-color: rgba(30, 41, 59, 0.9) !important;
    color: #f8fafc !important;
}
#moduleContent .module-card.safari-commission-report-module .table tfoot,
#moduleContent .module-card.safari-commission-report-module .table tfoot tr,
#moduleContent .module-card.safari-commission-report-module .table tfoot td {
    background: rgba(2, 6, 23, 0.92) !important;
    background-color: rgba(2, 6, 23, 0.92) !important;
    color: #f8fafc !important;
}
#moduleContent .module-card.safari-commission-report-module .safari-commission-table__total td {
    background: rgba(2, 6, 23, 0.95) !important;
    background-color: rgba(2, 6, 23, 0.95) !important;
    color: #f8fafc !important;
    border-top: 2px solid rgba(148, 163, 184, 0.35) !important;
}
#moduleContent .module-card.safari-commission-report-module input[type="date"] {
    color-scheme: dark;
}

/* --- Loading overlay --- */
.module-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* --- Modal (dark) --- */
#appModal .modal-content {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #e2e8f0;
}
#appModal .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
#appModal .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}
#appModal .modal-title {
    color: #fff;
}
#appModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}
#appModal .modal-body .form-control,
#appModal .modal-body .form-select {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
#appModal .modal-body .form-label {
    color: #e2e8f0;
}

/* Safari Trips — booked excursion detail (from calendar) */
#appModal .safari-trips-exc-detail {
    padding: 0.1rem 0;
}
#appModal .safari-trips-exc-detail__row {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.35rem 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}
#appModal .safari-trips-exc-detail__row:last-child {
    border-bottom: none;
}
#appModal .safari-trips-exc-detail__row--remarks .safari-trips-exc-detail__v {
    white-space: pre-wrap;
}
#appModal .safari-trips-exc-detail__k {
    color: rgba(148, 163, 184, 0.95);
    font-weight: 600;
}
#appModal .safari-trips-exc-detail__v {
    color: #f1f5f9;
}

#appModal .safari-trips-exc-recs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
#appModal .safari-trips-exc-recs__item {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}
#appModal .safari-trips-exc-recs__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
#appModal .safari-trips-exc-recs__title {
    font-weight: 800;
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#appModal .safari-trips-exc-recs__actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* Safari Trips — day picker modal (Add / Block) */
#appModal .safari-trips-day-actions {
    padding: 0.15rem 0.1rem 0.35rem;
}
#appModal .safari-trips-day-actions__hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(30, 41, 59, 0.45) 100%);
    border: 1px solid rgba(129, 140, 248, 0.22);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    margin-bottom: 1.1rem;
}
#appModal .safari-trips-day-actions__badge {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(165, 180, 252, 0.35);
    color: #c7d2fe;
}
#appModal .safari-trips-day-actions__hero-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
#appModal .safari-trips-day-actions__iso {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(199, 210, 254, 0.85);
}
#appModal .safari-trips-day-actions__line {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
}
#appModal .safari-trips-day-actions__weekday {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.88);
}
#appModal .safari-trips-day-actions__hint {
    font-size: 0.84rem;
    line-height: 1.45;
    color: rgba(203, 213, 225, 0.88);
    margin: 0 0 1rem;
    padding: 0 0.15rem;
}
#appModal .safari-trips-day-actions__grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
#appModal .safari-trips-day-actions__tile {
    appearance: none;
    text-align: left;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.45);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}
#appModal .safari-trips-day-actions__tile:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
#appModal .safari-trips-day-actions__tile:focus-visible {
    outline: 2px solid rgba(129, 140, 248, 0.65);
    outline-offset: 2px;
}
#appModal .safari-trips-day-actions__tile--add {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(37, 99, 235, 0.22) 100%);
    border-color: rgba(96, 165, 250, 0.4);
}
#appModal .safari-trips-day-actions__tile--add:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.45) 0%, rgba(37, 99, 235, 0.32) 100%);
    border-color: rgba(147, 197, 253, 0.45);
}
#appModal .safari-trips-day-actions__tile--excursion {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.26) 0%, rgba(5, 150, 105, 0.18) 100%);
    border-color: rgba(52, 211, 153, 0.35);
}
#appModal .safari-trips-day-actions__tile--excursion:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.34) 0%, rgba(5, 150, 105, 0.26) 100%);
    border-color: rgba(110, 231, 183, 0.4);
}
#appModal .safari-trips-day-actions__tile--block {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(248, 113, 113, 0.28);
}
#appModal .safari-trips-day-actions__tile--block:hover {
    background: rgba(127, 29, 29, 0.22);
    border-color: rgba(252, 165, 165, 0.35);
}
#appModal .safari-trips-day-actions__tile-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.02em;
}
#appModal .safari-trips-day-actions__tile-sub {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.65);
}
#appModal .safari-trips-day-actions__tile--block .safari-trips-day-actions__tile-sub {
    color: rgba(254, 202, 202, 0.55);
}

/* --- Alerts (dark) --- */
#appAlertContainer .alert {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
#appAlertContainer .alert-success {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}
#appAlertContainer .alert-danger {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* --- Dashboard cards --- */
#moduleContent .card.bg-primary,
#moduleContent .card.bg-success,
#moduleContent .card.bg-warning,
#moduleContent .card.bg-secondary {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
#moduleContent .card.bg-primary { border-left: 4px solid #3b82f6; }
#moduleContent .card.bg-warning { border-left: 4px solid #eab308; }
#moduleContent .card.bg-success { border-left: 4px solid #22c55e; }
#moduleContent .card.bg-secondary { border-left: 4px solid #64748b; }

/* --- Modern Dashboard --- */
.dashboard-modern { border-radius: 1.25rem; overflow: hidden; }
.dashboard-modern .dashboard-body { padding: 1.75rem; }
.dashboard-modern .dashboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-modern .dashboard-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0;
}
.dashboard-modern .dashboard-date {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.95);
    font-weight: 500;
}

/* KPI Cards - prominent card design */
.dashboard-modern .kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}
@media (max-width: 1199px) {
    .dashboard-modern .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .dashboard-modern .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
.dashboard-modern .kpi-wrap {
    text-decoration: none;
    display: block;
}
.dashboard-modern .kpi-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 120px;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.dashboard-modern .kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dashboard-modern .kpi-arrival {
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0.9) 50%);
    border-left: 4px solid #3b82f6;
}
.dashboard-modern .kpi-departure {
    background: linear-gradient(160deg, rgba(234, 179, 8, 0.2) 0%, rgba(15, 23, 42, 0.9) 50%);
    border-left: 4px solid #eab308;
}
.dashboard-modern .kpi-inhouse {
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.2) 0%, rgba(15, 23, 42, 0.9) 50%);
    border-left: 4px solid #22c55e;
}
.dashboard-modern .kpi-mealplan {
    background: linear-gradient(160deg, rgba(236, 72, 153, 0.2) 0%, rgba(15, 23, 42, 0.9) 50%);
    border-left: 4px solid #ec4899;
}
.dashboard-modern .kpi-nationality {
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.2) 0%, rgba(15, 23, 42, 0.9) 50%);
    border-left: 4px solid #8b5cf6;
}
.dashboard-modern .kpi-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.dashboard-modern .kpi-arrival .kpi-icon { background: rgba(59, 130, 246, 0.25); color: #60a5fa; }
.dashboard-modern .kpi-departure .kpi-icon { background: rgba(234, 179, 8, 0.25); color: #fcd34d; }
.dashboard-modern .kpi-inhouse .kpi-icon { background: rgba(34, 197, 94, 0.25); color: #4ade80; }
.dashboard-modern .kpi-mealplan .kpi-icon { background: rgba(236, 72, 153, 0.25); color: #f472b6; }
.dashboard-modern .kpi-nationality .kpi-icon { background: rgba(139, 92, 246, 0.25); color: #a78bfa; }
.dashboard-modern .kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.dashboard-modern .kpi-label {
    font-size: 0.75rem;
    color: rgba(203, 213, 225, 0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.dashboard-modern .kpi-sub {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.85);
}

/* Charts - beautiful card containers */
.dashboard-modern .charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.dashboard-modern .charts-row-2 { margin-bottom: 0; }
.dashboard-modern .charts-row-2 .chart-canvas { height: 260px; min-height: 220px; }
.dashboard-modern .chart-block-wide { grid-column: 1 / -1; }
@media (max-width: 991px) {
    .dashboard-modern .charts-section { grid-template-columns: 1fr; }
}
.dashboard-modern .chart-block {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.dashboard-modern .chart-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.25rem 0;
}
.dashboard-modern .chart-canvas {
    position: relative;
    height: 220px;
}
.dashboard-modern .chart-block-wide .chart-canvas { height: 240px; }

/* Inhouse-style stats list (Meal Plan & Nationality from Inhouse data) */
.dashboard-modern .inhouse-stats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.dashboard-modern .nationality-list { gap: 0.5rem; }
.dashboard-modern .inhouse-stat-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
}
.dashboard-modern .inhouse-stat-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}
.dashboard-modern .inhouse-stat-label {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.95);
}
.dashboard-modern .inhouse-stat-count {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.9);
}
.dashboard-modern .inhouse-stats-empty {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.6);
    margin: 0;
}

/* Dashboard meal plan cards – today's in-house by plan */
.dashboard-modern .chart-block-meal-plan .chart-subheading {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.8);
    margin: -0.5rem 0 1rem 0;
    font-weight: 400;
}
.dashboard-meal-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 991px) {
    .dashboard-meal-plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .dashboard-meal-plan-grid { grid-template-columns: 1fr; }
}
.dashboard-meal-plan-card {
    position: relative;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1rem 1rem 1.25rem;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.dashboard-meal-plan-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.dashboard-meal-plan-card__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}
.dashboard-meal-plan-card--hb .dashboard-meal-plan-card__accent { background: linear-gradient(180deg, #3b82f6, #2563eb); }
.dashboard-meal-plan-card--hp .dashboard-meal-plan-card__accent { background: linear-gradient(180deg, #22c55e, #16a34a); }
.dashboard-meal-plan-card--fb .dashboard-meal-plan-card__accent { background: linear-gradient(180deg, #eab308, #ca8a04); }
.dashboard-meal-plan-card--ai .dashboard-meal-plan-card__accent { background: linear-gradient(180deg, #f97316, #ea580c); }
.dashboard-meal-plan-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.dashboard-meal-plan-card__code {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.02em;
}
.dashboard-meal-plan-card__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}
.dashboard-meal-plan-card__desc {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.85);
    margin-bottom: 0.5rem;
}
.dashboard-meal-plan-card__pax {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: auto;
}
.dashboard-meal-plan-card__pax-unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.9);
}

/* Dashboard nationality – treemap (today's in-house) */
.dashboard-modern .chart-block-nationality .dashboard-nationality-chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.65rem 1.25rem;
    margin-bottom: 0.25rem;
}
.dashboard-modern .chart-block-nationality .dashboard-nationality-chart-head .chart-heading {
    margin: 0;
    flex: 1;
    min-width: min(100%, 14rem);
    letter-spacing: -0.02em;
}
.dashboard-nationality-chart-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}
.dashboard-nationality-chart-meta__pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.92);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dashboard-nationality-chart-meta__pill--accent {
    color: #ede9fe;
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(167, 139, 250, 0.38);
}
.dashboard-modern .chart-block-nationality .dashboard-nationality-chart-hint {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.78);
    margin: 0 0 1.1rem 0;
    letter-spacing: 0.02em;
}
.dashboard-nationality-treemap-wrap {
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(51, 65, 85, 0.28) 0%, rgba(15, 23, 42, 0.72) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 10px 40px rgba(0, 0, 0, 0.35);
    padding: 0.75rem 0.9rem 1.05rem;
    position: relative;
    min-height: 400px;
    height: min(52vh, 520px);
}
@supports (backdrop-filter: blur(10px)) {
    .dashboard-nationality-treemap-wrap {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}
.dashboard-modern .chart-canvas-nationality-treemap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 360px;
}
.dashboard-nationality-bar-wrap {
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem 0.75rem 1rem;
    position: relative;
}
.dashboard-modern .chart-canvas-nationality-bar {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
}
.dashboard-nationality-empty {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.6);
    margin: 0;
}
.dashboard-nationality-wrap {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.dashboard-nationality-list {
    max-height: 320px;
    overflow-y: auto;
}
.dashboard-nationality-row {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}
.dashboard-nationality-row:last-child {
    border-bottom: none;
}
.dashboard-nationality-row:hover {
    background: rgba(255, 255, 255, 0.04);
}
.dashboard-nationality-row__rank {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.7);
    min-width: 1.5rem;
}
.dashboard-nationality-row__country {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}
.dashboard-nationality-row__stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dashboard-nationality-row__pax,
.dashboard-nationality-row__nights {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
}
.dashboard-nationality-row__unit {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.85);
    text-transform: lowercase;
}
@media (max-width: 575.98px) {
    .dashboard-nationality-row {
        grid-template-columns: 1.75rem 1fr;
        gap: 0.5rem;
    }
    .dashboard-nationality-row__stats {
        grid-column: 2;
        gap: 0.75rem;
    }
}

/* --- Arrival module: transparent background, remarks wrap --- */
.safari-arrival-module,
.safari-arrival-module .card,
.safari-arrival-module .card-header,
.safari-arrival-module .card-body,
.safari-arrival-module .table,
.safari-arrival-module .safari-table,
.safari-arrival-module .safari-table thead th,
.safari-arrival-module .safari-table tbody,
.safari-arrival-module .safari-table tbody td,
.safari-arrival-module .safari-table tbody tr,
.safari-arrival-module .safari-table tfoot tr,
.safari-arrival-module .table-responsive {
    background: transparent !important;
    background-color: transparent !important;
}
/* Force transparent on arrival table (Bootstrap overrides) */
.safari-arrival-module .arrival-table-transparent,
.safari-arrival-module .arrival-table-transparent tbody,
.safari-arrival-module .arrival-table-transparent tbody tr,
.safari-arrival-module .arrival-table-transparent tbody tr:nth-of-type(odd),
.safari-arrival-module .arrival-table-transparent tbody tr:nth-of-type(even),
.safari-arrival-module .arrival-table-transparent tbody td,
#arrivalTableBody tr,
#arrivalTableBody td {
    background: transparent !important;
    background-color: transparent !important;
}
/* Dark background for arrival table body */
#arrivalTableBody {
    background: rgba(0, 0, 0, 0.4) !important;
}
#arrivalTableBody,
#arrivalTableBody td {
    color: #fff !important;
}
#arrivalTableBody .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}
.safari-arrival-module .safari-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
.safari-arrival-module .arrival-remarks {
    white-space: normal !important;
    word-wrap: break-word;
    max-width: 200px;
}
.safari-arrival-module .arrival-action-icon {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: rgba(226, 232, 240, 0.9);
    opacity: 0.8;
}
.safari-arrival-module .arrival-action-icon:hover {
    opacity: 1;
    color: #fff;
}
.safari-arrival-module .arrival-action-icon.arrival-edit:hover { color: #60a5fa; }
.safari-arrival-module .arrival-action-icon.arrival-delete:hover { color: #f87171; }
.safari-arrival-module input.arrival-rm-no.form-control {
    width: 78px;
    max-width: 78px;
    padding: 0.12rem 0.35rem;
    line-height: 1.1;
    font-weight: 700;
    text-align: center;
}
.safari-arrival-module input.arrival-rm-no.form-control:focus {
    box-shadow: 0 0 0 0.12rem rgba(148, 163, 184, 0.22);
}
.safari-arrival-module .arrival-totals-row td {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.5rem;
    background: rgba(15, 23, 42, 0.9) !important;
    background-color: rgba(15, 23, 42, 0.9) !important;
    color: #e2e8f0 !important;
}

/* --- Safari Trips: month calendar --- */
.safari-safari-trips-module .card-body {
    background: transparent !important;
}
.safari-trips-calbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.safari-trips-calbar__left {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.safari-trips-calbar__tab {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.25);
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.34rem 0.6rem;
    border-radius: 10px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.safari-trips-calbar__tab:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.14);
}
.safari-trips-calbar__tab:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.safari-trips-calbar__tab.is-active {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(167, 139, 250, 0.38);
    color: #ede9fe;
}
.safari-trips-calbar__center {
    text-align: center;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 10.25rem;
}
.safari-trips-calbar__right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.safari-trips-calbar__btn {
    border-color: rgba(255, 255, 255, 0.14) !important;
}
.safari-trips-calbar__btn--icon {
    width: 34px;
    padding-left: 0;
    padding-right: 0;
    font-weight: 900;
}
.safari-trips-cal {
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(51, 65, 85, 0.22) 0%, rgba(15, 23, 42, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 40px rgba(0, 0, 0, 0.35);
    padding: 0.75rem;
}
.safari-trips-cal__dow {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.safari-trips-cal__dowcell {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.85);
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.safari-trips-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
}
.safari-trips-cal__cell {
    min-height: 112px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 0.55rem 0.55rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.safari-trips-cal__cell:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.65);
    outline-offset: 2px;
}
.safari-trips-cal__cell:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
}
.safari-trips-cal__cell.is-out {
    opacity: 0.55;
    background: rgba(2, 6, 23, 0.32);
}
.safari-trips-cal__cell.is-today {
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.safari-trips-cal__cellhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}
.safari-trips-cal__daynum {
    font-size: 1.05rem;
    font-weight: 900;
    color: #f8fafc;
    line-height: 1;
}
.safari-trips-cal__date {
    font-size: 0.68rem;
    color: rgba(148, 163, 184, 0.8);
    font-variant-numeric: tabular-nums;
}
.safari-trips-cal__items {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow: hidden;
}
.safari-trips-cal__pill {
    appearance: none;
    border: 1px solid rgba(167, 139, 250, 0.26);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.45rem;
    border-radius: 10px;
    color: rgba(237, 233, 254, 0.95);
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.safari-trips-cal__pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    border-color: rgba(255, 255, 255, 0.18);
}
.safari-trips-cal__pill.is-half {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, rgba(15, 23, 42, 0.35) 100%);
    border-color: rgba(74, 222, 128, 0.35);
}
.safari-trips-cal__pill.is-full {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.24) 0%, rgba(15, 23, 42, 0.35) 100%);
    border-color: rgba(96, 165, 250, 0.35);
}
.safari-trips-cal__pill.is-overnight {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22) 0%, rgba(15, 23, 42, 0.35) 100%);
    border-color: rgba(244, 114, 182, 0.35);
}
.safari-trips-cal__pill--excursion {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.22) 0%, rgba(15, 23, 42, 0.4) 100%);
    border-color: rgba(45, 212, 191, 0.38);
    color: rgba(204, 251, 241, 0.96);
}
.safari-trips-cal__pill--excursion.exc-col-0 { background: linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, rgba(15, 23, 42, 0.4) 100%); border-color: rgba(74, 222, 128, 0.38); }
.safari-trips-cal__pill--excursion.exc-col-1 { background: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(15, 23, 42, 0.4) 100%); border-color: rgba(96, 165, 250, 0.38); }
.safari-trips-cal__pill--excursion.exc-col-2 { background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(15, 23, 42, 0.4) 100%); border-color: rgba(192, 132, 252, 0.38); }
.safari-trips-cal__pill--excursion.exc-col-3 { background: linear-gradient(135deg, rgba(236, 72, 153, 0.22) 0%, rgba(15, 23, 42, 0.4) 100%); border-color: rgba(244, 114, 182, 0.38); }
.safari-trips-cal__pill--excursion.exc-col-4 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(15, 23, 42, 0.4) 100%); border-color: rgba(251, 191, 36, 0.38); }
.safari-trips-cal__pill--excursion.exc-col-5 { background: linear-gradient(135deg, rgba(20, 184, 166, 0.22) 0%, rgba(15, 23, 42, 0.4) 100%); border-color: rgba(45, 212, 191, 0.38); }
.safari-trips-cal__pilltag {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(153, 246, 228, 0.95);
    background: rgba(15, 118, 110, 0.35);
    border: 1px solid rgba(45, 212, 191, 0.35);
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
}
.safari-trips-cal__pilltime {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: rgba(226, 232, 240, 0.95);
    min-width: 3.1rem;
}
.safari-trips-cal__pilltext {
    opacity: 0.95;
    overflow: hidden;
    text-overflow: ellipsis;
}

.safari-trips-cal__blocked {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(254, 226, 226, 0.95);
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.28);
    padding: 0.25rem 0.45rem;
    border-radius: 10px;
}
.safari-trips-cal__cell.is-blocked {
    border-color: rgba(248, 113, 113, 0.28);
}

.safari-trips-opt {
    margin-top: 0.25rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.safari-trips-opt__title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(226, 232, 240, 0.95);
    margin-bottom: 0.55rem;
}
.safari-trips-opt__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}
.safari-trips-opt__row {
    display: grid;
    grid-template-columns: 1.25rem 1.1rem 1fr;
    align-items: start;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}
.safari-trips-opt__row:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}
.safari-trips-opt__row input[type="radio"] {
    margin-top: 0.15rem;
}
.safari-trips-opt__code {
    font-weight: 900;
    color: #f8fafc;
}
.safari-trips-opt__label {
    color: rgba(203, 213, 225, 0.92);
    font-size: 0.8rem;
    line-height: 1.25;
}
.safari-trips-opt__detail {
    margin-top: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    font-size: 0.82rem;
    line-height: 1.45;
}
.safari-trips-opt__detail-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 0.35rem;
}
.safari-trips-opt__detail-body {
    color: rgba(241, 245, 249, 0.95);
}
@media (max-width: 991px) {
    .safari-trips-calbar { grid-template-columns: 1fr; }
    .safari-trips-calbar__center { order: -1; width: 100%; }
    .safari-trips-cal__grid { gap: 0.5rem; }
    .safari-trips-cal__cell { min-height: 96px; }
    .safari-trips-cal__date { display: none; }
}
@media (max-width: 575.98px) {
    .safari-trips-cal__dow { display: none; }
    .safari-trips-cal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Full-page dark canvas: all modules loaded in #moduleContent except Daily Overview (screen only — print unchanged) */
@media screen {
    html:has(#moduleContent .module-card):not(:has(#moduleContent .safari-daily-overview-module)) {
        background-color: rgb(15, 23, 42);
    }
    body:has(#moduleContent .module-card):not(:has(#moduleContent .safari-daily-overview-module)) {
        background-color: rgb(15, 23, 42) !important;
        background-image: none !important;
    }
    body:has(#moduleContent .module-card):not(:has(#moduleContent .safari-daily-overview-module)) #mainContent.safari-main {
        background-color: rgb(15, 23, 42);
        min-height: calc(100vh - 56px);
    }
    body:has(#moduleContent .module-card):not(:has(#moduleContent .safari-daily-overview-module)) #moduleContent {
        background-color: transparent;
        min-height: calc(100vh - 56px - 3rem);
    }

    /*
     * Opaque shell + table chrome for every root .module-card except Daily Overview.
     * Exclude .roles-module (keeps glass blur). Descendant .module-card (not >) so leading whitespace in AJAX HTML still matches.
     */
    #moduleContent .module-card:not(.safari-daily-overview-module):not(.roles-module) {
        background: rgba(15, 23, 42, 0.96) !important;
        background-color: rgba(15, 23, 42, 0.96) !important;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    #moduleContent .module-card:not(.safari-daily-overview-module):not(.roles-module) > .card-body {
        background: rgba(15, 23, 42, 0.96) !important;
        background-color: rgba(15, 23, 42, 0.96) !important;
        color: #cbd5e1;
    }
    #moduleContent .module-card:not(.safari-daily-overview-module):not(.roles-module) .arrival-table-modern thead th,
    #moduleContent .module-card:not(.safari-daily-overview-module):not(.roles-module) .arrival-table-wrap,
    #moduleContent .module-card:not(.safari-daily-overview-module):not(.roles-module) .module-table-modern thead th,
    #moduleContent .module-card:not(.safari-daily-overview-module):not(.roles-module) .module-table-wrap {
        background: rgba(30, 41, 59, 0.75) !important;
        background-color: rgba(30, 41, 59, 0.75) !important;
        color: #e2e8f0;
    }
    #moduleContent .module-card:not(.safari-daily-overview-module):not(.roles-module) .table-responsive.arrival-table-wrap,
    #moduleContent .module-card:not(.safari-daily-overview-module):not(.roles-module) .table-responsive.module-table-wrap {
        border-radius: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    #moduleContent .module-card:not(.safari-daily-overview-module) .module-totals-row td {
        background: rgba(15, 23, 42, 0.9) !important;
        background-color: rgba(15, 23, 42, 0.9) !important;
        color: #e2e8f0 !important;
    }
}

/* --- Roles module: white text + background blur --- */
.roles-module,
.roles-module .card,
.roles-module .card-body {
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.roles-module .table {
    --bs-table-color: #fff;
    --bs-table-striped-color: #fff;
    --bs-table-hover-color: #fff;
}
.roles-module .card-body,
.roles-module .safari-table,
.roles-module .safari-table thead th,
.roles-module .safari-table tbody td,
.roles-module .safari-table tbody tr,
.roles-module .safari-table tbody tr:nth-of-type(odd),
.roles-module .safari-table tbody tr:nth-of-type(even),
.roles-module .table-striped tbody tr td,
.roles-module .roles-roles-desc,
.roles-module .badge {
    color: #fff !important;
}

/* --- Daily Overview report (dark theme, light borders) --- */
.safari-daily-overview-module .table,
.safari-daily-overview-module .daily-overview-table,
.safari-daily-overview-module table {
    background: transparent !important;
    background-color: transparent !important;
    color: #cbd5e1;
    border-collapse: collapse;
    margin-bottom: 0;
}
.safari-daily-overview-module .daily-overview-table thead th,
.safari-daily-overview-module .daily-overview-table tbody,
.safari-daily-overview-module .daily-overview-table tbody td,
.safari-daily-overview-module .daily-overview-table tbody tr,
.safari-daily-overview-module table th,
.safari-daily-overview-module table td {
    background: transparent !important;
    background-color: transparent !important;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}
/* Daily Overview: golden/brown header style – first column header left, others right */
.safari-daily-overview-module .daily-overview-table thead th {
    background: #03412efd !important;
    color: #fff !important;
}
.safari-daily-overview-module .daily-overview-table thead th:first-child {
    text-align: left !important;
}
.safari-daily-overview-module .daily-overview-table thead th:not(:first-child) {
    text-align: center !important;
}
.safari-daily-overview-module .daily-overview-daily-table thead th {
    background: #03412efd !important;
    color: #fff !important;
}
.safari-daily-overview-module .daily-overview-daily-table thead th:first-child {
    text-align: center !important;
}
.safari-daily-overview-module .daily-overview-daily-table thead th:not(:first-child) {
    text-align: center !important;
}
/* Daily Overview: expanded structure – tables use full width, generous spacing */
.safari-daily-overview-module .daily-overview-table,
.safari-daily-overview-module .daily-overview-subtable {
    table-layout: auto;
    width: 100%;
}
.safari-daily-overview-module .daily-overview-daily-table {
    table-layout: fixed;
    width: 100%;
}
.safari-daily-overview-module .daily-overview-daily-table thead th:first-child {
    width: 10%;
    min-width: 90px;
}
.safari-daily-overview-module .daily-overview-daily-table thead th:not(:first-child),
.safari-daily-overview-module .daily-overview-daily-table tbody td:not(:first-child) {
    width: 1%;
    min-width: 100px;
}
.safari-daily-overview-module .daily-overview-table th,
.safari-daily-overview-module .daily-overview-table td,
.safari-daily-overview-module .daily-overview-daily-table th,
.safari-daily-overview-module .daily-overview-daily-table td {
    padding: 0.5rem 1rem;
}
.safari-daily-overview-module .daily-overview-subtable th,
.safari-daily-overview-module .daily-overview-subtable td {
    padding: 0.5rem 1rem;
}
.safari-daily-overview-module .daily-overview-table th,
.safari-daily-overview-module .daily-overview-table td,
.safari-daily-overview-module .daily-overview-daily-table th,
.safari-daily-overview-module .daily-overview-daily-table td,
.safari-daily-overview-module .daily-overview-subtable th,
.safari-daily-overview-module .daily-overview-subtable td {
    vertical-align: middle;
}
/* Daily Overview: all tables – data and column headers left; only main section title row center */
.safari-daily-overview-module .daily-overview-table th,
.safari-daily-overview-module .daily-overview-table td,
.safari-daily-overview-module .daily-overview-daily-table th,
.safari-daily-overview-module .daily-overview-daily-table td {
    text-align: left !important;
}
.safari-daily-overview-module .daily-overview-subtable .daily-overview-subtable-header th,
.safari-daily-overview-module .daily-overview-subtable tbody td,
.safari-daily-overview-module .daily-overview-subtable .daily-overview-total-row td,
.safari-daily-overview-module .daily-overview-subtable .daily-overview-restaurant-total-row td {
    text-align: left !important;
}
/* DATE table: date column headers and data centered (per-date columns) */
.safari-daily-overview-module .daily-overview-daily-table td:not(:first-child) {
    text-align: center !important;
}
.safari-daily-overview-module .daily-overview-daily-table th:not(.daily-overview-metric-header) {
    text-align: center !important;
}
.safari-daily-overview-module .daily-overview-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}
.safari-daily-overview-module .daily-overview-total-row td,
.safari-daily-overview-module .daily-overview-restaurant-total-row td {
    border-top: 1px solid rgba(148, 163, 184, 0.45) !important;
    font-weight: 600;
}
.safari-daily-overview-module .daily-overview-metric-header {
    min-width: 0;
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}
.safari-daily-overview-module .daily-overview-daily-table .daily-overview-metric-header {
    width: 10% !important;
    min-width: 90px !important;
}
.safari-daily-overview-module .daily-overview-daily-wrap {
    width: 100%;
    overflow-x: auto;
}

/* Restaurant & Nationality subtables: same light borders (tbody/cells only – thead keeps golden header) */
.safari-daily-overview-module .daily-overview-subtable,
.safari-daily-overview-module .daily-overview-subtable.table,
.safari-daily-overview-module .daily-overview-subtable tbody td,
.safari-daily-overview-module .daily-overview-subtable thead,
.safari-daily-overview-module .daily-overview-subtable tbody,
.safari-daily-overview-module .daily-overview-subtable tbody tr,
.safari-daily-overview-module .table-responsive table td {
    background: transparent !important;
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}
.safari-daily-overview-module .daily-overview-subtable thead th,
.safari-daily-overview-module .table-responsive thead th {
    background: #03412efd !important;
    color: #fff !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}
.safari-daily-overview-module .daily-overview-subtable,
.safari-daily-overview-module .daily-overview-subtable table {
    border-collapse: collapse;
    margin-bottom: 0;
}
.safari-daily-overview-module .daily-overview-subtable-title th,
.safari-daily-overview-module .daily-overview-subtable-header th {
    background: #03412efd !important;
    color: #fff !important;
    font-weight: 600;
}
/* Subtable main header only: center (e.g. "Arrival", "Departure", "In-house", "Meal Count", "Top Nationalities Pax") */
.safari-daily-overview-module .daily-overview-subtable .daily-overview-subtable-title th {
    text-align: center !important;
}
/* Total row styling for Arrival, Departure, In-house */
.safari-daily-overview-module .daily-overview-arrival-table .daily-overview-total-row td,
.safari-daily-overview-module .daily-overview-departure-table .daily-overview-total-row td,
.safari-daily-overview-module .daily-overview-inhouse-table .daily-overview-total-row td {
    border-top: 1px solid rgba(148, 163, 184, 0.45) !important;
    font-weight: 600;
}
.safari-daily-overview-module .daily-overview-inhouse-table .daily-overview-total-row td {
    border-top: 1px solid rgba(148, 163, 184, 0.5) !important;
    font-weight: 600;
}
.safari-daily-overview-module .daily-overview-subtable tbody tr:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Daily Overview: Arrival, Departure, Inhouse – auto column widths, full width, responsive */
.safari-daily-overview-module .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.safari-daily-overview-module .daily-overview-arrival-table,
.safari-daily-overview-module .daily-overview-departure-table,
.safari-daily-overview-module .daily-overview-inhouse-table {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
    max-width: 100%;
}
/* Consistent cell padding (aligns with px-4 py-2); prevent text overflow */
.safari-daily-overview-module .daily-overview-arrival-table th,
.safari-daily-overview-module .daily-overview-arrival-table td,
.safari-daily-overview-module .daily-overview-departure-table th,
.safari-daily-overview-module .daily-overview-departure-table td,
.safari-daily-overview-module .daily-overview-inhouse-table th,
.safari-daily-overview-module .daily-overview-inhouse-table td {
    padding: 0.5rem 1rem;
    vertical-align: middle;
    min-width: 0;
}
/* Remarks: wrap long text, cap width to avoid horizontal scroll */
.safari-daily-overview-module .daily-overview-arrival-table .daily-overview-remarks,
.safari-daily-overview-module .daily-overview-departure-table .daily-overview-remarks,
.safari-daily-overview-module .daily-overview-inhouse-table .daily-overview-remarks {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 220px;
    min-width: 0;
    box-sizing: border-box;
    line-height: 1.35;
}

/* Daily Overview: main section title row only – center (all subtables: Arrival, Departure, In-house, Meal Count, Nationality) */
.safari-daily-overview-module .daily-overview-subtable .daily-overview-subtable-title th {
    text-align: center !important;
}

/* Daily Overview: title centered and bold */
.safari-daily-overview-module .daily-overview-title {
    text-align: center !important;
    font-weight: 700 !important;
}

/* Daily Overview: logo – centered full width */
.safari-daily-overview-module .daily-overview-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.safari-daily-overview-module .daily-overview-logo {
    display: block;
    margin: 0;
    max-width: 100%;
    height: auto;
}

/* Section titles (report structure; PDF-friendly) */
.safari-daily-overview-module .daily-overview-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(226, 232, 240, 0.85);
    margin: 0 0 0.4rem 0;
    padding: 0;
    line-height: 1.3;
}
.safari-daily-overview-module .daily-overview-print-section {
    margin-bottom: 0;
}
.safari-daily-overview-module .daily-overview-report-meta {
    margin-top: -0.25rem;
}

/*
 * Daily Overview – PDF/export popup only (body class from app.js).
 * That window has no #moduleContent, so global module table rules do not apply; use a light “report” grid with real borders.
 */
body.safari-daily-overview-export {
    background: #fff !important;
    color: #1a1a1a !important;
    margin: 0;
    padding: 0.75rem;
}
body.safari-daily-overview-export .safari-daily-overview-module,
body.safari-daily-overview-export .safari-daily-overview-module .card,
body.safari-daily-overview-export .safari-daily-overview-module .card-body {
    background: #fff !important;
    background-color: #fff !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
    border: none !important;
}
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-title,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-section-title {
    color: #0f172a !important;
}
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-report-meta,
body.safari-daily-overview-export .safari-daily-overview-module .text-white-50 {
    color: #475569 !important;
}
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-logo-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    border-bottom: 2px solid #0f172a !important;
}
body.safari-daily-overview-export .safari-daily-overview-module table {
    border-collapse: collapse !important;
    border: 2px solid #334155 !important;
    width: 100%;
}
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-table th,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-table td,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-subtable th,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-subtable td,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-daily-table th,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-daily-table td,
body.safari-daily-overview-export .safari-daily-overview-module .table-responsive table th,
body.safari-daily-overview-export .safari-daily-overview-module .table-responsive table td {
    border: 1px solid #475569 !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #1a1a1a !important;
}
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-table thead th,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-subtable-title th,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-subtable-header th,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-daily-table thead th,
body.safari-daily-overview-export .safari-daily-overview-module .table-responsive thead th {
    background: #7de7d3 !important;
    background-color: #7de7d3 !important;
    color: #0f172a !important;
    border: 1px solid #334155 !important;
}
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-total-row td,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-restaurant-total-row td {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border: 1px solid #475569 !important;
}
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-arrival-rm-no {
    background: #fff !important;
    color: #1a1a1a !important;
    border: 1px solid #64748b !important;
}

/* PDF popup preview: Seven-Day Summary same compact grid as print */
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-print-section-daily .daily-overview-daily-wrap {
    page-break-inside: avoid;
    break-inside: avoid;
}
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-daily-table {
    table-layout: fixed !important;
    width: 100% !important;
    font-size: 0.7rem !important;
}
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-daily-table thead th,
body.safari-daily-overview-export .safari-daily-overview-module .daily-overview-daily-table tbody td {
    padding: 0.2rem 0.15rem !important;
    vertical-align: middle !important;
}

/* Daily Overview: print / Save as PDF – professional light report (overrides dark theme + #moduleContent tbody !important) */
@media print {
    @page {
        size: A4 landscape;
        margin: 1cm;
    }

    html {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body:has(.safari-daily-overview-module) {
        background: #fff !important;
        background-image: none !important;
        color: #1a1a1a !important;
        font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
    }

    body:has(.safari-daily-overview-module) .safari-main {
        margin-top: 0 !important;
        padding-top: 0.5rem !important;
        min-height: 0 !important;
    }

    body:has(.safari-daily-overview-module) #mainContent,
    body:has(.safari-daily-overview-module) #moduleContent {
        background: #fff !important;
        color: #1a1a1a !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Force entire module visible */
    .safari-daily-overview-module,
    .safari-daily-overview-module * {
        visibility: visible !important;
    }

    body:has(.safari-daily-overview-module) .safari-header,
    body:has(.safari-daily-overview-module) .safari-mobile-sidebar,
    body:has(.safari-daily-overview-module) .offcanvas-backdrop {
        display: none !important;
    }

    .safari-daily-overview-module #dailyOverviewDateForm,
    .safari-daily-overview-module #dailyOverviewBtnExportPdf {
        display: none !important;
    }

    /* Kill dark module shell (high specificity vs #moduleContent rules) */
    body:has(.safari-daily-overview-module) #moduleContent .safari-daily-overview-module.module-card,
    body:has(.safari-daily-overview-module) #moduleContent .safari-daily-overview-module.card,
    .safari-daily-overview-module,
    .safari-daily-overview-module .card,
    .safari-daily-overview-module .card-header,
    .safari-daily-overview-module .card-body {
        background: #fff !important;
        background-color: #fff !important;
        background-image: none !important;
        box-shadow: none !important;
        border-color: #cbd5e1 !important;
        color: #1a1a1a !important;
    }

    .safari-daily-overview-module {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        max-width: 100% !important;
    }

    .safari-daily-overview-module .daily-overview-logo-wrap {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0.35rem 0 0.5rem 0 !important;
        margin-bottom: 0.25rem !important;
        border-bottom: 2px solid #0f172a !important;
        background: #fff !important;
    }

    .safari-daily-overview-module .daily-overview-logo {
        display: block !important;
        margin: 0 auto !important;
        max-height: 52px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .safari-daily-overview-module .card-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        border-bottom: 1px solid #94a3b8 !important;
        padding: 0.5rem 0 0.75rem !important;
        page-break-after: avoid !important;
    }

    .safari-daily-overview-module .daily-overview-title {
        color: #0f172a !important;
        font-weight: 700 !important;
        font-size: 1.35rem !important;
        margin: 0 !important;
    }

    .safari-daily-overview-module .daily-overview-report-meta,
    .safari-daily-overview-module .text-white-50 {
        color: #475569 !important;
    }

    /* Section spacing + titles */
    .safari-daily-overview-module .daily-overview-print-section {
        margin-bottom: 0.85rem !important;
        page-break-inside: avoid;
    }

    .safari-daily-overview-module .daily-overview-print-section-wide {
        page-break-inside: auto;
    }

    .safari-daily-overview-module .daily-overview-section-title {
        color: #0f172a !important;
        font-size: 9.5pt !important;
        font-weight: 700 !important;
        text-transform: none !important;
        letter-spacing: 0.02em !important;
        margin: 0 0 0.35rem 0 !important;
        padding: 0 !important;
        page-break-after: avoid !important;
        border-bottom: none !important;
    }

    /* Seven-Day Summary: keep title + table on one page (no split across sheets) */
    .safari-daily-overview-module .daily-overview-print-section-daily {
        margin-top: 0.5rem !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .safari-daily-overview-module .daily-overview-print-section-daily .daily-overview-daily-wrap {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Drop duplicate in-table banner (h3 is the section title) */
    .safari-daily-overview-module .daily-overview-restaurant-table tr.daily-overview-subtable-title,
    .safari-daily-overview-module .daily-overview-nationality-table tr.daily-overview-subtable-title,
    .safari-daily-overview-module .daily-overview-arrival-table tr.daily-overview-subtable-title,
    .safari-daily-overview-module .daily-overview-departure-table tr.daily-overview-subtable-title,
    .safari-daily-overview-module .daily-overview-inhouse-table tr.daily-overview-subtable-title {
        display: none !important;
    }

    /* Table headers: brand mint (#7DE7D3), dark text for contrast */
    .safari-daily-overview-module .daily-overview-table thead th,
    .safari-daily-overview-module .daily-overview-subtable thead th,
    .safari-daily-overview-module .daily-overview-subtable-title th,
    .safari-daily-overview-module .daily-overview-subtable-header th,
    .safari-daily-overview-module .table-responsive thead th {
        background: #7de7d3 !important;
        background-color: #7de7d3 !important;
        color: #0f172a !important;
        font-weight: 600 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .safari-daily-overview-module .daily-overview-daily-table thead th .small,
    .safari-daily-overview-module .daily-overview-daily-table thead th .text-white-50 {
        color: #334155 !important;
    }

    /*
     * Table body: force white + dark text.
     * Must beat #moduleContent .module-card .table tbody td { background rgba(15,23,42,0.6) !important }
     * using #moduleContent .module-card.safari-daily-overview-module (extra class = higher specificity).
     */
    #moduleContent .module-card.safari-daily-overview-module .table tbody,
    #moduleContent .module-card.safari-daily-overview-module .table tbody tr,
    #moduleContent .module-card.safari-daily-overview-module .table tbody td,
    #moduleContent .module-card.safari-daily-overview-module .safari-table tbody,
    #moduleContent .module-card.safari-daily-overview-module .safari-table tbody tr,
    #moduleContent .module-card.safari-daily-overview-module .safari-table tbody td,
    body:has(.safari-daily-overview-module) #moduleContent .safari-daily-overview-module .table tbody,
    body:has(.safari-daily-overview-module) #moduleContent .safari-daily-overview-module .table tbody tr,
    body:has(.safari-daily-overview-module) #moduleContent .safari-daily-overview-module .table tbody td,
    body:has(.safari-daily-overview-module) #moduleContent .safari-daily-overview-module .safari-table tbody,
    body:has(.safari-daily-overview-module) #moduleContent .safari-daily-overview-module .safari-table tbody tr,
    body:has(.safari-daily-overview-module) #moduleContent .safari-daily-overview-module .safari-table tbody td,
    .safari-daily-overview-module .daily-overview-table tbody,
    .safari-daily-overview-module .daily-overview-table tbody tr,
    .safari-daily-overview-module .daily-overview-table tbody td,
    .safari-daily-overview-module .daily-overview-subtable tbody,
    .safari-daily-overview-module .daily-overview-subtable tbody tr,
    .safari-daily-overview-module .daily-overview-subtable tbody td,
    .safari-daily-overview-module .table-responsive tbody td {
        background: #fff !important;
        background-color: #fff !important;
        color: #1a1a1a !important;
    }

    .safari-daily-overview-module .daily-overview-total-row td,
    .safari-daily-overview-module .daily-overview-restaurant-total-row td {
        background: #f1f5f9 !important;
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        font-weight: 700 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .safari-daily-overview-module table {
        border-collapse: collapse !important;
        width: 100% !important;
        font-size: 8.5pt !important;
    }

    body.safari-daily-overview-export .safari-daily-overview-module table,
    .safari-daily-overview-module table.daily-overview-table,
    .safari-daily-overview-module table.daily-overview-subtable,
    .safari-daily-overview-module table.daily-overview-daily-table {
        border: 2px solid #334155 !important;
    }

    .safari-daily-overview-module thead {
        display: table-header-group !important;
    }

    .safari-daily-overview-module tfoot {
        display: table-footer-group !important;
    }

    .safari-daily-overview-module .daily-overview-table th,
    .safari-daily-overview-module .daily-overview-table td,
    .safari-daily-overview-module .daily-overview-subtable th,
    .safari-daily-overview-module .daily-overview-subtable td,
    .safari-daily-overview-module .daily-overview-daily-table th,
    .safari-daily-overview-module .daily-overview-daily-table td,
    .safari-daily-overview-module .table-responsive table th,
    .safari-daily-overview-module .table-responsive table td {
        border: 1px solid #334155 !important;
        padding: 0.28rem 0.45rem !important;
        vertical-align: middle !important;
    }

    .safari-daily-overview-module .row .col-md-6 .daily-overview-table,
    .safari-daily-overview-module .row .col-md-6 .daily-overview-restaurant-table,
    .safari-daily-overview-module .row .col-md-6 .daily-overview-nationality-table {
        border: 1px solid #64748b !important;
    }

    .safari-daily-overview-module .daily-overview-daily-table th,
    .safari-daily-overview-module .daily-overview-daily-table td {
        border: 1px solid #334155 !important;
    }

    /* Seven-day grid: compact so one block fits a single landscape A4 sheet with page-break-inside: avoid */
    .safari-daily-overview-module .daily-overview-daily-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .safari-daily-overview-module .daily-overview-daily-table {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        table-layout: fixed !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 6pt !important;
    }
    .safari-daily-overview-module .daily-overview-daily-table thead th {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.1 !important;
        padding: 0.12rem 0.1rem !important;
        vertical-align: bottom !important;
    }
    .safari-daily-overview-module .daily-overview-daily-table thead th .d-block {
        display: block !important;
        max-width: 100% !important;
    }
    .safari-daily-overview-module .daily-overview-daily-table tbody td {
        white-space: nowrap !important;
        padding: 0.12rem 0.1rem !important;
        font-size: 6pt !important;
    }
    .safari-daily-overview-module .daily-overview-daily-table tbody td:first-child {
        white-space: normal !important;
        width: 12% !important;
    }
    .safari-daily-overview-module .daily-overview-daily-table thead th:not(:first-child) {
        width: 12.5% !important;
    }

    /* Arrival RM No input reads as plain cell in PDF */
    .safari-daily-overview-module .daily-overview-arrival-rm-no {
        background: #fff !important;
        color: #1a1a1a !important;
        border: 1px solid #94a3b8 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-shadow: none !important;
    }

    .safari-daily-overview-module .table-responsive {
        overflow: visible !important;
    }

    /* Multi-page tables: repeat header; allow row breaks */
    .safari-daily-overview-module .daily-overview-arrival-table tr,
    .safari-daily-overview-module .daily-overview-departure-table tr,
    .safari-daily-overview-module .daily-overview-inhouse-table tr {
        page-break-inside: avoid;
    }

    .safari-daily-overview-module .row {
        --bs-gutter-x: 0.75rem;
    }
}

/* --- Arrival modern layout --- */
.arrival-modern .arrival-modern-body {
    padding: 0 1.5rem 1.75rem;
    /* background set by .safari-arrival-module.arrival-modern .card-body (dark) */
}
/* Hero header with accent */
.arrival-hero {
    position: relative;
    margin: 0 -1.5rem 1.25rem;
    padding: 1.25rem 1.5rem 1.35rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.5) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.arrival-hero-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}
.arrival-hero-inner {
    position: relative;
    z-index: 1;
}
.arrival-hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fbbf24;
    margin-bottom: 0.35rem;
}
.arrival-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.arrival-hero-date {
    font-size: 0.95rem;
    color: rgba(203, 213, 225, 0.9);
    margin: 0.4rem 0 0;
    font-weight: 500;
}
.arrival-modern-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.arrival-stat-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 4rem;
    padding: 0.5rem 0.85rem;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 0.75rem;
    color: #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.arrival-stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
.arrival-stat-pill-main {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}
.arrival-stat-pill-main .arrival-stat-value {
    color: #fcd34d;
}
.arrival-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #93c5fd;
    line-height: 1.2;
}
.arrival-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(148, 163, 184, 0.9);
    margin-top: 0.15rem;
}
.arrival-stats-hint {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.85);
    margin: 0 0 0 0.5rem;
}
.arrival-modern-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.arrival-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
/* View toggle Table | Cards */
.arrival-view-toggle {
    display: inline-flex;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 2px;
}
.arrival-view-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.8);
    background: transparent;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.arrival-view-btn:hover {
    color: #e2e8f0;
}
.arrival-view-btn.is-active {
    background: rgba(59, 130, 246, 0.5);
    color: #fff;
}
.arrival-content-panel {
    display: none;
}
.arrival-content-panel.is-active {
    display: block;
}
.arrival-content-panel[hidden] {
    display: none !important;
}
.arrival-search-wrap {
    position: relative;
    width: 100%;
    max-width: 280px;
}
.arrival-search-wrap .arrival-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(148, 163, 184, 0.7);
    pointer-events: none;
}
.arrival-search-input {
    padding-left: 2.5rem !important;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.9rem;
}
.arrival-search-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}
.arrival-date-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.arrival-date-label {
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.8);
    margin: 0;
    white-space: nowrap;
}
.arrival-date-input {
    width: auto;
    min-width: 140px;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.9rem;
}
.arrival-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.arrival-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.arrival-btn svg {
    flex-shrink: 0;
}
.arrival-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}
.arrival-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.arrival-btn-primary {
    background: rgba(59, 130, 246, 0.9);
    border-color: rgba(59, 130, 246, 0.9);
    color: #fff;
}
.arrival-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.arrival-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.arrival-table-panel {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
}
.arrival-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.arrival-modern .arrival-table-modern {
    margin-bottom: 0;
    font-size: 0.85rem;
}
.arrival-modern .arrival-table-modern thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(30, 41, 59, 0.95) !important;
    padding: 0.65rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(226, 232, 240, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}
.arrival-modern .arrival-table-modern tbody td {
    padding: 0.6rem 0.5rem;
    vertical-align: middle;
}
/* Table row hover lift + stagger animation */
.arrival-row-animate {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.arrival-dynamic .arrival-table-modern tbody tr.arrival-row-animate:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.arrival-row-animate {
    animation: arrivalRowIn 0.35s ease backwards;
}
.arrival-row-animate[data-index="0"] { animation-delay: 0.02s; }
.arrival-row-animate[data-index="1"] { animation-delay: 0.05s; }
.arrival-row-animate[data-index="2"] { animation-delay: 0.08s; }
.arrival-row-animate[data-index="3"] { animation-delay: 0.11s; }
.arrival-row-animate[data-index="4"] { animation-delay: 0.14s; }
.arrival-row-animate[data-index="5"] { animation-delay: 0.17s; }
.arrival-row-animate[data-index="6"] { animation-delay: 0.2s; }
.arrival-row-animate[data-index="7"] { animation-delay: 0.23s; }
.arrival-row-animate[data-index="8"] { animation-delay: 0.26s; }
.arrival-row-animate[data-index="9"] { animation-delay: 0.29s; }
@keyframes arrivalRowIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.arrival-modern .arrival-table-modern .arrival-th-actions {
    width: 1%;
    white-space: nowrap;
}
.arrival-empty-row td {
    padding: 2.5rem 1rem !important;
    border: none;
    vertical-align: middle;
}
.arrival-empty-state {
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}
.arrival-empty-icon {
    color: rgba(148, 163, 184, 0.5);
    margin-bottom: 0.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.arrival-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
    margin: 0 0 0.25rem;
}
.arrival-empty-sub {
    font-size: 0.875rem;
    color: rgba(148, 163, 184, 0.8);
    margin: 0;
}
.arrival-modern .arrival-totals-row td {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
}

/* Cards view */
.arrival-cards-panel {
    background: transparent;
    padding: 0;
}
.arrival-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.arrival-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.arrival-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-color: rgba(245, 158, 11, 0.35);
}
.arrival-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.arrival-card-room {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
}
.arrival-card-meal {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.95);
    text-transform: uppercase;
}
.arrival-card-guest {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.arrival-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: rgba(203, 213, 225, 0.9);
    margin-bottom: 0.5rem;
}
.arrival-card-flights {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 0.5rem;
}
.arrival-card-remarks {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.8);
    margin: 0 0 0.75rem;
    line-height: 1.4;
}
.arrival-card-actions {
    display: flex;
    gap: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.arrival-card-actions .arrival-action-icon {
    padding: 0.35rem;
}
.arrival-card-animate {
    animation: arrivalCardIn 0.4s ease backwards;
}
.arrival-card-animate[data-index="0"] { animation-delay: 0.03s; }
.arrival-card-animate[data-index="1"] { animation-delay: 0.07s; }
.arrival-card-animate[data-index="2"] { animation-delay: 0.11s; }
.arrival-card-animate[data-index="3"] { animation-delay: 0.15s; }
.arrival-card-animate[data-index="4"] { animation-delay: 0.19s; }
.arrival-card-animate[data-index="5"] { animation-delay: 0.23s; }
.arrival-card-animate[data-index="6"] { animation-delay: 0.27s; }
.arrival-card-animate[data-index="7"] { animation-delay: 0.31s; }
.arrival-card-animate[data-index="8"] { animation-delay: 0.35s; }
.arrival-card-animate[data-index="9"] { animation-delay: 0.39s; }
@keyframes arrivalCardIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.arrival-cards-empty {
    padding: 2.5rem 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .arrival-modern-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .arrival-toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }
    .arrival-search-wrap {
        max-width: none;
    }
}

/* --- Shared dynamic layout (Departure, Inhouse, Meal Plans, Nationality) --- */
.module-dynamic .module-dynamic-body {
    padding: 0 1.5rem 1.75rem;
    background: transparent;
}
.module-hero {
    position: relative;
    margin: 0 -1.5rem 1.25rem;
    padding: 1.25rem 1.5rem 1.35rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.5) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.module-hero-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0 2px 2px 0;
}
.departure-dynamic .module-hero-accent {
    background: linear-gradient(180deg, #eab308 0%, #ca8a04 50%, #a16207 100%);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.35);
}
.inhouse-dynamic .module-hero-accent {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}
.meal-plans-dynamic .module-hero-accent {
    background: linear-gradient(180deg, #ec4899 0%, #db2777 50%, #be185d 100%);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}
.nationality-dynamic .module-hero-accent {
    background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}
.module-hero-inner { position: relative; z-index: 1; }
.module-hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}
.departure-dynamic .module-hero-badge { color: #fde047; }
.inhouse-dynamic .module-hero-badge { color: #4ade80; }
.meal-plans-dynamic .module-hero-badge { color: #f472b6; }
.nationality-dynamic .module-hero-badge { color: #a78bfa; }
.module-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.module-hero-date { font-size: 0.95rem; color: rgba(203, 213, 225, 0.9); margin: 0.4rem 0 0; font-weight: 500; }
.module-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.module-stat-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 4rem;
    padding: 0.5rem 0.85rem;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 0.75rem;
    color: #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module-stat-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); }
.departure-dynamic .module-stat-pill-main { background: rgba(234, 179, 8, 0.22); border-color: rgba(234, 179, 8, 0.4); }
.departure-dynamic .module-stat-pill-main .module-stat-value { color: #fde047; }
.inhouse-dynamic .module-stat-pill-main { background: rgba(34, 197, 94, 0.22); border-color: rgba(34, 197, 94, 0.4); }
.inhouse-dynamic .module-stat-pill-main .module-stat-value { color: #4ade80; }
.meal-plans-dynamic .module-stat-pill-main { background: rgba(236, 72, 153, 0.22); border-color: rgba(236, 72, 153, 0.4); }
.meal-plans-dynamic .module-stat-pill-main .module-stat-value { color: #f472b6; }
.nationality-dynamic .module-stat-pill-main { background: rgba(139, 92, 246, 0.22); border-color: rgba(139, 92, 246, 0.4); }
.nationality-dynamic .module-stat-pill-main .module-stat-value { color: #a78bfa; }
.module-stat-value { font-size: 1.25rem; font-weight: 700; color: #93c5fd; line-height: 1.2; }
.module-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(148, 163, 184, 0.9); margin-top: 0.15rem; }
.module-stats-hint { font-size: 0.8rem; color: rgba(148, 163, 184, 0.85); margin: 0 0 0 0.5rem; }
.module-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.module-toolbar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.module-toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.module-view-toggle {
    display: inline-flex;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 2px;
}
.module-view-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.8);
    background: transparent;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.module-view-btn:hover { color: #e2e8f0; }
.module-view-btn.is-active { background: rgba(59, 130, 246, 0.5); color: #fff; }
.module-content-panel { display: none; }
.module-content-panel.is-active { display: block; }
.module-content-panel[hidden] { display: none !important; }
.module-search-wrap { position: relative; max-width: 280px; }
.module-search-wrap .module-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(148, 163, 184, 0.7);
    pointer-events: none;
}
.module-search-input {
    padding-left: 2.5rem !important;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.9rem;
}
.module-date-wrap { display: flex; align-items: center; gap: 0.5rem; }
.module-date-label { font-size: 0.8rem; color: rgba(226, 232, 240, 0.8); margin: 0; white-space: nowrap; }
.module-date-input {
    min-width: 140px;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.9rem;
}
.module-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.module-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}
.module-btn-secondary:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.module-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: rgba(59, 130, 246, 0.8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.module-btn-primary:hover { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.module-table-panel {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
}
.module-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.module-dynamic .module-table-modern { margin-bottom: 0; font-size: 0.85rem; }
.module-dynamic .module-table-modern thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(30, 41, 59, 0.95) !important;
    padding: 0.65rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(226, 232, 240, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}
.module-dynamic .module-table-modern tbody td { padding: 0.6rem 0.5rem; vertical-align: middle; }
.module-dynamic .module-table-modern .module-th-actions { width: 1%; white-space: nowrap; }
.module-row-animate { transition: transform 0.2s ease, box-shadow 0.2s ease; animation: moduleRowIn 0.35s ease backwards; }
.module-dynamic .module-table-modern tbody tr.module-row-animate:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.module-row-animate[data-index="0"] { animation-delay: 0.02s; }
.module-row-animate[data-index="1"] { animation-delay: 0.05s; }
.module-row-animate[data-index="2"] { animation-delay: 0.08s; }
.module-row-animate[data-index="3"] { animation-delay: 0.11s; }
.module-row-animate[data-index="4"] { animation-delay: 0.14s; }
.module-row-animate[data-index="5"] { animation-delay: 0.17s; }
.module-row-animate[data-index="6"] { animation-delay: 0.2s; }
.module-row-animate[data-index="7"] { animation-delay: 0.23s; }
.module-row-animate[data-index="8"] { animation-delay: 0.26s; }
.module-row-animate[data-index="9"] { animation-delay: 0.29s; }
@keyframes moduleRowIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.module-totals-row td { font-weight: 600; color: rgba(226, 232, 240, 0.95); border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 0.5rem; }
.module-empty-row td { padding: 2.5rem 1rem !important; border: none; vertical-align: middle; }
.module-empty-state { text-align: center; max-width: 320px; margin: 0 auto; }
.module-empty-icon { color: rgba(148, 163, 184, 0.5); margin-bottom: 0.75rem; display: block; margin-left: auto; margin-right: auto; }
.module-empty-title { font-size: 1rem; font-weight: 600; color: rgba(226, 232, 240, 0.9); margin: 0 0 0.25rem; }
.module-empty-sub { font-size: 0.875rem; color: rgba(148, 163, 184, 0.8); margin: 0; }
.module-cards-panel { background: transparent; padding: 0; }
.module-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.module-cards-grid-fixed { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.module-card-item {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.module-card-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.departure-dynamic .module-card-item:hover { border-color: rgba(234, 179, 8, 0.35); }
.inhouse-dynamic .module-card-item:hover { border-color: rgba(34, 197, 94, 0.35); }
.module-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.module-card-room { font-size: 0.85rem; font-weight: 700; color: #fcd34d; background: rgba(245, 158, 11, 0.2); padding: 0.25rem 0.5rem; border-radius: 0.35rem; }
.module-card-meal { font-size: 0.75rem; font-weight: 600; color: rgba(148, 163, 184, 0.95); text-transform: uppercase; }
.module-card-guest { font-size: 1rem; font-weight: 600; color: #f1f5f9; margin: 0 0 0.5rem; line-height: 1.35; }
.module-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; font-size: 0.8rem; color: rgba(203, 213, 225, 0.9); margin-bottom: 0.5rem; }
.module-card-flights { display: flex; gap: 1rem; font-size: 0.8rem; color: rgba(148, 163, 184, 0.95); margin-bottom: 0.5rem; }
.module-card-remarks { font-size: 0.78rem; color: rgba(148, 163, 184, 0.8); margin: 0 0 0.75rem; line-height: 1.4; }
.module-card-actions { display: flex; gap: 0.35rem; padding-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.module-card-actions .departure-action-icon,
.module-card-actions .inhouse-action-icon { padding: 0.35rem; }
.module-card-animate { animation: moduleCardIn 0.4s ease backwards; }
.module-card-animate[data-index="0"] { animation-delay: 0.03s; }
.module-card-animate[data-index="1"] { animation-delay: 0.07s; }
.module-card-animate[data-index="2"] { animation-delay: 0.11s; }
.module-card-animate[data-index="3"] { animation-delay: 0.15s; }
.module-card-animate[data-index="4"] { animation-delay: 0.19s; }
.module-card-animate[data-index="5"] { animation-delay: 0.23s; }
.module-card-animate[data-index="6"] { animation-delay: 0.27s; }
.module-card-animate[data-index="7"] { animation-delay: 0.31s; }
.module-card-animate[data-index="8"] { animation-delay: 0.35s; }
.module-card-animate[data-index="9"] { animation-delay: 0.39s; }
@keyframes moduleCardIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.module-card-stat {
    text-align: center;
    padding: 1.25rem 1rem;
}
.module-card-stat-value { display: block; font-size: 1.75rem; font-weight: 800; color: #e2e8f0; line-height: 1.2; }
.module-card-stat-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: rgba(148, 163, 184, 0.95); margin-top: 0.25rem; }
.module-card-stat-desc { display: block; font-size: 0.75rem; color: rgba(148, 163, 184, 0.8); margin-top: 0.15rem; }
.module-card-stat-sub { display: block; font-size: 0.7rem; color: rgba(148, 163, 184, 0.7); margin-top: 0.2rem; }
.module-card-stat-total .module-card-stat-value { color: #fcd34d; }
.module-cards-empty { padding: 2.5rem 1rem; text-align: center; }

/* --- Meal Plans & Nationality: same as arrival (dark panel + tbody, no white) --- */
.module-card.meal-plans-dynamic,
.meal-plans-dynamic .card-body,
.module-card.nationality-dynamic,
.nationality-dynamic .card-body {
    background: transparent !important;
    background-color: transparent !important;
}
.meal-plans-dynamic .module-table-panel,
.nationality-dynamic .module-table-panel {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
}
.meal-plans-dynamic .module-table-wrap,
.meal-plans-dynamic .module-table-modern,
.meal-plans-dynamic .module-table-modern thead th,
.meal-plans-dynamic .module-table-modern tbody tr,
.meal-plans-dynamic .module-table-modern tbody tr:nth-of-type(odd),
.meal-plans-dynamic .module-table-modern tbody tr:nth-of-type(even),
.meal-plans-dynamic .module-table-modern tbody td,
.nationality-dynamic .module-table-wrap,
.nationality-dynamic .module-table-modern,
.nationality-dynamic .module-table-modern thead th,
.nationality-dynamic .module-table-modern tbody tr,
.nationality-dynamic .module-table-modern tbody tr:nth-of-type(odd),
.nationality-dynamic .module-table-modern tbody tr:nth-of-type(even),
.nationality-dynamic .module-table-modern tbody td {
    background: transparent !important;
    background-color: transparent !important;
}
#mealPlansTableBody,
#nationalityTableBody {
    background: rgba(0, 0, 0, 0.4) !important;
}
#mealPlansTableBody,
#mealPlansTableBody td,
#mealPlansTableBody th,
#nationalityTableBody,
#nationalityTableBody td,
#nationalityTableBody th {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.meal-plans-dynamic .module-table-modern tfoot tr,
.nationality-dynamic .module-table-modern tfoot tr {
    background: rgba(0, 0, 0, 0.25) !important;
}
.meal-plans-dynamic .module-table-modern tfoot th,
.nationality-dynamic .module-table-modern tfoot th {
    color: rgba(226, 232, 240, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.meal-plans-dynamic .module-table-modern tbody tr:hover,
.nationality-dynamic .module-table-modern tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
.meal-plans-dynamic .module-table-modern thead th,
.nationality-dynamic .module-table-modern thead th {
    background: rgba(30, 41, 59, 0.95) !important;
    color: rgba(226, 232, 240, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.meal-plans-dynamic .badge.meal-plan-badge {
    background: rgba(236, 72, 153, 0.35);
    color: #f9a8d4;
}
.meal-plans-dynamic .module-table-modern .text-muted,
.nationality-dynamic .module-table-modern .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Departure module: same as arrival (transparent, dark table, remarks wrap) --- */
.safari-departure-module,
.safari-departure-module .card,
.safari-departure-module .card-header,
.safari-departure-module .card-body,
.safari-departure-module .table,
.safari-departure-module .safari-table,
.safari-departure-module .safari-table thead th,
.safari-departure-module .safari-table tbody,
.safari-departure-module .safari-table tbody td,
.safari-departure-module .safari-table tbody tr,
.safari-departure-module .safari-table tfoot tr,
.safari-departure-module .table-responsive {
    background: transparent !important;
    background-color: transparent !important;
}
.safari-departure-module .departure-table-transparent,
.safari-departure-module .departure-table-transparent tbody,
.safari-departure-module .departure-table-transparent tbody tr,
.safari-departure-module .departure-table-transparent tbody tr:nth-of-type(odd),
.safari-departure-module .departure-table-transparent tbody tr:nth-of-type(even),
.safari-departure-module .departure-table-transparent tbody td,
#departureTableBody tr,
#departureTableBody td {
    background: transparent !important;
    background-color: transparent !important;
}
#departureTableBody {
    background: rgba(0, 0, 0, 0.4) !important;
}
#departureTableBody,
#departureTableBody td {
    color: #fff !important;
}
#departureTableBody .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}
/* Departure table: left-align text, cells auto-adjust to content */
.safari-departure-module #departureTable {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
}
.safari-departure-module #departureTable thead th,
.safari-departure-module #departureTable tbody td {
    text-align: left;
}
.safari-departure-module .safari-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
.safari-departure-module .departure-remarks {
    white-space: normal !important;
    word-wrap: break-word;
    max-width: 200px;
}
.safari-departure-module .departure-action-icon {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: rgba(226, 232, 240, 0.9);
    opacity: 0.8;
}
.safari-departure-module .departure-action-icon:hover {
    opacity: 1;
    color: #fff;
}
.safari-departure-module .departure-action-icon.departure-edit:hover { color: #60a5fa; }
.safari-departure-module .departure-action-icon.departure-review-link:hover { color: #fbbf24; }
.safari-departure-module .departure-action-icon.departure-delete:hover { color: #f87171; }
.safari-departure-module .departure-actions-cell {
    white-space: nowrap;
}

/* --- Inhouse module: same as arrival/departure (transparent, dark table, icons) --- */
.safari-inhouse-module,
.safari-inhouse-module .card,
.safari-inhouse-module .card-header,
.safari-inhouse-module .card-body,
.safari-inhouse-module .table,
.safari-inhouse-module .safari-table,
.safari-inhouse-module .safari-table thead th,
.safari-inhouse-module .safari-table tbody,
.safari-inhouse-module .safari-table tbody td,
.safari-inhouse-module .safari-table tbody tr,
.safari-inhouse-module .safari-table tfoot tr,
.safari-inhouse-module .table-responsive {
    background: transparent !important;
    background-color: transparent !important;
}
.safari-inhouse-module .inhouse-table-transparent,
.safari-inhouse-module .inhouse-table-transparent tbody,
.safari-inhouse-module .inhouse-table-transparent tbody tr,
.safari-inhouse-module .inhouse-table-transparent tbody td,
#inhouseTableBody tr,
#inhouseTableBody td {
    background: transparent !important;
    background-color: transparent !important;
}
#inhouseTableBody {
    background: rgba(0, 0, 0, 0.4) !important;
}
#inhouseTableBody,
#inhouseTableBody td {
    color: #fff !important;
}
.safari-inhouse-module #inhouseTable tbody td {
    text-align: left;
}
#inhouseTableBody .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}
.safari-inhouse-module .safari-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
.safari-inhouse-module .inhouse-action-icon {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: rgba(226, 232, 240, 0.9);
    opacity: 0.8;
}
.safari-inhouse-module .inhouse-action-icon:hover {
    opacity: 1;
    color: #fff;
}
.safari-inhouse-module .inhouse-action-icon.inhouse-edit:hover { color: #60a5fa; }
.safari-inhouse-module .inhouse-action-icon.inhouse-delete:hover { color: #f87171; }

/* Guest Complaints module */
.safari-complaints-module .card-header,
.safari-complaints-module .card-body,
.safari-complaints-module .table,
.safari-complaints-module .safari-table,
.safari-complaints-module .safari-table thead th,
.safari-complaints-module .safari-table tbody,
.safari-complaints-module .safari-table tbody td,
.safari-complaints-module .safari-table tbody tr,
.safari-complaints-module .table-responsive {
    background: transparent !important;
    background-color: transparent !important;
}
.safari-complaints-module .complaints-table-transparent,
.safari-complaints-module .complaints-table-transparent tbody,
.safari-complaints-module .complaints-table-transparent tbody tr,
.safari-complaints-module .complaints-table-transparent tbody td,
#complaintsTableBody tr,
#complaintsTableBody td {
    background: transparent !important;
    background-color: transparent !important;
}
#complaintsTableBody {
    background: rgba(0, 0, 0, 0.4) !important;
}
#complaintsTableBody,
#complaintsTableBody td {
    color: #fff !important;
}
#complaintsTableBody .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}
.safari-complaints-module .complaints-table-transparent tbody tr[data-id] {
    cursor: pointer;
}
.safari-complaints-module .safari-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
.safari-complaints-module .complaint-desc,
.safari-complaints-module .complaint-action-taken,
.safari-complaints-module .complaint-work-done-clickable {
    cursor: pointer;
}
.safari-complaints-module .complaint-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.safari-complaints-module .complaint-actions a {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem;
    border-radius: 0.25rem;
}
.safari-complaints-module .complaint-btn-edit {
    color: #0d6efd;
}
.safari-complaints-module .complaint-btn-edit:hover {
    color: #0a58ca;
    background: rgba(13, 110, 253, 0.15);
}
.safari-complaints-module .complaint-btn-delete {
    color: #dc3545;
}
.safari-complaints-module .complaint-btn-delete:hover {
    color: #b02a37;
    background: rgba(220, 53, 69, 0.15);
}
.safari-complaints-module .complaint-work-done {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dinner Reservation module – dark theme, no white background */
.safari-dinner-reservation-module .card-header,
.safari-dinner-reservation-module .card-body,
.safari-dinner-reservation-module .table,
.safari-dinner-reservation-module .safari-table,
.safari-dinner-reservation-module .safari-table thead th,
.safari-dinner-reservation-module .safari-table tbody,
.safari-dinner-reservation-module .safari-table tbody td,
.safari-dinner-reservation-module .safari-table tbody tr,
.safari-dinner-reservation-module .table-responsive {
    background: transparent !important;
    background-color: transparent !important;
}
#dinnerReservationTable tbody,
#dinnerReservationTableBody,
#dinnerReservationTableBody tr,
#dinnerReservationTableBody td {
    background: rgba(15, 23, 42, 0.6) !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    color: #e2e8f0 !important;
}
#dinnerReservationTableBody .text-white-50 {
    color: rgba(226, 232, 240, 0.8) !important;
}
#dinnerReservationTable tbody tr:hover,
.safari-dinner-reservation-module .safari-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}
/* Actions column: horizontal (landscape) layout, colorful icons */
.safari-dinner-reservation-module .dinner-actions,
#dinnerReservationTableBody .dinner-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
}
.safari-dinner-reservation-module .dinner-actions a,
#dinnerReservationTableBody .dinner-actions a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.25rem !important;
    border-radius: 0.25rem !important;
    flex-shrink: 0 !important;
}
.safari-dinner-reservation-module .dinner-btn-edit,
#dinnerReservationTableBody .dinner-btn-edit,
.safari-dinner-reservation-module .dinner-btn-edit svg,
#dinnerReservationTableBody .dinner-btn-edit svg {
    color: #3b82f6 !important;
    fill: #3b82f6 !important;
}
.safari-dinner-reservation-module .dinner-btn-edit:hover,
#dinnerReservationTableBody .dinner-btn-edit:hover {
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.2) !important;
}
.safari-dinner-reservation-module .dinner-btn-edit:hover svg,
#dinnerReservationTableBody .dinner-btn-edit:hover svg {
    color: #60a5fa !important;
    fill: #60a5fa !important;
}
.safari-dinner-reservation-module .dinner-btn-delete,
#dinnerReservationTableBody .dinner-btn-delete,
.safari-dinner-reservation-module .dinner-btn-delete svg,
#dinnerReservationTableBody .dinner-btn-delete svg {
    color: #ef4444 !important;
    fill: #ef4444 !important;
}
.safari-dinner-reservation-module .dinner-btn-delete:hover,
#dinnerReservationTableBody .dinner-btn-delete:hover {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.2) !important;
}
.safari-dinner-reservation-module .dinner-btn-delete:hover svg,
#dinnerReservationTableBody .dinner-btn-delete:hover svg {
    color: #f87171 !important;
    fill: #f87171 !important;
}
#dinnerReservationTable th:last-child,
#dinnerReservationTableBody td.dinner-actions {
    min-width: 5rem;
}

/* Booked Excursions module – dark theme, no white background, horizontal colorful actions */
.safari-booked-excursions-module .card-header,
.safari-booked-excursions-module .card-body,
.safari-booked-excursions-module .table,
.safari-booked-excursions-module .safari-table,
.safari-booked-excursions-module .safari-table thead th,
.safari-booked-excursions-module .safari-table tbody,
.safari-booked-excursions-module .safari-table tbody td,
.safari-booked-excursions-module .safari-table tbody tr,
.safari-booked-excursions-module .table-responsive {
    background: transparent !important;
    background-color: transparent !important;
}
#bookedExcursionsTable tbody,
#bookedExcursionsTableBody,
#bookedExcursionsTableBody tr,
#bookedExcursionsTableBody td {
    background: rgba(15, 23, 42, 0.6) !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    color: #e2e8f0 !important;
}
#bookedExcursionsTableBody .text-white-50 {
    color: rgba(226, 232, 240, 0.8) !important;
}
#bookedExcursionsTable tbody tr:hover,
.safari-booked-excursions-module .safari-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}
.safari-booked-excursions-module .excursion-actions,
#bookedExcursionsTableBody .excursion-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
}
.safari-booked-excursions-module .excursion-actions a,
#bookedExcursionsTableBody .excursion-actions a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.25rem !important;
    border-radius: 0.25rem !important;
    flex-shrink: 0 !important;
}
.safari-booked-excursions-module .excursion-btn-edit,
#bookedExcursionsTableBody .excursion-btn-edit,
.safari-booked-excursions-module .excursion-btn-edit svg,
#bookedExcursionsTableBody .excursion-btn-edit svg {
    color: #3b82f6 !important;
    fill: #3b82f6 !important;
}
.safari-booked-excursions-module .excursion-btn-edit:hover,
#bookedExcursionsTableBody .excursion-btn-edit:hover {
    color: #60a5fa !important;
    background: rgba(59, 130, 246, 0.2) !important;
}
.safari-booked-excursions-module .excursion-btn-edit:hover svg,
#bookedExcursionsTableBody .excursion-btn-edit:hover svg {
    color: #60a5fa !important;
    fill: #60a5fa !important;
}
.safari-booked-excursions-module .excursion-btn-delete,
#bookedExcursionsTableBody .excursion-btn-delete,
.safari-booked-excursions-module .excursion-btn-delete svg,
#bookedExcursionsTableBody .excursion-btn-delete svg {
    color: #ef4444 !important;
    fill: #ef4444 !important;
}
.safari-booked-excursions-module .excursion-btn-delete:hover,
#bookedExcursionsTableBody .excursion-btn-delete:hover {
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.2) !important;
}
.safari-booked-excursions-module .excursion-btn-delete:hover svg,
#bookedExcursionsTableBody .excursion-btn-delete:hover svg {
    color: #f87171 !important;
    fill: #f87171 !important;
}
#bookedExcursionsTable th:last-child,
#bookedExcursionsTableBody td.excursion-actions {
    min-width: 5rem;
}

/* Dinner Reservation Report & Booked Excursions Report – dark theme */
#dinnerReservationReportTableBody,
#dinnerReservationReportTableBody tr,
#dinnerReservationReportTableBody td,
#bookedExcursionsReportTableBody,
#bookedExcursionsReportTableBody tr,
#bookedExcursionsReportTableBody td {
    background: rgba(15, 23, 42, 0.6) !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    color: #e2e8f0 !important;
}
#dinnerReservationReportTableBody .text-white-50,
#bookedExcursionsReportTableBody .text-white-50 {
    color: rgba(226, 232, 240, 0.8) !important;
}

/* Complaint Reports – white text for table headers and rows */
.safari-complaint-reports-module .safari-table thead th,
.safari-complaint-reports-module .safari-table tbody td,
.safari-complaint-reports-module #complaintReportsTableBody,
.safari-complaint-reports-module #complaintReportsTableBody td {
    color: #fff !important;
}
.safari-complaint-reports-module #complaintReportsTableBody .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Special Wishes & Special Wishes Record – dark theme, transparent tables */
.safari-special-wishes-module .card-body,
.safari-special-wishes-module .table,
.safari-special-wishes-module .safari-table,
.safari-special-wishes-module .safari-table thead th,
.safari-special-wishes-module .safari-table tbody,
.safari-special-wishes-module .safari-table tbody td,
.safari-special-wishes-module .safari-table tbody tr,
.safari-special-wishes-module .table-responsive,
.safari-special-wishes-record-module .card-body,
.safari-special-wishes-record-module .table,
.safari-special-wishes-record-module .safari-table,
.safari-special-wishes-record-module .safari-table thead th,
.safari-special-wishes-record-module .safari-table tbody,
.safari-special-wishes-record-module .safari-table tbody td,
.safari-special-wishes-record-module .safari-table tbody tr,
.safari-special-wishes-record-module .table-responsive {
    background: transparent !important;
    background-color: transparent !important;
}
.safari-special-wishes-module .safari-table thead th,
.safari-special-wishes-module .safari-table tbody td,
.safari-special-wishes-record-module .safari-table thead th,
.safari-special-wishes-record-module .safari-table tbody td {
    color: #e2e8f0 !important;
}
.safari-special-wishes-module #specialWishesTableBody .text-white-50,
.safari-special-wishes-record-module #specialWishesRecordTableBody .text-white-50 {
    color: rgba(255, 255, 255, 0.85) !important;
}
.safari-special-wishes-module .safari-table tbody tr:hover,
.safari-special-wishes-record-module .safari-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Special Wishes – card layout (Special Wishes and Complaint Card) */
.special-wishes-card-page .special-wishes-card-body {
    background: transparent !important;
    color: #e2e8f0;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}
.special-wish-print-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.special-wish-btn-print {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.3);
}
.special-wish-btn-print:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}
@media print {
    /* Only hide everything when printing Special Wishes (so only that module shows) */
    body:has(.safari-special-wishes-module) * { visibility: hidden; }
    .safari-special-wishes-module .special-wishes-card-body,
    .safari-special-wishes-module .special-wishes-card-body * { visibility: visible; }
    .safari-special-wishes-module .special-wishes-card-body {
        position: absolute; left: 0; top: 0; width: 100%;
        background: #fff !important;
        color: #1e293b;
        max-width: none;
    }
    .safari-special-wishes-module .special-wish-card {
        background: #fff !important;
        border-color: #cbd5e1;
        color: #1e293b;
    }
    .safari-special-wishes-module .special-wish-card-intro,
    .safari-special-wishes-module .special-wish-card-label,
    .safari-special-wishes-module .special-wish-card-wishes,
    .safari-special-wishes-module .special-wish-field-row,
    .safari-special-wishes-module .special-wish-field-label,
    .safari-special-wishes-module .special-wish-field-value,
    .safari-special-wishes-module .special-wish-card-handover,
    .safari-special-wishes-module .special-wish-hotline-box,
    .safari-special-wishes-module .special-wish-hotline-box p { color: #1e293b !important; }
    .safari-special-wishes-module .special-wish-card-wishes { background: #f8fafc !important; border-color: #e2e8f0; }
    .safari-special-wishes-module .special-wish-hotline-box { background: #e0f2fe !important; border-color: #7dd3fc; }
}
.special-wish-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.75rem 2rem 2rem;
    margin-bottom: 1.5rem;
}
.special-wish-card:last-child { margin-bottom: 0; }
.special-wish-card-logo-wrap {
    margin-bottom: 1rem;
}
.special-wish-card-logo-img {
    max-height: 70px;
    width: auto;
    display: inline-block;
}
.special-wish-card-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
    margin-bottom: 1.25rem;
}
.special-wish-card-intro {
    margin-bottom: 1.25rem;
    line-height: 1.55;
    color: #cbd5e1;
}
.special-wish-card-intro p { margin-bottom: 0.5rem; }
.special-wish-card-intro p:last-child { margin-bottom: 0; }
.special-wish-card-label {
    font-weight: 700;
    text-decoration: underline;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}
.special-wish-card-wishes {
    min-height: 6rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.35rem;
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    white-space: pre-wrap;
}
.special-wish-card-wishes-empty {
    color: rgba(226, 232, 240, 0.6);
    font-style: italic;
}
.special-wish-card-fields {
    margin-bottom: 1.25rem;
}
.special-wish-field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}
.special-wish-field-label {
    font-weight: 600;
    color: #94a3b8;
    flex-shrink: 0;
}
.special-wish-field-value {
    color: #e2e8f0;
    min-width: 0;
}
.special-wish-card-handover {
    font-weight: 700;
    text-decoration: underline;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}
.special-wish-hotline-box {
    background: rgba(30, 58, 138, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    text-align: center;
    color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.special-wish-hotline-box p { color: #f1f5f9; margin: 0; }

/* Guest Reviews – admin dashboard */
.safari-guest-reviews-module .card-body,
.safari-guest-reviews-module .table,
.safari-guest-reviews-module .safari-table,
.safari-guest-reviews-module .safari-table thead th,
.safari-guest-reviews-module .safari-table tbody,
.safari-guest-reviews-module .safari-table tbody td,
.safari-guest-reviews-module .table-responsive {
    background: transparent !important;
    color: #e2e8f0;
}
.safari-guest-reviews-module .safari-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
.guest-review-stat-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
}
.guest-review-stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: #fcd34d; }
.guest-review-stat-label { font-size: 0.75rem; color: #94a3b8; }
.guest-reviews-bar-wrap { max-width: 400px; }
.guest-reviews-bar-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.guest-reviews-bar-label { width: 110px; font-size: 0.8rem; color: #cbd5e1; }
.guest-reviews-bar-bg { flex: 1; height: 8px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; }
.guest-reviews-bar-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa); border-radius: 4px; }
.guest-reviews-bar-fill-overall { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.guest-reviews-bar-num { width: 28px; font-size: 0.85rem; font-weight: 600; color: #e2e8f0; }

/* ========== RESPONSIVE: Mobile & Desktop ========== */

/* --- Base: prevent horizontal scroll --- */
html, body { overflow-x: hidden; }
body { min-width: 0; }

/* --- Main content: responsive padding --- */
.safari-main { padding: 0.75rem 0.5rem 1.5rem; }
@media (min-width: 576px) {
    .safari-main { padding: 1rem 1rem 2rem; }
}
@media (min-width: 768px) {
    .safari-main { padding: 1.25rem 1.5rem 2rem; }
}
@media (min-width: 992px) {
    .safari-main { padding: 1.5rem 2rem 2rem; }
}
#moduleContent .module-card,
#moduleContent .dashboard-modern { margin: 0; max-width: 100%; }

/* --- Navbar: desktop layout (lg+) - ensure collapse/nav is visible --- */
@media (min-width: 992px) {
    #safariNavbarCollapse,
    .safari-navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        justify-content: center;
        visibility: visible;
    }
    .safari-navbar-collapse .safari-navbar-center {
        flex: 1;
        justify-content: center;
    }
}
@media (max-width: 991.98px) {
    .safari-header .navbar-brand span:last-child {
        display: none;
    }
    .safari-header .navbar-brand {
        font-size: 1rem;
    }
}

/* --- Mobile sidebar (offcanvas) --- */
.safari-mobile-sidebar.offcanvas {
    background: rgba(15, 23, 42, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 280px;
    width: 85vw;
}
.safari-mobile-sidebar .safari-sidebar-header {
    background: rgba(15, 23, 42, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
}
.safari-mobile-sidebar .offcanvas-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.safari-mobile-sidebar .safari-sidebar-body {
    overflow-y: auto;
}
.safari-mobile-sidebar .safari-sidebar-nav {
    display: flex;
    flex-direction: column;
}
.safari-mobile-sidebar .safari-sidebar-link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, color 0.2s;
}
.safari-mobile-sidebar .safari-sidebar-link:hover,
.safari-mobile-sidebar .safari-sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.safari-mobile-sidebar .safari-sidebar-section {
    padding: 0.5rem 1.25rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.95);
}
.safari-mobile-sidebar .safari-sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.25rem 1rem;
}
.safari-mobile-sidebar .safari-sidebar-user {
    background: rgba(255, 255, 255, 0.05);
    margin: 0.25rem 0;
}
.safari-mobile-sidebar .safari-sidebar-username {
    color: #fff;
    font-weight: 600;
}
.safari-mobile-sidebar .safari-sidebar-logout {
    color: #f87171 !important;
    border-bottom: none;
    margin-top: auto;
}
.safari-mobile-sidebar .safari-sidebar-logout:hover {
    background: rgba(248, 113, 113, 0.15) !important;
    color: #fca5a5 !important;
}

/* --- Login page: mobile-friendly --- */
@media (max-width: 575.98px) {
    .login-page { padding: 1rem 0.75rem; }
    .login-form-wrap { padding: 0 0.5rem; max-width: 100%; }
    .login-card-glass { padding: 1.5rem 1.25rem !important; }
    .login-logo { max-height: 60px !important; }
    .login-page h1 { font-size: 1.35rem !important; }
}
@media (min-width: 576px) {
    .login-form-wrap { max-width: 28rem; }
}

/* --- Alert container: prevent overflow on small screens --- */
#appAlertContainer {
    max-width: calc(100vw - 1.5rem);
    left: 50%;
    right: auto;
    padding: 0 0.5rem;
}

/* --- Modal: ensure fullscreen on mobile (Bootstrap modal-fullscreen-sm-down) --- */
@media (max-width: 575.98px) {
    #appModal .modal-dialog.modal-fullscreen-sm-down {
        max-width: none;
        margin: 0;
        width: 100%;
        height: 100%;
        max-height: none;
    }
    #appModal .modal-content {
        height: 100%;
        border-radius: 0;
        border: none;
    }
}

/* --- Dashboard: extra small screens --- */
@media (max-width: 575.98px) {
    .dashboard-modern .kpi-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .dashboard-modern .kpi-card { min-height: 100px; padding: 1rem; }
    .dashboard-modern .kpi-value { font-size: 1.5rem; }
    .dashboard-modern .dashboard-body { padding: 1rem; }
    .dashboard-modern .dashboard-heading { font-size: 1.25rem; }
    .dashboard-modern .charts-section { gap: 1rem; margin-bottom: 1rem; }
    .dashboard-modern .chart-block { padding: 1rem; }
    .dashboard-modern .chart-canvas { height: 180px; }
    .dashboard-modern .chart-block-wide .chart-canvas { height: 200px; }
}

/* --- Hero sections: remove negative margins on mobile to prevent overflow --- */
@media (max-width: 575.98px) {
    .arrival-hero, .module-hero {
        margin-left: 0;
        margin-right: 0;
        padding: 1rem 1rem 1.25rem;
    }
    .arrival-modern .arrival-modern-body,
    .module-dynamic .module-dynamic-body {
        padding: 0 1rem 1.25rem;
    }
}

/* --- Module toolbars: stack on mobile --- */
@media (max-width: 575.98px) {
    .arrival-modern-toolbar,
    .module-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .arrival-toolbar-left,
    .arrival-toolbar-right,
    .module-toolbar-left,
    .module-toolbar-right {
        flex-direction: column;
        align-items: stretch;
    }
    .arrival-search-wrap { max-width: none; }
    .module-search-wrap { max-width: none; }
    .arrival-date-wrap,
    .module-date-wrap { flex-wrap: wrap; }
    .arrival-date-input,
    .module-date-input { min-width: 100%; }
    .arrival-view-toggle,
    .module-view-toggle { width: 100%; justify-content: center; }
}

/* --- Cards grid: smaller min on mobile --- */
@media (max-width: 575.98px) {
    .arrival-cards-grid { grid-template-columns: 1fr; }
    .module-cards-grid { grid-template-columns: 1fr; }
    .module-cards-grid-fixed { grid-template-columns: repeat(2, 1fr); }
}

/* --- Tables: better mobile experience --- */
@media (max-width: 767.98px) {
    .safari-table { font-size: 0.8rem; }
    .safari-table thead th,
    .safari-table tbody td { padding: 0.4rem 0.35rem; }
    .module-table-modern thead th,
    .module-table-modern tbody td { padding: 0.5rem 0.4rem; font-size: 0.8rem; }
    .table-responsive { margin: 0 -0.5rem; }
    .table-responsive .table { margin-bottom: 0; }
}
@media (max-width: 575.98px) {
    .safari-table { font-size: 0.75rem; }
    .safari-table .btn-sm { padding: 0.15rem 0.35rem; font-size: 0.75rem; }
}

/* --- Module cards (Users, Complaints, Roles): mobile --- */
@media (max-width: 575.98px) {
    #moduleContent .module-card .card-header,
    #moduleContent .module-card .card-body { padding: 0.75rem 1rem; }
    #moduleContent .module-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    #moduleContent .module-card input[type="search"],
    #usersSearch, #complaintsSearch {
        max-width: none !important;
        width: 100%;
    }
}

/* --- Roles module: wrap role descriptions --- */
@media (max-width: 767.98px) {
    .roles-module .roles-roles-desc {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --- Inhouse stats / nationality list: stack on very small --- */
@media (max-width: 575.98px) {
    .dashboard-modern .inhouse-stats-list { flex-direction: column; }
    .dashboard-modern .inhouse-stat-row { width: 100%; }
}

/* ========== Mobile: modern card layout (Arrival, Departure, Inhouse, etc.) ========== */
@media (max-width: 767.98px) {
    /* Single-column card stack with more breathing room */
    .arrival-cards-grid,
    .module-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.25rem 0;
    }
    .module-cards-grid-fixed {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    /* Modern card styling: larger touch target, clearer hierarchy */
    .arrival-card,
    .module-card-item {
        padding: 1.25rem 1.25rem;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .arrival-card:active,
    .module-card-item:active {
        transform: scale(0.99);
    }
    .arrival-card-header,
    .module-card-header {
        margin-bottom: 0.75rem;
    }
    .arrival-card-room,
    .module-card-room {
        font-size: 0.9rem;
        padding: 0.35rem 0.6rem;
        border-radius: 0.5rem;
    }
    .arrival-card-guest,
    .module-card-guest {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .arrival-card-meta,
    .module-card-meta {
        font-size: 0.85rem;
        gap: 0.5rem 1rem;
    }
    .arrival-card-actions,
    .module-card-actions {
        padding-top: 0.75rem;
        margin-top: 0.25rem;
        gap: 0.5rem;
    }
    .arrival-card-actions .arrival-action-icon,
    .module-card-actions .departure-action-icon,
    .module-card-actions .inhouse-action-icon {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
    }
    /* Stat cards (Meal Plans / Nationality) on mobile */
    .module-card-stat {
        padding: 1.25rem 0.75rem;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }
    .module-card-stat-value {
        font-size: 1.5rem;
    }
}
@media (max-width: 575.98px) {
    .module-cards-grid-fixed {
        grid-template-columns: 1fr;
    }
}
