/* CSS Variables for theming */
:root {
    --primary-color: #3ba1f0;
    --secondary-color: #8B5CF6;
    --background-color: #FFFFFF;
    --surface-color: #F8FAFC;
    --text-primary: #182232;
    --text-secondary: #2f3235;
    --text-muted: #535e6e;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --sidebar-bg: #FFFFFF;
    --header-bg: #FFFFFF;
    --notification-badge: #EF4444;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #9dd7f5;
}

/* Force corner radius for date inputs */
input[type="date"] {
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    border-radius: 4px !important;
    -webkit-border-radius: 4px !important;
}

/* Force corner radius for filter button */
.filter-btn {
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
}

button.filter-btn {
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
}


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

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Hide horizontal scrollbar */
}

/* First-time setup modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 450px;
    width: 90%;
    max-height: 85vh;
    margin: 7.5vh auto;
    background: var(--background-color);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-light);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.modal-body {
    padding: 24px;
    max-height: 55vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    background: var(--background-color);
}

.setup-benefits {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    margin-top: 20px;
}

.setup-benefits h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.setup-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.setup-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.setup-benefits li:last-child {
    margin-bottom: 0;
}

.setup-benefits li i {
    color: var(--success-color);
    font-size: 0.8rem;
}

/* Profile form actions styling */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-actions-primary {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.form-actions-danger {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.form-actions-danger .btn {
    min-width: 160px;
}

/* Profile section styles */
.profile-info-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.profile-text-info {
    text-align: center;
}

.profile-avatar {
    width: 56px;
    height: 56px;
}

.profile-name {
    font-weight: 700;
}

.profile-role {
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 12px;
    font-size: 14px;
}

.profile-detail-label {
    color: var(--text-muted);
}

.orders-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Hide scrollbar for webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Hide scrollbar for Firefox */
html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Snackbar variants to match inventory success design */
.snackbar.success {
    background: #ECFDF5 !important; /* light green */
    color: #065F46 !important;      /* dark green text */
    border: 1px solid #A7F3D0 !important; /* mint border */
}

.snackbar.error {
    background: #FEF2F2 !important; /* light red */
    color: #991B1B !important;      /* dark red */
    border: 1px solid #FECACA !important; /* red border */
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    transition: width 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sidebar.collapsed {
    width: 72px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.sidebar-header {
    padding: 20px 24px;
}

.logo-container {
    text-align: center;
}

.logo-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--sidebar-bg);
    box-shadow: 0 4px 8px var(--shadow-color);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.shop-name {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.shop-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label {
    display: none;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 8px 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin: 1px 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 15px;
}

.nav-link:hover {
    background-color: var(--border-light);
    color: var(--text-primary);
}

.nav-item.active .nav-link {
    background-color: rgba(59, 161, 240, 0.1);
    color: var(--primary-color) !important;
}

.nav-link i {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-item.active .nav-link i {
    color: var(--primary-color) !important;
}

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

/* Sidebar Footer */
.sidebar-footer {
    padding: 0 24px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed + .main-content {
    margin-left: 72px;
}

/* Ensure customer collapsed layout also respected */
.customer-page .main-content.sidebar-collapsed {
    margin-left: 72px;
}

/* Clerk: ensure collapsed layout also respected when JS toggles class on main-content */
.main-content.sidebar-collapsed {
    margin-left: 72px;
}

/* Header */
.header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: none; /* Hidden by default on desktop */
    z-index: 1001; /* Ensure it's above other elements */
    position: relative;
}

.sidebar-toggle:hover {
    background-color: var(--border-light);
    color: var(--text-primary);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Profile Menu */
.profile-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-bell {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.notification-btn:hover {
    background-color: var(--border-light);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: var(--notification-badge);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: none; /* Hidden by default since no notifications */
    align-items: center;
    justify-content: center;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    overflow: hidden;
    position: relative;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar initials fallback */
.avatar-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    background: var(--secondary-color);
    letter-spacing: 0.5px;
}

/* Avatar camera overlay */
.avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 10px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    cursor: pointer;
}

.avatar-overlay i {
    font-size: 12px;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-name {
    font-weight: bold;
    color: var(--text-primary);
    font-size: 14px;
}

.profile-role {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background-color: var(--border-light);
    color: var(--text-primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: var(--border-light);
}

.dropdown-item i {
    width: 16px;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

.logout-item {
    color: var(--danger-color);
}

.logout-item i {
    color: var(--danger-color);
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.dashboard-content {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.welcome-section {
    text-align: center;
    padding: 40px 20px;
}

.welcome-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.welcome-section p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Sections - Hidden by default */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.notification-modal {
    background-color: var(--surface-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px var(--shadow-color);
}

.notification-modal .modal-body {
    max-height: 360px;
    overflow-y: auto;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-date-group {
    padding: 6px 8px;
    color: #6B7280;
    font-weight: 600;
    font-size: 12px;
}

.modal-header {
    padding: 20px;
    background-color: var(--border-light);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.modal-title i {
    color: var(--primary-color);
    font-size: 24px;
}

.notification-count {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 16px 20px 8px 20px;
}

.notification-list {
    padding: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: var(--border-light);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-icon.order {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.notification-icon.payment {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.notification-icon.inventory {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.notification-icon.system {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--secondary-color);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    color: var(--text-muted);
    font-size: 11px;
}

.notification-unread {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-left: 12px;
    flex-shrink: 0;
}

.modal-footer {
    padding: 16px 20px;
    background-color: var(--border-light);
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: space-between;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-text {
    background: none;
    color: var(--text-secondary);
}

.btn-text:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-muted);
}

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

.btn-danger:hover {
    background-color: #DC2626;
}

/* Add Item Modal */
.add-item-modal {
    background-color: var(--surface-color);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px var(--shadow-color);
}

.add-item-modal .modal-header {
    padding: 24px 24px 0 24px;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.add-item-modal .modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.add-item-modal .modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.add-item-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px; /* tighten label-input spacing */
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--background-color);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 150, 243, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Password input wrapper with toggle button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input,
.password-input-wrapper input {
    padding-right: 45px !important;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.password-toggle-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--primary-color);
    background: rgba(59, 161, 240, 0.1);
}

.password-toggle-btn i {
    font-size: 14px;
    pointer-events: none;
}

.add-item-modal .modal-footer {
    padding: 16px 24px 24px 24px;
    background: none;
    border-radius: 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-light);
    margin-top: 12px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1976d2;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-info:hover {
    background-color: #138496;
}

/* Logout Modal */
.logout-modal {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.logout-modal .modal-header {
    background: none;
    padding: 0 0 16px 0;
    border-radius: 0;
}

.logout-modal .modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.logout-modal .modal-body {
    padding: 0 0 24px 0;
    max-height: none;
}

.logout-modal .modal-body p {
    color: var(--text-secondary);
    font-size: 16px;
}

.logout-modal .modal-footer {
    background: none;
    padding: 0;
    border-radius: 0;
    gap: 12px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block !important; /* Show hamburger menu on mobile */
        z-index: 1001 !important;
        position: relative !important;
        pointer-events: auto !important;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.collapsed + .main-content {
        margin-left: 0;
    }
    
    .profile-info {
        display: none;
    }
    
    .notification-modal {
        width: 95%;
        margin: 20px;
    }
    
    .header {
        padding: 12px 16px;
    }
    
    .page-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .profile-menu {
        gap: 8px;
    }

    /* Small screens: keep select at 16px, options match label size */
    .customer-page #payment-method { font-size: 16px !important; }
    .customer-page #payment-method option { font-size: 14px !important; }
    .customer-page #service-type { font-size: 16px !important; }
    .customer-page #service-type option { font-size: 14px !important; }
    
    .notification-btn {
        font-size: 24px;
    }
    
    .welcome-section h2 {
        font-size: 24px;
    }
    
    .welcome-section p {
        font-size: 16px;
    }
}

.hidden {
    display: none !important;
}

/* Customer Page Responsive Tweaks */
.customer-page .main-content {
    margin-left: 0px; /* Form starts behind sidebar */
    transition: margin-left 0.3s ease;
}

.customer-page .main-content.sidebar-collapsed {
    margin-left: 0px; /* Form still behind collapsed sidebar */
}

/* Desktop layout: sidebar visible, form hidden behind sidebar */
@media (min-width: 769px) {
    .customer-page .sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        width: 260px !important;
        transform: translateX(0) !important;
        transition: width 0.3s ease !important;
        z-index: 1000 !important;
        background-color: var(--sidebar-bg) !important;
        border-right: 1px solid var(--border-color) !important;
        box-shadow: none !important;
    }
    
    .customer-page .sidebar.collapsed {
        width: 72px !important;
    }
    
    /* Show hamburger toggle on desktop */
    .customer-page .sidebar-toggle {
        display: block !important;
    }
    
    .customer-page .main-content {
        margin-left: 0px !important;
        height: 100vh !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Desktop form layout improvements */
    .customer-page .form-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .customer-page .form-group {
        margin-bottom: 16px !important;
    }
    
    /* Better desktop title styling */
    .customer-page .section-title {
        font-size: 28px !important;
        margin-bottom: 32px !important;
        font-weight: 600 !important;
    }
    
    .customer-page .service-type-section {
        margin-bottom: 16px !important;
    }
    
    .customer-page .quick-service-select {
        margin-bottom: 16px !important;
    }
    
    /* Keep page title visible on desktop */
    .customer-page .page-title {
        display: block !important;
    }
    
    /* Ensure header is sticky on desktop */
    .customer-page .header {
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        background-color: var(--header-bg, #ffffff) !important;
        border-bottom: 1px solid var(--border-color, #e5e7eb) !important;
        flex-shrink: 0 !important;
        width: 100% !important;
    }
    
    .customer-page .page-content {
        padding: 12px !important;
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    .customer-page .order-management-section {
        padding: 24px !important;
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .customer-page .form-container {
        padding: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }
    
    /* Reduce excessive whitespace */
    .customer-page .section-header {
        margin-bottom: 0px !important;
    }
    
    .customer-page .modal-footer {
        margin-top: 24px !important;
        padding-top: 20px !important;
    }
}

.customer-new-order-link {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Account info styles for login page */
.account-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.account-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-avatar .avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar .avatar-initials {
    color: white;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-details {
    flex: 1;
}

.account-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.account-email {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Login form styles */
.login-form {
    margin: 20px 0;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.login-form .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background-color: var(--background-color);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-form .form-input::placeholder {
    color: var(--text-muted);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.login-divider span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 14px;
    background-color: var(--background-color);
}

/* Login logo section styles */
.login-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
    padding: 20px 0;
}

.logo-circle-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 4px solid var(--border-light);
}

.logo-image-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text-section {
    max-width: 300px;
}

.shop-name-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.shop-subtitle-large {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .login-logo-section {
        margin-bottom: 24px;
        padding: 16px 0;
    }
    
    .logo-circle-large {
        width: 100px;
        height: 100px;
        margin-bottom: 16px;
    }
    
    .shop-name-large {
        font-size: 20px;
    }
    
    .shop-subtitle-large {
        font-size: 13px;
    }
}

/* Customer order tabs */
.order-tabs { display:flex; gap:8px; margin-bottom:12px; }
.order-tab {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: var(--background-color);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.order-tab.active { border-color: var(--primary-color); color: var(--primary-color); background: rgba(59, 161, 240, 0.08); box-shadow: inset 0 -2px 0 var(--primary-color); }

/* Global mobile fixes */
.customer-page {
    overflow-x: hidden;
    width: 100vw;
}

.customer-page * {
    max-width: 100%;
    box-sizing: border-box;
}

.customer-page .app-container {
    width: 100%;
    overflow-x: hidden;
}

.customer-page .main-content {
    width: 100%;
    margin-left: 0;
    overflow-x: hidden;
}

/* Page content height fix for scrollable forms */
.customer-page .page-content {
    height: calc(100vh - 60px);
    overflow: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Form field spacing */
.customer-page .address-field {
    margin-top: 10px;
}

.customer-page .service-type-section {
    margin-top: 14px;
}

/* Scroll Navigation - HIDDEN */
.scroll-nav {
    display: none !important;
}

.scroll-nav-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
}

.scroll-nav-item:last-child {
    margin-bottom: 0;
}

.scroll-nav-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.scroll-nav-item i {
    font-size: 16px;
    color: var(--text-secondary);
}

.scroll-nav-item:hover i {
    color: white;
}

/* Filter Dropdown */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-toggle:hover {
    background: var(--border-light);
    border-color: var(--primary-color);
}

.filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    overflow: hidden;
}

.filter-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.filter-option:hover {
    background: var(--border-light);
}

.filter-option.active {
    background: var(--primary-color);
    color: white;
}

/* Order Cards Layout */
.orders-cards-container {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.order-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.order-id {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.order-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.order-card-content {
    margin-bottom: 12px;
}

.order-service {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-qty {
    font-size: 14px;
    color: var(--text-secondary);
}

.order-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.click-hint {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
}

.click-hint i {
    font-size: 10px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.in-progress {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.completed {
    background-color: #d1fae5;
    color: #065f46;
}

/* Select dropdown arrow */
.form-select,
.customer-page select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 14px !important;
}

/* Service Quick Buttons Styling */
.customer-page .service-quick-btn {
    background-image: none !important;
    padding: 12px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.customer-page .service-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.customer-page .service-quick-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid #000000 !important;
    border-color: #000000 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

/* Individual service button colors - Match clerk form gradients */
.customer-page .service-quick-btn[data-service-name="Prints/Xerox"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: white !important;
}

.customer-page .service-quick-btn[data-service-name="Tarpaulins"] {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    border-color: #11998e !important;
    color: white !important;
}

.customer-page .service-quick-btn[data-service-name="Shirts"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border-color: #f093fb !important;
    color: white !important;
}

.customer-page .service-quick-btn[data-service-name="Stickers"] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    border-color: #fa709a !important;
    color: white !important;
}

.customer-page .service-quick-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: white !important;
}

.customer-page .service-quick-btn span {
    font-size: 14px;
    font-weight: 600;
    color: white !important;
}

.customer-page .quick-service-select {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.customer-page .service-dropdown-label {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 6px;
    display: block;
}

/* Scrollable form container */
.scrollable-form {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.scrollable-form .section-header {
    flex-shrink: 0;
    padding: 0 0 20px 0;
}

.scrollable-form .form-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-right: -8px;
}

/* Custom scrollbar */
.form-container::-webkit-scrollbar {
    width: 8px;
}

.form-container::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

.form-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.form-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide scroll navigation on mobile */
    .scroll-nav {
        display: none !important;
    }
    
    .customer-page .app-container {
        width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    .customer-page .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        background-color: var(--sidebar-bg);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .customer-page .sidebar.show {
        transform: translateX(0);
    }
    
    /* Ensure sidebar text is visible on mobile */
    .customer-page .sidebar .nav-label {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .customer-page .sidebar .logo-text {
        display: block !important;
    }
    
    .customer-page .main-content {
        width: 100%;
        margin-left: 0;
        padding: 0;
    }
    
    .customer-page .header { 
        position: sticky;
        top: 0;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        z-index: 100;
        background-color: var(--header-bg, #ffffff);
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }
    
    .customer-page .page-content {
    padding: 12px 12px calc(120px + env(safe-area-inset-bottom, 0px)) 12px; /* Extra bottom padding for mobile browser UI */
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto; /* Allow scrolling */
        margin: 0;
    height: calc(100vh - 80px + env(safe-area-inset-bottom, 0px)); /* Account for header and safe area */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .customer-page .order-management-section {
        padding: 12px 12px calc(80px + env(safe-area-inset-bottom, 0px)) 12px; /* Extra bottom padding for scrolling */
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0;
        min-height: auto; /* Allow content to flow */
    }
    
    .customer-page .order-management-section .section-header {
        display: block;
        padding: 0 0 12px 0; /* reduce bottom spacing */
        width: 100%;
        box-sizing: border-box;
    }
    
    .customer-page .section-title {
        font-size: 16px;
        margin-bottom: 4px; /* a bit tighter */
        word-wrap: break-word;
    }
    
    .customer-page .section-subtitle {
        font-size: 12.5px;
        word-wrap: break-word;
    }
    
    .customer-page .form-container {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: visible; /* Allow content to expand */
        max-height: none; /* Remove any height restrictions */
    }
    
    .customer-page .form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px; /* tighten field gaps */
        width: 100%;
        box-sizing: border-box;
    }
    
    .customer-page .form-group {
        width: 100%;
        box-sizing: border-box;
    }
    
    .customer-page .form-input,
    .customer-page .form-select,
    .customer-page .form-textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 10px 12px; /* consistent input padding */
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }

    /* Make dropdown OPTION text same size as form label on mobile */
    .customer-page #payment-method option,
    .customer-page #service-type option {
        font-size: 14px !important;
    }
    
    .customer-page .quick-service-select {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    .customer-page .service-quick-btn {
        padding: 8px;
        font-size: 13px;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        border: 2px solid;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .customer-page .service-quick-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .customer-page .service-quick-btn.active {
        border: 3px solid #000000 !important;
        border-color: #000000 !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
        transform: translateY(-2px) scale(1.02) !important;
    }
    
    .customer-page .service-quick-btn i {
        font-size: 20px;
        margin-bottom: 6px;
        color: white !important;
    }
    
    .customer-page .service-quick-btn span {
        font-size: 12px;
        line-height: 1.3;
        color: white !important;
        font-weight: 600;
    }
    
    /* Mobile service button colors - Match clerk form gradients */
    .customer-page .service-quick-btn[data-service-name="Prints/Xerox"] {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border-color: #667eea !important;
        color: white !important;
    }
    
    .customer-page .service-quick-btn[data-service-name="Tarpaulins"] {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
        border-color: #11998e !important;
        color: white !important;
    }
    
    .customer-page .service-quick-btn[data-service-name="Shirts"] {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
        border-color: #f093fb !important;
        color: white !important;
    }
    
    .customer-page .service-quick-btn[data-service-name="Stickers"] {
        background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
        border-color: #fa709a !important;
        color: white !important;
    }
    
    .customer-page .modal-footer {
        flex-direction: column;
        gap: 8px; /* slightly reduced spacing */
        width: 100%;
        box-sizing: border-box;
    }
    
    .customer-page .modal-footer .btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .customer-page .profile-menu {
        gap: 8px;
    }
    
    .customer-page .profile-info {
        display: none;
    }
    
    /* Hide scroll nav on mobile */
    .scroll-nav {
        display: none;
    }
}

/* iPhone and small Android phones */
@media (max-width: 480px) {
    .customer-page .app-container {
        width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    .customer-page .sidebar {
        width: 280px;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        background-color: var(--sidebar-bg);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .customer-page .sidebar.show {
        transform: translateX(0);
    }
    
    /* Ensure sidebar text is visible on mobile */
    .customer-page .sidebar .nav-label {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .customer-page .sidebar .logo-text {
        display: block !important;
    }
    
    .customer-page .main-content {
        width: 100%;
        margin-left: 0;
        padding: 0;
    }
    
    .customer-page .header {
        padding: 10px;
    }
    
    .customer-page .header-left h1 {
        font-size: 16px;
    }
    
    .customer-page .page-content {
        padding: 8px 8px calc(104px + env(safe-area-inset-bottom, 0px)) 8px;
    }
    
    .customer-page .order-management-section {
        padding: 12px 12px calc(72px + env(safe-area-inset-bottom, 0px)) 12px;
        margin: 0;
    }
    
    .customer-page .section-title {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .customer-page .section-subtitle {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .customer-page .form-container {
        padding-right: 0;
        margin-right: 0;
    }
    
    .customer-page .quick-service-select {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .customer-page .service-quick-btn {
        padding: 6px;
        font-size: 12px;
        min-height: 60px; /* Apple HIG minimum touch target */
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 2px solid;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }
    
    .customer-page .service-quick-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .customer-page .service-quick-btn i {
        font-size: 18px;
        margin-bottom: 4px;
        color: white !important;
    }
    
    .customer-page .service-quick-btn span {
        font-size: 11px;
        line-height: 1.2;
        color: white !important;
        font-weight: 600;
    }
    
    /* Small screen service button colors - Match clerk form gradients */
    .customer-page .service-quick-btn[data-service-name="Prints/Xerox"] {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border-color: #667eea !important;
        color: white !important;
    }
    
    .customer-page .service-quick-btn[data-service-name="Tarpaulins"] {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
        border-color: #11998e !important;
        color: white !important;
    }
    
    .customer-page .service-quick-btn[data-service-name="Shirts"] {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
        border-color: #f093fb !important;
        color: white !important;
    }
    
    .customer-page .service-quick-btn[data-service-name="Stickers"] {
        background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
        border-color: #fa709a !important;
        color: white !important;
    }
    
    /* Small screen active state */
    .customer-page .service-quick-btn.active {
        border: 3px solid #000000 !important;
        border-color: #000000 !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
        transform: translateY(-2px) scale(1.02) !important;
    }
    
    .customer-page .form-label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .customer-page .form-input,
    .customer-page .form-select,
    .customer-page .form-textarea {
        font-size: 16px !important;
        padding: 12px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .customer-page .btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px; /* Apple HIG minimum touch target */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix iOS date picker */
    .customer-page input[type="date"] {
        min-height: 44px;
    }
    
    /* Touch-friendly file upload */
    .customer-page .file-upload-label {
        min-height: 80px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        padding: 16px;
        text-align: center;
    }
    
    /* Make sure text doesn't overflow */
    .customer-page .form-input,
    .customer-page .form-select,
    .customer-page .form-textarea {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* iOS Safari specific */
@supports (-webkit-touch-callout: none) {
    .customer-page .page-content {
        height: calc(100vh - 60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }
    
    .customer-page .sidebar {
        padding-left: env(safe-area-inset-left, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .customer-page .header {
        padding-left: calc(16px + env(safe-area-inset-left));
        padding-right: calc(16px + env(safe-area-inset-right));
        padding-top: calc(10px + env(safe-area-inset-top));
    }
    
    .customer-page .form-input:focus,
    .customer-page .form-select:focus,
    .customer-page .form-textarea:focus {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Fix for notched phones */
    .customer-page .modal-footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* Android Chrome specific */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 480px) {
    .customer-page .form-container {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .customer-page .page-title {
        font-size: 24px;
    }
    .customer-page .section-title {
        font-size: 16px;
    }
    .customer-page .add-item-form .form-group input,
    .customer-page .add-item-form .form-group select,
    .customer-page .add-item-form .form-group textarea {
        font-size: 16px; /* Improve tap targets on iOS/Android */
    }
    
    /* Better padding for very small screens */
    .customer-page .auth-card {
        padding: 1.25rem 1rem !important;
    }
    
    /* Adjust logo size for very small screens */
    .customer-page .logo-circle-large {
        width: 90px !important;
        height: 90px !important;
    }
    
    .customer-page .shop-name-large {
        font-size: 18px !important;
    }
    
    .customer-page .shop-subtitle-large {
        font-size: 12px !important;
    }
}

/* Theming parity for customer pages */
/* auth-card kept for login screens; order page expanded to full width container */

.customer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.stack-gap { display: flex; flex-direction: column; gap: 12px; }
.form-gap { gap: 12px; }
.center-btn { justify-content: center; }
.full-btn { width: 100%; justify-content: center; }
.stretch { justify-content: stretch; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.divider-row { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.divider-line { height: 1px; background: var(--border-color); flex: 1; }
.otp-input-row { display: flex; gap: 8px; }
.otp-code-input { flex: 1; text-align: center; letter-spacing: 6px; }

/* Match admin/clerk look for cards/sections */
.auth-card .section-header .section-title { color: var(--text-primary); }
.auth-card .section-header .section-subtitle { color: var(--text-secondary); }

/* Limit auth card width on desktop to prevent overly wide forms */
@media (min-width: 769px) {
    .auth-card {
        max-width: 450px;
        margin: 0 auto;
        padding: 2rem !important;
    }
    
    /* Ensure page content doesn't get too wide on login page */
    .customer-page .page-content {
        max-width: 500px;
        margin: 0 auto;
        padding: 2rem;
    }
}

/* Google Sign-up Button Styling */
#signup-google {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#signup-google:hover {
    background-color: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

#signup-google:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#signup-google svg {
    flex-shrink: 0;
}

/* Forgot Password Link */
.forgot-password-section {
    text-align: center;
    margin: 16px 0;
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #1976d2;
    text-decoration: underline;
}

/* Success Notification Styles */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 350px;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.success-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.notification-message {
    flex: 1;
}

.notification-message h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.notification-message p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #6b7280;
}

/* Delete Account Modal Styles */
.delete-modal {
    max-width: 300px;
    width: auto;
    padding: 30px 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border-radius: 8px;
}

.warning-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fef3cd;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-bottom: 20px;
}

.warning-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.warning-text h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
}

.warning-text p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.4;
}

.confirmation-question {
    margin-bottom: 20px;
}

.confirmation-question p {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}


.delete-modal .modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-direction: row;
    border-top: none;
    padding: 0;
    margin: 0;
}

.delete-modal .btn-white {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-weight: 500;
    padding: 8px 16px;
    min-width: 60px;
}

.delete-modal .btn-white:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.delete-modal .btn-green {
    background: #10b981;
    border: 2px solid #10b981;
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    min-width: 60px;
}

.delete-modal .btn-green:hover {
    background: #059669;
    border-color: #059669;
}

/* Error Message Styles */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.error-message i {
    color: #dc2626;
    font-size: 16px;
}

.error-message.hidden {
    display: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: var(--surface-color);
}

.modal-body {
    padding: 24px;
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
}

/* Responsive Modal */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header,
    .modal-body {
        padding: 16px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* Profile Form Styles */
.profile-form {
    margin-top: 0px;
}

.form-section {
    margin-bottom: 32px;
    padding: 12px 20px 20px 20px;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-section-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    flex: 1;
}

/* Profile Stats */
.profile-stats {
    margin-top: 32px;
    padding: 20px;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stats-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Profile Avatar Overlay */
.profile-info-container .profile-avatar {
    position: relative;
}

.profile-info-container .avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px;
    font-size: 10px;
    text-align: center;
    border-radius: 0 0 50px 50px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.profile-info-container .profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.profile-info-container .avatar-overlay i {
    font-size: 12px;
}

/* Responsive Profile Form */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-section {
        padding: 16px;
    }
}

/* Clerk: add spacing from header for New Job Orders page */
#new-job-orders-page .order-list-section {
    margin-top: 24px;
}

/* Job Orders page spacing and fixed layout */
#job-orders-page .order-list-section {
    margin-top: 2rem;
    height: calc(100vh - 120px); /* Fixed height for the white box */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent the entire section from scrolling */
}


/* Dashboard Overview Styles */
.dashboard-overview-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--background-color);
    min-height: calc(100vh - 100px);
}

/* Add spacing between major sections */
.metrics-grid {
    margin-bottom: 16px;
}

.insights-section {
    margin-bottom: 16px;
}

.recent-orders-section {
    margin-bottom: 16px;
}

.chart-section {
    margin-bottom: 16px;
}

.section-header {
    margin-bottom: 12px;
}

.section-title {
    display: none;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.metric-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2196f3, #f44336, #ffc107, #4caf50);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 67, 54, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.metric-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card:hover::after {
    opacity: 1;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.metric-info {
    flex: 1;
}

.metric-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-card .metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2196f3 0%, #f44336 33%, #ffc107 66%, #4caf50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
    transition: all 0.3s ease;
}

.metric-card:hover .metric-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.metric-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
}

.metric-trend.positive {
    color: var(--success-color);
}

.metric-trend.negative {
    color: var(--danger-color);
}

.metric-trend.neutral {
    color: var(--text-muted);
}

.metric-trend i {
    font-size: 12px;
}

/* Insights Section */
.insights-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.insight-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.insight-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.insight-card.peak-hours {
    border-left: 4px solid #3B82F6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.insight-card.resource-optimization {
    border-left: 4px solid #F59E0B;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.insight-card.inventory-alert {
    border-left: 4px solid #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.peak-hours .insight-icon {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.resource-optimization .insight-icon {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.inventory-alert .insight-icon {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.insight-card.no-data {
    border-left: 4px solid #6B7280;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.05) 0%, rgba(107, 114, 128, 0.02) 100%);
}

.no-data .insight-icon {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6B7280;
}

/* Table no-data message styling */
.orders-table .no-data {
    text-align: center;
    padding: 60px 20px !important;
    background: linear-gradient(135deg, rgba(59, 161, 240, 0.03) 0%, rgba(139, 92, 246, 0.02) 100%);
    border: none;
}

.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.no-data-message i {
    font-size: 48px;
    color: rgba(59, 161, 240, 0.3);
    margin-bottom: 8px;
}

.no-data-message p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Delete button styling for sales transactions */
.btn-delete {
    background-color: #dc2626 !important;
    border: none !important;
    border-radius: 6px !important;
    color: white !important;
    padding: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Force rounded corners for delete buttons */
button.btn-delete,
.delete-transaction-btn,
button[class*="delete"] {
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
    background-color: #dc2626 !important;
    color: white !important;
    border: none !important;
}

.btn-delete:hover {
    background-color: #b91c1c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.btn-delete:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-delete i {
    font-size: 14px;
}

/* Sales transaction row hover effect */
.sales-transaction-row:hover {
    background-color: #f3f4f6 !important;
    cursor: pointer;
}

.sales-transaction-row:hover td {
    background-color: transparent;
}

.insight-content {
    flex: 1;
}

.insight-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.insight-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

/* Recent Orders Section */
.recent-orders-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

/* Job Orders Page Styles */
.order-management-section {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: none;
}

.order-management-section .section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.order-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--background-color);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.filter-container {
    min-width: 150px;
}

.filter-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--background-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.order-list-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-list-section .section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.orders-table-container {
    overflow-x: auto;
    margin-top: 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
}

/* Job Orders page specific table container - make it scrollable */
#job-orders-page .orders-table-container {
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Allow vertical scrolling for table rows */
    overflow-x: hidden; /* Hide horizontal scroll */
    margin-top: 0; /* Remove top margin since we're using flex */
    border-radius: 0; /* Remove border radius to match the fixed header */
    border-top: none; /* Remove top border since it connects to the fixed header */
}

/* Job Orders page search and filter section - keep it fixed */
#job-orders-page .search-and-filter {
    flex-shrink: 0; /* Don't shrink the search section */
    margin-bottom: 1rem; /* Add some space below search */
}

/* Force the job orders section header to use flexbox layout */
#job-orders-page .order-list-section .section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
    margin-bottom: 0.5rem !important;
}

/* Force the search and filter container to be on the right */
#job-orders-page .order-list-section .search-and-filter {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    margin: 0 !important;
}

#job-orders-page .order-list-section .priority-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #FEF3C7;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #92400E;
}

#job-orders-page .order-list-section .priority-legend .priority-indicator {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: #F59E0B;
}

/* Make sure the Order List title is visible */
#job-orders-page .order-list-section .section-title {
    display: block !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0 !important;
}

/* Sales Transactions Date Range Picker Styles */
#sales-transactions-page .section-title {
    display: block !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0 !important;
}

/* Remove border radius from sales transactions table */
#sales-transactions-page .orders-table-container {
    border-radius: 0 !important;
}

#sales-transactions-page .fixed-table-header {
    border-radius: 0 !important;
    border-bottom: 2.5px solid #e0e0e1 !important;
    font-size: 12px !important;
}

#sales-transactions-page .orders-table {
    border-radius: 0 !important;
    font-size: 14px !important;
}

#sales-transactions-page .orders-table tbody tr {
    font-size: 14px !important;
}

#sales-transactions-page .orders-table tbody td {
    font-size: 14px !important;
}

#sales-transactions-page .orders-table tbody tr td {
    font-size: 14px !important;
}

#sales-transactions-page .order-list-section {
    border-radius: 12px !important;
    overflow: hidden;
}

#sales-transactions-page .order-list-section * {
    border-radius: 0 !important;
}

.date-range-picker {
    /* Removed background, border, border-radius, padding, and box-shadow */
}

.date-input {
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #374151 !important;
    background: white !important;
}

.date-input:focus {
    outline: none !important;
    border-color: #3ba1f0 !important;
    box-shadow: 0 0 0 3px rgba(59, 161, 240, 0.1) !important;
}

.quick-filter-buttons .filter-btn {
    transition: all 0.2s ease;
}

.quick-filter-buttons .filter-btn:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

.quick-filter-buttons .filter-btn.active {
    background: #3ba1f0 !important;
    color: white !important;
    border-color: #3ba1f0 !important;
}

/* Add border radius to dashboard new orders section */
#dashboard-new-orders {
    border-radius: 12px !important;
}

/* Make New Job Orders title visible */
#dashboard-new-orders .section-title {
    display: block !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin-bottom: 16px !important;
}

/* Force the dashboard new orders section header to use flexbox layout */
#dashboard-new-orders .section-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
    margin-bottom: 0.5rem !important;
}

/* Force the search and filter container to be on the right */
#dashboard-new-orders .search-and-filter {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Priority legend styling for dashboard new orders */
#dashboard-new-orders .priority-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #FEF3C7;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #92400E;
}

#dashboard-new-orders .priority-legend .priority-indicator {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: #F59E0B;
}

/* Sticky header for new job orders table */
#dashboard-new-orders .orders-table-container {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0 !important;
}

#dashboard-new-orders .orders-table thead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#dashboard-new-orders .orders-table thead th {
    background: var(--background-color) !important;
    position: sticky;
    top: 0;
    z-index: 21;
    padding: 12px 8px;
    font-size: 11px;
    line-height: 1.2;
    border-bottom: 1px solid var(--border-color);
}

/* Custom scrollbar for new job orders table */
#dashboard-new-orders .orders-table-container::-webkit-scrollbar {
    width: 12px;
    height: 8px;
}

#dashboard-new-orders .orders-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

#dashboard-new-orders .orders-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

#dashboard-new-orders .orders-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Force scrollbar to be visible - using webkit scrollbar styles above for compatibility */

/* Ensure proper table display for scrolling */
#dashboard-new-orders .orders-table {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0 !important;
}

/* Make sure tbody can scroll while thead stays fixed */
#dashboard-new-orders .orders-table tbody {
    display: block;
    overflow-y: auto;
    max-height: 300px;
}

#dashboard-new-orders .orders-table thead,
#dashboard-new-orders .orders-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border-radius: 0 !important;
}

.orders-table thead tr {
    background-color: var(--background-color) !important;
}

.orders-table .table-header th,
.orders-table thead th,
.orders-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary) !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--background-color) !important;
    border-bottom: 1px solid var(--border-color);
}

.orders-table .table-row {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.orders-table .table-row:hover {
    background-color: rgba(33, 150, 243, 0.05);
}

/* High priority row styling for 20+ quantity orders */
.orders-table .high-priority-row {
    background-color: #FEF3C7 !important;
    border-left: 0 !important;
    position: relative;
}

.orders-table .high-priority-row:hover {
    background-color: #FDE68A !important;
}

.orders-table .table-cell {
    padding: 10px 8px;
    color: var(--text-primary);
    font-size: 12px;
    vertical-align: middle;
}

/* New Job Orders column sizing - FIXED ALIGNMENT */
#dashboard-new-orders .orders-table {
    table-layout: fixed;
    width: 100%;
}

/* Normalize cell padding to align with header left offset */
#dashboard-new-orders .orders-table .table-row .table-cell {
    padding-left: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Column 1: ORDER ID */
#dashboard-new-orders .orders-table thead th:nth-child(1),
#dashboard-new-orders .orders-table .table-row .table-cell:nth-child(1) { 
    width: 16%; 
    text-align: left;
    padding-left: 0 !important;
}

/* Column 2: CUSTOMER NAME */
#dashboard-new-orders .orders-table thead th:nth-child(2),
#dashboard-new-orders .orders-table .table-row .table-cell:nth-child(2) { 
    width: 15%; 
    text-align: left;
    padding-left: 35px !important;
}

/* Column 3: SERVICE TYPE */
#dashboard-new-orders .orders-table thead th:nth-child(3),
#dashboard-new-orders .orders-table .table-row .table-cell:nth-child(3) { 
    width: 12%; 
    text-align: left;
    padding-left: 8px !important;
    padding-right: 10px !important;
}

/* Column 4: QUANTITY */
#dashboard-new-orders .orders-table thead th:nth-child(4) { 
    width: 8%; 
    text-align: left;
}

