﻿/* =========================================
   BEEQ THEME VARIABLES
========================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --bg-color: #f5f7fb;
    --card-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --navbar-bg: #1E3A8A;
    --text-color: #212529;
    --text-muted: #6b7280;
    --border-color: #dee2e6;
    --shadow: 0 4px 15px rgba(0,0,0,.08);
    --radius: 18px;
}/* =========================================
   DARK THEME
========================================= */
body.dark-theme {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --bg-color: #0f172a !important;
    --card-bg: #1e293b !important;
    --sidebar-bg: #111827 !important;
    --navbar-bg: #0b1220 !important;
    --text-color: #f8fafc !important;
    --text-muted: #94a3b8 !important;
    --border-color: #334155 !important;
}
#content {
    background: var(--bg-color);
    color: var(--text-color);
    min-height: calc(100vh - var(--header-height));
}

.container-lg,
.container-fluid {
    background: transparent;
}
/* =========================================
   GLOBAL
========================================= */

html,
body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

body {
    overflow-x: hidden;
}
/* =========================================
   CARDS
========================================= */

.card {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: .3s;
}

/* =========================================
   TABLE
========================================= */

.table {
    color: var(--text-color);
}

    .table thead {
        background: var(--card-bg);
    }

    .table td,
    .table th {
        border-color: var(--border-color);
    }

/* =========================================
   FORM
========================================= */

.form-control,
.form-select {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary);
        box-shadow: none;
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

/* =========================================
   DROPDOWN
========================================= */

.dropdown-menu {
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.dropdown-item {
    color: var(--text-color);
}

    .dropdown-item:hover {
        background: rgba(37,99,235,.10);
    }

/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    background: var(--sidebar-bg);
}


/* =========================================
   NAVBAR
========================================= */


/* =========================================
   SMOOTH TRANSITION
========================================= */

* {
    transition: background .25s, color .25s, border-color .25s;
}
/* Light Theme */

/*body.light-theme {
    background: #f5f7fb;
    color: #212529;
}*/

/*body.dark-theme {
    background: #111827;
    color: white;*/
/*}*/
/*body.dark-theme {
    background: #111827;
    color: #fff;
}

    body.dark-theme .card {
        background: #1f2937;
        color: white;
    }

    body.dark-theme .navbar {
        background: #0f172a !important;
    }

    body.dark-theme #sidebar {
        background: #1e293b;
    }

    body.dark-theme .table {
        color: white;
    }

        body.dark-theme .table th,
        body.dark-theme .table td {
            color: white;
        }

    body.dark-theme .dropdown-menu {
        background: #1f2937;
        color: white;
    }

    body.dark-theme .dropdown-item {
        color: white;
    }

    body.dark-theme .form-control,
    body.dark-theme .form-select {
        background: #374151;
        color: white;
        border-color: #4b5563;
    }*/
.page,
.content,
.content-wrapper,
.main-content,
.container-fluid {
    background: var(--bg-color);
    color: var(--text-color);
}

/* =========================
   CARD
========================= */

.card,
.table-responsive,
.modal-content,
.dropdown-menu {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
}

/* =========================
   TABLE
========================= */

.table {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
}

    .table thead,
    .table thead th {
        background: var(--card-bg) !important;
        color: var(--text-color) !important;
    }

    .table tbody,
    .table tbody tr,
    .table tbody td {
        background: var(--card-bg) !important;
        color: var(--text-color) !important;
        border-color: var(--border-color) !important;
    }

/* =========================
   FORM
========================= */

