/* ╔═══════════════════════════════════════════════════════════════════════════╗
   ║          FIREASSISTIQ PRO - ULTIMATE SCHEDULER                           ║
   ║                    Better Than Uptick Edition v4.0                        ║
   ╚═══════════════════════════════════════════════════════════════════════════╝ */

.uptick-scheduler {
    --primary: #E53935;
    --primary-dark: #C62828;
    --primary-light: #FFEBEE;
    --success: #4CAF50;
    --success-light: #E8F5E9;
    --warning: #FF9800;
    --warning-light: #FFF3E0;
    --error: #F44336;
    --error-light: #FFEBEE;
    --info: #2196F3;
    --info-light: #E3F2FD;
    --neutral-50: #FAFAFA;
    --neutral-100: #F5F5F5;
    --neutral-200: #EEEEEE;
    --neutral-300: #E0E0E0;
    --neutral-400: #BDBDBD;
    --neutral-500: #9E9E9E;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --transition: 0.2s ease;
    display: flex;
    height: calc(100vh - 64px);
    background: var(--neutral-100);
    overflow: hidden;
}

/* LEFT TASK PANEL */
.task-panel {
    width: 320px;
    min-width: 320px;
    background: white;
    border-right: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 10;
}
.task-panel.collapsed { width: 0; min-width: 0; border-right: none; overflow: hidden; }
.task-panel.collapsed .task-panel-toggle i { transform: rotate(180deg); }

.task-panel-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.task-panel-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.task-panel-title i { font-size: 18px; }
.task-count { background: rgba(255,255,255,0.25); padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.task-panel-toggle { width: 32px; height: 32px; border: none; background: rgba(255,255,255,0.15); color: white; border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.task-panel-toggle:hover { background: rgba(255,255,255,0.25); }
.task-panel-toggle i { transition: transform 0.3s ease; }

.task-panel-search { padding: 12px 16px; border-bottom: 1px solid var(--neutral-200); display: flex; align-items: center; gap: 10px; background: var(--neutral-50); }
.task-panel-search i { color: var(--neutral-500); }
.task-panel-search input { flex: 1; border: none; background: none; font-size: 14px; outline: none; }

.task-panel-filters { padding: 10px 16px; border-bottom: 1px solid var(--neutral-200); }
.task-panel-filters select { width: 100%; padding: 8px 12px; border: 1px solid var(--neutral-300); border-radius: var(--radius-md); font-size: 13px; background: white; cursor: pointer; }

.task-panel-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.task-panel-footer { padding: 12px 16px; border-top: 1px solid var(--neutral-200); background: var(--neutral-50); }

.btn-add-task { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); }
.btn-add-task:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Task Cards */
.task-card { background: white; border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); padding: 14px; cursor: grab; transition: var(--transition); position: relative; }
.task-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.task-card:active { cursor: grabbing; }
.task-card.dragging { opacity: 0.5; transform: rotate(3deg); }
.task-card.urgent { border-left: 4px solid var(--error); background: var(--error-light); }
.task-urgent-badge { position: absolute; top: -8px; right: 10px; background: var(--error); color: white; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.task-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.task-ref { font-weight: 700; font-size: 13px; color: var(--neutral-800); }
.task-type { font-size: 10px; font-weight: 600; color: white; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.task-site { font-weight: 600; font-size: 14px; color: var(--neutral-900); margin-bottom: 4px; }
.task-address { font-size: 12px; color: var(--neutral-600); display: flex; align-items: flex-start; gap: 6px; margin-bottom: 8px; }
.task-address i { color: var(--primary); margin-top: 2px; }
.task-footer { display: flex; gap: 12px; font-size: 12px; color: var(--neutral-500); }
.task-footer span { display: flex; align-items: center; gap: 4px; }
.task-drag-hint { display: none; align-items: center; justify-content: center; gap: 6px; padding: 8px; margin-top: 10px; background: var(--neutral-100); border-radius: var(--radius-md); font-size: 11px; color: var(--neutral-500); }
.task-card:hover .task-drag-hint { display: flex; }
.task-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; color: var(--neutral-500); text-align: center; }
.task-empty i { font-size: 48px; color: var(--success); margin-bottom: 12px; }
.task-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; color: var(--neutral-500); }
.task-loading i { font-size: 32px; margin-bottom: 12px; color: var(--primary); }

