.modal-overlay{position:fixed;inset:0;background:#0307128c;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-box{width:min(720px,96%);background:linear-gradient(180deg,#fff,#fbfdff);border-radius:12px;padding:0;box-shadow:0 18px 40px #02061759;transform:translateY(0);opacity:1;transition:transform .22s ease,opacity .22s ease;overflow:hidden;border:1px solid rgba(15,23,42,.06)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid rgba(15,23,42,.06);background:linear-gradient(90deg,#2563eb0a,#10b98105)}.modal-title{margin:0;font-size:18px;font-weight:700;color:#0f172a}.modal-close{background:transparent;border:none;font-size:20px;line-height:1;cursor:pointer;color:#475569;padding:6px;border-radius:6px}.modal-close:hover{background:#0f172a0a}.modal-content{padding:16px 20px;max-height:60vh;overflow:auto}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid rgba(15,23,42,.04);background:#fff}.btn-secondary{background:transparent;color:#334155;border:1px solid rgba(15,23,42,.06);padding:8px 12px;border-radius:8px;cursor:pointer}.btn-primary{background:linear-gradient(90deg,#2563eb,#06b6d4);color:#fff;border:none;padding:9px 14px;border-radius:8px;cursor:pointer;box-shadow:0 6px 18px #2563eb2e}.modal-content input,.modal-content select,.modal-content textarea{width:100%;padding:10px 12px;border-radius:8px;border:1px solid rgba(15,23,42,.06);margin-top:6px;margin-bottom:10px;background:#fff;box-sizing:border-box;font-size:14px}.modal-content label{font-size:13px;color:#334155;font-weight:600}@media(max-width:520px){.modal-box{width:96%}.modal-title{font-size:16px}}.affect-modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(820px,96%);max-height:85vh;background:#fff;border-radius:12px;box-shadow:0 24px 48px #02061747;z-index:1100;overflow:hidden;display:flex;flex-direction:column}.affect-modal .modal-header{padding:14px 16px}.affect-modal .modal-body{padding:12px 16px;overflow:auto;max-height:calc(85vh - 140px)}.affect-modal .modal-footer{padding:12px 16px}@media(max-width:520px){.affect-modal{inset:auto 0 0;transform:none;width:100%;max-height:90vh;border-radius:12px 12px 0 0;padding-bottom:env(safe-area-inset-bottom)}.affect-modal .modal-body{max-height:calc(90vh - 120px)}.affect-modal .modal-footer{position:sticky;bottom:0;background:linear-gradient(180deg,#ffffffeb,#fff)}}:root{--bg:#f8fafc;--card-bg:#ffffff;--muted:#6b7280;--muted-2:#94a3b8;--title:#0f172a}.sa-dashboard{padding:24px;background:var(--bg);min-height:100vh}.sa-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.sa-title{margin:0}.sa-sub{color:var(--muted)}.sa-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.sa-card{background:var(--card-bg);padding:18px;border-radius:12px;box-shadow:0 6px 20px #0206170f;min-height:100px;position:relative}.sa-card .label{color:var(--muted);font-size:13px}.sa-card .value{font-size:28px;font-weight:800;color:var(--title);margin-top:6px}.sa-card .hint{color:var(--muted-2);margin-top:8px;font-size:13px}.sa-accent{position:absolute;left:0;top:0;bottom:0;width:6px;border-radius:12px 0 0 12px}.accent-users{background:#6366f1}.accent-vehicles{background:#10b981}.accent-available{background:#06b6d4}.accent-pending{background:#f59e0b}.accent-assigned{background:#ef4444}.accent-deleg{background:#8b5cf6}.layout{display:flex}.sidebar{width:220px;padding:16px;background:#fff9;color:var(--title);min-height:100vh;box-sizing:border-box;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-right:1px solid rgba(15,23,42,.04)}.sidebar .brand{font-weight:700;margin-bottom:16px;font-size:16px}.sidebar nav{display:flex;flex-direction:column;gap:8px}.sidebar a{color:var(--muted-2);text-decoration:none;padding:8px 10px;border-radius:8px}.sidebar a.active,.sidebar a:hover{background:#0f172a0a;color:var(--title)}.sa-sidebar{width:240px;position:fixed;top:0;left:0;height:100vh;padding:20px 16px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:8px 12px 32px #0206170f;border-right:1px solid rgba(15,23,42,.06);z-index:1100}.sa-sidebar .brand{font-size:1.05rem;font-weight:800;color:var(--title);padding-bottom:8px}.sa-sidebar .brand{display:flex;align-items:center;gap:12px}.sa-sidebar .brand-logo{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;background:linear-gradient(135deg,#6366f1,#4f46e5);box-shadow:0 8px 22px #4f46e51f}.sa-sidebar .brand-text{font-size:1rem;font-weight:800;color:var(--title)}.sa-sidebar nav{margin-top:8px;display:flex;flex-direction:column;gap:6px}.sa-sidebar a{display:flex;align-items:center;gap:12px;color:var(--muted-2);padding:10px 12px;border-radius:10px;transition:all .18s ease}.sa-sidebar a:hover{transform:translate(4px);box-shadow:0 6px 18px #0206170f}.sa-sidebar a.active{background:linear-gradient(90deg,#4f46e5,#06b6d4);color:#fff;box-shadow:0 8px 24px #4f46e51f}.sa-sidebar .sa-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;color:#94a3b8}.sa-sidebar a.active .sa-icon{color:#fff}.sa-sidebar .sa-label{font-weight:600}.sa-main-content{margin-left:240px}.main-content{flex:1;min-height:100vh;box-sizing:border-box;padding:16px}.sa-topbar{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:12px 16px;border-bottom:1px solid #e6eef8;border-radius:8px}.logout-btn{margin-left:16px;padding:6px 12px;border-radius:6px;border:none;background:#ef4444;color:#fff;font-weight:600;cursor:pointer}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial}.container{max-width:1200px;margin:0 auto}.sa-card{transition:transform .18s ease,box-shadow .18s ease}.sa-card:hover{transform:translateY(-6px);box-shadow:0 12px 30px #0206171f}.card-icon{position:absolute;right:16px;top:16px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#0f172a0a}.btn{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:8px;border:none;cursor:pointer;font-weight:600}.btn-primary{background:linear-gradient(90deg,#4f46e5,#06b6d4);color:#fff}.btn-ghost{background:transparent;color:var(--title);border:1px solid rgba(15,23,42,.06)}.btn-danger{background:#ef4444;color:#fff}.btn-sm{padding:6px 8px;font-size:13px}@media(max-width:900px){.sidebar,.sa-sidebar{display:none}.main-content{padding:12px}}.btn-danger{background:#ef4444;color:#fff;border:none;border-radius:6px;padding:10px 18px;font-size:1rem;font-weight:500;cursor:pointer;margin-top:8px;transition:background .2s}.btn-danger:hover{background:#b91c1c}body{font-family:Inter,Arial,sans-serif;background:#f6f7fb;margin:0;color:#222}.layout{display:flex;min-height:100vh}.sidebar{width:240px;position:fixed;top:0;left:0;height:100vh;overflow-y:auto;background:linear-gradient(180deg,#fff,#f9fafb);border-right:2px solid #e5e7eb;padding:0;box-shadow:2px 0 8px #0000000d}.sidebar-header{padding:32px 24px 24px;border-bottom:2px solid #e5e7eb;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.sidebar-header h3{font-size:1.3rem;font-weight:700;margin:0 0 4px}.sidebar-subtitle{font-size:.85rem;margin:0;opacity:.9;font-weight:500}.sidebar-nav{padding:16px 0}.sidebar-nav ul{list-style:none;padding:0;margin:0}.sidebar-nav li{margin:4px 12px}.nav-link{display:flex;align-items:center;gap:12px;padding:14px 16px;text-decoration:none;color:#6b7280;border-radius:10px;transition:all .2s;font-weight:500}.nav-link:hover{background:#f3f4f6;color:#222}.sidebar-nav li.active .nav-link{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;box-shadow:0 2px 8px #667eea4d}.nav-icon{font-size:1.3rem}.nav-label{font-size:.95rem}.main-content{flex:1;display:flex;flex-direction:column;min-height:100vh;background:#f6f7fb;margin-left:240px}.navbar{background:#fff;padding:16px 32px;border-bottom:1px solid #e5e7eb;position:relative}.navbar-content{display:flex;justify-content:flex-end;align-items:center;gap:16px}.navbar-actions{display:flex;align-items:center;gap:12px}.role-badge-modern{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;padding:8px 20px;border-radius:20px;font-size:.875rem;font-weight:700;letter-spacing:.5px;box-shadow:0 2px 8px #22c55e4d;transition:all .3s ease;text-transform:uppercase}.role-badge-modern:hover{transform:translateY(-2px);box-shadow:0 4px 12px #22c55e66}.navbar-icon-modern{position:relative;width:42px;height:42px;display:flex;align-items:center;justify-content:center;background:#f3f4f6;border-radius:12px;font-size:1.25rem;cursor:pointer;transition:all .2s ease;border:1px solid #e5e7eb;text-decoration:none}.navbar-icon-modern:hover{background:#e5e7eb;transform:scale(1.05);border-color:#d1d5db}.notification-badge{position:absolute;top:-4px;right:-4px;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;font-size:.7rem;font-weight:700;min-width:18px;height:18px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid #fff;box-shadow:0 2px 6px #ef444466}.user-avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;border:2px solid #e0e7ff;transition:all .2s ease;background:linear-gradient(135deg,#818cf8,#6366f1)}.user-avatar:hover{border-color:#6366f1;transform:scale(1.08);box-shadow:0 4px 12px #6366f14d}.avatar-image{width:100%;height:100%;object-fit:cover}.avatar-initials{color:#fff;font-weight:700;font-size:1rem;letter-spacing:.5px}.role-badge{background:#22c55e;color:#fff;padding:6px 18px;border-radius:16px;font-size:.95rem;font-weight:600;margin-right:18px}.user-circle{width:36px;height:36px;background:#e0e7ff;color:#222;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.1rem}.tasks-page{max-width:1400px;margin:32px auto;padding:0 24px}.tasks-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;gap:24px}.tasks-header h1{font-size:2rem;font-weight:700;color:#222;margin:0 0 8px}.page-subtitle{color:#6b7280;font-size:1rem;margin:0}.btn-create{display:flex;align-items:center;gap:8px;padding:14px 28px;font-size:1.05rem;white-space:nowrap}.tasks-section{margin-top:48px}.section-header-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.section-header-row h2{font-size:1.5rem;font-weight:700;color:#222;margin:0}.tasks-count{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:8px 16px;border-radius:20px;font-size:.875rem;font-weight:700}.form-container{margin-bottom:32px}.tabs{display:flex;gap:32px;margin-bottom:32px;border-bottom:2px solid #e5e7eb}.tab-btn{background:none;border:none;font-size:1.1rem;padding:12px 0;color:#888;border-bottom:2px solid transparent;cursor:pointer;transition:color .2s,border .2s}.tab-btn.active{color:#2563eb;border-bottom:2px solid #2563eb;font-weight:600}.task-form{background:#fff;border-radius:16px;box-shadow:0 4px 16px #00000014;padding:32px;border:2px solid #e5e7eb}.form-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;padding-bottom:20px;border-bottom:2px solid #e5e7eb}.form-header h2{margin:0;font-size:1.5rem;font-weight:700;color:#222}.edit-badge{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;padding:6px 16px;border-radius:16px;font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.form-section{margin-bottom:24px}.form-label{font-weight:600;font-size:.95rem;color:#374151;display:block;margin-bottom:8px}.form-input,.form-textarea,.form-select{width:100%;padding:12px 16px;border:2px solid #e5e7eb;border-radius:10px;font-size:1rem;background:#f9fafb;transition:all .2s;font-family:inherit;box-sizing:border-box}.form-input:focus,.form-textarea:focus,.form-select:focus{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb1a}.affectations-container{overflow-x:auto;padding:8px}.affectations-table{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 4px 16px #0206170f}.affectations-header{display:grid;grid-template-columns:2fr 1.4fr 1fr 1fr 120px 160px;gap:0;padding:12px 14px;border-bottom:1px solid #eef2f7;background:#f1f5f9;font-weight:700;color:#0f172a;align-items:center}.affectations-row{display:grid;grid-template-columns:2fr 1.4fr 1fr 1fr 120px 160px;gap:0;padding:12px 14px;align-items:center;border-bottom:1px solid #f1f5f9;transition:background .14s}.affectations-row:nth-child(2n){background:#fbfdff}.affectations-row:hover{background:#f8fafc}.affectations-cell{padding:0 8px;color:#0f172a}.affectations-cell .muted{color:#6b7280}.affectations-cell--center{text-align:center}.affectations-actions{display:flex;justify-content:center;gap:8px}.btn-continue{padding:6px 10px;border-radius:8px;border:none;background:#2563eb;color:#fff;cursor:pointer}.btn-continue:disabled{opacity:.6;cursor:default}.btn-terminate{padding:6px 10px;border-radius:8px;border:none;background:#10b981;color:#fff;cursor:pointer}.btn-terminate:disabled{opacity:.6;cursor:default}.form-textarea{resize:vertical;min-height:100px}.form-file-input{padding:10px;border:2px dashed #d1d5db;border-radius:10px;background:#f9fafb;cursor:pointer;transition:all .2s}.form-file-input:hover{border-color:#2563eb;background:#eff6ff}.date-inputs{display:flex;align-items:center;gap:12px}.date-separator{font-size:1.2rem;color:#6b7280;font-weight:700}.checkbox-group{display:flex;flex-direction:column;gap:12px;padding:16px;background:#f9fafb;border-radius:10px;border:1px solid #e5e7eb}.checkbox-label{display:flex;align-items:center;gap:10px;cursor:pointer;padding:8px;border-radius:8px;transition:all .2s}.checkbox-label:hover{background:#e5e7eb}.checkbox-input{width:18px;height:18px;cursor:pointer;accent-color:#2563eb}.form-row{display:flex;gap:24px}.form-row>div{flex:1}.form-actions{display:flex;justify-content:flex-end;gap:16px;margin-top:28px;padding-top:24px;border-top:2px solid #e5e7eb}.btn-submit{padding:14px 32px;font-size:1.05rem;font-weight:700}.btn-primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border:none;border-radius:10px;padding:12px 24px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #2563eb4d}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 16px #2563eb66}.btn-secondary{background:#f3f4f6;color:#222;border:1px solid #e5e7eb;border-radius:6px;padding:10px 18px;font-size:1rem;font-weight:500;cursor:pointer;margin-left:8px}.btn-cancel{background:#fff;color:#222;border:2px solid #e5e7eb;border-radius:10px;padding:12px 24px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-cancel:hover{background:#f3f4f6;border-color:#d1d5db}.tasks-table{width:100%;border-collapse:collapse;background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;overflow:hidden;border:2px solid #e5e7eb}.tasks-table th,.tasks-table td{padding:16px;text-align:left;border-bottom:1px solid #e5e7eb}.tasks-table th{background:linear-gradient(135deg,#f9fafb,#f3f4f6);font-weight:700;color:#374151;font-size:.95rem;text-transform:uppercase;letter-spacing:.5px}.tasks-table tr:last-child td{border-bottom:none}.tasks-table tbody tr{transition:all .2s}.tasks-table tbody tr:hover{background:#f9fafb}.task-name-cell{display:flex;flex-direction:column;gap:4px}.task-name-cell strong{font-size:1rem;color:#222}.task-description-hint{color:#6b7280;font-size:.85rem}.task-type-badge{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1e40af;padding:6px 12px;border-radius:12px;font-size:.85rem;font-weight:700;display:inline-block}.date-cell{display:flex;align-items:center;gap:8px;font-size:.9rem;color:#374151}.date-arrow{color:#6b7280;font-weight:700}.slots-badge{background:#fef3c7;color:#92400e;padding:6px 12px;border-radius:12px;font-size:.85rem;font-weight:700;display:inline-block}.mode-select{padding:8px 12px;border:2px solid #e5e7eb;border-radius:8px;font-size:.9rem;background:#fff;cursor:pointer;transition:all .2s}.mode-select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.table-actions{display:flex;flex-direction:column;gap:8px}.btn-table{padding:10px 16px;border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.btn-affect{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 2px 8px #2563eb4d}.btn-affect:hover{transform:translateY(-2px);box-shadow:0 4px 12px #2563eb66}.btn-edit{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;box-shadow:0 2px 8px #fbbf244d}.btn-edit:hover{transform:translateY(-2px);box-shadow:0 4px 12px #fbbf2466}.btn-delete{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;box-shadow:0 2px 8px #ef44444d}.btn-delete:hover{transform:translateY(-2px);box-shadow:0 4px 12px #ef444466}.empty-tasks-state{text-align:center;padding:80px 24px;background:#fff;border-radius:16px;border:2px dashed #d1d5db}.empty-tasks-state .empty-icon{font-size:4rem;display:block;margin-bottom:16px}.empty-tasks-state p{font-size:1.2rem;color:#6b7280;margin:0 0 8px;font-weight:600}.empty-hint{color:#9ca3af;font-size:.95rem}.task-table-container{margin-top:32px}.pending-validation-banner{background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e;padding:16px 24px;border-radius:12px;font-weight:700;text-align:center;margin-bottom:24px;border:2px solid #fcd34d;font-size:1.05rem}.task-mode-info{color:#6b7280;font-size:.95rem;margin:8px 0 16px}.auto-badge{background:linear-gradient(135deg,#a78bfa,#8b5cf6);color:#fff;padding:4px 12px;border-radius:12px;font-size:.8rem;margin-left:12px;font-weight:700}.validation-section{background:#fff;border:2px solid #e5e7eb;border-radius:16px;padding:28px;margin-bottom:32px}.validation-section h3{font-size:1.3rem;font-weight:700;color:#222;margin:0 0 12px}.affectations-list-validation{display:grid;gap:16px;margin-top:20px}.affectation-card{background:#f9fafb;border:2px solid #e5e7eb;border-radius:12px;padding:20px;transition:all .2s}.affectation-card.pending{border-left:4px solid #fbbf24;background:#fffbeb}.affectation-card.validated{border-left:4px solid #22c55e;background:#f0fdf4}.affectation-header-card{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.auditeur-info-card{display:flex;align-items:center;gap:12px}.auditeur-avatar-small{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem}.auditeur-name-large{font-size:1.1rem;font-weight:700;color:#222}.affectation-date-small{font-size:.85rem;color:#6b7280;margin-top:2px}.score-badge{display:flex;align-items:center;gap:8px;background:#fff;padding:8px 16px;border-radius:20px;border:2px solid #e5e7eb;font-weight:700;color:#222}.ai-badge{background:linear-gradient(135deg,#a78bfa,#8b5cf6);color:#fff;padding:4px 10px;border-radius:10px;font-size:.75rem;text-transform:uppercase;letter-spacing:.5px}.validation-actions{display:flex;gap:12px;padding-top:16px;border-top:2px solid #e5e7eb}.btn-validate{flex:1;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border:none;border-radius:10px;padding:12px 24px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #22c55e4d}.btn-validate:hover{transform:translateY(-2px);box-shadow:0 4px 16px #22c55e66}.btn-reject-small{background:#fff;color:#ef4444;border:2px solid #ef4444;border-radius:10px;padding:12px 24px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s}.btn-reject-small:hover{background:#ef4444;color:#fff;transform:translateY(-2px)}.validated-status{text-align:center;padding:12px;background:#d1fae5;color:#065f46;border-radius:10px;font-weight:700;font-size:1rem}.suggestions-section{margin-bottom:28px;padding:20px;background:#f9fafb;border-radius:12px;border:2px solid #e5e7eb}.suggestions-section h4{margin:0 0 16px;font-size:1.1rem;font-weight:700;color:#222}.suggestions-list{display:flex;flex-direction:column;gap:12px}.suggestion-card{display:flex;align-items:center;gap:16px;padding:16px;background:#fff;border:2px solid #d1d5db;border-radius:10px;cursor:pointer;transition:all .2s}.suggestion-card:hover{border-color:#2563eb;box-shadow:0 2px 8px #2563eb33}.suggestion-card.selected{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px #2563eb1a}.suggestion-score{background:linear-gradient(135deg,#a78bfa,#8b5cf6);color:#fff;padding:8px 16px;border-radius:20px;font-weight:700;font-size:1.1rem}.suggestion-info{flex:1}.suggestion-name{font-weight:700;font-size:1rem;color:#222;margin-bottom:4px}.suggestion-details{font-size:.875rem;color:#6b7280}.ai-recommendation{background:#fef3c7;color:#92400e;padding:6px 12px;border-radius:12px;font-size:.8rem;font-weight:700}.ai-suggestions-list{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.ai-suggestion-card{display:flex;align-items:center;gap:16px;padding:20px;background:linear-gradient(135deg,#f9fafb,#fff);border:2px solid #e5e7eb;border-radius:12px;transition:all .2s}.ai-suggestion-card:hover{box-shadow:0 4px 12px #0000001a;border-color:#d1d5db}.suggestion-rank{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.1rem}.auditeur-avatar-large{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.3rem;border:3px solid #e5e7eb}.suggestion-details-full{flex:1}.suggestion-name-large{font-size:1.2rem;font-weight:700;color:#222;margin-bottom:4px}.suggestion-meta{font-size:.95rem;color:#6b7280}.suggestion-score-large{display:flex;flex-direction:column;align-items:center;gap:4px}.score-number{font-size:2rem;font-weight:700;color:#8b5cf6}.score-label{font-size:.8rem;color:#6b7280;font-weight:600;text-transform:uppercase}.validation-notice{background:#fef3c7;color:#92400e;padding:16px;border-radius:10px;text-align:center;font-weight:600;border:2px solid #fcd34d}.profile-modal{position:absolute;top:56px;right:0;background:#fff;border-radius:16px;box-shadow:0 10px 40px #0000001a,0 2px 8px #0000000f;min-width:400px;max-width:500px;z-index:10;overflow:hidden;animation:slideDown .2s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.profile-form,.profile-view{padding:32px}.profile-title{margin:0 0 24px;font-size:1.5rem;font-weight:700;color:#222;text-align:center}.profile-header{display:flex;flex-direction:column;align-items:center;text-align:center;padding-bottom:24px;border-bottom:1px solid #e5e7eb;margin-bottom:24px}.profile-name{margin:16px 0 8px;font-size:1.4rem;font-weight:700;color:#222}.profile-role-tag{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:6px 16px;border-radius:20px;font-size:.875rem;font-weight:600;letter-spacing:.5px}.profile-photo-section{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.photo-upload-wrapper{display:flex;flex-direction:column;align-items:center;gap:12px}.profile-photo-large{width:100px;height:100px;border-radius:50%;object-fit:cover;border:4px solid #f0f4ff;box-shadow:0 4px 12px #0000001a}.profile-photo-placeholder{width:100px;height:100px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;font-size:2.5rem;border:4px solid #f0f4ff;box-shadow:0 4px 12px #0000001a}.photo-upload-label{cursor:pointer}.photo-input{display:none}.upload-btn{display:inline-block;background:#f3f4f6;color:#222;padding:8px 20px;border-radius:8px;font-size:.875rem;font-weight:600;border:1px solid #e5e7eb;transition:all .2s}.upload-btn:hover{background:#e5e7eb;border-color:#d1d5db}.profile-field{margin-bottom:20px}.field-label{display:block;font-weight:600;font-size:.875rem;color:#374151;margin-bottom:8px;letter-spacing:.3px}.profile-input{width:100%;padding:12px 16px;border:2px solid #e5e7eb;border-radius:10px;font-size:1rem;background:#f9fafb;transition:all .2s;box-sizing:border-box}.profile-input:focus{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb1a}.profile-details{display:flex;flex-direction:column;gap:20px;margin-bottom:24px}.profile-detail-item{display:flex;align-items:flex-start;gap:12px;padding:16px;background:#f9fafb;border-radius:12px;border:1px solid #e5e7eb;transition:all .2s}.profile-detail-item:hover{background:#f3f4f6;border-color:#d1d5db}.detail-icon{font-size:1.5rem;line-height:1}.detail-label{font-size:.75rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.detail-value{font-size:1rem;font-weight:500;color:#222}.profile-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #e5e7eb}.profile-actions .btn-primary,.profile-actions .btn-cancel{padding:12px 24px;font-size:.95rem;font-weight:600;border-radius:10px;transition:all .2s}.profile-actions .btn-primary:hover{transform:translateY(-1px);box-shadow:0 4px 12px #2563eb4d}.profile-actions .btn-cancel:hover{background:#f3f4f6;border-color:#d1d5db}.profile-footer{margin-top:16px;padding-top:16px;border-top:1px solid #e5e7eb;display:flex;justify-content:center}.btn-logout{background:#ef4444;color:#fff;border:none;border-radius:10px;padding:12px 24px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s;width:100%;display:flex;align-items:center;justify-content:center;gap:8px}.btn-logout:hover{background:#dc2626;transform:translateY(-1px);box-shadow:0 4px 12px #ef44444d}.communication-page{height:100vh;display:flex;flex-direction:column;overflow:hidden;background:#f9fafb}.communication-header{padding:32px 40px 24px;background:#fff;border-bottom:2px solid #e5e7eb;flex-shrink:0}.communication-header h1{font-size:2.5rem;font-weight:700;color:#222;margin:0 0 12px}.page-description{color:#6b7280;font-size:1.2rem;margin:0}.comm-tabs{display:flex;gap:20px;padding:0 40px;background:#fff;border-bottom:2px solid #e5e7eb;flex-shrink:0}.comm-tab{background:none;border:none;font-size:1.3rem;padding:16px 32px;color:#6b7280;border-bottom:3px solid transparent;cursor:pointer;transition:all .2s;font-weight:500}.comm-tab:hover{color:#222}.comm-tab.active{color:#2563eb;border-bottom:3px solid #2563eb;font-weight:700}.message-form-card{background:#fff;border-radius:16px;box-shadow:0 2px 12px #00000014;padding:40px;margin:32px 40px;overflow-y:auto;flex:1}.message-form-card h2{font-size:1.8rem;font-weight:700;margin:0 0 28px;color:#222}.form-section{margin-bottom:32px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.form-label{font-weight:600;font-size:1.1rem;color:#374151;display:block;margin-bottom:12px}.selection-actions{display:flex;gap:20px}.btn-link{background:none;border:none;color:#2563eb;font-size:1rem;font-weight:600;cursor:pointer;padding:6px 12px;transition:all .2s}.btn-link:hover{color:#1d4ed8;text-decoration:underline}.auditeurs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px;margin-bottom:20px}.auditeur-card{display:flex;align-items:center;gap:16px;padding:20px;background:#f9fafb;border:2px solid #e5e7eb;border-radius:12px;cursor:pointer;transition:all .2s}.auditeur-card:hover{background:#f3f4f6;border-color:#d1d5db}.auditeur-card.selected{background:#eff6ff;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.auditeur-checkbox{display:flex;align-items:center}.checkbox-input{width:24px;height:24px;cursor:pointer;accent-color:#2563eb}.auditeur-avatar{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:1.2rem;flex-shrink:0;overflow:hidden}.auditeur-avatar img{width:100%;height:100%;object-fit:cover}.auditeur-info{flex:1}.auditeur-name{font-weight:600;font-size:1.15rem;color:#222;margin-bottom:6px}.auditeur-details{font-size:1rem;color:#6b7280}.selected-count{background:#eff6ff;color:#2563eb;padding:16px 20px;border-radius:8px;font-weight:600;font-size:1.1rem;text-align:center;border:1px solid #bfdbfe}.form-input,.form-textarea{width:100%;padding:16px 20px;border:2px solid #e5e7eb;border-radius:10px;font-size:1.1rem;background:#f9fafb;transition:all .2s;font-family:inherit;box-sizing:border-box}.form-input:focus,.form-textarea:focus{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb1a}.form-textarea{resize:vertical;min-height:140px}.btn-send{padding:16px 40px;font-size:1.15rem;font-weight:700;display:flex;align-items:center;gap:10px}.historique-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;flex-wrap:wrap;gap:20px}.historique-header h2{font-size:1.8rem;font-weight:700;color:#222;margin:0}.header-actions{display:flex;align-items:center;gap:20px}.filter-buttons{display:flex;gap:10px;background:#f3f4f6;padding:6px;border-radius:10px}.filter-btn{background:transparent;border:none;padding:10px 24px;border-radius:8px;font-size:1rem;font-weight:600;color:#6b7280;cursor:pointer;transition:all .2s}.filter-btn:hover{color:#222}.filter-btn.active{background:#fff;color:#2563eb;box-shadow:0 1px 3px #0000001a}.messages-list{display:flex;flex-direction:column;gap:20px}.message-card{background:#fff;border:2px solid #e5e7eb;border-radius:12px;padding:24px;transition:all .2s}.message-card:hover{box-shadow:0 4px 12px #00000014;border-color:#d1d5db}.message-card.unread{border-left:4px solid #2563eb;background:#f9fafb}.message-header-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.message-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.message-from{font-weight:600;color:#374151;font-size:1rem}.message-date{font-size:1rem;color:#6b7280}.unread-badge{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;padding:6px 16px;border-radius:12px;font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.message-subject{font-size:1.25rem;color:#222;margin-bottom:10px;font-weight:600}.message-recipients{font-size:1.05rem;color:#6b7280;margin-bottom:16px}.auditeur-sidebar{width:240px;background:#fff;border-right:1px solid #eef2f7;padding:24px 18px;box-sizing:border-box;position:sticky;top:20px;height:calc(100vh - 40px);overflow:auto}.auditeur-brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}.brand-logo{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,#7c3aed,#6366f1);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.brand-text{font-weight:800;color:#0f172a}.auditeur-nav{display:flex;flex-direction:column;gap:8px}.auditeur-nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;color:#475569;text-decoration:none;font-weight:600}.auditeur-nav-link .nav-icon{font-size:18px}.auditeur-nav-link.active{background:linear-gradient(90deg,#eef2ff,#f8fafc);color:#0f172a;box-shadow:0 6px 18px #2563eb0f}.auditeur-section{margin-top:22px}.section-title{font-size:12px;color:#94a3b8;margin-bottom:8px;font-weight:700}.auditeur-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#fff;border-bottom:1px solid #eef2f7}.auditeur-header .page-title{margin:0;font-size:22px;font-weight:800;color:#0f172a}.auditeur-header .page-sub{margin:0;color:#64748b}.header-right{display:flex;align-items:center;gap:14px}.icon-btn{position:relative;background:transparent;border:none;font-size:18px;cursor:pointer}.notif-badge{position:absolute;top:-6px;right:-8px;background:#ef4444;color:#fff;border-radius:999px;padding:4px 6px;font-size:12px;font-weight:700}.user-box{display:flex;align-items:center;gap:10px;padding:6px}.avatar{width:44px;height:44px;border-radius:999px;background:linear-gradient(135deg,#06b6d4,#3b82f6);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800}.user-info{display:flex;flex-direction:column}.user-name{font-weight:700;color:#0f172a}.user-role{font-size:12px;color:#94a3b8}.auditeur-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:22px 0}.stat-card{background:#fff;border-radius:12px;box-shadow:0 6px 24px #0206170f;overflow:hidden;position:relative}.stat-card.small{min-height:110px}.stat-top{height:8px;width:100%}.stat-body{padding:18px}.stat-title{font-weight:700;color:#475569;margin-bottom:8px}.stat-number{font-size:28px;font-weight:800;color:#0f172a}.stat-note{font-size:13px;color:#60a5fa;margin-top:8px}@media(max-width:800px){.auditeur-sidebar{display:none}.auditeur-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}.delegations-section{margin-bottom:18px}.delegations-list{display:flex;flex-direction:column;gap:10px}.delegation-card{display:flex;justify-content:space-between;align-items:center;padding:12px;border-radius:10px;background:#fff;box-shadow:0 6px 18px #0206170a;cursor:pointer}.delegation-title{font-weight:700;color:#0f172a}.delegation-sub{color:#374151;margin-top:6px}.delegation-just{color:#6b7280;margin-top:6px;font-size:13px}.delegation-actions{display:flex;gap:8px}.badge{background:#eef2f5;padding:6px 10px;border-radius:999px;font-weight:700}.tasks-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}.task-card{background:#fff;border-radius:12px;box-shadow:0 6px 18px #0206170f;display:flex;flex-direction:column;height:100%;overflow:hidden}.task-card-body{padding:16px}.task-card-head{display:flex;justify-content:space-between;align-items:flex-start}.task-title{font-size:16px;color:#0f172a}.task-meta{display:flex;flex-direction:column;align-items:flex-end}.task-desc{color:#0b556f;margin-top:10px}.task-actions{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #f1f5f9;background:#fff;justify-content:flex-end}.btn{padding:8px 12px;border-radius:8px;border:none;cursor:pointer;font-weight:700}.btn.primary{background:#2563eb;color:#fff}.btn.success{background:#10b981;color:#fff}.btn.danger{background:#ef4444;color:#fff}.btn.warn{background:#f59e0b;color:#fff}.muted{color:#6b7280}.small{font-size:13px}.message-recipients strong{color:#374151}.message-body{font-size:1.1rem;color:#374151;line-height:1.6;padding-top:16px;border-top:1px solid #e5e7eb}.empty-state{text-align:center;padding:80px 24px;color:#6b7280}.empty-icon{font-size:5rem;display:block;margin-bottom:20px}.empty-state p{font-size:1.3rem;margin:0}.btn-danger-outline{background:#fff;color:#ef4444;border:2px solid #ef4444;border-radius:10px;padding:12px 24px;font-size:1.05rem;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:8px}.btn-danger-outline:hover{background:#ef4444;color:#fff;transform:translateY(-1px);box-shadow:0 4px 12px #ef44444d}.btn-delete-message{background:#fee2e2;color:#ef4444;border:1px solid #fecaca;border-radius:8px;padding:8px 12px;font-size:1.1rem;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}.btn-delete-message:hover{background:#ef4444;color:#fff;border-color:#ef4444;transform:scale(1.1)}.notifications-modal{position:absolute;top:56px;right:60px;background:#fff;border-radius:16px;box-shadow:0 10px 40px #00000026,0 2px 8px #00000014;width:420px;max-height:600px;z-index:10;overflow:hidden;animation:slideDown .2s ease-out}.notifications-header{padding:20px 24px;border-bottom:2px solid #e5e7eb;background:linear-gradient(135deg,#f9fafb,#fff)}.notifications-header h3{margin:0 0 12px;font-size:1.3rem;font-weight:700;color:#222}.notifications-actions{display:flex;gap:16px;flex-wrap:wrap}.btn-link-small{background:none;border:none;color:#2563eb;font-size:.85rem;font-weight:600;cursor:pointer;padding:0;transition:all .2s}.btn-link-small:hover{color:#1d4ed8;text-decoration:underline}.btn-link-small.text-danger{color:#ef4444}.btn-link-small.text-danger:hover{color:#dc2626}.notifications-list{max-height:520px;overflow-y:auto}.notifications-list::-webkit-scrollbar{width:6px}.notifications-list::-webkit-scrollbar-track{background:#f3f4f6}.notifications-list::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.notifications-list::-webkit-scrollbar-thumb:hover{background:#9ca3af}.notification-item{position:relative;display:flex;align-items:flex-start;gap:12px;padding:16px 24px;border-bottom:1px solid #f3f4f6;cursor:pointer;transition:all .2s}.notification-item:hover{background:#f9fafb}.notification-item.unread{background:#eff6ff;border-left:4px solid #2563eb}.notification-item.unread:hover{background:#dbeafe}.notification-icon{font-size:1.8rem;flex-shrink:0;line-height:1}.notification-content{flex:1;min-width:0}.notification-title{font-weight:700;font-size:.95rem;color:#222;margin-bottom:4px}.notification-message{font-size:.875rem;color:#6b7280;line-height:1.4;margin-bottom:6px}.notification-date{font-size:.75rem;color:#9ca3af}.notification-delete{position:absolute;top:12px;right:12px;background:#fee2e2;color:#ef4444;border:none;border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:.9rem;cursor:pointer;opacity:0;transition:all .2s}.notification-item:hover .notification-delete{opacity:1}.notification-delete:hover{background:#ef4444;color:#fff;transform:scale(1.1)}.unread-dot{position:absolute;top:20px;right:12px;width:10px;height:10px;background:#2563eb;border-radius:50%;border:2px solid #fff;box-shadow:0 0 8px #2563eb66}.notifications-empty{text-align:center;padding:64px 24px;color:#9ca3af}.notifications-empty .empty-icon{font-size:3.5rem;display:block;margin-bottom:12px}.notifications-empty p{font-size:1rem;margin:0;font-weight:500}.vehicles-page-full{padding:0;height:100vh;display:flex;flex-direction:column;background:#fafafa}.vehicles-header-full{background:#fff;padding:24px 40px;border-bottom:1px solid #e0e0e0;display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.header-left h1{font-size:1.75rem;font-weight:700;margin:0 0 10px;color:#212121;letter-spacing:.5px}.stats-inline{display:flex;gap:28px;margin-top:10px}.stat-inline{font-size:1rem;color:#616161}.stat-inline strong{color:#212121;font-weight:700}.header-right{display:flex;gap:16px;align-items:center}.filter-group{display:flex;gap:0;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden}.filter-btn-compact{padding:10px 20px;background:#fff;border:none;border-right:1px solid #e0e0e0;font-size:.9375rem;font-weight:500;cursor:pointer;transition:all .2s;color:#616161}.filter-btn-compact:last-child{border-right:none}.filter-btn-compact:hover{background:#f5f5f5}.filter-btn-compact.active{background:#212121;color:#fff}.btn-add-vehicle{padding:10px 24px;background:#212121;color:#fff;border:none;border-radius:4px;font-size:.9375rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-add-vehicle:hover{background:#424242}.vehicle-form-full{background:#fff;margin:16px 32px;border:1px solid #e0e0e0;border-radius:4px;flex-shrink:0}.form-title-bar{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid #e0e0e0;background:#fafafa}.form-title-bar h3{margin:0;font-size:1rem;font-weight:700;color:#212121;letter-spacing:.5px}.btn-close-form{background:none;border:none;font-size:1.5rem;color:#757575;cursor:pointer;padding:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center}.btn-close-form:hover{color:#212121}.form-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:24px}.form-field{display:flex;flex-direction:column}.form-field label{font-size:.8125rem;font-weight:600;color:#757575;margin-bottom:7px;text-transform:uppercase;letter-spacing:.5px}.form-field input,.form-field select{padding:10px 14px;border:1px solid #e0e0e0;border-radius:3px;font-size:.9375rem;font-family:inherit;background:#fff}.form-field input:focus,.form-field select:focus{outline:none;border-color:#212121}.checkbox-field{display:flex;align-items:flex-end}.checkbox-field label{display:flex;align-items:center;gap:8px;margin:0;padding:8px 12px;background:#fafafa;border:1px solid #e0e0e0;border-radius:3px;cursor:pointer;text-transform:none;font-weight:500;color:#424242}.checkbox-field input[type=checkbox]{width:16px;height:16px;cursor:pointer}.form-actions-bar{display:flex;gap:12px;justify-content:flex-end;padding:16px 24px;border-top:1px solid #e0e0e0;background:#fafafa}.btn-form-cancel{padding:10px 24px;background:#fff;color:#616161;border:1px solid #e0e0e0;border-radius:3px;font-size:.9375rem;font-weight:600;cursor:pointer}.btn-form-cancel:hover{background:#f5f5f5;border-color:#bdbdbd}.btn-form-submit{padding:10px 24px;background:#212121;color:#fff;border:none;border-radius:3px;font-size:.9375rem;font-weight:600;cursor:pointer}.btn-form-submit:hover{background:#424242}.vehicles-table-container{flex:1;overflow:auto;margin:16px 32px 32px;background:#fff;border:1px solid #e0e0e0;border-radius:4px}.vehicles-table{width:100%;border-collapse:collapse;font-size:.9375rem}.vehicles-table thead{background:#fafafa;position:sticky;top:0;z-index:10}.vehicles-table th{text-align:left;padding:14px 18px;font-weight:700;font-size:.8125rem;color:#757575;border-bottom:1px solid #e0e0e0;letter-spacing:.5px}.vehicles-table tbody tr{border-bottom:1px solid #f5f5f5}.vehicles-table tbody tr:hover{background:#fafafa}.vehicles-table td{padding:16px 18px;color:#424242}.vehicle-name-cell{font-weight:600;color:#212121;font-size:1rem}.plate-cell{font-family:Courier New,monospace;font-weight:600;color:#616161;background:#f5f5f5;padding:7px 12px!important;border-radius:3px;display:inline-block;font-size:.875rem}.center-cell{text-align:center}.status-badge{display:inline-block;padding:5px 12px;border-radius:3px;font-size:.8125rem;font-weight:600;text-transform:uppercase;letter-spacing:.3px}.status-ok{background:#e8f5e9;color:#2e7d32}.status-busy{background:#f5f5f5;color:#757575}.assignment-cell{font-size:.875rem}.assigned-name{font-weight:600;color:#212121;margin-bottom:3px}.assigned-date{color:#757575;font-size:.8125rem}.actions-cell{white-space:nowrap}.btn-table-edit,.btn-table-delete{padding:7px 14px;border:none;border-radius:3px;font-size:.8125rem;font-weight:600;cursor:pointer;margin-right:8px;transition:all .2s}.btn-table-edit{background:#f5f5f5;color:#424242}.btn-table-edit:hover{background:#e0e0e0;color:#212121}.btn-table-delete{background:#fff;color:#d32f2f;border:1px solid #ffcdd2}.btn-table-delete:hover{background:#ffebee;border-color:#ef9a9a}.empty-state-full{text-align:center;padding:80px 24px;color:#9e9e9e}.empty-state-full p{font-size:.875rem;margin:0}.dashboard-page{padding:0;height:100vh;display:flex;flex-direction:column;background:#fafafa;overflow:auto}.dashboard-header{background:#fff;padding:24px 40px;border-bottom:1px solid #e0e0e0;flex-shrink:0}.dashboard-header h1{font-size:1.75rem;font-weight:700;margin:0 0 6px;color:#212121;letter-spacing:.5px}.dashboard-subtitle{margin:0;color:#757575;font-size:.9375rem}.dashboard-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;padding:24px 40px;flex-shrink:0}.kpi-card{background:#fff;padding:20px 24px;border-radius:4px;border:1px solid #e0e0e0;transition:all .2s}.kpi-card:hover{border-color:#d1d5db;box-shadow:0 2px 8px #0000000f}.kpi-label{font-size:.8125rem;font-weight:600;color:#757575;text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px}.kpi-value{font-size:2.25rem;font-weight:700;color:#212121;line-height:1}.kpi-percent{font-size:.875rem;color:#616161;margin-top:6px;font-weight:500}.dashboard-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(450px,1fr));gap:24px;padding:0 40px 24px;flex-shrink:0}.chart-card{background:#fff;border:1px solid #e0e0e0;border-radius:4px;padding:24px;transition:all .2s}.chart-card:hover{border-color:#d1d5db;box-shadow:0 2px 8px #0000000f}.chart-header{margin-bottom:20px;display:flex;align-items:baseline;gap:12px}.chart-header h2{font-size:1.125rem;font-weight:700;color:#212121;margin:0}.chart-subtitle{font-size:.8125rem;color:#757575;font-weight:500}.chart-content{position:relative;height:280px}.dashboard-summary{background:#fff;margin:0 40px 40px;border:1px solid #e0e0e0;border-radius:4px;padding:24px;flex-shrink:0}.dashboard-summary h2{font-size:1.125rem;font-weight:700;color:#212121;margin:0 0 20px}.summary-table{width:100%;border-collapse:collapse;font-size:.9375rem}.summary-table thead{background:#fafafa;border-bottom:1px solid #e0e0e0}.summary-table th{text-align:left;padding:12px 16px;font-weight:700;font-size:.8125rem;color:#757575;letter-spacing:.5px}.summary-table td{padding:14px 16px;color:#424242;border-bottom:1px solid #f5f5f5}.summary-table tbody tr:hover{background:#fafafa}.specialty-name{font-weight:600;color:#212121}.task-count{font-weight:700;color:#424242}.percentage-bar{display:flex;align-items:center;gap:12px;width:100%}.percentage-fill{flex:1;height:8px;background:#f5f5f5;border-radius:4px;overflow:hidden;position:relative}.percentage-fill:after{content:"";position:absolute;left:0;top:0;height:100%;width:var(--percentage, 0%);background:#212121;border-radius:4px;transition:width .3s}.percentage-text{font-weight:600;font-size:.875rem;color:#424242;min-width:45px;text-align:right}.vehicles-page{padding:40px;max-width:1400px;margin:0 auto}.vehicles-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.vehicles-header h1{font-size:2rem;font-weight:700;margin:0 0 8px;color:#1f2937}.page-subtitle{margin:0;color:#6b7280;font-size:.95rem;font-weight:400}.btn-create{padding:12px 24px;font-size:.95rem;font-weight:600;box-shadow:0 1px 3px #0000001a}.vehicles-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:32px}.stat-card{background:#fff;padding:24px;border-radius:8px;border:1px solid #e5e7eb;transition:all .2s}.stat-card:hover{border-color:#d1d5db;box-shadow:0 2px 8px #00000014}.stat-info{flex:1}.stat-value{font-size:2rem;font-weight:700;color:#1f2937;margin:0 0 4px}.stat-label{font-size:.9rem;color:#6b7280;font-weight:500}.vehicle-form-container{background:#fff;border-radius:8px;padding:32px;box-shadow:0 1px 3px #0000001a;margin-bottom:32px;border:1px solid #e5e7eb}.vehicle-form .form-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;padding-bottom:20px;border-bottom:2px solid #f3f4f6}.vehicle-form .form-header h2{margin:0;font-size:1.5rem;font-weight:700;color:#1f2937;display:flex;align-items:center;gap:10px}.edit-badge{background:#f59e0b;color:#fff;padding:6px 14px;border-radius:4px;font-size:.8rem;font-weight:600}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:20px}.form-section{display:flex;flex-direction:column}.form-label{font-weight:600;font-size:.9rem;color:#374151;margin-bottom:8px}.form-input{padding:10px 14px;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem;transition:all .2s;font-family:inherit}.form-input:focus{outline:none;border-color:#6b7280;box-shadow:0 0 0 3px #6b72801a}.form-select{padding:10px 14px;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem;background:#fff;cursor:pointer;transition:all .2s;font-family:inherit}.form-select:focus{outline:none;border-color:#6b7280;box-shadow:0 0 0 3px #6b72801a}.checkbox-label-large{display:flex;align-items:center;gap:12px;padding:14px 18px;background:#f9fafb;border-radius:6px;cursor:pointer;transition:all .2s;font-weight:500;color:#374151;border:1px solid #e5e7eb}.checkbox-label-large:hover{background:#f3f4f6;border-color:#d1d5db}.checkbox-input{width:18px;height:18px;cursor:pointer}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:28px;padding-top:20px;border-top:1px solid #e5e7eb}.btn-cancel{padding:10px 20px;background:#fff;color:#6b7280;border:1px solid #d1d5db;border-radius:6px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-cancel:hover{background:#f9fafb;border-color:#9ca3af}.btn-submit{padding:12px 28px}.vehicles-filters{display:flex;gap:12px;margin-bottom:24px}.filter-btn{padding:8px 18px;background:#fff;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s;color:#6b7280}.filter-btn:hover{border-color:#9ca3af;color:#374151}.filter-btn.active{background:#1f2937;color:#fff;border-color:#1f2937}.vehicles-section{background:#fff;border-radius:8px;padding:32px;border:1px solid #e5e7eb}.vehicles-section h2{margin:0 0 24px;font-size:1.4rem;font-weight:700;color:#1f2937}.vehicles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.vehicle-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:24px;transition:all .2s}.vehicle-card:hover{border-color:#d1d5db;box-shadow:0 4px 12px #00000014}.vehicle-card.unavailable{background:#fafafa}.vehicle-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.vehicle-status-badge{margin-top:4px}.status-available{background:#10b981;color:#fff;padding:4px 10px;border-radius:4px;font-size:.75rem;font-weight:600;display:inline-block}.status-unavailable{background:#6b7280;color:#fff;padding:4px 10px;border-radius:4px;font-size:.75rem;font-weight:600;display:inline-block}.vehicle-name{font-size:1.3rem;font-weight:700;color:#1f2937;margin:0 0 8px}.vehicle-plate{font-size:1rem;color:#374151;font-weight:600;margin-bottom:16px;padding:8px 14px;background:#f3f4f6;border-radius:4px;display:inline-block;font-family:Courier New,monospace;border:1px solid #e5e7eb}.vehicle-details{margin-bottom:16px;padding:16px 0;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}.vehicle-detail-row{display:grid;grid-template-columns:100px 1fr;gap:12px;margin-bottom:8px;color:#4b5563;font-size:.9rem}.vehicle-detail-row:last-child{margin-bottom:0}.detail-label{font-weight:600;color:#6b7280}.detail-text{font-weight:500}.assignment-info{background:#fef3c7;border:1px solid #fcd34d;border-radius:6px;padding:12px;margin-bottom:16px;font-size:.85rem;color:#78350f}.assignment-info strong{font-weight:700}.assignment-info small{color:#92400e}.vehicle-card-actions{display:flex;gap:10px;margin-top:16px}.btn-edit-small{flex:1;padding:9px 16px;background:#3b82f6;color:#fff;border:none;border-radius:6px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-edit-small:hover{background:#2563eb}.btn-delete-small{flex:1;padding:9px 16px;background:#fff;color:#ef4444;border:1px solid #ef4444;border-radius:6px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-delete-small:hover{background:#ef4444;color:#fff}.empty-vehicles-state{text-align:center;padding:60px 24px;color:#9ca3af}.empty-vehicles-state p{font-size:1rem;margin:0;font-weight:500}.affectation-page{padding:2rem;background:#f8f9fa;min-height:100vh}.affectation-page h2{margin-bottom:2rem;color:#2c3e50;font-size:2rem;font-weight:600}.affectation-table{width:100%;border-collapse:collapse;background:#fff;box-shadow:0 2px 8px #2c3e5014;border-radius:8px;overflow:hidden}.affectation-table th,.affectation-table td{padding:1rem;text-align:left;border-bottom:1px solid #e1e1e1}.affectation-table th{background:#34495e;color:#fff;font-weight:500}.affectation-table tr:last-child td{border-bottom:none}.btn-accept{background:#27ae60;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;margin-right:.5rem;cursor:pointer;transition:background .2s}.btn-accept:hover{background:#219150}.btn-refuse{background:#e74c3c;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;transition:background .2s}.btn-refuse:hover{background:#c0392b}.btn-edit{background:#f1c40f;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;margin-left:.5rem;cursor:pointer;transition:background .2s}.btn-edit:hover{background:#b7950b}.btn-delete{background:#7f8c8d;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;margin-left:.5rem;cursor:pointer;transition:background .2s}.btn-delete:hover{background:#4d5656}.success-message{background:#27ae60;color:#fff;padding:1rem 2rem;border-radius:6px;margin-bottom:1.5rem;text-align:center;font-weight:500;box-shadow:0 2px 8px #27ae6014}.reject-message{background:#e74c3c;color:#fff;padding:1rem 2rem;border-radius:6px;margin-bottom:1.5rem;text-align:center;font-weight:500;box-shadow:0 2px 8px #e74c3c14}
