/* C:\xampp\htdocs\sample_collection\css\style.css */

:root {
    /* Color Palette - Premium Slate & Blue Theme */
    --primary-rgb: 108, 189, 69; /* Accurac Green */
    --primary: rgb(var(--primary-rgb));
    --primary-hover: #5da63c;
    --primary-light: rgba(var(--primary-rgb), 0.1);
    
    --secondary: #64748b;
    --secondary-hover: #475569;
    
    --success: #10b981; /* Green */
    --success-light: rgba(16, 185, 129, 0.1);
    
    --warning: #f59e0b; /* Orange/Yellow */
    --warning-light: rgba(245, 158, 11, 0.1);
    
    --danger: #ef4444; /* Red */
    --danger-light: rgba(239, 68, 68, 0.1);
    
    --info: #06b6d4; /* Cyan/Blue */
    --info-light: rgba(6, 182, 212, 0.1);

    --purple: #8b5cf6; /* Purple */
    --purple-light: rgba(139, 92, 246, 0.1);

    --dark-red: #7f1d1d; /* Dark Red for failure */
    --dark-red-light: rgba(127, 29, 29, 0.1);

    /* Light Theme Defaults */
    --bg-app: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-sidebar: #94a3b8;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(226, 232, 240, 0.8);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables Override */
body.dark-mode {
    --bg-app: #090d16;
    --bg-card: #131926;
    --bg-sidebar: #0b0f19;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-on-sidebar: #64748b;
    --border-color: #1e293b;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    
    --glass-bg: rgba(19, 25, 38, 0.75);
    --glass-border: rgba(30, 41, 59, 0.8);
}

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

html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color 0.3s, color 0.3s;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Typography & Links */
a {
    text-decoration: none;
    color: inherit;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Status colors and badges according to specifications */
.status-Scheduled { background-color: var(--info-light); color: var(--info); }
.status-EnRoute { background-color: var(--warning-light); color: var(--warning); }
.status-CollectionStarted { background-color: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.status-SampleCollected { background-color: var(--success-light); color: var(--success); }
.status-DeliveredtoLab { background-color: var(--success-light); color: var(--success); }
.status-SampleLogged { background-color: rgba(26, 188, 156, 0.15); color: #1abc9c; }
.status-FailedCollection { background-color: var(--dark-red-light); color: var(--dark-red); }
.status-RescheduleRequested { background-color: var(--warning-light); color: var(--warning); }
.status-Rescheduled { background-color: var(--purple-light); color: var(--purple); }
.status-Cancelled { background-color: rgba(100, 116, 139, 0.1); color: var(--secondary); }
.status-Closed { background-color: rgba(100, 116, 139, 0.1); color: var(--secondary); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 0.3rem;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-info { background: var(--info-light); color: var(--info); }

/* Utility Classes */
.hidden { display: none !important; }

/* View Transitions */
.app-view {
    animation: viewFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Skeleton / Shimmer Loading */
.skeleton {
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-card) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}
.skeleton-text.sm { width: 40%; }
.skeleton-text.md { width: 60%; }
.skeleton-text.lg { width: 80%; }
.skeleton-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.skeleton-card {
    height: 80px;
    width: 100%;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--border-color);
    opacity: 0.7;
}
.empty-state h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.empty-state p {
    font-size: 0.875rem;
    max-width: 320px;
    line-height: 1.5;
}
.empty-state-sm {
    padding: 1.5rem;
}
.empty-state-sm i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Monthly calendar styles for recurrence selection */
.monthly-calendar {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 8px;
}
.monthly-calendar .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}
.calendar-day {
    padding: 0.5rem 0.25rem;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: 1px solid transparent;
}
.calendar-day:hover { border-color: var(--border-color); }
.calendar-day.disabled { color: var(--text-muted); cursor: default; }
.calendar-day.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-hover);
}
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.grid-col-3 { flex: 0 0 25%; max-width: 25%; padding: 0.75rem; }
.grid-col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0.75rem; }
.grid-col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; padding: 0.75rem; }
.grid-col-6 { flex: 0 0 50%; max-width: 50%; padding: 0.75rem; }
.grid-col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; padding: 0.75rem; }
.grid-col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0.75rem; }
.grid-col-9 { flex: 0 0 75%; max-width: 75%; padding: 0.75rem; }
.grid-col-12 { flex: 0 0 100%; max-width: 100%; padding: 0.75rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    gap: 0.5rem;
    transition: var(--transition);
}
.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}
.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}
.btn-secondary:hover {
    background-color: var(--secondary-hover);
}
.btn-success {
    background-color: var(--success);
    color: #ffffff;
}
.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}
.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: var(--border-color);
}
.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary-light);
}
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.btn:active {
    transform: scale(0.97);
}
.btn-completed {
    background-color: var(--text-muted) !important;
    color: #ffffff !important;
    cursor: default;
    opacity: 0.7;
}
.btn-completed:hover {
    background-color: var(--text-muted) !important;
    box-shadow: none !important;
}
.step-completed-time {
    font-size: 0.75rem;
    color: var(--success);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.btn-block {
    display: flex;
    width: 100%;
}
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}
.btn-text {
    background: transparent;
    border: none;
    color: var(--primary);
    padding: 0;
    cursor: pointer;
    font-weight: 500;
}