.form-control,
.form-select {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

    .form-control::placeholder {
        color: var(--text-muted) !important;
    }
/* ===========================
   DARK SIDEBAR
=========================== */

body.dark-theme #sidebar {
    background: var(--sidebar-bg) !important;
}

    /* Sidebar links */
    body.dark-theme #sidebar a,
    body.dark-theme #sidebar .nav-link,
    body.dark-theme #sidebar .menu-link {
        color: #f8fafc !important;
    }

    /* Sidebar icons */
    body.dark-theme #sidebar i,
    body.dark-theme #sidebar svg {
        color: #f8fafc !important;
    }

    /* Hover */
    body.dark-theme #sidebar a:hover,
    body.dark-theme #sidebar .nav-link:hover {
        background: rgba(255,255,255,.08) !important;
        color: white !important;
    }

    /* Active menu */
    /* DARK THEME */
    body.dark-theme #sidebar .active,
    body.dark-theme #sidebar .nav-link.active {
        background: linear-gradient(90deg, #ff8c00, #f6b000) !important;
        color: #fff !important;
    }

        body.dark-theme #sidebar .active i,
        body.dark-theme #sidebar .nav-link.active i {
            color: #fff !important;
        }
/*#content {
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

.container-fluid {
    background: var(--bg-color);
    color: var(--text-color);
}*/
.summary-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 95px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    transition: .3s;
    border-bottom: 4px solid transparent;
}

    .summary-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,.12);
    }

.summary-icon {
    width: 58px;
    height: 58px;
    font-size: 24px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
 
    flex-shrink: 0;
}

.summary-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
}

.time-value {
    font-size: 18px;
}

.summary-subtitle {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.counter-card {
    border-bottom-color: #2563eb;
}

.operator-card {
    border-bottom-color: #9333ea;
}

.waiting-card {
    border-bottom-color: #16a34a;
}

.time-card {
    border-bottom-color: #f59e0b;
}

/*==================================================
  COLORS
==================================================*/

.blue {
    background: #2563eb;
}

.green {
    background: #16a34a;
}

.orange {
    background: #f59e0b;
}

.purple {
    background: #9333ea;
}

.red {
    background: #ef4444;
}


/*==================================================
  MAIN CARDS
==================================================*/

.queue-card {
    height: 420px;
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
    color: #1d4ed8;
    font-size: 18px;
    font-weight: 600;
}


/*==================================================
  SERVICE DROPDOWN
==================================================*/

.search-select {
    width: 250px;
    height: 40px;
    border-radius: 30px;
}


/*==================================================
  WAITING & MISSED QUEUE
==================================================*/

.queue-panel {
    height: 315px;
    overflow-y: auto;
    padding: 18px;
}

.queue-item {
    padding: 12px;
    border-radius: 12px;
    transition: .25s;
}

    .queue-item:hover {
        background: #f8f9ff;
    }


/*==================================================
  EMPTY STATE
==================================================*/

.empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
}

.missed-icon {
    background: #fdecec;
    color: #ef4444;
}


/*==================================================
  CURRENT TOKEN
==================================================*/

.current-serving-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    min-height: 450px; /* Adjust as needed */
    padding: 30px;
}
.current-token {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;

}
.empty-state {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 10px;
}

    .empty-state h2 {
        font-size: 28px;
    }

    .empty-state p {
        font-size: 15px;
    }

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
}

.token-number {
    font-size: 72px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1;
    margin-bottom: 15px;
}


/*==================================================
  ACTION BUTTONS
==================================================*/

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.action-btn {
    min-width: 165px;
    height: 46px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
}


/*==================================================
  FOOTER
==================================================*/

.analytics-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 22px;
    margin-bottom: 12px;
}

.footer-stat h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

    .footer-stat h3 small {
        font-size: 15px;
    }

.footer-stat span {
    color: #6b7280;
    font-size: 14px;
}

.border-start {
    border-left: 1px solid #ececec !important;
}


/*==================================================
  RESPONSIVE
==================================================*/

@media(max-width:992px) {

    .queue-card {
        height: auto;
    }

    .queue-panel {
        height: auto;
    }

   

    .action-btn {
        width: 100%;
    }
}
.table-text {
    color: #1f2937;
    transition: .2s;
}

body.dark-theme .table-text {
    color: #fff !important;
}
/* ===========================================
   DASHBOARD DARK MODE FIX
=========================================== */

