/* Main Stylesheet for Management System */
/* Select2 dropdown styling for modals */
.select2-dropdown-modal {
    z-index: 9999 !important;
}

.modal .select2-container {
    z-index: 1060;
}

.modal .select2-container--open {
    z-index: 1070;
}

.select2-dropdown {
    z-index: 1070 !important;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    line-height: 36px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 12px;
    color: #2c3e50;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 10px;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2);
}


/* Ensure dropdown content is visible */
.select2-dropdown .select2-results {
    max-height: 200px;
}

.select2-dropdown .select2-results__option {
    padding: 8px 12px;
}

.select2-dropdown .select2-results__option--highlighted {
    background-color: var(--primary);
    color: white;
}/* Modern Management Portal CSS */

:root {
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 72px;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #e5e7eb;
    --sidebar-hover: #34495e;
    --main-bg: #f3f4f6;
    --primary: #3498db;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0e7490;
    --dark: #2c3e50;
    --gray-base: #2c3e50;
    --gray-light: #34495e;
    --gray-lighter: #3d5a6c;
    --border-radius: 6px;
    --box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --transition: all 0.2s ease;
    /* Bootstrap 5 overrides - use our theme colors */
    --bs-primary: #3498db;
    --bs-primary-rgb: 52, 152, 219;
    --bs-success: #059669;
    --bs-success-rgb: 5, 150, 105;
    --bs-info: #0e7490;
    --bs-info-rgb: 14, 116, 144;
    /* Disabled buttons - consistent gray, not different blue */
    --bs-btn-disabled-color: #5d6d7e;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #bdc3c7;
    --bs-btn-disabled-opacity: 0.65;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--main-bg);
    color: #2c3e50;
    line-height: 1.6;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, padding 0.25s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

body.sidebar-collapsed .sidebar .sidebar-header h4 .sidebar-brand-text,
body.sidebar-collapsed .sidebar .user-details,
body.sidebar-collapsed .sidebar .nav-link span,
body.sidebar-collapsed .sidebar .sidebar-footer .btn span,
body.sidebar-collapsed .sidebar .sidebar-footer small {
    display: none !important;
}

body.sidebar-collapsed .sidebar .sidebar-header {
    padding: 1rem 0.75rem;
}

body.sidebar-collapsed .sidebar .sidebar-header h4 {
    display: flex;
    justify-content: center;
}

body.sidebar-collapsed .sidebar .sidebar-header h4 i {
    margin-right: 0 !important;
}

body.sidebar-collapsed .sidebar .user-info {
    padding: 0px;
    justify-content: center;
    background-color: transparent;
    width: 40px;
}

body.sidebar-collapsed .sidebar .user-avatar {
    margin-right: 0;
}

body.sidebar-collapsed .sidebar .sidebar-nav .nav-link {
    padding: 12px 16px;
    justify-content: center;
    border-radius: 0px;
    margin: 0 0px 2px;
}

body.sidebar-collapsed .sidebar .sidebar-nav .nav-link.active {
    color: white !important;
    border-left-color: var(--primary) !important;
    background-color: transparent;
    border-radius: 0px;
    margin-left: 0px;
}

body.sidebar-collapsed .sidebar .sidebar-nav .nav-link i {
    margin-right: 0;
    width: auto;
}

body.sidebar-collapsed .sidebar .sidebar-footer {
    padding: 0.75rem;
}

body.sidebar-collapsed .sidebar .sidebar-footer .btn {
    padding: 0.5rem;
    justify-content: center;
}

body.sidebar-collapsed .sidebar .sidebar-footer .btn i {
    margin-right: 0 !important;
}

body.sidebar-collapsed .sidebar .sidebar-footer #shiftToggle{
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
body.sidebar-collapsed .sidebar .sidebar-footer #shiftQrBtn {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

body.sidebar-collapsed .sidebar .btn-group .btn {
    flex-grow: 0;
}

body.sidebar-collapsed .sidebar .sidebar-footer .btn-group {
    flex-direction: column;
    gap: 0.5rem;
}

body.sidebar-collapsed .sidebar .sidebar-footer .btn-group #shiftToggle,
body.sidebar-collapsed .sidebar .sidebar-footer .btn-group #shiftQrBtn {
    width: 100%;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h4 {
    color: white;
    font-weight: 600;
    margin: 0;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.05);
    margin: 0 1rem 1rem 1rem;
    border-radius: var(--border-radius);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.company-switcher {
    padding: 0 1.5rem 1rem 1.5rem;
    margin-bottom: 1rem;
}

.company-switcher .form-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.company-switcher .form-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 0.9rem;
}

.company-switcher .form-select:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2);
    color: white;
}

.sidebar-nav .nav {
    padding: 0;
}

.sidebar-nav .nav .collapse {
    min-width: 100%;
}
.sidebar-nav .nav .collapse .nav {
    flex-direction: column;
}
.sidebar-nav .nav .collapse .nav-item {
    flex: 0 0 auto;
    width: 100%;
}
.sidebar-nav .nav .collapse .nav-link {
    white-space: nowrap;
}

.sidebar .dropdown-menu {
    min-width: 12rem;
}
.sidebar .dropdown-menu .dropdown-item {
    white-space: nowrap;
}

.sidebar-nav .nav-item {
    margin-bottom: 2px;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 12px 24px;
    border-radius: 0;
    display: flex;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
    border-left: 3px solid transparent;
    background: transparent;
}