#dashboard-new-orders .orders-table .table-row .table-cell:nth-child(4) { 
    width: 8% !important; 
    text-align:center !important;
    padding: 6px 20px 6px 16px !important;
    padding-top: 6px !important;
    padding-right: 60px !important;
    padding-bottom: 6px !important;
    padding-left: 16px !important;
}

/* Column 5: PAYMENT METHOD */
#dashboard-new-orders .orders-table thead th:nth-child(5) { 
    width: 12%; 
    text-align: left;
}

#dashboard-new-orders .orders-table .table-row .table-cell:nth-child(5) { 
    width: 12% !important; 
    text-align: left !important;
    padding-top: 6px !important;
    padding-right: 40px !important;
    padding-bottom: 6px !important;
    padding-left: 20px !important;
}

/* Column 6: SET PRICE */
#dashboard-new-orders .orders-table thead th:nth-child(6) { 
    width: 12%; 
    text-align: left;
}

#dashboard-new-orders .orders-table .table-row .table-cell:nth-child(6) { 
    width: 12%; 
    text-align: right;
    padding: 6px 8px 6px 16px !important;
    padding-right: 16px !important;
}

/* Column 7: DETAILS */
#dashboard-new-orders .orders-table thead th:nth-child(7) { 
    width: 10%; 
    text-align: left;
}

