/* =============================================================
   VOLT THEME — SHA Construction ERP
   Modern Bootstrap 5-inspired dark sidebar theme
   Overrides x-navigation and existing styles
   ============================================================= */

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
    --volt-primary: #462E82;
    --volt-secondary: #7C4DDB;
    --volt-accent: #FF6B35;
    --volt-sidebar-bg: #2D1B69;
    --volt-sidebar-bg-dark: #1A0F40;
    --volt-sidebar-width: 260px;
    --volt-navbar-height: 60px;
    --volt-content-bg: #F5F7FB;
    --volt-card-radius: 12px;
    --volt-card-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --volt-btn-radius: 8px;
    --volt-input-radius: 8px;
    --volt-transition: all 0.3s ease;
    --volt-font: 'Poppins', sans-serif;
    --volt-success: #10B981;
    --volt-danger: #EF4444;
    --volt-warning: #F59E0B;
    --volt-info: #3B82F6;
}

html,
html body {
    background: var(--volt-content-bg) !important;
}

/* ── Global Reset for Volt Layout ─────────────────────────────── */
body.volt-layout {
    font-family: var(--volt-font) !important;
    background: var(--volt-content-bg) !important;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ══════════════════════════════════════════════════════════════
   1. LAYOUT WRAPPER — Flex sidebar + main
   ══════════════════════════════════════════════════════════════ */
.volt-wrapper {
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    background: var(--volt-content-bg);
}

/* ══════════════════════════════════════════════════════════════
   2. SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.volt-sidebar {
    width: var(--volt-sidebar-width);
    min-width: var(--volt-sidebar-width);
    background: linear-gradient(180deg, var(--volt-sidebar-bg) 0%, var(--volt-sidebar-bg-dark) 100%);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease, width 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.volt-sidebar::-webkit-scrollbar {
    width: 4px;
}
.volt-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.volt-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* Sidebar Header / Logo */
.sidebar-header {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
    min-height: 68px;
}

.sidebar-header .sidebar-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--volt-secondary), var(--volt-accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-header .sidebar-brand {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.3;
    white-space: nowrap;
}
.sidebar-header .sidebar-brand small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Sidebar Menu — Override x-navigation ─────────────────── */
.volt-sidebar .x-navigation {
    background: transparent !important;
    list-style: none !important;
    padding: 0 12px !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: auto !important;
}

/* Hide the built-in logo and control items */
.volt-sidebar .x-navigation > li.xn-logo,
.volt-sidebar .x-navigation > li.x-navigation-control {
    display: none !important;
}

/* All menu items */
.volt-sidebar .x-navigation > li {
    margin: 2px 0;
    list-style: none;
}

.volt-sidebar .x-navigation > li > a {
    display: flex !important;
    align-items: center;
    padding: 10px 14px !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: var(--volt-transition) !important;
    position: relative;
    background: transparent !important;
    border: none !important;
    min-height: auto !important;
    gap: 12px;
}

.volt-sidebar .x-navigation > li > a:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}

/* Active menu item */
.volt-sidebar .x-navigation > li.active > a {
    background: rgba(255,255,255,0.95) !important;
    color: var(--volt-primary) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.volt-sidebar .x-navigation > li.active > a .xn-text {
    color: var(--volt-primary) !important;
}

.volt-sidebar .x-navigation > li.active > a span[class^="fa"],
.volt-sidebar .x-navigation > li.active > a span[class*=" fa-"],
.volt-sidebar .x-navigation > li.active > a span.glyphicon {
    color: var(--volt-primary) !important;
    opacity: 1;
}

/* Icons in menu */
.volt-sidebar .x-navigation > li > a span[class^="fa"],
.volt-sidebar .x-navigation > li > a span[class*=" fa-"],
.volt-sidebar .x-navigation > li > a span.glyphicon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
    flex-shrink: 0;
    color: rgba(255,255,255,0.7);
    transition: var(--volt-transition);
}

.volt-sidebar .x-navigation > li > a:hover span[class^="fa"],
.volt-sidebar .x-navigation > li > a:hover span[class*=" fa-"],
.volt-sidebar .x-navigation > li > a:hover span.glyphicon {
    opacity: 1;
    color: #fff;
}

/* Menu text */
.volt-sidebar .x-navigation > li > a .xn-text {
    color: inherit;
    font-size: 13px;
}

/* ── Sub-menus (xn-openable) ─────────────────────────────── */
/* Hide original x-navigation arrow on li::before */
.volt-sidebar .x-navigation li.xn-openable::before,
.volt-sidebar .x-navigation li.xn-openable:before,
.x-navigation li.xn-openable::before,
.x-navigation li.xn-openable:before {
    display: none !important;
    content: none !important;
}

.volt-sidebar .x-navigation > li.xn-openable > a::after {
    content: '\f105' !important;
    font-family: 'FontAwesome' !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.4) !important;
    transition: transform 0.3s ease !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    background: none !important;
    display: inline !important;
}

.volt-sidebar .x-navigation > li.xn-openable.active > a::after {
    transform: translateY(-50%) rotate(90deg) !important;
    color: var(--volt-primary) !important;
}

/* Sub-menu list */
.volt-sidebar .x-navigation > li > ul {
    list-style: none !important;
    padding: 0 0 0 20px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.volt-sidebar .x-navigation > li > ul > li {
    margin: 1px 0;
}

.volt-sidebar .x-navigation > li > ul > li > a {
    display: flex !important;
    align-items: center;
    padding: 8px 14px !important;
    color: rgba(255,255,255,0.55) !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    border-radius: 6px !important;
    transition: var(--volt-transition) !important;
    text-decoration: none !important;
    background: transparent !important;
    gap: 10px;
}

.volt-sidebar .x-navigation > li > ul > li > a:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.06) !important;
}

.volt-sidebar .x-navigation > li > ul > li.active > a {
    color: #fff !important;
    background: rgba(255,255,255,0.12) !important;
    font-weight: 500 !important;
}

/* Sub-sub-menus (level 3) */
.volt-sidebar .x-navigation > li > ul > li > ul {
    list-style: none !important;
    padding: 0 0 0 16px !important;
    margin: 0 !important;
    background: transparent !important;
}

.volt-sidebar .x-navigation > li > ul > li > ul > li > a {
    display: flex !important;
    align-items: center;
    padding: 6px 14px !important;
    color: rgba(255,255,255,0.45) !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    transition: var(--volt-transition) !important;
    text-decoration: none !important;
    background: transparent !important;
}