.sidebar-nav .nav-link:hover {
    background: var(--sidebar-hover);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav .nav-link.active {
    background: var(--primary);
    color: white;
    border-left-color: white;
}

.sidebar-nav .nav-link i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.sidebar-nav .submenu {
    background: rgba(0,0,0,0.2);
    margin: 0;
}

.sidebar-nav .submenu .nav-link {
    padding-left: 60px;
    font-size: 0.9rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Resume Shift Button Styling (in shift management table) */
.btn-resume-shift {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-resume-shift:hover {
    background: var(--primary);
    opacity: 0.9;
    color: white;
}
#shiftButtonGroup #shiftQrBtn{
    background-color: #34495e;
}
#shiftButtonGroup #shiftQrBtn:hover{
    background-color: #ffffff;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.top-bar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: var(--box-shadow);
    border-bottom: 1px solid #eee;
}

.sidebar-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sidebar-menu-toggle:hover {
    background: #f8f9fa;
    color: var(--primary);
    border-color: var(--primary);
}

.sidebar-menu-toggle i {
    font-size: 1.1rem;
}

.page-content {
    flex: 1;
    padding: 2rem;
}

.current-time {
    font-size: 0.9rem;
    color: #34495e;
}

.shift-indicator .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* Cards - unified design for dashboard and modules (employees, expenses, matches, tickets, pulls, etc.) */
.page-content .card,
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.page-content .card:hover,
.card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-content .card .card-header,
.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.page-content .card .card-body,
.card-body {
    padding: 1.25rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: #2c3e50;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--primary);
}

.stats-card::before {
    display: none;
}

.stats-card.success {
    border-left-color: var(--success);
}

.stats-card.warning {
    border-left-color: var(--warning);
}

.stats-card.danger {
    border-left-color: var(--danger);
}

.stats-card.primary {
    border-left-color: var(--primary);
}

.stats-card.secondary {
    border-left-color: #34495e;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.stats-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.3;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    opacity: 0.92;
}

/* Primary - main actions (Save, Add, Submit, etc.) */
.btn-primary {
    background: var(--primary);
    color: white;
}

/* Success/Warning/Info - same as primary for consistency */
.btn-success,
.btn-warning,
.btn-info {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-success:hover,
.btn-warning:hover,
.btn-info:hover {
    background: var(--primary);
    color: white;
    opacity: 0.92;
}

/* Danger - destructive actions only (Delete, Clear) */
.btn-danger {
    background: var(--danger);
    color: white;
}

/* Outline - secondary/cancel style, single consistent look */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-danger {
    border: 1px solid var(--danger);
    color: var(--danger);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
}

/* Shift-required buttons: look disabled (muted) but are clickable to show toast */
.require-shift-btn {
    opacity: 0.65;
    cursor: pointer;
}
.require-shift-btn:hover,
.require-shift-btn:focus {
    opacity: 0.75;
    background-color: #5d6d7e !important;
    border-color: #5d6d7e !important;
    color: #fff !important;
}

/* Active button states for navigation */
.btn-group .btn.btn-primary,
.btn-group .btn.btn-info,
.btn-group .btn.btn-success {
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Tables */
.table {
    margin-bottom: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #2c3e50;
    padding: 1rem;
    font-size: 0.9rem;
}

.table tbody td {
    padding: 10px;
    border-top: 1px solid #eee;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f9fafb;
}

/* DataTables Custom Styling */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    min-width: 75px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-left: 0.5rem;
}

/* DataTables Pagination - Match Theme Color */
/* Native DataTables pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #ccc !important;
    border-color: #ddd !important;
    cursor: not-allowed !important;
    background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: transparent !important;
    color: #ccc !important;
    border-color: #ddd !important;
}

/* Bootstrap 5 Pagination in DataTables (Bootstrap 5 integration uses .pagination .page-item .page-link) */
.dataTables_wrapper .pagination .page-item .page-link {
    color: var(--primary) !important;
    border-color: #dee2e6 !important;
    background-color: white !important;
}

.dataTables_wrapper .pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.dataTables_wrapper .pagination .page-item.active .page-link,
.dataTables_wrapper .pagination .page-item.active .page-link:focus,
.dataTables_wrapper .pagination .page-item.active .page-link:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2) !important;
}

.dataTables_wrapper .pagination .page-item.disabled .page-link,
.dataTables_wrapper .pagination .page-item.disabled .page-link:hover,
.dataTables_wrapper .pagination .page-item.disabled .page-link:focus {
    color: #5d6d7e !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
}

/* Additional selectors for DataTables Bootstrap 5 pagination - More specific */
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item:not(.active):not(.disabled) .page-link {
    color: var(--primary) !important;
    border-color: #dee2e6 !important;
    background-color: white !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link,
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link:focus,
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2) !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.disabled .page-link,
div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.disabled .page-link:hover {
    color: #5d6d7e !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    opacity: 0.5 !important;
}

/* Override Bootstrap default pagination colors for DataTables */
.dataTables_wrapper .pagination .page-link {
    color: var(--primary) !important;
}