#dashboard-new-orders .orders-table .table-row .table-cell:nth-child(7) { 
    width: 10% !important; 
    text-align: right !important;
    padding: 6px 8px 6px 8px !important;
    padding-top: 6px !important;
    padding-right: 8px !important;
    padding-bottom: 6px !important;
    padding-left: 20px !important;
}

/* Column 8: ACTIONS */
#dashboard-new-orders .orders-table thead th:nth-child(8),
#dashboard-new-orders .orders-table .table-row .table-cell:nth-child(8) { 
    width: 15%; 
    text-align: left;
    white-space: nowrap;
    padding-left: 8px !important;
}

/* Inputs inside New Job Orders table */
#dashboard-new-orders .orders-table input.form-input { 
    width: 60px !important; 
    padding: 6px 4px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    text-align: left !important;
    max-width: 60px !important;
    min-width: 60px !important;
}
#dashboard-new-orders .orders-table select.form-select { min-width: 120px; }

/* Align action buttons row - Clean Design */
#dashboard-new-orders .orders-table .action-buttons { 
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

#dashboard-new-orders .orders-table .action-buttons .btn { 
    margin: 0;
    padding: 4px 6px;
    font-size: 10px;
    white-space: nowrap;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dashboard-new-orders .orders-table .action-buttons .approve-btn {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

#dashboard-new-orders .orders-table .action-buttons .approve-btn:hover {
    background-color: #dee2e6;
}