.volt-sidebar .x-navigation > li > ul > li > ul > li > a:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.06) !important;
}

.volt-sidebar .x-navigation > li > ul > li > ul > li.active > a {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
}

/* Sub-menu arrow for openable children */
.volt-sidebar .x-navigation > li > ul > li.xn-openable > a::after {
    content: '\f105' !important;
    font-family: 'FontAwesome' !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 11px !important;
    color: rgba(255,255,255,0.3) !important;
    transition: transform 0.3s ease !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    background: none !important;
    display: inline !important;
}

.volt-sidebar .x-navigation > li > ul > li.xn-openable.active > a::after {
    transform: translateY(-50%) rotate(90deg);
}

/* Hide x-navigation-minimized behavior in volt */
.volt-sidebar .x-navigation.x-navigation-minimized {
    width: 100% !important;
}

/* ══════════════════════════════════════════════════════════════
   3. MAIN CONTENT AREA
   ══════════════════════════════════════════════════════════════ */
.volt-main {
    margin-left: var(--volt-sidebar-width);
    width: calc(100vw - var(--volt-sidebar-width));
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--volt-content-bg);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════
   4. TOP NAVBAR
   ══════════════════════════════════════════════════════════════ */
.volt-navbar {
    height: var(--volt-navbar-height);
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1040;
    gap: 16px;
}

.volt-navbar .navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.volt-navbar .navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Hamburger / Sidebar toggle */
.volt-navbar .sidebar-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #6B7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--volt-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.volt-navbar .sidebar-toggle:hover {
    background: #F3F4F6;
    color: var(--volt-primary);
}

/* Date display */
.volt-navbar .navbar-date {
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* Quick action pills */
.volt-navbar .quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volt-navbar .quick-actions .btn {
    border-radius: 500px !important;
    height: 34px;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 0 16px !important;
    letter-spacing: 0.4px;
    border: none !important;
    color: #fff !important;
    transition: var(--volt-transition) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 4px;
}
.volt-navbar .quick-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.volt-navbar .quick-actions .btn-transfer {
    background: linear-gradient(135deg, #EAB308, #CA8A04) !important;
    color: #1a1a1a !important;
}
.volt-navbar .quick-actions .btn-cashin {
    background: linear-gradient(135deg, #10B981, #059669) !important;
}
.volt-navbar .quick-actions .btn-cashout {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
}
.volt-navbar .quick-actions .btn-voucher {
    background: linear-gradient(135deg, var(--volt-secondary), var(--volt-primary)) !important;
}

/* Notification bell in navbar */
.volt-navbar .navbar-icon-btn {
    background: none;
    border: none;
    position: relative;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--volt-transition);
    color: #6B7280;
    font-size: 16px;
}
.volt-navbar .navbar-icon-btn:hover {
    background: #F3F4F6;
    color: var(--volt-primary);
}

.volt-navbar .navbar-icon-btn .notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #EF4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    text-align: center;
    padding: 0 3px;
}

/* User dropdown in navbar */
.volt-navbar .navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--volt-transition);
    text-decoration: none !important;
    color: #374151 !important;
}
.volt-navbar .navbar-user:hover {
    background: #F3F4F6;
}

.volt-navbar .navbar-user .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--volt-primary), var(--volt-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.volt-navbar .navbar-user .user-info {
    line-height: 1.3;
}
.volt-navbar .navbar-user .user-info .user-name {
    font-size: 13px;
    font-weight: 600;
    color: #1F2937;
}
.volt-navbar .navbar-user .user-info .user-role {
    font-size: 11px;
    color: #9CA3AF;
}

/* User dropdown menu */
.volt-navbar .user-dropdown {
    position: relative;
}
.volt-navbar .user-dropdown .user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 180px;
    padding: 6px;
    z-index: 1060;
    margin-top: 6px;
}
.volt-navbar .user-dropdown.open .user-dropdown-menu {
    display: block;
}
.volt-navbar .user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #374151 !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--volt-transition);
    text-decoration: none !important;
}
.volt-navbar .user-dropdown-menu a:hover {
    background: #F5F3FF;
    color: var(--volt-primary) !important;
}

/* Calculator dropdown */
.volt-navbar .calc-dropdown {
    position: relative;
}
.volt-navbar .calc-dropdown .calc-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 260px;
    padding: 12px;
    z-index: 1060;
    margin-top: 6px;
}
.volt-navbar .calc-dropdown.open .calc-dropdown-menu {
    display: block;
}

/* Notification dropdown */
.volt-navbar .notif-dropdown {
    position: relative;
}
.volt-navbar .notif-dropdown .notif-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    width: 360px;
    padding: 0;
    z-index: 1060;
    margin-top: 6px;
    overflow: hidden;
}
.volt-navbar .notif-dropdown.open .notif-dropdown-menu {
    display: block;
}

/* ══════════════════════════════════════════════════════════════
   5. CONTENT AREA
   ══════════════════════════════════════════════════════════════ */
.volt-content {
    flex: 1;
    padding: 24px;
}

/* ── Page Title ─────────────────────────────────────────────── */
.volt-content .page-title {
    margin-bottom: 0;
    padding: 0;
}
.volt-content .page-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.volt-content .page-title h2 .fa {
    color: var(--volt-primary);
    font-size: 18px;
}

/* ── Register Section (purple bar) ─────────────────────────── */
.volt-content .register_section {
    background: linear-gradient(135deg, var(--volt-primary) 0%, var(--volt-secondary) 100%) !important;
    padding: 14px 24px 54px 24px !important;
    border-radius: var(--volt-card-radius) var(--volt-card-radius) 0 0 !important;
    font-family: var(--volt-font) !important;
    cursor: pointer;
}