.dataTables_wrapper .pagination .page-link:hover {
    z-index: 2;
    color: white !important;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.dataTables_wrapper .pagination .page-item.active > .page-link {
    z-index: 3;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* Forms */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1.5rem;
}

/* Badges - same style as .report-stat-pill (reports) */
.badge,
.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-success,
.badge.bg-warning,
.badge.bg-info,
.badge.bg-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid transparent;
}
.badge.bg-primary { background: rgba(52, 152, 219, 0.12) !important; color: var(--primary) !important; border-color: rgba(52, 152, 219, 0.25) !important; }
.badge.bg-secondary { background: rgba(108, 117, 125, 0.12) !important; color: #2c3e50 !important; border-color: rgba(108, 117, 125, 0.25) !important; }
.badge.bg-success { background: rgba(25, 135, 84, 0.12) !important; color: #198754 !important; border-color: rgba(25, 135, 84, 0.25) !important; }
.badge.bg-info { background: rgba(13, 202, 240, 0.12) !important; color: #0aa2c0 !important; border-color: rgba(13, 202, 240, 0.25) !important; }
.badge.bg-warning { background: rgba(255, 193, 7, 0.2) !important; color: #856404 !important; border-color: rgba(255, 193, 7, 0.4) !important; }
.badge.bg-danger { background: rgba(220, 53, 69, 0.12) !important; color: #dc3545 !important; border-color: rgba(220, 53, 69, 0.25) !important; }
.badge.bg-warning.text-dark { color: #1f2937 !important; }

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-info {
    background: #f0f9ff;
    color: #0e7490;
    border: 1px solid #bae6fd;
}

.alert-success {
    background: #f0fdf4;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-action-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.quick-action-card:hover {
    border-color: #d1d5db;
    box-shadow: var(--box-shadow);
    text-decoration: none;
    color: inherit;
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34495e;
    font-size: 1.5rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3498db;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.login-header {
    background: var(--sidebar-bg);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-body {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .page-content {
        padding: 1rem;
    }
    
    .top-bar {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.shadow {
    box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

/* Active Menu Item - uses .active class from isCurrentRoute() in navigation.php */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Print Styles */
@media print {
    .sidebar,
    .top-bar,
    .action-buttons,
    .btn,
    .modal,
    .loading-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .page-content {
        padding: 0;
    }
}

.badge i.fas {
    font-size: 0.7em;
    margin-right: 0.25rem;
}

/* Bootstrap 5 Gap Utility */
.gap-1 {
    gap: 0.25rem !important;
}

/* Modern Table Hover Effect */
.table-hover tbody tr:hover {
    background-color: #f9fafb !important;
    transition: all 0.2s ease;
}

/* Avatar Styling */
.avatar {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Action Buttons Enhanced */
.action-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: flex-end;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Form Check Styling for Bootstrap 5 */
.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input {
    margin-top: 0.125em;
}

.form-check-label {
    cursor: pointer;
    margin-left: 0.25rem;
}

/* Modal Enhancements */
.modal-title i {
    color: var(--primary);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1rem;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn-close:hover {
    opacity: 0.75;
}

/* Company Assignment Special Styling */
.badge-assignment {
    display: inline-flex;
    align-items: center;
    margin: 0.125rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.badge-assignment.primary {
    background: rgba(52, 152, 219, 0.12) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(52, 152, 219, 0.25);
}

.badge-assignment.secondary {
    background: rgba(108, 117, 125, 0.12) !important;
    color: #2c3e50 !important;
    border: 1px solid rgba(108, 117, 125, 0.25);
}

/* Loading States - disabled buttons use consistent gray, not different blue */
.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
    color: #5d6d7e !important;
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Form Validation */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* Responsive Table Improvements */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 0.125rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        padding: 0.375rem 0.75rem;
    }
    
    .table-responsive table {
        font-size: 0.875rem;
    }
    
    .badge {
        font-size: 0.7em;
        margin-bottom: 0.25rem;
        display: block;
        text-align: center;
    }
    
    .avatar {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}

/* Table card styling inherits from main .card above */

/* Table Header Improvements */
.table th {
    font-weight: 600;
    color: #2c3e50;
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
    background-color: #f8f9fa;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

/* Table Filter */
#filter_form .btn, #filterForm .btn{
    padding: 0.9rem 1.2rem;
}

/* Activity Log Timeline Styles */
.modal-timeline {
    padding: 15px 0;
}

.modal-timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    border-left: 1px solid #e0e0e0;
}

.modal-timeline-item:last-child {
    margin-bottom: 0;
}

.modal-timeline-item::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 3px;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
}

.modal-timeline-time {
    font-size: 0.75rem;
    color: #34495e;
    margin-bottom: 2px;
    font-weight: 500;
}

.modal-timeline-user {
    font-size: 0.8rem;
    color: #2c3e50;
    margin-bottom: 3px;
    font-weight: 600;
}

.modal-timeline-change {
    font-size: 0.75rem;
    color: #34495e;
    margin-bottom: 2px;
    line-height: 1.3;
}

.modal-timeline-reason {
    font-size: 0.7rem;
    color: #5d6d7e;
    font-style: italic;
    margin-top: 2px;
}

/* Activity Log Styles */
.activity-changes {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table th {
    border-top: none;
}

.modal-timeline-content {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    color: #2c3e50;
}

.modal-timeline-content small {
    line-height: 1.4;
}

/* Record Timeline Styles */
.record-timeline {
    position: relative;
    padding-left: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.record-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #dee2e6;
}

.record-timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 0;
}

.record-timeline-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5d6d7e;
    border: 1px solid white;
    z-index: 1;
}

.record-timeline-item:last-child {
    margin-bottom: 0;
}

.record-timeline-time {
    font-size: 0.75rem;
    color: #5d6d7e;
    font-weight: 400;
    margin-bottom: 2px;
}

.record-timeline-content {
    background: transparent;
    border: none;
    padding: 0;
}

.record-timeline-user {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.record-timeline-changes {
    color: #5d6d7e;
    margin-bottom: 4px;
    line-height: 1.3;
    font-size: 0.75rem;
}

.record-timeline-reason {
    font-style: italic;
    color: #5d6d7e;
    font-size: 0.7rem;
    margin-top: 4px;
}

/* Select2 Bootstrap 5 Theme Overrides */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary);
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

/* Make sure Select2 works properly in modals */
.modal .select2-container {
    width: 100% !important;
}

.modal .select2-dropdown {
    z-index: 1060 !important;
}

/* Fix for Select2 clear button */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    margin-top: 0rem;
}

/* Disabled Quick Action Cards */
.quick-action-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: auto;
    background-color: #f8f9fa;
}

.quick-action-card.disabled:hover {
    transform: none;
    box-shadow: var(--box-shadow);
}

.quick-action-card.disabled .quick-action-icon {
    background-color: #5d6d7e;
    color: #fff;
}

/* Shift Timer Display */
.shift-timer-display .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

#shiftDuration {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Simple Toast Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.dataTables_length label{
    display: flex;
    align-items: center;
}

.dataTables_length label .select2{
    width: auto !important;
    margin: 0px 10px;
}

.dataTables_length label .select2-selection{
    height: 40px;
    padding-right: 50px !important;
}

.dataTables_length .select2-selection--single .select2-selection__clear{
    margin-top: 0px;
}
.dataTables_length .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
}

/* Filter Panel Styles */
.filter-panel {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.filter-panel.show {
    display: block !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-toggle-btn {
    background: #5d6d7e;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-toggle-btn:hover {
    background: #5a6268;
}

.filter-toggle-btn.active {
    background: var(--primary);
}

.filter-toggle-btn i {
    margin-right: 5px;
}

.dataTables_wrapper .filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.dataTables_wrapper .filter-row .dataTables_filter {
    margin: 0;
}

.filter-badge {
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* ========================================
   Table action buttons (edit, delete, view, employee actions) ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ single color, no border, compact
   ======================================== */
.table .btn-group .edit-btn,
.table .btn-group .delete-btn,
.table .btn-group .view-btn,
.table .btn-group .edit-employee,
.table .btn-group .delete-employee,
.table .btn-group .reset-password-btn,
.table .btn-group .toggle-status,
.table .btn-group .signout-all-btn {
    color: #5d6d7e;
    border: none;
    background: transparent;
    padding: 0.2rem 0.4rem;
    box-shadow: none;
}
.table .btn-group .edit-btn:hover,
.table .btn-group .delete-btn:hover,
.table .btn-group .view-btn:hover,
.table .btn-group .edit-employee:hover,
.table .btn-group .delete-employee:hover,
.table .btn-group .reset-password-btn:hover,
.table .btn-group .toggle-status:hover,
.table .btn-group .signout-all-btn:hover {
    color: #2c3e50;
    background: rgba(108, 117, 125, 0.1);
    border: none;
    box-shadow: none;
}
.table .btn-group .edit-btn:focus,
.table .btn-group .delete-btn:focus,
.table .btn-group .view-btn:focus,
.table .btn-group .edit-employee:focus,
.table .btn-group .delete-employee:focus,
.table .btn-group .reset-password-btn:focus,
.table .btn-group .toggle-status:focus,
.table .btn-group .signout-all-btn:focus {
    box-shadow: none;
    border: none;
}

/* ========================================
   Table actions 3-dot dropdown
   ======================================== */
.table .table-actions-dropdown .table-actions-trigger {
    color: #5d6d7e;
    border: none;
    background: #edf0f3;
    padding: 0.2rem 1rem;
    box-shadow: none;
    font-size: 20px;
}
.table .table-actions-dropdown .table-actions-trigger:hover {
    color: #2c3e50;
    background: rgba(108, 117, 125, 0.1);
    border: none;
}
.table .table-actions-dropdown .table-actions-trigger:focus {
    box-shadow: none;
    border: none;
}
.table .table-actions-dropdown .dropdown-menu {
    min-width: 8.5rem;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.table .table-actions-dropdown .dropdown-item {
    cursor: pointer;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #2c3e50;
}
.table .table-actions-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}
.table .table-actions-dropdown .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #212529;
}
.table .table-actions-dropdown .dropdown-item i {
    font-size: 0.9rem;
    width: 1rem;
    opacity: 0.85;
}
.table .table-actions-dropdown .dropdown-divider {
    margin: 0.2rem 0;
}

/* ========================================
   Daily Summary Sticky Footer
   ======================================== */
.daily-summary-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 250px; /* Default offset, will be overridden by JS */
    right: 0;
    background: #ffffff;
    border-top: 2px solid #dee2e6;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
    transition: left 0.3s ease; /* Smooth transition when sidebar toggles */
}

/* Add padding to the form content so it doesn't get hidden behind sticky footer */
#dailySummaryForm {
    padding-bottom: 220px;
}

/* Ensure sticky footer works on smaller screens (mobile - no sidebar offset) */
@media (max-width: 991px) {
    .daily-summary-sticky-footer {
        left: 0 !important; /* Full width on mobile, override JS */
        padding: 10px 0;
    }
    #dailySummaryForm {
        padding-bottom: 300px;
    }
}

/* ========================================
   Customer Model
   ======================================== */

#customerModal .modal-dialog{
    max-width: 800px;
}

/* ========================================
   Machine Readings Module
   ======================================== */
.machine-reading-container {
    font-size: 0.9rem;
}

.compact-card {
    margin-bottom: 1rem;
}

.compact-card .card-header {
    padding: 0.5rem 1rem;
    background: #2c3e50;
    color: #212529;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compact-card .card-header span,
.compact-card .card-header span i {
    color: #fff;
}

.compact-card .card-body {
    padding: 0.75rem;
}

.form-control-sm {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

.form-label-sm {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.machine-table td,
.machine-table th {
    padding: 0.2rem 0.3rem;
    vertical-align: middle;
}

/* Companies table - compact super admin design */
.companies-card .card-body {
    padding: 0.75rem 1rem;
}
.companies-table td,
.companies-table th {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    font-size: 0.9rem;
}
.companies-table thead th {
    font-weight: 600;
    border-bottom-width: 1px;
}
.companies-table .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}
.companies-table tbody tr:hover {
    background-color: rgba(44, 62, 80, 0.04);
}

/* Subscriptions table - compact super admin design */
.subscriptions-card .card-body {
    padding: 0.75rem 1rem;
}
.subscriptions-table td,
.subscriptions-table th {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    font-size: 0.9rem;
}
.subscriptions-table thead th {
    font-weight: 600;
    border-bottom-width: 1px;
}
.subscriptions-table .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}
.subscriptions-table .days-input {
    font-size: 0.85rem;
}
.subscriptions-table tbody tr:hover {
    background-color: rgba(44, 62, 80, 0.04);
}

/* Support tickets table */
.support-tickets-card .card-body { padding: 0.75rem 1rem; }
.support-tickets-table td, .support-tickets-table th {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    font-size: 0.9rem;
}
.support-tickets-table thead th { font-weight: 600; border-bottom-width: 1px; }
.support-tickets-table .badge { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
.support-tickets-table tbody tr:hover { background-color: rgba(44, 62, 80, 0.04); }
.support-tickets-table tbody tr .select2 .select2-selection{height: 45px;}

/* Notification dropdown */
.notification-dropdown .notification-item { cursor: pointer; white-space: normal; }
.notification-dropdown .dropdown-header { font-weight: 600; }

.machine-table input {
    min-width: 80px;
}

.machine-table td:first-child input {
    min-width: 100px;
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
}

.machine-item {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.4rem;
    background: #f8f9fa;
    font-size: 0.85rem;
}

.machine-item.has-data {
    background: #e8f5e9;
    border-color: #4caf50;
}

#machineReadingsTable td {
    padding: 0.3rem;
}

.summary-card {
    background: #fff;
    color: #2c3e50;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.sticky-summary {
    position: sticky;
    top: 10px;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.summary-card h6 {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.9;
}

.summary-card h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.month-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
    background: white;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.calendar-day.has-reading {
    background: #e8f5e9;
    border-color: #4caf50;
    font-weight: 600;
}

.calendar-day.selected {
    background: #667eea;
    color: white;
    font-weight: 700;
}

.calendar-day.today {
    border: 2px solid #ff9800;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.input-group-compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.section-divider {
    border-top: 2px solid #667eea;
    margin: 1.5rem 0 1rem 0;
    padding-top: 1rem;
}

.btn-save-reading {
    position: sticky;
    bottom: 1rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.auto-calculate {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.negative-value {
    color: #dc3545;
    font-weight: 600;
}

.positive-value {
    color: #28a745;
    font-weight: 600;
}

/* Drag and drop styles */
.sortable-ghost {
    opacity: 0.4;
    background: #f8f9fa;
}

.sortable-drag {
    opacity: 0.8;
}

.drag-handle {
    cursor: move;
    user-select: none;
}

.drag-handle:hover {
    background-color: #f0f0f0;
}

/* Tab content styling */
.tab-content {
    padding-top: 1.5rem;
}

.nav-tabs .nav-link {
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

/* ========================================
   Reports Hub Tabs ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ custom tab navigation
   ======================================== */
.reports-tabs-nav {
    background: #fff;
    border-radius: var(--border-radius, 12px);
    box-shadow: var(--box-shadow, 0 2px 10px rgba(0,0,0,0.08));
    padding: 0.5rem;
    border: 1px solid rgba(0,0,0,0.06);
}

.reports-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reports-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.reports-tab-item:hover {
    background: #f1f3f5;
    color: #212529;
}

.reports-tab-item.active {
    background: var(--primary);
    color: #fff;
}

.reports-tab-item.active:hover {
    background: var(--primary);
    color: #fff;
    opacity: 0.95;
}

.reports-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.06);
    font-size: 0.9rem;
}

.reports-tab-item.active .reports-tab-icon {
    background: rgba(255,255,255,0.25);
}

.reports-tab-label {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .reports-tabs-list {
        flex-direction: column;
    }
    .reports-tab-item {
        justify-content: flex-start;
        padding: 0.85rem 1rem;
    }
}

/* ========================================
   Reports ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ Filter slide-in panel (from right)
   ======================================== */
.reports-filter-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.reports-filter-toggle-btn, #addMachineRow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.reports-filter-toggle-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary);
    color: var(--primary);
}

.reports-filter-toggle-btn i {
    font-size: 0.95rem;
}

.reports-filter-toggle-btn.active {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
}

.reports-filter-toggle-btn .filter-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    margin-left: 0.25rem;
}

.reports-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.reports-filter-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.reports-filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reports-filter-panel.show {
    transform: translateX(0);
}

.reports-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    flex-shrink: 0;
}

.reports-filter-panel-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.reports-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #5d6d7e;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.reports-filter-close:hover {
    background: #e9ecef;
    color: #212529;
}

.reports-filter-panel-body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.reports-filter-panel-body .form-label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.35rem;
}

.reports-filter-panel-body .row.g-3 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    margin-bottom: 0;
}

.reports-filter-panel-body .row.g-3 > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.reports-filter-panel-body .row.g-3 > [class*="col-"] .mb-3{
    margin-bottom: 0px!important;
}

.reports-filter-panel-body .row.g-3 .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
}