/* KPI Cards */
/*body.dark-theme .dashboard-card,
body.dark-theme .dashboard-card .card-body {
    color: #ffffff !important;
}

    body.dark-theme .dashboard-card h1,
    body.dark-theme .dashboard-card h2,
    body.dark-theme .dashboard-card h3,
    body.dark-theme .dashboard-card h4,
    body.dark-theme .dashboard-card h5,
    body.dark-theme .dashboard-card h6 {
        color: #ffffff !important;
    }

    body.dark-theme .dashboard-card .small,
    body.dark-theme .dashboard-card p,
    body.dark-theme .dashboard-card span {
        color: rgba(255,255,255,.9) !important;
    }

    body.dark-theme .dashboard-card i {
        color: #ffffff !important;
    }*/


/*==================================================
        BEEQ DARK MODE
==================================================*/

body.dark-theme .beeq-page-header,
body.dark-theme .beeq-table-card,
body.dark-theme .beeq-table-header,
body.dark-theme .beeq-pagination-card,
body.dark-theme .beeq-mobile-card,
body.dark-theme .beeq-modal,
body.dark-theme .modal-content {
    background: #1f2937 !important;
    color: #fff !important;
    border-color: #374151 !important;
}

    /* Titles */

    body.dark-theme .beeq-page-title,
    body.dark-theme .beeq-table-header h5,
    body.dark-theme .beeq-org-name {
        color: #fff !important;
    }

    body.dark-theme .beeq-page-subtitle,
    body.dark-theme .beeq-table-header span,
    body.dark-theme .beeq-org-info small {
        color: #cbd5e1 !important;
    }

/* Table */

body.dark-theme .beeq-table {
    background: #1f2937 !important;
}

    body.dark-theme .beeq-table thead,
    body.dark-theme .beeq-table thead tr,
    body.dark-theme .beeq-table thead th {
        background: #111827 !important;
        color: #e5e7eb !important;
    }

    body.dark-theme .beeq-table tbody,
    body.dark-theme .beeq-table tbody tr,
    body.dark-theme .beeq-table tbody td {
        background: #1f2937 !important;
        color: #fff !important;
        border-color: #374151 !important;
    }

        body.dark-theme .beeq-table tbody tr:hover {
            background: #273449 !important;
        }

/* Contact */

body.dark-theme .beeq-contact,
body.dark-theme .beeq-contact div,
body.dark-theme .beeq-location {
    color: #e5e7eb !important;
}

    body.dark-theme .beeq-contact i {
        color: #60a5fa !important;
    }

    body.dark-theme .beeq-location i {
        color: #f59e0b !important;
    }

/* Search */

body.dark-theme .beeq-search-box {
    background: #111827 !important;
    border-color: #374151 !important;
}

    body.dark-theme .beeq-search-box input {
        color: #fff !important;
    }

        body.dark-theme .beeq-search-box input::placeholder {
            color: #94a3b8 !important;
        }

/* Pagination */

body.dark-theme .beeq-pagination-info,
body.dark-theme .beeq-page-count {
    color: #fff !important;
}

body.dark-theme .beeq-btn-light,
body.dark-theme .beeq-page-btn {
    background: #374151 !important;
    color: #fff !important;
    border-color: #4b5563 !important;
}

    body.dark-theme .beeq-page-btn.active {
        background: #2563eb !important;
    }
/* ===========================
   QUEUE MONITOR
=========================== */

.queue-monitor-page {
    padding: 12px 18px;
    min-height: calc(100vh - 70px);
}

/* HEADER */

.qm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
   
    border-radius: 20px;
    margin-bottom: 16px;
    padding: 16px 22px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.qm-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.qm-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#2563eb,#3b82f6);
    color: #fff;
    font-size: 26px;
}

.qm-header h2 {
    margin: 0;
    font-weight: 700;
    color: var(--text-color);
}

.qm-header span {
    color: var(--text-muted);
}

.qm-live {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 10px;
    background: #16a34a22;
    color: #16a34a;
    font-weight: 600;
}
.qm-stat-card {
    border-radius: 18px;
  
    display: flex;
    gap: 18px;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 110px;
    padding: 16px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: .3s;
}


