@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root{--navy:#102b3a;--navy2:#17394a;--teal:#159b95;--teal-dark:#0d7774;--ink:#182b36;--muted:#70818a;--line:#e8eef0;--bg:#f5f8f9;--white:#fff;--green:#14836d;--red:#c44e4e;--orange:#b7791f;--shadow:0 8px 24px rgba(19,47,60,.05)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px}.demo-ribbon{position:fixed;z-index:20;top:12px;right:-38px;transform:rotate(38deg);background:#fff1d8;color:#8b5a13;border:1px solid #f0d8ad;padding:5px 42px;font-size:9px;font-weight:800;letter-spacing:.12em;box-shadow:0 2px 8px #0001}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:var(--navy);color:#dce8ed;padding:25px 17px 18px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 27px}.brand-mark{width:39px;height:39px;border-radius:12px;background:#1aa39b;color:white;display:grid;place-items:center;font-size:13px;font-weight:800;letter-spacing:-.04em;box-shadow:0 5px 16px #0a8e8740;flex:none}.brand strong{display:block;font-size:13px;letter-spacing:.04em;color:#fff}.brand small{display:block;font-size:10px;color:#8faab5;margin-top:3px}.establishment{border:1px solid #ffffff1c;background:#ffffff09;border-radius:12px;padding:13px 13px;margin-bottom:24px}.eyebrow{display:block;font-size:9px;font-weight:800;letter-spacing:.12em;color:#81939a}.establishment .eyebrow{color:#8aa5af;margin-bottom:8px}.establishment strong{display:block;font-size:12px;color:#fff}.establishment small{display:block;color:#9bb1ba;font-size:10px;margin-top:4px}.side-nav{display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:13px;width:100%;border:0;background:transparent;color:#aac0c9;text-align:left;padding:12px 13px;border-radius:9px;font:600 12px 'DM Sans',sans-serif;cursor:pointer}.nav-link span{width:18px;text-align:center;font-size:17px}.nav-link:hover{background:#ffffff0d;color:white}.nav-link.active{background:#1a4655;color:white;box-shadow:inset 3px 0 var(--teal)}.sidebar-bottom{margin-top:auto}.user-chip{display:flex;align-items:center;gap:10px;padding:13px 5px;border-top:1px solid #ffffff1a}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#d9f1ec;color:#137b73;font-size:11px;font-weight:800;flex:none}.user-chip strong{display:block;font-size:11px;color:#fff}.user-chip small{display:block;color:#91aab4;font-size:10px;margin-top:3px}.more{margin-left:auto;letter-spacing:2px;color:#94aab3}.sidebar-note{font-size:9px;line-height:1.6;color:#7895a1;padding:4px 5px}.main-area{margin-left:252px;padding:0 34px 25px;max-width:1800px}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;margin-bottom:27px}.breadcrumb{font-size:11px;color:#657780}.breadcrumb span{color:#b5c0c5;margin:0 8px}.top-actions{display:flex;align-items:center;gap:18px}.today{font-size:11px;color:#75858c}.icon-button,.dots-button{border:1px solid var(--line);background:#fff;border-radius:10px;width:35px;height:35px;color:#526771;position:relative;font-size:17px}.icon-button i{position:absolute;width:6px;height:6px;border-radius:50%;background:#e27d58;top:7px;right:7px}.top-avatar{width:31px;height:31px}.mobile-brand{display:none}.page{display:none;animation:fade .2s ease}.page.active{display:block}@keyframes fade{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:none}}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}.page-heading .eyebrow{color:var(--teal);margin-bottom:7px}.page-heading h1{font-size:25px;letter-spacing:-.7px;margin:0 0 6px;font-weight:800}.page-heading p,.panel-heading p{margin:0;color:var(--muted);font-size:11px}.primary-button{border:0;border-radius:9px;background:var(--teal);color:#fff;padding:11px 16px;font:700 11px 'DM Sans',sans-serif;box-shadow:0 5px 13px #159b9526;cursor:pointer;white-space:nowrap}.primary-button:hover{background:var(--teal-dark)}.primary-button:disabled{opacity:.45;cursor:not-allowed}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.metric-card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px 17px 14px;box-shadow:var(--shadow);min-height:127px}.metric-card.featured{background:var(--navy);color:#fff;border-color:var(--navy)}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#71818a;font-size:10px;font-weight:600;margin-bottom:15px}.featured .metric-top{color:#b3cbd2}.metric-card>strong{font-size:25px;letter-spacing:-1px;font-weight:800;display:block;white-space:nowrap}.metric-card>strong small,.payment-total strong small{font-size:11px;letter-spacing:0;font-weight:600}.metric-foot{display:flex;align-items:center;gap:7px;color:#91a0a6;font-size:9px;margin-top:10px}.positive{color:#22a17f;font-weight:800}.featured .positive{color:#66d7b2}.featured .metric-foot{color:#91abb5}.warning{color:var(--orange);font-weight:700}.metric-icon{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#ffffff18;color:#8ae0ce;font-size:14px}.soft-blue{background:#e8f2fc;color:#5489b8}.soft-orange{background:#fff2e2;color:#d08a36}.soft-red{background:#fff0ef;color:#cf6660}.sparkline{height:28px;display:flex;align-items:end;gap:4px;position:absolute;bottom:0;right:15px;opacity:.7}.sparkline span{width:5px;background:#1ab4a5;border-radius:3px 3px 0 0}.sparkline span:nth-child(1){height:7px}.sparkline span:nth-child(2){height:11px}.sparkline span:nth-child(3){height:9px}.sparkline span:nth-child(4){height:15px}.sparkline span:nth-child(5){height:12px}.sparkline span:nth-child(6){height:19px}.sparkline span:nth-child(7){height:14px}.sparkline span:nth-child(8){height:22px}.sparkline span:nth-child(9){height:17px}.sparkline span:nth-child(10){height:25px}.sparkline span:nth-child(11){height:21px}.sparkline span:nth-child(12){height:28px}.content-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:15px;margin-bottom:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);padding:18px;margin-bottom:15px;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.panel-heading h2{font-size:13px;margin:0 0 5px;letter-spacing:-.2px}.panel-heading select,.cart-footer select{border:1px solid var(--line);border-radius:7px;padding:8px 10px;color:#60717a;background:#fff;font:600 10px 'DM Sans',sans-serif}.chart-legend{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#7a8b92;margin-bottom:12px}.chart-legend strong{color:#30454e;font-size:12px}.legend-dot{display:inline-block;width:7px;height:7px;background:#159b95;border-radius:50%;margin-right:6px}.chart{display:flex;height:165px}.y-labels{display:flex;flex-direction:column;justify-content:space-between;padding:0 10px 23px 0;color:#a3afb4;font-size:9px}.chart-area{position:relative;flex:1}.grid-lines{position:absolute;inset:0 0 22px;display:flex;flex-direction:column;justify-content:space-between}.grid-lines i{height:1px;border-top:1px dashed #e9eff0}.chart svg{position:absolute;inset:0 0 22px;width:100%;height:calc(100% - 22px);overflow:visible}.x-labels{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;color:#9aa8ad;font-size:9px}.payment-total{margin:23px 0 16px}.payment-total strong{display:block;font-size:23px;letter-spacing:-.8px}.payment-total span{font-size:10px;color:#92a0a5}.payment-bar{height:9px;border-radius:10px;display:flex;overflow:hidden;gap:3px}.payment-bar i{display:block}.cash{width:60%;background:#159b95}.flooz{width:20%;background:#76b9e5}.tmoney{width:15%;background:#e8b35f}.other{flex:1;background:#9b8bd4}.payment-list{display:grid;gap:12px;margin-top:17px}.payment-list>div{display:grid;grid-template-columns:1fr auto 34px;align-items:center;gap:8px;font-size:10px}.payment-list span{color:#6e7f87}.payment-list strong{font-size:10px}.payment-list small{text-align:right;color:#9ba8ad}.cash-dot{background:#159b95}.flooz-dot{background:#76b9e5}.tmoney-dot{background:#e8b35f}.other-dot{background:#9b8bd4}.text-button{border:0;background:transparent;color:var(--teal-dark);font:700 10px 'DM Sans',sans-serif;cursor:pointer;padding:5px}.table-panel{padding-bottom:5px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:#9aa7ad;font-size:8px;letter-spacing:.08em;font-weight:800;padding:10px 11px;border-bottom:1px solid var(--line)}td{padding:13px 11px;border-bottom:1px solid #f0f3f4;font-size:10px;color:#5d7078}tbody tr:last-child td{border-bottom:0}.order-id{font-weight:800;color:#277e79}.status{display:inline-flex;align-items:center;border-radius:30px;padding:5px 8px;font-size:9px;font-weight:700}.status.paid{background:#e8f7f1;color:#188366}.status.preparing{background:#fff4e3;color:#aa751d}.status.pending{background:#edf3fa;color:#557ca7}.footer-note{text-align:center;color:#a6b1b5;font-size:9px;padding:17px}.demo-chip{display:inline-flex;background:#fff4df;color:#94691f;border:1px solid #f4e3bf;border-radius:30px;padding:7px 10px;font-size:9px;font-weight:800}.pos-layout{display:grid;grid-template-columns:1.5fr .9fr;gap:15px;align-items:start}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.product-card{border:1px solid var(--line);border-radius:10px;padding:13px;text-align:left;background:#fff;cursor:pointer;transition:.15s}.product-card:hover{border-color:#77c7c0;transform:translateY(-1px);box-shadow:0 5px 15px #1a777010}.product-emoji{width:35px;height:35px;display:grid;place-items:center;background:#f0f7f6;border-radius:9px;font-size:19px;margin-bottom:10px}.product-card strong{display:block;font-size:11px}.product-card small{display:block;color:#89989e;font-size:9px;margin:4px 0 8px}.product-card b{color:var(--teal-dark);font-size:11px}.cart-panel{position:sticky;top:15px}.cart-items{min-height:130px;max-height:280px;overflow:auto}.empty-cart{text-align:center;color:#8b999e;font-size:11px;padding:36px 10px;line-height:1.8}.empty-cart small{font-size:9px}.cart-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f0f3f4;gap:8px}.cart-row strong{display:block;font-size:10px}.cart-row small{color:#8a989e;font-size:9px}.qty-control{display:flex;align-items:center;gap:7px}.qty-control button{width:23px;height:23px;border:1px solid var(--line);border-radius:6px;background:#fff;color:#4d6a72;cursor:pointer}.cart-footer{border-top:1px solid var(--line);padding-top:14px;margin-top:12px}.total-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.total-line span{font-size:11px;color:#72838a}.total-line strong{font-size:18px}.field-label{display:block;font-size:10px;font-weight:700;margin:10px 0 6px}.cart-footer select{width:100%;padding:10px}.full-button{width:100%;margin-top:13px}.safe-note{display:block;text-align:center;color:#98a5aa;font-size:9px;margin-top:9px}.stock-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:15px}.mini-stat{background:#fff;border:1px solid var(--line);border-radius:11px;padding:13px 15px}.mini-stat span{display:block;font-size:10px;color:#809098;margin-bottom:7px}.mini-stat strong{font-size:20px}.warning-text{color:#bd842b}.danger-text{color:#c44e4e}.search-input{border:1px solid var(--line);border-radius:8px;padding:9px 11px;font:10px 'DM Sans',sans-serif;min-width:180px}.stock-ok{color:#16846d;font-weight:700}.stock-low{color:#b7791f;font-weight:700}.stock-out{color:#c44e4e;font-weight:700}.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.team-card{display:flex;align-items:center;gap:12px;margin:0}.team-card>div:nth-child(2){flex:1}.team-card strong,.team-card span,.team-card small{display:block}.team-card strong{font-size:11px}.team-card span:not(.status){font-size:10px;color:#71838b;margin-top:3px}.team-card small{font-size:9px;color:#9aa7ac;margin-top:3px}.avatar-blue{background:#e5effd;color:#4976b4}.avatar-orange{background:#fff0df;color:#ba7b32}.avatar-purple{background:#eee9fc;color:#7660ad}.info-banner{padding:14px 16px;background:#eaf6f5;border:1px solid #d5eeeb;border-radius:10px;color:#356e6b;font-size:10px;line-height:1.6;margin-top:14px}.mobile-nav{display:none}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:var(--navy);color:white;padding:11px 16px;border-radius:9px;font-size:11px;opacity:0;pointer-events:none;transition:.2s;z-index:50;box-shadow:0 8px 25px #102b3a30}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.sidebar{width:220px}.main-area{margin-left:220px;padding:0 22px 24px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.payment-list{grid-template-columns:1fr 1fr}.pos-layout{grid-template-columns:1fr}.cart-panel{position:static}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){body{font-size:13px}.demo-ribbon{top:9px;right:-43px;font-size:8px}.sidebar{display:none}.main-area{margin:0;padding:0 14px 92px}.topbar{height:65px;margin-bottom:21px}.mobile-brand{display:flex;align-items:center;gap:8px}.mobile-brand .brand-mark{width:31px;height:31px;border-radius:9px;font-size:11px}.mobile-brand strong{font-size:11px;letter-spacing:.03em}.breadcrumb{display:none}.top-actions{gap:10px}.today{display:none}.icon-button{width:32px;height:32px}.top-avatar{width:29px;height:29px}.page-heading{align-items:flex-start;margin-bottom:17px}.page-heading h1{font-size:21px}.page-heading p{font-size:10px;line-height:1.5;max-width:280px}.page-heading>.primary-button{font-size:0;padding:10px 12px}.page-heading>.primary-button::after{content:'＋ Vente';font-size:10px}.metric-grid{gap:9px;margin-bottom:12px}.metric-card{padding:13px 12px;min-height:112px;border-radius:11px}.metric-top{font-size:9px;margin-bottom:12px}.metric-card>strong{font-size:20px}.metric-card>strong small{font-size:9px}.metric-foot{font-size:8px;gap:5px;flex-wrap:wrap}.metric-icon{width:24px;height:24px}.sparkline{right:9px;gap:3px}.sparkline span{width:4px}.content-grid{gap:10px;margin-bottom:10px}.panel{padding:14px;border-radius:11px;margin-bottom:10px}.panel-heading{margin-bottom:13px}.panel-heading h2{font-size:12px}.panel-heading p{font-size:9px}.chart{height:145px}.payment-list{gap:10px}.payment-list>div{font-size:9px;grid-template-columns:1fr auto 28px}.payment-list strong{font-size:9px}.table-panel .panel-heading{align-items:flex-start}.table-panel .panel-heading .text-button{font-size:9px}.table-wrap{margin:0 -2px}th{font-size:7px;padding:9px 8px}td{font-size:9px;padding:11px 8px}.status{font-size:8px;padding:4px 7px}.footer-note{font-size:8px}.mobile-nav{display:grid;position:fixed;z-index:30;bottom:0;left:0;right:0;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid var(--line);padding:8px 4px max(8px,env(safe-area-inset-bottom));box-shadow:0 -5px 18px #1835410b}.mobile-nav button{border:0;background:transparent;color:#8b9aa0;display:flex;flex-direction:column;align-items:center;gap:4px;font:600 8px 'DM Sans',sans-serif;padding:3px 0}.mobile-nav button span{font-size:18px;line-height:1.1}.mobile-nav button.active{color:var(--teal-dark)}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-card{padding:11px}.product-card strong{font-size:10px}.product-card small{font-size:8px}.product-card b{font-size:10px}.cart-panel{position:static}.stock-summary{gap:7px}.mini-stat{padding:11px}.mini-stat span{font-size:8px}.mini-stat strong{font-size:17px}.search-input{min-width:0;width:135px;font-size:9px}.team-grid{grid-template-columns:1fr;gap:8px}.team-card{padding:12px}.team-card .status{margin-left:auto}.demo-chip{font-size:8px}.payment-total{margin:16px 0 13px}.payment-total strong{font-size:20px}.payment-total span{font-size:9px}.info-banner{font-size:9px;padding:12px}.pos-layout{gap:10px}}
@media(min-width:701px) and (max-width:850px){.main-area{padding-left:16px;padding-right:16px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-grid{grid-template-columns:1fr}}

/* ==========================================
   BAR & RESTO TG — ÉCRAN D'INSCRIPTION
========================================== */

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 30px 16px;
  background: #f5f8f9;
  font-family: 'DM Sans', sans-serif;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 36px;
  background: #ffffff;
  border: 1px solid #e8eef0;
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(16, 43, 58, 0.09);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #102b3a;
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  color: #102b3a;
  font-size: 15px;
}

.auth-brand small {
  margin-top: 3px;
  color: #70818a;
  font-size: 12px;
}

.auth-heading {
  margin-bottom: 25px;
}

.auth-heading h1 {
  margin: 0 0 8px;
  color: #102b3a;
  font-size: 25px;
  font-weight: 800;
}

.auth-heading p {
  margin: 0;
  color: #70818a;
  font-size: 14px;
  line-height: 1.6;
}

#signupForm {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#signupForm label {
  margin-top: 9px;
  color: #182b36;
  font-size: 13px;
  font-weight: 700;
}

#signupForm input {
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  border: 1px solid #dce5e8;
  border-radius: 9px;
  outline: none;
  background: #ffffff;
  color: #182b36;
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#signupForm input:focus {
  border-color: #159b95;
  box-shadow: 0 0 0 3px rgba(21, 155, 149, 0.12);
}

#signupForm input::placeholder {
  color: #a0adb3;
}

#signupButton {
  width: 100%;
  min-height: 49px;
  margin-top: 18px;
  border: 0;
  border-radius: 9px;
  background: #159b95;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

#signupButton:hover {
  background: #0d7774;
}

#signupMessage {
  margin: 5px 0;
  font-size: 13px;
}

.auth-switch {
  margin: 23px 0 0;
  text-align: center;
  color: #70818a;
  font-size: 13px;
}

#showLogin {
  border: 0;
  background: transparent;
  color: #0d7774;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 520px) {
  .auth-screen {
    padding: 16px 12px;
    place-items: start center;
  }

  .auth-card {
    padding: 25px 20px;
    border-radius: 14px;
  }

  .auth-heading h1 {
    font-size: 22px;
  }
}