.reports-filter-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.reports-filter-panel-actions .btn {
    width: 100%;
}

/* ========================================
   Subscriptions Management Module
   ======================================== */
.days-input {
    text-align: center;
    font-weight: bold;
}

.days-input.border-warning {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}

.update-days-btn {
    min-width: 38px;
}

.update-days-btn.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.manual-adjust-column {
    min-width: 140px;
}

.days-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2);
}

.days-input[title]:hover {
    cursor: help;
}

/* ========================================
   Topbar Shift Status Display
   ======================================== */
.shift-status-display {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.shift-active {
    display: flex;
    align-items: center;
    color: #198754;
    font-weight: 500;
}

.shift-active .shift-label {
    margin-right: 12px;
}

.shift-active .shift-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 15px;
    background: #198754;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.shift-inactive {
    display: flex;
    align-items: center;
    color: #dc3545;
    font-weight: 500;
}

/* ========================================
   Report Day Stats â€“ small radius boxes, compact text
   ======================================== */
.report-day-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-end;
}
.report-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 4px;
    white-space: nowrap;
}
.report-stat-label {
    font-weight: 500;
    opacity: 0.9;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.report-stat-bank {
    background: rgba(52, 152, 219, 0.12);
    color: var(--primary);
    border: 1px solid rgba(52, 152, 219, 0.25);
}
.report-stat-income {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.25);
}
.report-stat-tickets {
    background: rgba(13, 202, 240, 0.12);
    color: #0aa2c0;
    border: 1px solid rgba(13, 202, 240, 0.25);
}
.report-stat-expenses {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.25);
}
.report-stat-net.report-stat-net-pos {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.25);
}
.report-stat-net.report-stat-net-neg {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.25);
}
.report-stat-empty {
    font-size: 0.7rem;
    color: #5d6d7e;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    font-weight: 500;
}
.report-day-meta {
    margin-top: 0.15rem;
}
.report-meta-shifts {
    background: rgba(108, 117, 125, 0.12);
    color: #2c3e50;
    border: 1px solid rgba(108, 117, 125, 0.25);
}
.report-meta-activities {
    background: rgba(13, 202, 240, 0.12);
    color: #0aa2c0;
    border: 1px solid rgba(13, 202, 240, 0.25);
}
.report-meta-bank {
    background: rgba(52, 152, 219, 0.12);
    color: var(--primary);
    border: 1px solid rgba(52, 152, 219, 0.25);
}
.report-meta-bank .fa-piggy-bank {
    font-size: 0.65rem;
}