.qm-stat-content h2 {
    font-size: 30px;
}

.qm-stat-content h5 {
    font-size: 20px;
    margin: 2px 0;
}

.qm-stat-content span {
    font-size: 14px;
}

    .qm-stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 35px rgba(0,0,0,.12);
    }

    .qm-stat-card::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 4px;
    }

.waiting::after {
    background: #2563eb;
}

.called::after {
    background: #22c55e;
}

.serving::after {
    background: #f59e0b;
}

.missed::after {
    background: #ef4444;
}

.qm-stat-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.waiting-icon {
    background: #2563eb22;
    color: #3b82f6;
}

.called-icon {
    background: #22c55e22;
    color: #22c55e;
}

.serving-icon {
    background: #f59e0b22;
    color: #f59e0b;
}

.missed-icon {
    background: #ef444422;
    color: #ef4444;
}

.qm-stat-content h2 {
    margin: 0;
    font-size: 46px;
    font-weight: 700;
    color: var(--text-color);
}

.qm-stat-content h5 {
    margin: 3px 0;
    color: var(--text-color);
}

.qm-stat-content span {
    color: var(--text-muted);
}
.qm-panel {
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    height: 260px;
}

.qm-panel-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

.qm-panel-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.qm-empty {
    text-align: center;
}

    .qm-empty h3 {
        color: var(--text-color);
        margin-top: 18px;
        font-size: 28px;
    }

    .qm-empty p {
        color: var(--text-muted);
        font-size: 15px;
    }

.qm-empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
}

.blue {
    background: #2563eb22;
    color: #3b82f6;
}

.green {
    background: #22c55e22;
    color: #4ade80;
}

.qm-token {
    text-align: center;
}

.qm-token-number {
    font-size: 64px;
    font-weight: 700;
    color: #2563eb;
}

.qm-counter {
    color: var(--text-muted);
    font-size: 18px;
}
.qm-queue-card {
    border-radius: 20px;
    margin-top: 24px;
    min-height: 150px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.qm-queue-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 22px;
    font-weight: 600;
}

.qm-token-list {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.qm-token-badge {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
}

.waiting-badge {
    background: #facc15;
    color: #000;
}

.missed-badge {
    background: #ef4444;
    color: #fff;
}
.dark-theme {
    --card-bg: #111827;
    --border-color: #253046;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
}
/* ===========================
   DARK MODE - Queue Headers
=========================== */

body.dark-theme .card-header.bg-warning {
    background: #f59e0b !important;
    color: #111827 !important;
    border-color: #f59e0b !important;
}

body.dark-theme .card-header.bg-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}
/* =========================
   DARK MODE - Live Badge
========================= */

body.dark-theme .qm-live {
    background: rgba(34,197,94,.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34,197,94,.25);
}

    body.dark-theme .qm-live i {
        color: #22c55e !important;
    }


/*=========================
  LIGHT MODE DASHBOARD
==========================*/

.dashboard-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15,23,42,.08);
    transition: .25s;
    overflow: hidden;
    height: 120px;
}

    .dashboard-card:hover {
        transform: translateY(-3px);
    }

    .dashboard-card .card-body,
    .dashboard-queue-card .card-body {
        height: 100%;
        padding: 14px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dashboard-card .small {
        color: #64748b;
        font-size: 13px;
        margin-bottom: 4px;
    }

    .dashboard-card h2 {
        font-size: 28px;
        font-weight: 700;
        margin: 0;
        line-height: 1.2;
    }

    .dashboard-card h5 {
        font-size: 15px;
        margin: 0;
    }

/*=========================
  DASHBOARD ICONS
==========================*/

.dashboard-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    flex-shrink: 0;
}

.organization-card {
    border-bottom: 4px solid #2563eb;
}

.branch-card {
    border-bottom: 4px solid #8b5cf6;
}

.user-card {
    border-bottom: 4px solid #10b981;
}

.counter-card {
    border-bottom: 4px solid #f59e0b;
}