/* ── Form Section (white card) ─────────────────────────────── */
.volt-content .form_section {
    background: #fff !important;
    border-radius: var(--volt-card-radius) !important;
    margin: 0 20px !important;
    margin-top: -42px !important;
    font-family: var(--volt-font) !important;
    padding-bottom: 12px !important;
    box-shadow: var(--volt-card-shadow) !important;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.volt-content .breadcrumb {
    background: transparent !important;
    padding: 14px 20px 8px !important;
    margin: 0 !important;
    font-size: 12px;
    border: none !important;
    border-radius: 0 !important;
}
.volt-content .breadcrumb a {
    color: var(--volt-secondary);
    text-decoration: none;
}
.volt-content .breadcrumb a:hover {
    color: var(--volt-primary);
}
.volt-content .breadcrumb > .active {
    color: #9CA3AF;
}
.volt-content .breadcrumb > li + li::before {
    color: #D1D5DB;
}

/* ── Page Content Wrap ──────────────────────────────────────── */
.volt-content .page-content-wrap {
    padding: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   6. CARDS & PANELS
   ══════════════════════════════════════════════════════════════ */
.panel {
    border: none !important;
    border-radius: var(--volt-card-radius) !important;
    box-shadow: var(--volt-card-shadow) !important;
    background: #fff !important;
    overflow: hidden;
    margin-bottom: 20px;
}

.panel-default {
    border: none !important;
}

.panel-default > .panel-heading {
    background: #fff !important;
    border-bottom: 1px solid #F3F4F6 !important;
    padding: 16px 20px !important;
    border-radius: var(--volt-card-radius) var(--volt-card-radius) 0 0 !important;
    color: #1F2937 !important;
    font-weight: 600;
}

.panel-default > .panel-heading .panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
}

.panel-body {
    padding: 20px !important;
}

.panel-footer {
    background: #FAFBFC !important;
    border-top: 1px solid #F3F4F6 !important;
    padding: 14px 20px !important;
}

/* ══════════════════════════════════════════════════════════════
   7. DATA TABLES (GridView)
   ══════════════════════════════════════════════════════════════ */
.table {
    font-size: 13px;
    color: #374151;
}

.table > thead > tr > th {
    background: #F9FAFB !important;
    border-bottom: 2px solid #E5E7EB !important;
    color: #6B7280 !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px !important;
    white-space: nowrap;
}

.table > tbody > tr > td {
    padding: 12px 16px !important;
    vertical-align: middle !important;
    border-top: 1px solid #F3F4F6 !important;
    transition: background 0.15s ease;
}

.table > tbody > tr:hover > td {
    background: #F5F3FF !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #FAFBFC;
}
.table-striped > tbody > tr:nth-of-type(odd):hover > td {
    background: #F5F3FF !important;
}

/* Table container with rounded corners */
.kv-grid-container,
.grid-view {
    border-radius: var(--volt-card-radius);
    overflow: hidden;
}

.grid-view .table {
    margin-bottom: 0;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
    gap: 4px;
}
.pagination > li > a,
.pagination > li > span {
    border: none !important;
    border-radius: 8px !important;
    color: #6B7280;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--volt-transition);
    margin: 0 2px;
}
.pagination > li > a:hover {
    background: #F5F3FF;
    color: var(--volt-primary);
}
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
    background: linear-gradient(135deg, var(--volt-primary), var(--volt-secondary)) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(70,46,130,0.3);
}
.pagination > .disabled > a,
.pagination > .disabled > span {
    color: #D1D5DB !important;
    background: transparent !important;
}

/* Summary text */
.kv-panel-before,
.kv-panel-after {
    padding: 12px 16px !important;
}

.summary {
    font-size: 12px;
    color: #9CA3AF;
    padding: 8px 0;
}

/* Action column buttons */
.table .btn-xs,
.table .btn-sm {
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    transition: var(--volt-transition);
}

/* Action icons in GridView */
a[title="View"],
a[title="Update"],
a[title="Delete"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    transition: var(--volt-transition);
}
a[title="View"]:hover {
    background: #EFF6FF;
    color: var(--volt-info);
}
a[title="Update"]:hover {
    background: #F5F3FF;
    color: var(--volt-primary);
}
a[title="Delete"]:hover {
    background: #FEF2F2;
    color: var(--volt-danger);
}

/* ── GridView toolbar ─────────────────────────────────────── */
.kv-toolbar-container {
    padding: 8px 0;
}

.btn-group .btn {
    border-radius: 0;
}
.btn-group > .btn:first-child {
    border-radius: 8px 0 0 8px;
}
.btn-group > .btn:last-child {
    border-radius: 0 8px 8px 0;
}
.btn-group > .btn:only-child {
    border-radius: 8px;
}

/* ══════════════════════════════════════════════════════════════
   8. FORMS
   ══════════════════════════════════════════════════════════════ */
.form-control {
    border-radius: var(--volt-input-radius) !important;
    border: 1.5px solid #E5E7EB !important;
    height: 40px !important;
    font-size: 13px !important;
    color: #1F2937 !important;
    padding: 8px 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: none !important;
    font-family: var(--volt-font) !important;
}

.form-control:focus {
    border-color: var(--volt-secondary) !important;
    box-shadow: 0 0 0 3px rgba(124,77,189,0.12) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: #B0B7C3 !important;
    font-size: 13px;
}

textarea.form-control {
    height: auto !important;
    min-height: 80px;
}

/* Labels */
.control-label,
.form-group label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.3px;
}

/* Select2 Override */
.select2-container .select2-choice,
.select2-container--default .select2-selection--single {
    border-radius: var(--volt-input-radius) !important;
    border: 1.5px solid #E5E7EB !important;
    height: 40px !important;
    line-height: 38px !important;
    padding: 0 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--volt-secondary) !important;
    box-shadow: 0 0 0 3px rgba(124,77,189,0.12) !important;
}

.select2-drop,
.select2-dropdown {
    border-radius: 10px !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    overflow: hidden;
    margin-top: 4px;
}

.select2-results .select2-highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--volt-primary) !important;
    color: #fff !important;
    border-radius: 6px;
}

.select2-results li,
.select2-results__option {
    padding: 8px 14px !important;
    font-size: 13px;
}

/* Input groups */
.input-group .input-group-addon {
    border-radius: var(--volt-input-radius) 0 0 var(--volt-input-radius) !important;
    border: 1.5px solid #E5E7EB !important;
    border-right: none !important;
    background: #F9FAFB !important;
    color: #6B7280;
    font-size: 13px;
}

/* Checkbox / Radio — iCheck override */
.icheckbox_minimal,
.iradio_minimal {
    border-radius: 4px;
}

/* Help block */
.help-block {
    font-size: 11px !important;
    margin-top: 4px !important;
}

.has-error .form-control {
    border-color: var(--volt-danger) !important;
}
.has-error .help-block {
    color: var(--volt-danger) !important;
}

.has-success .form-control {
    border-color: var(--volt-success) !important;
}