/* ========================================
   Reports Module - Shift Report Styles
   ======================================== */
.card-header[onclick] {
    transition: all 0.2s ease;
}

.card-header[onclick]:hover {
    background-color: #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header[onclick]:hover .fas {
    color: var(--primary) !important;
}

.table-responsive {
    border-radius: 0;
}

/* Header styling */
.container-fluid .d-sm-flex {
    border-bottom: 1px solid #e3e6f0;
    padding-bottom: 15px;
    margin-bottom: 20px !important;
}

/* Simple Shift Report Styles - Clean Table Format */
.simple-shift-report {
    font-family: Arial, sans-serif;
    font-size: 11px;
    max-width: 100%;
    margin: 0 auto;
    background: white;
    padding: 20px;
    color: #000;
}

.report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

.header-left {
    flex: 1;
}

.header-right {
    text-align: right;
}

.company-name {
    font-weight: bold;
    font-size: 12px;
}

.employee-info, .session-info, .report-title {
    font-size: 10px;
    margin: 2px 0;
}

.print-date {
    font-size: 10px;
}

.transactions-section h3 {
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
    font-size: 10px;
}

.transactions-table th {
    background-color: #f0f0f0;
    border: 1px solid #000;
    padding: 4px 8px;
    text-align: center;
    font-weight: bold;
}