#dashboard-new-orders .orders-table .action-buttons .reject-btn {
    background-color: #dc3545;
    color: white;
}

#dashboard-new-orders .orders-table .action-buttons .reject-btn:hover {
    background-color: #c82333;
}

/* Details button styling */
#dashboard-new-orders .orders-table .details-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    justify-content: center;
    margin: 0 auto;
    width: fit-content;
}

#dashboard-new-orders .orders-table .details-btn:hover {
    background-color: #138496;
}

/* Order Details Modal Styling */
.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
}

.order-details-grid .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-details-grid .detail-item.full-width {
    grid-column: 1 / -1;
}

.order-details-grid .detail-item label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.order-details-grid .detail-item span {
    color: #6c757d;
    font-size: 14px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.status-badge.in-progress {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.pending {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-badge.cancelled {
    background-color: #FEE2E2; /* light red background */
    color: #B91C1C; /* red text like admin */
}

/* Inventory Page Styles */
.inventory-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.add-item-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.add-item-btn:hover {
    background-color: #1976d2;
}

.add-item-btn i {
    font-size: 12px;
}

.inventory-table-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Sticky Inventory Table Header */
.inventory-table-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    border-radius: 0;
    border: 1px solid #E5E7EB;
    border-bottom: none;
}

.inventory-header-row {
    display: flex;
    background: rgb(251, 251, 251);
    border-bottom: 1px solid #E5E7EB;
}

.inventory-header-cell {
    padding: 12px 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.inventory-header-cell:first-child {
    justify-content: flex-start;
    padding-left: 39px;
}

.inventory-header-cell:last-child {
    justify-content: flex-end;
    padding-right: 80px;
}

.inventory-table-container {
    overflow-x: auto;
    border-radius: 0;
    border: 1px solid #E5E7EB;
    border-top: none;
    height: 480px;
    overflow-y: auto;
}

.table-container {
    overflow-x: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inventory-table .table-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid var(--primary-color);
}

.inventory-table .table-header th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Column widths for 6 columns - optimized for inventory with analytics */
.inventory-table .table-header th:nth-child(1) { width: 30% !important; } /* Item Name */
.inventory-table .table-header th:nth-child(2) { width: 12% !important; } /* Stock */
.inventory-table .table-header th:nth-child(3) { width: 12% !important; text-align: center !important; } /* Orders Done */
.inventory-table .table-header th:nth-child(4) { width: 18% !important; } /* Last Updated */
.inventory-table .table-header th:nth-child(5) { width: 13% !important; } /* Status */
.inventory-table .table-header th:nth-child(6) { 
    width: 15% !important; 
    text-align: right !important; 
    padding-right: 24px !important; 
} /* Actions */

.inventory-table tbody td:nth-child(1) { width: 30% !important; } /* Item Name */
.inventory-table tbody td:nth-child(2) { width: 12% !important; } /* Stock */
.inventory-table tbody td:nth-child(3) { width: 12% !important; text-align: center !important; } /* Orders Done */
.inventory-table tbody td:nth-child(4) { width: 18% !important; } /* Last Updated */
.inventory-table tbody td:nth-child(5) { width: 13% !important; } /* Status */
.inventory-table tbody td:nth-child(6) { 
    width: 15% !important; 
    padding-right: 24px !important;
    white-space: nowrap !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
} /* Actions */

/* Actions column button styling */
.inventory-table tbody td:nth-child(6) .btn {
    margin: 0 !important;
}

.inventory-table .table-row {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    display: flex;
}

.inventory-table .table-row:hover {
    background-color: rgba(33, 150, 243, 0.05);
}

.inventory-table .table-cell {
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 12px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    vertical-align: middle;
}

/* Column widths and alignment for table cells */
.inventory-table .table-cell:nth-child(1) { 
    width: 16.67%; 
    text-align: left;
    font-weight: 500;
} /* Item Name */

.inventory-table .table-cell:nth-child(2) { 
    width: 16.67%; 
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
} /* Stock */

/* Orders Done column styling */
.inventory-table tbody td:nth-child(3) span {
    color: #059669;
    font-weight: 600;
    font-size: 13px;
}

/* Status badge styling for inventory */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.in-stock {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.status-badge.low-stock {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.status-badge.out-of-stock {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* Category badge styling */
.category-badge {
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #E0E7FF;
    color: #3730A3;
    border: 1px solid #C7D2FE;
}

.inventory-table .empty-orders {
    border-bottom: none;
}

.inventory-table .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.inventory-table .empty-state .empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.inventory-table .empty-state h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.inventory-table .empty-state p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Payments Page Styles */
.payment-form-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-form-section .section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px; /* unify input padding globally */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--background-color);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 150, 243, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input[readonly] {
    background-color: var(--border-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.payment-history-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-history-section .section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.payment-table-container {
    overflow-x: auto;
    margin-top: 16px;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.payment-table .table-header {
    background-color: var(--background-color);
    border-bottom: 2px solid var(--border-color);
}

.payment-table .table-header th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.payment-table .table-row {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.payment-table .table-row:hover {
    background-color: rgba(33, 150, 243, 0.05);
}

.payment-table .table-cell {
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 12px;
    white-space: nowrap;
}

.payment-table .empty-orders {
    border-bottom: none;
}

/* Analytics Styles */
.analytics-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Business Intelligence Styles */
.business-intelligence-section,
.service-performance-section,
.advanced-analytics-section,
.business-insights-section {
    background: linear-gradient(145deg, var(--background-color) 0%, var(--surface-color) 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.business-intelligence-section::before,
.service-performance-section::before,
.advanced-analytics-section::before,
.business-insights-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EF4444, #F59E0B, #10B981);
}

/* Analytics header: keep title and period on one line and draw full-width underline */
.advanced-analytics-section .analytics-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.advanced-analytics-section .analytics-header .subsection-title {
    margin: 0; /* keep underline flush to header border */
}

/* Remove the thin gray underline directly under the Analytics text */
.advanced-analytics-section .subsection-title {
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
    text-decoration: none !important;
}
.advanced-analytics-section .subsection-title::after {
    display: none !important;
}

.advanced-analytics-section .analytics-header .analytics-period-control select {
    height: 2.25rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem; /* extra right padding for arrow */
    min-width: 180px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 16px 16px;
}

.advanced-analytics-section .analytics-header .analytics-period-control select:hover {
    border-color: var(--primary-color);
}

.advanced-analytics-section .analytics-header .analytics-period-control select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.advanced-analytics-section .analytics-header .analytics-period-control span {
    font-weight: 600;
    color: var(--text-primary);
}

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

.kpi-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 12px 12px 0 0;
}

.kpi-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.kpi-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.kpi-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.kpi-change.positive {
    color: var(--success-color);
}

.kpi-change.negative {
    color: var(--danger-color);
}

.kpi-change.neutral {
    color: var(--text-muted);
}

/* Service Performance Grid */
.service-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-metrics-grid .service-metric-card:nth-child(4),
.service-metrics-grid .service-metric-card:nth-child(5) {
    grid-column: span 1;
}

.service-metrics-grid .service-metric-card:nth-child(4) {
    grid-column: 1;
}

.service-metrics-grid .service-metric-card:nth-child(5) {
    grid-column: 2;
}

/* Medium screens - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .service-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-metrics-grid .service-metric-card:nth-child(3) {
        grid-column: span 2;
    }
    
    .service-metrics-grid .service-metric-card:nth-child(4),
    .service-metrics-grid .service-metric-card:nth-child(5) {
        grid-column: span 1;
    }
}

.service-metric-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.service-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 12px 12px 0 0;
}

.service-metric-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2196f3 0%, #f44336 33%, #ffc107 66%, #4caf50 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.service-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.service-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.service-trend {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--border-light);
}

.trend-indicator.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.trend-indicator.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.trend-indicator.neutral {
    background: var(--border-light);
    color: var(--text-muted);
}

/* Analytics Controls */
.analytics-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--border-light);
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Keep analytics header controls in one line next to title */
.advanced-analytics-section .analytics-header .control-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.control-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 150px;
    height: 2.5rem;
}

.control-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 150, 243, 0.1);
}

.controls-left {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.controls-right {
    display: flex;
    align-items: end;
}

.analytics-controls .btn {
    height: 2.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* BI Charts Grid */
.bi-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.bi-chart {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.bi-chart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 12px 12px 0 0;
}

.bi-chart:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.bi-chart.full-width {
    grid-column: 1 / -1;
}

/* 2x2 Metrics Grid */
.metrics-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

.metric-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;
}

.metric-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.metric-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.metric-box-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.metric-box-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-box-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-insights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: none;
}

.insight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.insight-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.insight-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* Business Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
}

.insight-card.strategic::before {
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
}

.insight-card.operational::before {
    background: linear-gradient(90deg, #F59E0B, #EF4444);
}

.insight-card.financial::before {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.insight-card.customer::before {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}

.insight-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.insight-card.strategic .insight-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.insight-card.operational .insight-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.insight-card.financial .insight-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.insight-card.customer .insight-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.insight-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.insight-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.insight-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* Action buttons spacing */
.table-cell .btn-sm {
    margin: 0 4px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.table-cell .btn-sm:first-child {
    margin-left: 0;
}

.table-cell .btn-sm:last-child {
    margin-right: 0;
}

/* Action buttons container */
.table-cell:has(.btn-sm) {
    padding: 16px 20px;
    white-space: nowrap;
    min-width: 120px;
}

/* Ensure proper spacing between action buttons */
.table-cell .btn-sm + .btn-sm {
    margin-left: 8px;
}

/* Specific styling for action buttons in inventory table */
.inventory-table .table-cell:last-child {
    text-align: center;
    padding: 12px 8px;
}

.inventory-table .table-cell:last-child .btn-sm {
    margin: 0 8px;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Icon styling for inventory buttons */
.inventory-table .table-cell:last-child .btn-sm i {
    font-size: 16px;
    line-height: 1;
    display: block;
}

/* Edit button - softer blue */
.inventory-table .table-cell:last-child .btn-primary {
    background-color: #3B82F6;
    border-color: #3B82F6;
    color: white;
}

.inventory-table .table-cell:last-child .btn-primary:hover {
    background-color: #2563EB;
    border-color: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Delete button - stronger red */
.inventory-table .table-cell:last-child .btn-danger {
    background-color: #DC2626;
    border-color: #DC2626;
    color: white;
}

.inventory-table .table-cell:last-child .btn-danger:hover {
    background-color: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

/* Mobile responsive for inventory table */
@media (max-width: 768px) {
    .inventory-table {
        font-size: 12px;
    }
    
    .inventory-table .table-header th,
    .inventory-table .table-cell {
        padding: 8px 12px;
    }
    
    /* Adjust column widths for mobile */
    .inventory-table .table-header th:nth-child(1),
    .inventory-table .table-cell:nth-child(1) { width: 30% !important; } /* Item Name */
    
    .inventory-table .table-header th:nth-child(2),
    .inventory-table .table-cell:nth-child(2) { width: 12% !important; } /* Stock */
    
    .inventory-table .table-header th:nth-child(3),
    .inventory-table .table-cell:nth-child(3) { width: 12% !important; text-align: center !important; } /* Orders Done */
    
    .inventory-table .table-header th:nth-child(4),
    .inventory-table .table-cell:nth-child(4) { width: 18% !important; } /* Last Updated */
    
    .inventory-table .table-header th:nth-child(5),
    .inventory-table .table-cell:nth-child(5) { width: 13% !important; } /* Status */
    
    .inventory-table .table-header th:nth-child(6),
    .inventory-table .table-cell:nth-child(6) { 
        width: 15% !important; 
        text-align: right !important; 
        padding-right: 16px !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 8px !important;
    } /* Actions */
    
    .inventory-table .table-cell:last-child .btn-sm {
        margin: 0 !important;
        min-width: 40px;
        height: 40px;
        font-size: 12px;
    }
    
    .inventory-table .table-cell:last-child {
        padding: 12px 8px;
    }
}

/* Reports Page Styles */
.time-period-filter {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}


.filter-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.period-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.period-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 2.75rem;
}

.period-btn:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.period-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.report-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.report-actions .btn {
    height: 2.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
}

.reports-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(145deg, var(--background-color) 0%, var(--surface-color) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196f3 0%, #f44336 33%, #ffc107 66%, #4caf50 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.summary-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.summary-period {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.period-reports,
.service-reports,
.period-summary {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.report-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.report-card:hover {
    background: var(--border-light);
    transform: translateY(-2px);
}

.report-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.report-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.report-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.service-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.service-report-item {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.service-report-item:hover {
    background: var(--border-light);
    transform: translateY(-2px);
}

.service-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.service-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.period-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.period-stat {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.period-stat:hover {
    background: var(--border-light);
    transform: translateY(-2px);
}

.period-stat h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.period-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.period-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive Design for Reports */
@media (max-width: 768px) {
    .time-period-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-left {
        gap: 0.75rem;
    }
    
    .period-buttons {
        justify-content: center;
    }
    
    .report-actions {
        justify-content: center;
    }
    
    .reports-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .summary-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .report-cards {
        grid-template-columns: 1fr;
    }
    
    .service-report-grid {
        grid-template-columns: 1fr;
    }
    
    .period-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .reports-summary {
        grid-template-columns: 1fr;
    }
    
    .period-stats {
        grid-template-columns: 1fr;
    }
    
    .period-buttons {
        flex-direction: column;
    }
    
    .period-reports,
    .service-reports,
    .period-summary {
        padding: 1rem;
    }
}

/* Settings Page Styles */
.settings-section {
    background: linear-gradient(145deg, var(--background-color) 0%, var(--surface-color) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem !important;
    margin-bottom: 2rem;
    box-shadow: none;
    width: 100% !important;
    max-width: none !important;
}

.settings-form {
    margin-top: 1.5rem;
    width: 100%;
}

.settings-form .form-group label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.settings-form .form-group input {
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 10px;
}

.settings-form .form-help {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
    .settings-section {
        padding: 1rem;
    }
    
    .settings-actions {
        justify-content: center;
    }
    
    /* Remove white box background on mobile for customer login */
    .customer-page .auth-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 1.5rem 1.25rem !important; /* Add side padding for mobile */
    }
    
    /* Login page specific styling */
    .customer-page .login-form .form-input {
        padding: 14px 16px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
    }
    
    .customer-page .login-form .btn {
        padding: 14px 20px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
    }
    
    .customer-page .login-logo-section {
        padding-top: 0 !important;
        margin-bottom: 28px !important;
    }
}

.analytics-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.job-categories-section,
.overall-analytics-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.job-categories-section::before,
.overall-analytics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EF4444, #F59E0B, #10B981);
}

.subsection-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-left: 1.2rem;
}

.subsection-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 2px;
}

.job-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.job-category-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.job-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.job-category-card:hover::before {
    left: 100%;
}

.job-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.job-category-card.expandable {
    cursor: pointer;
}

.job-category-card.expanded {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #2196f3 0%, #f44336 33%, #ffc107 66%, #4caf50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.job-category-card:hover .category-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.job-category-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.025em;
}

.category-stats,
.category-revenue {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.stat-number,
.revenue-amount {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label,
.revenue-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.expand-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.job-category-card.expanded .expand-indicator {
    color: var(--primary-color);
}

.others-details {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

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

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

.other-service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.other-service-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.other-service-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.analytics-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 12px 12px 0 0;
}

.analytics-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.analytics-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.375rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.analytics-card:hover .analytics-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.analytics-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.analytics-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.analytics-change {
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Charts Section Styles */
.charts-section {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.charts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EF4444, #F59E0B, #10B981);
}

.chart-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.chart-period-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-period-selector label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.chart-period-selector select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.chart-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 12px 12px 0 0;
}

.chart-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.chart-container.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.chart-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.025em;
}

.chart-total {
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-wrapper {
    position: relative;
    height: 200px;
    margin-bottom: 1rem;
    cursor: default;
}

.chart-wrapper canvas {
    max-width: 100%;
    height: auto !important;
    cursor: default !important;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    flex: 1;
}

.legend-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Responsive Design for Analytics */
@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .kpi-card {
        padding: 1rem;
    }
    
    .kpi-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .kpi-value {
        font-size: 1.5rem;
    }
    
    .service-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-metrics-grid .service-metric-card:nth-child(4),
    .service-metrics-grid .service-metric-card:nth-child(5) {
        grid-column: span 1;
    }
    
    .service-metric-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .analytics-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .controls-left {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .controls-right {
        justify-content: center;
    }
    
    .control-group {
        width: 100%;
    }
    
    .control-group select {
        width: 100%;
    }
    
    .bi-charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bi-chart {
        padding: 1rem;
    }
    
    .chart-wrapper {
        height: 200px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .insight-card {
        padding: 1rem;
    }
    
    .insight-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .job-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .others-grid {
        grid-template-columns: 1fr;
    }
}

/* Staff Management Styles */
.staff-management-content {
    margin-top: 12px;
}

/* Clerk Management Page Specific Styles */
#clerk-management-page {
    position: relative;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#clerk-management-page .section-header {
    flex-shrink: 0;
    margin-bottom: 4px;
    padding-bottom: 8px;
}

#clerk-management-page .clerk-list-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#clerk-management-page .section-header:last-of-type {
    margin-bottom: 8px;
}

#clerk-management-page .clerk-table-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Remove conflicting page-specific styles */
.clerk-form-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.staff-form-section .section-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-primary);
    border-radius: 12px 12px 0 0;
}

.staff-form-section .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.clerk-form {
    padding: 24px;
}

.clerk-list-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
    padding: 20px;
    min-height: 500px;
}

.clerk-list-section .section-header {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-primary);
    border-radius: 12px 12px 0 0;
}

.clerk-list-section .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.clerk-table-container {
    padding: 0;
    overflow: auto;
    flex: 1;
}

.clerk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

/* Set specific column widths */
.clerk-table th:nth-child(1),
.clerk-table td:nth-child(1) {
    width: 20%; /* Name */
}

.clerk-table th:nth-child(2),
.clerk-table td:nth-child(2) {
    width: 25%; /* Email */
}

.clerk-table th:nth-child(3),
.clerk-table td:nth-child(3) {
    width: 15%; /* Phone */
}

.clerk-table th:nth-child(4),
.clerk-table td:nth-child(4) {
    width: 15%; /* Username */
}

.clerk-table th:nth-child(5),
.clerk-table td:nth-child(5) {
    width: 15%; /* Password */
}

.clerk-table th:nth-child(6),
.clerk-table td:nth-child(6) {
    width: 10%; /* Actions */
}

/* Ensure clerk table uses 6 columns: Name, Email, Phone, Username, Password, Actions */
.clerk-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.clerk-table thead {
    display: table-header-group;
}

.clerk-table tbody {
    display: table-row-group;
}

.clerk-table tr {
    display: table-row;
}

.clerk-table th,
.clerk-table td {
    display: table-cell;
    vertical-align: middle;
}

/* Remove old conflicting styles */

.clerk-table th {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid var(--border-light);
    font-size: 14px;
    vertical-align: middle;
}

.clerk-table tr {
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
}

.clerk-table tr:hover {
    background-color: var(--bg-primary);
}

.clerk-table td {
    padding: 12px 8px;
    color: var(--text-secondary);
    font-size: 14px;
    vertical-align: middle;
}

.payment-table .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.payment-table .empty-state .empty-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.payment-table .empty-state h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.payment-table .empty-state p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Empty state for orders table */
.orders-table .empty-orders {
    border-bottom: none;
}

.orders-table .empty-state {
    text-align: center !important;
    padding: 80px 20px !important;
    color: var(--text-muted);
    vertical-align: middle !important;
}

.orders-table .empty-state > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.orders-table .empty-state .empty-icon {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orders-table .empty-state .empty-icon i {
    display: block;
}

.orders-table .empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    margin-top: 0;
}

.orders-table .empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.recent-orders-section .section-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.recent-orders-section .section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--secondary-color);
}

/* Orders Table */
.orders-table {
    width: 100%;
}

/* Job Orders Table - Fixed Header Alignment */
#job-orders-page .orders-table {
    table-layout: fixed;
    width: 100%;
}

/* Job Orders Table Column Alignment */
#job-orders-page .orders-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.2fr 0.8fr 1fr 1fr 0.8fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

#job-orders-page .orders-table tbody tr:first-child {
    border-top: none;
}

#job-orders-page .orders-table tbody td {
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
}

/* Align Price, Status, Files, and Details columns to match headers */
#job-orders-page .orders-table tbody tr td:nth-child(5) {
    justify-content: flex-start;
    text-align: left;
    padding-left: 8px;
}

#job-orders-page .orders-table tbody tr td:nth-child(6),
#job-orders-page .orders-table tbody tr td:nth-child(7),
#job-orders-page .orders-table tbody tr td:nth-child(8) {
    justify-content: flex-start;
}