/* Alert Boxes */
.alert-box {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.error-alert {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.success-alert {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* 1. LOGIN SCREEN SCREEN STYLING */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, var(--primary-light), transparent 50%),
                radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.1), transparent 50%),
                var(--bg-app);
    padding: 1.5rem;
}
.login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    transition: var(--transition);
}
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}
.login-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}
.login-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}
.form-inline {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.75rem;
}
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
}
.checkbox-label .label-text {
    color: var(--text-muted);
    font-weight: 400;
}
.form-group input, .form-group select, .form-group textarea {
    font-family: var(--font-sans);
    padding: 0.65rem 0.875rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    color: var(--text-main);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Demo Accounts Panel */
.test-accounts-panel {
    margin-top: 2rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
}
.test-accounts-panel h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
.account-badge {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    transition: var(--transition);
}
.account-badge:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}
.account-badge strong {
    color: var(--primary);
}
.account-badge span {
    color: var(--text-muted);
}

/* 2. MAIN APPLICATION LAYOUT */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    background-color: var(--bg-sidebar);
    color: var(--text-on-sidebar);
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-right: 1px solid var(--border-color);
    z-index: 100;
}
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.brand i {
    color: var(--primary);
}
.role-indicator {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
}
.sidebar-menu {
    flex-grow: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}
.sidebar-menu ul {
    list-style: none;
}
.sidebar-menu li {
    margin-bottom: 0.25rem;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}
.sidebar-menu li.active a, .sidebar-menu a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}
.sidebar-menu li.active {
    border-left: 3px solid var(--primary);
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.08) 0%, transparent 100%);
}
.sidebar-menu li a {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-right: 0.75rem;
}
.sidebar-menu a i {
    font-size: 1.1rem;
    width: 20px;
}
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}
.btn-sidebar-logout {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.btn-sidebar-logout:hover {
    background: rgba(255, 255, 255, 0.1);
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.sidebar .avatar {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.user-profile .info h4 {
    font-size: 0.875rem;
    color: #ffffff;
}
.user-profile .info span {
    font-size: 0.75rem;
    color: var(--text-on-sidebar);
}

/* Main content wrapper */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}
.top-bar {
    height: 70px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
    transition: background-color 0.3s;
}
.top-bar .left-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.icon-btn:hover {
    background-color: var(--border-color);
}
.top-bar .right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Notifications Dropdown Panel */
.notifications-dropdown {
    position: relative;
}
.dropdown-panel {
    position: absolute;
    right: 0;
    top: 50px;
    width: 320px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 120;
    overflow: hidden;
}
.panel-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-header h3 {
    font-size: 0.95rem;
}
.panel-list {
    max-height: 300px;
    overflow-y: auto;
}
.notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    transition: var(--transition);
}
.notif-item:hover {
    background-color: var(--bg-app);
}
.notif-item.notif-clickable:hover {
    background-color: rgba(var(--primary-rgb), 0.08);
}
.notif-item.notif-clickable:active {
    background-color: rgba(var(--primary-rgb), 0.15);
}
.notif-item.unread {
    background-color: rgba(var(--primary-rgb), 0.03);
    border-left: 3px solid var(--primary);
}
.notif-item h4 {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}
.notif-item p {
    color: var(--text-muted);
}
.notif-time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Emulator Slider Toggle style */
.emulator-switch {
    display: flex;
    align-items: center;
    background-color: var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}
.switch-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.5rem;
}
.switch-label input {
    display: none;
}
.slider {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
    background-color: var(--secondary);
    border-radius: 34px;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--success);
}
input:checked + .slider:before {
    transform: translateX(14px);
}

/* View Mounting Area */
.view-content {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
#view-collector {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.app-view {
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. DASHBOARD ANALYTICS PANEL & COMPONENT STYLING */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 1400px) {
    .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}