.transactions-table td {
    border: 1px solid #000;
    padding: 3px 8px;
    text-align: left;
}

.number-cell {
    text-align: right !important;
}

.time-cell {
    text-align: center !important;
    font-size: 9px;
}

.transaction-total {
    background-color: #f8f8f8;
}

.transaction-total td {
    font-weight: bold;
}

.summary-section {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #000;
}

.summary-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.summary-item {
    flex: 1;
}

.label {
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 5px;
}

.value {
    font-size: 10px;
    margin: 2px 0;
}

.ticket-section {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #000;
}

.ticket-title {
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 10px;
}

.machine-entry {
    font-size: 10px;
    margin: 5px 0;
}

.ticket-totals {
    margin: 10px 0;
    padding: 5px 0;
    border-top: 1px solid #000;
}

.ticket-totals div {
    font-size: 10px;
    margin: 3px 0;
}

.cash-count {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px solid #000;
}

.cash-count div {
    font-size: 10px;
    display: inline-block;
    margin-right: 20px;
}

.comments {
    margin-top: 15px;
    padding: 10px 0;
    border-top: 2px solid #000;
}

.comments-title {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 5px;
}

.comment-text {
    font-size: 10px;
    font-weight: bold;
}

.reconciliation-section {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #2c3e50;
}

.recon-line {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    font-size: 11px;
}

.recon-line .amount {
    font-weight: bold;
}

.recon-line .amount.short {
    font-weight: bold;
}

.comments-section {
    margin-top: 15px;
    padding: 10px 0;
    border-top: 2px solid #2c3e50;
    text-align: center;
}

.comment {
    font-weight: bold;
    font-size: 12px;
    padding: 5px;
}

.comment.short {
    color: #d32f2f;
    background-color: #ffebee;
    border: 1px dashed #d32f2f;
}

.comment.over {
    color: #2e7d32;
    background-color: #e8f5e8;
    border: 1px dashed #2e7d32;
}

.comment.balanced {
    color: #1976d2;
    background-color: #e3f2fd;
    border: 1px dashed #1976d2;
}

/* Print-friendly styles */
@media print {
    .simple-shift-report {
        max-width: none;
        padding: 10px;
        font-size: 9px;
    }

    .transactions-table {
        font-size: 8px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 2px 4px;
    }

    /* Ensure proper page breaks */
    .simple-shift-report {
        page-break-inside: avoid;
    }

    .transactions-section {
        page-break-inside: avoid;
    }

    .ticket-section,
    .summary-section {
        page-break-inside: avoid;
    }
}

/* Modal adjustments for simple report */
#shiftReportModal .modal-dialog {
    max-width: 900px;
}

#shiftReportModal .modal-body {
    padding: 20px;
}

/* Report modals â€“ simple icon buttons, same color, Close with text */
.report-modal-footer {
    gap: 0.2rem;
}
.report-modal-footer .report-modal-btn {
    width: 2.60rem;
    height: 2.60rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #5d6d7e;
    background: transparent;
    color: #5d6d7e;
}
.report-modal-footer .report-modal-btn:hover {
    background-color: #5d6d7e;
    color: #fff;
    border-color: #5d6d7e;
}
.report-modal-footer .report-modal-btn i {
    margin: 0;
}

/* Ensure proper alignment and spacing */
.simple-shift-report strong {
    font-weight: bold;
}

.simple-shift-report .text-right {
    text-align: right;
}

/* Mobile-friendly numeric input styling */
/* Hide number input spinners for cleaner look on mobile */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
}

/* Ensure number inputs are easily tappable on mobile */
tbody:not(#machineReadingsTable)tbody:not(#dailySummaryForm) input[type="number"],
tbody:not(#machineReadingsTable)tbody:not(#dailySummaryForm) input[type="tel"] {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px; /* iOS recommended touch target size */
}

/* Better mobile input focus states */
@media (max-width: 768px) {
    input[type="number"]:focus,
    input[type="tel"]:focus,
    input[inputmode="numeric"]:focus,
    input[inputmode="decimal"]:focus {
        font-size: 16px;
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2);
    }

    /* Larger tap targets for mobile */
    .form-control {
        min-height: 44px;
        font-size: 16px;
    }
}

/* =====================================================
   Ticket Report Styles (moved from ticket-out-report.php)
   ===================================================== */

/* Card header hover effects for clickable cards */
.card-header[onclick] {
    transition: all 0.2s ease;
}

.card-header[onclick]:hover {
    background-color: #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header[onclick]:hover .fas {
    color: var(--primary) !important;
}

/* POS Style Ticket Report */
.simple-ticket-report {
    font-family: Arial, sans-serif;
    font-size: 11px;
    max-width: 100%;
    margin: 0 auto;
    background: white;
    padding: 20px;
    color: #000;
}

.simple-ticket-report .report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

.simple-ticket-report .header-left {
    flex: 1;
}

.simple-ticket-report .header-right {
    text-align: right;
}

.simple-ticket-report .company-name {
    font-weight: bold;
    font-size: 12px;
}

.simple-ticket-report .employee-info,
.simple-ticket-report .session-info,
.simple-ticket-report .report-title {
    font-size: 10px;
    margin: 2px 0;
}

.simple-ticket-report .print-date {
    font-size: 10px;
}

.simple-ticket-report .transactions-section h3 {
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.simple-ticket-report .transactions-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
    font-size: 10px;
}

.simple-ticket-report .transactions-table th {
    background-color: #f0f0f0;
    border: 1px solid #000;
    padding: 4px 8px;
    text-align: center;
    font-weight: bold;
}

.simple-ticket-report .transactions-table td {
    border: 1px solid #000;
    padding: 3px 8px;
    text-align: left;
}

.simple-ticket-report .number-cell {
    text-align: right !important;
}

.simple-ticket-report .transaction-total {
    background-color: #f8f8f8;
}

.simple-ticket-report .transaction-total td {
    font-weight: bold;
}