.service-card {
    border-bottom: 4px solid #0ea5e9;
}

.appointment-card {
    border-bottom: 4px solid #ef4444;
}

.dashboard-icon.organization {
    background: #dbeafe;
    color: #2563eb;
}

.dashboard-icon.branch {
    background: #ede9fe;
    color: #8b5cf6;
}

.dashboard-icon.user {
    background: #dcfce7;
    color: #10b981;
}

.dashboard-icon.counter {
    background: #fef3c7;
    color: #f59e0b;
}

.dashboard-icon.service {
    background: #e0f2fe;
    color: #0284c7;
}

.dashboard-icon.appointment {
    background: #fee2e2;
    color: #ef4444;
}

/*=========================
  QUEUE STATUS CARDS
==========================*/

.dashboard-queue-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15,23,42,.08);
    height: 120px;
}

    .dashboard-queue-card h1 {
        font-size: 28px;
        font-weight: 700;
        margin: 0;
        line-height: 1.2;
    }

    .dashboard-queue-card .text-muted {
        font-size: 14px;
    }

.waiting-card {
    border-left: 4px solid #3b82f6;
}

.serving-card {
    border-left: 4px solid #10b981;
}

.completed-card {
    border-left: 4px solid #f59e0b;
}

.missed-card {
    border-left: 4px solid #ef4444;
}

/*=========================
  CARD HEADER
==========================*/

.card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    font-weight: 700;
    padding: 10px 16px;
    font-size: 17px;
}

/*=========================
  CHART CARDS
==========================*/

.dashboard-chart-card {
    height: 320px;
    border-radius: 16px;
}
    .dashboard-chart-card .card-body {
        padding: 12px;
    }

    .dashboard-chart-card canvas,
    .card canvas {
        max-height: 220px;
    }

/*=========================
  DASHBOARD TABLE
==========================*/

.dashboard-table th,
.dashboard-table td {
    padding: .55rem .75rem;
}

/*=========================
  DASHBOARD SPACING
==========================*/

.dashboard-row {
    row-gap: 12px;
}

    .dashboard-row > div {
        margin-bottom: 12px;
    }
.waiting-icon {
    background: #dbeafe;
    color: #2563eb;
}

.serving-icon {
    background: #dcfce7;
    color: #16a34a;
}

.completed-icon {
    background: #fef3c7;
    color: #d97706;
}

.missed-icon {
    background: #fee2e2;
    color: #dc2626;
}
/*==================================
   DASHBOARD DARK THEME
==================================*/