.kpi-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    cursor: pointer;
}
.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.kpi-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.kpi-card[data-status="scheduled"] .card-icon { background-color: var(--info-light); color: var(--info); }
.kpi-card[data-status="pending"] .card-icon { background-color: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.kpi-card[data-status="completed"] .card-icon { background-color: var(--success-light); color: var(--success); }
.kpi-card[data-status="delayed"] .card-icon { background-color: var(--danger-light); color: var(--danger); }
.kpi-card[data-status="recurring"] .card-icon { background-color: var(--purple-light); color: var(--purple); }
.kpi-card[data-status="failed"] .card-icon { background-color: var(--dark-red-light); color: var(--dark-red); }
.kpi-card[data-status="rescheduled"] .card-icon { background-color: var(--purple-light); color: var(--purple); }
.kpi-card[data-status="utilization"] .card-icon { background-color: rgba(6, 182, 212, 0.1); color: var(--info); }

.kpi-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
}
.kpi-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Rows & Cards */
.section-row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
    margin-bottom: 1.5rem;
}
.chart-container, .table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    background-clip: padding-box;
}
.container-header {
    margin-bottom: 1.25rem;
}
.container-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.container-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Custom Trends SVG graph container */
.trend-chart-panel {
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 20px;
    border-bottom: 1px solid var(--border-color);
}
.trend-bar-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 0.5rem;
}
.trend-bar {
    width: 60%;
    background: linear-gradient(to top, var(--primary), var(--info));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.5s ease-out;
    position: relative;
    display: flex;
    justify-content: center;
}
.trend-bar:hover {
    background: var(--primary-hover);
}
.trend-val {
    position: absolute;
    top: -20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.trend-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Scheduler Simulator Controls */
.scheduler-control-panel {
    background-color: var(--bg-app);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.scheduler-control-panel p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.scheduler-result-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--success);
}
.scheduler-dates-panel {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
}
.scheduler-dates-panel h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}
.scheduler-dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2rem;
    align-items: center;
    color: var(--text);
}
.scheduler-date-pill {
    background-color: var(--surface-muted);
    color: var(--text);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
}
.recurrence-list-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}
.recurrence-template-card {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}
.rec-card-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.rec-card-title h4 {
    font-size: 0.95rem;
}
.rec-card-header {
    user-select: none;
}
.rec-card-header:hover {
    background-color: rgba(0,0,0,0.02);
}
.grid-col-4 .rec-details-grid,
.grid-col-3 .rec-details-grid {
    grid-template-columns: 1fr;
}
.rec-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.rec-details-grid span i {
    width: 16px;
    color: var(--primary);
}

/* 4. TABLES & FORMS */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}
.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}
.table th {
    padding: 0.85rem 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.table tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.04);
}
.table tbody tr {
    transition: background-color 0.15s ease;
}
.table thead th {
    position: sticky;
    top: 0;
    background-color: var(--bg-card);
    z-index: 1;
}

/* Workload Tracker styling */
.workload-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.workload-card-item {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.workload-card-item .info h4 {
    font-size: 0.9rem;
}
.workload-bar-container {
    width: 100px;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.25rem;
}
.workload-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}
.workload-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Form layouts */
.card-form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Admin console compact styling */
#view-admin .grid-col-9 .card-form-wrapper,
#view-admin .grid-col-3 .card-form-wrapper {
    padding: 1.25rem;
}
#view-admin #users-table th,
#view-admin #users-table td {
    padding: 0.55rem 0.6rem;
    font-size: 0.82rem;
}
#view-admin #users-table th:first-child,
#view-admin #users-table td:first-child {
    padding-left: 0.75rem;
}
#view-admin #users-table th:last-child,
#view-admin #users-table td:last-child {
    padding-right: 0.75rem;
}
#view-admin #users-table th:nth-child(2),
#view-admin #users-table td:nth-child(2) {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#view-admin #users-table th:nth-child(3),
#view-admin #users-table td:nth-child(3) {
    width: 1%;
    white-space: nowrap;
}
#view-admin #users-table .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
}
#view-admin #users-table .btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
}
#view-admin .grid-col-3 .container-header h3 {
    font-size: 1rem;
}
#view-admin .grid-col-3 .container-header p {
    font-size: 0.8rem;
    margin-bottom: 0;
}
#view-admin .grid-col-3 h4 {
    margin-top: 12px !important;
    margin-bottom: 10px !important;
    font-size: 0.85rem;
}
#view-admin .grid-col-3 hr {
    margin: 15px 0 !important;
}
#view-admin .grid-col-3 .workload-card-item {
    padding: 0.5rem 0.6rem;
}
#view-admin .grid-col-3 .workload-card-item h4 {
    margin: 0;
    font-size: 0.85rem;
}
.responsive-form .form-row {
    display: flex;
    align-items: stretch;
    margin: 0 -0.5rem;
}
.responsive-form .form-row .form-group {
    justify-content: flex-start;
}
.responsive-form .form-row .form-group > label {
    flex-shrink: 0;
}
.responsive-form .form-row .form-group > input,
.responsive-form .form-row .form-group > select,
.responsive-form .form-row .form-group > textarea,
.responsive-form .form-row .form-group > .sample-types-grid,
.responsive-form .form-row .form-group > .checkbox-label,
.responsive-form .form-row .form-group > button,
.responsive-form .form-row .form-group > .form-row {
    margin-top: auto;
}
.responsive-form .form-row .form-group > .checkbox-label {
    margin-bottom: 0.5rem;
}
.responsive-form .form-row .form-group > .form-row {
    width: 100%;
}
.responsive-form .col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 0.5rem; }
.responsive-form .col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 0.5rem; }
.responsive-form .col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 0.5rem; }
.responsive-form .col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 0.5rem; }