/* Align job orders table headers */
#job-orders-page .fixed-table-header {
    border-radius: 0 !important;
}

#job-orders-page .fixed-table-header > div:nth-child(5) {
    text-align: left !important;
    padding-left: 8px !important;
}

#job-orders-page .orders-table-container,
#job-orders-page .orders-table {
    border-radius: 0 !important;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.2fr 1fr 1fr 1fr;
    background-color: var(--border-light);
    padding: 16px 24px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.table-body {
    display: flex;
    flex-direction: column;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.2fr 1fr 1fr 1fr;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s ease;
    align-items: center;
}

.table-row:hover {
    background-color: var(--border-light);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.status-badge.pending {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.status-badge.in-progress {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

/* Empty States */
.empty-orders {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-muted);
    min-height: 300px;
}

.empty-orders .empty-icon {
    width: 64px;
    height: 64px;
    background-color: var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-orders h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-orders p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: 1.5;
}

/* Page Sections */
#settings-page {
    max-width: 100% !important;
    width: 100% !important;
}

.page-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-section .section-header {
    margin-bottom: 12px;
}

/* Empty States for other pages */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    background-color: var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.empty-state h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.6;
}

/* Chart Section */
.chart-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-color);
}

.chart-header .section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.chart-selector {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.chart-selector:hover {
    border-color: var(--primary-color);
    background-color: var(--border-light);
}

.chart-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 161, 240, 0.1);
}