body.dark-theme {
    background: #111827;
}

    body.dark-theme #content {
        background: #111827;
    }
    body.dark-theme .dashboard-card {
        background: #1e293b !important;
        border: 1px solid #334155 !important;
        box-shadow: none;
        color: #fff;
    }

        body.dark-theme .dashboard-card:hover {
            transform: translateY(-4px);
            border-color: #3b82f6;
        }

        body.dark-theme .dashboard-card h2 {
            color: #fff !important;
        }

        body.dark-theme .dashboard-card .small,
        body.dark-theme .dashboard-card p,
        body.dark-theme .dashboard-card span {
            color: #94a3b8 !important;
        }
    body.dark-theme .organization-card {
        border-bottom: 4px solid #3b82f6 !important;
    }

    body.dark-theme .branch-card {
        border-bottom: 4px solid #22c55e !important;
    }

    body.dark-theme .user-card {
        border-bottom: 4px solid #a855f7 !important;
    }

    body.dark-theme .counter-card {
        border-bottom: 4px solid #f59e0b !important;
    }

    body.dark-theme .service-card {
        border-bottom: 4px solid #06b6d4 !important;
    }

    body.dark-theme .appointment-card {
        border-bottom: 4px solid #ef4444 !important;
    }
    body.dark-theme .dashboard-icon.organization {
        background: #1e3a8a55;
        color: #60a5fa;
    }

    body.dark-theme .dashboard-icon.branch {
        background: #14532d55;
        color: #4ade80;
    }

    body.dark-theme .dashboard-icon.user {
        background: #581c8755;
        color: #c084fc;
    }

    body.dark-theme .dashboard-icon.counter {
        background: #78350f55;
        color: #fbbf24;
    }

    body.dark-theme .dashboard-icon.service {
        background: #0f3b4d;
        color: #38bdf8;
    }

    body.dark-theme .dashboard-icon.appointment {
        background: #7f1d1d55;
        color: #fb7185;
    }
    body.dark-theme .dashboard-queue-card {
        background: #1e293b;
        border: 1px solid #334155;
        color: white;
    }

        body.dark-theme .dashboard-queue-card h1 {
            color: white;
        }

        body.dark-theme .dashboard-queue-card h5 {
            color: white;
        }

        body.dark-theme .dashboard-queue-card span {
            color: #94a3b8;
        }
    body.dark-theme .card {
        background: #1e293b;
        border: 1px solid #334155;
    }

    body.dark-theme .card-header {
        background: #111827 !important;
        color: white !important;
        border-bottom: 1px solid #334155;
    }

    body.dark-theme canvas {
        background: transparent;
    }
    body.dark-theme table {
        color: white;
    }

        body.dark-theme table thead {
            background: #111827;
        }

        body.dark-theme table th {
            color: #e2e8f0;
        }

        body.dark-theme table td {
            color: #cbd5e1;
            border-color: #334155;
        }
    body.dark-theme .table {
        background: #1e293b;
    }

    body.dark-theme .table-hover tbody tr:hover {
        background: #273449;
    }
    body.dark-theme select.form-select {
        background: #1e293b;
        color: white;
        border: 1px solid #334155;
    }
    body.dark-theme .badge.bg-success {
        background: #0f5132 !important;
        color: #4ade80 !important;
    }
    body.dark-theme h1,
    body.dark-theme h2,
    body.dark-theme h3,
    body.dark-theme h4,
    body.dark-theme h5 {
        color: white;
    }

    body.dark-theme .text-muted {
        color: #94a3b8 !important;
    }
/* Horizontal Empty State */

.qm-empty-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    height: 100%;
    min-height: 240px;
    padding: 20px;
}

.qm-empty-content {
    text-align: left;
}

    .qm-empty-content h3 {
        margin-bottom: 10px;
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
    }

    .qm-empty-content p {
        margin: 0;
        color: #94a3b8;
        font-size: 1.05rem;
    }

.qm-empty-horizontal .qm-empty-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .qm-empty-horizontal .qm-empty-icon i {
        font-size: 42px;
    }

    .qm-empty-horizontal .qm-empty-icon.blue {
        background: rgba(37,99,235,.15);
        color: #3b82f6;
    }

@media (max-width:768px) {

    .qm-empty-horizontal {
        flex-direction: column;
        text-align: center;
    }

    .qm-empty-content {
        text-align: center;
    }
}
/* Currently Serving Horizontal */

.qm-serving-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-height: 240px;
}

.qm-token-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

    .qm-token-circle.green {
        background: linear-gradient(135deg,#22c55e,#16a34a);
    }

.qm-serving-details h3 {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.qm-serving-details p {
    margin: 0;
    color: #94a3b8;
    font-size: 18px;
}

@media (max-width:768px) {

    .qm-serving-horizontal,
    .qm-empty-horizontal {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .qm-serving-details,
    .qm-empty-content {
        text-align: center;
    }
}

/* LIGHT THEME */
body.light-theme #sidebar .active,
body.light-theme #sidebar .nav-link.active {
    background: #2563eb !important;
    color: #fff !important;
}

    body.light-theme #sidebar .active i,
    body.light-theme #sidebar .nav-link.active i {
        color: #fff !important;
    }


/* ===========================================
   COUNTER PANEL - HEADER OVERRIDE
=========================================== */

/* Same header height for all 3 panels */
.queue-card > .panel-title {
    height: 60px !important;
    min-height: 60px !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.15) !important;
    box-sizing: border-box;
}

    /* Same icon & text alignment */
    .queue-card > .panel-title i {
        font-size: 20px;
        margin-right: 8px;
        vertical-align: middle;
    }

    .queue-card > .panel-title span {
        font-size: 18px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

/* Waiting & Missed Queue centered */
.col-lg-2 .panel-title {
    justify-content: center !important;
    gap: 8px;
}

.panel-title > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .panel-title > div i {
        margin: 0;
        line-height: 1;
    }

    .panel-title > div span {
        margin: 0 !important;
        line-height: 1;
    }

/*==================================================
                SUMMARY CARD - LIGHT MODE
==================================================*/

.summary-card {
    background: #ffffff;
    border: 1px solid #e9eef5;
    border-bottom: 4px solid transparent;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(15,23,42,.08);
    transition: all .3s ease;
}

    .summary-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(15,23,42,.12);
    }