/* MAIN SCHEDULER */
.scheduler-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.scheduler-header { padding: 16px 24px; background: white; border-bottom: 1px solid var(--neutral-200); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.scheduler-header-left { display: flex; align-items: center; gap: 20px; }
.scheduler-nav { display: flex; align-items: center; gap: 4px; }
.nav-btn { width: 36px; height: 36px; border: 1px solid var(--neutral-300); background: white; border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--neutral-700); transition: var(--transition); }
.nav-btn:hover { background: var(--neutral-100); border-color: var(--neutral-400); }
.nav-btn.today-btn { width: auto; padding: 0 16px; font-weight: 600; font-size: 13px; background: var(--primary); color: white; border-color: var(--primary); }
.nav-btn.today-btn:hover { background: var(--primary-dark); }
.scheduler-date { font-size: 20px; font-weight: 700; color: var(--neutral-900); margin: 0; }
.scheduler-header-right { display: flex; align-items: center; gap: 16px; }
.view-toggle { display: flex; background: var(--neutral-100); border-radius: var(--radius-md); padding: 4px; }
.view-btn { padding: 8px 16px; border: none; background: none; font-size: 13px; font-weight: 500; color: var(--neutral-600); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.view-btn:hover { color: var(--neutral-800); }
.view-btn.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }
.scheduler-actions { display: flex; gap: 8px; }
.action-btn { width: 36px; height: 36px; border: 1px solid var(--neutral-300); background: white; border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--neutral-600); transition: var(--transition); }
.action-btn:hover { background: var(--neutral-100); color: var(--neutral-900); }
.sync-status { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--success); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.sync-dot.live { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Utilisation */
.utilisation-bar { padding: 16px 24px; background: white; border-bottom: 1px solid var(--neutral-200); display: flex; align-items: center; gap: 20px; }
.utilisation-info { display: flex; flex-direction: column; min-width: 120px; }
.utilisation-label { font-size: 11px; font-weight: 600; color: var(--neutral-500); text-transform: uppercase; letter-spacing: 0.5px; }
.utilisation-value { font-size: 24px; font-weight: 700; color: var(--neutral-900); }
.utilisation-track { flex: 1; height: 24px; background: var(--neutral-200); border-radius: var(--radius-lg); overflow: hidden; display: flex; }
.utilisation-segment { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: white; transition: width 0.5s ease; }
.utilisation-segment.working { background: var(--success); }
.utilisation-segment.travel { background: var(--warning); }
.utilisation-segment.available { background: var(--neutral-300); color: var(--neutral-600); }
.utilisation-legend { display: flex; gap: 16px; font-size: 12px; color: var(--neutral-600); }
.utilisation-legend span { display: flex; align-items: center; gap: 6px; }
.utilisation-legend i { font-size: 8px; }

/* CALENDAR GRID */
.calendar-grid { flex: 1; overflow: auto; display: grid; grid-template-columns: 200px repeat(7, minmax(140px, 1fr)); grid-auto-rows: min-content; background: white; }
.grid-corner { position: sticky; top: 0; left: 0; z-index: 20; background: var(--neutral-50); border-right: 1px solid var(--neutral-200); border-bottom: 2px solid var(--neutral-200); padding: 16px; display: flex; align-items: center; }
.grid-corner-label { font-size: 13px; font-weight: 600; color: var(--neutral-700); display: flex; align-items: center; gap: 8px; }
.grid-corner-label i { color: var(--primary); }

.grid-day-header { position: sticky; top: 0; z-index: 15; background: var(--neutral-50); border-right: 1px solid var(--neutral-200); border-bottom: 2px solid var(--neutral-200); padding: 12px 8px; text-align: center; }
.grid-day-header:last-child { border-right: none; }
.grid-day-header.today { background: var(--primary-light); }
.grid-day-header.today .day-name, .grid-day-header.today .day-num { color: var(--primary); }
.grid-day-header.weekend { background: var(--neutral-100); }
.day-name { font-size: 11px; font-weight: 600; color: var(--neutral-600); text-transform: uppercase; letter-spacing: 0.5px; }
.day-num { font-size: 22px; font-weight: 700; color: var(--neutral-900); line-height: 1.2; }
.day-month { font-size: 11px; color: var(--neutral-500); }

/* Technician Rows */
.grid-tech-row { display: contents; }
.grid-tech-cell { position: sticky; left: 0; z-index: 10; background: white; border-right: 1px solid var(--neutral-200); border-bottom: 1px solid var(--neutral-200); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.grid-tech-row:hover .grid-tech-cell { background: var(--neutral-50); }
.tech-info { display: flex; align-items: center; gap: 10px; }
.tech-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: white; position: relative; flex-shrink: 0; }
.tech-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tech-status { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid white; }
.tech-status.online { background: var(--success); }
.tech-status.offline { background: var(--neutral-400); }
.tech-status.busy { background: var(--warning); animation: pulse 2s infinite; }
.tech-details { display: flex; flex-direction: column; min-width: 0; }
.tech-name { font-weight: 600; font-size: 14px; color: var(--neutral-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tech-role { font-size: 12px; color: var(--neutral-500); }
.tech-stats { display: flex; gap: 12px; font-size: 12px; }
.tech-hours { font-weight: 600; color: var(--success); }
.tech-jobs { color: var(--neutral-500); }

/* Day Cells */
.grid-day-cell { border-right: 1px solid var(--neutral-200); border-bottom: 1px solid var(--neutral-200); padding: 8px; min-height: 120px; position: relative; transition: var(--transition); }
.grid-day-cell:last-child { border-right: none; }
.grid-day-cell.today { background: rgba(229, 57, 53, 0.03); }
.grid-day-cell.weekend { background: var(--neutral-50); }
.grid-day-cell.disabled { opacity: 0.5; pointer-events: none; }
.grid-day-cell.drop-hover { background: var(--primary-light); box-shadow: inset 0 0 0 2px var(--primary); }
.day-jobs { display: flex; flex-direction: column; gap: 6px; }
.day-empty { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--neutral-400); font-size: 12px; }
.add-job-btn { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; opacity: 0; transform: scale(0.8); transition: var(--transition); z-index: 5; }
.grid-day-cell:hover .add-job-btn { opacity: 1; transform: scale(1); }
.add-job-btn:hover { background: var(--primary-dark); transform: scale(1.1); }

/* JOB CARDS */
.job-card { background: white; border-radius: var(--radius-md); padding: 10px 12px; border-left: 4px solid var(--info); box-shadow: var(--shadow-sm); cursor: grab; transition: var(--transition); position: relative; font-size: 12px; }
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.job-card:active { cursor: grabbing; }
.job-card.dragging { opacity: 0.5; transform: rotate(2deg); }
.job-card.status-pending { border-left-color: var(--info); }
.job-card.status-confirmed { border-left-color: #8BC34A; }
.job-card.status-in-progress { border-left-color: var(--warning); animation: jobPulse 2s infinite; }
.job-card.status-completed { border-left-color: var(--success); background: var(--success-light); }
.job-card.status-urgent { border-left-color: var(--error); background: var(--error-light); }
.job-card.status-cancelled { border-left-color: var(--neutral-400); opacity: 0.5; }
@keyframes jobPulse { 0%, 100% { box-shadow: var(--shadow-sm); } 50% { box-shadow: 0 0 0 3px rgba(255,152,0,0.2), var(--shadow-sm); } }

.conflict-badge { position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; background: var(--error); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; z-index: 5; animation: shake 0.5s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.priority-badge { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; }
.priority-badge.high { background: var(--error); animation: pulse 1.5s infinite; }
.job-time { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--neutral-900); margin-bottom: 4px; }
.job-time i { color: var(--neutral-500); font-size: 10px; }
.job-duration { font-weight: 400; color: var(--neutral-500); font-size: 11px; }
.job-ref { font-size: 10px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.job-site { font-weight: 600; color: var(--neutral-800); margin-bottom: 2px; }
.job-address { color: var(--neutral-500); font-size: 11px; margin-bottom: 6px; }
.job-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.job-type { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.job-assets { font-size: 11px; color: var(--neutral-500); display: flex; align-items: center; gap: 4px; }
.job-travel { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--neutral-500); padding-top: 6px; border-top: 1px dashed var(--neutral-200); }
.job-travel i { color: var(--warning); }
.job-actions { position: absolute; top: -8px; right: -4px; display: flex; gap: 2px; opacity: 0; visibility: hidden; transition: var(--transition); }
.job-card:hover .job-actions { opacity: 1; visibility: visible; }
.job-action { width: 22px; height: 22px; border-radius: 50%; background: white; border: 1px solid var(--neutral-200); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--neutral-600); transition: var(--transition); box-shadow: var(--shadow-sm); }
.job-action:hover { background: var(--neutral-100); color: var(--info); }
.job-action.delete:hover { color: var(--error); }

/* JOB PREVIEW */
.job-preview-panel { position: fixed; z-index: 1000; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); width: 320px; opacity: 0; visibility: hidden; transform: translateX(10px); transition: var(--transition); }
.job-preview-panel.active { opacity: 1; visibility: visible; transform: translateX(0); }
.job-preview-header { padding: 14px 16px; background: var(--neutral-50); border-bottom: 1px solid var(--neutral-200); border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; justify-content: space-between; align-items: center; }
.job-preview-title { font-weight: 600; font-size: 13px; color: var(--neutral-700); }
.job-preview-header button { width: 24px; height: 24px; border: none; background: none; color: var(--neutral-500); cursor: pointer; border-radius: var(--radius-sm); }
.job-preview-header button:hover { background: var(--neutral-200); color: var(--neutral-800); }
.job-preview-body { padding: 16px; }
.preview-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.preview-ref { font-weight: 700; font-size: 14px; color: var(--neutral-900); }
.preview-type { font-size: 10px; font-weight: 600; color: white; padding: 3px 10px; border-radius: 4px; }
.preview-site { font-weight: 600; font-size: 15px; color: var(--neutral-900); margin-bottom: 4px; }
.preview-address { font-size: 13px; color: var(--neutral-600); display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.preview-address i { color: var(--primary); margin-top: 3px; }
.preview-details { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--neutral-50); border-radius: var(--radius-md); margin-bottom: 12px; }
.preview-detail { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--neutral-700); }
.preview-detail i { width: 16px; color: var(--neutral-500); }
.preview-notes { font-size: 12px; color: var(--neutral-600); padding: 10px; background: var(--warning-light); border-radius: var(--radius-md); border-left: 3px solid var(--warning); }
.job-preview-map { height: 120px; background: var(--neutral-100); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* MODAL */
.scheduler-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition); }
.scheduler-modal.active { opacity: 1; visibility: visible; }
.modal-content { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); width: 100%; max-width: 600px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; transform: translateY(20px) scale(0.95); transition: var(--transition); }
.scheduler-modal.active .modal-content { transform: translateY(0) scale(1); }
.modal-header { padding: 20px 24px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 18px; font-weight: 700; margin: 0; }
.modal-close { width: 36px; height: 36px; border: none; background: rgba(255,255,255,0.15); color: white; border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: rgba(255,255,255,0.25); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 24px; background: var(--neutral-50); border-top: 1px solid var(--neutral-200); display: flex; justify-content: space-between; align-items: center; }
.modal-actions { display: flex; gap: 12px; }