.simple-ticket-report .summary-section {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #000;
}

.simple-ticket-report .label {
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 5px;
}

.simple-ticket-report .value {
    font-size: 10px;
    margin: 2px 0;
}

/* Print-friendly styles for ticket report */
@media print {
    .simple-ticket-report {
        max-width: none;
        padding: 10px;
        font-size: 9px;
    }

    .simple-ticket-report .transactions-table {
        font-size: 8px;
    }

    .simple-ticket-report .transactions-table th,
    .simple-ticket-report .transactions-table td {
        padding: 2px 4px;
    }
}

/* Ticket Report Modal */
#ticketReportModal .modal-dialog {
    max-width: 900px;
}

#ticketReportModal .modal-body {
    padding: 20px;
}

/* Compressed Ticket Report */
.compressed-ticket-report {
    font-family: Arial, sans-serif;
    font-size: 11px;
    background: white;
    padding: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.compressed-ticket-report table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.compressed-ticket-report th {
    background: #f5f5f5;
    border: 1px solid #999;
    padding: 3px 6px;
    text-align: center;
}

.compressed-ticket-report td {
    border: 1px solid #999;
    padding: 2px 4px;
}

/* =====================================================
   Dashboard2/Quick Actions Styles (moved from dashboard2.php)
   ===================================================== */

#page-quick-actions .right-bar .card .card-header {
    padding: 1rem 1.25rem !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e5e7eb;
}

#page-quick-actions .card .card-header-tabs{
    margin-right: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    border-bottom: 0;
}

.form-card .card-header.editing {
    background: var(--primary);
    color: #fff;
}

.form-card .card-header.editing .form-arrow {
    color: #fff;
}

.form-arrow {
    transition: transform 0.2s;
}

.form-card .card-header.open .form-arrow {
    transform: rotate(180deg);
}

#entryTabs .nav-link {
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    color: #5d6d7e;
    padding: 0.75rem 1.5rem;
}

#entryTabs .nav-link:hover {
    color: #2c3e50;
    border-color: transparent;
}

#entryTabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

/* Support Ticket View Modal – tabs matching theme */
.support-ticket-tabs {
    border-bottom: 1px solid #e5e7eb;
    gap: 0;
}

.support-ticket-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #5d6d7e;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    background: transparent;
    margin-bottom: -1px;
}

.support-ticket-tabs .nav-link:hover {
    color: #2c3e50;
    border-bottom-color: transparent;
}

.support-ticket-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.support-ticket-tabs .badge-tab {
    background: rgba(52, 152, 219, 0.15);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
}

.ticket-comments-scroll {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

#entriesTable th {
    font-size: 0.85rem;
    font-weight: 600;
}

#entriesTable td {
    font-size: 0.9rem;
    vertical-align: middle;
}

#entriesTable tr.editing {
    background-color: #e3f2fd;
}

.page-dashboard2 .right-bar .card-header {
    padding: 1rem 1.25rem !important;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e5e7eb;
}

.page-dashboard2 .left-bar .card-header-tabs {
    margin: 0px;
}

.page-dashboard2 .table thead th {
    background: #fff;
    padding: 0.8rem;
}

.page-dashboard2 .left-bar .table tr td {
    padding: 0.7rem 1rem;
}

.page-dashboard2 .left-bar .card {
    height: 100%;
}

.page-dashboard2 .action-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.page-dashboard2 .action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.qa-form:has(input:disabled) {
    opacity: 0.6;
}

.qa-form input:disabled,
.qa-form select:disabled,
.qa-form button:disabled {
    cursor: not-allowed;
}

.disabled-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: not-allowed;
}

/* =====================================================
   Wheel Game / Lucky Draw Styles (moved from wheel-game.php)
   ===================================================== */

.wheel-game-page {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Animated background particles */
.wheel-game-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: wheelMoveParticles 30s linear infinite;
}

@keyframes wheelMoveParticles {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.wheel-game-container {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 40px;
}

.wheel-game-title {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
    letter-spacing: 4px;
    animation: wheelTitlePulse 3s ease-in-out infinite;
}

@keyframes wheelTitlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.wheel-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 50px;
    font-weight: 300;
}

/* Number Scroller Container */
.wheel-scroller-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 40px;
    padding: 60px 80px;
    box-shadow:
        0 30px 90px rgba(0,0,0,0.5),
        inset 0 -5px 20px rgba(0,0,0,0.2),
        inset 0 5px 20px rgba(255,255,255,0.1);
    margin-bottom: 50px;
    position: relative;
}

.wheel-scroller-container::before,
.wheel-scroller-container::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.wheel-scroller-container::before {
    top: 30%;
}

.wheel-scroller-container::after {
    bottom: 30%;
}

/* Number Display Window */
.wheel-number-window {
    width: 400px;
    height: 250px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border-radius: 30px;
    box-shadow:
        inset 0 10px 30px rgba(0,0,0,0.5),
        0 0 40px rgba(255,255,255,0.1);
}

/* Scroller strip */
.wheel-number-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.wheel-number-item {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 20px rgba(255,255,255,0.5),
        0 5px 15px rgba(0,0,0,0.3);
}

/* Gradient overlays for depth */
.wheel-number-window::before,
.wheel-number-window::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 40%;
    pointer-events: none;
    z-index: 10;
}

.wheel-number-window::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(102,126,234,0.8), transparent);
}

.wheel-number-window::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(102,126,234,0.8), transparent);
}

/* Selection indicator */
.wheel-selection-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 270px;
    border: 5px solid #ffd700;
    border-radius: 35px;
    pointer-events: none;
    z-index: 20;
    box-shadow:
        0 0 30px rgba(255,215,0,0.6),
        inset 0 0 30px rgba(255,215,0,0.3);
    animation: wheelIndicatorGlow 2s ease-in-out infinite;
}

@keyframes wheelIndicatorGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255,215,0,0.6), inset 0 0 30px rgba(255,215,0,0.3); }
    50% { box-shadow: 0 0 50px rgba(255,215,0,0.9), inset 0 0 50px rgba(255,215,0,0.5); }
}

