:root{--blue:#0867c5;--navy:#082d57;--ink:#132b45;--muted:#64788d;--line:#dce6ef;--bg:#f3f6fa;--white:#fff;--sidebar:260px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg)}button,input,select{font:inherit}.brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;color:#fff;background:linear-gradient(140deg,#1582e6,#074c92);font-size:20px;font-weight:900;letter-spacing:-2px}.eyebrow{color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.auth-page{display:grid;place-items:center;min-height:100vh;padding:32px;background:radial-gradient(circle at 12% 10%,#1479d5 0,transparent 34%),linear-gradient(135deg,#06294d,#075fab)}.auth-shell{width:min(980px,100%);min-height:620px;display:grid;grid-template-columns:1.08fr .92fr;overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 28px 80px rgba(0,15,35,.28)}.auth-brand{display:flex;flex-direction:column;justify-content:center;padding:65px;color:#fff;background:linear-gradient(145deg,rgba(6,43,79,.94),rgba(5,96,174,.91))}.auth-brand>span{margin:28px 0 10px;color:#8ed1ff;font-size:11px;font-weight:800;letter-spacing:.16em}.auth-brand h1{max-width:460px;margin:0 0 17px;font-size:40px;line-height:1.12}.auth-brand p{max-width:420px;margin:0;color:rgba(255,255,255,.78);font-size:16px;line-height:1.7}.auth-security{margin-top:50px;padding:15px;border:1px solid rgba(255,255,255,.18);border-radius:11px;color:rgba(255,255,255,.82);background:rgba(255,255,255,.08);font-size:12px}.auth-card{display:flex;flex-direction:column;justify-content:center;padding:60px}.auth-card h2{margin:7px 0 8px;font-size:28px}.auth-card>p{margin:0 0 25px;color:var(--muted);line-height:1.5}.auth-card form{display:grid;gap:17px}.auth-card label{display:grid;gap:7px;color:#344c64;font-size:13px;font-weight:700}.auth-card input{width:100%;min-height:48px;padding:0 14px;border:1px solid #bdccda;border-radius:9px;outline:0}.auth-card input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(8,103,197,.12)}.auth-card button,.primary-action{min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0 20px;border:0;border-radius:9px;color:#fff;background:linear-gradient(135deg,#0873d5,#0757a5);font-weight:750;text-decoration:none;cursor:pointer}.auth-card>small{margin-top:24px;color:#8494a5;text-align:center}.alert{margin-bottom:18px;padding:12px 14px;border-radius:8px;font-size:13px}.alert-error{color:#913541;background:#fce8eb}.mobile-brand{display:none}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);display:flex;flex-direction:column;padding:22px 15px;color:#fff;background:linear-gradient(180deg,#062d55,#041d37);z-index:20}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 9px 25px;color:#fff;text-decoration:none}.sidebar-brand .brand-mark{width:42px;height:42px}.sidebar-brand strong,.sidebar-brand small{display:block}.sidebar-brand small{margin-top:3px;color:#87a8c7;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.sidebar nav{display:grid;gap:4px}.sidebar nav a{display:flex;align-items:center;gap:11px;padding:11px 13px;border-radius:9px;color:#b8cce0;text-decoration:none;font-size:13px;font-weight:600}.sidebar nav a:hover,.sidebar nav a.active{color:#fff;background:rgba(35,135,224,.22)}.sidebar nav i{width:20px;text-align:center;font-style:normal;font-size:17px}.nav-label{margin:18px 13px 7px;color:#6285a6;font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.sidebar-logout{margin-top:auto}.sidebar-logout button{width:100%;padding:11px 13px;text-align:left;border:0;border-radius:9px;color:#b8cce0;background:transparent;cursor:pointer}.app-main{min-height:100vh;margin-left:var(--sidebar)}.topbar{height:75px;display:flex;align-items:center;justify-content:flex-end;gap:13px;padding:0 32px;border-bottom:1px solid var(--line);background:#fff}.topbar>div{text-align:right}.topbar small,.topbar strong{display:block}.topbar small{margin-bottom:3px;color:var(--muted);font-size:10px}.topbar strong{font-size:13px}.user-avatar{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;color:#fff;background:var(--blue);font-weight:800}.menu-toggle{display:none}.page-content{max-width:1500px;margin:0 auto;padding:32px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading h1{margin:5px 0 5px;font-size:30px}.page-heading p{margin:0;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.stats article{display:flex;align-items:center;gap:15px;min-height:105px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(21,54,86,.04)}.stat-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:12px;font-size:21px}.stat-icon.blue{color:#0969c7;background:#e6f2fd}.stat-icon.violet{color:#7043a5;background:#f0e9fa}.stat-icon.orange{color:#a96400;background:#fff0d8}.stat-icon.green{color:#087153;background:#e3f6ef}.stats strong,.stats small{display:block}.stats strong{font-size:24px}.stats small{margin-top:4px;color:var(--muted)}.welcome-panel{display:grid;grid-template-columns:1fr 300px;align-items:center;gap:30px;margin-top:20px;padding:30px;border:1px solid var(--line);border-radius:15px;background:#fff}.welcome-panel h2{margin:7px 0 9px}.welcome-panel p{max-width:720px;margin:0;color:var(--muted);line-height:1.6}.security-card{display:grid;gap:7px;padding:20px;border-radius:12px;color:#fff;background:linear-gradient(145deg,#0b5fab,#083765)}.security-card span,.security-card small{color:rgba(255,255,255,.75)}.empty-page{padding-top:15vh;text-align:center}.empty-page>span{font-size:80px;font-weight:900;color:#c8d6e3}.empty-page .primary-action{margin-top:15px}.menu-open .sidebar{transform:translateX(0)}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.welcome-panel{grid-template-columns:1fr}}
@media(max-width:760px){.auth-page{padding:15px}.auth-shell{display:block;min-height:0}.auth-brand{display:none}.auth-card{padding:38px 25px}.mobile-brand{display:flex;align-items:center;gap:12px;margin-bottom:35px}.sidebar{transform:translateX(-100%);transition:transform .2s ease}.app-main{margin-left:0}.topbar{padding:0 18px}.menu-toggle{display:block;margin-right:auto;border:0;background:transparent;font-size:23px}.page-content{padding:23px 16px}.page-heading{align-items:stretch;flex-direction:column}.stats{grid-template-columns:1fr}.welcome-panel{padding:22px}}
.secondary-action{min-height:42px;display:inline-flex;align-items:center;padding:0 17px;border:1px solid #bfd0df;border-radius:9px;color:var(--navy);background:#fff;text-decoration:none;font-weight:700}.alert-success{color:#116044;background:#e3f6ef}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}.tabs{display:flex;gap:4px}.tabs a,.tabs button{padding:9px 13px;border:0;border-radius:8px;color:#5d7287;background:transparent;text-decoration:none;cursor:pointer}.tabs .active{color:var(--blue);background:#e4f1fc;font-weight:700}.toolbar form{display:flex;gap:7px}.toolbar input{min-width:270px;min-height:40px;padding:0 12px;border:1px solid #bdccda;border-radius:8px}.toolbar button{padding:0 14px;border:1px solid #bdccda;border-radius:8px;background:#fff}.data-card,.form-card,.save-card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(21,54,86,.04)}.data-card table{width:100%;border-collapse:collapse}.data-card th,.data-card td{padding:14px 16px;border-bottom:1px solid #e7edf3;text-align:left}.data-card th{color:#607488;background:#f7f9fc;font-size:10px;letter-spacing:.06em;text-transform:uppercase}.data-card td small,.record-name+small{display:block;margin-top:4px;color:#76889a}.record-name{color:var(--navy);font-weight:750;text-decoration:none}.row-actions{display:flex;justify-content:flex-end;gap:10px}.row-actions form{margin:0}.row-actions a,.row-actions button{border:0;color:var(--blue);background:none;text-decoration:none;cursor:pointer}.row-actions button{color:#a33d49}.table-empty{padding:50px!important;text-align:center}.table-empty strong,.table-empty span{display:block}.pagination{display:flex;gap:5px;margin-top:15px}.pagination a{padding:7px 10px;border-radius:6px;background:#fff;text-decoration:none}.pagination a.active{color:#fff;background:var(--blue)}.form-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;align-items:start;gap:20px}.form-main{display:grid;gap:20px}.form-card,.save-card{padding:23px}.card-heading{padding-bottom:15px;margin-bottom:18px;border-bottom:1px solid var(--line)}.card-heading h2,.save-card h2{margin:0 0 5px}.card-heading p{margin:0;color:var(--muted)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field-grid .full{grid-column:1/-1}.form-card label,.save-card label,.pos-cart>label,.payment-grid label{display:grid;gap:7px;color:#3b5168;font-size:12px;font-weight:700}.form-card input,.form-card select,.form-card textarea,.save-card select,.pos-cart select,.payment-grid input,.payment-grid select{width:100%;min-height:42px;padding:8px 11px;border:1px solid #bdccda;border-radius:8px;background:#fff}.check{display:flex!important;align-items:center}.check input{width:auto!important}.save-card{position:sticky;top:90px;display:grid;gap:17px}.badge{padding:4px 8px;border-radius:20px;color:#08624d;background:#e3f6ef;font-size:11px}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 410px;align-items:start;gap:18px}.pos-tools{display:flex;gap:10px;margin-bottom:16px}.pos-tools>input{flex:1;min-height:44px;padding:0 13px;border:1px solid #bdccda;border-radius:9px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:11px;max-height:calc(100vh - 260px);overflow:auto}.product-tile{min-height:145px;display:flex;flex-direction:column;align-items:flex-start;padding:14px;text-align:left;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer}.product-tile:hover{border-color:#6eb2ea;box-shadow:0 6px 16px rgba(8,103,197,.1)}.product-tile>span{font-size:22px;color:var(--blue)}.product-tile small{margin:5px 0;color:var(--muted)}.product-tile b{margin-top:auto;color:var(--blue)}.product-tile em{margin-top:4px;color:var(--muted);font-size:10px;font-style:normal}.product-tile:disabled{opacity:.4}.pos-cart{position:sticky;top:85px}.cart-heading{display:flex;align-items:center;justify-content:space-between}.cart-heading h2{margin:0}.cart-heading button{border:0;color:#a33d49;background:none}.cart-lines{display:grid;gap:9px;max-height:275px;overflow:auto;margin:14px 0}.empty-cart{padding:55px 10px;color:var(--muted);text-align:center}.cart-line{padding:10px;border:1px solid var(--line);border-radius:9px;background:#f9fbfd}.cart-line>div{position:relative}.cart-line small{display:block;color:var(--muted)}.cart-line button{position:absolute;right:0;top:0;border:0;color:#a33d49;background:none;font-size:18px}.cart-line section{display:grid;grid-template-columns:60px 80px 70px 1fr;align-items:end;gap:6px;margin-top:8px}.cart-line label{font-size:9px}.cart-line input{width:100%;min-height:32px;margin-top:3px;border:1px solid #c8d5e0;border-radius:5px}.cart-line section>b{text-align:right}.pos-totals{padding:13px 0;border-block:1px solid var(--line)}.pos-totals label,.pos-totals p,.change{display:flex;align-items:center;justify-content:space-between;margin:6px 0}.pos-totals input{width:105px;min-height:32px;text-align:right;border:1px solid #c8d5e0;border-radius:6px}.pos-totals .grand{font-size:19px}.payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.payment-grid .full{grid-column:1/-1}.change{padding:10px;border-radius:8px;color:#086149;background:#e3f6ef}
@media(max-width:1150px){.form-layout,.pos-layout{grid-template-columns:1fr}.save-card,.pos-cart{position:static}.product-grid{max-height:none}}@media(max-width:760px){.toolbar,.pos-tools{align-items:stretch;flex-direction:column}.toolbar form{display:flex}.toolbar input{min-width:0;width:100%}.field-grid{grid-template-columns:1fr}.field-grid .full{grid-column:auto}.data-card thead{display:none}.data-card table,.data-card tbody,.data-card tr,.data-card td{display:block;width:100%}.data-card tr{padding:10px 0;border-bottom:1px solid var(--line)}.data-card td{display:grid;grid-template-columns:90px 1fr;padding:6px 14px;border:0}.data-card td:before{content:attr(data-label);color:var(--muted);font-size:10px;text-transform:uppercase}.row-actions{display:flex!important}.payment-grid{grid-template-columns:1fr}.payment-grid .full{grid-column:auto}}
.client-actions{display:flex;align-items:center;gap:10px}.client-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.client-summary article{min-height:94px;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:19px 22px;border:1px solid var(--line);border-radius:13px;background:#fff}.client-summary span{color:var(--muted);font-size:12px}.client-summary strong{color:var(--navy);font-size:22px}.client-detail-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:18px;margin-bottom:26px}.client-details{display:grid;gap:0;margin:0}.client-details>div{display:grid;grid-template-columns:125px minmax(0,1fr);gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.client-details>div:last-child{border-bottom:0}.client-details dt{color:var(--muted);font-size:12px}.client-details dd{min-width:0;margin:0;overflow-wrap:anywhere}.client-details a,.client-history a{color:var(--blue)}.client-notes{margin:0;color:#445b71;line-height:1.7;overflow-wrap:anywhere}.client-history .card-heading{margin-bottom:0}.client-history .card-heading h2{margin:0 0 5px}.client-history .data-card{margin-top:14px}@media(max-width:850px){.client-detail-grid{grid-template-columns:1fr}}@media(max-width:760px){.client-actions{width:100%;flex-wrap:wrap}.client-actions a{flex:1;justify-content:center}.client-summary{grid-template-columns:1fr}.client-details>div{grid-template-columns:100px minmax(0,1fr)}}

/* Tableau de bord */
.app-page{--sidebar:248px;background:#f5f8fd}.sidebar{background:linear-gradient(180deg,#102239,#192e48);padding:20px 12px}.sidebar-brand{padding:0 10px 24px}.sidebar-brand .brand-mark{background:linear-gradient(135deg,#277ffc,#0d55b6);font-style:italic}.sidebar nav a{font-size:13px;transition:background .2s,color .2s,transform .2s}.sidebar nav a:hover{transform:translateX(2px)}.sidebar nav a.active{background:linear-gradient(110deg,#1269d9,#0c55af);box-shadow:0 8px 18px rgba(1,16,40,.15)}.sidebar-location{display:grid;gap:3px;margin-top:auto;padding:15px;border:1px solid rgba(255,255,255,.11);border-radius:11px;background:rgba(255,255,255,.05)}.sidebar-location strong{font-size:12px}.sidebar-location small{color:#a8c0d9;font-size:11px}.sidebar-logout{margin-top:9px}.topbar{height:70px;justify-content:space-between;gap:16px;padding:0 24px}.global-search{display:flex;align-items:center;gap:9px;width:min(590px,60%);height:40px;padding:0 13px;border:1px solid #d7e3f1;border-radius:10px;background:#f8fbff;color:#58708d}.global-search span{font-size:23px;line-height:1}.global-search input{width:100%;border:0;outline:0;background:transparent;color:#172c48;font-size:13px}.topbar-user{margin-left:auto}.page-content{padding:18px 20px 30px}.dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:8px 0 21px}.dashboard-heading h1{margin:0 0 5px;color:#172a47;font-size:clamp(23px,2.2vw,31px);letter-spacing:-.03em}.dashboard-heading p{margin:0;color:#59708a;font-size:14px}.date-chip{display:flex;align-items:center;gap:9px;padding:11px 14px;border:1px solid #dce6f2;border-radius:10px;background:#fff;color:#536c87;white-space:nowrap;font-size:12px}.dash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:15px}.dash-stat,.dash-card,.dash-shortcuts a{border:1px solid #dfe8f3;border-radius:12px;background:#fff;box-shadow:0 5px 20px rgba(36,72,112,.035)}.dash-stat{min-width:0;display:flex;align-items:center;gap:13px;padding:15px 14px;min-height:100px}.dash-icon{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:10px;color:#fff;font-size:23px;font-style:normal}.dash-icon.blue{background:linear-gradient(135deg,#1979ee,#0754c1)}.dash-icon.green{background:linear-gradient(135deg,#1dc774,#09a35b)}.dash-icon.orange{background:linear-gradient(135deg,#ffae25,#f17c0d)}.dash-icon.purple{background:linear-gradient(135deg,#9952f7,#7028dc)}.dash-stat small,.dash-stat strong,.dash-stat div>span{display:block}.dash-stat small{color:#58718d;font-size:11px}.dash-stat strong{margin:4px 0;color:#142947;font-size:clamp(16px,1.6vw,23px);white-space:nowrap}.dash-stat div>span{color:#22885b;font-size:10px}.dash-main-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:14px;margin-bottom:14px}.dash-card{min-width:0;padding:16px}.dash-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.dash-card-head h2{margin:0;color:#172b49;font-size:16px}.dash-card-head h2 span{font-weight:500;color:#58708b}.dash-card-head a{color:#075fc7;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}.chart-unit{color:#637b96;font-size:11px}.chart-wrap{display:flex;gap:9px;height:205px}.chart-y{display:flex;flex-direction:column;justify-content:space-between;padding:0 0 10px;color:#7890a9;font-size:10px;text-align:right}.chart-wrap svg{width:100%;height:100%}.chart-dates{display:flex;justify-content:space-between;margin:0 4px 0 45px;color:#7890a9;font-size:10px}.quick-search{display:flex;align-items:center;gap:8px;height:39px;padding:0 10px;border:1px solid #d9e5f2;border-radius:8px;color:#6381a3}.quick-search span{font-size:20px}.quick-search input{width:100%;border:0;outline:0;font-size:12px}.quick-products{min-height:155px}.quick-products>a{display:grid;grid-template-columns:34px minmax(0,1fr) auto 25px;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #ebf0f6;color:#172a47;text-decoration:none}.quick-products>a:hover{background:#f7fbff}.quick-product-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;background:#eaf2fd;color:#0c65ce}.quick-products strong,.quick-products small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-products strong{font-size:11px}.quick-products small{margin-top:3px;color:#7690a8;font-size:10px}.quick-products b{font-size:11px;white-space:nowrap}.quick-products i{display:grid;place-items:center;width:25px;height:25px;border-radius:6px;color:#fff;background:#126ad6;font-style:normal}.quick-pos-cta{display:block;margin-top:11px;padding:10px;border-radius:8px;color:#fff;background:#1064ca;text-align:center;text-decoration:none;font-size:12px;font-weight:750}.dash-bottom-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:14px}.dash-table-wrap{overflow:auto}.dash-table{width:100%;border-collapse:collapse;font-size:11px}.dash-table th,.dash-table td{padding:11px 9px;border-bottom:1px solid #e9eff6;text-align:left;white-space:nowrap}.dash-table th{color:#58708b;background:#f8fbfe;font-weight:700}.dash-table td strong{color:#17304d}.dash-empty{padding:27px 12px;color:#7389a1;text-align:center;font-size:12px}.recent-clients>a{display:flex;align-items:center;gap:10px;padding:8px 2px;border-bottom:1px solid #e9eff6;color:#172b49;text-decoration:none}.recent-clients>a:hover{background:#f8fbff}.client-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#1359b2;background:#e2efff;font-size:11px;font-weight:800}.recent-clients>a>span:nth-child(2){min-width:0;flex:1}.recent-clients strong,.recent-clients small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-clients strong{font-size:11px}.recent-clients small{margin-top:4px;color:#7b90a5;font-size:10px}.recent-clients em{padding:5px 8px;border-radius:20px;color:#087047;background:#e3f8eb;font-size:10px;font-style:normal}.dash-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:14px}.dash-shortcuts a{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px;color:#183252;text-decoration:none;font-size:12px;font-weight:750;transition:transform .2s,box-shadow .2s}.dash-shortcuts a:hover{transform:translateY(-3px);box-shadow:0 10px 25px rgba(22,81,148,.12)}.dash-shortcuts .dash-icon{width:40px;height:40px;flex-basis:40px;font-size:18px}
@media(max-width:1180px){.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-main-grid,.dash-bottom-grid{grid-template-columns:1fr}.dash-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.global-search{width:100%;max-width:none}.topbar-user,.topbar .user-avatar{display:none}.dashboard-heading{align-items:flex-start;flex-direction:column}.dash-stats{gap:9px}.dash-stat{padding:12px;gap:9px}.dash-icon{width:38px;height:38px;flex-basis:38px;font-size:18px}.dash-stat strong{white-space:normal;font-size:17px}.dash-shortcuts{gap:9px}.dash-shortcuts a{flex-direction:column;align-items:flex-start}.chart-wrap{height:170px}.date-chip{display:none}}
.global-search{position:relative}.search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:40;max-height:340px;overflow:auto;padding:6px;border:1px solid #dce6f1;border-radius:10px;background:#fff;box-shadow:0 15px 35px rgba(21,54,86,.16)}.search-results>a{display:grid;gap:3px;padding:9px 11px;border-radius:7px;color:#172b49;text-decoration:none}.search-results>a:hover{background:#eef6ff}.search-results strong{font-size:12px}.search-results small{color:#7389a0;font-size:10px}.search-results p{margin:0;padding:12px;color:#7389a0;font-size:12px}.search-results[hidden],.quick-products [hidden]{display:none!important}

/* Marque de la page de connexion */
.auth-logo{display:block;width:125px;height:78px;background:#fff;mask:url('/assets/images/gf-enterprise-logo-header.png') left center/contain no-repeat;-webkit-mask:url('/assets/images/gf-enterprise-logo-header.png') left center/contain no-repeat}
.auth-security{display:flex;align-items:center;gap:9px;margin-top:50px;padding:15px;border:1px solid rgba(255,255,255,.18);border-radius:11px;color:rgba(255,255,255,.82);background:rgba(255,255,255,.08);font-size:12px}
.auth-security svg{width:19px;height:19px;flex:0 0 19px;fill:currentColor}
.mobile-auth-logo{width:64px;height:auto;object-fit:contain}
@media(max-width:760px){.auth-card{padding:34px 24px}.mobile-brand{justify-content:center;margin-bottom:27px}.auth-card h2,.auth-card>p{text-align:center}.auth-card button{width:100%}}
.alert-success{color:#116044;background:#e3f6ef}

/* Interface CRM/POS — icônes et profondeur visuelle */
.gf-icon{display:block;width:1em;height:1em;stroke-width:1.85}.sidebar-brand .brand-mark{display:flex;align-items:center;justify-content:center;overflow:hidden;background:transparent;box-shadow:none}.sidebar-brand .brand-mark img{width:44px;height:44px;object-fit:contain}.sidebar nav i{display:grid;place-items:center;width:20px;height:20px;font-size:0}.sidebar nav i .gf-icon{width:18px;height:18px}.sidebar nav a{gap:12px;border:1px solid transparent}.sidebar nav a:hover{border-color:rgba(141,193,245,.1);background:rgba(71,142,213,.12)}.sidebar nav a.active{border-color:rgba(135,197,255,.16)}.sidebar-logout button{display:flex;align-items:center;gap:10px}.sidebar-logout .gf-icon{width:18px;height:18px}.topbar{box-shadow:0 1px 0 rgba(18,45,76,.02)}.global-search .gf-icon,.quick-search .gf-icon{width:18px;height:18px;flex:0 0 18px;color:#5d7d9d}.dashboard-heading{padding:6px 2px 4px}.dashboard-heading h1{font-weight:780}.date-chip{box-shadow:0 4px 14px rgba(37,77,122,.045)}.date-chip .gf-icon{width:16px;height:16px;color:#1769c3}.dash-stat,.dash-card,.dash-shortcuts a{border-color:#e2eaf4;box-shadow:0 8px 28px rgba(31,71,116,.055)}.dash-stat{position:relative;overflow:hidden}.dash-stat:after{content:"";position:absolute;right:-28px;bottom:-31px;width:88px;height:88px;border-radius:50%;background:var(--card-glow,rgba(26,121,238,.055))}.dash-stat:nth-child(2){--card-glow:rgba(29,199,116,.065)}.dash-stat:nth-child(3){--card-glow:rgba(255,174,37,.075)}.dash-stat:nth-child(4){--card-glow:rgba(153,82,247,.065)}.dash-icon{position:relative;z-index:1;border-radius:14px;box-shadow:0 9px 18px rgba(22,92,174,.18)}.dash-icon .gf-icon{width:21px;height:21px}.dash-stat div{position:relative;z-index:1}.dash-stat div>span{font-weight:650}.dash-card{border-radius:16px}.dash-card-head h2{font-weight:760}.quick-product-icon{display:grid;place-items:center}.quick-product-icon .gf-icon{width:17px;height:17px}.quick-products i{display:grid;place-items:center}.quick-products i .gf-icon{width:15px;height:15px}.quick-products>a{border-radius:8px;padding-inline:4px;transition:background .18s,transform .18s}.quick-products>a:hover{transform:translateX(2px)}.dash-table tr:last-child td,.recent-clients>a:last-child{border-bottom:0}.dash-shortcuts a{border-radius:14px}.dash-shortcuts .dash-icon{border-radius:11px}.menu-toggle{width:38px;height:38px;align-items:center;justify-content:center;gap:4px;border:1px solid #dce7f2;border-radius:10px;background:#f8fbff}.menu-toggle span{display:block;width:16px;height:1.5px;border-radius:2px;background:#265177}
@media(max-width:760px){.menu-toggle{display:flex}.sidebar-brand .brand-mark img{width:40px;height:40px}.dash-stat:after{width:70px;height:70px}.dash-icon .gf-icon{width:18px;height:18px}.dash-shortcuts a{min-height:104px}.dash-shortcuts a .dash-icon{margin-bottom:2px}}

/* Gestion d’équipe et calculateur */
.sidebar-brand .brand-mark img{width:156px;height:54px;filter:brightness(0) invert(1);object-fit:contain}.sidebar-brand{gap:10px}.sidebar-brand>span:last-child{display:none}.sidebar-location{display:flex;text-decoration:none;color:#fff;align-items:center;gap:10px}.sidebar-location.active{border-color:rgba(117,190,255,.38);background:rgba(36,112,206,.18)}.sidebar-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#5ca9ff,#1b62bb);font-size:12px;font-weight:800}.topbar-user{color:var(--ink);text-decoration:none}.user-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e6f1ff;color:#0c5ebf;text-decoration:none;font-weight:800}.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.account-grid form{display:grid;gap:16px}.status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700}.status-active{color:#087047;background:#e3f8eb}.status-disabled{color:#9d4b25;background:#fff0e7}.role-administrator{color:#5531b3;background:#efe9ff}.role-manager{color:#075ebd;background:#e6f1ff}.role-cashier{color:#087047;background:#e3f8eb}.role-production{color:#9a5a00;background:#fff2d6}.calculator-shell{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);min-height:540px;border:1px solid #dfe8f3;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 8px 28px rgba(31,71,116,.055)}.calculator-list{padding:16px;border-right:1px solid #e5edf5;background:#fbfdff}.calculator-filter input{width:100%;height:43px;padding:0 13px;border:1px solid #d7e3ef;border-radius:9px;outline:0}.calculator-items{display:grid;gap:6px;margin-top:12px;max-height:465px;overflow:auto;padding-right:3px}.calculator-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:10px;border:1px solid transparent;border-radius:10px;color:#19314e;background:transparent;text-align:left;cursor:pointer}.calculator-item:hover,.calculator-item.selected{border-color:#beddf9;background:#edf6ff}.calc-item-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;color:#0769d0;background:#e3f0ff}.calc-item-icon .gf-icon{width:19px;height:19px}.calculator-item small,.calculator-item strong,.calculator-item em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calculator-item small,.calculator-item em{color:#748ba3;font-size:10px;font-style:normal}.calculator-item strong{margin:2px 0;font-size:12px}.calculator-item b{color:#0b63c6;font-size:11px;white-space:nowrap}.calculator-panel{padding:35px;max-width:650px}.calculator-empty{display:grid;place-items:center;min-height:400px;color:#7890a7;text-align:center}.calculator-empty .gf-icon{width:45px;height:45px;color:#3987e1}.calculator-empty h2{margin:13px 0 5px;color:#1b3452}.calculator-empty p{margin:0}.calculator-panel h2{margin:7px 0;color:#17304d;font-size:27px}.calculator-panel>div>p{margin:0 0 22px;color:#637c96}.calc-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.calc-fields label{display:grid;gap:7px;color:#405a74;font-size:12px;font-weight:700}.calc-fields input{min-height:43px;padding:0 12px;border:1px solid #c7d7e5;border-radius:8px}.calc-total{display:grid;gap:4px;margin:24px 0 15px;padding:18px;border-radius:12px;background:linear-gradient(135deg,#eaf4ff,#f7fbff)}.calc-total span,.calc-total small{color:#607a96;font-size:12px}.calc-total strong{color:#0a63c8;font-size:28px}.calculator-panel .primary-action{justify-content:center;width:100%}.calculator-note{margin-top:13px!important;color:#7c91a7!important;font-size:11px}.primary-action{gap:8px}.primary-action .gf-icon{width:17px;height:17px}@media(max-width:900px){.calculator-shell,.account-grid{grid-template-columns:1fr}.calculator-list{border-right:0;border-bottom:1px solid #e5edf5}.calculator-items{max-height:260px}.calculator-panel{max-width:none}.sidebar-brand .brand-mark img{width:130px}}@media(max-width:600px){.calc-fields{grid-template-columns:1fr}.calculator-panel{padding:22px}.sidebar-brand .brand-mark img{width:115px}}
/* Finition POS et calculateur */
.sidebar-brand .brand-mark{width:170px!important;height:58px!important;border-radius:0!important}.sidebar-brand .brand-mark img{display:block!important;width:156px!important;height:54px!important;max-width:100%!important;filter:brightness(0) invert(1)!important;-webkit-filter:brightness(0) invert(1)!important;opacity:1!important;object-fit:contain!important}
.calculator-shell button,.calculator-shell input{font:inherit}.calculator-item{appearance:none!important;min-height:68px!important}.calculator-item>*{min-width:0}.calculator-item strong{font-size:13px!important}.calculator-panel [data-calc-form]{width:100%}.calc-fields label{min-width:0}.calc-fields input{width:100%!important;font-size:15px!important}.calculator-panel .primary-action{min-height:45px!important}
.cart-line section{grid-template-columns:76px 94px 84px minmax(90px,1fr)!important;gap:8px!important}.cart-line label{font-size:10px!important;font-weight:700}.cart-line input{min-height:38px!important;padding:0 8px!important;font-size:15px!important}.cart-line section>b{padding-bottom:9px;font-size:14px!important}.payment-grid input,.payment-grid select{min-height:42px!important;font-size:14px!important}.payment-grid label{display:grid;gap:6px;font-size:12px;font-weight:700}.payment-grid [hidden]{display:none!important}
@media(max-width:600px){.sidebar-brand .brand-mark{width:136px!important}.sidebar-brand .brand-mark img{width:128px!important;height:44px!important}.cart-line section{grid-template-columns:1fr 1fr!important}.cart-line section>b{grid-column:1/-1;padding-top:4px}.calculator-item{min-height:64px!important}}
/* Stock, rapports et marque */
.sidebar-brand{padding-bottom:28px}.sidebar-brand .brand-mark{display:block!important;width:164px!important;height:56px!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}.sidebar-brand .brand-mark img{display:block!important;width:156px!important;height:54px!important;object-fit:contain!important;filter:brightness(0) invert(1)!important}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.page-heading h1{margin:4px 0 6px;font-size:30px}.page-heading p{margin:0;color:#637c96}.stock-grid{display:grid;grid-template-columns:minmax(270px,.75fr) minmax(0,1.25fr);gap:18px}.panel{padding:20px;border:1px solid #e1eaf3;border-radius:15px;background:#fff;box-shadow:0 8px 28px rgba(31,71,116,.055)}.panel h2{margin:0;color:#183252;font-size:17px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.panel-head a{color:#0968c8;font-size:12px;font-weight:700;text-decoration:none}.stock-form{display:grid;gap:13px;margin-top:18px}.stock-form label{display:grid;gap:6px;color:#405a74;font-size:12px;font-weight:700}.stock-form input,.stock-form select,.stock-form textarea,.report-filter input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #c7d7e5;border-radius:8px;background:#fff;color:#17304d}.stock-form textarea{min-height:78px;resize:vertical}.stock-history{margin-top:18px}.table-wrap{overflow:auto}.panel table{width:100%;border-collapse:collapse;font-size:12px}.panel th,.panel td{padding:11px 9px;border-bottom:1px solid #e9eff6;text-align:left;white-space:nowrap}.panel th{color:#617a94;background:#f8fbfe;font-size:11px}.panel td small{display:block;margin-top:3px;color:#7890a7}.low-stock td{background:#fff7ed;color:#9a4c04}.report-filter{display:flex;align-items:center;gap:8px}.report-filter input{width:auto}.report-filter button{min-height:42px;padding:0 13px;border:1px solid #bdd0e2;border-radius:8px;color:#245071;background:#fff;font-weight:700;cursor:pointer}.report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.report-stats article{padding:18px;border:1px solid #e1eaf3;border-radius:14px;background:#fff;box-shadow:0 8px 28px rgba(31,71,116,.055)}.report-stats small,.report-stats strong{display:block}.report-stats small{color:#6f859c;font-size:12px}.report-stats strong{margin-top:7px;color:#12345b;font-size:21px}.report-print+.report-print{margin-top:18px}@media(max-width:900px){.stock-grid{grid-template-columns:1fr}.report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.page-heading{display:block}.report-filter{flex-wrap:wrap;margin-top:14px}.report-filter input{width:100%}.report-stats{grid-template-columns:1fr}.panel{padding:15px}.sidebar-brand .brand-mark{width:140px!important}.sidebar-brand .brand-mark img{width:132px!important;height:46px!important}}@media print{.sidebar,.topbar,.report-filter,.page-heading .eyebrow{display:none!important}.app-main{margin:0!important}.page-content{padding:0!important}.app-page{background:#fff!important}.panel,.report-stats article{box-shadow:none!important}.report-print{break-inside:avoid}.page-heading{margin-bottom:12px}.page-heading h1{font-size:22px}}
/* Connexion compacte et confirmation de déconnexion */
.login-page{padding:24px;background:linear-gradient(135deg,#07589f,#063567)}.auth-shell-login{display:block;width:min(685px,100%);min-height:0;border-radius:23px}.login-card{display:flex;min-height:0;padding:34px 40px 31px}.login-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 auto 25px;color:#17304d}.login-brand img{width:62px;height:38px;object-fit:contain}.login-brand strong{font-size:17px}.login-card .eyebrow{text-align:left}.login-card h2{margin-top:12px;font-size:27px}.login-card>p{margin-bottom:25px}.login-card>small{margin-top:23px}.confirm-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px}.confirm-modal[hidden]{display:none}.confirm-backdrop{position:absolute;inset:0;background:rgba(4,21,42,.58);backdrop-filter:blur(3px)}.confirm-dialog{position:relative;width:min(390px,100%);padding:27px;border-radius:18px;background:#fff;box-shadow:0 22px 70px rgba(1,22,51,.3);text-align:center;animation:confirm-in .18s ease-out}.confirm-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 13px;border-radius:50%;color:#0a68c7;background:#e8f3ff;font-size:25px;font-weight:800}.confirm-dialog h2{margin:0;color:#17304d;font-size:21px}.confirm-dialog p{margin:9px 0 23px;color:#698099;font-size:14px}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.confirm-actions button{min-height:43px;border-radius:9px;font-weight:750;cursor:pointer}.confirm-cancel{border:1px solid #cbd9e6;color:#31516f;background:#fff}.confirm-submit{border:0;color:#fff;background:#0969c8}@keyframes confirm-in{from{opacity:0;transform:translateY(9px) scale(.97)}to{opacity:1;transform:none}}@media(max-width:560px){.login-page{padding:14px}.login-card{padding:29px 24px 26px}.login-brand{margin-bottom:22px}.login-card h2{font-size:23px}.confirm-actions{grid-template-columns:1fr}}
.notes-list{display:grid;gap:10px;margin-top:16px}.notes-list article{padding:13px;border:1px solid #e4ecf4;border-radius:10px;background:#fbfdff}.notes-list article p{margin:0 0 8px;line-height:1.55}.notes-list article strong,.notes-list article small{display:block}.notes-list article small{margin-top:4px;color:#748ba3}.notes-list form{margin-top:10px}.notes-list form button{padding:7px 10px;border:1px solid #b9d3ec;border-radius:7px;color:#0968c8;background:#fff;font-weight:700;cursor:pointer}.unlock-panel,.settings-panel{max-width:560px}.unlock-panel>p{color:#687f97}
.sidebar-brand{justify-content:flex-start!important;padding-left:0!important}.sidebar-brand .brand-mark{margin-left:0!important}.reset-panel{max-width:560px;margin-top:18px;border-color:#f2c5c5}.reset-panel>p{color:#6f5d65;line-height:1.55}.danger-action{min-height:44px;border:0;border-radius:9px;color:#fff;background:#c73543;font-weight:750;cursor:pointer}
.archive-actions{display:flex;gap:8px;flex-wrap:wrap}.archive-actions form{margin-top:10px}.archive-actions .delete-action,.notes-list form button{color:#b52e3d;border-color:#ecc6cb}
.page-content:has(.settings-panel){max-width:960px}.settings-panel,.reset-panel{margin-left:auto;margin-right:auto}.settings-panel{width:min(560px,100%)}.reset-panel{width:min(560px,100%)}
.payment-due{color:#a32233!important;background:#fff0f2!important}.payment-grid .primary-action:disabled{cursor:not-allowed;opacity:.5;filter:grayscale(.2)}
