:root{
  --yellow:#fff200;
  --black:#000;
  --sidebar:#050505;
  --page:#f1f1f1;
  --line:#dedede;
  --muted:#6b7280;
  --blue:#1478ff;
  --green:#d7ffd5;
  --green-text:#127a20;
  --red:#ffd1d1;
  --red-text:#e7334b;
  --cyan:#dffcff;
  --cream:#fff4d6;
  --pink:#f9d7ff;
  --gray-card:#e8e8e8;
}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;color:#111;background:var(--page)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
/* LOGIN */
.login-body{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#f3f4f6;padding:20px}.login-wrap{width:100%;max-width:430px;text-align:center}.login-logo{display:inline-flex;align-items:center;justify-content:center;background:#000;color:#fff;margin-bottom:32px;padding:12px 22px;border-radius:3px;font-size:40px;font-weight:900;letter-spacing:-3px}.login-logo b{color:var(--yellow);margin:0 1px}.login-card{background:#fff;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,.08);padding:30px;text-align:left}.login-form{display:flex;flex-direction:column;gap:10px}.login-form label{font-size:14px;font-weight:700;color:#4b5563}.login-form input,.password-field input{width:100%;background:#ebf2ff;border:1px solid #d9e2ef;border-radius:7px;padding:11px;color:#111}.password-field{display:flex;position:relative}.password-field button{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;font-size:18px}.login-separator{border-top:1px solid #f1f1f1;margin:24px 0}.alert-error{background:#ffe3e3;border:1px solid #ffbcbc;color:#a40000;padding:10px;border-radius:8px;text-align:center;margin-bottom:8px}.full{width:100%}.btn-primary,.btn-muted,.btn-dark,.btn-icon,.btn-ghost{border:0;border-radius:8px;padding:10px 14px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.btn-primary{background:var(--yellow);color:#000}.btn-primary:hover{filter:brightness(.96)}.btn-muted{background:#e5e7eb;color:#374151}.btn-dark{background:#050505;color:#fff}.btn-icon{width:38px;height:38px;padding:0;background:#111;color:var(--yellow);border-radius:6px}.btn-ghost{background:#f4f4f4;color:#111}.btn-sm{padding:6px 9px;border-radius:6px;font-size:12px}.btn-link{border:0;background:transparent;color:#1478ff;padding:0}.btn-danger{background:#ef4444;color:#fff}
/* LAYOUT */
.app{height:100vh;display:flex;overflow:hidden}.sidebar{width:250px;min-width:250px;background:var(--sidebar);color:#fff;overflow:auto;padding:16px 12px 18px}.sidebar-logo{display:flex;align-items:center;gap:10px;margin:6px 0 25px}.logo-mark{font-weight:900;color:#fff;font-size:18px;letter-spacing:-1px}.logo-mark b{color:var(--yellow)}.sidebar-logo span{color:var(--yellow);font-size:20px;font-weight:900}.sidebar-create{width:100%;border-radius:6px;padding:10px 12px;margin-bottom:20px}.side-link{display:block;color:#cbd5e1;padding:9px 3px;border-radius:6px;font-size:17px}.side-link.active,.side-link:hover{color:#fff}.side-section{border-top:1px solid #222;padding-top:12px;margin-top:16px}.side-section summary{list-style:none;display:flex;align-items:center;justify-content:space-between;color:#fff;font-weight:800;font-size:19px}.side-section summary::-webkit-details-marker{display:none}.side-section summary:after{content:'⌃';font-weight:400;color:#eee}.side-section[open] summary:after{content:'⌃'}.support-item{display:flex;gap:10px;align-items:center;margin:14px 0}.avatar{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e5e7eb,#6b7280);border:1px solid #777;color:#111;font-weight:900}.support-name{font-weight:800;color:#fff}.support-phone{font-size:12px;color:var(--yellow);font-weight:800}.chat-bubble{position:sticky;bottom:8px;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0e42ff;color:#fff;font-size:23px;margin-top:12px}.content{flex:1;overflow:auto;min-width:0}.topbar{height:48px;display:flex;align-items:center;padding:0 12px 0 0;gap:12px}.collapse-handle{width:28px;height:28px;display:flex;align-items:center;justify-content:center;color:#111;font-size:24px}.title{margin:0;display:flex;align-items:center;gap:12px;font-size:25px;font-weight:900;flex:1;white-space:nowrap}.title .home{font-size:27px}.top-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.lang-btn,.dealer-btn{height:35px;border:1px solid #ddd;background:#fff;border-radius:3px;padding:0 10px;font-weight:800;display:flex;align-items:center;gap:8px}.bell{font-size:18px;color:#111}.main-inner{padding:0 34px 34px 34px}.stats-grid{display:grid;grid-template-columns:repeat(8,minmax(120px,1fr));gap:10px;margin:9px 0 22px}.stat-card{background:#fff;border-radius:10px;padding:12px;min-height:78px;box-shadow:0 1px 3px rgba(0,0,0,.05)}.stat-card.cyan{background:var(--cyan)}.stat-card.cream{background:var(--cream)}.stat-card.red{background:var(--red)}.stat-card.gray{background:var(--gray-card)}.stat-card.green{background:var(--green)}.stat-card.pink{background:var(--pink)}.stat-label{font-weight:800;font-size:12px;margin-bottom:8px}.stat-number{font-size:31px;font-weight:900;line-height:1}.stat-number span{font-size:15px;font-weight:800}.action-row{display:flex;align-items:center;gap:6px;margin:0 0 28px}.search-box{position:relative;flex:1;max-width:820px;margin-left:16px}.search-box input{width:100%;height:39px;border:1px solid #cfcfcf;border-radius:8px;background:#fff;padding:0 14px 0 46px;font-size:16px}.search-box:before{content:'⌕';position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:26px;color:#1f2937}.filter-group{display:flex;align-items:center;margin-left:auto}.filter-count,.date-select,.sliders{height:36px;border:1px solid #d2d2d2;background:#fff;padding:0 12px;display:flex;align-items:center;gap:7px}.filter-count{border-radius:7px 0 0 7px}.filter-count b,.tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:22px;background:#f0f0f0;border-radius:6px;margin-right:3px}.date-select{min-width:150px;border-left:0}.sliders{border-left:0;border-radius:0 7px 7px 0}.filter-panel{background:#fff;border:1px solid #ddd;border-radius:10px;padding:16px;margin:-12px 0 22px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;box-shadow:0 5px 18px rgba(0,0,0,.08)}.filter-panel label{font-size:12px;font-weight:800;color:#6b7280;text-transform:uppercase}.filter-panel input,.filter-panel select{width:100%;border:1px solid #ddd;border-radius:7px;padding:8px;background:#fff}.section-heading{font-size:20px;font-weight:900;margin:22px 0 8px}.tabs{display:flex;align-items:center;gap:0;border-bottom:1px solid #ddd;margin:34px 0 12px;flex-wrap:wrap}.tab{padding:0 16px 12px;border-bottom:3px solid transparent;font-size:16px;font-weight:800}.tab.active{border-color:var(--yellow)}.tab.overtime{color:#111}.tab-count.red{background:#dc3545;color:#fff}.table-card{background:#fff;border-radius:6px;box-shadow:0 6px 16px rgba(0,0,0,.05);overflow:auto;margin-bottom:22px}.eval-table{width:100%;border-collapse:collapse;min-width:1260px}.eval-table th{font-size:12px;text-align:left;padding:9px 8px;border-bottom:1px solid #e7e7e7;font-weight:900;white-space:nowrap}.eval-table td{font-size:14px;padding:8px;border-bottom:1px solid #e7e7e7;vertical-align:middle}.eval-table tr:hover td{background:#fafafa}.col-actions{width:150px}.actions-line{display:flex;align-items:center;gap:8px;color:#444}.tiny-action{width:25px;height:25px;border:0;border-radius:4px;background:#eee;display:inline-flex;align-items:center;justify-content:center;font-size:13px}.tiny-link{font-size:14px;color:#111}.copy-icon{color:#1478ff;font-size:15px}.car-cell{width:70px;position:relative}.car-thumb{width:55px;height:55px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#dbeafe,#6b7280);font-size:29px;box-shadow:0 1px 5px rgba(0,0,0,.2);position:relative;overflow:hidden}.car-thumb:after{content:'';position:absolute;inset:auto -6px 0 -6px;height:18px;background:rgba(0,0,0,.1)}.photo-count{position:absolute;top:-8px;left:-9px;background:var(--yellow);border:2px solid #fff;min-width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}.vehicle-title{font-weight:800}.vehicle-sub{text-transform:uppercase;font-size:13px;color:#111}.blue-vin{color:#005bd8;font-weight:600}.muted{color:#4b5563}.ellipsis{max-width:165px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.price-strong{font-weight:900}.info-dot{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;background:#1683ff;color:#fff;border-radius:50%;font-size:12px;font-weight:900}.time-hot{color:#ff2f4f;font-size:18px;font-weight:900}.time-normal{font-weight:700}.date-text{font-size:13px;color:#111}.status-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:5px;padding:4px 14px;font-size:14px;min-width:82px}.status-en_cours{background:#dffeff;color:#111}.status-gagnee{background:#d8ffd2;color:#111}.status-perdue{background:#ffd1d1;color:#b90c22}.status-attente,.status-commande{background:#fff4d6}.status-ignoree{background:#eee}.status-credit_perdu{background:#ddd}.number-link{color:#111;font-weight:800;display:block}.empty-state{padding:25px;text-align:center;color:#6b7280;font-weight:700}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.56);display:none;align-items:center;justify-content:center;z-index:50}.modal-backdrop.open{display:flex}.modal{background:#fff;border-radius:10px;width:min(760px,94vw);max-height:90vh;overflow:auto;box-shadow:0 20px 80px rgba(0,0,0,.35)}.modal.dark{background:#090909;color:#fff;position:relative;overflow:hidden}.modal.dark:after{content:'🚘';position:absolute;right:25px;bottom:10px;font-size:160px;opacity:.09;pointer-events:none}.modal-header{background:var(--yellow);padding:16px 20px;display:flex;align-items:center;justify-content:space-between}.modal-header h3{margin:0;font-size:24px}.modal-body{padding:20px}.modal-footer{padding:14px 20px;border-top:1px solid #eee;display:flex;gap:10px;justify-content:flex-end}.modal.dark .modal-header{background:#111;color:#fff}.modal.dark .modal-footer{border-color:#222}.close-btn{border:0;background:transparent;font-size:26px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-row{display:flex;flex-direction:column;gap:5px}.form-row label{font-size:12px;font-weight:900;color:#6b7280;text-transform:uppercase}.form-row input,.form-row select,.form-row textarea{border:1px solid #d1d5db;border-radius:7px;padding:9px;background:#fff}.radio-pills{display:flex;flex-wrap:wrap;gap:8px}.radio-pills input{display:none}.radio-pills span,.pill{display:inline-flex;align-items:center;justify-content:center;border:1px solid #111;border-radius:7px;padding:8px 13px;font-weight:800;background:#fff}.radio-pills input:checked+span{background:#111;color:#fff}.dark textarea,.dark input,.dark select{background:#252525!important;color:#fff!important;border-color:#474747!important}.result-card{background:#171717;border:1px solid #333;border-radius:10px;padding:12px;margin-top:12px}.toast{position:fixed;left:50%;top:14px;transform:translateX(-50%);background:#0ea5e9;color:#fff;border-radius:8px;padding:10px 16px;font-weight:800;display:none;z-index:90}.toast.show{display:block}.offcanvas{position:fixed;right:-420px;top:0;width:410px;max-width:90vw;height:100vh;background:#fff;z-index:60;box-shadow:-8px 0 25px rgba(0,0,0,.2);transition:right .25s;padding:20px;overflow:auto}.offcanvas.open{right:0}.canvas-title{font-size:24px;font-weight:900;text-align:center}.dealer-check{display:flex;gap:9px;align-items:center;border-bottom:1px solid #eee;padding:12px 0}.dealer-check label{font-weight:700}.canvas-actions{position:sticky;bottom:0;background:#fff;padding-top:14px;display:flex;gap:10px;justify-content:center}.edit-layout{display:flex;min-height:100vh}.edit-content{flex:1;padding:0 30px 40px;overflow:auto}.edit-titlebar{height:54px;display:flex;align-items:center;justify-content:space-between}.edit-titlebar h1{font-size:24px;margin:0}.edit-grid{display:grid;grid-template-columns:1fr 360px;gap:22px;max-width:1600px}.card{background:#fff;border-radius:9px;box-shadow:0 1px 4px rgba(0,0,0,.08);padding:18px;margin-bottom:20px}.card h2,.card h3{margin:0 0 14px;font-size:20px}.side-sticky{position:sticky;top:16px}.mini-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.mini-photo{height:75px;border-radius:8px;background:linear-gradient(135deg,#dbeafe,#666);display:flex;align-items:center;justify-content:center;font-size:26px}.criteria-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.metric{text-align:center}.metric b{font-size:26px;color:#129632}.mobile-only{display:none}
@media(max-width:1400px){.stats-grid{grid-template-columns:repeat(4,1fr)}.main-inner{padding-left:24px;padding-right:24px}.eval-table td{font-size:13px}.sidebar{width:236px;min-width:236px}.edit-grid{grid-template-columns:1fr}}
@media(max-width:900px){.app{display:block;height:auto}.sidebar{width:100%;height:auto}.content{height:auto}.stats-grid{grid-template-columns:repeat(2,1fr)}.action-row{flex-wrap:wrap}.search-box{order:10;max-width:none;width:100%;margin-left:0}.filter-group{margin-left:0}.main-inner{padding:0 12px 28px}.topbar{height:auto;flex-wrap:wrap;padding:8px}.title{font-size:20px}.top-actions{width:100%;justify-content:flex-end}.mobile-only{display:block}.form-grid,.filter-panel{grid-template-columns:1fr}.edit-layout{display:block}.edit-content{padding:0 12px}.sidebar.edit{display:none}.criteria-grid{grid-template-columns:repeat(2,1fr)}}