/* Spin Button */
.wheel-spin-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 30px 100px;
    font-size: 2.5rem;
    font-weight: 800;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 20px 50px rgba(245, 87, 108, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.wheel-spin-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.wheel-spin-button:hover:not(:disabled)::before {
    width: 400px;
    height: 400px;
}

.wheel-spin-button:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(245, 87, 108, 0.6);
}

.wheel-spin-button:active:not(:disabled) {
    transform: translateY(-2px);
}

.wheel-spin-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wheel-spin-button span {
    position: relative;
    z-index: 1;
}

/* Result Overlay */
.wheel-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: wheelFadeIn 0.3s ease;
}

.wheel-result-overlay.show {
    display: flex;
}

@keyframes wheelFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wheel-result-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.7);
    animation: wheelResultPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

@keyframes wheelResultPop {
    0% { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.wheel-result-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.wheel-result-number {
    font-size: 15rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(255,215,0,0.5);
    line-height: 1;
    margin-bottom: 40px;
    animation: wheelNumberShine 2s ease-in-out infinite;
}

@keyframes wheelNumberShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.wheel-close-result {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 20px 60px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.wheel-close-result:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255,255,255,0.4);
}

/* Confetti */
.wheel-confetti {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    animation: wheelConfettiFall 4s linear;
}

@keyframes wheelConfettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Customer photo (webcam) */
.customer-photo-card {
    max-width: 400px;
}

.customer-photo-viewfinder {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 240px;
}

/* Stacking: placeholder behind, container and preview on top when visible */
#customerPhotoPlaceholder {
    z-index: 0;
}

#customerWebcamContainer {
    display: none;
    min-width: 320px;
    min-height: 240px;
    z-index: 1;
}

.customer-photo-viewfinder #customerWebcamContainer video,
.customer-photo-viewfinder #customerWebcamContainer canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.customer-photo-viewfinder #customerWebcamContainer {
    overflow: hidden;
}

#customerPhotoPreview {
    object-fit: cover;
    display: none;
    z-index: 1;
}

#customerPhotoPlaceholder.customer-photo-placeholder-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Customer photo hover preview in table (tooltip-style) */
.customer-photo-hover {
    position: relative;
}
.customer-photo-preview {
    position: fixed;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
}
.customer-photo-preview.show {
    opacity: 1;
    visibility: visible;
}

/* Match form: customer photo (same behavior as Add Customer) */
.match-photo-card .position-relative.bg-dark {
    position: relative;
}
#matchWebcamContainer {
    display: none;
    min-width: 280px;
    min-height: 160px;
    z-index: 1;
}
.match-photo-card #matchWebcamContainer video,
.match-photo-card #matchWebcamContainer canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.match-photo-card #matchWebcamContainer {
    overflow: hidden;
}
#matchPhotoPlaceholder.match-photo-placeholder-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#matchCompareView{
    position: relative;
}
#matchCompareView #matchFaceCompareMessage{
    position: absolute;
    padding: 7px;
    width: 100%;
    background-color: rgb(0 0 0 / 27%);
}

/* ========================================
   Bootstrap Pagination Theme Colors (High Priority)
   ======================================== */
/* Regular Bootstrap pagination (used on shifts page and other server-side paginated pages) */
.pagination .page-item:not(.active):not(.disabled) .page-link {
    color: var(--primary) !important;
    border-color: #dee2e6 !important;
    background-color: #fff !important;
}

.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.pagination .page-item.active .page-link,
.pagination .page-item.active .page-link:focus,
.pagination .page-item.active .page-link:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2) !important;
}

.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled .page-link:hover,
.pagination .page-item.disabled .page-link:focus {
    color: #5d6d7e !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ========================================
   DataTables Pagination Theme Colors (High Priority)
   ======================================== */
/* Target Bootstrap 5 pagination structure used by DataTables Bootstrap 5 */
.dataTables_wrapper .dataTables_paginate .pagination .page-item:not(.active):not(.disabled) .page-link {
    color: var(--primary) !important;
    border-color: #dee2e6 !important;
    background-color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link:focus,
.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2) !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item.disabled .page-link,
.dataTables_wrapper .dataTables_paginate .pagination .page-item.disabled .page-link:hover,
.dataTables_wrapper .dataTables_paginate .pagination .page-item.disabled .page-link:focus {
    color: #5d6d7e !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ========================================
   Quick Action Floating Button (FAB)
   Fixed bottom-right, menu opens upward
   ======================================= */
.quick-action-fab {
    position: fixed;
    bottom: 8%;
    right: 24px;
    left: auto;
    z-index: 1020;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 12px;
}

.quick-action-fab .fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action-fab .fab-main:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.35);
}

.quick-action-fab .fab-main:active {
    transform: scale(0.98);
}

.quick-action-fab .fab-main .fab-main-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.quick-action-fab.expanded .fab-main .fab-main-icon {
    transform: rotate(45deg);
}

.quick-action-fab .fab-actions {
    display: none;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    /* Menu stacks above the main button (opens upward) */
}

.quick-action-fab.expanded .fab-actions {
    display: flex;
}

.quick-action-fab .fab-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: #2c3e50;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.9);
    transition: opacity 0.2s ease, transform 0.25s ease, box-shadow 0.2s ease;
    pointer-events: none;
}

.quick-action-fab.expanded .fab-action {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    /* Menu items animate down into place above the button */
    pointer-events: auto;
}

.quick-action-fab .fab-action:nth-child(1) { transition-delay: 0.02s; }
.quick-action-fab .fab-action:nth-child(2) { transition-delay: 0.04s; }
.quick-action-fab .fab-action:nth-child(3) { transition-delay: 0.06s; }
.quick-action-fab .fab-action:nth-child(4) { transition-delay: 0.08s; }
.quick-action-fab .fab-action:nth-child(5) { transition-delay: 0.1s; }
.quick-action-fab .fab-action:nth-child(6) { transition-delay: 0.12s; }

.quick-action-fab .fab-action:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.quick-action-fab .fab-action i {
    font-size: 1.1rem;
    color: var(--primary);
}

.quick-action-fab .fab-action-label {
    font-weight: 500;
}

@media (max-width: 768px) {
    .quick-action-fab {
        bottom: calc(var(--mobile-bottom-nav-height, 56px) + 16px);
        right: 16px;
    }
    .quick-action-fab .fab-main {
        width: 52px;
        height: 52px;
    }
    .quick-action-fab .fab-action {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}