.form-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: var(--primary);
}
.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* 5. TIMELINE COMPONENT */
.timeline-container-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 2rem;
}
.timeline-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}
.timeline-filters input {
    font-family: var(--font-sans);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    color: var(--text-main);
}
.timeline-scroll-axis {
    overflow-x: auto;
    width: 100%;
}
.timeline-timeline-wrapper {
    position: relative;
    min-width: 800px;
    padding-bottom: 2rem;
}
.timeline-hour-row {
    display: flex;
    border-bottom: 1px dashed var(--border-color);
    min-height: 70px;
    align-items: center;
}
.timeline-time-col {
    width: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.timeline-events-col {
    flex-grow: 1;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}
.timeline-event-card {
    background-color: var(--bg-app);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    min-width: 200px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}
.timeline-event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}
.timeline-event-card.timeline-highlight {
    animation: timelinePulse 1.5s ease-in-out 3;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.3);
}
@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0.1); }
}
.timeline-event-card h4 {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}
.timeline-event-card span {
    color: var(--text-muted);
}

/* 6. REPORTS VIEW FILTERS */
.report-filters-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.report-filters-bar {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--bg-app);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}
.filter-item {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 160px;
}
.filter-item label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    color: var(--text-muted);
}
.filter-item input, .filter-item select {
    font-family: var(--font-sans);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 0.85rem;
}
.filter-item.button-item {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-width: auto;
}

/* Staff performance badge lists */
.staff-perf-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.staff-perf-item {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}
.staff-perf-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
.perf-bar-wrapper {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}
.perf-bar-completed {
    height: 100%;
    background-color: var(--success);
}
.perf-bar-failed {
    height: 100%;
    background-color: var(--danger);
}

/* 7. MODALS */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 550px;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-close-btn {
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background-color: var(--bg-app);
}
.request-details-summary {
    background-color: var(--bg-app);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: grid;
    grid-template-columns: 160px 1fr;
    row-gap: 0.75rem;
    column-gap: 1rem;
    align-items: start;
}
.request-details-summary .summary-label {
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.request-details-summary .summary-label i {
    width: 16px;
    text-align: center;
}
.request-details-summary .summary-val {
    color: var(--text-main);
    word-break: break-word;
    min-height: 1.35rem;
}
.request-details-summary .summary-dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.request-details-summary .summary-dates-list .badge {
    margin: 0;
}
.request-details-summary .summary-val.summary-dates-list {
    padding: 0.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
@media (max-width: 720px) {
    .request-details-summary {
        grid-template-columns: 1fr;
    }
    .request-details-summary .summary-val,
    .request-details-summary .summary-label {
        align-self: stretch;
    }
}


/* 8. MOBILE VIEW SIMULATOR */
.phone-emulator {
    margin: 2rem auto;
    width: 375px;
    height: 720px;
    border: 12px solid #2d3748;
    border-radius: 36px;
    background-color: var(--bg-app);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
/* Phone Bezel elements */
.phone-emulator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 18px;
    background-color: #2d3748;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 1000;
}
.phone-emulator .view-content {
    padding: 1rem;
}
.phone-emulator .sidebar {
    display: none !important;
}
.phone-emulator .top-bar {
    height: 60px;
    padding: 0 1rem;
}
.phone-emulator .top-bar #toggle-sidebar-btn {
    display: none;
}
.phone-emulator .app-layout {
    flex-direction: column;
}
.phone-emulator .main-wrapper {
    height: 100%;
}
.phone-emulator .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.phone-emulator .grid-col-9,
.phone-emulator .grid-col-3,
.phone-emulator .grid-col-8,
.phone-emulator .grid-col-4,
.phone-emulator .grid-col-7,
.phone-emulator .grid-col-5,
.phone-emulator .grid-col-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0.5rem 0;
}
.phone-emulator .section-row {
    margin: 0;
}

