@tailwind base;@tailwind components;@tailwind utilities;@layer base{:root{--primary: #E8593C;--primary-dark: #cc3d1e;--primary-light: #fff7f5;--primary-ring: rgba(232, 89, 60, .12);--surface: #ffffff;--bg: #f6f6f7;--text: #111827;--text-muted: #6b7280;--text-light: #9ca3af;--border: #e5e7eb;--border-light: #f3f4f6;--radius-sm: 8px;--radius: 12px;--radius-lg: 16px;--radius-xl: 20px}*,*:before,*:after{box-sizing:border-box}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv02","cv03","cv04","cv11"}body{background:var(--bg);color:var(--text);font-family:DM Sans,system-ui,sans-serif;font-size:14px;line-height:1.5;margin:0;min-height:100dvh}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:99px}::-webkit-scrollbar-thumb:hover{background:#9ca3af}}.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--primary);color:#fff;font-size:14px;font-weight:500;font-family:inherit;padding:9px 16px;border-radius:var(--radius);border:none;cursor:pointer;transition:background .15s;white-space:nowrap}.btn-primary:hover:not(:disabled){background:var(--primary-dark)}.btn-primary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.btn-primary:disabled{opacity:.45;cursor:not-allowed}.btn-secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;color:#374151;font-size:14px;font-weight:500;font-family:inherit;padding:9px 16px;border-radius:var(--radius);border:1px solid var(--border);cursor:pointer;transition:background .15s;white-space:nowrap}.btn-secondary:hover{background:#f9fafb}.btn-secondary:disabled{opacity:.45;cursor:not-allowed}.btn-danger{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fef2f2;color:#ef4444;font-size:14px;font-weight:500;font-family:inherit;padding:9px 16px;border-radius:var(--radius);border:none;cursor:pointer;transition:background .15s}.btn-danger:hover{background:#fecaca}.input{width:100%;padding:9px 12px;border-radius:var(--radius);background:#fff;border:1px solid var(--border);color:var(--text);font-size:14px;font-family:inherit;outline:none;transition:border-color .15s,box-shadow .15s}.input::placeholder{color:var(--text-light)}.input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.input:disabled{background:#f9fafb;color:var(--text-muted);cursor:not-allowed}.input-error{border-color:#ef4444!important}textarea.input{resize:vertical;min-height:80px;line-height:1.5}select.input{cursor:pointer}.label{display:block;font-size:13px;font-weight:500;color:#374151;margin-bottom:4px}.label-sm{display:block;font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}.field{display:flex;flex-direction:column;gap:4px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-error{font-size:11px;color:#ef4444;font-weight:500}.field-hint{font-size:11px;color:var(--text-light)}.card{background:#fff;border-radius:var(--radius-lg);border:1px solid var(--border);padding:20px}.card-title{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--text);margin:0 0 16px}.card-head-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.card-head-row .card-title{margin:0}.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:3px 10px;border-radius:99px}.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:50;padding:20px}.modal{background:#fff;border-radius:var(--radius-xl);width:100%;max-width:520px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0003}.modal-sm{max-width:400px}.modal-lg{max-width:700px}.modal-xs{max-width:320px}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 0}.modal-title{font-size:16px;font-weight:600;color:var(--text);margin:0}.modal-body{padding:16px 24px 4px;display:flex;flex-direction:column;gap:14px}.modal-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 24px 20px;border-top:1px solid var(--border-light)}.modal-footer-right{display:flex;gap:8px;margin-left:auto}.btn-close{width:28px;height:28px;border-radius:var(--radius-sm);border:none;background:#f3f4f6;color:var(--text-muted);cursor:pointer;font-size:12px;display:flex;align-items:center;justify-content:center;transition:background .15s}.btn-close:hover{background:#e5e7eb}.modal-enter-active,.modal-leave-active{transition:opacity .2s}.modal-enter-from,.modal-leave-to{opacity:0}.page-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px;gap:12px;flex-wrap:wrap}.page-title{font-size:22px;font-weight:600;color:var(--text);margin:0}.page-sub{font-size:13px;color:var(--text-muted);margin:2px 0 0}.alert-error{padding:10px 14px;border-radius:var(--radius);background:#fef2f2;border:1px solid #fecaca;color:#dc2626;font-size:13px}.alert-success{padding:10px 14px;border-radius:var(--radius);background:#f0fdf4;border:1px solid #bbf7d0;color:#16a34a;font-size:13px}.loading-state{display:flex;align-items:center;justify-content:center;gap:10px;padding:60px;color:var(--text-light);font-size:14px}.empty-state{text-align:center;padding:60px 20px;display:flex;flex-direction:column;align-items:center;gap:12px}.empty-state-icon{font-size:48px}.empty-state h3{font-size:18px;font-weight:600;color:var(--text);margin:0}.empty-state p{font-size:14px;color:var(--text-muted);max-width:320px;margin:0}.spinner{width:24px;height:24px;border-radius:50%;border:2px solid var(--border);border-top-color:var(--primary);animation:spin .7s linear infinite;flex-shrink:0}.spinner-sm{width:16px;height:16px;border-width:2px}@keyframes spin{to{transform:rotate(360deg)}}.avanc-bar{height:6px;background:var(--border-light);border-radius:99px;overflow:hidden}.avanc-fill{height:100%;border-radius:99px;transition:width .4s cubic-bezier(.4,0,.2,1)}.filter-btn{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:99px;border:1px solid var(--border);background:#fff;font-size:12px;font-weight:500;color:var(--text-muted);cursor:pointer;transition:all .15s;font-family:inherit}.filter-btn:hover{border-color:#d1d5db;color:#374151}.filter-btn.active{border-color:var(--primary);background:var(--primary-light);color:var(--primary)}.select-sm{padding:6px 10px;border-radius:var(--radius-sm);border:1px solid var(--border);background:#fff;font-size:13px;color:#374151;outline:none;cursor:pointer;font-family:inherit}.select-sm:focus{border-color:var(--primary)}.toggle-row{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;color:#374151}.toggle{width:15px;height:15px;accent-color:var(--primary);cursor:pointer}.kpi-card{background:#fff;border-radius:var(--radius-lg);border:1px solid var(--border);border-left:3px solid;padding:14px 16px;display:flex;flex-direction:column;gap:2px}.kpi-label{font-size:11px;color:var(--text-light);font-weight:500;text-transform:uppercase;letter-spacing:.4px}.kpi-value{font-size:22px;font-weight:700;font-family:Barlow Condensed,sans-serif;line-height:1.1;color:var(--text)}.kpi-sub{font-size:11px;color:var(--text-light)}.statut-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:3px 10px;border-radius:99px}.couleur-picker{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding-top:2px}.couleur-opt{width:28px;height:28px;border-radius:8px;border:2px solid var(--border);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s}.couleur-opt.selected{box-shadow:0 0 0 2px #00000026}.couleur-opt-none{background:#f3f4f6;color:var(--text-light);font-size:11px}.couleur-dot{width:14px;height:14px;border-radius:4px}.overdue-tag{font-size:10px;font-weight:700;background:#dc2626;color:#fff;padding:1px 5px;border-radius:4px}.text-overdue{color:#dc2626}.text-positive{color:#16a34a}.text-warning{color:#f97316}.text-muted{color:var(--text-muted)}@media(max-width:640px){.field-row{grid-template-columns:1fr}.modal{max-width:100%;border-radius:var(--radius-lg) var(--radius-lg) 0 0}.modal-backdrop{align-items:flex-end;padding:0}}