.chart-container {
    padding: 32px 24px;
    height: 350px;
    position: relative;
    background-color: var(--surface-color);
    touch-action: none;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

.chart-container:active {
    cursor: default;
}

/* Make sure the chart area is touchable */
.chart-container canvas {
    pointer-events: auto;
    touch-action: none;
}

/* Chart Scroll Controls */
.chart-scroll-controls {
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    background-color: var(--border-light);
    border-top: 1px solid var(--border-color);
}

.scroll-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.scroll-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scroll-btn:disabled:hover {
    background-color: var(--background-color);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.scroll-indicator {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 120px;
    text-align: center;
}



/* Responsive Design for Dashboard */
@media (min-width: 1200px) {
    .metrics-grid {
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .insights-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    /* Dashboard sections spacing */
    .dashboard-overview-section {
        padding: 20px 16px;
        gap: 28px;
    }
    
    /* Major section spacing */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 28px;
    }
    
    .metric-card {
        padding: 20px;
        margin-bottom: 8px;
    }
    
    .metric-card .metric-value {
        font-size: 28px;
    }
    
    .insights-section {
        gap: 20px;
        margin-bottom: 28px;
    }
    
    .insight-card {
        padding: 18px;
        gap: 14px;
        margin-bottom: 8px;
    }
    
    .insight-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .recent-orders-section {
        margin-bottom: 28px;
    }
    
    .recent-orders-section .section-header {
        padding: 18px 16px;
        margin-bottom: 12px;
    }
    
    /* Table spacing */
    .table-header,
    .table-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        padding: 14px 16px;
    }
    
    .table-header .table-cell:nth-child(4),
    .table-header .table-cell:nth-child(5),
    .table-header .table-cell:nth-child(6),
    .table-row .table-cell:nth-child(4),
    .table-row .table-cell:nth-child(5),
    .table-row .table-cell:nth-child(6) {
        display: none;
    }
    
    /* Chart section with horizontal scroll */
    .chart-section {
        margin-bottom: 28px;
    }
    
    .chart-header {
        padding: 18px 16px;
        margin-bottom: 16px;
    }
    
    .chart-container {
        padding: 24px 16px;
        height: 300px;
    }
    
    /* Show scroll controls on mobile */
    .chart-scroll-controls {
        display: flex;
    }
}

@media (max-width: 480px) {
    /* Dashboard sections spacing for small mobile */
    .dashboard-overview-section {
        padding: 16px 12px;
        gap: 24px;
    }
    
    /* Major section spacing for small mobile */
    .metrics-grid {
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .metric-card {
        padding: 18px;
        margin-bottom: 12px;
    }
    
    .insights-section {
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .insight-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .insight-icon {
        align-self: center;
        margin-bottom: 8px;
    }
    
    .recent-orders-section {
        margin-bottom: 24px;
    }
    
    .chart-section {
        margin-bottom: 24px;
    }
    
    .chart-container {
        padding: 20px 12px;
        height: 280px;
    }
    
    /* Show scroll controls on small mobile */
    .chart-scroll-controls {
        display: flex;
    }
    
    /* Typography */
    .section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .metric-card .metric-value {
        font-size: 24px;
    }
    
    .metric-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* Section headers */
    .recent-orders-section .section-header {
        padding: 16px 12px;
        margin-bottom: 16px;
    }
    
    .chart-header {
        padding: 16px 12px;
        margin-bottom: 16px;
    }
    
    /* Table spacing */
    .table-header,
    .table-row {
        padding: 12px;
        gap: 6px;
    }
}

/* Modal styles - removed duplicate, using main definition above */

.modal-content {
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: var(--border-light);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.detail-item span {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

/* Order Details Modal Styles */
.order-details-modal {
    max-width: 800px;
    width: 90vw;
}

.order-details-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.form-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h4 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-field {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.form-field.description,
.form-field.notes {
    min-height: 3rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.form-field.payment-method {
    font-weight: 600;
    color: var(--primary-color);
}

.form-field.priority-high {
    color: var(--danger-color);
    font-weight: 600;
}

.form-field.priority-medium {
    color: var(--warning-color);
    font-weight: 600;
}

.form-field.priority-low {
    color: var(--success-color);
    font-weight: 600;
}

.form-field.status-pending {
    color: var(--warning-color);
    font-weight: 600;
}

/* Responsive adjustments for order details modal */
@media (max-width: 768px) {
    .order-details-modal {
        width: 95vw;
        max-width: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-section {
        padding: 1rem;
    }
    
    .form-section h4 {
        font-size: 1rem;
    }
}

/* Low Stock Items Section */
.low-stock-section {
    margin-top: 2rem;
    margin-bottom: 24px; /* ensure gap before inventory table/header */
    background: var(--background-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Ensure spacing specifically on Admin's Inventory page */
#inventory-page .low-stock-section {
    margin-bottom: 24px;
}

/* Clerk Modal: disable all-caps and tight letter-spacing inside Add Clerk modal */
#add-clerk-modal .modal-title h3,
#add-clerk-modal .form-group label,
#add-clerk-modal .detail-item label,
#add-clerk-modal .table-header th,
#add-clerk-modal input,
#add-clerk-modal input::placeholder,
#add-clerk-modal .modal-body,
#add-clerk-modal .modal-body * {
	text-transform: none !important;
	letter-spacing: normal !important;
}

/* In the Add Clerk modal, use Title Case for headings and labels */
#add-clerk-modal .modal-title h3,
#add-clerk-modal .form-group label {
	text-transform: capitalize !important;
	letter-spacing: 0.02em;
}

.low-stock-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.low-stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
    transition: all 0.2s ease;
}

.low-stock-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.item-info {
    flex: 1;
}

.item-name {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.item-details {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.item-status {
    margin-left: 1rem;
}

.status-badge.low-stock {
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.out-of-stock {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.no-low-stock {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.no-low-stock i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.no-low-stock p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== CLERK-SPECIFIC STYLES (Extracted from clerk.html) ===== */
        .create-job-order-btn {
            width: calc(100% - 16px);
            padding: 8px 16px;
            background: #3B82F6;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.2s ease;
            margin: 1px 8px 12px 8px;
            box-shadow: 0 1px 4px rgba(59, 130, 246, 0.25);
        }

        .create-job-order-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(59, 130, 246, 0.28);
        }

        .create-job-order-btn i {
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #3B82F6;
            font-weight: bold;
        }

        .log-sale-btn {
            width: calc(100% - 16px) !important;
            padding: 8px 16px !important;
            background: #10B981;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: all 0.2s ease;
            margin: 1px 8px 12px 8px !important;
            box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25);
            min-width: 0 !important;
            max-width: none !important;
            box-sizing: border-box !important;
        }

        /* Force Log Sale button to match Create Job Order button size */
        .log-sale-btn {
            width: calc(100% - 16px) !important;
            padding: 10px 16px !important;
            margin: 8px 8px 12px 8px !important;
            border-radius: 10px !important;
            gap: 12px !important;
        }

        .log-sale-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(16, 185, 129, 0.28);
        }

        .log-sale-btn i {
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #10B981;
            font-weight: bold;
        }

        /* Sales Log Modal Styles */
        .total-display {
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            padding: 16px;
            margin-top: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .total-display .form-label {
            margin-bottom: 0;
            font-weight: 600;
            color: #374151;
        }

        .total-amount {
            font-size: 1.5rem;
            font-weight: 700;
            color: #10B981;
        }

        .nav-separator {
            height: 1px;
            background-color: #e2e8f0;
            margin: 16px 0;
        }

        .sidebar-divider {
            height: 1px;
            background-color: #e2e8f0;
            margin: 16px 0;
        }

        /* Ensure sidebar doesn't scroll */
        .sidebar {
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .sidebar-nav {
            flex: 1;
            overflow-y: auto;
        }

        .sidebar-footer {
            flex-shrink: 0;
        }

        .nav-link {
            color: #1a202c !important;
        }

        .nav-link:hover {
            color: #2d3748 !important;
        }

        .nav-link.active {
            color: #1a202c !important;
        }

        /* Action Buttons for Clerk Job Orders */
        .action-buttons {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
            align-items: center;
            padding: 0.75rem;
        }

        .btn-action {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .view-btn {
            background: #3B82F6;
            color: white;
        }

        .view-btn:hover {
            background: #2563EB;
            transform: translateY(-1px);
        }

        .edit-btn {
            background: #F59E0B;
            color: white;
        }

        .edit-btn:hover {
            background: #D97706;
            transform: translateY(-1px);
        }

        .status-btn {
            background: #10B981;
            color: white;
        }

        .status-btn:hover {
            background: #059669;
            transform: translateY(-1px);
        }

        /* Table improvements */
        .orders-table td {
            vertical-align: middle;
            padding: 1rem 0.75rem;
            border-bottom: 1px solid #e5e7eb;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 200px;
            display: table-cell;
        }


        .orders-table .action-buttons {
            white-space: nowrap;
            min-width: 140px;
            text-align: center;
        }

        .orders-table th {
            padding: 1rem 0.75rem;
            font-weight: 600;
            text-align: left;
            border-bottom: 2px solid #e5e7eb;
            background-color: #f9fafb;
        }

        .orders-table th:last-child,
        .actions-header {
            text-align: center;
            width: 140px;
        }


        .order-row:hover {
            background-color: #f8fafc;
        }

        .orders-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            table-layout: auto;
        }

        .orders-table-container {
            overflow-x: auto;
            width: 100%;
        }

        .orders-table thead tr {
            display: table-row;
        }

        .orders-table tbody tr {
            display: table-row;
            width: 100%;
        }

        .orders-table tbody tr td {
            display: table-cell;
            vertical-align: middle;
        }

        /* Center empty state in Job Orders table */
        .orders-table td.empty-state {
            text-align: center;
            padding: 40px 16px;
        }
        .orders-table td.empty-state .empty-icon {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            margin: 0 auto 12px auto;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #F3F4F6;
            color: #9CA3AF;
            font-size: 28px;
        }

        .orders-table td:first-child {
            max-width: 150px;
        }

        .orders-table td:last-child {
            max-width: 140px;
            white-space: normal;
        }

        /* Task Management Styles */
        .task-management-header {
            background: white;
            border-radius: 12px;
            padding: 24px;
            margin-top: 12px;
            margin-bottom: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .automation-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding: 16px;
            background: #f8fafc;
            border-radius: 8px;
        }

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

        .status-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #059669;
            font-weight: 500;
        }

        .status-indicator i {
            color: #10B981;
        }

        .toggle-automation-btn {
            background: #3B82F6;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .toggle-automation-btn:hover {
            background: #2563EB;
        }

        .staff-overview {
            display: flex;
            gap: 24px;
        }

        .staff-count {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .count-label {
            font-size: 12px;
            color: #6B7280;
        }

        .count-value {
            font-size: 24px;
            font-weight: 700;
            color: #1F2937;
        }

        /* View Board Styles */
        .view-board-section {
            background: white;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .board-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 2px solid #E5E7EB;
        }

        .board-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 20px;
            font-weight: 600;
            color: #1F2937;
        }

        .board-title i {
            color: #3B82F6;
        }

        .board-controls {
            display: flex;
            gap: 12px;
        }

        .board-btn {
            background: #F3F4F6;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #374151;
            transition: all 0.2s ease;
            position: relative;
            z-index: 10;
            pointer-events: auto;
        }

        .board-btn:hover {
            background: #E5E7EB;
        }

        /* Share Dropdown Styles */
        .share-dropdown {
            position: relative;
            display: inline-block;
        }

        .share-dropdown-btn {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .share-dropdown-btn .fa-chevron-down {
            font-size: 10px;
            transition: transform 0.2s ease;
        }

        .share-dropdown:hover .fa-chevron-down {
            transform: rotate(180deg);
        }

        .share-dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            min-width: 150px;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s ease;
            pointer-events: none;
        }

        .share-dropdown:hover .share-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            pointer-events: auto;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            border-bottom: 1px solid #F3F4F6;
            position: relative;
            z-index: 1001;
            pointer-events: auto;
        }

        .dropdown-item:last-child {
            border-bottom: none;
        }

        .dropdown-item:hover {
            background: #F8FAFC;
        }

        .dropdown-item i {
            width: 16px;
            color: #6B7280;
        }

        .dropdown-item span {
            font-size: 14px;
            font-weight: 500;
            color: #374151;
        }

        .monitor-board {
            background: #F9FAFB;
            border-radius: 8px;
            padding: 20px;
        }

        .board-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        /* Fullscreen/H Monitor Mode - 5 Column Layout */
        .monitor-board.fullscreen-mode .board-grid,
        .monitor-board.monitor-only .board-grid {
            display: flex;
            flex-direction: row;
            gap: 0;
            height: 100vh;
            padding: 20px;
            overflow-x: auto;
        }

        .monitor-board.fullscreen-mode .board-column,
        .monitor-board.monitor-only .board-column {
            flex: 1;
            min-width: 280px;
            margin-right: 16px;
            display: flex;
            flex-direction: column;
        }

        .board-column {
            background: white;
            border-radius: 8px;
            padding: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .column-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #E5E7EB;
        }

        .column-header h5 {
            font-size: 16px;
            font-weight: 600;
            color: #1F2937;
        }

        .task-count {
            background: #E5E7EB;
            color: #6B7280;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .task-cards {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Fullscreen/H Monitor Mode - Horizontal card flow */
        .monitor-board.fullscreen-mode .task-cards,
        .monitor-board.monitor-only .task-cards {
            display: flex;
            flex-direction: column;
            gap: 16px;
            flex: 1;
        }

        .task-card {
            background: white;
            border-radius: 8px;
            padding: 16px;
            transition: all 0.2s ease;
            cursor: pointer;
            position: relative;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .task-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            transform: translateY(-1px);
        }

        .task-card.pending {
            border-left: 4px solid #F59E0B;
        }

        .task-card.in_progress {
            border-left: 4px solid #3B82F6;
        }

        .task-card.completed {
            border-left: 4px solid #10B981;
        }

        /* Fullscreen mode task card adjustments */
        .monitor-board.fullscreen-mode .task-card {
            min-height: 320px;
            font-size: 16px;
        }

        /* HDMI/External display specific styles */
        .monitor-board.fullscreen-mode {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            z-index: 9999 !important;
            background: #f8fafc !important;
            overflow: hidden !important;
        }

        /* Ensure fullscreen mode works on all screen sizes */
        @media (min-width: 1920px) {
            .monitor-board.fullscreen-mode .board-grid {
                padding: 40px;
                gap: 40px;
            }
            
            .monitor-board.fullscreen-mode .task-card {
                min-height: 400px;
                font-size: 18px;
                padding: 24px;
            }
        }

        /* Prevent scrolling in fullscreen mode */
        body.fullscreen-active {
            overflow: hidden !important;
            position: fixed !important;
            width: 100% !important;
            height: 100% !important;
        }

        .task-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .task-badges {
            display: flex;
            gap: 6px;
            align-items: center;
            flex-wrap: wrap;
        }

        .task-id {
            font-weight: 600;
            color: #3B82F6;
            font-size: 14px;
        }

        .task-priority {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .task-priority.high {
            background: #FEE2E2;
            color: #DC2626;
        }

        .task-priority.normal, .task-priority.medium {
            background: #E0F2FE;
            color: #0369A1;
        }

        .task-priority.low {
            background: #D1FAE5;
            color: #059669;
        }

        .task-status {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .task-status.in-progress, .task-status.in_progress {
            background: #dbeafe;
            color: #1e40af;
        }

        .task-status.pending {
            background: #FEF3C7;
            color: #92400E;
        }

        .task-status.completed {
            background: #D1FAE5;
            color: #065F46;
        }

        .task-complete-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #10B981;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        .task-customer {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
        }

        .task-customer-icon {
            color: #3B82F6;
            font-size: 14px;
        }

        .task-customer-name {
            font-size: 15px;
            font-weight: 700;
            color: #1F2937;
            margin: 0;
        }

        .task-order-id {
            color: #6B7280;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .task-service-title {
            font-size: 16px;
            font-weight: 700;
            color: #111827;
            margin: 0 0 8px 0;
        }

        .task-description {
            font-size: 12px;
            color: #6B7280;
            margin: 0 0 12px 0;
            line-height: 1.6;
        }

        .task-required-roles {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            margin-top: 12px;
            padding: 10px;
            background: #F0F9FF;
            border-radius: 8px;
            border-left: 3px solid #1E40AF;
        }

        .task-roles-text {
            flex: 1;
        }

        .task-assigned-staff {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #E5E7EB;
        }

        .task-staff-icon {
            color: #10B981;
            font-size: 13px;
        }

        .task-staff-names {
            font-size: 12px;
            color: #374151;
            font-weight: 500;
        }

        .complete-btn {
            background: #10B981;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 6px 8px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .complete-btn:hover {
            background: #059669;
            transform: translateY(-1px);
        }

        .payment-method {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #6B7280;
            background: #F3F4F6;
            padding: 4px 8px;
            border-radius: 6px;
        }

        .payment-method i {
            color: #059669;
        }

        .quantity-info {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #6B7280;
            background: #EFF6FF;
            padding: 4px 8px;
            border-radius: 6px;
        }

        .quantity-info i {
            color: #3B82F6;
        }

        /* Job Order Modal Styles - using main .modal-overlay definition */

        .job-order-modal {
            background: white;
            border-radius: 12px;
            padding: 0;
            max-width: 600px;
            width: 90%;
            max-height: 85vh;
            overflow: visible;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
        }
        
        /* Fix dropdown appearing above instead of below */
        .job-order-modal select {
            position: relative;
            z-index: 1;
        }

        .modal-overlay.active .job-order-modal {
            transform: scale(1);
        }

        .modal-header {
            padding: 24px 24px 0 24px;
            border-bottom: 1px solid #E5E7EB;
            margin-bottom: 24px;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 700;
            color: #111827;
            margin: 0 0 8px 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-subtitle {
            font-size: 14px;
            color: #6B7280;
            margin: 0 0 24px 0;
        }

        .job-order-modal .modal-body {
            padding: 0 24px 120px 24px;
            overflow-y: auto;
            overflow-x: visible;
            max-height: calc(85vh - 200px);
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-bottom: 24px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 12px;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
            margin-bottom: 20px;
        }

        .form-label {
            font-weight: 600;
            color: #374151;
            font-size: 14px;
        }

        .form-input, .form-select, .form-textarea {
            padding: 12px 16px;
            border: 1px solid #D1D5DB;
            border-radius: 8px;
            font-size: 14px;
            color: #374151;
            background: white;
            transition: border-color 0.2s ease;
        }

        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none;
            border-color: #3B82F6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        /* File Upload Styles */
        .file-upload-area {
            margin-top: 8px;
        }

        .form-file-input {
            display: none;
        }

        .file-upload-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 32px 24px;
            border: 2px dashed #D1D5DB;
            border-radius: 12px;
            background: #F9FAFB;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }

        .file-upload-label:hover {
            border-color: #3B82F6;
            background: #EFF6FF;
        }

        .file-upload-label i {
            font-size: 32px;
            color: #3B82F6;
        }

        .file-upload-label span {
            font-size: 14px;
            font-weight: 500;
            color: #374151;
        }

        .file-upload-label small {
            font-size: 12px;
            color: #6B7280;
        }

        .file-list {
            margin-top: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .file-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            background: white;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            font-size: 13px;
        }

        .file-item-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            overflow: hidden;
        }

        .file-item-info i {
            color: #3B82F6;
            font-size: 16px;
        }

        .file-item-name {
            color: #374151;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .file-item-size {
            color: #6B7280;
            font-size: 11px;
            margin-left: 8px;
        }

        .file-item-remove {
            background: none;
            border: none;
            color: #EF4444;
            cursor: pointer;
            padding: 4px 8px;
            font-size: 14px;
            transition: color 0.2s ease;
        }

        .file-item-remove:hover {
            color: #DC2626;
        }

        /* Quick Service Select Buttons */
        .service-quick-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px 12px;
            border: 2px solid #E5E7EB;
            border-radius: 12px;
            background: white;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 14px;
            font-weight: 500;
            color: #374151;
        }

        .service-quick-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .service-quick-btn i {
            font-size: 28px;
            transition: all 0.2s ease;
        }

        /* Prints/Xerox - Blue */
        .service-quick-btn[data-service-name="Prints/Xerox"] {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: #667eea;
            color: white;
        }
        .service-quick-btn[data-service-name="Prints/Xerox"] i {
            color: white;
        }
        .service-quick-btn[data-service-name="Prints/Xerox"]:hover {
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }
        .service-quick-btn[data-service-name="Prints/Xerox"].selected {
            border: 3px solid #000000;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            transform: translateY(-2px) scale(1.02);
        }

        /* Tarpaulins - Green */
        .service-quick-btn[data-service-name="Tarpaulins"] {
            background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
            border-color: #11998e;
            color: white;
        }
        .service-quick-btn[data-service-name="Tarpaulins"] i {
            color: white;
        }
        .service-quick-btn[data-service-name="Tarpaulins"]:hover {
            box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
        }
        .service-quick-btn[data-service-name="Tarpaulins"].selected {
            border: 3px solid #000000;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            transform: translateY(-2px) scale(1.02);
        }

        /* Shirts - Orange/Red */
        .service-quick-btn[data-service-name="Shirts"] {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border-color: #f093fb;
            color: white;
        }
        .service-quick-btn[data-service-name="Shirts"] i {
            color: white;
        }
        .service-quick-btn[data-service-name="Shirts"]:hover {
            box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
        }
        .service-quick-btn[data-service-name="Shirts"].selected {
            border: 3px solid #000000;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            transform: translateY(-2px) scale(1.02);
        }

        /* Stickers - Yellow/Orange */
        .service-quick-btn[data-service-name="Stickers"] {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
            border-color: #fa709a;
            color: white;
        }
        .service-quick-btn[data-service-name="Stickers"] i {
            color: white;
        }
        .service-quick-btn[data-service-name="Stickers"]:hover {
            box-shadow: 0 6px 20px rgba(250, 112, 154, 0.4);
        }
        .service-quick-btn[data-service-name="Stickers"].selected {
            border: 3px solid #000000;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            transform: translateY(-2px) scale(1.02);
        }

        .form-textarea {
            resize: vertical;
            min-height: 80px;
        }

        .modal-footer {
            padding: 24px;
            border-top: 1px solid #E5E7EB;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-secondary {
            background: #F3F4F6;
            color: #374151;
            border: 1px solid #D1D5DB;
        }

        .btn-secondary:hover {
            background: #E5E7EB;
        }

        .btn-primary {
            background: #3B82F6;
            color: white;
        }

        .btn-primary:hover {
            background: #2563EB;
        }

        .task-status.completed {
            background: #D1FAE5;
            color: #059669;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .task-content h6 {
            font-size: 16px;
            font-weight: 600;
            color: #1F2937;
            margin-bottom: 4px;
        }

        .task-content p {
            color: #6B7280;
            font-size: 14px;
            margin-bottom: 12px;
        }

        .task-meta {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 12px;
        }

        .task-meta span {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #6B7280;
        }

        .task-meta i {
            width: 12px;
            color: #9CA3AF;
        }

        .task-progress {
            margin-top: 12px;
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background: #E5E7EB;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 4px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #3B82F6, #1D4ED8);
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        .progress-text {
            font-size: 12px;
            color: #6B7280;
            font-weight: 500;
        }

        .automation-info {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #FEF3C7;
            border-radius: 6px;
            font-size: 12px;
            color: #92400E;
            margin-top: 8px;
        }

        .automation-info i {
            color: #F59E0B;
        }

        /* Staff Management Styles */
        .staff-management-section {
            background: white;
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* Add spacing below the Low Stock box so it's not stuck to inventory header */
        .low-stock-section {
            margin-bottom: 24px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }n 

        /* Ensure Add Staff button is on the right side */
        .staff-management-section .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .staff-management-section .section-header .section-title {
            flex: 1;
        }

        .staff-management-section .section-header .add-staff-btn {
            margin-left: auto;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
            width: 100%;
            position: relative;
            z-index: 5;
        }

        .header-text {
            flex: 1;
        }

        .create-job-order-btn {
            background: #3B82F6;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            position: relative;
            z-index: 10;
            pointer-events: auto;
        }

        .create-job-order-btn:hover {
            background: #2563EB;
            transform: translateY(-1px);
        }

        .create-job-order-btn:active {
            background: #1D4ED8;
            transform: translateY(0);
        }

        .add-staff-btn {
            background: #3B82F6;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 16px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .add-staff-btn:hover {
            background: #2563EB;
            transform: translateY(-1px);
        }

        /* Sticky Table Header */
        .staff-table-header {
            position: sticky;
            top: 0;
            z-index: 10;
            background: white;
            border-radius: 0;
            border-left: 1px solid #E5E7EB;
            border-right: 1px solid #E5E7EB;
            border-top: 1px solid #E5E7EB;
        }

        .table-header-row {
            display: flex;
            background: rgb(251, 251, 251);
            border-bottom: 1px solid #E5E7EB;
        }

        .header-cell {
            flex: 1;
            padding: 12px 12px;
            font-weight: 700;
            font-size: 16px;
            color: #374151;
            display: flex;
            align-items: center;
        }


        .staff-table-container {
            overflow-x: auto;
            border-radius: 0;
            border: 1px solid #E5E7EB;
            border-top: none;
            height: 340px;
            overflow-y: auto;
        }

        .staff-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 0;
        }

        .staff-table th {
            background: #F9FAFB;
            padding: 16px 12px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
            color: #374151;
            border-bottom: 1px solid #E5E7EB;
        }

        .staff-table td {
            padding: 16px 12px;
            border-bottom: 1px solid #F3F4F6;
            vertical-align: middle;
        }

        .staff-table tbody tr {
            display: flex;
        }

        .staff-table tbody tr td {
            flex: 1;
            display: flex;
            align-items: center;
        }

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

        .staff-table tbody tr:last-child td {
            border-bottom: none;
        }

        .staff-name {
            font-weight: 600;
            color: #111827;
            margin: 0;
        }

        .staff-role {
            font-size: 14px;
            color: #6B7280;
            margin: 0;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }

        .status-badge.available {
            background: #D1FAE5;
            color: #065F46;
        }

        .status-badge.busy {
            background: #FEF3C7;
            color: #92400E;
        }

        .status-badge.offline {
            background: #F3F4F6;
            color: #6B7280;
        }

        .status-badge i {
            width: 6px;
            height: 6px;
            border-radius: 50%;
        }

        .status-badge.available i {
            background: #10B981;
        }

        .status-badge.busy i {
            background: #F59E0B;
        }

        .status-badge.offline i {
            background: #6B7280;
        }

        .current-task {
            font-size: 14px;
            color: #6B7280;
        }

        .workload-bar {
            width: 100px;
            height: 8px;
            background: #E5E7EB;
            border-radius: 4px;
            overflow: hidden;
        }

        .workload-fill {
            height: 100%;
            background: #3B82F6;
            border-radius: 4px;
            transition: width 0.3s ease;
        }

        .workload-text {
            font-size: 12px;
            color: #6B7280;
            margin-left: 8px;
        }

        .table-actions {
            display: flex;
            gap: 8px;
        }

        .action-btn {
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 6px;
            background: #3B82F6;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .action-btn:hover {
            background: #2563EB;
            transform: translateY(-1px);
        }

        .action-btn.edit {
            background: #3B82F6;
            color: white;
        }

        .action-btn.edit:hover {
            background: #2563EB;
            transform: translateY(-1px);
        }

        .action-btn.edit i {
            font-size: 16px;
            line-height: 1;
            display: block;
        }

        .action-btn.delete {
            background-color: #EF4444;
            border-color: #EF4444;
            color: white;
            border-radius: 6px;
            border: none;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .action-btn.delete:hover {
            background-color: #DC2626;
            border-color: #DC2626;
            transform: translateY(-1px);
        }

        .action-btn.delete i {
            font-size: 16px;
            line-height: 1;
            display: block;
        }

        /* Staff Management Page Styles */
        .staff-management-content {
            padding: 0;
        }

        .staff-overview-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .overview-card {
            background: white;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 16px;
            transition: transform 0.2s ease;
        }

        .overview-card:hover {
            transform: translateY(-2px);
        }

        .card-icon {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
        }

        .card-icon.available {
            background: linear-gradient(135deg, #10B981, #059669);
        }

        .card-icon.busy {
            background: linear-gradient(135deg, #F59E0B, #D97706);
        }

        .card-icon.total {
            background: linear-gradient(135deg, #3B82F6, #2563EB);
        }

        .card-content h3 {
            font-size: 32px;
            font-weight: 700;
            color: #111827;
            margin: 0 0 4px 0;
        }

        .card-content p {
            font-size: 14px;
            color: #6B7280;
            margin: 0;
        }

        /* Task Actions Styles */
        .task-actions {
            display: flex;
            gap: 8px;
            margin-left: auto;
        }

        .manual-assign-btn {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 6px;
            background: #F3F4F6;
            color: #6B7280;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-size: 12px;
        }

        .manual-assign-btn:hover {
            background: #3B82F6;
            color: white;
        }

        .staff-assignment-info {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #F3F4F6;
        }

        .assigned-count {
            font-size: 12px;
            color: #6B7280;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .assigned-count i {
            color: #3B82F6;
        }

        /* Payments Page Styles */
        .payment-overview-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .card-icon.pending {
            background: linear-gradient(135deg, #F59E0B, #D97706);
        }

        .card-icon.completed {
            background: linear-gradient(135deg, #10B981, #059669);
        }

        .card-icon.total {
            background: linear-gradient(135deg, #3B82F6, #2563EB);
        }

        .payment-controls {
            display: flex;
            gap: 16px;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .filter-controls {
            margin-left: auto;
        }

        .filter-select {
            padding: 10px 16px;
            border: 1px solid #D1D5DB;
            border-radius: 8px;
            background: white;
            font-size: 14px;
            color: #374151;
        }

        .payments-table-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            overflow: visible;
            min-height: 400px;
        }

        .payments-table {
            width: 100%;
            border-collapse: collapse;
        }

        .payments-table th {
            background: #F9FAFB;
            padding: 16px 12px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
            color: #374151;
            border-bottom: 1px solid #E5E7EB;
        }

        .payments-table td {
            padding: 16px 12px;
            border-bottom: 1px solid #F3F4F6;
            vertical-align: middle;
            background-color: white;
            min-height: 50px;
        }

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

        .payments-table tbody tr:last-child td {
            border-bottom: none;
        }

        .payments-table tbody tr {
            display: table-row;
            visibility: visible;
            background-color: white;
        }

        .payments-table tbody td {
            display: table-cell;
            visibility: visible;
        }

        .table-container {
            overflow-x: auto;
            min-height: 300px;
        }

        .status-badge.overdue {
            background: #FEE2E2;
            color: #DC2626;
        }

        .action-btn.view {
            background: #DBEAFE;
            color: #1D4ED8;
        }

        .action-btn.view:hover {
            background: #BFDBFE;
        }

        /* Enhanced Payment Table Styles */
        .order-id {
            font-weight: 600;
            color: #3B82F6;
            font-family: 'Courier New', monospace;
        }

        .customer-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .customer-name {
            font-weight: 600;
            color: #111827;
            font-size: 14px;
        }

        .customer-contact {
            font-size: 12px;
            color: #6B7280;
        }

        .service-type {
            font-weight: 500;
            color: #374151;
            font-size: 14px;
        }

        .amount {
            font-weight: 700;
            color: #059669;
            font-size: 16px;
        }

        .payment-method {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #374151;
        }

        .payment-method i {
            width: 16px;
            color: #6B7280;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-badge i {
            font-size: 10px;
        }

        .status-badge.completed {
            background: #D1FAE5;
            color: #065F46;
        }

        .status-badge.pending {
            background: #FEF3C7;
            color: #92400E;
        }

        .status-badge.overdue {
            background: #FEE2E2;
            color: #DC2626;
        }

        .date-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .date {
            font-weight: 500;
            color: #111827;
            font-size: 14px;
        }

        .time {
            font-size: 12px;
            color: #6B7280;
        }

        .action-buttons {
            display: flex;
            gap: 6px;
        }

        .action-btn.print {
            background: #F3F4F6;
            color: #6B7280;
        }

        .action-btn.print:hover {
            background: #E5E7EB;
            color: #374151;
        }

        .action-btn.reminder {
            background: #FEF3C7;
            color: #D97706;
        }

        .action-btn.reminder:hover {
            background: #FDE68A;
            color: #B45309;
        }


        .save-btn {
            background: #3B82F6;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 24px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s ease;
            align-self: flex-start;
        }

        .save-btn:hover {
            background: #2563EB;
        }

        .settings-options {
            display: grid;
            gap: 16px;
            margin-top: 16px;
        }

        .setting-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid #F3F4F6;
        }

        .setting-item:last-child {
            border-bottom: none;
        }

        .setting-info h5 {
            margin: 0 0 4px 0;
            font-size: 16px;
            font-weight: 500;
            color: #111827;
        }

        .setting-info p {
            margin: 0;
            font-size: 14px;
            color: #6B7280;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        .toggle-switch input:checked + .toggle-slider {
            background-color: #3B82F6;
        }

        .toggle-switch input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

        .security-actions {
            display: flex;
            gap: 12px;
            margin-top: 16px;
            flex-wrap: wrap;
        }

        .security-btn {
            background: #F3F4F6;
            color: #374151;
            border: 1px solid #D1D5DB;
            border-radius: 8px;
            padding: 12px 16px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .security-btn:hover {
            background: #E5E7EB;
            border-color: #9CA3AF;
        }

        .system-info {
            display: grid;
            gap: 12px;
            margin-top: 16px;
        }

        .info-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #F3F4F6;
        }

        .info-item:last-child {
            border-bottom: none;
        }

        .info-label {
            font-weight: 500;
            color: #374151;
        }

        .info-value {
            color: #6B7280;
            font-size: 14px;
        }

        /* Settings Section Styles */
        .subsection-title {
            font-size: 18px;
            font-weight: 600;
            color: #111827;
            margin: 0 0 16px 0;
            padding-bottom: 8px;
            border-bottom: 2px solid #E5E7EB;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 16px;
        }

        .form-row:last-child {
            margin-bottom: 0;
        }

        .settings-actions {
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid #E5E7EB;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .btn-primary {
            background: #3B82F6;
            color: white;
        }

        .btn-primary:hover {
            background: #2563EB;
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
            }
            
            .payment-controls {
                flex-direction: column;
                align-items: stretch;
            }
            
            .filter-controls {
                margin-left: 0;
            }
        }



        .settings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .setting-card {
            background: #F9FAFB;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            padding: 20px;
        }

        .setting-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #E5E7EB;
        }

        .setting-header h6 {
            font-size: 16px;
            font-weight: 600;
            color: #1F2937;
        }

        .setting-header i {
            color: #6B7280;
        }

        .setting-content {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .setting-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .setting-item label {
            font-size: 14px;
            font-weight: 500;
            color: #374151;
        }

        .setting-item input[type="range"] {
            width: 100%;
        }

        .setting-item select {
            padding: 8px 12px;
            border: 1px solid #D1D5DB;
            border-radius: 6px;
            background: white;
            font-size: 14px;
        }

        .complexity-rules {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .rule-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: white;
            border-radius: 6px;
            border: 1px solid #E5E7EB;
        }

        .service-type {
            font-weight: 500;
            color: #1F2937;
        }

        .complexity {
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .complexity:contains("High") {
            background: #FEE2E2;
            color: #DC2626;
        }

        .complexity:contains("Medium") {
            background: #FEF3C7;
            color: #D97706;
        }

        .complexity:contains("Low") {
            background: #D1FAE5;
            color: #059669;
        }

        .staff-needed {
            font-size: 12px;
            color: #6B7280;
            font-weight: 500;
        }

        .notification-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .notification-item label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #374151;
            cursor: pointer;
        }

        .notification-item input[type="checkbox"] {
            width: 16px;
            height: 16px;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .board-grid {
                grid-template-columns: 1fr;
            }
            
            .staff-grid {
                grid-template-columns: 1fr;
            }
            
            .settings-grid {
                grid-template-columns: 1fr;
            }
            
            .automation-controls {
                flex-direction: column;
                gap: 16px;
                align-items: flex-start;
            }
            
            .staff-overview {
                flex-direction: column;
                gap: 12px;
            }
        }

/* Custom Confirmation Modal */
.confirm-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 270px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.2s ease-out;
}

.confirm-header {
    padding: 20px 24px 0;
    background: white;
}

.confirm-header h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    text-align: center;
}

.confirm-body {
    padding: 20px 24px;
}

.confirm-body p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.confirm-footer {
    padding: 0 24px 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-footer .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-footer .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.confirm-footer .btn-secondary:hover {
    background: #e5e7eb;
}

.confirm-footer .btn-danger {
    background: #dc2626;
    color: white;
}

.confirm-footer .btn-danger:hover {
    background: #b91c1c;
}

.confirm-footer .btn-success {
    background: #10b981;
    color: white;
}

.confirm-footer .btn-success:hover {
    background: #059669;
}


/* ==================== FORGOT PASSWORD FULL SCREEN ==================== */

.forgot-password-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

/* ==================== SIDEBAR SCROLL FIX ==================== */

/* Prevent form scrolling when sidebar is open */
.sidebar.show ~ .main-content .order-management-section {
    overflow: hidden;
    height: 100vh;
}

/* Fix form container when sidebar is open */
.sidebar.show ~ .main-content .form-container {
    overflow: hidden;
    height: calc(100vh - 80px);
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
    height: 100vh;
}

.forgot-password-fullscreen:not(.hidden) {
    display: block;
}

.forgot-password-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.forgot-password-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 16px;
}

.back-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background: #f3f4f6;
}

.forgot-password-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.forgot-password-title i {
    color: #3b82f6;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

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

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.modal-title i {
    color: #3b82f6;
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-body {
    padding: 24px;
}

.modal-description {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
}

/* Forgot Password Link */
.forgot-password-section {
    text-align: center;
    margin-top: 16px;
}

.forgot-password-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.forgot-password-link i {
    font-size: 0.875rem;
}


/* Order Details Modal Header Styles - Specific for order details modal */
.order-details-modal .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    min-height: 60px;
}

.order-details-modal .modal-header h3 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 60%;
}

.modal-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.order-submitted-date {
    padding: 6px 12px !important;
    border-radius: 8px !important;
    background-color: #f8fafc !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-block !important;
}

.order-submitted-date span {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    display: block !important;
}


/* Ensure modal structure stability */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    justify-content: center !important;
    align-items: center !important;
}

.modal-content.order-details-modal {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-content.order-details-modal .modal-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.modal-content.order-details-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    scroll-behavior: smooth;
}

/* Custom scrollbar for modal body */
.modal-content.order-details-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-content.order-details-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content.order-details-modal .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-content.order-details-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.modal-content.order-details-modal .modal-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}


/* Clerk Order Details Modal Header Styles */
.order-info-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.order-submitted-info,
.order-status-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}


/* Success/Error Messages in Modal */
.modal-body .error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body .success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Attachments List Styles */
.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: background 0.2s;
}

.attachment-item:hover {
    background: #f3f4f6;
}

.attachment-item i {
    color: #6b7280;
    font-size: 14px;
}

.attachment-item a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-item a:hover {
    text-decoration: underline;
}

.attachment-item .file-size {
    color: #6b7280;
    font-size: 12px;
    white-space: nowrap;
}

/* Sales Transaction Logging Styles - COMPACT */
.sales-log-form-container {
    background: var(--background-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem auto;
    max-width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* FORCE COMPACT MODAL - OVERRIDE ALL HEIGHT RULES */
#sales-log-modal {
    max-height: none !important;
    height: auto !important;
}

#sales-log-modal .modal-content {
    max-height: none !important;
    height: auto !important;
    max-width: 320px !important;
    width: 90% !important;
}

#sales-log-modal .modal-body {
    max-height: none !important;
    height: auto !important;
    padding: 1rem !important;
}

.sales-log-form {
    width: 100%;
}

.sales-log-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

/* Green button for sales log form */
.sales-log-form .btn-success {
    background: #10b981 !important;
    color: white !important;
    border: none !important;
}

.sales-log-form .btn-success:hover {
    background: #059669 !important;
}

/* Green button for sales log modal */
#sales-log-modal .btn-success {
    background: #10b981 !important;
    color: white !important;
    border: none !important;
}

#sales-log-modal .btn-success:hover {
    background: #059669 !important;
}

/* Dropdown Styles for Date Filters */
.dropdown-container {
    position: relative !important;
}

.dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
    background: white !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.selected {
    background-color: #3ba1f0;
    color: white;
}