/* Form */
.job-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--neutral-700); text-transform: uppercase; letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-group textarea { padding: 10px 14px; border: 1px solid var(--neutral-300); border-radius: var(--radius-md); font-size: 14px; transition: var(--transition); font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* Buttons */
.btn-primary { padding: 12px 24px; background: var(--primary); color: white; border: none; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { padding: 12px 24px; background: white; color: var(--neutral-700); border: 1px solid var(--neutral-300); border-radius: var(--radius-md); font-weight: 600; font-size: 14px; cursor: pointer; transition: var(--transition); }
.btn-secondary:hover { background: var(--neutral-100); border-color: var(--neutral-400); }
.btn-delete { padding: 12px 20px; background: var(--error-light); color: var(--error); border: 1px solid var(--error); border-radius: var(--radius-md); font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.btn-delete:hover { background: var(--error); color: white; }

/* Toasts */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--neutral-900); color: white; padding: 14px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(100%); } }
.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-warning { background: var(--warning); color: var(--neutral-900); }
.toast-info { background: var(--info); }

/* Mobile */
@media (max-width: 1024px) {
    .task-panel { position: fixed; left: 0; top: 64px; bottom: 0; z-index: 100; transform: translateX(0); }
    .task-panel.collapsed { transform: translateX(-100%); }
    .calendar-grid { grid-template-columns: 160px repeat(7, minmax(100px, 1fr)); }
    .tech-name { font-size: 12px; }
    .tech-stats { display: none; }
}
@media (max-width: 768px) {
    .uptick-scheduler { flex-direction: column; height: auto; min-height: calc(100vh - 64px); }
    .task-panel { width: 100%; min-width: 100%; max-height: 40vh; position: relative; top: auto; border-right: none; border-bottom: 1px solid var(--neutral-200); }
    .task-panel.collapsed { max-height: 56px; overflow: hidden; transform: none; }
    .scheduler-header { padding: 12px 16px; }
    .scheduler-header-left { flex-direction: column; align-items: flex-start; gap: 12px; }
    .scheduler-date { font-size: 16px; }
    .view-toggle { display: none; }
    .utilisation-bar { flex-wrap: wrap; padding: 12px 16px; }
    .utilisation-legend { width: 100%; margin-top: 8px; justify-content: center; }
    .calendar-grid { grid-template-columns: 120px repeat(7, minmax(80px, 1fr)); font-size: 11px; }
    .grid-day-header { padding: 8px 4px; }
    .day-num { font-size: 16px; }
    .grid-tech-cell { padding: 8px; }
    .tech-avatar { width: 32px; height: 32px; font-size: 11px; }
    .grid-day-cell { padding: 4px; min-height: 80px; }
    .job-card { padding: 6px 8px; font-size: 10px; }
    .job-actions { display: none; }
    .modal-content { max-width: 100%; max-height: 100%; border-radius: 0; }
    .form-row { grid-template-columns: 1fr; }
}

/* Print */
@media print {
    .task-panel, .scheduler-header, .utilisation-bar, .job-actions, .add-job-btn, .job-preview-panel, .scheduler-modal, .toast-container { display: none !important; }
    .uptick-scheduler { height: auto; }
    .scheduler-main { overflow: visible; }
    .calendar-grid { overflow: visible; box-shadow: none; border: 1px solid var(--neutral-300); }
    .job-card { box-shadow: none; border: 1px solid var(--neutral-300); break-inside: avoid; }
}
