/* Root Variables */
:root {
    --primary-blue: #2563EB;
    --primary-blue-dark: #1D4ED8;
    --primary-blue-light: #3B82F6;
    --secondary-blue: #60A5FA;
    --accent-blue: #93C5FD;
    --light-blue: #EFF6FF;
    --background: #F8FAFC;
    --sidebar-bg: #1E3A5F;
    --sidebar-text: #CBD5E1;
    --sidebar-active: #2563EB;
    --card-bg: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --purple: #8B5CF6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    transition: background-color 0.3s ease;
    overflow: hidden; /* Prevent body scroll - only content scrolls */
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1E3A5F 0%, #0F2744 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Mobile Sidebar Overlay */
body.sidebar-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

@media (max-width: 768px) {
    body.sidebar-open::before {
        display: block;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    position: relative;
}

.logo i {
    font-size: 24px;
    color: var(--secondary-blue);
}

/* Sidebar Close Button - Mobile Only */
.sidebar-close {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .sidebar-close {
        display: flex;
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.12);
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.user-info {
    flex: 1;
}

.user-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.user-info p {
    font-size: 11px;
    color: var(--sidebar-text);
}

.user-profile i {
    color: var(--sidebar-text);
    font-size: 10px;
}

.search-sidebar {
    position: relative;
    margin: 0 16px 20px;
}

.search-sidebar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sidebar-text);
    font-size: 13px;
}

.search-sidebar input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-size: 13px;
    transition: all 0.3s ease;
}

.search-sidebar input::placeholder {
    color: var(--sidebar-text);
}

.search-sidebar input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu {
    flex: 1;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 2px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.nav-item.active {
    background: var(--primary-blue);
    color: white;
}

.nav-item i {
    width: 18px;
    font-size: 15px;
}

/* Submenu Styles */
.nav-item-group {
    margin-bottom: 2px;
}

.nav-item.has-submenu {
    position: relative;
}

.nav-item.has-submenu .submenu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin: 2px 0 2px 10px;
}

.submenu.open {
    max-height: 200px;
}

.submenu-item {
    padding: 8px 14px 8px 28px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    margin: 2px 4px !important;
}

.submenu-item i {
    width: 16px !important;
    font-size: 12px !important;
}

.submenu-item.active {
    background: rgba(79, 70, 229, 0.6) !important;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-left: auto;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-blue);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Main Content */
/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--light-blue);
    border: none;
    border-radius: 8px;
    color: var(--primary-blue);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hamburger-menu:hover {
    background: var(--primary-blue);
    color: white;
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--background);
    padding-top: 70px; /* Space for fixed header */
}

/* Top Header */
.top-header,
.header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 70px;
    z-index: 100;
}

/* Scrollable Content Area */
.content-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    height: calc(100vh - 70px);
}

/* Search Bar */
.search-bar {
    position: relative;
    width: 300px;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 13px;
}

.search-bar input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--light-blue);
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--card-bg);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.breadcrumb {
    font-size: 12px;
    color: var(--text-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    position: relative;
    width: 300px;
}

.header-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 13px;
}

.header-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--light-blue);
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.2s ease;
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #FFFFFF;
}

.icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-blue);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 8px;
}

/* Language Toggle Dropdown */
.lang-toggle-wrapper {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    width: auto;
}

.lang-btn .lang-code {
    font-size: 11px;
    font-weight: 600;
}

.lang-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 9999;
    display: none;
    min-width: 150px;
    border: 1px solid var(--border-color);
}

.lang-dropdown.show {
    display: block;
    animation: langDropdownFade 0.2s ease;
}

@keyframes langDropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s;
}

.lang-dropdown-item:hover {
    background: var(--light-blue);
}