/* ══════════════════════════════════════════════════════════════
   9. BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
    border-radius: var(--volt-btn-radius) !important;
    font-family: var(--volt-font) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 8px 20px !important;
    transition: var(--volt-transition) !important;
    border: none !important;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--volt-primary) 0%, var(--volt-secondary) 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(70,46,130,0.3) !important;
}
.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(70,46,130,0.4) !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--volt-primary) 0%, var(--volt-secondary) 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(70,46,130,0.3) !important;
}
.btn-success:hover,
.btn-success:focus {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(70,46,130,0.4) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3) !important;
}
.btn-danger:hover,
.btn-danger:focus {
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(239,68,68,0.4) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    color: #fff !important;
}

.btn-info {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
    color: #fff !important;
}

.btn-default {
    background: #fff !important;
    border: 1.5px solid #E5E7EB !important;
    color: #6B7280 !important;
    box-shadow: none !important;
}
.btn-default:hover {
    background: #F5F3FF !important;
    border-color: #C4B5FD !important;
    color: var(--volt-primary) !important;
}

.btn-lg {
    padding: 12px 28px !important;
    font-size: 14px !important;
}

.btn-sm {
    padding: 5px 12px !important;
    font-size: 12px !important;
}

.btn-xs {
    padding: 3px 8px !important;
    font-size: 11px !important;
}

/* ══════════════════════════════════════════════════════════════
   10. MODALS — Override sha-modals.css where needed
   ══════════════════════════════════════════════════════════════ */
.modal-content {
    border-radius: 16px !important;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18) !important;
    border: none !important;
    overflow: hidden;
}

.modal-header {
    background: #fff !important;
    border-bottom: 1px solid #F3F4F6 !important;
    padding: 20px 24px !important;
}

.modal-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--volt-primary), var(--volt-secondary));
    border-radius: 16px 0 0 0;
}

.modal-body {
    padding: 24px !important;
}

.modal-footer {
    background: #FAFBFC !important;
    border-top: 1px solid #F3F4F6 !important;
    padding: 14px 24px !important;
}

/* ══════════════════════════════════════════════════════════════
   11. MESSAGE BOX (Logout confirmation)
   ══════════════════════════════════════════════════════════════ */
