/* ============================================================
   CCI Event Monitoring System – Global Styles
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --color-done:       #198754;
    --color-pending:    #6c757d;
    --color-inprogress: #ffc107;
    --color-issue:      #dc3545;
    --color-urgent:     #dc3545;
    --sidebar-width:    260px;
    --header-height:    60px;
    --transition:       0.2s ease;
}

/* ---- Body & Base ---- */
body { font-family: 'Segoe UI', system-ui, sans-serif; }

/* ---- Login Page ---- */
.login-page { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); }
.login-page .card { border-radius: 16px !important; }

/* ---- Sidebar (Desktop) ---- */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: #1a1d23;
    color: #ced4da;
    position: fixed;
    top: 0; left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}
.sidebar-logo {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #0d1117;
}
.sidebar-logo h6 { color: #fff; font-weight: 700; font-size: .85rem; }
.sidebar-logo small { color: #6c757d; font-size: .7rem; }
.sidebar .nav-link {
    color: #adb5bd;
    padding: .65rem 1.25rem;
    border-radius: 8px;
    margin: 2px 8px;
    font-size: .875rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    transition: background var(--transition), color var(--transition);
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: rgba(13,110,253,.2);
    color: #4dabf7;
}
.sidebar .nav-link i { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar .nav-section {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #495057;
    padding: .75rem 1.25rem .25rem;
    font-weight: 600;
}

/* ---- Main Content ---- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin var(--transition);
}
.main-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    gap: .75rem;
}
[data-bs-theme="dark"] .main-header {
    background: #212529;
    border-bottom-color: #343a40;
}

/* ---- Stat Cards ---- */
.stat-card {
    border-radius: 12px;
    border: none;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12) !important; }
.stat-card .stat-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { font-size: .78rem; color: #6c757d; text-transform: uppercase; letter-spacing: .05em; }

/* ---- Status Colors ---- */
.status-done       { color: var(--color-done); }
.status-pending    { color: var(--color-pending); }
.status-inprogress { color: var(--color-inprogress); }
.status-issue      { color: var(--color-issue); }

/* ---- Task Cards (Employee) ---- */
.task-card {
    border-radius: 12px;
    border-left: 5px solid var(--color-pending);
    transition: box-shadow .15s;
}
.task-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12) !important; }
.task-card.status-done       { border-left-color: var(--color-done); }
.task-card.status-inprogress { border-left-color: var(--color-inprogress); }
.task-card.status-issue      { border-left-color: var(--color-issue); }
.task-card.priority-urgent   { border-left-color: var(--color-urgent) !important; }

/* ---- Action Buttons ---- */
.btn-action {
    padding: .65rem 1rem;
    font-size: .9rem;
    border-radius: 10px;
    font-weight: 600;
    min-width: 90px;
}
.btn-done       { background: var(--color-done);       color: #fff; border: none; }
.btn-pending    { background: var(--color-pending);     color: #fff; border: none; }
.btn-issue      { background: var(--color-issue);       color: #fff; border: none; }
.btn-inprogress { background: var(--color-inprogress);  color: #000; border: none; }

/* ---- Progress Bar ---- */
.readiness-bar { height: 12px; border-radius: 100px; }

/* ---- Table ---- */
.table-hover tbody tr:hover { background: rgba(13,110,253,.04); }

/* ---- Print ---- */
@media print {
    .sidebar, .main-header, .no-print, .btn, .nav { display: none !important; }
    .main-content { margin-left: 0 !important; }
    body { background: #fff !important; }
    .print-page { page-break-after: always; }
}

/* ---- Mobile Responsive ---- */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1045;
    }
    .sidebar.show { transform: translateX(0); }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 1044;
    }
    .sidebar-backdrop.show { display: block; }
    .main-content { margin-left: 0 !important; }
}

/* ---- Dark Mode ---- */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1d23;
}
[data-bs-theme="dark"] .main-content { background: #1a1d23; }
[data-bs-theme="dark"] .card { background: #212529; border-color: #343a40; }
[data-bs-theme="dark"] .task-card { background: #2d3238; }
[data-bs-theme="dark"] .table { --bs-table-bg: transparent; }

/* ---- Pulse Alert ---- */
@keyframes pulse-ring {
    0%   { transform: scale(.95); box-shadow: 0 0 0 0 rgba(220,53,69,.4); }
    70%  { transform: scale(1);   box-shadow: 0 0 0 10px rgba(220,53,69,0); }
    100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(220,53,69,0); }
}
.pulse { animation: pulse-ring 1.5s infinite; }

/* ---- Notification Toast ---- */
#toastContainer { position: fixed; top: 70px; right: 16px; z-index: 9999; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #6c757d; border-radius: 3px; }

/* ---- QR Code ---- */
.qr-wrapper { display: inline-block; padding: 12px; background: #fff; border-radius: 8px; }

/* ============================================================
   Employee Mobile Bottom Navigation
   ============================================================ */
.emp-bottom-nav {
    display: none; /* shown only on mobile via media query */
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: #fff;
    border-top: 1px solid #dee2e6;
    z-index: 1050;
    box-shadow: 0 -4px 16px rgba(0,0,0,.10);
}
[data-bs-theme="dark"] .emp-bottom-nav {
    background: #1e2228;
    border-top-color: #343a40;
}
.emp-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #6c757d;
    text-decoration: none;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 6px 0;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
}
.emp-bottom-nav a i { font-size: 1.4rem; }
.emp-bottom-nav a.active,
.emp-bottom-nav a:hover { color: #0d6efd; }
.emp-bottom-nav a.nav-danger { color: #dc3545; }

/* ============================================================
   Employee Task Cards – Mobile-first
   ============================================================ */

/* Event group header */
.event-group-header {
    background: linear-gradient(90deg, #1a3c6b 0%, #1e4d8c 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    padding: 10px 14px;
}
.event-group-header .time-pill {
    background: rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}
.event-group-wrap {
    border: 1.5px solid #dde3f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
[data-bs-theme="dark"] .event-group-wrap { border-color: #343a40; }

/* Task row inside a group */
.task-row {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f2f6;
    background: #fff;
}
[data-bs-theme="dark"] .task-row { background: #212529; border-bottom-color: #2d3238; }
.task-row:last-child { border-bottom: none; }
.task-row.status-done       { border-left: 4px solid #198754; }
.task-row.status-inprogress { border-left: 4px solid #ffc107; }
.task-row.status-issue      { border-left: 4px solid #dc3545; }
.task-row.status-pending    { border-left: 4px solid #adb5bd; }
.task-row.overdue           { border-left: 4px solid #dc3545; background: #fff8f8; }
[data-bs-theme="dark"] .task-row.overdue { background: #2d1c1c; }

/* Big action buttons – thumb-friendly */
.task-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.task-btn {
    flex: 1;
    min-width: 72px;
    padding: 9px 6px;
    font-size: .8rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: opacity .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.task-btn:active { transform: scale(.96); opacity: .85; }
.task-btn-done       { background: #198754; color: #fff; }
.task-btn-working    { background: #ffc107; color: #000; }
.task-btn-issue      { background: #dc3545; color: #fff; }
.task-btn-photo      { background: #f1f3f5; color: #495057; border: 1px solid #dee2e6; }
[data-bs-theme="dark"] .task-btn-photo { background: #2d3238; color: #adb5bd; border-color: #495057; }

/* Stats strip */
.emp-stats-strip {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.emp-stat-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    padding: 10px 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
[data-bs-theme="dark"] .emp-stat-box { background: #212529; border-color: #343a40; }
.emp-stat-box .stat-n  { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.emp-stat-box .stat-lbl { font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; margin-top: 1px; }

/* Filter scroll bar */
.filter-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 14px;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-pill {
    white-space: nowrap;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    cursor: pointer;
    transition: all .15s;
    -webkit-tap-highlight-color: transparent;
}
[data-bs-theme="dark"] .filter-pill { background: #2d3238; border-color: #495057; color: #adb5bd; }
.filter-pill.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }

/* ══════════════════════════════════════════════════════════
   Dashboard – Top Banner + Stat Buttons
   ══════════════════════════════════════════════════════════ */

/* Top banner: "X Events Today" + "Send PDF" */
.dash-top-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1a3c6b 0%, #1e4d8c 100%);
    border-radius: 14px;
    padding: 16px 20px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,60,107,.35);
}
.dtb-date { font-size: .75rem; opacity: .75; text-transform: uppercase; letter-spacing: .07em; }
.dtb-count { font-size: 1.15rem; font-weight: 700; margin-top: 2px; }
.dtb-num   { font-size: 2rem; font-weight: 800; line-height: 1; vertical-align: baseline; }
.dtb-pdf-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(220,53,69,.45);
    transition: transform .15s, opacity .15s;
    -webkit-tap-highlight-color: transparent;
}
.dtb-pdf-btn i  { font-size: 1.5rem; }
.dtb-pdf-btn:active { transform: scale(.95); opacity: .88; }
[data-bs-theme="dark"] .dash-top-banner { background: linear-gradient(135deg,#0d2040,#112a5c); }

/* 3 big stat buttons */
.dash-stat-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.dsb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.dsb-btn:active { transform: scale(.97); }
.dsb-pending { background: #fff0f0; border: 2px solid #f8d7da; }
.dsb-done    { background: #f0fff4; border: 2px solid #d1e7dd; }
.dsb-delayed { background: #fffbf0; border: 2px solid #fff3cd; }
[data-bs-theme="dark"] .dsb-pending { background: #2d1a1a; border-color: #5a1e1e; }
[data-bs-theme="dark"] .dsb-done    { background: #0f2018; border-color: #1a4230; }
[data-bs-theme="dark"] .dsb-delayed { background: #2a2010; border-color: #4a3510; }
.dsb-icon { font-size: 1.4rem; margin-bottom: 4px; }
.dsb-pending .dsb-icon { color: #dc3545; }
.dsb-done    .dsb-icon { color: #198754; }
.dsb-delayed .dsb-icon { color: #d97706; }
.dsb-num  { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.dsb-pending .dsb-num { color: #dc3545; }
.dsb-done    .dsb-num { color: #198754; }
.dsb-delayed .dsb-num { color: #d97706; }
.dsb-lbl { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: #6c757d; margin-top: 3px; font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   Dashboard Event Cards – Redesigned
   ══════════════════════════════════════════════════════════ */
.ev-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: box-shadow .2s;
    overflow: hidden;
}
.ev-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.13); }
[data-bs-theme="dark"] .ev-card { background: #212529; }

/* Section heading above event cards */
.dash-section-hdr {
    display: flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}
/* Empty state */
.dash-empty {
    text-align: center;
    padding: 40px 20px;
    color: #adb5bd;
    font-size: .9rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.dash-empty i { font-size: 3rem; display: block; margin-bottom: 10px; }

.ev-hall-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1d23;
    line-height: 1.2;
    flex-grow: 1;
}
[data-bs-theme="dark"] .ev-hall-name { color: #f8f9fa; }

.ev-pct-badge {
    font-size: .9rem;
    font-weight: 800;
    min-width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Time + type chips */
.ev-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .73rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.ev-chip-time { background: #eef2ff; color: #4f46e5; }
.ev-chip-type { background: #f0fdf4; color: #15803d; }
[data-bs-theme="dark"] .ev-chip-time { background: #1e1b4b; color: #a5b4fc; }
[data-bs-theme="dark"] .ev-chip-type { background: #052e16; color: #86efac; }

.ev-guest-row {
    font-size: .82rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ev-pax { display: flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 600; color: #495057; }
[data-bs-theme="dark"] .ev-pax { color: #adb5bd; }

/* Progress bar */
.ev-progress-wrap {
    height: 6px;
    background: #e9ecef;
    border-radius: 100px;
    overflow: hidden;
}
[data-bs-theme="dark"] .ev-progress-wrap { background: #343a40; }
.ev-progress-fill { height: 100%; border-radius: 100px; transition: width .4s ease; }

/* 3 equal action buttons */
.ev-action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ev-act-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 4px;
    border-radius: 12px;
    border: none;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s, opacity .15s;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}
.ev-act-btn i    { font-size: 1.3rem; }
.ev-act-btn:active { transform: scale(.94); opacity: .85; }
.ev-act-details { background: #e8f4ff; color: #0d6efd; }
.ev-act-pdf     { background: #fee2e2; color: #dc2626; }
.ev-act-tasks   { background: #dcfce7; color: #16a34a; }
[data-bs-theme="dark"] .ev-act-details { background: #1a2d4a; color: #74b5fc; }
[data-bs-theme="dark"] .ev-act-pdf     { background: #3a1414; color: #f87171; }
[data-bs-theme="dark"] .ev-act-tasks   { background: #0f2a18; color: #86efac; }

/* ══════════════════════════════════════════════════════════
   Dashboard Event Cards (admin/index.php) — old edc- kept for compat
   ══════════════════════════════════════════════════════════ */
.edc-card {
    background: #fff;
    border-radius: 14px;
    border-left: 5px solid var(--accent, #6c757d);
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: box-shadow .2s, transform .15s;
}
.edc-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.13);
    transform: translateY(-1px);
}
[data-bs-theme="dark"] .edc-card {
    background: #212529;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.edc-hall {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1d23;
}
[data-bs-theme="dark"] .edc-hall { color: #f8f9fa; }
.edc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}
[data-bs-theme="dark"] .edc-chip { background: #2d3238; color: #adb5bd; border-color: #495057; }
.edc-chip-type { background: #e8f4ff; color: #0d6efd; border-color: #b6d4fe; }
[data-bs-theme="dark"] .edc-chip-type { background: #1a2d4a; color: #74b5fc; border-color: #1e3a5f; }
.edc-guest { font-size: .8rem; color: #6c757d; }

/* SVG circular progress ring */
.edc-ring-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}
.edc-ring { width: 58px; height: 58px; transform: rotate(-90deg); }
.edc-ring-bg  { fill: none; stroke: #e9ecef; stroke-width: 3; }
[data-bs-theme="dark"] .edc-ring-bg { stroke: #343a40; }
.edc-ring-fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray .5s ease;
}
.edc-ring-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: #1a1d23;
}
[data-bs-theme="dark"] .edc-ring-pct { color: #f8f9fa; }

/* Thin progress bar */
.edc-bar {
    height: 5px;
    background: #e9ecef;
    border-radius: 100px;
    overflow: hidden;
}
[data-bs-theme="dark"] .edc-bar { background: #343a40; }
.edc-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width .4s ease;
}

/* Action buttons row */
.edc-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.edc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 6px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.edc-btn:active { transform: scale(.96); opacity: .85; }
.edc-btn-view  { background: #e8f4ff; color: #0d6efd; }
.edc-btn-pdf   { background: #fff0ee; color: #dc3545; }
.edc-btn-tasks { background: #e8f5e9; color: #198754; }
[data-bs-theme="dark"] .edc-btn-view  { background: #1a2d4a; color: #74b5fc; }
[data-bs-theme="dark"] .edc-btn-pdf   { background: #3a1a1a; color: #f87171; }
[data-bs-theme="dark"] .edc-btn-tasks { background: #0f2a1a; color: #75b798; }

/* ══════════════════════════════════════════════════════════
   Booking Details Modal
   ══════════════════════════════════════════════════════════ */
.detail-summary-strip {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e9ecef;
}
[data-bs-theme="dark"] .detail-summary-strip { border-bottom-color: #343a40; }
.detail-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid #e9ecef;
}
[data-bs-theme="dark"] .detail-stat { border-right-color: #343a40; }
.detail-stat:last-child { border-right: none; }
.detail-stat .dsn { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.detail-stat .dsl { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: #6c757d; margin-top: 2px; }
.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    font-size: .83rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 16px !important;
}
[data-bs-theme="dark"] .detail-info-grid {
    background: #1a1d23;
    border-color: #343a40;
}
.detail-section-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6c757d;
    margin-bottom: 4px;
}
.detail-dept-header {
    background: linear-gradient(90deg, #1a3c6b, #1e4d8c);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 6px 16px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.detail-task-row {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f2f6;
    border-left: 3px solid transparent;
}
[data-bs-theme="dark"] .detail-task-row { background: #212529; border-bottom-color: #2d3238; }
.detail-task-row.done {
    border-left-color: #198754;
    background: #f6fdf9;
    opacity: .82;
}
[data-bs-theme="dark"] .detail-task-row.done { background: #0f1f17; }
.detail-footer-actions {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}
[data-bs-theme="dark"] .detail-footer-actions {
    background: #1a1d23;
    border-top-color: #343a40;
}
@media (max-width: 576px) {
    .detail-info-grid { grid-template-columns: 1fr; }
    .edc-ring-wrap { width: 50px; height: 50px; }
    .edc-ring      { width: 50px; height: 50px; }
    .edc-ring-pct  { font-size: .7rem; }
}

/* ---- Completed Section (all tasks done) ---- */
.event-group-header.header-done {
    background: linear-gradient(90deg, #0f5132 0%, #198754 100%);
}
.event-group-wrap.group-completed {
    border-color: #198754;
    box-shadow: 0 2px 12px rgba(25,135,84,.20);
    opacity: .92;
}
[data-bs-theme="dark"] .event-group-wrap.group-completed {
    border-color: #198754;
}
/* Done task rows are dimmed slightly inside a closed section */
.group-completed .task-row.status-done {
    background: #f6fdf9;
}
[data-bs-theme="dark"] .group-completed .task-row.status-done {
    background: #0f1f17;
}
/* Section closed banner at the bottom of the card */
.section-done-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d1e7dd;
    color: #0a3622;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 10px 14px;
    border-top: 1px solid #a3cfbb;
}
[data-bs-theme="dark"] .section-done-banner {
    background: #0a2218;
    color: #75b798;
    border-top-color: #1c4632;
}

/* Mobile-only body padding for bottom nav */
@media (max-width: 991.98px) {
    body.emp-view {
        padding-bottom: 62px;
    }
    .emp-bottom-nav { display: flex; }
    /* Tighten header for employee on mobile */
    body.emp-view .main-header { padding: 0 .75rem; }
}

/* ============================================================
   Booking Calendar Grid Styles
   ============================================================ */
.calendar-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    background: #fff;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}
[data-bs-theme="dark"] .calendar-wrapper {
    background: #212529;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    border-color: #343a40;
}

.calendar-table {
    width: max-content;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Base columns sizing & border rules */
.calendar-table th, .calendar-table td {
    border: 1px solid #ced4da !important;
    padding: 10px;
    vertical-align: top;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
}
[data-bs-theme="dark"] .calendar-table th, 
[data-bs-theme="dark"] .calendar-table td {
    border: 1px solid #495057 !important;
}

/* Sticky first column (Rooms) */
.calendar-room-col {
    position: sticky;
    left: 0;
    background: #f8f9fa !important;
    font-weight: 700;
    z-index: 10;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    border-right: 3px solid #ced4da !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}
[data-bs-theme="dark"] .calendar-room-col {
    background: #1a1d23 !important;
    border-right-color: #495057 !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    color: #fff;
}

/* Sticky header */
.calendar-header-row th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 9;
    text-align: center;
    font-weight: 700;
}
[data-bs-theme="dark"] .calendar-header-row th {
    background: #1a1d23;
}

.calendar-header-row th.calendar-room-col {
    z-index: 11;
}

/* Date headers */
.calendar-date-hdr {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
}
.calendar-date-hdr .day-name {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}
.calendar-date-hdr .date-val {
    font-size: 0.95rem;
    color: #212529;
}
[data-bs-theme="dark"] .calendar-date-hdr .date-val {
    color: #f8f9fa;
}

/* Booking Cells & Cards */
.calendar-cell-empty {
    color: #adb5bd;
    font-size: 0.8rem;
    text-align: center;
    padding-top: 15px !important;
    font-style: italic;
}
.booking-card {
    border-radius: 8px;
    border-left: 5px solid var(--color-pending);
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
}
.booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
[data-bs-theme="dark"] .booking-card {
    background: #2d3238;
}

/* Color Coding based on Booking Status */
/* 1. Confirmed (Green) */
.booking-card.status-confirmed {
    border-left: 5px solid #198754 !important;
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
}
.booking-card.status-confirmed .bc-guest {
    color: #0f5132 !important;
}
.booking-card.status-confirmed .bc-meta {
    color: #146c43 !important;
}
.booking-card.status-confirmed a,
.booking-card.status-confirmed button {
    color: #0f5132 !important;
    font-weight: bold;
}
[data-bs-theme="dark"] .booking-card.status-confirmed {
    background-color: #0f3d23 !important;
    color: #a3cfbb !important;
}
[data-bs-theme="dark"] .booking-card.status-confirmed .bc-guest {
    color: #a3cfbb !important;
}
[data-bs-theme="dark"] .booking-card.status-confirmed .bc-meta {
    color: #c7dbd2 !important;
}
[data-bs-theme="dark"] .booking-card.status-confirmed a,
[data-bs-theme="dark"] .booking-card.status-confirmed button {
    color: #a3cfbb !important;
}

/* 2. Provisional / Provisionally Blocked (Orange) */
.booking-card.status-provisional,
.booking-card.status-provisionally-blocked {
    border-left: 5px solid #fd7e14 !important;
    background-color: #ffe8cc !important;
    color: #8f4f00 !important;
}
.booking-card.status-provisional .bc-guest,
.booking-card.status-provisionally-blocked .bc-guest {
    color: #8f4f00 !important;
}
.booking-card.status-provisional .bc-meta,
.booking-card.status-provisionally-blocked .bc-meta {
    color: #a35a00 !important;
}
.booking-card.status-provisional a,
.booking-card.status-provisional button,
.booking-card.status-provisionally-blocked a,
.booking-card.status-provisionally-blocked button {
    color: #8f4f00 !important;
    font-weight: bold;
}
[data-bs-theme="dark"] .booking-card.status-provisional,
[data-bs-theme="dark"] .booking-card.status-provisionally-blocked {
    background-color: #5d3511 !important;
    color: #ffc999 !important;
}
[data-bs-theme="dark"] .booking-card.status-provisional .bc-guest,
[data-bs-theme="dark"] .booking-card.status-provisionally-blocked .bc-guest {
    color: #ffc999 !important;
}
[data-bs-theme="dark"] .booking-card.status-provisional .bc-meta,
[data-bs-theme="dark"] .booking-card.status-provisionally-blocked .bc-meta {
    color: #ffe3cc !important;
}
[data-bs-theme="dark"] .booking-card.status-provisional a,
[data-bs-theme="dark"] .booking-card.status-provisional button,
[data-bs-theme="dark"] .booking-card.status-provisionally-blocked a,
[data-bs-theme="dark"] .booking-card.status-provisionally-blocked button {
    color: #ffc999 !important;
}

/* 3. Hold / Reminders (Red) */
.booking-card.status-hold,
.booking-card.status-reminders {
    border-left: 5px solid #dc3545 !important;
    background-color: #f8d7da !important;
    color: #842029 !important;
}
.booking-card.status-hold .bc-guest,
.booking-card.status-reminders .bc-guest {
    color: #842029 !important;
}
.booking-card.status-hold .bc-meta,
.booking-card.status-reminders .bc-meta {
    color: #b02a37 !important;
}
.booking-card.status-hold a,
.booking-card.status-hold button,
.booking-card.status-reminders a,
.booking-card.status-reminders button {
    color: #842029 !important;
    font-weight: bold;
}
[data-bs-theme="dark"] .booking-card.status-hold,
[data-bs-theme="dark"] .booking-card.status-reminders {
    background-color: #58151c !important;
    color: #ea868f !important;
}
[data-bs-theme="dark"] .booking-card.status-hold .bc-guest,
[data-bs-theme="dark"] .booking-card.status-reminders .bc-guest {
    color: #ea868f !important;
}
[data-bs-theme="dark"] .booking-card.status-hold .bc-meta,
[data-bs-theme="dark"] .booking-card.status-reminders .bc-meta {
    color: #f5c2c7 !important;
}
[data-bs-theme="dark"] .booking-card.status-hold a,
[data-bs-theme="dark"] .booking-card.status-hold button,
[data-bs-theme="dark"] .booking-card.status-reminders a,
[data-bs-theme="dark"] .booking-card.status-reminders button {
    color: #ea868f !important;
}

/* 4. Cancelled / Closed (Grey / Dimmed) */
.booking-card.status-cancelled,
.booking-card.status-closed {
    border-left: 5px solid #6c757d !important;
    background-color: #e2e3e5 !important;
    color: #41464b !important;
    opacity: 0.75;
}
[data-bs-theme="dark"] .booking-card.status-cancelled,
[data-bs-theme="dark"] .booking-card.status-closed {
    background-color: #2b2f33 !important;
    color: #adb5bd !important;
}

/* Card details styling */
.bc-guest {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}
.bc-meta {
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.3;
}
.bc-actions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    border-top: 1px dashed rgba(0,0,0,0.08);
    padding-top: 6px;
}
[data-bs-theme="dark"] .bc-actions {
    border-top-color: rgba(255,255,255,0.08);
}

/* Mobile Optimizations for Calendar Grid */
@media (max-width: 767.98px) {
    .calendar-room-col {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        font-size: 0.75rem;
        padding: 6px !important;
    }
    
    .calendar-table th, .calendar-table td {
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        padding: 6px;
    }
    
    .calendar-date-hdr .day-name {
        font-size: 0.65rem;
    }
    
    .calendar-date-hdr .date-val {
        font-size: 0.85rem;
    }
    
    .booking-card {
        padding: 6px 8px;
        margin-bottom: 6px;
        border-left-width: 4px !important;
    }
    
    .bc-guest {
        font-size: 0.78rem;
        margin-bottom: 2px;
    }
    
    .bc-meta {
        font-size: 0.68rem;
        line-height: 1.25;
    }
    
    .bc-actions {
        margin-top: 4px;
        padding-top: 4px;
    }
    
    .bc-actions a, .bc-actions button {
        font-size: 0.68rem !important;
    }
}

/* ============================================================
   Bookings Table List (Old Style Display) Row Colors
   ============================================================ */
tr.table-row-confirmed td {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
}
tr.table-row-confirmed td strong,
tr.table-row-confirmed td small,
tr.table-row-confirmed td button,
tr.table-row-confirmed td a {
    color: #0f5132 !important;
}

tr.table-row-provisional td {
    background-color: #ffe8cc !important;
    color: #8f4f00 !important;
}
tr.table-row-provisional td strong,
tr.table-row-provisional td small,
tr.table-row-provisional td button,
tr.table-row-provisional td a {
    color: #8f4f00 !important;
}

tr.table-row-hold td {
    background-color: #f8d7da !important;
    color: #842029 !important;
}
tr.table-row-hold td strong,
tr.table-row-hold td small,
tr.table-row-hold td button,
tr.table-row-hold td a {
    color: #842029 !important;
}

tr.table-row-cancelled td {
    background-color: #e2e3e5 !important;
    color: #41464b !important;
    opacity: 0.8;
}
tr.table-row-cancelled td strong,
tr.table-row-cancelled td small,
tr.table-row-cancelled td button,
tr.table-row-cancelled td a {
    color: #41464b !important;
}

/* Dark Mode Overrides */
[data-bs-theme="dark"] tr.table-row-confirmed td {
    background-color: #0f3d23 !important;
    color: #a3cfbb !important;
}
[data-bs-theme="dark"] tr.table-row-confirmed td strong,
[data-bs-theme="dark"] tr.table-row-confirmed td small,
[data-bs-theme="dark"] tr.table-row-confirmed td button,
[data-bs-theme="dark"] tr.table-row-confirmed td a {
    color: #a3cfbb !important;
}

[data-bs-theme="dark"] tr.table-row-provisional td {
    background-color: #5d3511 !important;
    color: #ffc999 !important;
}
[data-bs-theme="dark"] tr.table-row-provisional td strong,
[data-bs-theme="dark"] tr.table-row-provisional td small,
[data-bs-theme="dark"] tr.table-row-provisional td button,
[data-bs-theme="dark"] tr.table-row-provisional td a {
    color: #ffc999 !important;
}

[data-bs-theme="dark"] tr.table-row-hold td {
    background-color: #58151c !important;
    color: #ea868f !important;
}
[data-bs-theme="dark"] tr.table-row-hold td strong,
[data-bs-theme="dark"] tr.table-row-hold td small,
[data-bs-theme="dark"] tr.table-row-hold td button,
[data-bs-theme="dark"] tr.table-row-hold td a {
    color: #ea868f !important;
}

[data-bs-theme="dark"] tr.table-row-cancelled td {
    background-color: #2b2f33 !important;
    color: #adb5bd !important;
}
[data-bs-theme="dark"] tr.table-row-cancelled td strong,
[data-bs-theme="dark"] tr.table-row-cancelled td small,
[data-bs-theme="dark"] tr.table-row-cancelled td button,
[data-bs-theme="dark"] tr.table-row-cancelled td a {
    color: #adb5bd !important;
}