.lang-dropdown-item.active {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.lang-dropdown-item .lang-flag {
    font-size: 18px;
}

/* Notifications & Messages Dropdowns */
.notifications-dropdown,
.messages-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 360px;
    max-height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.notifications-header,
.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.notifications-header h4,
.messages-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mark-read-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mark-read-btn:hover {
    background: rgba(255,255,255,0.3);
}

.notifications-list,
.messages-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item,
.message-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover,
.message-item:hover {
    background: #f8fafc;
}

.notification-item.unread,
.message-item.unread {
    background: #eff6ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-icon.booking {
    background: #dcfce7;
    color: #16a34a;
}

.notification-icon.quotation {
    background: #dbeafe;
    color: #2563eb;
}

.notification-icon.system {
    background: #fef3c7;
    color: #d97706;
}

.notification-icon.alert {
    background: #fee2e2;
    color: #dc2626;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-content,
.message-content {
    flex: 1;
    min-width: 0;
}

.notification-title,
.message-sender {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.notification-text,
.message-preview {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-time,
.message-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.notifications-footer,
.messages-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.notifications-footer a,
.messages-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.notifications-footer a:hover,
.messages-footer a:hover {
    text-decoration: underline;
}

.empty-notifications,
.empty-messages {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
}

.empty-notifications i,
.empty-messages i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-notifications p,
.empty-messages p {
    font-size: 14px;
    margin: 0;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--light-blue);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 500;
}

/* Header User Profile */
.header-actions .user-profile,
.header .user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--light-blue);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-actions .user-profile:hover,
.header .user-profile:hover {
    background: var(--primary-blue);
    color: white;
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.header-actions .user-profile span,
.header .user-profile span {
    font-size: 13px;
    font-weight: 500;
}

/* Notification Badge */
.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

/* Dashboard Content */
.dashboard-content {
    padding: 24px;
    overflow-y: auto;
    height: calc(100vh - 70px);
    position: relative;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-bg);
    border: none;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-icon.blue {
    background: var(--primary-blue);
}

.stat-icon.green {
    background: var(--success);
}

.stat-icon.orange {
    background: var(--warning);
}

.stat-icon.purple {
    background: var(--purple);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 6px;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
}

.stat-change.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.stat-change.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.content-grid .large {
    grid-column: span 2;
}

/* Card */
.card {
    background: var(--card-bg);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card .table-container,
.card .quick-actions,
.card .upcoming-list,
.card .tasks-list {
    flex: 1;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-blue);
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-secondary {
    padding: 6px 12px;
    background: var(--light-blue);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--light-blue);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--light-blue);
}

/* Compact Table */
.data-table.compact th,
.data-table.compact td {
    padding: 8px 10px;
    font-size: 11px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge.confirmed {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Quick Actions */
.quick-actions {
    padding: 12px;
    display: grid;
    gap: 6px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--light-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.action-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.action-btn i {
    font-size: 16px;
    color: var(--primary-blue);
}

.action-btn:hover i {
    color: white;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 4px;
}

.tab {
    padding: 6px 12px;
    background: var(--light-blue);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab.active,
.tab:hover {
    background: var(--primary-blue);
    color: white;
}

/* Chart Container */
.chart-container {
    padding: 16px;
    height: 260px;
}

/* Upcoming Tours */
.upcoming-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upcoming-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--light-blue);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.upcoming-item:hover {
    background: rgba(37, 99, 235, 0.15);
}

.tour-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    border-radius: 8px;
    color: white;
}

.date-day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.tour-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.tour-info p {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1400px) {
    .content-grid.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-grid .large {
        grid-column: span 1;
    }
    
    .header-search {
        width: 200px;
    }
    
    .content-grid.three-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 140px;
    }
    
    .top-header {
        left: 0;
        padding: 12px 16px;
        height: auto;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 12px;
        align-items: center;
    }
    
    .hamburger-menu {
        grid-column: 1;
        grid-row: 1;
    }
    
    .header-left {
        grid-column: 2;
        grid-row: 1;
        width: auto;
    }
    
    .header-left h1 {
        font-size: 18px;
        margin: 0;
    }
    
    .header-left .breadcrumb {
        font-size: 11px;
    }
    
    .header-right {
        grid-column: 3;
        grid-row: 1;
        width: auto;
        display: flex;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }
    
    .date-display {
        display: none;
    }
    
    .dashboard-content {
        padding: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-banner {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .welcome-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .welcome-actions button {
        width: 100%;
    }
}

/* Three Column Grid */
.content-grid.three-cols {
    grid-template-columns: 280px 1fr 220px;
    align-items: start;
}

/* Finance Grid - Equal Height */
.content-grid.finance-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.content-grid.finance-grid .card {
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

/* Full Width Card */
.card.full-width {
    grid-column: 1 / -1;
}

/* Quotations Styles */
.chart-container.small {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.quotation-stats {
    display: flex;
    justify-content: space-around;
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.quote-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quote-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.quote-indicator.sent {
    background: var(--primary-blue);
}

.quote-indicator.confirmed {
    background: var(--success);
}

.quote-indicator.cancelled {
    background: var(--danger);
}

.quote-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.quote-value {
    font-size: 14px;
    font-weight: 600;
}

/* Filter Select */
.filter-select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--light-blue);
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Primary Button */
.btn-primary {
    padding: 6px 12px;
    background: var(--primary-blue);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
}

/* Tour Status Badges */
.status-badge.upcoming {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-blue);
}

.status-badge.in-progress {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.status-badge.overdue {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-badge.partial {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Variance Colors */
td.positive {
    color: var(--success);
    font-weight: 600;
}

td.negative {
    color: var(--danger);
    font-weight: 600;
}

/* Tasks Styles */
.tasks-list {
    padding: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-blue);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.task-item:hover {
    background: rgba(37, 99, 235, 0.12);
}

.task-item.high {
    border-left-color: var(--danger);
}

.task-item.medium {
    border-left-color: var(--warning);
}

.task-item.low {
    border-left-color: var(--success);
}

.task-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.task-content {
    flex: 1;
}

.task-content h4 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.task-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

.task-meta i {
    margin-right: 3px;
    color: var(--primary-blue);
}

.task-priority {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.task-priority.high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.task-priority.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.task-priority.low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.task-due {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
}

.task-due.overdue {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.task-due.today {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.task-due.upcoming {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* Finance Styles */
.finance-summary {
    padding: 16px;
}

.finance-total {
    text-align: center;
    margin-bottom: 16px;
}

.finance-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.finance-amount {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-blue);
}

.finance-amount.danger {
    color: var(--danger);
}

.finance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.finance-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.finance-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.finance-item .dot.current {
    background: var(--success);
}

.finance-item .dot.warning {
    background: var(--warning);
}

.finance-item .dot.danger {
    background: var(--danger);
}

.finance-item .dot.critical {
    background: #7C2D12;
}

.finance-item .label {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
}

.finance-item .amount {
    font-size: 12px;
    font-weight: 600;
}

.invoice-list {
    padding: 0 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.invoice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light-blue);
    border-radius: 8px;
    margin-bottom: 8px;
}

.invoice-info {
    flex: 1;
}

.invoice-info strong {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.invoice-info span {
    font-size: 11px;
    color: var(--text-secondary);
}

.invoice-amount {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Payment Summary */
.payment-summary {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light-blue);
    border-radius: 8px;
    margin-bottom: 8px;
}

.payment-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.payment-icon.received {
    background: var(--success);
}

.payment-icon.sent {
    background: var(--danger);
}

.payment-icon.net {
    background: var(--primary-blue);
}

.payment-info {
    flex: 1;
}

.payment-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.payment-amount {
    font-size: 14px;
    font-weight: 600;
}

.payment-amount.positive {
    color: var(--success);
}

.payment-amount.negative {
    color: var(--danger);
}

/* Contacts Styles */
.contact-tabs {
    display: flex;
    gap: 4px;
}

.contact-tab {
    padding: 6px 12px;
    background: var(--light-blue);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-tab.active,
.contact-tab:hover {
    background: var(--primary-blue);
    color: white;
}

.contact-search {
    position: relative;
}

.contact-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 12px;
}

.contact-search input {
    padding: 6px 10px 6px 30px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--light-blue);
    color: var(--text-primary);
    font-size: 12px;
    width: 180px;
    transition: all 0.2s ease;
}

.contact-search input:focus {
    outline: none;
    border-color: var(--primary-blue);
    width: 220px;
    background: #FFFFFF;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-blue);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.contact-card:hover {
    background: rgba(37, 99, 235, 0.12);
}

.contact-card.hidden {
    display: none;
}

.contact-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.contact-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.contact-type.client {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}

.contact-type.supplier {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.contact-info p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.contact-info p i {
    width: 14px;
    margin-right: 4px;
    color: var(--primary-blue);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.icon-btn.small {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

/* Table Action Buttons - Horizontal Row */
td.action-btns {
    white-space: nowrap;
}

td.action-btns button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 4px;
    border-radius: 6px;
    background: var(--light-blue);
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.2s ease;
}

td.action-btns button:hover {
    background: var(--primary-blue);
    color: white;
}

/* Highlight button active state */
td.action-btns button.highlight-btn.active {
    background: #fff3cd;
    color: #856404;
}

td.action-btns button.highlight-btn.active:hover {
    background: #ffc107;
    color: #212529;
}

/* Delete button styling */
td.action-btns button.delete-btn:hover {
    background: #dc3545;
    color: white;
}

/* Highlighted row */
tr.highlighted {
    background: #fff9e6 !important;
}

tr.highlighted:hover {
    background: #fff3cd !important;
}

/* Clickable Quotation Number Link */
.qt-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.qt-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Success Button - Confirm Booking */
.action-btn.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.action-btn.success i {
    color: white;
}

.action-btn.success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* Primary Button - Finished */
.action-btn.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* ==========================================
   Loading Spinner & Error States
   ========================================== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.loading-spinner p {
    font-size: 14px;
}

/* ==========================================
   PRINT DOCUMENT STYLES (Base - Non-print)
   ========================================== */
.print-preview-container {
    padding: 30px;
    background: #f1f5f9;
}

.print-document {
    width: 700px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 40px;
    box-sizing: border-box;
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-blue);
}

.company-info {
    flex: 1;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.company-logo i {
    font-size: 28px;
}

.company-details p {
    font-size: 12px;
    color: #6b7280;
    margin: 3px 0;
}

.doc-title-section {
    text-align: right;
    flex-shrink: 0;
}

.doc-title-section h1 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.doc-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-size: 12px;
}

.meta-label {
    color: #6b7280;
}

.meta-value {
    font-weight: 600;
    color: #1f2937;
    min-width: 100px;
}

/* Document Sections */
.doc-section {
    margin-bottom: 20px;
}

.section-title {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
}

.section-title.small {
    font-size: 13px;
    padding: 8px 15px;
}

.section-title span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Customer Grid */
.customer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.customer-col p {
    font-size: 14px;
    color: #374151;
    margin: 5px 0;
}

.customer-col p strong {
    font-size: 16px;
    color: #1f2937;
}

/* Itinerary List */
.itinerary-list {
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.itinerary-day {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.itinerary-day:last-child {
    border-bottom: none;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.day-badge {
    background: var(--primary-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.day-date {
    font-size: 13px;
    color: #6b7280;
}

.day-title {
    font-weight: 600;
    color: #1f2937;
}

.day-content {
    padding-left: 10px;
}

.day-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 10px;
}

.day-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-item {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-item i {
    color: var(--primary-blue);
}

/* Pricing Summary Table */
.pricing-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
}

.pricing-summary-table th,
.pricing-summary-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.pricing-summary-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}

.pricing-summary-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.pricing-summary-table .text-center {
    text-align: center;
}

.pricing-summary-table .text-right {
    text-align: right;
}

.pricing-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
    font-style: italic;
}

/* Two Column Section (Inclusions/Exclusions) */
.two-col-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.inclusion-col,
.exclusion-col {
    background: #f9fafb;
    border-radius: 6px;
    overflow: hidden;
}

.inclusion-list,
.exclusion-list {
    list-style: none;
    padding: 15px 20px;
}

.inclusion-list li,
.exclusion-list li {
    padding: 6px 0;
    font-size: 13px;
    color: #4b5563;
    position: relative;
    padding-left: 20px;
}

.inclusion-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.exclusion-list li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

/* Terms Content */
.terms-content {
    padding: 15px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.terms-content ol {
    margin: 0;
    padding-left: 20px;
}

.terms-content li {
    font-size: 13px;
    color: #4b5563;
    padding: 5px 0;
    line-height: 1.5;
}

/* Notes Content */
.notes-content {
    padding: 15px 20px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.notes-content p {
    font-size: 13px;
    color: #92400e;
    margin: 0;
    line-height: 1.6;
}

/* Optional Activities List */
.optional-list {
    padding: 15px 20px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-top: none;
    border-radius: 0 0 6px 6px;
    margin: 0;
    list-style: none;
}

.optional-list li {
    font-size: 13px;
    color: #166534;
    padding: 8px 0;
    border-bottom: 1px dashed #86efac;
}

.optional-list li:last-child {
    border-bottom: none;
}

.optional-list li::before {
    content: '✦ ';
    color: #22c55e;
}

/* Document Footer */
.doc-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 30px;
}

.prepared-by,
.acceptance {
    text-align: center;
}

.prepared-by p,
.acceptance p {
    font-size: 13px;
    color: #6b7280;
    margin: 5px 0;
}

.signature-line {
    border-bottom: 1px solid #374151;
    height: 50px;
    margin: 15px 40px;
}

.footer-note {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.footer-note p {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    color: var(--text-secondary);
}

.error-message i {
    font-size: 64px;
    color: var(--warning);
    margin-bottom: 20px;
}

.error-message h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.error-message p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Back Link for Quotation Forms */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-blue-dark);
}

.back-link i {
    font-size: 12px;
}

/* Page Header for Quotation Forms */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--primary-blue);
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* ==========================================
   NEW DASHBOARD STYLES
   ========================================== */

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1E40AF 100%);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    color: white;
}

.welcome-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.welcome-text p {
    font-size: 14px;
    opacity: 0.9;
}

.welcome-actions {
    display: flex;
    gap: 12px;
}

.welcome-actions .btn-primary {
    background: white;
    color: var(--primary-blue);
}

.welcome-actions .btn-primary:hover {
    background: #F1F5F9;
}

.welcome-actions .btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.welcome-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Stats Period Header */
.stats-period-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.stats-period-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stats-period-select {
    padding: 6px 32px 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.2s;
}

.stats-period-select:hover {
    border-color: var(--primary-color);
}

.stats-period-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Dashboard Stats Row */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

.stat-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon-wrap.blue {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.stat-icon-wrap.green {
    background: #D1FAE5;
    color: var(--success);
}

.stat-icon-wrap.orange {
    background: #FEF3C7;
    color: var(--warning);
}

.stat-icon-wrap.purple {
    background: #EDE9FE;
    color: var(--purple);
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.stat-trend.up {
    background: #D1FAE5;
    color: var(--success);
}

.stat-trend.down {
    background: #FEE2E2;
    color: var(--danger);
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-left,
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Dashboard Cards */
.dash-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.dash-card.compact {
    padding: 0;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.dash-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-card-header h3 i {
    color: var(--primary-blue);
    font-size: 14px;
}

.dash-card-body {
    padding: 20px;
}

.dash-card-body.no-padding {
    padding: 0;
}

.mini-select {
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.link-btn:hover {
    text-decoration: underline;
}

.task-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--light-blue);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Chart Wrapper */
.chart-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.sent {
    background: var(--primary-blue);
}

.legend-dot.confirmed {
    background: var(--success);
}

.legend-dot.pending {
    background: var(--warning);
}

.legend-label {
    color: var(--text-secondary);
}

.legend-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Tour Timeline */
.tour-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--background);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    background: var(--light-blue);
}

.timeline-date {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.timeline-date .t-day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.timeline-date .t-month {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.9;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

.timeline-meta i {
    margin-right: 4px;
}

.timeline-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.timeline-status.ready {
    background: #D1FAE5;
    color: var(--success);
}

.timeline-status.preparing {
    background: #FEF3C7;
    color: var(--warning);
}

/* ==========================================
   NEW DASHBOARD - 3 Column Layout
   ========================================== */

/* 3-Column Dashboard Grid */
.dashboard-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.column-header {
    margin-bottom: 4px;
}

.column-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.column-header h2 i {
    color: var(--primary-blue);
    font-size: 16px;
}

/* Header Tabs */
.header-tabs {
    display: flex;
    gap: 4px;
    background: var(--background);
    padding: 3px;
    border-radius: 8px;
}

.tab-btn {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--primary-blue);
}

.tab-btn.active {
    background: var(--primary-blue);
    color: white;
}

/* Scrollable Card Body */
.dash-card-body.scrollable {
    max-height: 280px;
    overflow-y: auto;
}

/* Badge */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge.warning {
    background: #FEF3C7;
    color: #D97706;
}

.badge.danger {
    background: #FEE2E2;
    color: #DC2626;
}

.badge.success {
    background: #D1FAE5;
    color: #059669;
}

/* Pending Confirmations Grid */
.pending-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--background);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pending-item:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
}

.pending-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.pending-icon.hotel {
    background: #DBEAFE;
    color: #2563EB;
}

.pending-icon.guide {
    background: #D1FAE5;
    color: #059669;
}

.pending-icon.transport {
    background: #FEF3C7;
    color: #D97706;
}

.pending-icon.restaurant {
    background: #FCE7F3;
    color: #DB2777;
}

.pending-info {
    display: flex;
    flex-direction: column;
}

.pending-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.pending-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--background);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.task-item:hover {
    background: var(--light-blue);
}

.task-item input[type="checkbox"] {
    display: none;
}

.task-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.task-item input:checked + .task-check {
    background: var(--success);
    border-color: var(--success);
}

.task-item input:checked + .task-check::after {
    content: '✓';
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.task-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
}

.task-item input:checked ~ .task-text {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.task-priority {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.task-priority.high {
    background: #FEE2E2;
    color: #DC2626;
}

.task-priority.medium {
    background: #FEF3C7;
    color: #D97706;
}

.task-priority.low {
    background: #D1FAE5;
    color: #059669;
}

/* Funnel Chart */
.funnel-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.funnel-stage {
    display: flex;
    align-items: center;
    gap: 12px;
}

.funnel-bar {
    height: 28px;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.funnel-bar.draft {
    background: linear-gradient(90deg, #94A3B8, #64748B);
}

.funnel-bar.sent {
    background: linear-gradient(90deg, #3B82F6, #2563EB);
}

.funnel-bar.confirmed {
    background: linear-gradient(90deg, #10B981, #059669);
}

.funnel-label {
    display: flex;
    justify-content: space-between;
    min-width: 100px;
}

.funnel-name {
    font-size: 12px;
    color: var(--text-secondary);
}

.funnel-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Conversion Rate */
.conversion-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border-radius: 10px;
}

.conversion-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.conversion-trend {
    font-size: 12px;
    color: var(--success);
}

.conversion-trend i {
    margin-right: 4px;
}

/* Destinations List */
.destinations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.destination-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.destination-rank {
    width: 26px;
    height: 26px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.destination-info {
    flex: 1;
}

.destination-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.destination-bar {
    height: 6px;
    background: var(--background);
    border-radius: 3px;
    overflow: hidden;
}

.destination-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), #60A5FA);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.destination-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
}

/* Financial Summary */
.financial-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.financial-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
}

.financial-card.income {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
}

.financial-card.expense {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
}

.financial-card.profit {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}

.financial-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.financial-card.income .financial-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.financial-card.expense .financial-icon {
    background: rgba(220, 38, 38, 0.2);
    color: #DC2626;
}

.financial-card.profit .financial-icon {
    background: rgba(37, 99, 235, 0.2);
    color: #2563EB;
}

.financial-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.financial-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.financial-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Gauge Chart */
.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gauge {
    position: relative;
    width: 140px;
    height: 70px;
    overflow: hidden;
}

.gauge::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        #DC2626 0deg,
        #F59E0B 72deg,
        #10B981 144deg,
        #E5E7EB 180deg,
        #E5E7EB 360deg
    );
    top: 0;
    left: 0;
}

.gauge::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    top: 20px;
    left: 20px;
}

.gauge-fill {
    position: absolute;
    width: 8px;
    height: 50px;
    background: var(--text-primary);
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(calc(var(--percentage, 0) * 1.8deg - 90deg));
    border-radius: 4px;
    z-index: 10;
    transition: transform 0.5s ease;
}

.gauge-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
}

.gauge-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.gauge-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.gauge-legend {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-secondary);
}

.gauge-legend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.gauge-legend .dot.red { background: #DC2626; }
.gauge-legend .dot.yellow { background: #F59E0B; }
.gauge-legend .dot.green { background: #10B981; }

/* Outstanding Payments */
.outstanding-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.outstanding-total {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: 10px;
}

.outstanding-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}

.outstanding-amount {
    font-size: 28px;
    font-weight: 700;
    color: #D97706;
}

.outstanding-breakdown {
    display: flex;
    gap: 12px;
}

.breakdown-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
}

.breakdown-item.overdue {
    background: #FEE2E2;
}

.breakdown-item.overdue i {
    color: #DC2626;
}

.breakdown-item.pending {
    background: #FEF3C7;
}

.breakdown-item.pending i {
    color: #D97706;
}

.breakdown-item i {
    font-size: 16px;
}

.breakdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.breakdown-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.breakdown-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Empty State */
.empty-state.small {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state.small i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-state.small p {
    font-size: 13px;
}

/* Todo List Styles */
.todo-input-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.todo-input-wrapper input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.todo-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.todo-add-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.todo-add-btn:hover {
    background: #1d4ed8;
}

.todo-list {
    max-height: 300px;
    overflow-y: auto;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.todo-item:hover {
    background: #f1f5f9;
}

.todo-item.completed {
    background: #f0fdf4;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #94a3b8;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.todo-checkbox:hover {
    border-color: var(--primary-blue);
}

.todo-item.completed .todo-checkbox {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.todo-text {
    flex: 1;
    font-size: 13px;
    color: #374151;
}

.todo-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.todo-item:hover .todo-delete {
    opacity: 1;
}

.todo-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.todo-empty {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 13px;
}

/* Urgent Task Items */
.urgent-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #fefce8;
    border: 1px solid #fef08a;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.urgent-task-item:hover {
    background: #fef9c3;
    transform: translateX(2px);
}

.urgent-task-item[data-type="invoice"],
.urgent-task-item[data-type="booking"] {
    background: #fef2f2;
    border-color: #fecaca;
}

.urgent-task-item[data-type="invoice"]:hover,
.urgent-task-item[data-type="booking"]:hover {
    background: #fee2e2;
}

.urgent-task-item .task-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.urgent-task-item .task-content {
    flex: 1;
    min-width: 0;
}

.urgent-task-item .task-title {
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urgent-task-item .task-subtitle {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.urgent-task-item .task-action-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.urgent-task-item .task-action-btn:hover {
    background: #1d4ed8;
    transform: scale(1.02);
}

/* Nationality Stats Styles */
.nationality-stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nationality-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s;
}

.nationality-stat-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.nat-flag {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.nat-info {
    flex: 1;
    min-width: 0;
}

.nat-name {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    display: block;
    margin-bottom: 4px;
}

.nat-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.nat-bar .bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.nat-bar .bar-fill.duration {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.nat-bar .bar-fill.price {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.nat-value {
    text-align: right;
    min-width: 55px;
}

.nat-value .value-main {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.nat-value .value-unit {
    font-size: 10px;
    color: #94a3b8;
}

.price-note {
    margin-top: 12px;
    padding: 8px 10px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 11px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-note i {
    color: #f59e0b;
}

/* Star Price Table */
.star-price-grid {
    overflow-x: auto;
}

.star-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.star-price-table thead th {
    background: #f1f5f9;
    padding: 8px 6px;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.star-price-table thead th:first-child {
    text-align: left;
    padding-left: 10px;
}

.star-price-table thead th i {
    color: #fbbf24;
    font-size: 9px;
    margin: 0 1px;
}

.star-price-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.star-price-table tbody tr:hover {
    background: #f8fafc;
}

.star-price-table tbody tr:last-child {
    border-bottom: none;
}

.star-price-table .country-cell {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-price-table .country-cell .flag {
    font-size: 18px;
}

.star-price-table .country-cell .name {
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.star-price-table .price-cell {
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
}

.star-price-table .price-cell.has-data {
    color: #059669;
}

.star-price-table .price-cell.has-data.star3 {
    color: #0891b2;
}

.star-price-table .price-cell.has-data.star4 {
    color: #7c3aed;
}

.star-price-table .price-cell.has-data.star5 {
    color: #dc2626;
}

.star-price-table .price-cell.no-data {
    color: #cbd5e1;
}

/* Peak Travel Months Heatmap */
.peak-months-grid {
    overflow-x: auto;
}

.peak-months-table-wrapper {
    overflow-x: auto;
    margin-bottom: 10px;
}

.peak-months-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    min-width: 450px;
}

.peak-months-table thead th {
    padding: 6px 2px;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    font-size: 10px;
    background: #f8fafc;
}

.peak-months-table thead th.country-header {
    text-align: left;
    padding-left: 8px;
    min-width: 90px;
}

.peak-months-table thead th.month-header {
    width: 28px;
}

.peak-months-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.peak-months-table tbody tr:last-child {
    border-bottom: none;
}

.peak-months-table .country-cell {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.peak-months-table .country-cell .flag {
    font-size: 14px;
}

.peak-months-table .country-cell .name {
    font-weight: 500;
    color: #334155;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.peak-months-table .month-cell {
    padding: 4px 2px;
    text-align: center;
    font-weight: 500;
    font-size: 10px;
    color: #334155;
    transition: all 0.2s;
    cursor: default;
}

.peak-months-table .month-cell.intensity-0 {
    background: transparent;
    color: transparent;
}

.peak-months-table .month-cell.intensity-1 {
    background: #dbeafe;
    color: #3b82f6;
}

.peak-months-table .month-cell.intensity-2 {
    background: #bfdbfe;
    color: #2563eb;
}

.peak-months-table .month-cell.intensity-3 {
    background: #93c5fd;
    color: #1d4ed8;
}

.peak-months-table .month-cell.intensity-4 {
    background: #60a5fa;
    color: #fff;
}

.peak-months-table .month-cell.intensity-5 {
    background: #3b82f6;
    color: #fff;
}

.peak-months-table .month-cell.peak {
    background: #f97316 !important;
    color: #fff !important;
    font-weight: 700;
    position: relative;
}

.peak-months-table .month-cell.peak::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
}

/* Peak Legend */
.peak-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.peak-legend .legend-label {
    font-size: 10px;
    color: #94a3b8;
}

.peak-legend .legend-scale {
    display: flex;
    gap: 2px;
}

.peak-legend .scale-box {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.peak-legend .scale-box.intensity-1 { background: #dbeafe; }
.peak-legend .scale-box.intensity-2 { background: #bfdbfe; }
.peak-legend .scale-box.intensity-3 { background: #93c5fd; }
.peak-legend .scale-box.intensity-4 { background: #60a5fa; }
.peak-legend .scale-box.intensity-5 { background: #3b82f6; }

.peak-legend .peak-indicator {
    margin-left: 10px;
    font-size: 10px;
    color: #f97316;
    font-weight: 600;
}

.peak-legend .peak-indicator i {
    margin-right: 3px;
}

/* Market Revenue List */
.market-revenue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-revenue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s;
}

.market-revenue-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.market-revenue-item .market-rank {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.market-revenue-item:nth-child(1) .market-rank {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.market-revenue-item:nth-child(2) .market-rank {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.market-revenue-item:nth-child(3) .market-rank {
    background: linear-gradient(135deg, #b45309, #92400e);
}

.market-revenue-item .market-flag {
    font-size: 20px;
    flex-shrink: 0;
}

.market-revenue-item .market-info {
    flex: 1;
    min-width: 0;
}

.market-revenue-item .market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.market-revenue-item .market-name {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

.market-revenue-item .market-amount {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
}

.market-revenue-item .market-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.market-revenue-item .market-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.market-revenue-item .market-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #94a3b8;
}

.market-revenue-item .market-percentage {
    font-weight: 600;
    color: #64748b;
}

/* Loading Placeholder */
.loading-placeholder {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.loading-placeholder i {
    margin-right: 8px;
}

/* Chart Wrapper Small */
.chart-wrapper.small {
    width: 140px;
    height: 140px;
}

/* Active Tour Item */
.active-tour-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--background);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.active-tour-item:hover {
    background: var(--light-blue);
    transform: translateX(4px);
}

.active-tour-item:last-child {
    margin-bottom: 0;
}

.tour-date-badge {
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.tour-date-badge .day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.tour-date-badge .month {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.9;
}

.tour-info {
    flex: 1;
    min-width: 0;
}

.tour-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tour-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

.tour-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tour-status {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.tour-status.ready {
    background: #D1FAE5;
    color: #059669;
}

.tour-status.preparing {
    background: #FEF3C7;
    color: #D97706;
}

.tour-status.urgent {
    background: #FEE2E2;
    color: #DC2626;
}

/* Legend dot for draft */
.legend-dot.draft {
    background: #94A3B8;
}

/* Responsive Dashboard */
@media (max-width: 1400px) {
    .dashboard-grid-3col {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-column:nth-child(3) {
        grid-column: span 2;
    }
    
    .dashboard-column:nth-child(3) .dash-card {
        max-width: 50%;
    }
    
    .dashboard-column:nth-child(3) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .dashboard-column:nth-child(3) .column-header {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .dashboard-grid-3col {
        grid-template-columns: 1fr;
    }
    
    .dashboard-column:nth-child(3) {
        grid-column: span 1;
        display: flex;
    }
    
    .dashboard-column:nth-child(3) .dash-card {
        max-width: 100%;
    }
}

/* Filter Cards - Horizontal Layout */
.filter-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.filter-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 130px;
}

.filter-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.filter-card.active {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.filter-card .filter-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.filter-card .filter-icon.all {
    background: #e0e7ff;
    color: #4f46e5;
}

.filter-card .filter-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-card .filter-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.filter-card .filter-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Filter Stats Grid - Quotations page variant */
.filter-stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.filter-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 130px;
}

.filter-stat-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.filter-stat-card.active {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.filter-stat-card .filter-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.filter-stat-card .filter-icon.all {
    background: #e0e7ff;
    color: #4f46e5;
}

.filter-stat-card .filter-icon.sent {
    background: #dbeafe;
    color: #2563eb;
}

.filter-stat-card .filter-icon.pending {
    background: #fef3c7;
    color: #d97706;
}

.filter-stat-card .filter-icon.confirmed {
    background: #d1fae5;
    color: #059669;
}

.filter-stat-card .filter-icon.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.filter-stat-card .filter-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-stat-card .filter-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.filter-stat-card .filter-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Booking Page Styles */
.booking-table .booking-id-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-id-cell .booking-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.booking-id-cell .booking-link:hover {
    text-decoration: underline;
}

.booking-id-cell .program-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.travel-date-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.travel-date-info .date-range {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

.travel-date-info .flight-info {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.travel-date-info .flight-info i {
    color: var(--primary-blue);
    font-size: 10px;
}

.nationality-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.pax-cell {
    font-weight: 600;
    color: var(--text-primary);
}

.pax-cell .pax-tl {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* Filter card icon colors for bookings */
.filter-icon.upcoming {
    background: #dbeafe;
    color: #2563eb;
}

.filter-icon.processing {
    background: #fef3c7;
    color: #d97706;
}

.filter-icon.completed {
    background: #d1fae5;
    color: #059669;
}

.filter-icon.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Booking status badges */
.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status.status-received,
.status.received {
    background: #fef3c7;
    color: #92400e;
}

.status.status-processing,
.status.processing {
    background: #dbeafe;
    color: #1e40af;
}

.status.status-upcoming,
.status.upcoming {
    background: #fef3c7;
    color: #92400e;
}

.status.status-active,
.status.active {
    background: #dbeafe;
    color: #1d4ed8;
}

.status.status-pending,
.status.pending {
    background: #f3e8ff;
    color: #7c3aed;
}

.status.status-completed,
.status.completed {
    background: #dcfce7;
    color: #166534;
}

.status.status-cancelled,
.status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Operation Status Dropdown */
.operation-status-select {
    min-width: 90px;
    padding: 6px 12px !important;
    outline: none;
}

.operation-status-select.status-active {
    background: #dbeafe;
    color: #1d4ed8;
}

.operation-status-select.status-upcoming {
    background: #fef3c7;
    color: #92400e;
}

.operation-status-select.status-pending {
    background: #f3e8ff;
    color: #7c3aed;
}

.operation-status-select.status-completed {
    background: #dcfce7;
    color: #166534;
}

.operation-status-select.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Highlight star button active state */
.icon-btn.small.active {
    color: #f59e0b;
}

.icon-btn.small.active i {
    color: #f59e0b;
}

/* Empty state styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Table controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.refresh-btn {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: #e2e8f0;
}

/* Header subtitle */
.header-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Booking List (legacy) */
.booking-list {
    display: flex;
    flex-direction: column;
}

.booking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.booking-item:last-child {
    border-bottom: none;
}

.booking-item:hover {
    background: var(--background);
}

.booking-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.booking-info {
    flex: 1;
}

.booking-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.booking-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.booking-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.booking-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.booking-status.confirmed {
    background: #D1FAE5;
    color: var(--success);
}

.booking-status.pending {
    background: #FEF3C7;
    color: var(--warning);
}

.booking-status.cancelled {
    background: #FEE2E2;
    color: var(--danger);
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-item:hover {
    background: var(--light-blue);
}

.task-item input[type="checkbox"] {
    display: none;
}

.task-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.task-item input:checked + .task-check {
    background: var(--success);
    border-color: var(--success);
}

.task-item input:checked + .task-check::after {
    content: '✓';
    color: white;
    font-size: 12px;
}

.task-item input:checked ~ .task-text {
    text-decoration: line-through;
    color: var(--text-light);
}

.task-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
}

.task-priority {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.task-priority.high {
    background: #FEE2E2;
    color: var(--danger);
}

.task-priority.medium {
    background: #FEF3C7;
    color: var(--warning);
}

.task-priority.low {
    background: #D1FAE5;
    color: var(--success);
}

/* Revenue Summary */
.revenue-summary {
    display: flex;
    align-items: center;
    padding: 20px;
}

.revenue-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.revenue-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.revenue-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.revenue-icon.income {
    background: #D1FAE5;
    color: var(--success);
}

.revenue-icon.expense {
    background: #FEE2E2;
    color: var(--danger);
}

.revenue-icon.profit {
    background: var(--light-blue);
    color: var(--primary-blue);
}

.revenue-text {
    display: flex;
    flex-direction: column;
}

.revenue-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.revenue-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .revenue-summary {
        flex-direction: column;
        gap: 16px;
    }
    
    .revenue-divider {
        width: 100%;
        height: 1px;
    }
}

/* ==========================================
   FORMULA REFERENCE STYLES
   ========================================== */
.formula-reference {
    margin-top: 20px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    overflow: hidden;
}

.formula-reference summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.formula-reference summary:hover {
    background: #e0f2fe;
}

.formula-reference summary i {
    color: #0ea5e9;
}

.formula-content {
    padding: 16px;
    background: white;
    border-top: 1px solid #bae6fd;
}

.formula-table {
    width: 100%;
    border-collapse: collapse;
}

.formula-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.formula-table tr:last-child {
    border-bottom: none;
}

.formula-table td {
    padding: 8px 12px;
    font-size: 13px;
}

.formula-table td:first-child {
    width: 200px;
    color: #1e40af;
    font-weight: 500;
}

.formula-table td:last-child {
    color: #4b5563;
    font-family: 'Courier New', monospace;
}

/* SGL Charge Item in Cost Summary */
.sgl-charge-item {
    background: #fef3c7;
    border-radius: 6px;
    padding: 10px !important;
    border: 1px solid #fcd34d;
}

.sgl-charge-item .summary-label {
    color: #92400e;
    font-weight: 600;
}

/* ==========================================
   PRINT OPTIONS PANEL
   ========================================== */
.print-options-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0;
    margin: 0 auto 20px;
    max-width: 800px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.print-options-panel .options-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.print-options-panel .options-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.print-options-panel .options-header h3 i {
    margin-right: 8px;
}

.print-options-panel .close-options {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.print-options-panel .close-options:hover {
    background: rgba(255,255,255,0.3);
}

.print-options-panel .options-body {
    padding: 20px;
}

.print-options-panel .options-desc {
    color: #64748b;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.print-options-panel .options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.print-options-panel .option-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.print-options-panel .option-checkbox:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
}

.print-options-panel .option-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.print-options-panel .option-checkbox span {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    @page {
        size: A4;
        margin: 15mm 20mm 15mm 20mm; /* top right bottom left - EQUAL left/right */
    }
    
    /* Hide ALL non-printable elements */
    .sidebar,
    .top-nav,
    .main-content > header,
    .page-header-bar,
    .print-options-panel,
    .action-btn,
    .btn-save,
    .btn-next,
    .header-actions,
    .back-btn,
    nav,
    .notification,
    .page-title-group,
    .header-left-section,
    .settlement-header-actions,
    .add-item-btn,
    .delete-btn,
    .btn-back,
    .btn-print {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Force show the print content */
    html, body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        height: auto !important;
        width: 100% !important;
    }
    
    /* Make main content full width, no sidebar offset */
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
        position: static !important;
    }
    
    /* Content area must be visible and not scrolled */
    .content-area {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        height: auto !important;
        position: static !important;
    }
    
    /* Print preview container - ensure visible */
    .print-preview-container {
        display: block !important;
        visibility: visible !important;
        padding: 0 !important;
        margin: 0 auto !important;
        background: white !important;
        position: static !important;
        overflow: visible !important;
    }
    
    /* Print document - THE ACTUAL CONTENT - CENTERED */
    .print-document,
    #printableQuotation {
        display: block !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important; /* Padding handled by @page margin */
        background: white !important;
        position: static !important;
        overflow: visible !important;
    }
    
    /* All sections inside print document */
    .print-document * {
        visibility: visible !important;
    }
    
    /* Document header */
    .doc-header {
        display: flex !important;
        visibility: visible !important;
        justify-content: space-between !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
        border-bottom: 2px solid #1e40af !important;
    }
    
    .company-info,
    .company-logo,
    .company-details,
    .doc-title-section,
    .doc-meta {
        display: block !important;
        visibility: visible !important;
    }
    
    .company-logo {
        font-size: 20px !important;
        color: #1e40af !important;
    }
    
    .doc-title-section h1 {
        font-size: 22px !important;
        color: #1e40af !important;
    }
    
    /* Sections */
    .doc-section {
        display: block !important;
        visibility: visible !important;
        margin-bottom: 15px !important;
        page-break-inside: avoid;
    }
    
    .section-title {
        display: block !important;
        visibility: visible !important;
        background: #1e40af !important;
        color: white !important;
        padding: 8px 12px !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Customer grid */
    .customer-grid {
        display: flex !important;
        visibility: visible !important;
    }
    
    .customer-col {
        display: block !important;
        visibility: visible !important;
        flex: 1;
    }
    
    /* Itinerary */
    .itinerary-list,
    .itinerary-day {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Tables */
    table {
        display: table !important;
        visibility: visible !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }
    
    thead { display: table-header-group !important; }
    tbody { display: table-row-group !important; }
    tr { display: table-row !important; }
    th, td { 
        display: table-cell !important;
        visibility: visible !important;
        padding: 8px !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
    
    th {
        background: #f8fafc !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    /* Two column sections */
    .two-col-section {
        display: flex !important;
        visibility: visible !important;
    }
    
    .inclusion-col,
    .exclusion-col {
        display: block !important;
        visibility: visible !important;
        flex: 1;
    }
    
    .inclusion-list,
    .exclusion-list {
        display: block !important;
        visibility: visible !important;
    }
    
    .inclusion-list li,
    .exclusion-list li {
        display: list-item !important;
        visibility: visible !important;
    }
    
    /* Footer */
    .doc-footer {
        display: block !important;
        visibility: visible !important;
        margin-top: 20px !important;
        page-break-inside: avoid;
    }
    
    .footer-content {
        display: flex !important;
        visibility: visible !important;
    }
    
    .prepared-by,
    .acceptance {
        display: block !important;
        visibility: visible !important;
        flex: 1;
    }
    
    .signature-line {
        border-bottom: 1px solid #374151 !important;
        height: 40px !important;
        margin: 10px 0 !important;
    }
    
    /* Ensure colors print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    /* Page settings */
    @page {
        size: A4;
        margin: 10mm;
    }
}

/* ==========================================
   GLOBAL RESPONSIVE OVERRIDES
   Fixes for inline style grids on mobile
   ========================================== */
@media screen and (max-width: 768px) {
    /* Force all two-column grids to single column */
    .page-container > div > div[style*="grid-template-columns:1fr 1fr"],
    .page-container > div[style*="grid-template-columns:1fr 1fr"],
    .page-container .main-grid,
    .booking-confirm-page .main-grid {
        display: block !important;
    }
    
    .booking-confirm-page .main-grid > div {
        margin-bottom: 16px !important;
    }
    
    /* Travel dates grid - 2 columns on mobile */
    .booking-confirm-page div[style*="grid-template-columns:repeat(4"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Force page container to not overflow */
    .page-container {
        overflow-x: hidden !important;
    }
    
    #pageContent {
        overflow-x: hidden !important;
    }
    
    .main-content {
        overflow-x: hidden !important;
    }
}

/* ==========================================
   MESSAGES PAGE STYLES
   ========================================== */

.messages-page {
    padding: 24px;
    max-width: 1400px;
}

.messages-page .page-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.messages-page .header-actions .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
}

.messages-container {
    display: grid;
    grid-template-columns: 240px 1fr 0;
    gap: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 600px;
    transition: grid-template-columns 0.3s ease;
}

.messages-container.detail-open {
    grid-template-columns: 240px 1fr 400px;
}

/* Messages Sidebar */
.messages-sidebar {
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.messages-folders {
    padding: 16px;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.folder-item:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.folder-item.active {
    background: var(--primary-blue);
    color: white;
}

.folder-item i {
    width: 20px;
    text-align: center;
}

.folder-count {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.folder-item.active .folder-count {
    background: rgba(255,255,255,0.3);
}

.folder-count:empty {
    display: none;
}

/* Quick Contacts */
.quick-contacts {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.quick-contacts h4 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-item:hover {
    background: #e2e8f0;
}

.contact-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.contact-name {
    font-size: 13px;
    color: var(--text-primary);
}

/* Messages List Panel */
.messages-list-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messages-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #fafbfc;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.toolbar-right .search-box {
    width: 250px;
}

.toolbar-right .search-box input {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px 8px 36px;
    font-size: 14px;
    width: 100%;
}

.toolbar-right .search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* Messages List */
.messages-list {
    flex: 1;
    overflow-y: auto;
}

.message-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s ease;
}

.message-list-item:hover {
    background: #f8fafc;
}

.message-list-item.unread {
    background: #eff6ff;
}

.message-list-item.unread:hover {
    background: #dbeafe;
}

.message-list-item.selected {
    background: #e0e7ff;
}

.message-list-item .checkbox-wrapper {
    flex-shrink: 0;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s ease;
}

.star-btn:hover {
    color: #fbbf24;
}

.star-btn.starred {
    color: #fbbf24;
}

.message-list-content {
    flex: 1;
    min-width: 0;
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sender-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.sender-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.message-list-item.unread .sender-name {
    font-weight: 700;
}

.message-subject {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-list-item.unread .message-subject {
    font-weight: 600;
}

.message-preview-text {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.message-list-item.unread .message-time {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Message Detail Panel */
.message-detail-panel {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    background: white;
}

.message-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #fafbfc;
}

.back-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    display: none;
}

.back-btn:hover {
    background: #e2e8f0;
}

.message-actions {
    display: flex;
    gap: 4px;
}

.message-actions .action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.message-actions .action-btn:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.message-detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.message-full-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.message-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.message-header-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.message-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.message-meta .from strong {
    color: var(--text-primary);
}

.message-full-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Compose Modal */
.compose-modal {
    max-width: 600px;
    width: 95%;
}

.compose-modal .form-group {
    margin-bottom: 16px;
}

.compose-modal .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.compose-modal .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.compose-modal .form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.compose-modal textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Empty State */
.messages-list .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-secondary);
}

.messages-list .empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.messages-list .empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Nav Messages Badge */
.nav-badge {
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    position: relative;
    display: inline-block;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
    .messages-container {
        grid-template-columns: 200px 1fr;
    }
    
    .messages-container.detail-open {
        grid-template-columns: 0 0 1fr;
    }
    
    .messages-container.detail-open .messages-sidebar,
    .messages-container.detail-open .messages-list-panel {
        display: none;
    }
    
    .messages-container.detail-open .message-detail-panel .back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .messages-page {
        padding: 16px;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .messages-sidebar {
        display: none;
    }
    
    .messages-page .page-top-bar {
        flex-direction: column;
        gap: 16px;
    }
    
    .toolbar-right .search-box {
        width: 180px;
    }
    
    .message-list-item {
        padding: 12px;
    }
    
    .message-sender {
        display: none;
    }
}
