/* ============================================
   Site-Wide Styles - Consolidated CSS
   ============================================
   
   This file contains all shared styles for the AluFlow application.
   Organized by section for maintainability.
   
   Table of Contents:
   1. Base & Reset
   2. Navigation & Navbar
   3. Admin Page Components
   4. Badges & Status Indicators
   5. Buttons
   6. Cards & Containers
   7. Tables
   8. Forms & Inputs
   9. Modals
   10. Pagination
   11. Search Components
   12. Timeline Components
   13. Work Schedule Components
   14. Animations & Transitions
   15. Utility Classes
   16. Dark/Light Theme Overrides
   ============================================ */

/* ============================================
   1. Base & Reset
   ============================================ */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ============================================
   2. Navigation & Navbar
   ============================================ */
.navbar .nav-item {
    display: flex;
    align-items: center;
}

.navbar-section-header {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1rem 0 0.5rem 0;
    padding-left: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    width: 1rem;
    text-align: center;
}

.navbar .nav-item .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    line-height: 1;
}

.navbar .nav-item .btn.nav-link {
    color: inherit;
    text-decoration: none;
}

.navbar .nav-item .btn.nav-link:hover {
    color: var(--bs-primary);
}

/* Organization Hierarchy Expand/Collapse */
.expand-toggle {
    border: none !important;
    color: var(--bs-secondary) !important;
    padding: 2px 4px !important;
    transition: color 0.2s ease;
}

.expand-toggle:hover {
    color: var(--bs-primary) !important;
    background: none !important;
}

.expand-icon {
    transition: transform 0.2s ease;
}

.subcontractor-row {
    transition: all 0.3s ease;
}

/* Organization Tree Indentation */
.org-indent-1 { padding-left: 20px; }
.org-indent-2 { padding-left: 40px; }
.org-indent-3 { padding-left: 60px; }
.org-indent-4 { padding-left: 80px; }
.org-indent-5 { padding-left: 100px; }

/* ============================================
   3. Admin Page Components
   ============================================ */
.admin-container {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
}

.admin-card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.admin-icon {
    opacity: 0.8;
}

.stat-number {
    font-weight: bold;
    color: var(--bs-primary);
}