/* Collector UI styling */
.collector-dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    overflow: hidden;
}
.collector-header-card {
    background-color: var(--bg-sidebar);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.collector-header-card h3 {
    font-size: 0.9rem;
}
.collector-header-card p {
    font-size: 0.8rem;
    color: var(--text-on-sidebar);
}
.gps-mock-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.gps-badge {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.gps-coordinates {
    font-size: 0.75rem;
    font-family: monospace;
}

.collector-split-layout {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.collector-tasks-panel {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.collector-staff-filter {
    margin-bottom: 1rem;
}
.collector-staff-filter label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.collector-staff-filter select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
}
.task-list-title {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.collector-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.collector-task-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.collector-task-card:hover, .collector-task-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    background-color: rgba(var(--primary-rgb), 0.01);
}
.collector-task-card.active {
    border-left: 3px solid var(--primary);
}
.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.task-card-header h4 {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.task-card-details {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    margin-top: 0.2rem;
}
.task-card-details div {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}
.task-card-details div i {
    width: 14px;
    font-size: 0.7rem;
}

/* Step wise Collector flow UI */
.collector-workflow-panel {
    flex: 1.5;
    min-width: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.workflow-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.placeholder-text-card {
    background-color: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    transition: var(--transition);
}
.placeholder-text-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}
.placeholder-text-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--border-color);
    transition: var(--transition);
}
.placeholder-text-card:hover i {
    color: var(--primary);
}
.workflow-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.active-task-header {
    background-color: var(--bg-app);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    position: relative;
}
.active-task-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.active-task-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.prio-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background-color: var(--danger-light);
    color: var(--danger);
    text-transform: uppercase;
}

.request-details {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    color: var(--text-muted);
    font-weight: 500;
    min-width: 90px;
}
.detail-value {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}
.detail-value.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.detail-value.link:hover {
    text-decoration: underline;
}
.detail-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0.75rem;
}
.detail-tab {
    padding: 0.4rem 0.8rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.detail-tab:hover {
    color: var(--primary);
}
.detail-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.history-date-group {
    margin-bottom: 1rem;
}
.history-date-group h5 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.history-photo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}
.history-photo-link:hover {
    background: var(--primary-light);
}
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}
/* Vertical line behind steps */
.workflow-steps::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 17px;
    width: 2px;
    height: calc(100% - 30px);
    background-color: var(--border-color);
    z-index: 1;
}
.step-card {
    display: flex;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-app);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.step-card[data-step-state="active"] .step-num {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}
.step-card[data-step-state="completed"] .step-num {
    border-color: var(--success);
    background-color: var(--success);
    color: #ffffff;
}
.step-card.step-locked {
    opacity: 0.55;
    pointer-events: none;
}
.step-content {
    flex-grow: 1;
    padding-top: 0.25rem;
}
.step-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.step-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.hidden-fields-wrapper {
    background-color: var(--bg-app);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
}
.btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: space-between;
}
.evidence-photo-display {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.evidence-photo-display label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.evidence-photo-display img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    object-fit: cover;
    display: block;
    margin-bottom: 0.75rem;
}
.evidence-photo-display .btn-outline {
    width: fit-content;
}
.workflow-reschedule-link {
    margin-top: 1.5rem;
    text-align: center;
}
.workflow-reschedule-link button {
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media(max-width: 1024px) {
    .sidebar {
        width: 70px;
    }
    .sidebar .brand span, .sidebar .role-indicator, .sidebar .user-profile .info {
        display: none;
    }
    .sidebar-menu a span {
        display: none;
    }
    .sidebar-menu a {
        justify-content: center;
        padding: 0.75rem 0;
    }
    .sidebar-menu li.active {
        border-left: none;
        border-bottom: 4px solid var(--primary);
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 1024px) {
    .grid-col-9, .grid-col-3, .grid-col-8, .grid-col-4, .grid-col-7, .grid-col-5, .grid-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
@media(max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .top-bar {
        padding: 0 1rem;
    }
    .responsive-form .form-row {
        flex-direction: column;
        margin: 0;
    }
    .responsive-form .col-6, .responsive-form .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }
    .form-actions {
        flex-direction: column-reverse;
    }
    .form-actions button {
        width: 100%;
    }
    .report-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-item {
        width: 100%;
    }
    /* Collector view responsive adjustments */
    .collector-split-layout {
        flex-wrap: wrap;
        height: auto;
        min-height: auto;
        overflow: visible;
    }
    .collector-tasks-panel {
        max-height: 400px;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .collector-workflow-panel {
        flex: 0 0 100%;
        overflow-y: visible;
        max-height: none;
    }
}

/* =========================================================
   9. ANDROID / CAPACITOR NATIVE APP STYLES
   ========================================================= */

/* Sidebar overlay hidden by default on desktop */
.sidebar-overlay {
    display: none;
}

/* Hide emulator toggle when running inside Capacitor native app */
.capacitor-native .emulator-switch,
.capacitor-native #emulator-toggle-container {
    display: none !important;
}

/* Safe area insets for notches and gesture bars */
.capacitor-android body,
.capacitor-ios body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.capacitor-android .app-layout,
.capacitor-ios .app-layout {
    height: 100vh;
    height: 100dvh;
}

/* Android status bar overlap compensation */
.capacitor-android .top-bar {
    padding-top: calc(0.5rem + env(safe-area-inset-top));
    height: auto;
    min-height: 56px;
}
.capacitor-ios .top-bar {
    padding-top: calc(0.5rem + env(safe-area-inset-top));
    height: auto;
    min-height: 56px;
}

/* Sidebar becomes an overlay on mobile native */
@media (max-width: 768px) {
    .capacitor-native body {
        padding-bottom: 0;
    }

    .capacitor-native .app-layout {
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
    }

    .capacitor-native .main-wrapper {
        min-height: 0;
    }

    .capacitor-native .top-bar {
        min-height: 52px;
        padding: calc(0.35rem + env(safe-area-inset-top)) 0.75rem 0.35rem;
        flex-shrink: 0;
    }

    .capacitor-native .top-bar .left-section,
    .capacitor-native .top-bar .right-section {
        gap: 0.5rem;
    }

    .capacitor-native .view-content {
        min-height: 0;
        padding: 0.65rem;
        padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    }

    .capacitor-native #view-collector {
        min-height: 0;
        height: 100%;
    }

    .capacitor-native #view-collector > .table-container {
        min-height: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .capacitor-native #view-collector .container-header {
        flex-shrink: 0;
    }

    .capacitor-native .collector-split-layout {
        flex: 1 1 auto;
        height: 100%;
        max-height: none;
        min-height: 0;
        overflow: hidden;
    }

    .capacitor-native .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        z-index: 1000;
        border-right: none;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .capacitor-native .sidebar.open {
        transform: translateX(0);
    }
    .capacitor-native .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .capacitor-native .sidebar-overlay.active {
        display: block;
    }
    .capacitor-native .sidebar .brand span,
    .capacitor-native .sidebar .role-indicator,
    .capacitor-native .sidebar .user-profile .info {
        display: block;
    }
    .capacitor-native .sidebar-menu a span {
        display: inline;
    }
    .capacitor-native .sidebar-menu a {
        justify-content: flex-start;
        padding: 0.75rem 1.5rem;
    }
    .capacitor-native .sidebar.collapsed {
        width: 280px;
    }
}