.message-box .mb-container {
    background: rgba(0,0,0,0.5);
}
.message-box .mb-middle {
    border-radius: var(--volt-card-radius) !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.message-box .mb-title {
    background: linear-gradient(135deg, var(--volt-primary), var(--volt-secondary)) !important;
    color: #fff !important;
    padding: 18px 24px !important;
    font-size: 16px;
    font-weight: 600;
}
.message-box .mb-content {
    padding: 24px !important;
    background: #fff;
}
.message-box .mb-footer {
    padding: 14px 24px !important;
    background: #FAFBFC;
    border-top: 1px solid #F3F4F6;
}

/* ══════════════════════════════════════════════════════════════
   12. FOOTER
   ══════════════════════════════════════════════════════════════ */
.volt-footer {
    padding: 16px 24px;
    text-align: center;
    color: #9CA3AF;
    font-size: 12px;
    border-top: 1px solid #E5E7EB;
    background: #fff;
    margin-top: auto;
}
.volt-footer a {
    color: var(--volt-primary);
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   13. DASHBOARD STAT CARDS
   ══════════════════════════════════════════════════════════════ */
.stat-card {
    border-radius: var(--volt-card-radius);
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: var(--volt-transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.stat-card.stat-purple {
    background: linear-gradient(135deg, var(--volt-primary), var(--volt-secondary));
}
.stat-card.stat-green {
    background: linear-gradient(135deg, #10B981, #059669);
}
.stat-card.stat-orange {
    background: linear-gradient(135deg, var(--volt-accent), #EA580C);
}
.stat-card.stat-blue {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

/* Dashboard tile backgrounds used in existing views */
.tile {
    border-radius: var(--volt-card-radius) !important;
    transition: var(--volt-transition);
}
.tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ══════════════════════════════════════════════════════════════
   14. ALERTS
   ══════════════════════════════════════════════════════════════ */
.alert {
    border: none !important;
    border-radius: 10px !important;
    font-size: 13px;
    padding: 14px 20px;
}
.alert-success {
    background: #ECFDF5 !important;
    color: #065F46 !important;
}
.alert-danger {
    background: #FEF2F2 !important;
    color: #991B1B !important;
}
.alert-warning {
    background: #FFFBEB !important;
    color: #92400E !important;
}
.alert-info {
    background: #EFF6FF !important;
    color: #1E40AF !important;
}

/* ══════════════════════════════════════════════════════════════
   15. BADGES & LABELS
   ══════════════════════════════════════════════════════════════ */
.label,
.badge {
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    letter-spacing: 0.3px;
}
.label-success, .badge-success { background: #10B981 !important; }
.label-danger, .badge-danger { background: #EF4444 !important; }
.label-warning, .badge-warning { background: #F59E0B !important; color: #fff !important; }
.label-info, .badge-info { background: #3B82F6 !important; }
.label-primary, .badge-primary { background: var(--volt-primary) !important; }

/* ══════════════════════════════════════════════════════════════
   16. TABS / NAV TABS
   ══════════════════════════════════════════════════════════════ */
.nav-tabs {
    border-bottom: 2px solid #E5E7EB;
}
.nav-tabs > li > a {
    border: none !important;
    border-radius: 0 !important;
    color: #6B7280;
    font-weight: 500;
    padding: 10px 18px;
    transition: var(--volt-transition);
    position: relative;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border: none !important;
    color: var(--volt-primary) !important;
    background: transparent !important;
    font-weight: 600;
}
.nav-tabs > li.active > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 2px;
    background: var(--volt-primary);
    border-radius: 2px;
}
.nav-tabs > li > a:hover {
    background: transparent !important;
    color: var(--volt-primary);
}

/* ══════════════════════════════════════════════════════════════
   17. PROGRESS BARS
   ══════════════════════════════════════════════════════════════ */
.progress {
    border-radius: 10px;
    height: 8px;
    background: #E5E7EB;
    overflow: hidden;
}
.progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, var(--volt-primary), var(--volt-secondary));
}

/* ══════════════════════════════════════════════════════════════
   18. DROPDOWNS (generic)
   ══════════════════════════════════════════════════════════════ */
.dropdown-menu {
    border-radius: 10px !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    padding: 6px !important;
    margin-top: 4px;
}
.dropdown-menu > li > a {
    padding: 8px 14px !important;
    font-size: 13px;
    color: #374151;
    border-radius: 6px;
    transition: var(--volt-transition);
}
.dropdown-menu > li > a:hover {
    background: #F5F3FF !important;
    color: var(--volt-primary) !important;
}

/* ══════════════════════════════════════════════════════════════
   19. LOADING SPINNER
   ══════════════════════════════════════════════════════════════ */
#loading {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#loading .loader,
.loader {
    border: 3px solid #E5E7EB;
    border-top-color: var(--volt-primary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: volt-spin 0.7s linear infinite;
}
@keyframes volt-spin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════════
   20. HIDE OLD LAYOUT ELEMENTS
   ══════════════════════════════════════════════════════════════ */

/* The old page-container, page-sidebar, page-content are now
   replaced by volt-wrapper, volt-sidebar, volt-main.
   Hide any old elements that may leak through. */
body.volt-layout .page-container {
    display: contents;
}

/* Override the old page-sidebar styles (now inside volt-sidebar) */
body.volt-layout .page-sidebar {
    float: none !important;
    width: auto !important;
    background: transparent !important;
    position: static !important;
}

/* Override old page-content styles */
body.volt-layout .page-content {
    margin-left: 0 !important;
    padding: 0 !important;
}

/* Hide old x-navigation-horizontal (top bar) — replaced by volt-navbar */
body.volt-layout .x-navigation.x-navigation-horizontal.x-navigation-panel {
    display: none !important;
}

/* Old mobile sidebar overlay — hide it, we have volt overlay */
body.volt-layout .mobile-sidebar-overlay {
    display: none !important;
}

/* Old mobile quick bar — hide on desktop, show on mobile */
body.volt-layout .mobile-quick-bar {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════════
   21. SIDEBAR COLLAPSE (Desktop)
   ══════════════════════════════════════════════════════════════ */
body.volt-layout.volt-sidebar-collapsed .volt-sidebar {
    transform: translateX(-100%);
}
body.volt-layout.volt-sidebar-collapsed .volt-main {
    margin-left: 0;
    width: 100vw;
}

/* ══════════════════════════════════════════════════════════════
   22. MOBILE RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* Mobile overlay */
.volt-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
body.volt-layout.volt-sidebar-open .volt-sidebar-overlay {
    display: block !important;
}

@media (max-width: 991px) {
    /* Sidebar hidden by default on tablet and mobile */
    .volt-sidebar {
        transform: translateX(-100%);
    }

    .volt-main {
        margin-left: 0;
        width: 100vw;
    }

    /* Sidebar shown when open */
    body.volt-layout.volt-sidebar-open .volt-sidebar {
        transform: translateX(0);
        box-shadow: 6px 0 24px rgba(0,0,0,0.3);
    }

    /* Navbar adjustments */
    .volt-navbar {
        padding: 0 12px;
        height: 54px;
    }
    .volt-navbar .navbar-date {
        display: none;
    }
    .volt-navbar .quick-actions {
        display: none !important;
    }

    /* Content adjustments */
    .volt-content {
        padding: 16px 12px;
    }

    .volt-content .register_section {
        padding: 10px 14px 40px 14px !important;
    }

    .volt-content .form_section {
        margin: 0 8px !important;
        margin-top: -34px !important;
        border-radius: 8px !important;
    }

    .volt-content .page-title h2 {
        font-size: 16px;
    }

    /* Show mobile quick bar on mobile */
    body.volt-layout .mobile-quick-bar {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 12px;
        gap: 8px;
        background: #fff;
        border-bottom: 1px solid #E5E7EB;
        -ms-overflow-style: none;
        scrollbar-width: none;
        position: sticky;
        top: 54px;
        z-index: 1035;
    }
    body.volt-layout .mobile-quick-bar::-webkit-scrollbar {
        display: none;
    }
    body.volt-layout .mobile-quick-bar .btn-mobile-quick {
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 500px !important;
        height: 34px;
        font-size: 11px !important;
        font-weight: 600 !important;
        padding: 0 14px !important;
        letter-spacing: 0.4px;
        border: none !important;
    }

    /* Table responsiveness */
    .kv-grid-container,
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Forms single column */
    .form_section .col-md-2,
    .form_section .col-md-3,
    .form_section .col-md-4,
    .form_section .col-md-5,
    .form_section .col-md-6 {
        width: 100% !important;
        float: none !important;
    }

    /* Footer */
    .volt-footer {
        padding: 12px 16px;
        font-size: 11px;
    }
}

@media (max-width: 575px) {
    /* Even smaller screens */
    .volt-content {
        padding: 12px 8px;
    }

    .volt-content .form_section {
        margin: 0 4px !important;
        margin-top: -30px !important;
    }

    /* Modal full-width */
    .modal-dialog {
        width: 96% !important;
        max-width: 96% !important;
        margin: 10px auto !important;
    }

    /* Submit buttons full width */
    .form-group .btn-success,
    .form-group .btn-primary {
        width: 100% !important;
        margin-bottom: 6px !important;
    }

    /* Breadcrumb compact */
    .breadcrumb {
        font-size: 11px !important;
        padding: 10px 14px 6px !important;
    }

    /* Notification dropdown narrower */
    .volt-navbar .notif-dropdown .notif-dropdown-menu {
        width: 300px;
        right: -40px;
    }
}

/* ══════════════════════════════════════════════════════════════
   23. TABLET (768–991px)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991px) {
    .volt-content .form_section {
        margin: 0 14px !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   24. PRINT STYLES
   ══════════════════════════════════════════════════════════════ */
@media print {
    .volt-sidebar,
    .volt-navbar,
    .volt-footer,
    .mobile-quick-bar,
    .volt-sidebar-overlay {
        display: none !important;
    }
    .volt-main {
        margin-left: 0 !important;
    }
    .volt-content {
        padding: 0 !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   25. ADDITIONAL KARTIK WIDGET OVERRIDES
   ══════════════════════════════════════════════════════════════ */

/* DetailView */
.table.detail-view th {
    background: #F9FAFB;
    font-weight: 600;
    color: #6B7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 180px;
}

.table.detail-view td {
    color: #1F2937;
    font-size: 13px;
}

/* Kartik export buttons */
.kv-export-full .btn,
.export-menu .btn {
    border-radius: 8px !important;
}

/* Date picker overrides */
.datepicker {
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    border: 1px solid #E5E7EB !important;
}
.datepicker table tr td.active,
.datepicker table tr td.active:hover {
    background: var(--volt-primary) !important;
    border-radius: 6px;
}

/* Daterangepicker overrides */
.daterangepicker {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}
.daterangepicker td.active {
    background-color: var(--volt-primary) !important;
}

/* ══════════════════════════════════════════════════════════════
   26. TOOLTIP & POPOVER
   ══════════════════════════════════════════════════════════════ */
.tooltip-inner {
    background: #1F2937;
    border-radius: 6px;
    font-size: 12px;
    padding: 6px 10px;
}
.popover {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #E5E7EB;
}

/* ══════════════════════════════════════════════════════════════
   27. WELL
   ══════════════════════════════════════════════════════════════ */
.well {
    border: none !important;
    border-radius: var(--volt-card-radius) !important;
    background: #F9FAFB !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

/* ══════════════════════════════════════════════════════════════
   28. SCROLLBAR GLOBAL
   ══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* ══════════════════════════════════════════════════════════════
   29. SMOOTH TRANSITIONS
   ══════════════════════════════════════════════════════════════ */
a, .btn, .form-control, .panel, .nav-tabs > li > a,
.table > tbody > tr, .dropdown-menu > li > a {
    transition: var(--volt-transition);
}

/* ══════════════════════════════════════════════════════════════
   30. GLYPHICON ICONS (action buttons in grid)
   ══════════════════════════════════════════════════════════════ */
.glyphicon.icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    transition: var(--volt-transition);
    font-size: 12px;
}
.glyphicon.icons:hover {
    background: #F5F3FF;
}

/* ══════════════════════════════════════════════════════════════
   31. DASHBOARD STAT CARDS (booking_card / card_dashboard)
   ══════════════════════════════════════════════════════════════ */
.booking_card {
    margin-bottom: 20px;
}

.card_dashboard {
    background: #fff;
    border-radius: var(--volt-card-radius) !important;
    box-shadow: var(--volt-card-shadow);
    padding: 20px 24px;
    border: none !important;
    border-left: 4px solid var(--volt-primary) !important;
    transition: var(--volt-transition);
    overflow: hidden;
}
.card_dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Color variants */
.card_dashboard.violet_border {
    border-left-color: var(--volt-secondary) !important;
}
.card_dashboard.orange_border {
    border-left-color: var(--volt-accent) !important;
}

.card_flx {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card_icn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--volt-primary), var(--volt-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card_icn.card_violet_icn {
    background: linear-gradient(135deg, #7C4DDB, #9F67FF);
}

.card_icn.card_orange_icn {
    background: linear-gradient(135deg, var(--volt-accent), #EA580C);
}

.card_icn .clock_icn,
.card_icn .colour_white {
    font-size: 20px;
    color: #fff !important;
}

.card_booking {
    display: block;
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 500;
    line-height: 1.4;
}

.card_no {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.3;
    margin: 2px 0;
}

/* ══════════════════════════════════════════════════════════════
   32. WIDGET STAT CARDS (work-order, wallet pages)
   ══════════════════════════════════════════════════════════════ */
.widget {
    border-radius: var(--volt-card-radius) !important;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: var(--volt-transition);
    overflow: hidden;
}
.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.widget.widget-padding-sm {
    padding: 16px 20px;
    color: #fff;
}

.widget.widget-info {
    color: #fff;
}

.widget-title {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.widget-subtitle {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════
   33. PAGE CONTENT WRAP (search sections)
   ══════════════════════════════════════════════════════════════ */
.page-content-wrap {
    background: #fff;
    border-radius: var(--volt-card-radius);
    box-shadow: var(--volt-card-shadow);
    padding: 16px 20px !important;
    margin-bottom: 20px;
}

.page-content-wrap > .panel-heading {
    background: transparent !important;
    border-bottom: 1px solid #F3F4F6;
    padding: 0 0 12px 0 !important;
    margin-bottom: 16px;
}

.page-content-wrap > .panel-heading .panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--volt-primary);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   34. PANEL-PRIMARY (Kartik GridView panels)
   ══════════════════════════════════════════════════════════════ */
.panel-primary {
    border: none !important;
}

.panel-primary > .panel-heading {
    background: linear-gradient(135deg, var(--volt-primary) 0%, var(--volt-secondary) 100%) !important;
    border: none !important;
    border-radius: var(--volt-card-radius) var(--volt-card-radius) 0 0 !important;
    padding: 14px 20px !important;
    color: #fff !important;
}

.panel-primary > .panel-heading .panel-title {
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

/* Kartik panel specific overrides */
.kv-panel {
    border: none !important;
    border-radius: var(--volt-card-radius) !important;
    box-shadow: var(--volt-card-shadow) !important;
    overflow: hidden;
}

.kv-panel .panel-heading {
    border-radius: var(--volt-card-radius) var(--volt-card-radius) 0 0 !important;
}

.kv-panel .panel-footer {
    background: #FAFBFC !important;
    border-top: 1px solid #F3F4F6 !important;
    padding: 12px 16px !important;
    border-radius: 0 0 var(--volt-card-radius) var(--volt-card-radius) !important;
}

/* Kartik GridView table styling */
.kv-grid-table {
    margin-bottom: 0 !important;
}

.kv-grid-table > thead > tr > th {
    background: #F9FAFB !important;
    border-bottom: 2px solid #E5E7EB !important;
    color: #6B7280 !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px !important;
    white-space: nowrap;
}

.kv-grid-table > tbody > tr > td {
    padding: 10px 14px !important;
    vertical-align: middle !important;
    border-top: 1px solid #F3F4F6 !important;
    font-size: 13px;
    color: #374151;
}

.kv-grid-table > tbody > tr:hover > td {
    background: #F5F3FF !important;
}

/* Kartik sheet-style header rows */
.kartik-sheet-style {
    background: #F9FAFB !important;
}

.kartik-sheet-style th {
    background: #F9FAFB !important;
}

/* Kartik filter row inputs */
.kv-grid-table .kv-filter-row td {
    padding: 8px 10px !important;
}

.kv-grid-table .kv-filter-row .form-control {
    height: 34px !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
}

/* Expand row styling */
.kv-expand-row,
.kv-expand-detail {
    background: #FAFBFC !important;
}

.kv-expand-detail .detail-container {
    padding: 16px !important;
}

/* Kartik export menu */
.kv-export .dropdown-menu {
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* ══════════════════════════════════════════════════════════════
   35. SEARCH CONTAINER (wallet approval page)
   ══════════════════════════════════════════════════════════════ */
.search-container {
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE) !important;
    border-radius: var(--volt-card-radius) !important;
    padding: 16px 20px !important;
    margin-bottom: 20px;
    border: none !important;
}

.search-container label {
    color: var(--volt-primary) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

/* ══════════════════════════════════════════════════════════════
   36. APPROVAL STATUS BUTTONS (wallet pages)
   ══════════════════════════════════════════════════════════════ */
.btn-accept {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 5px 14px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin: 2px !important;
}
.btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(16,185,129,0.4);
}

.btn-reject {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 5px 14px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin: 2px !important;
}
.btn-reject:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(239,68,68,0.4);
}

.btn-waiting {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 5px 14px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin: 2px !important;
}

.btn-purchase {
    background: linear-gradient(135deg, var(--volt-info), #2563EB) !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 5px 14px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.btn-payment {
    background: linear-gradient(135deg, var(--volt-primary), var(--volt-secondary)) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(70,46,130,0.3) !important;
}
.btn-payment:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(70,46,130,0.4) !important;
    color: #fff !important;
}

.btn-create {
    background: linear-gradient(135deg, var(--volt-accent), #EA580C) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(255,107,53,0.3) !important;
}
.btn-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.4) !important;
    color: #fff !important;
}

/* ══════════════════════════════════════════════════════════════
   37. ROLE PERMISSION PAGE (permission/index)
   ══════════════════════════════════════════════════════════════ */
.role-container {
    border: 1px solid #E5E7EB !important;
    border-radius: var(--volt-card-radius) !important;
    background: #fff;
    box-shadow: var(--volt-card-shadow);
    margin-bottom: 16px;
    padding: 8px 0;
}

.role-subcontainer {
    padding: 0 16px;
}

.role-container .heading1 {
    color: var(--volt-primary) !important;
    font-weight: 700;
    font-size: 15px;
}

.role-container .heading2 {
    color: var(--volt-accent) !important;
    font-weight: 600;
    font-size: 13px;
}

.role-container .heading3 {
    color: var(--volt-secondary) !important;
}

.role-container .heading4 {
    color: #6B7280 !important;
    font-size: 12px;
}

.inner-container {
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 4px 0;
}

.sitemap .subitems li {
    margin-left: 16px;
    margin-bottom: 4px;
}

.sitemap .subitems li input[type="checkbox"] {
    accent-color: var(--volt-primary);
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
    cursor: pointer;
}

.ibox-content.box {
    background: transparent;
    border: none;
    box-shadow: none;
}

.content-wrapper .content-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
}

.content-wrapper .content-header h1 small {
    font-size: 14px;
    color: var(--volt-secondary);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   38. NAV TAB CUSTOM (Purchase Order tabs)
   ══════════════════════════════════════════════════════════════ */
.nav-tab-custom {
    background: #fff;
    border-radius: var(--volt-card-radius);
    box-shadow: var(--volt-card-shadow);
    overflow: hidden;
}

.nav-tab-custom .nav-tabs {
    padding: 0 16px;
    background: #FAFBFC;
    border-bottom: 2px solid #E5E7EB;
}

.nav-tab-custom .tab-content {
    padding: 20px;
}

.nav-tab-custom .tab-content .page-content-wrap {
    box-shadow: none;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
}

/* ══════════════════════════════════════════════════════════════
   39. ADD-LABEL PAGE HEADINGS
   ══════════════════════════════════════════════════════════════ */
.add-label {
    font-family: var(--volt-font) !important;
    color: #1F2937 !important;
}

.add-label i.fa {
    color: var(--volt-primary);
}

/* ══════════════════════════════════════════════════════════════
   40. MONTHLY EXPENSES TABLE (dashboard)
   ══════════════════════════════════════════════════════════════ */
.booking_card .card {
    background: #fff;
    border-radius: var(--volt-card-radius) !important;
    box-shadow: var(--volt-card-shadow);
    border: none !important;
}

/* Override hardcoded table header colors in dashboard */
.booking_card table thead th[style*="background:#2076e1"],
.booking_card table thead th {
    font-family: var(--volt-font);
}

/* ══════════════════════════════════════════════════════════════
   41. BOOTSTRAP SELECT PICKER OVERRIDES
   ══════════════════════════════════════════════════════════════ */
.bootstrap-select .dropdown-toggle {
    border-radius: var(--volt-input-radius) !important;
    border: 1.5px solid #E5E7EB !important;
    height: 40px !important;
    font-size: 13px !important;
    background: #fff !important;
    color: #1F2937 !important;
    padding: 8px 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select.open .dropdown-toggle {
    border-color: var(--volt-secondary) !important;
    box-shadow: 0 0 0 3px rgba(124,77,189,0.12) !important;
    outline: none !important;
}

.bootstrap-select .dropdown-menu {
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    border: 1px solid #E5E7EB !important;
}

/* ══════════════════════════════════════════════════════════════
   42. OWL CAROUSEL IN WIDGETS (cleanup for stat cards)
   ══════════════════════════════════════════════════════════════ */
.widget .owl-carousel,
.widget .owl-wrapper-outer,
.widget .owl-wrapper,
.widget .owl-item {
    width: 100% !important;
}

/* ══════════════════════════════════════════════════════════════
   43. CONTACT-NAME FIELDS IN SEARCH PANELS
   ══════════════════════════════════════════════════════════════ */
.contact-name label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
}

.contact-name label b {
    color: #374151;
}

/* ══════════════════════════════════════════════════════════════
   44. MODAL PUBLIC USER HEADER TEXT
   ══════════════════════════════════════════════════════════════ */
.public_user {
    font-size: 16px;
    font-weight: 600;
    color: var(--volt-primary);
}

/* ══════════════════════════════════════════════════════════════
   45. NOTIFICATION BADGE ON TABS
   ══════════════════════════════════════════════════════════════ */
.nav-tabs .notification {
    color: var(--volt-danger);
    font-weight: 700;
    font-size: 12px;
}

/* ══════════════════════════════════════════════════════════════
   46. DATERANGE PICKER IN SEARCH PANELS
   ══════════════════════════════════════════════════════════════ */
.dtrange {
    background: #fff;
    border-radius: var(--volt-input-radius);
    border: 1.5px solid #E5E7EB;
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.dtrange:hover {
    border-color: var(--volt-secondary);
}

/* ══════════════════════════════════════════════════════════════
   47. DASHBOARD INLINE TABLE OVERRIDES
   ══════════════════════════════════════════════════════════════ */

/* Collapse detail tables in dashboard cards */
.card_dashboard .collapse table {
    font-family: var(--volt-font);
    border-radius: 8px;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   48. RESPONSIVE FIXES FOR STAT CARDS
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .booking_card .col-md-4,
    .booking_card .col-md-6 {
        margin-bottom: 12px;
    }

    .card_no {
        font-size: 18px;
    }

    .widget-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .card_dashboard {
        padding: 14px 16px;
    }

    .card_icn {
        width: 40px;
        height: 40px;
    }

    .card_no {
        font-size: 16px;
    }

    .widget .owl-item {
        width: 100% !important;
    }

    .role-container .subitems li {
        float: none !important;
        margin-left: 8px;
    }
}

/* ══════════════════════════════════════════════════════════════
   47. WIDGET BACKGROUND COLOR VARIANTS
   ══════════════════════════════════════════════════════════════ */
.widget.widget-bg-navy    { background: linear-gradient(135deg, #223e70, #1a3058); }
.widget.widget-bg-olive   { background: linear-gradient(135deg, #62720a, #4d5a08); }
.widget.widget-bg-maroon  { background: linear-gradient(135deg, #7e1638, #5f102a); }
.widget.widget-bg-rose    { background: linear-gradient(135deg, #a13b60, #822e4d); }
.widget.widget-bg-green   { background: linear-gradient(135deg, #4c8d1c, #3d7116); }
.widget.widget-bg-info    { background: linear-gradient(135deg, var(--volt-info), #1D4ED8); }
.widget.widget-bg-primary { background: linear-gradient(135deg, var(--volt-primary), #352266); }

/* ══════════════════════════════════════════════════════════════
   48. DASHBOARD MONTHLY EXPENSES TABLE
   ══════════════════════════════════════════════════════════════ */
.volt-expenses-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--volt-font);
    font-size: 14px;
}
.volt-expenses-table thead th {
    background: var(--volt-primary);
    color: #fff;
    padding: 8px 12px;
    border: 1px solid var(--volt-sidebar-bg-dark);
}
.volt-expenses-table tbody td {
    padding: 7px 12px;
    border: 1px solid #E5E7EB;
}
.volt-expenses-table tbody tr:nth-child(even) {
    background: #F5F7FB;
}
.volt-expenses-table tfoot td {
    padding: 8px 12px;
    border: 1px solid var(--volt-sidebar-bg-dark);
    background: #EDE9FE;
    font-weight: bold;
    color: var(--volt-primary);
}
.volt-expenses-table .text-muted-light {
    color: #bbb;
}

/* ══════════════════════════════════════════════════════════════
   49. DASHBOARD ATTENDANCE DETAIL TABLE
   ══════════════════════════════════════════════════════════════ */
.volt-attendance-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}
.volt-attendance-table thead tr {
    background: #EDE9FE;
}
.volt-attendance-table thead th {
    padding: 6px 8px;
    color: #555;
}
.volt-attendance-table tbody td {
    padding: 5px 8px;
}
.volt-attendance-table .project-row {
    border-bottom: 1px solid #EDE9FE;
}
.volt-attendance-table .project-row:nth-child(even) {
    background: #FAF7FF;
}
.volt-attendance-table .text-secondary  { color: #888; }
.volt-attendance-table .text-dark       { color: #333; }
.volt-attendance-table .text-primary    { color: var(--volt-primary); }
.volt-attendance-table .fw-semibold     { font-weight: 600; }

.volt-team-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    background: #F5F0FF;
}
.volt-team-table thead tr {
    background: #E8DFF7;
}
.volt-team-table thead th {
    padding: 5px 8px;
    color: #666;
}
.volt-team-table tbody td {
    padding: 4px 8px;
}
.volt-team-table tbody tr {
    border-bottom: 1px solid #E8DFF7;
}
.volt-team-table tbody tr:nth-child(even) {
    background: #FAF7FF;
}
.volt-team-table tbody tr:nth-child(odd) {
    background: #F5F0FF;
}

/* ══════════════════════════════════════════════════════════════
   50. DASHBOARD TITLE / YEAR FILTER HEADER
   ══════════════════════════════════════════════════════════════ */
.volt-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.volt-section-header .volt-section-title {
    font-weight: bold;
    font-size: 18px;
    color: var(--volt-primary);
}
.volt-section-header .volt-year-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}
.volt-section-header .volt-year-filter label {
    font-weight: 600;
    color: var(--volt-primary);
    margin: 0;
}
.volt-section-header .volt-year-filter select {
    border: 1px solid #ccc;
    border-radius: var(--volt-input-radius);
    padding: 4px 8px;
    font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════
   51. PAGE HEADING SIZE (replaces inline font-size:32px)
   ══════════════════════════════════════════════════════════════ */
.add-label.page-heading {
    font-size: 32px;
}

/* ══════════════════════════════════════════════════════════════
   52. REQUIRED ASTERISK
   ══════════════════════════════════════════════════════════════ */
.required {
    color: var(--volt-danger);
}

/* ══════════════════════════════════════════════════════════════
   53. MODAL FORM BACKGROUND
   ══════════════════════════════════════════════════════════════ */
.modal-form-bg {
    background-color: #ede7f6;
    border-radius: 5px;
}

/* ══════════════════════════════════════════════════════════════
   54. MODAL ITEM LIST HIGHLIGHT
   ══════════════════════════════════════════════════════════════ */
.item-list-highlight,
.ItemsList,
.ItemsList1 {
    background-color: #d1c4e9 !important;
    border-radius: 5px;
}

/* ══════════════════════════════════════════════════════════════
   55. COMPANY INFO LEGEND
   ══════════════════════════════════════════════════════════════ */
legend.scheduler-border {
    color: var(--volt-primary);
}


/* ── 53. Modal open fix — prevent body shift and page shrink ─────────── */
body.modal-open {
    padding-right: 0 !important;
    overflow: auto !important;
}
body.modal-open .volt-navbar,
body.modal-open .volt-sidebar,
body.modal-open .volt-main,
body.modal-open .mobile-quick-bar {
    padding-right: 0 !important;
}
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-open .modal {
    padding-right: 0 !important;
}


/* ── 54. Fix widget stat cards overflow ──────────────────────────────── */
.widget {
    min-width: 0 !important;
    overflow: hidden;
    word-wrap: break-word;
}
/* Ensure widget container rows wrap properly */
.widget-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* Widget cards should be responsive */
.widget .widget-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.widget .widget-subtitle {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── 55. Navbar quick buttons — smaller on tight screens ─────────────── */
@media (max-width: 1400px) {
    .volt-navbar .volt-quick-actions .btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}
@media (max-width: 1200px) {
    .volt-navbar .volt-quick-actions .btn {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }
    .volt-navbar .volt-quick-actions .btn i {
        display: none;
    }
}

/* ── 56. Content area should not overflow horizontally ────────────────── */
.volt-content {
    overflow-x: auto;
    max-width: 100%;
}

/* ── 57. Fix page header buttons wrapping ─────────────────────────────── */
.register_section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.register_section .btn {
    white-space: nowrap;
    flex-shrink: 0;
}