.stat-label {
    color: var(--bs-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

/* Search Pill */
.search-pill {
    background-color: var(--bg-tertiary);
    border-radius: 1000px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    flex: 1;
    max-width: 415px;
}

.search-pill input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    flex: 1;
}

.search-pill input::placeholder {
    color: var(--text-muted);
}

/* Filter & Org Dropdowns (native select - kept for fallback) */
.filter-dropdown,
.org-dropdown {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.filter-dropdown select,
.org-dropdown select {
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Theme-aware icon color for dropdown chevrons and search icons */
.filter-dropdown i,
.org-dropdown i,
.search-pill i,
.dark-panel-sm i,
.dark-panel-pill i,
.admin-custom-dropdown i {
    color: var(--text-muted);
}

/* Custom Admin Dropdown */
.admin-custom-dropdown {
    position: relative;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    user-select: none;
    min-width: 180px;
}

.admin-custom-dropdown-label {
    flex: 1;
    color: var(--text-primary);
    white-space: nowrap;
}

.admin-custom-dropdown-chevron {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.admin-custom-dropdown.open .admin-custom-dropdown-chevron {
    transform: rotate(180deg);
}

.admin-custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
}

.admin-custom-dropdown-item {
    padding: 0.5rem 0.85rem;
    font-size: 0.76rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.admin-custom-dropdown-item:hover {
    background-color: var(--hover-bg);
}

.admin-custom-dropdown-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.admin-custom-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1049;
}

/* Admin Table */
.admin-table {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table table {
    margin-bottom: 0;
}

.admin-table tr {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.admin-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Migration List */
.migration-list {
    max-height: 400px;
    overflow-y: auto;
}

/* ============================================
   4. Badges & Status Indicators
   ============================================ */
/* Admin Page Badges */
.badge-system {
    background-color: rgba(236, 29, 191, 0.2);
    color: #FF47D7;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.badge-immutable {
    background-color: rgba(217, 29, 33, 0.2);
    color: #F9606C;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.badge-active {
    background-color: rgba(4, 167, 9, 0.2);
    color: #1BD221;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
}

.badge-inactive {
    background-color: rgba(46, 46, 51, 0.2);
    color: #92939C;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
}

.badge-category {
    background-color: rgba(46, 46, 51, 0.2);
    color: #92939C;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
}

/* Trigger Badges */
.badge-trigger-before {
    background-color: rgba(46, 46, 51, 0.2);
    color: #92939C;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.badge-trigger-on-delivery {
    background-color: rgba(43, 108, 248, 0.2);
    color: #4A84FF;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

.badge-trigger-after {
    background-color: rgba(210, 32, 157, 0.2);
    color: #F114C0;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
}

/* Workflow Skill Badges */
.workflow-skill-badge {
    min-width: 110px;
    text-align: center;
}

/* Search Highlight */
.search-highlight {
    background-color: #fff3cd;
    padding: 0.1em 0.2em;
    border-radius: 0.2em;
    font-weight: 600;
}

[data-bs-theme="dark"] .search-highlight,
[data-theme="dark"] .search-highlight {
    background-color: #664d03;
    color: #fff3cd;
}

/* ============================================
   5. Buttons
   ============================================ */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-action i {
    flex-shrink: 0;
}

.btn-edit {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    border: none;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
}

.btn-edit:hover {
    background-color: var(--bg-quaternary);
    color: var(--text-primary);
}

.btn-primary-action {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #FFFFFF;
}

.btn-primary-action:hover {
    background-color: #1854D8;
    color: #FFFFFF;
}

/* White circle around plus icon in create buttons */
.btn-primary .fa-plus,
.btn-primary-action .fa-plus,
.btn-action .fa-plus {
    background-color: #FFFFFF;
    color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Button Group Display */
.btn-group-flex { 
    display: flex; 
}

/* Action Icon Buttons - Clean, themed style for dark/light mode */
.btn-action-icon {
    background-color: transparent;
    border: 1px solid var(--border-color, #dee2e6);
    color: var(--text-color, #212529);
    border-radius: 6px;
    padding: 0.375rem 0.5rem;
    transition: all 0.2s ease;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action-icon:hover {
    background-color: var(--hover-bg, #f8f9fa);
    border-color: var(--primary-color, #1D64FD);
    color: var(--primary-color, #1D64FD);
}

.btn-action-icon:active {
    background-color: var(--active-bg, #e9ecef);
}

/* Warning variant for deactivate button */
.btn-action-icon.btn-action-warning:hover {
    border-color: #ffc107;
    color: #ffc107;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .btn-action-icon {
        border-color: #495057;
        color: #dee2e6;
    }
    
    .btn-action-icon:hover {
        background-color: #343a40;
        border-color: #1D64FD;
        color: #1D64FD;
    }
    
    .btn-action-icon:active {
        background-color: #495057;
    }
}

/* ============================================
   6. Cards & Containers
   ============================================ */
/* Schedule Card */
.schedule-card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.schedule-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.schedule-card .card-header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    position: relative;
}

.schedule-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--secondary-color));
}

/* Shift Detail Card */
.shift-detail-card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.shift-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.shift-detail-card .card-header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    position: relative;
    padding: 1rem 1.25rem;
}

.shift-detail-card .card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--secondary-color));
}

/* Info Items */
.info-item {
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--accent-secondary);
    transition: var(--transition-base);
}

.info-item:hover {
    background: var(--accent-primary);
    transform: translateY(-1px);
}

.info-item strong {
    display: block;
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.25rem;
}

.info-item p {
    line-height: 1.3;
}

/* Card Scrollable Content */
.card-body-scrollable { max-height: 400px; overflow-y: auto; }
.card-body-scrollable-sm { max-height: 200px; overflow-y: auto; }
.card-body-scrollable-lg { max-height: 600px; overflow-y: auto; }

/* Chart Container */
.chart-container { 
    height: 300px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--secondary-bg); 
    border-radius: 8px; 
}

/* Loading Overlay */
.loading-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(255,255,255,0.8); 
    z-index: 1000; 
}

[data-bs-theme="dark"] .loading-overlay,
[data-theme="dark"] .loading-overlay {
    background: rgba(0,0,0,0.8);
}

/* Not Authorized Card */
.not-authorized-card { 
    max-width: 500px; 
}

/* ============================================
   7. Tables
   ============================================ */
/* Table Column Utilities */
.col-width-60 { width: 60px; }
.col-width-80 { width: 80px; }
.col-width-100 { width: 100px; }
.col-width-120 { width: 120px; }
.col-width-150 { width: 150px; }
.col-width-200 { width: 200px; }
.col-width-250 { width: 250px; }
.col-width-300 { width: 300px; }

/* System Settings Table */
.system-settings-table {
    table-layout: fixed;
    width: 100%;
}

.system-settings-table .col-key { width: 20%; }
.system-settings-table .col-value { width: 40%; }
.system-settings-table .col-description { width: 25%; }
.system-settings-table .col-updated { width: 15%; }

.system-settings-table .col-value .input-group {
    min-width: 0;
}

.system-settings-table .col-value .form-control {
    min-width: 0;
}

.system-settings-table .col-updated small {
    line-height: 1.2;
}

/* Skill Assignment Table */
.skill-table .col-user { width: 200px; }
.skill-table .col-skill { min-width: 80px; }

/* Table Responsive with Max Height */
.table-responsive-scroll { 
    max-height: 400px; 
    overflow-y: auto; 
}

/* Table Success Row */
.table-success {
    background-color: var(--bs-success-bg-subtle) !important;
}

[data-bs-theme="dark"] .table-success,
[data-theme="dark"] .table-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

/* Settings Table Row */
.settings-table-row {
    transition: var(--transition-colors);
}

.settings-table-row:hover {
    background-color: var(--hover-bg);
}

.settings-table-row.editing,
.setting-row.editing {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.settings-key {
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary);
}

.settings-description {
    color: var(--text-muted);
    font-style: italic;
}

.settings-save-indicator {
    opacity: 0;
    transition: opacity 0.3s;
}

.settings-save-indicator.show {
    opacity: 1;
}

.settings-input-warning {
    border-color: var(--warning-color, #ffa726) !important;
}

/* ============================================
   8. Forms & Inputs
   ============================================ */
/* Input Group Widths */
.input-group-sm { width: 200px; }
.input-group-md { width: 300px; }
.input-group-lg { width: 400px; }

.form-floating > .form-control-plaintext::placeholder, 
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

/* Password show/hide toggle button */
.password-toggle-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: var(--bs-secondary-color);
    padding: 0.25rem 0.5rem;
    line-height: 1;
    background: none;
    border: none;
}
.password-toggle-btn:hover {
    color: var(--bs-body-color);
}

.form-floating > .form-control-plaintext:focus::placeholder, 
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Text Transform Utilities */
.text-uppercase-input { 
    text-transform: uppercase; 
}

/* ============================================
   9. Modals
   ============================================ */
/* Modal Display States */
.modal-visible,
.modal.show { 
    display: block !important; 
}

.modal-hidden,
.modal.hide { 
    display: none !important; 
}

/* Modal Backdrop */
.modal-backdrop-themed {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Content */
.modal-content-themed {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Modal Header */
.modal-header-themed {
    background-color: var(--card-header-bg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.modal-header-themed.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.modal-header-themed.bg-success {
    background-color: #28a745 !important;
    color: white !important;
}

.modal-header-themed.bg-warning {
    background-color: #ffc107 !important;
    color: white !important;
}

/* Modal Body & Footer */
.modal-body-themed {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.modal-footer-themed {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

/* Checkbox List in Modals */
.list-group-item-action-themed {
    cursor: pointer;
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
}

.list-group-item-action-themed:hover {
    background-color: var(--hover-bg);
}

.list-group-item-action-themed input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Modal Scrollable Content */
.modal-scrollable-content {
    max-height: 300px;
    overflow-y: auto;
}

/* Create Job Modal Specific */
.create-job-section {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

/* ============================================
   10. Pagination
   ============================================ */
#paginationContainer {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    border-radius: 0 0 0.375rem 0.375rem;
    margin-top: 0 !important;
}

.pagination-sm .page-link {
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-link {
    color: var(--text-secondary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    margin: 0 2px;
    transition: all 0.15s ease-in-out;
}

.pagination .page-link:hover {
    color: var(--text-primary);
    background-color: var(--hover-bg);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: 0 2px 4px rgba(74, 78, 105, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--bg-card);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Page Size Selector */
.page-size-selector {
    min-width: 140px;
}

.page-size-selector .form-select {
    border-color: var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.15s ease-in-out;
    height: 38px;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    background-position: right 0.75rem center;
}

.page-size-selector .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 78, 105, 0.25);
}

.pagination-info {
    flex: 1;
    color: var(--text-secondary);
    padding-left: 1em;
}

.pagination-container-wrapper {
    background: linear-gradient(to bottom, transparent 0%, var(--bg-tertiary) 100%);
    border-radius: 0 0 0.375rem 0.375rem;
}

/* ============================================
   11. Search Components
   ============================================ */
.search-box .input-group {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.375rem;
    overflow: hidden;
}

.search-box .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-box .clear-search {
    border-left: none;
}

.search-box .clear-search:hover {
    background-color: var(--bs-secondary-bg);
    color: #dc3545;
}

[data-bs-theme="dark"] .search-box .clear-search:hover,
[data-theme="dark"] .search-box .clear-search:hover {
    background-color: #495057;
    color: #dc3545;
}

.search-results-overlay {
    top: 100%;
    right: 0;
    z-index: 1050;
    margin-top: 0.25rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease-in-out;
}

.search-results-overlay.show {
    opacity: 1;
    transform: translateY(0);
}

.search-results-overlay small {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .search-results-overlay small,
[data-theme="dark"] .search-results-overlay small {
    background-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
    border-color: var(--bs-border-color) !important;
}

/* ============================================
   12. Timeline Components
   ============================================ */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px #dee2e6;
}

.timeline-marker.bg-success {
    background-color: #198754 !important;
    box-shadow: 0 0 0 3px #198754;
}

.timeline-marker.bg-warning {
    background-color: #ffc107 !important;
    box-shadow: 0 0 0 3px #ffc107;
}

.timeline-marker.bg-secondary {
    background-color: #6c757d !important;
    box-shadow: 0 0 0 3px #6c757d;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
}

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

/* Job Actions Timeline */
.timeline-container {
    position: relative;
}

.timeline-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--bs-secondary) transparent;
    overflow-x: auto;
    /* Allow horizontal touch-swipe on tablets/mobile without fighting the page scroll */
    touch-action: pan-x;
}

.timeline-scroll::-webkit-scrollbar {
    height: 8px;
}

.timeline-scroll::-webkit-scrollbar-track {
    background: var(--bs-light);
    border-radius: 4px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

.timeline-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--bs-dark);
}

.timeline-card {
    transition: box-shadow 0.2s ease;
    position: relative;
}

.timeline-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-card .card {
    height: 100%;
    min-height: 200px;
}

.timeline-card .card-header {
    background-color: var(--bs-light);
    border-bottom: 1px solid var(--bs-border-color);
}

.timeline-card .card-footer {
    background-color: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
}

.timeline-card-min { 
    min-width: 280px; 
}

/* Completed Job Action Styling */
.timeline-card .card.border-success {
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.3);
    animation: completedGlow 2s ease-in-out;
}

.timeline-card .card.border-success.bg-success {
    background-color: rgba(25, 135, 84, 0.15) !important;
    border-color: #198754 !important;
    border-width: 2px !important;
}

.timeline-card .card.border-success .card-header.bg-success {
    background-color: rgba(25, 135, 84, 0.4) !important;
    color: #0f5132 !important;
    font-weight: 500;
}

.timeline-card .card.border-success .text-success {
    color: #0f5132 !important;
    font-weight: 500;
}

.timeline-card .card.border-success .badge.bg-success {
    background-color: #198754 !important;
    color: white !important;
    font-weight: 600;
}

.timeline-card .card.border-success:hover {
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.4);
    transition: all 0.3s ease;
}

/* ============================================
   13. Work Schedule Components
   ============================================ */
/* Interactive Weekly Schedule (Modal Edit Mode) */
.weekly-schedule-horizontal {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-tertiary);
    min-height: 220px;
    transition: var(--transition-colors);
    box-shadow: var(--shadow-sm);
}

.weekly-schedule-horizontal:hover {
    box-shadow: var(--shadow-md);
}

/* Day Configuration Cards (Interactive) */
.day-config-card {
    min-width: 180px;
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.day-config-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.day-config-card.work-day {
    background-color: var(--bg-secondary);
    border: 1px solid var(--success-color);
}

.day-config-card.off-day {
    border-color: var(--border-quaternary);
    background: var(--bg-quaternary);
    opacity: 0.8;
}

.day-header {
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-quaternary);
}

.day-name strong {
    display: block;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.day-name small {
    color: var(--text-quaternary);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-times {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-group {
    text-align: center;
}

.time-group input[type="number"],
.time-group input[type="time"] {
    text-align: center;
    font-weight: var(--font-weight-semibold);
}

.form-label-sm {
    margin-bottom: 0.25rem;
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.work-hours-display {
    text-align: center;
    padding: 0.5rem;
    background: var(--success-color);
    border-radius: 6px;
    margin-top: 0.5rem;
    color: white;
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-sm);
}

.off-day-content {
    text-align: center;
    padding: 2rem 0.75rem;
    color: var(--text-quaternary);
    font-weight: var(--font-weight-semibold);
    opacity: 0.7;
}

/* Readonly Weekly Schedule (Display Mode) */
.weekly-schedule-horizontal-readonly {
    display: flex;
    gap: 0.875rem;
    overflow-x: auto;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--quaternary-bg);
    min-height: 160px;
    transition: var(--transition-colors);
    box-shadow: inset 0 1px 3px var(--shadow-color);
}

/* Readonly Day Cards */
.day-config-card-readonly {
    min-width: 140px;
    flex: 1;
    padding: 0.875rem;
    border: 1px solid var(--border-quaternary);
    border-radius: 8px;
    background: var(--bg-card);
    text-align: center;
    color: var(--text-primary);
    transition: var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.day-config-card-readonly:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.day-config-card-readonly.work-day {
    background: linear-gradient(135deg, var(--bg-card), rgba(22, 101, 52, 0.05));
    color: var(--text-primary);
}

.day-config-card-readonly.off-day {
    border-color: var(--border-quaternary);
    background: var(--bg-quaternary);
    color: var(--text-quaternary);
    opacity: 0.7;
}

.day-config-card-readonly .day-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid var(--border-quaternary);
}

.day-config-card-readonly .day-name strong {
    display: block;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.day-config-card-readonly .day-name small {
    color: var(--text-quaternary);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.day-times-readonly {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.day-times-readonly .time-display {
    text-align: center;
    color: var(--text-primary);
    padding: 0.25rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 1px solid var(--border-quaternary);
}

.day-times-readonly .time-display strong {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.day-times-readonly .work-hours-display {
    text-align: center;
    padding: 0.375rem;
    background: var(--success-color);
    border-radius: 4px;
    margin-top: 0.375rem;
    color: white;
    font-weight: var(--font-weight-bold);
    box-shadow: var(--shadow-sm);
}

.day-config-card-readonly .off-day-content {
    text-align: center;
    padding: 1.5rem 0.75rem;
    color: var(--text-quaternary);
    font-weight: var(--font-weight-semibold);
    opacity: 0.8;
}

/* Enhanced Work Status Badges */
.work-status .badge {
    font-weight: var(--font-weight-bold);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.work-status .badge.bg-secondary {
    background: linear-gradient(135deg, var(--text-muted), #64748b) !important;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Enhanced Weekly Hours Summary */
.alert.alert-light {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--quaternary-bg)) !important;
    border: 1px solid var(--border-color) !important;
    border-left: 4px solid var(--info-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.alert.alert-light strong {
    color: var(--accent-primary) !important;
    font-weight: var(--font-weight-bold);
}

/* ============================================
   14. Animations & Transitions
   ============================================ */
/* Real-time Update Animations */
.progress-updated {
    animation: progressPulse 2s ease-in-out;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.status-updated {
    animation: statusGlow 2s ease-in-out;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.field-updated {
    background-color: #fff3cd !important;
    border-color: #ffeaa7 !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Progress Bar Animation */
.progress-bar {
    transition: width 1s ease-in-out;
}

/* Activity Feed Animations */
.activity-item {
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
    position: relative;
}

.activity-item:hover {
    background-color: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

.activity-new {
    border-left-color: var(--primary-color, #007bff);
    background-color: var(--highlight-bg, rgba(0, 123, 255, 0.1));
}

.activity-slide-in {
    animation: slideInFromTop 0.5s ease-out;
}

.activity-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

.pulse-update {
    animation: pulseUpdate 1s ease-out;
}

/* Highlight Update */
.highlight-update {
    animation: highlightFlash 1s ease-out;
}

/* Job Table Animations */
.job-row-new {
    background-color: var(--highlight-bg, rgba(0, 123, 255, 0.1));
    border: 1px solid var(--primary-color, #007bff);
}

.job-slide-in {
    animation: slideInFromTop 0.5s ease-out;
}

/* Activity Icon & Content */
.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

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

.activity-content h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.activity-content p {
    line-height: 1.4;
}

/* Keyframes */
@keyframes progressPulse {
    0% { box-shadow: 0 0 5px rgba(13, 110, 253, 0.3); }
    50% { box-shadow: 0 0 20px rgba(13, 110, 253, 0.8); }
    100% { box-shadow: 0 0 5px rgba(13, 110, 253, 0.3); }
}

@keyframes statusGlow {
    0% { box-shadow: 0 0 5px rgba(25, 135, 84, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(25, 135, 84, 0.8); transform: scale(1.1); }
    100% { box-shadow: 0 0 5px rgba(25, 135, 84, 0.3); transform: scale(1); }
}

@keyframes completedGlow {
    0% { box-shadow: 0 0 5px rgba(25, 135, 84, 0.3); }
    50% { box-shadow: 0 0 20px rgba(25, 135, 84, 0.6); }
    100% { box-shadow: 0 0 10px rgba(25, 135, 84, 0.3); }
}

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

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

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes pulseUpdate {
    0% { transform: scale(1); background-color: inherit; }
    50% { transform: scale(1.1); background-color: var(--success-color, #28a745); }
    100% { transform: scale(1); background-color: inherit; }
}

@keyframes highlightFlash {
    0% { background-color: transparent; transform: scale(1); }
    50% { background-color: var(--warning-color, #ffc107); transform: scale(1.05); color: #000; }
    100% { background-color: transparent; transform: scale(1); }
}

/* ============================================
   15. Utility Classes
   ============================================ */
/* Progress Bar Heights */
.progress-xs { height: 8px; }
.progress-sm { height: 12px; }
.progress-md { height: 20px; }

/* Text Truncation with Fixed Widths */
.text-truncate-sm { max-width: 100px; }
.text-truncate-md { max-width: 150px; }
.text-truncate-lg { max-width: 200px; }
.text-truncate-xl { max-width: 300px; }

/* Icon Dimensions */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }

/* Cursor Utilities */
.cursor-pointer { cursor: pointer; }

/* Progress Container Widths */
.progress-container-sm { width: 100px; }
.progress-container-md { width: 150px; }
.progress-container-lg { width: 200px; }

/* Toast Container */
.toast-container-top-end { z-index: 1050; }

/* Chart Help Tooltip */
.chart-help-icon {
    position: relative;
    display: inline-block;
}

.chart-help-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1050;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s, visibility 0.3s;
    line-height: 1.6;
    min-width: 350px;
}

.chart-help-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--card-bg) transparent transparent transparent;
}

.chart-help-icon:hover .chart-help-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Dashboard Compact Stats Widget */
.stats-widget-compact {
    position: relative;
    padding-left: 60px;
    min-height: 50px;
}

.stats-widget-compact .widget-icon-sm {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-widget-compact .widget-title-sm {
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    line-height: 1.2;
}

.stats-widget-compact .widget-subtitle-sm {
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* ============================================
   16. Dark/Light Theme Overrides
   ============================================ */
/* Dark Mode Timeline */
[data-theme="dark"] .timeline-card .card-header,
[data-bs-theme="dark"] .timeline-card .card-header {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .timeline-card .card-footer,
[data-bs-theme="dark"] .timeline-card .card-footer {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .timeline-scroll::-webkit-scrollbar-track,
[data-bs-theme="dark"] .timeline-scroll::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

[data-theme="dark"] .timeline-scroll::-webkit-scrollbar-thumb,
[data-bs-theme="dark"] .timeline-scroll::-webkit-scrollbar-thumb {
    background: var(--text-muted);
}

[data-theme="dark"] .timeline-scroll::-webkit-scrollbar-thumb:hover,
[data-bs-theme="dark"] .timeline-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Dark Mode Real-time Updates */
[data-bs-theme="dark"] .field-updated,
[data-theme="dark"] .field-updated {
    background-color: #332701 !important;
    border-color: #ffda6a !important;
}

[data-bs-theme="dark"] .progress-updated,
[data-theme="dark"] .progress-updated {
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.7);
}

/* Dark Mode Completed Timeline Cards */
[data-bs-theme="dark"] .timeline-card .card.border-success,
[data-theme="dark"] .timeline-card .card.border-success {
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.5);
}

[data-bs-theme="dark"] .timeline-card .card.border-success.bg-success,
[data-theme="dark"] .timeline-card .card.border-success.bg-success {
    background-color: rgba(25, 135, 84, 0.25) !important;
    border-color: #198754 !important;
}

[data-bs-theme="dark"] .timeline-card .card.border-success .card-header.bg-success,
[data-theme="dark"] .timeline-card .card.border-success .card-header.bg-success {
    background-color: rgba(25, 135, 84, 0.5) !important;
    color: #75b798 !important;
}

[data-bs-theme="dark"] .timeline-card .card.border-success .text-success,
[data-theme="dark"] .timeline-card .card.border-success .text-success {
    color: #75b798 !important;
}

[data-bs-theme="dark"] .timeline-card .card.border-success:hover,
[data-theme="dark"] .timeline-card .card.border-success:hover {
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.6);
}

/* Dark Mode Pagination */
[data-theme="dark"] #paginationContainer,
[data-bs-theme="dark"] #paginationContainer {
    border-top-color: var(--border-color) !important;
    background-color: var(--bg-tertiary) !important;
}

[data-theme="dark"] .pagination .page-link:hover,
[data-bs-theme="dark"] .pagination .page-link:hover {
    box-shadow: 0 2px 4px var(--shadow-color);
}

[data-theme="dark"] .pagination .page-item.active .page-link,
[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    box-shadow: 0 2px 4px rgba(74, 78, 105, 0.4);
}

[data-theme="dark"] .pagination-container-wrapper,
[data-bs-theme="dark"] .pagination-container-wrapper {
    background: linear-gradient(to bottom, transparent 0%, var(--bg-tertiary) 100%);
}

/* Light Mode Pagination */
[data-theme="light"] #paginationContainer {
    border-top-color: var(--border-color) !important;
    background-color: var(--bg-tertiary) !important;
}

[data-theme="light"] .pagination .page-link:hover {
    box-shadow: 0 2px 4px var(--shadow-color);
}

[data-theme="light"] .pagination .page-item.active .page-link {
    box-shadow: 0 2px 4px rgba(74, 78, 105, 0.3);
}

[data-theme="light"] .pagination-container-wrapper {
    background: linear-gradient(to bottom, transparent 0%, var(--bg-tertiary) 100%);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    /* System Settings Table */
    .system-settings-table .col-key { width: 25%; }
    .system-settings-table .col-value { width: 35%; }
    .system-settings-table .col-description { width: 25%; }
    .system-settings-table .col-updated { width: 15%; }
    
    /* Search Box */
    .search-box {
        margin-bottom: 1rem;
    }
    
    .search-results-overlay {
        right: auto;
        left: 0;
        text-align: left;
    }
    
    /* Pagination */
    .pagination-sm .page-link {
        padding: 0.25rem 0.5rem;
        margin: 0 1px;
        height: 34px;
    }
    
    .page-size-selector {
        min-width: 120px;
    }
    
    .page-size-selector .form-select {
        height: 34px;
        padding: 0.3rem 2.1rem 0.3rem 0.6rem;
        background-position: right 0.6rem center;
    }
    
    #paginationContainer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch !important;
        text-align: center;
    }
    
    .pagination-info {
        text-align: center;
        order: 3;
    }
    
    .page-size-selector {
        order: 1;
        align-self: center;
    }
    
    nav[aria-label="Page navigation"] {
        order: 2;
        align-self: center;
    }
    
    .pagination {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.25rem 0.375rem;
        height: 32px;
    }
    
    .page-size-selector .form-select {
        height: 32px;
        padding: 0.25rem 2rem 0.25rem 0.5rem;
        background-position: right 0.5rem center;
    }
    
    #paginationContainer {
        padding: 0.5rem;
    }
}

/* ============================================
   17. Status Badge Styles (Replaces Inline Styles)
   ============================================ */

/* Status Badges - Active/Inactive */
.badge-status-active {
    background-color: rgba(4, 167, 9, 0.2);
    color: #1BD221;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
}

.badge-status-inactive {
    background-color: rgba(46, 46, 51, 0.2);
    color: #92939C;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* System/Tag Badges */
.badge-system {
    background-color: rgba(236, 29, 191, 0.2);
    color: #FF47D7;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
}

.badge-required {
    background-color: rgba(217, 29, 33, 0.2);
    color: #F9606C;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* Trigger Timing Badges */
.badge-trigger-delivery {
    background-color: rgba(43, 108, 248, 0.2);
    color: #4A84FF;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
}

.badge-trigger-before {
    background-color: rgba(46, 46, 51, 0.2);
    color: #92939C;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
}

.badge-trigger-after {
    background-color: rgba(210, 32, 157, 0.2);
    color: #F114C0;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* ============================================
   18. Dark Panel Styles
   ============================================ */
.dark-panel {
    background-color: var(--card-bg, #1A1A1C);
    border-radius: 16px;
    padding: 1rem;
}

.dark-panel-sm {
    background-color: var(--input-bg, #1E1F22);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.dark-panel-pill {
    background-color: var(--input-bg, #1E1F22);
    border: 1px solid var(--border-color);
    border-radius: 1000px;
}

.dark-border {
    border: 1px solid var(--border-color, #252527);
}

/* Search Input Transparent */
.search-input-transparent {
    border: 0;
    background: transparent;
    outline: none;
    flex: 1;
    color: var(--text-color, #fff);
}

.search-input-transparent::placeholder {
    color: var(--text-muted, #92939C);
}

/* ============================================
   19. Modal Backdrop
   ============================================ */
.modal-backdrop-custom {
    background-color: rgba(0, 0, 0, 0.5);
}

/* ============================================
   20. Table Column Widths
   ============================================ */
.col-w-auto { width: auto !important; }
.col-w-40 { width: 40px; }
.col-w-80 { width: 80px; }
.col-w-100 { width: 100px; }
.col-w-120 { width: 120px; }
.col-w-140 { width: 140px; }
.col-w-150 { width: 150px; }
.col-w-180 { width: 180px; }
.col-w-200 { width: 200px; }
.col-w-300 { width: 300px; }
.col-w-400 { width: 400px; }
.col-w-10pct { width: 10%; }
.col-w-15pct { width: 15%; }
.col-w-20pct { width: 20%; }
.col-w-25pct { width: 25%; }

/* Table Row Styles */
.table-row-dark {
    background-color: var(--card-bg, #1A1A1C);
    border-bottom: 1px solid var(--border-color, #252527);
    color: var(--text-primary);
}

/* ============================================
   21. Skill Assignment Checkbox Styles
   ============================================ */
.skill-checkbox-assigned {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #04A709;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-checkbox-assigned .inner-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-checkbox-assigned .inner-circle i {
    color: #04A709;
}

.skill-checkbox-unassigned {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--input-bg, #1E1F22);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-checkbox-unassigned .inner-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #92939C;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-checkbox-unassigned .inner-circle i {
    color: #92939C;
}

/* ============================================
   22. Toast Container Styles
   ============================================ */
.toast-container-top-right {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 1055;
}

.toast-themed {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.toast-themed .toast-header {
    background-color: var(--card-header-bg);
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.toast-themed .toast-body {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* ============================================
   23. Form Select Width Utilities
   ============================================ */
.select-org-width {
    min-width: 280px;
    max-width: 350px;
}

.input-cost-width {
    max-width: 150px;
}

/* ============================================
   24. Cursor Utilities
   ============================================ */
.cursor-pointer { cursor: pointer; }
.cursor-help { cursor: help; }

/* ============================================
   25. Scrollable Card Body
   ============================================ */
.card-body-scroll {
    max-height: 400px;
    overflow-y: auto;
}

/* ============================================
   26. Sortable Table Header
   ============================================ */
th.sortable {
    cursor: pointer;
}

th.sortable:hover {
    background-color: var(--hover-bg, rgba(0, 0, 0, 0.05));
}

/* ============================================
   27. Checkbox Large
   ============================================ */
.form-check-input-lg {
    width: 20px;
    height: 20px;
}

/* ============================================
   28. Text Truncate with Max Width
   ============================================ */
.text-truncate-300 {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   29. Account Management Styles
   ============================================ */
.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 2rem;
}

.profile-picture-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .side-nav,
    .navbar,
    .no-print,
    .btn {
        display: none !important;
    }

    .content-page {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .estimate-print-header {
        display: block !important;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    table th,
    table td {
        border: 1px solid #333;
        padding: 4px 8px;
    }
}