/* Touch-friendly tap targets (minimum 48px) */
.capacitor-native .btn,
.capacitor-native .icon-btn,
.capacitor-native .sidebar-menu a,
.capacitor-native .account-badge,
.capacitor-native .kpi-card,
.capacitor-native .collector-task-card,
.capacitor-native .timeline-event-card,
.capacitor-native .modal-close-btn {
    min-height: 48px;
    min-width: 48px;
}

.capacitor-native .btn-sm {
    min-height: 40px;
}

/* Larger form inputs for touch */
.capacitor-native .form-group input,
.capacitor-native .form-group select,
.capacitor-native .form-group textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.75rem 1rem;
}

/* Bottom sheet modals on mobile native */
@media (max-width: 768px) {
    .capacitor-native .modal-wrapper {
        align-items: flex-end;
        justify-content: center;
    }
    .capacitor-native .modal-card {
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        animation: modalSlideUpMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 85vh;
        display: flex;
        flex-direction: column;
    }
    @keyframes modalSlideUpMobile {
        from { opacity: 0; transform: translateY(100%); }
        to { opacity: 1; transform: translateY(0); }
    }
    .capacitor-native .modal-card > form {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    .capacitor-native .modal-body {
        flex: 1;
        overflow-y: auto;
        max-height: none;
    }
    .capacitor-native .request-details-summary {
        grid-template-columns: 1fr;
    }

    .capacitor-native #view-timeline {
        height: 100%;
        min-height: 0;
    }

    .capacitor-native .timeline-container-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        padding: 0.85rem;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .capacitor-native .timeline-filters {
        display: block;
        padding-bottom: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .capacitor-native .timeline-filters .left h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .capacitor-native .timeline-filters .left p {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }

    .capacitor-native .timeline-filters .right {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.45rem;
        margin-top: 0.85rem;
    }

    .capacitor-native .timeline-filters label {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .capacitor-native .timeline-filters input,
    .capacitor-native .timeline-filters select {
        width: 100%;
        min-height: 46px;
        padding: 0.65rem 0.75rem;
        font-size: 16px;
        border-radius: var(--radius-md);
    }

    .capacitor-native .timeline-scroll-axis {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 0.15rem;
    }

    .capacitor-native .timeline-timeline-wrapper {
        min-width: 0;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .capacitor-native .timeline-hour-row {
        display: block;
        min-height: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .capacitor-native .timeline-time-col {
        width: auto;
        margin-bottom: 0.5rem;
        font-size: 0.78rem;
        color: var(--primary);
    }

    .capacitor-native .timeline-events-col {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 0;
    }

    .capacitor-native .timeline-event-card {
        width: 100%;
        min-width: 0;
        border-left-width: 5px;
        border-radius: var(--radius-md);
        padding: 0.75rem 0.85rem;
        font-size: 0.82rem;
        gap: 0.25rem;
    }

    .capacitor-native .timeline-event-card h4 {
        font-size: 0.95rem;
        line-height: 1.25;
        margin-bottom: 0.15rem;
    }

    .capacitor-native .timeline-event-card span {
        line-height: 1.35;
    }

    .capacitor-native #timeline-hours-mount > .card-form-wrapper {
        padding: 0.85rem;
        margin-bottom: 0.85rem !important;
        border-radius: var(--radius-lg);
    }

    .capacitor-native #timeline-hours-mount > .card-form-wrapper .container-header {
        display: block;
        margin-bottom: 0.75rem !important;
    }

    .capacitor-native #timeline-hours-mount > .card-form-wrapper .container-header h3 {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .capacitor-native #timeline-hours-mount > .card-form-wrapper > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.65rem !important;
    }
}

/* Swipeable table wrapper */
.capacitor-native .table-wrapper {
    -webkit-overflow-scrolling: touch;
}

/* Smooth scrolling with momentum */
.capacitor-native .view-content,
.capacitor-native .panel-list,
.capacitor-native .collector-tasks-panel,
.capacitor-native .collector-workflow-panel,
.capacitor-native .recurrence-list-panel {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* Remove hover effects on touch devices for snappier feel */
.capacitor-native .btn:hover,
.capacitor-native .kpi-card:hover,
.capacitor-native .collector-task-card:hover,
.capacitor-native .timeline-event-card:hover {
    transform: none;
}

.capacitor-native .btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* Active state feedback for touch */
.capacitor-native .sidebar-menu li.active a {
    background-color: rgba(var(--primary-rgb), 0.12);
}

/* Keyboard handling: prevent body shrink and keep forms usable */
.capacitor-native.keyboard-open .app-layout {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
}

.capacitor-native.keyboard-open .view-content {
    padding-bottom: 2rem;
}

/* Compact top bar title on mobile */
@media (max-width: 768px) {
    .capacitor-native #view-title {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
}

/* Demo accounts panel grid on very small screens */
@media (max-width: 400px) {
    .capacitor-native .accounts-grid {
        grid-template-columns: 1fr;
    }
    .capacitor-native .login-card {
        padding: 1.5rem;
    }
    .capacitor-native .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .capacitor-native .kpi-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    .capacitor-native .kpi-card .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    .capacitor-native .kpi-card h3 {
        font-size: 1.25rem;
    }
}

/* =========================================================
   UNASSIGNED REQUESTS — Native Card Layout
   ========================================================= */

.unassigned-cards-list {
    display: none;
}
.unassigned-task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}
.unassigned-task-card .task-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.unassigned-task-card .task-card-header h4 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-main);
}
.unassigned-task-card .task-card-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}
.unassigned-task-card .task-card-details i {
    width: 1rem;
    text-align: center;
    margin-right: 0.3rem;
}
.unassigned-task-card .task-card-action {
    display: flex;
    justify-content: flex-end;
}
.unassigned-task-card .task-card-action .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
}

