/**
 * KGT Dashboard – Frontend Admin Dashboard
 * Matches Travivu theme styling
 */

/* ── Layout ── */
.kgt-dash { font-family: inherit; position: relative; }
.kgt-dash-layout { display: flex; min-height: 600px; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #f9fafb; }
.kgt-dash-main { flex: 1; min-width: 0; padding: 24px; }

/* ── Sidebar (desktop: in-flow flex child) ── */
.kgt-dash-sidebar { width: 240px; background: var(--travivu-heading-color, #16243D); color: #fff; flex-shrink: 0; display: flex; flex-direction: column; }
.kgt-dash-sidebar-close { display: none; }

/* ── Sidebar Overlay (hidden on desktop) ── */
.kgt-dash-sidebar-overlay { display: none; }

/* ── Sidebar Elements ── */
.kgt-dash-brand { padding: 20px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.kgt-dash-brand i { font-size: 20px; color: var(--e-global-color-primary, #E4803A); }
.kgt-dash-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.kgt-dash-nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.2s; cursor: pointer; border-left: 3px solid transparent; }
.kgt-dash-nav-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.kgt-dash-nav-item--active { color: #fff; background: rgba(255,255,255,0.12); border-left-color: var(--e-global-color-primary, #E4803A); }
.kgt-dash-nav-item i { width: 18px; text-align: center; flex-shrink: 0; }
.kgt-dash-user { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); }

/* ── Topbar ── */
.kgt-dash-topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.kgt-dash-page-title { font-size: 22px; font-weight: 700; color: var(--travivu-heading-color, #16243D); margin: 0; }

/* ── Hamburger Button (hidden on desktop) ── */
.kgt-dash-menu-toggle { display: none; align-items: center; justify-content: center; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; padding: 0; cursor: pointer; width: 44px; height: 44px; flex-shrink: 0; transition: border-color 0.2s, box-shadow 0.2s; }
.kgt-dash-menu-toggle:hover { border-color: var(--e-global-color-primary, #E4803A); box-shadow: 0 0 0 2px rgba(228,128,58,0.12); }
.kgt-dash-menu-toggle:active { background: #f9fafb; }

/* ── Hamburger Icon (pure CSS) ── */
.kgt-hamburger { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 20px; height: 16px; position: relative; }
.kgt-hamburger span { display: block; width: 20px; height: 2px; background: var(--travivu-heading-color, #16243D); border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: absolute; left: 0; }
.kgt-hamburger span:nth-child(1) { top: 0; }
.kgt-hamburger span:nth-child(2) { top: 7px; }
.kgt-hamburger span:nth-child(3) { top: 14px; }
.kgt-dash-menu-toggle.is-active .kgt-hamburger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.kgt-dash-menu-toggle.is-active .kgt-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.kgt-dash-menu-toggle.is-active .kgt-hamburger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ── Tabs ── */
.kgt-dash-tab { display: none; animation: kgtFadeIn 0.25s ease; }
.kgt-dash-tab--active { display: block; }

/* ── Stats ── */
.kgt-dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kgt-stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.kgt-stat-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(228,128,58,0.1); color: var(--e-global-color-primary, #E4803A); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.kgt-stat-icon--blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.kgt-stat-icon--green { background: rgba(16,185,129,0.1); color: #10b981; }
.kgt-stat-icon--purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.kgt-stat-icon--orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.kgt-stat-icon--yellow { background: rgba(234,179,8,0.1); color: #ca8a04; }
.kgt-stat-info { display: flex; flex-direction: column; }
.kgt-stat-num { font-size: 24px; font-weight: 700; color: var(--travivu-heading-color, #16243D); line-height: 1.2; }
.kgt-stat-label { font-size: 13px; color: #6b7280; }

/* ── Toolbar ── */
.kgt-dash-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.kgt-dash-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.kgt-dash-input, .kgt-dash-select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; background: #fff; }
.kgt-dash-input { min-width: 200px; }
.kgt-dash-input:focus, .kgt-dash-select:focus { outline: none; border-color: var(--e-global-color-primary, #E4803A); box-shadow: 0 0 0 2px rgba(228,128,58,0.12); }

/* ── Table ── */
.kgt-dash-table-wrap { overflow-x: auto; }
.kgt-dash-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; }
.kgt-dash-table th { background: #f9fafb; font-weight: 600; color: var(--travivu-heading-color, #16243D); text-align: left; padding: 10px 14px; font-size: 13px; white-space: nowrap; border-bottom: 1px solid #e5e7eb; }
.kgt-dash-table td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; color: #374151; vertical-align: top; }
.kgt-dash-table tr:last-child td { border-bottom: none; }
.kgt-dash-table tr:hover td { background: #fafafa; }

/* ── Status Badges ── */
.kgt-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.kgt-badge--pending { background: #fef3c7; color: #92400e; }
.kgt-badge--confirmed { background: #d1fae5; color: #065f46; }
.kgt-badge--in_transit { background: #dbeafe; color: #1e40af; }
.kgt-badge--completed { background: #e0e7ff; color: #3730a3; }
.kgt-badge--cancelled { background: #fee2e2; color: #991b1b; }
.kgt-badge--refunded { background: #f3f4f6; color: #4b5563; }
.kgt-badge--transfer { background: #dbeafe; color: #1e40af; }
.kgt-badge--rental { background: #fce7f3; color: #9d174d; }
.kgt-badge--tour { background: #d5f5e3; color: #145a32; }
.kgt-badge--publish { background: #d1fae5; color: #065f46; }
.kgt-badge--draft { background: #f3f4f6; color: #4b5563; }

/* ── Buttons (Small) ── */
.kgt-btn--sm { padding: 8px 16px; font-size: 13px; }
.kgt-btn--xs { padding: 4px 10px; font-size: 12px; border-radius: 5px; }
.kgt-btn--danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.kgt-btn--danger:hover { background: #dc2626; }

/* ── Cards Grid (Vehicles) ── */
.kgt-dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kgt-dash-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; }
.kgt-dash-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--travivu-heading-color, #16243D); }
.kgt-vh-card-img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; background: #f3f4f6; }
.kgt-vh-card-img--placeholder { display: flex; align-items: center; justify-content: center; font-size: 40px; color: #d1d5db; }
.kgt-vh-card-name { font-size: 16px; font-weight: 700; color: var(--travivu-heading-color, #16243D); margin-bottom: 6px; }
.kgt-vh-card-meta { font-size: 13px; color: #6b7280; margin-bottom: 10px; }
.kgt-vh-card-actions { display: flex; gap: 6px; }

/* ── Pagination ── */
.kgt-dash-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.kgt-page-btn { padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; font-family: inherit; }
.kgt-page-btn:hover { border-color: var(--e-global-color-primary, #E4803A); }
.kgt-page-btn--active { background: var(--e-global-color-primary, #E4803A); color: #fff; border-color: var(--e-global-color-primary, #E4803A); }
.kgt-page-btn--disabled { opacity: .4; cursor: default; pointer-events: none; }
.kgt-page-ellipsis { padding: 6px 4px; font-size: 13px; color: #9ca3af; user-select: none; }

/* ── Modal ── */
.kgt-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999999; display: flex; align-items: center; justify-content: center; }
.kgt-modal.kgt-modal--media-open { z-index: 159000; }
.kgt-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.kgt-modal-content { position: relative; background: #fff; border-radius: 12px; width: 90%; max-width: 640px; max-height: 85vh; display: flex; flex-direction: column; animation: kgtFadeIn 0.2s ease; }
.kgt-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid #e5e7eb; }
.kgt-modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--travivu-heading-color, #16243D); }
.kgt-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #9ca3af; padding: 0; line-height: 1; }
.kgt-modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.kgt-modal-body .kgt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kgt-modal-body .kgt-form-group--full { grid-column: 1 / -1; }
.kgt-modal-body .kgt-form-group label { font-size: 13px; font-weight: 600; margin-bottom: 4px; display: block; color: var(--travivu-heading-color, #16243D); }
.kgt-modal-body .kgt-form-group input,
.kgt-modal-body .kgt-form-group select,
.kgt-modal-body .kgt-form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; }
.kgt-modal-body .kgt-form-group input:focus,
.kgt-modal-body .kgt-form-group select:focus,
.kgt-modal-body .kgt-form-group textarea:focus { outline: none; border-color: var(--e-global-color-primary, #E4803A); }
.kgt-modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid #e5e7eb; }

/* ── Image Preview ── */
.kgt-image-preview { margin-bottom: 8px; }
.kgt-image-preview img { max-width: 200px; max-height: 120px; border-radius: 6px; object-fit: cover; }

/* ── Gallery Grid ── */
.kgt-gallery-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.kgt-gallery-item { position: relative; width: 80px; height: 80px; border-radius: 6px; overflow: hidden; border: 1px solid #e5e7eb; }
.kgt-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kgt-gallery-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; font-size: 14px; line-height: 18px; text-align: center; cursor: pointer; padding: 0; opacity: 0; transition: opacity 0.15s; }
.kgt-gallery-item:hover .kgt-gallery-remove { opacity: 1; }

#kgt-tour-modal .mce-panel { border-radius: 6px !important; }
#kgt-tour-modal .mce-toolbar-grp { border-bottom: 1px solid #e5e7eb; }
#kgt-tour-modal .mce-edit-area { border-radius: 0 0 6px 6px !important; }
#kgt-tour-modal .mce-tinymce { border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.kgt-variation-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 10px; background: #f9fafb; }
.kgt-var-label { font-weight: 600; font-size: 14px; min-width: 120px; color: #1f2937; }
.kgt-var-fields { display: flex; gap: 12px; flex: 1; }
.kgt-var-field { flex: 1; }
.kgt-var-field label { display: block; font-size: 11px; color: #6b7280; margin-bottom: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.kgt-var-field input { width: 100%; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; }

/* ── Login ── */
.kgt-dash-login { text-align: center; padding: 60px 20px; }

/* ── Tour thumbnail in table ── */
.kgt-tour-thumb { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; }

/* ── Invoice Modal – wider ── */
.kgt-modal-content--wide { max-width: 720px; }

/* ── Invoice layout ── */
#kgt-inv-print-area { padding: 8px; }
.kgt-inv-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.kgt-inv-logo img { max-height: 56px; }
.kgt-inv-company { font-size: 18px; color: var(--travivu-heading-color, #16243D); }
.kgt-inv-title { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: 2px; color: var(--travivu-heading-color, #16243D); margin: 12px 0 8px; }
.kgt-inv-number { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: #6b7280; margin-top: 4px; }
.kgt-inv-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.kgt-inv-table th { text-align: left; padding: 8px 12px; width: 160px; color: #6b7280; font-weight: 600; }
.kgt-inv-table td { padding: 8px 12px; color: #1f2937; }
.kgt-inv-table hr { border: 0; border-top: 1px solid #e5e7eb; margin: 0; }
.kgt-inv-total-row th, .kgt-inv-total-row td { font-size: 18px; font-weight: 700; color: var(--travivu-heading-color, #16243D); padding-top: 12px; }
.kgt-inv-footer { text-align: center; font-size: 12px; color: #9ca3af; padding-top: 12px; border-top: 1px solid #e5e7eb; margin-top: 8px; }

/* ── Booking row buttons ── */
.kgt-btn--info { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.kgt-btn--info:hover { background: #2563eb; }
.kgt-btn--success { background: #10b981; color: #fff; border-color: #10b981; }
.kgt-btn--success:hover { background: #059669; }

/* ── Review Stars ── */
.kgt-stars { display: inline-flex; gap: 1px; }
.kgt-stars i { font-size: 14px; }

/* ── Source / Review / Expense Badges ── */
.kgt-badge--kgt { background: #dbeafe; color: #1e40af; }
.kgt-badge--woo { background: #ede9fe; color: #6d28d9; }
.kgt-badge--both { background: #d1fae5; color: #065f46; }
.kgt-badge--approved { background: #d1fae5; color: #065f46; }
.kgt-badge--rejected { background: #fee2e2; color: #991b1b; }
.kgt-badge--sent { background: #d1fae5; color: #065f46; }
.kgt-badge--failed { background: #fee2e2; color: #991b1b; }

/* Expense category badges */
.kgt-badge--exp-fuel { background: #fef3c7; color: #92400e; }
.kgt-badge--exp-maintenance { background: #fce7f3; color: #9d174d; }
.kgt-badge--exp-insurance { background: #dbeafe; color: #1e40af; }
.kgt-badge--exp-driver { background: #d5f5e3; color: #145a32; }
.kgt-badge--exp-tolls { background: #f3f4f6; color: #4b5563; }
.kgt-badge--exp-marketing { background: #ede9fe; color: #6d28d9; }
.kgt-badge--exp-office { background: #e0e7ff; color: #3730a3; }
.kgt-badge--exp-other { background: #f3f4f6; color: #4b5563; }

/* ── Confirm Dialog ── */
.kgt-confirm-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: #fef3c7; color: #f59e0b; }
.kgt-confirm-icon--danger { background: #fee2e2; color: #ef4444; }
.kgt-confirm-title { font-size: 20px; font-weight: 700; color: var(--travivu-heading-color, #16243D); margin: 0 0 8px; }
.kgt-confirm-msg { font-size: 14px; color: #6b7280; margin: 0 0 24px; line-height: 1.5; }
.kgt-confirm-actions { display: flex; gap: 10px; justify-content: center; }
.kgt-confirm-actions .kgt-btn--sm { min-width: 100px; }

/* ── Finance Chart ── */
.kgt-fin-chart-wrap { position: relative; width: 100%; height: 300px; }
#kgt-fin-chart { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

/* ── Settings Cards stacked ── */
.kgt-dash-tab[data-tab="settings"] .kgt-dash-card { margin-bottom: 16px; }
.kgt-dash-tab[data-tab="settings"] .kgt-form-group label { font-size: 13px; font-weight: 600; margin-bottom: 4px; display: block; color: var(--travivu-heading-color, #16243D); }
.kgt-dash-tab[data-tab="settings"] .kgt-form-group input[type="text"],
.kgt-dash-tab[data-tab="settings"] .kgt-form-group input[type="password"] { width: 100%; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; }
.kgt-dash-tab[data-tab="settings"] .kgt-form-group input[type="checkbox"] { margin-right: 6px; }

/* ── Print-specific ── */
@media print {
    body * { visibility: hidden !important; }
    #kgt-inv-print-area, #kgt-inv-print-area * { visibility: visible !important; }
    #kgt-inv-print-area { position: absolute; left: 0; top: 0; width: 100%; padding: 32px; }
    .kgt-modal-header, .kgt-modal-footer, .kgt-modal-overlay { display: none !important; }
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
    .kgt-dash-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .kgt-dash-table td, .kgt-dash-table th { padding: 8px 10px; font-size: 13px; }
}

/* ── Responsive: Mobile (<=768px) ── */
@media (max-width: 768px) {
    /* Remove overflow:hidden so fixed sidebar can escape the layout */
    .kgt-dash-layout { flex-direction: column; overflow: visible; border-radius: 0; border: none; background: #fff; }

    /* Sidebar becomes a fixed drawer */
    .kgt-dash-sidebar { position: fixed !important; top: 0 !important; left: -280px; width: 260px; height: 100vh !important; z-index: 999999 !important; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .kgt-dash-sidebar.kgt-dash-sidebar--open { left: 0 !important; box-shadow: 4px 0 24px rgba(0,0,0,0.25); }
    .kgt-dash-sidebar-close { display: block; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 28px; cursor: pointer; padding: 0; line-height: 1; margin-left: auto; transition: color 0.2s; }
    .kgt-dash-sidebar-close:hover { color: #fff; }

    /* Overlay */
    .kgt-dash-sidebar-overlay--active { display: block !important; position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; background: rgba(0,0,0,0.4); z-index: 999998 !important; }

    /* Show hamburger */
    .kgt-dash-menu-toggle { display: flex !important; }

    .kgt-dash-stats { grid-template-columns: 1fr 1fr; }
    .kgt-dash-cards { grid-template-columns: 1fr; }
    .kgt-dash-filters { flex-direction: column; width: 100%; }
    .kgt-dash-input { min-width: 0; width: 100%; min-height: 44px; }
    .kgt-dash-select { min-height: 44px; }
    .kgt-dash-toolbar { flex-direction: column; align-items: stretch; }
    .kgt-modal-content { width: 95%; max-height: 90vh; }
    .kgt-modal-body .kgt-form-grid { grid-template-columns: 1fr; }
    .kgt-dash-main { padding: 16px; }

    /* Card-style tables */
    .kgt-dash-table-wrap { overflow-x: visible; }
    .kgt-dash-table thead { display: none; }
    .kgt-dash-table, .kgt-dash-table tbody { display: block; border: none; }
    .kgt-dash-table tr { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
    .kgt-dash-table td { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; text-align: right; gap: 10px; }
    .kgt-dash-table td:last-child { border-bottom: none; }
    .kgt-dash-table td::before { content: attr(data-label); font-weight: 600; color: var(--travivu-heading-color, #16243D); font-size: 12px; text-transform: uppercase; text-align: left; flex-shrink: 0; min-width: 80px; letter-spacing: 0.03em; }
    .kgt-dash-table td[data-label="Actions"] { justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
    .kgt-dash-table td[data-label="Actions"]::before { display: none; }
    .kgt-dash-table td[data-label="Price"] { flex-direction: column; align-items: flex-start; text-align: left; }
    .kgt-dash-table td[data-label="Price"] .kgt-td-price { width: 100%; }
    .kgt-dash-table td[data-label="Price"] .kgt-td-price small { font-size: 11px; color: #6b7280; }
    .kgt-dash-table td:not([data-label]) { justify-content: center; text-align: center; }
    .kgt-dash-table td:not([data-label])::before { display: none; }

    .kgt-btn--sm { padding: 10px 16px; font-size: 14px; min-height: 44px; }
    .kgt-btn--xs { padding: 8px 14px; font-size: 13px; min-height: 40px; }
}

/* ── Responsive: Small phones ── */
@media (max-width: 480px) {
    .kgt-dash-stats { grid-template-columns: 1fr; }
    .kgt-stat-card { padding: 14px; }
    .kgt-stat-num { font-size: 20px; }
    .kgt-dash-page-title { font-size: 18px; }
    .kgt-modal-content { width: 100%; max-width: 100%; max-height: 100vh; border-radius: 0; }
    .kgt-modal-body { padding: 16px; }
    .kgt-modal-header, .kgt-modal-footer { padding: 12px 16px; }
    .kgt-dash-main { padding: 12px; }
    .kgt-dash-card { padding: 14px; }
    .kgt-fin-chart-wrap { height: 220px; }
    .kgt-dash-tab[data-tab="settings"] .kgt-form-grid { grid-template-columns: 1fr !important; }
    .kgt-variation-row { flex-direction: column; gap: 8px; }
    .kgt-var-label { min-width: auto; }
    .kgt-var-fields { width: 100%; }
}

@keyframes kgtFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Tour Order Detail ── */
.kgt-order-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 8px;
}
.kgt-order-detail__section {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
}
.kgt-order-detail__section h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.kgt-order-detail__section p {
    margin: 4px 0;
    font-size: 14px;
    color: #4b5563;
}
.kgt-order-meta-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.kgt-order-meta {
    display: block;
    font-size: 13px;
    color: #4b5563;
}
.kgt-badge--processing { background: #dbeafe; color: #1d4ed8; }
.kgt-badge--completed  { background: #d1fae5; color: #065f46; }
.kgt-badge--on-hold    { background: #fef3c7; color: #92400e; }
.kgt-badge--pending    { background: #f3f4f6; color: #6b7280; }
.kgt-badge--cancelled  { background: #fee2e2; color: #991b1b; }
.kgt-badge--refunded   { background: #ede9fe; color: #5b21b6; }

@media (max-width: 600px) {
    .kgt-order-detail__grid { grid-template-columns: 1fr; }
}