/*==================================================
                SUMMARY CARD - DARK MODE
==================================================*/

html.dark .summary-card {
    background: linear-gradient(135deg, #1F2A44 0%, #182238 100%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 20px rgba(0,0,0,.30);
}

    html.dark .summary-card:hover {
        box-shadow: 0 12px 28px rgba(0,0,0,.40);
    }

/*==================================================
                CARD TEXT
==================================================*/

.summary-card h3,
.summary-card .summary-value {
    color: #111827;
}

.summary-card p,
.summary-card .summary-label {
    color: #6B7280;
}

html.dark .summary-card h3,
html.dark .summary-card .summary-value {
    color: #F8FAFC;
}

html.dark .summary-card p,
html.dark .summary-card .summary-label {
    color: #AAB6CC;
}

/* Counter */
.summary-card.counter-card {
    border-bottom: 4px solid #F59E0B !important;
}

/* Operator */
.summary-card.operator-card {
    border-bottom: 4px solid #9333EA !important;
}

/* Waiting */
.summary-card.waiting-card {
    border-bottom: 4px solid #22C55E !important;
}



/*==================================================
    Floating Time Pill
==================================================*/

.time-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
    white-space: nowrap;
    transition: .25s ease;
}

    .time-pill i {
        font-size: 15px;
        color: #f59e0b;
    }

    .time-pill .time {
        font-size: 15px;
        font-weight: 700;
        color: #0f172a;
    }

    .time-pill .separator {
        color: #cbd5e1;
        font-weight: 500;
    }

    .time-pill .date {
        font-size: 14px;
        color: #64748b;
        font-weight: 500;
    }

    /* Hover */

    .time-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(15,23,42,.10);
    }


/* Dark Mode */
html.dark .time-pill {
    background: linear-gradient(135deg,#1F2A44,#182238);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 20px rgba(0,0,0,.30), 0 0 15px rgba(245,158,11,.25);
}

    html.dark .time-pill .time {
        color: #F8FAFC;
    }

    html.dark .time-pill .separator,
    html.dark .time-pill .date {
        color: #AAB6CC;
    }

    html.dark .time-pill i {
        color: #F59E0B;
    }
/* Only Dark Theme */

.dark-theme .modal-content {
    background: #111827 !important;
    color: #F8FAFC !important;
    border: 1px solid #334155 !important;
}

.dark-theme .modal-header {
    background: linear-gradient(135deg,#1E293B,#0F172A) !important;
    color: #fff !important;
}

.dark-theme .modal-body,
.dark-theme .modal-footer {
    background: #111827 !important;
}

.dark-theme .beeq-detail-card {
    background: #1E293B !important;
    border: 1px solid #334155 !important;
}

.dark-theme .beeq-detail-value {
    color: #fff !important;
}

.dark-theme .beeq-message-box {
    background: #0F172A !important;
    color: #fff !important;
    border: 1px solid #334155 !important;
}

.dark-theme .alert-danger {
    background: #451A1A !important;
    color: #FECACA !important;
    border: 1px solid #EF4444 !important;
}

.dark-theme .btn-close {
    filter: invert(1);
}
.modal-header .btn-close {
    filter: none;
}