.capacitor-native .unassigned-cards-list {
    display: block;
}
.capacitor-native .unassigned-task-card {
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.4rem;
    border-radius: var(--radius-sm);
}
.capacitor-native .unassigned-task-card .task-card-header h4 {
    font-size: 0.8rem;
}
.capacitor-native .unassigned-task-card .task-card-details {
    font-size: 0.7rem;
}
.capacitor-native .unassigned-task-card .task-card-action .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
}

/* Native: force single-column layout */
.capacitor-native .grid-col-3,
.capacitor-native .grid-col-4,
.capacitor-native .grid-col-5,
.capacitor-native .grid-col-6,
.capacitor-native .grid-col-7,
.capacitor-native .grid-col-8,
.capacitor-native .grid-col-9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0.5rem 0;
}

/* =========================================================
   COLLECTOR VIEW — Native App Mobile Layout
   ========================================================= */

/* Native: compact header */
.capacitor-native .collector-header-card {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.4rem;
}

/* Native: single-column layout */
.capacitor-native .collector-split-layout {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

/* Native: task list takes full width */
.capacitor-native .collector-tasks-panel {
    flex: 1 1 auto;
    flex-basis: auto;
    max-width: 100%;
    max-height: none;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0;
}

/* Native: even more compact task cards */
.capacitor-native .collector-task-card {
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.4rem;
    border-radius: var(--radius-sm);
}
.capacitor-native .task-card-header h4 {
    font-size: 0.8rem;
}
.capacitor-native .task-card-details {
    font-size: 0.7rem;
    gap: 0.25rem 0.5rem;
}

/* Native: workflow panel becomes full-screen detail view */
.capacitor-native .collector-workflow-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: var(--bg-app);
    padding: calc(0.65rem + env(safe-area-inset-top)) 0.65rem max(0.65rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.capacitor-native .collector-workflow-panel.detail-active {
    transform: translateX(0);
}

/* Back button for detail view */
.collector-detail-back-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.capacitor-native .collector-detail-back-btn {
    display: flex;
}

/* Android ripple-like active feedback */
.capacitor-android .btn,
.capacitor-android .icon-btn,
.capacitor-android .sidebar-menu a,
.capacitor-android .collector-task-card {
    -webkit-tap-highlight-color: rgba(var(--primary-rgb), 0.2);
}

/* Prevent text selection on interactive elements in native app */
.capacitor-native .btn,
.capacitor-native .icon-btn,
.capacitor-native .sidebar-menu a,
.capacitor-native .kpi-card,
.capacitor-native .collector-task-card,
.capacitor-native .timeline-event-card,
.capacitor-native .account-badge {
    -webkit-user-select: none;
    user-select: none;
}

/* Allow text selection on inputs, textareas, and content areas */
.capacitor-native input,
.capacitor-native textarea,
.capacitor-native .view-content,
.capacitor-native .modal-body,
.capacitor-native .panel-list {
    -webkit-user-select: auto;
    user-select: auto;
}

/* Hide scrollbars in native app for cleaner look */
.capacitor-native ::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .capacitor-native #step-complete {
        gap: 0.75rem;
    }

    .capacitor-native #step-complete .step-content {
        min-width: 0;
        width: 100%;
    }

    .capacitor-native #collector-completion-form {
        padding: 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .capacitor-native #collector-completion-form .form-group {
        margin-bottom: 0.9rem;
    }

    .capacitor-native #collector-completion-form label,
    .capacitor-native #collector-completion-form .help-text {
        line-height: 1.35;
    }

    .capacitor-native #collector-completion-form input,
    .capacitor-native #collector-completion-form textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .capacitor-native #collector-completion-form textarea {
        min-height: 92px;
    }

    .capacitor-native #photo-inputs-container {
        width: 100%;
    }

    .capacitor-native #collector-completion-form .photo-input-row {
        align-items: stretch !important;
        width: 100%;
    }

    .capacitor-native #collector-completion-form .photo-input {
        min-width: 0;
        flex: 1 1 auto;
    }

    .capacitor-native #collector-completion-form .btn-remove-photo {
        flex: 0 0 44px;
        min-width: 44px;
        padding-left: 0;
        padding-right: 0;
    }

    .capacitor-native #btn-add-photo {
        width: 100%;
        justify-content: center;
        margin-top: 0.35rem !important;
    }

    .capacitor-native #collector-completion-form .btn-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        margin-top: 0.9rem;
    }

    .capacitor-native #collector-completion-form .btn-group .btn,
    .capacitor-native #btn-report-failure-modal-trigger,
    .capacitor-native #btn-collect-payment,
    .capacitor-native #btn-submit-completion {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }

    .capacitor-native #collect-payment-amount-display:not(.hidden) {
        display: block;
        width: 100%;
        margin: 0 !important;
        text-align: center;
    }
}

/* GPS Collection Report */
.gps-report-filter {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}
.gps-report-filter label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}
.gps-report-filter input,
.gps-report-filter select {
    font-family: var(--font-sans);
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    color: var(--text-main);
}
.gps-route-map-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.gps-route-map-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.gps-route-map-header h4 {
    margin: 0;
}
.gps-route-map-header span {
    color: var(--text-muted);
    font-size: 0.85rem;
}
#gps-route-map {
    height: 420px;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.gps-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.gps-report-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-app));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}
.gps-report-card-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.gps-report-card-header span {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.2rem;
}
.gps-report-collector {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.gps-step-timeline {
    display: grid;
    gap: 0.6rem;
}
.gps-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0.65rem;
    padding: 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
}
.gps-step-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}
.gps-step.captured .gps-step-icon {
    background-color: rgba(34, 197, 94, 0.12);
    color: var(--success);
}
.gps-step strong,
.gps-step span,
.gps-step a,
.gps-step em {
    display: block;
}
.gps-step span,
.gps-step em {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.gps-step a {
    color: var(--primary);
    font-family: monospace;
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

@media (max-width: 600px) {
    .gps-report-filter,
    .gps-report-filter label,
    .gps-report-filter input,
    .gps-report-filter select {
        width: 100%;
    }
    .gps-report-filter,
    .gps-route-map-header {
        display: block;
    }
    .gps-report-filter label + label {
        margin-top: 0.75rem;
    }
    #gps-route-map {
        height: 320px;
    }
}
