*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#f5f5f3;color:#151515}.app{display:flex;min-height:100vh}aside{width:250px;background:#111;color:#fff;padding:28px 18px;position:fixed;inset:0 auto 0 0}.brand img{width:170px;max-height:95px;object-fit:contain;margin:0 0 28px 0;display:block}nav button{display:block;width:100%;border:0;background:transparent;color:#aaa;text-align:left;padding:14px 15px;margin:3px 0;border-radius:8px;font-size:15px;cursor:pointer}nav button.active,nav button:hover{background:#fff;color:#111}.sync{position:absolute;bottom:25px;left:20px;right:20px;font-size:12px;color:#aaa}main{margin-left:250px;width:calc(100% - 250px);padding:30px 42px}header{margin-bottom:28px}h1{font-size:27px;margin:0}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.cards>div,.panel{background:#fff;border-radius:14px;padding:22px;box-shadow:0 2px 12px #0000000b}.cards b{display:block;font-size:25px;margin-bottom:8px}.cards span{color:#777;font-size:13px}.toolbar{display:flex;gap:12px;margin-bottom:18px}.toolbar input{flex:1}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.item{display:flex;justify-content:space-between;gap:15px}.item h3{margin:5px 0}.item small{color:#777}input,select,textarea{width:100%;padding:11px;border:1px solid #ddd;border-radius:8px;background:#fff;font:inherit}textarea{min-height:85px;resize:vertical}label{display:block;font-size:13px;color:#555;margin-bottom:13px}label input,label select,label textarea{margin-top:6px;color:#111}.two,.measure{display:grid;grid-template-columns:1fr 1fr;gap:12px}.measure{margin-bottom:10px}button{border:1px solid #ddd;background:#fff;border-radius:8px;padding:10px 14px;cursor:pointer}.primary{background:#111;color:#fff;border-color:#111}.danger{color:#a00;margin-left:7px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 10px;border-bottom:1px solid #eee;font-size:14px}.modal{display:none;position:fixed;inset:0;background:#0008;align-items:center;justify-content:center;padding:20px;z-index:5}.modal.show{display:flex}.modal-box{background:#fff;border-radius:16px;padding:28px;width:min(650px,100%);max-height:90vh;overflow:auto;position:relative}.close{position:absolute;right:16px;top:13px;border:0;font-size:25px}@media(max-width:850px){aside{width:190px}main{margin-left:190px;width:calc(100% - 190px);padding:20px}.cards{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}}@media(max-width:600px){aside{position:static;width:100%;min-height:auto}.app{display:block}main{margin:0;width:100%}.toolbar{flex-direction:column}.grid{grid-template-columns:1fr}.two,.measure{grid-template-columns:1fr}.sync{position:static;margin-top:20px}}

.helper{background:#f7f3e8;border:1px solid #ead9aa;color:#5a4b26;padding:10px 12px;border-radius:8px;font-size:12px;margin:-2px 0 14px}

.whatsapp-btn,.whatsapp-mini{background:#111;color:#fff;border-color:#111;margin-top:8px}
.whatsapp-mini{padding:6px 9px;font-size:12px}
.atelier-whatsapp{position:absolute;left:18px;right:18px;bottom:58px;background:#fff;color:#111;border:1px solid #333;text-align:left;padding:11px 13px;border-radius:10px;font-weight:700}
.atelier-whatsapp small{font-weight:400}
@media(max-width:600px){.atelier-whatsapp{position:static;margin-top:14px;width:100%}}

.item-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
nav button{pointer-events:auto!important}
#content{position:relative;z-index:1}
aside{z-index:3}

.measure label{min-width:0}

.tailor-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
.item-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-end}

/* ===== ÉCRAN DE VERROUILLAGE PIN ===== */
body:not(.app-unlocked) .app,
body:not(.app-unlocked) .modal {
  visibility: hidden;
}

.pin-lock {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  padding: 24px;
}

.pin-lock.hidden {
  display: none;
}

.pin-card {
  width: min(390px, 100%);
  background: #ffffff;
  border-radius: 20px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
}

.pin-logo {
  display: block;
  width: 180px;
  max-height: 90px;
  object-fit: contain;
  margin: 0 auto 22px;
  mix-blend-mode: multiply;
}

.pin-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.pin-card p {
  color: #777;
}

#pinInput {
  text-align: center;
  font-size: 30px;
  letter-spacing: 12px;
  padding-left: 20px;
  margin: 16px 0 12px;
}

.pin-submit {
  width: 100%;
}

.remember-device {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.remember-device input {
  width: auto;
  margin: 0;
}

.pin-error {
  min-height: 20px;
  color: #a00000 !important;
  margin-bottom: 0;
}

.lock-app-btn {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 104px;
  width: calc(100% - 36px);
  background: transparent;
  color: #aaa;
  border: 1px solid #333;
}

.lock-app-btn:hover {
  color: #fff;
  border-color: #777;
}

@media (max-width: 600px) {
  .lock-app-btn {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}


/* =========================================================
   MOBILE PREMIUM — ATELIER SADIYA
   Inspiré de la nouvelle maquette noire & dorée
   ========================================================= */

:root{
  --premium-bg:#080808;
  --premium-panel:#121212;
  --premium-panel-2:#171717;
  --premium-line:#2b2b2b;
  --premium-accent:#ffffff;
  --premium-white:#ffffff;
  --premium-muted:#a8a8a8;
}

.mobile-bottom-nav{
  display:none;
}

@media (max-width:600px){

  html,
  body{
    background:var(--premium-bg)!important;
  }

  body{
    color:var(--premium-white);
    padding-bottom:94px;
  }

  .app{
    display:block;
    min-height:100vh;
    background:var(--premium-bg)!important;
  }

  /* MENU / HERO */
  aside{
    position:relative!important;
    width:100%!important;
    min-height:auto!important;
    padding:22px 18px 18px!important;
    background:
      radial-gradient(circle at 50% -10%,rgba(255,255,255,.06),transparent 42%),
      var(--premium-bg)!important;
    border:0!important;
  }

  .brand{
    display:flex;
    align-items:center;
    justify-content:center;
    margin:2px 0 22px!important;
    min-height:92px;
  }

  .brand img{
    width:150px!important;
    max-height:80px!important;
    object-fit:contain!important;
    margin:auto!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    mix-blend-mode:screen!important;
  }

  nav{
    display:grid;
    gap:10px;
    background:transparent!important;
  }

  nav button{
    position:relative;
    display:flex!important;
    align-items:center;
    width:100%!important;
    min-height:76px;
    margin:0!important;
    padding:16px 48px 16px 58px!important;
    border:1px solid var(--premium-line)!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#151515,#101010)!important;
    color:var(--premium-white)!important;
    font-size:17px!important;
    font-weight:600;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
  }

  nav button::before{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    color:var(--premium-accent);
    font-size:24px;
    line-height:1;
    font-weight:400;
  }

  nav button::after{
    content:"›";
    position:absolute;
    right:18px;
    top:50%;
    transform:translateY(-50%);
    color:#e6e6e6;
    font-size:30px;
    font-weight:300;
  }

  nav button[data-view="dashboard"]::before{content:"⌂";}
  nav button[data-view="clients"]::before{content:"♙";}
  nav button[data-view="models"]::before{content:"♢";}
  nav button[data-view="orders"]::before{content:"▣";}
  nav button[data-view="payments"]::before{content:"▤";}
  nav button[data-view="tailors"]::before{content:"✂";}

  nav button.active,
  nav button:hover{
    border-color:rgba(255,255,255,.38)!important;
    background:linear-gradient(180deg,#191919,#121212)!important;
    color:var(--premium-white)!important;
  }

  /* BOUTON VERROUILLAGE */
  .lock-app-btn{
    position:static!important;
    width:100%!important;
    margin:14px 0 10px!important;
    min-height:58px;
    border:1px solid var(--premium-accent)!important;
    border-radius:16px!important;
    background:transparent!important;
    color:var(--premium-accent)!important;
    font-size:16px!important;
    font-weight:600;
  }

  /* WHATSAPP */
  .atelier-whatsapp{
    position:static!important;
    width:100%!important;
    margin:0!important;
    min-height:76px;
    padding:16px 18px 16px 58px!important;
    border:1px solid var(--premium-line)!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#161616,#101010)!important;
    color:var(--premium-white)!important;
    font-size:16px;
    box-shadow:none!important;
  }

  .atelier-whatsapp::before{
    content:"◉";
    position:absolute;
    margin-left:-38px;
    color:var(--premium-accent);
    font-size:25px;
  }

  .atelier-whatsapp small{
    color:var(--premium-muted);
    font-size:13px;
  }

  .sync{
    position:static!important;
    margin:12px 4px 0!important;
    color:#858585!important;
    font-size:11px!important;
    text-align:center;
  }

  /* CONTENU */
  main{
    margin:0!important;
    width:100%!important;
    min-height:100vh!important;
    padding:26px 18px 110px!important;
    background:var(--premium-bg)!important;
    color:var(--premium-white)!important;
  }

  header{
    margin-bottom:18px!important;
  }

  h1{
    color:var(--premium-white)!important;
    font-size:30px!important;
    line-height:1.05;
    letter-spacing:-.5px;
  }

  h2,h3{
    color:var(--premium-white)!important;
  }

  /* CARTES DASHBOARD */
  .cards{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    margin-bottom:18px!important;
  }

  .cards>div,
  .panel{
    background:linear-gradient(180deg,var(--premium-panel-2),var(--premium-panel))!important;
    color:var(--premium-white)!important;
    border:1px solid var(--premium-line)!important;
    border-radius:18px!important;
    box-shadow:none!important;
  }

  .cards>div{
    min-height:120px;
    padding:18px!important;
  }

  .cards b{
    color:var(--premium-white)!important;
    font-size:25px!important;
  }

  .cards span{
    color:var(--premium-muted)!important;
    font-size:12px!important;
  }

  .panel{
    padding:18px!important;
  }

  /* TABLES */
  .table-wrap{
    border:1px solid var(--premium-line);
    border-radius:16px;
    overflow:auto;
    background:var(--premium-panel);
  }

  table{
    color:var(--premium-white)!important;
  }

  th,td{
    border-bottom:1px solid var(--premium-line)!important;
    color:var(--premium-white)!important;
  }

  th{
    color:#c9c9c9!important;
  }

  /* FORMULAIRES */
  .toolbar{
    flex-direction:column!important;
    gap:10px!important;
  }

  input,select,textarea{
    background:#121212!important;
    color:var(--premium-white)!important;
    border:1px solid #333!important;
    border-radius:14px!important;
  }

  input::placeholder,
  textarea::placeholder{
    color:#777!important;
  }

  label{
    color:#b7b7b7!important;
  }

  .primary{
    background:var(--premium-accent)!important;
    color:#0b0b0b!important;
    border-color:var(--premium-accent)!important;
    font-weight:700;
  }

  button{
    border-radius:14px!important;
  }

  .danger{
    color:#ff8c8c!important;
  }

  .grid{
    grid-template-columns:1fr!important;
  }

  .item{
    border-radius:18px!important;
  }

  /* MODAL */
  .modal{
    background:rgba(0,0,0,.82)!important;
  }

  .modal-box{
    background:#101010!important;
    color:var(--premium-white)!important;
    border:1px solid var(--premium-line)!important;
    border-radius:22px!important;
  }

  .close{
    color:var(--premium-white)!important;
    background:#1b1b1b!important;
  }

  /* NAVIGATION BAS */
  .mobile-bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9998;
    display:grid;
    grid-template-columns:1fr 1fr 74px 1fr 1fr;
    align-items:end;
    gap:3px;
    padding:10px 10px calc(10px + env(safe-area-inset-bottom));
    background:rgba(8,8,8,.96);
    border-top:1px solid #202020;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .mobile-bottom-nav button{
    border:0!important;
    background:transparent!important;
    color:#bdbdbd!important;
    padding:5px 2px!important;
    min-height:52px;
    font-size:11px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:3px;
  }

  .mobile-bottom-nav .mnav-icon{
    font-size:22px;
    line-height:1;
    color:var(--premium-accent);
  }

  .mobile-bottom-nav .mobile-plus{
    width:62px;
    height:62px;
    min-height:62px;
    align-self:center;
    justify-self:center;
    border-radius:50%!important;
    background:linear-gradient(180deg,#ffffff,#d9d9d9)!important;
    color:#111!important;
    font-size:37px!important;
    line-height:1!important;
    box-shadow:0 8px 28px rgba(255,255,255,.18);
    transform:translateY(-10px);
  }

  /* PIN */
  .pin-lock{
    background:
      radial-gradient(circle at 50% 10%,rgba(255,255,255,.08),transparent 40%),
      #080808!important;
  }

  .pin-card{
    background:#111!important;
    border:1px solid #2b2b2b;
    color:#fff;
  }

  .pin-card p{
    color:#aaa!important;
  }

  .pin-logo{
    mix-blend-mode:screen!important;
  }
}


/* =========================================================
   WEB PREMIUM — MÊME DYNAMIQUE QUE MOBILE, ACCENT BLANC
   ========================================================= */

@media (min-width:601px){

  html,
  body{
    background:#080808!important;
  }

  body{
    color:#ffffff;
  }

  .app{
    background:#080808!important;
  }

  /* SIDEBAR PREMIUM */
  aside{
    width:280px!important;
    padding:28px 20px!important;
    background:
      radial-gradient(circle at 50% -10%,rgba(255,255,255,.06),transparent 42%),
      #080808!important;
    border-right:1px solid #1e1e1e!important;
  }

  .brand{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:110px;
    margin-bottom:24px!important;
  }

  .brand img{
    width:165px!important;
    max-height:90px!important;
    margin:auto!important;
    object-fit:contain!important;
    mix-blend-mode:screen!important;
  }

  nav{
    display:grid;
    gap:10px;
    background:transparent!important;
  }

  nav button{
    position:relative;
    display:flex!important;
    align-items:center;
    min-height:66px;
    margin:0!important;
    padding:14px 46px 14px 54px!important;
    border:1px solid #232323!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,#151515,#101010)!important;
    color:#ffffff!important;
    font-size:15px!important;
    font-weight:600;
    transition:.2s ease;
  }

  nav button::before{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    color:#ffffff;
    font-size:20px;
    line-height:1;
  }

  nav button::after{
    content:"›";
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    color:#bcbcbc;
    font-size:26px;
    font-weight:300;
  }

  nav button[data-view="dashboard"]::before{content:"⌂";}
  nav button[data-view="clients"]::before{content:"♙";}
  nav button[data-view="models"]::before{content:"♢";}
  nav button[data-view="orders"]::before{content:"▣";}
  nav button[data-view="payments"]::before{content:"▤";}
  nav button[data-view="tailors"]::before{content:"✂";}

  nav button.active,
  nav button:hover{
    background:#ffffff!important;
    color:#111111!important;
    border-color:#ffffff!important;
    transform:translateX(2px);
  }

  nav button.active::before,
  nav button:hover::before,
  nav button.active::after,
  nav button:hover::after{
    color:#111111!important;
  }

  .lock-app-btn{
    position:absolute!important;
    left:20px!important;
    right:20px!important;
    bottom:132px!important;
    width:auto!important;
    min-height:48px;
    border:1px solid #3a3a3a!important;
    border-radius:14px!important;
    background:transparent!important;
    color:#d7d7d7!important;
  }

  .lock-app-btn:hover{
    border-color:#ffffff!important;
    color:#ffffff!important;
  }

  .atelier-whatsapp{
    left:20px!important;
    right:20px!important;
    bottom:66px!important;
    min-height:58px;
    border:1px solid #2c2c2c!important;
    border-radius:14px!important;
    background:linear-gradient(180deg,#161616,#101010)!important;
    color:#ffffff!important;
  }

  .atelier-whatsapp small{
    color:#9d9d9d!important;
  }

  .sync{
    left:22px!important;
    right:22px!important;
    bottom:28px!important;
    color:#7e7e7e!important;
  }

  /* MAIN PREMIUM */
  main{
    margin-left:280px!important;
    width:calc(100% - 280px)!important;
    min-height:100vh!important;
    padding:36px 42px!important;
    background:#0b0b0b!important;
    color:#ffffff!important;
  }

  header{
    margin-bottom:24px!important;
  }

  h1{
    color:#ffffff!important;
    font-size:34px!important;
    letter-spacing:-.7px;
  }

  h2,h3{
    color:#ffffff!important;
  }

  .cards{
    gap:14px!important;
  }

  .cards > div,
  .panel{
    background:linear-gradient(180deg,#151515,#101010)!important;
    color:#ffffff!important;
    border:1px solid #242424!important;
    border-radius:18px!important;
    box-shadow:none!important;
  }

  .cards > div{
    min-height:128px;
    padding:20px!important;
  }

  .cards b{
    color:#ffffff!important;
  }

  .cards span{
    color:#9d9d9d!important;
  }

  .grid{
    gap:14px!important;
  }

  .item{
    border-radius:18px!important;
  }

  .table-wrap{
    border:1px solid #242424!important;
    border-radius:16px!important;
    background:#111111!important;
  }

  table{
    color:#ffffff!important;
  }

  th,td{
    border-bottom:1px solid #242424!important;
    color:#ffffff!important;
  }

  th{
    color:#bfbfbf!important;
  }

  input,
  select,
  textarea{
    background:#121212!important;
    color:#ffffff!important;
    border:1px solid #303030!important;
    border-radius:14px!important;
  }

  input::placeholder,
  textarea::placeholder{
    color:#737373!important;
  }

  label{
    color:#b6b6b6!important;
  }

  button{
    border-radius:14px!important;
  }

  .primary{
    background:#ffffff!important;
    color:#111111!important;
    border-color:#ffffff!important;
    font-weight:700;
  }

  .danger{
    color:#ff9a9a!important;
  }

  .modal{
    background:rgba(0,0,0,.82)!important;
  }

  .modal-box{
    background:#101010!important;
    color:#ffffff!important;
    border:1px solid #292929!important;
    border-radius:22px!important;
  }

  .close{
    color:#ffffff!important;
    background:#1b1b1b!important;
  }

  .helper{
    background:#161616!important;
    border:1px solid #303030!important;
    color:#d8d8d8!important;
  }
}


/* =========================================================
   FINAL UI FIX — LOGO + SIDEBAR + SUPERPOSITIONS
   ========================================================= */

/* Logo transparent */
.brand {
  background: transparent !important;
  overflow: visible !important;
}

.brand img {
  background: transparent !important;
  mix-blend-mode: normal !important;
  object-fit: contain !important;
  width: 180px !important;
  max-width: 82% !important;
  height: auto !important;
  max-height: 110px !important;
  margin: 0 auto !important;
  filter: none !important;
}

/* WEB / DESKTOP */
@media (min-width: 601px) {

  aside {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
    padding: 24px 20px 22px !important;
  }

  .brand {
    flex: 0 0 auto !important;
    min-height: 105px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 18px !important;
  }

  aside nav {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 2px !important;
    margin-bottom: 14px !important;
    scrollbar-width: none;
  }

  aside nav::-webkit-scrollbar {
    display: none;
  }

  aside nav button {
    min-height: 56px !important;
    margin-bottom: 8px !important;
  }

  /* Les blocs du bas sont dans le flux : plus aucune superposition */
  .lock-app-btn,
  .atelier-whatsapp,
  .sync {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    flex: 0 0 auto !important;
  }

  .lock-app-btn {
    min-height: 48px !important;
    margin: 0 0 10px !important;
  }

  .atelier-whatsapp {
    min-height: 62px !important;
    margin: 0 0 10px !important;
  }

  .sync {
    margin: 0 !important;
    padding: 4px 4px 0 !important;
    text-align: left !important;
    font-size: 12px !important;
  }
}

/* MOBILE */
@media (max-width: 600px) {

  aside {
    display: block !important;
    overflow: visible !important;
  }

  .brand {
    min-height: 95px !important;
    margin-bottom: 18px !important;
  }

  .brand img {
    width: 165px !important;
    max-width: 70% !important;
    max-height: 95px !important;
  }

  .lock-app-btn,
  .atelier-whatsapp,
  .sync {
    position: static !important;
    width: 100% !important;
  }

  .lock-app-btn {
    margin: 14px 0 10px !important;
  }

  .atelier-whatsapp {
    margin: 0 0 10px !important;
  }

  .sync {
    margin: 10px 2px 0 !important;
  }
}


/* =========================================================
   RESPONSIVE PLUS — ATELIER SADIYA
   Desktop large / laptop / tablette / mobile
   ========================================================= */

/* Base */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

main,
#content,
.panel,
.cards > div,
.table-wrap,
.modal-box {
  min-width: 0;
}

.toolbar,
.section-head,
.item {
  min-width: 0;
}

/* ----------- LARGE DESKTOP ----------- */
@media (min-width: 1400px) {
  aside {
    width: 300px !important;
  }

  main {
    margin-left: 300px !important;
    width: calc(100% - 300px) !important;
    padding: 40px 50px !important;
  }

  .cards {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  h1 {
    font-size: 36px !important;
  }
}

/* ----------- LAPTOP / DESKTOP STANDARD ----------- */
@media (min-width: 1024px) and (max-width: 1399px) {
  aside {
    width: 250px !important;
    padding: 20px 16px !important;
  }

  main {
    margin-left: 250px !important;
    width: calc(100% - 250px) !important;
    padding: 28px 28px !important;
  }

  .brand {
    min-height: 82px !important;
    margin-bottom: 14px !important;
  }

  .brand img {
    width: 150px !important;
    max-height: 82px !important;
  }

  aside nav {
    gap: 7px !important;
  }

  aside nav button {
    min-height: 52px !important;
    padding: 12px 42px 12px 48px !important;
    font-size: 14px !important;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .lock-app-btn {
    min-height: 44px !important;
    font-size: 13px !important;
  }

  .atelier-whatsapp {
    min-height: 56px !important;
    font-size: 13px !important;
  }
}

/* ----------- TABLET LANDSCAPE / SMALL LAPTOP ----------- */
@media (min-width: 768px) and (max-width: 1023px) {
  aside {
    width: 210px !important;
    padding: 18px 12px !important;
  }

  main {
    margin-left: 210px !important;
    width: calc(100% - 210px) !important;
    padding: 22px 18px !important;
  }

  .brand {
    min-height: 72px !important;
  }

  .brand img {
    width: 135px !important;
    max-height: 70px !important;
  }

  aside nav button {
    min-height: 48px !important;
    padding: 10px 34px 10px 42px !important;
    font-size: 13px !important;
  }

  aside nav button::before {
    left: 14px !important;
    font-size: 17px !important;
  }

  aside nav button::after {
    right: 12px !important;
    font-size: 22px !important;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  .toolbar {
    flex-wrap: wrap !important;
  }

  .toolbar input,
  .toolbar select {
    min-width: 180px;
  }

  .lock-app-btn {
    font-size: 12px !important;
  }

  .atelier-whatsapp {
    font-size: 12px !important;
    padding-left: 14px !important;
  }

  .sync {
    font-size: 10px !important;
  }
}

/* ----------- TABLET PORTRAIT ----------- */
@media (min-width: 601px) and (max-width: 767px) {
  aside {
    width: 185px !important;
    padding: 16px 10px !important;
  }

  main {
    margin-left: 185px !important;
    width: calc(100% - 185px) !important;
    padding: 18px 14px !important;
  }

  .brand {
    min-height: 68px !important;
  }

  .brand img {
    width: 122px !important;
    max-height: 64px !important;
  }

  aside nav button {
    min-height: 46px !important;
    padding: 9px 30px 9px 38px !important;
    font-size: 12px !important;
  }

  aside nav button::before {
    left: 12px !important;
    font-size: 16px !important;
  }

  aside nav button::after {
    right: 10px !important;
    font-size: 20px !important;
  }

  .cards {
    grid-template-columns: 1fr !important;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  .two,
  .measure {
    grid-template-columns: 1fr !important;
  }

  h1 {
    font-size: 26px !important;
  }

  .toolbar,
  .section-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .toolbar > *,
  .section-head > * {
    width: 100%;
  }

  .lock-app-btn,
  .atelier-whatsapp,
  .sync {
    font-size: 10px !important;
  }
}

/* ----------- MOBILE ----------- */
@media (max-width: 600px) {
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }

  .app {
    display: block !important;
  }

  aside {
    width: 100% !important;
    padding:
      calc(16px + env(safe-area-inset-top))
      14px
      14px !important;
  }

  .brand {
    min-height: 74px !important;
    margin-bottom: 12px !important;
  }

  .brand img {
    width: 145px !important;
    max-width: 60% !important;
    max-height: 78px !important;
  }

  aside nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  aside nav button {
    min-height: 58px !important;
    padding: 12px 40px 12px 50px !important;
    font-size: 15px !important;
    border-radius: 16px !important;
  }

  aside nav button::before {
    left: 16px !important;
    font-size: 20px !important;
  }

  aside nav button::after {
    right: 14px !important;
    font-size: 24px !important;
  }

  .lock-app-btn {
    min-height: 48px !important;
    margin-top: 12px !important;
  }

  .atelier-whatsapp {
    min-height: 60px !important;
    padding: 12px 14px !important;
  }

  .sync {
    text-align: center !important;
    font-size: 10px !important;
  }

  main {
    margin: 0 !important;
    width: 100% !important;
    padding: 22px 14px 110px !important;
  }

  header {
    margin-bottom: 16px !important;
  }

  h1 {
    font-size: 27px !important;
    line-height: 1.1 !important;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
  }

  .cards > div {
    min-height: 105px !important;
    padding: 14px !important;
  }

  .cards b {
    font-size: 22px !important;
  }

  .cards span {
    font-size: 11px !important;
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .panel {
    padding: 15px !important;
  }

  .item {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .item-actions {
    width: 100% !important;
    align-items: stretch !important;
  }

  .item-actions button {
    width: 100% !important;
  }

  .toolbar,
  .section-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .toolbar > *,
  .section-head > * {
    width: 100% !important;
  }

  .two,
  .measure {
    grid-template-columns: 1fr !important;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px !important; /* évite le zoom automatique iOS */
  }

  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 720px;
  }

  .modal {
    padding: 10px !important;
    align-items: flex-end !important;
  }

  .modal-box {
    width: 100% !important;
    max-width: none !important;
    max-height: 88vh !important;
    border-radius: 22px 22px 0 0 !important;
    padding: 22px 16px calc(20px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-bottom-nav {
    grid-template-columns: repeat(5, minmax(0,1fr)) !important;
    padding:
      8px 8px
      calc(8px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-bottom-nav .mobile-plus {
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
  }
}

/* ----------- PETITS MOBILES ----------- */
@media (max-width: 380px) {
  aside {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  aside nav button {
    min-height: 54px !important;
    font-size: 14px !important;
  }

  .cards {
    grid-template-columns: 1fr !important;
  }

  main {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .brand img {
    width: 132px !important;
  }
}

/* ----------- HAUTEURS D'ÉCRAN COURTES ----------- */
@media (min-width:601px) and (max-height:760px) {
  aside {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .brand {
    min-height: 64px !important;
    margin-bottom: 10px !important;
  }

  .brand img {
    max-height: 60px !important;
  }

  aside nav button {
    min-height: 44px !important;
    margin-bottom: 6px !important;
  }

  .lock-app-btn {
    min-height: 42px !important;
  }

  .atelier-whatsapp {
    min-height: 50px !important;
  }
}


/* =========================================================
   MOBILE APP SHELL — vraie interface mobile
   ========================================================= */

.mobile-topbar,
.mobile-more-sheet {
  display: none;
}

@media (max-width: 600px) {
  body {
    padding-top: calc(74px + env(safe-area-inset-top)) !important;
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    background: #080808 !important;
  }

  /* Cacher totalement la sidebar desktop sur mobile */
  aside {
    display: none !important;
  }

  .app {
    display: block !important;
    min-height: 100vh !important;
    background: #080808 !important;
  }

  /* Header mobile compact */
  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(64px + env(safe-area-inset-top));
    padding:
      calc(8px + env(safe-area-inset-top))
      16px
      8px;
    background: rgba(8,8,8,.96);
    border-bottom: 1px solid #1f1f1f;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-top-logo {
    width: 112px !important;
    max-height: 46px !important;
    object-fit: contain;
    background: transparent !important;
  }

  .mobile-top-action {
    width: auto !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    border: 1px solid #303030 !important;
    border-radius: 12px !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 12px !important;
  }

  /* Main commence directement sous le header */
  main {
    margin: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    padding: 22px 14px 26px !important;
    background: #080808 !important;
  }

  header {
    margin: 0 0 18px !important;
  }

  h1 {
    font-size: 30px !important;
    line-height: 1.05 !important;
  }

  /* Dashboard / listes */
  .cards {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
  }

  .cards > div {
    min-height: 108px !important;
    padding: 14px !important;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  .toolbar,
  .section-head,
  .item {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .toolbar > *,
  .section-head > * {
    width: 100% !important;
  }

  .item-actions {
    width: 100% !important;
    align-items: stretch !important;
  }

  .item-actions button {
    width: 100% !important;
  }

  .two,
  .measure {
    grid-template-columns: 1fr !important;
  }

  /* Tableaux : scroll horizontal propre */
  .table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px !important;
  }

  table {
    min-width: 720px !important;
  }

  /* Bottom nav */
  .mobile-bottom-nav {
    display: grid !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    grid-template-columns: repeat(5, minmax(0,1fr)) !important;
    align-items: end;
    padding:
      8px 8px
      calc(8px + env(safe-area-inset-bottom)) !important;
    background: rgba(8,8,8,.97) !important;
    border-top: 1px solid #202020 !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav button {
    min-height: 52px !important;
    font-size: 11px !important;
  }

  .mobile-bottom-nav .mobile-plus {
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    transform: translateY(-8px) !important;
  }

  /* Sheet "Plus" */
  .mobile-more-sheet {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    background: rgba(0,0,0,.68);
  }

  .mobile-more-sheet.show {
    display: flex;
  }

  .mobile-more-panel {
    width: 100%;
    padding:
      12px 14px
      calc(18px + env(safe-area-inset-bottom));
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -16px 50px rgba(0,0,0,.45);
  }

  .mobile-more-handle {
    width: 46px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 99px;
    background: #4a4a4a;
  }

  .mobile-more-panel h3 {
    margin: 0 0 12px;
    font-size: 20px;
  }

  .mobile-more-panel button {
    width: 100% !important;
    min-height: 52px !important;
    margin: 7px 0 !important;
    text-align: left;
    padding: 12px 14px !important;
    border: 1px solid #2d2d2d !important;
    border-radius: 14px !important;
    background: #151515 !important;
    color: #fff !important;
    font-size: 15px !important;
  }

  /* Modales mobile en bottom-sheet */
  .modal {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .modal-box {
    width: 100% !important;
    max-width: none !important;
    max-height: 90vh !important;
    border-radius: 24px 24px 0 0 !important;
    padding:
      22px 16px
      calc(20px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 380px) {
  .cards {
    grid-template-columns: 1fr !important;
  }

  .mobile-top-logo {
    width: 102px !important;
  }

  h1 {
    font-size: 27px !important;
  }
}

@media (max-width: 600px) {
  .mobile-more-panel button[data-sheet-view="tailors"]::before {
    content: "✂";
    display: inline-block;
    width: 28px;
    margin-right: 8px;
  }
}


/* =========================================================
   MOBILE CLEAN — FINAL OVERRIDE
   Nettoie les anciens styles mobiles sans toucher au web
   ========================================================= */

@media (max-width:600px) {

  /* Base */
  html, body {
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    background:#080808 !important;
  }

  body {
    padding:
      calc(64px + env(safe-area-inset-top))
      0
      calc(88px + env(safe-area-inset-bottom))
      !important;
    color:#fff !important;
  }

  /* Sidebar desktop totalement absente */
  aside {
    display:none !important;
  }

  /* App mobile */
  .app {
    display:block !important;
    width:100% !important;
    min-height:100vh !important;
    background:#080808 !important;
  }

  main {
    margin:0 !important;
    width:100% !important;
    min-height:100vh !important;
    padding:18px 14px 28px !important;
    background:#080808 !important;
    color:#fff !important;
  }

  /* Topbar */
  .mobile-topbar {
    position:fixed !important;
    top:0;
    left:0;
    right:0;
    z-index:9997;
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    min-height:calc(58px + env(safe-area-inset-top));
    padding:
      calc(7px + env(safe-area-inset-top))
      14px
      7px;
    background:rgba(8,8,8,.98) !important;
    border-bottom:1px solid #1d1d1d;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .mobile-top-logo {
    display:block !important;
    width:108px !important;
    max-height:42px !important;
    object-fit:contain !important;
    background:transparent !important;
  }

  .mobile-top-action {
    width:auto !important;
    min-height:36px !important;
    padding:7px 11px !important;
    border:1px solid #2c2c2c !important;
    border-radius:11px !important;
    background:#111 !important;
    color:#fff !important;
    font-size:12px !important;
  }

  /* Headings */
  header {
    margin:0 0 16px !important;
  }

  h1 {
    margin:0 !important;
    font-size:28px !important;
    line-height:1.08 !important;
    color:#fff !important;
  }

  h2, h3 {
    color:#fff !important;
  }

  /* Dashboard cards */
  .cards {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    margin-bottom:16px !important;
  }

  .cards > div,
  .panel {
    background:linear-gradient(180deg,#151515,#101010) !important;
    color:#fff !important;
    border:1px solid #252525 !important;
    border-radius:16px !important;
    box-shadow:none !important;
  }

  .cards > div {
    min-height:100px !important;
    padding:14px !important;
  }

  .cards b {
    font-size:22px !important;
    color:#fff !important;
  }

  .cards span {
    color:#a3a3a3 !important;
    font-size:11px !important;
  }

  .panel {
    padding:15px !important;
  }

  /* Toolbars / sections */
  .toolbar,
  .section-head,
  .item {
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
  }

  .toolbar > *,
  .section-head > * {
    width:100% !important;
  }

  .grid {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .item-actions {
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    align-items:stretch !important;
    gap:8px !important;
  }

  .item-actions button {
    width:100% !important;
  }

  /* Forms */
  .two,
  .measure {
    grid-template-columns:1fr !important;
  }

  input,
  select,
  textarea,
  button {
    font-size:16px !important;
  }

  input,
  select,
  textarea {
    background:#121212 !important;
    color:#fff !important;
    border:1px solid #303030 !important;
    border-radius:13px !important;
  }

  input::placeholder,
  textarea::placeholder {
    color:#747474 !important;
  }

  label {
    color:#b8b8b8 !important;
  }

  .primary {
    background:#fff !important;
    color:#111 !important;
    border-color:#fff !important;
    font-weight:700 !important;
  }

  /* Tables */
  .table-wrap {
    width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
    background:#111 !important;
    border:1px solid #252525 !important;
    border-radius:16px !important;
  }

  table {
    min-width:680px !important;
    color:#fff !important;
  }

  th, td {
    color:#fff !important;
    border-bottom:1px solid #252525 !important;
    white-space:nowrap;
  }

  th {
    color:#bdbdbd !important;
  }

  /* Modals */
  .modal {
    padding:0 !important;
    align-items:flex-end !important;
    background:rgba(0,0,0,.82) !important;
  }

  .modal-box {
    width:100% !important;
    max-width:none !important;
    max-height:90vh !important;
    border-radius:22px 22px 0 0 !important;
    background:#101010 !important;
    color:#fff !important;
    border:1px solid #2a2a2a !important;
    padding:
      20px 15px
      calc(18px + env(safe-area-inset-bottom))
      !important;
  }

  /* Bottom navigation */
  .mobile-bottom-nav {
    position:fixed !important;
    left:0;
    right:0;
    bottom:0;
    z-index:9998;
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    align-items:end;
    padding:
      7px 8px
      calc(7px + env(safe-area-inset-bottom))
      !important;
    background:rgba(8,8,8,.98) !important;
    border-top:1px solid #202020 !important;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .mobile-bottom-nav button {
    min-height:50px !important;
    padding:4px 1px !important;
    background:transparent !important;
    border:0 !important;
    color:#bdbdbd !important;
    font-size:11px !important;
  }

  .mobile-bottom-nav .mnav-icon {
    font-size:20px !important;
    color:#fff !important;
  }

  .mobile-bottom-nav .mobile-plus {
    width:56px !important;
    height:56px !important;
    min-height:56px !important;
    border-radius:50% !important;
    background:#fff !important;
    color:#111 !important;
    font-size:34px !important;
    transform:translateY(-7px) !important;
    box-shadow:0 8px 26px rgba(255,255,255,.12) !important;
  }

  /* More sheet */
  .mobile-more-sheet {
    position:fixed !important;
    inset:0;
    z-index:10000;
    display:none !important;
    align-items:flex-end;
    background:rgba(0,0,0,.68) !important;
  }

  .mobile-more-sheet.show {
    display:flex !important;
  }

  .mobile-more-panel {
    width:100% !important;
    padding:
      12px 14px
      calc(18px + env(safe-area-inset-bottom))
      !important;
    background:#0f0f0f !important;
    border:1px solid #2a2a2a !important;
    border-bottom:0 !important;
    border-radius:24px 24px 0 0 !important;
  }

  .mobile-more-panel button {
    width:100% !important;
    min-height:50px !important;
    margin:6px 0 !important;
    padding:11px 13px !important;
    text-align:left !important;
    background:#151515 !important;
    color:#fff !important;
    border:1px solid #2d2d2d !important;
    border-radius:13px !important;
    font-size:15px !important;
  }

  /* PIN */
  .pin-lock {
    background:#080808 !important;
  }

  .pin-card {
    width:min(360px,calc(100% - 28px)) !important;
    background:#111 !important;
    color:#fff !important;
    border:1px solid #2a2a2a !important;
  }

  .pin-logo {
    width:145px !important;
    max-height:72px !important;
    object-fit:contain !important;
    mix-blend-mode:normal !important;
  }
}

/* Tiny phones */
@media (max-width:380px) {
  .cards {
    grid-template-columns:1fr !important;
  }

  main {
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .mobile-top-logo {
    width:100px !important;
  }

  h1 {
    font-size:26px !important;
  }
}

#customOrderFields{margin:8px 0 12px;padding:14px;border:1px dashed #3a3a3a;border-radius:14px;background:#111}
.custom-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#fff;color:#111;font-size:10px;font-weight:700;margin-bottom:4px}

/* ===== Commandes : modification + solde ===== */
.solde-preview{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:2px 0 16px;
  padding:14px 16px;
  border:1px solid #343434;
  border-radius:14px;
  background:#0d0d0d;
}
.solde-preview span{color:#aaa}
.solde-preview strong{font-size:20px;color:#fff}
.order-actions{
  display:flex;
  gap:7px;
  align-items:center;
}
.order-actions button{
  white-space:nowrap;
}
@media(max-width:600px){
  .order-actions{min-width:190px}
}

.cash-card small{display:block;margin-top:7px;color:#777;font-size:11px;line-height:1.35}
@media(max-width:600px){.cash-card small{font-size:10px}}


/* =========================================================
   FIREBASE AUTH — CONNEXION SÉCURISÉE
   ========================================================= */

.auth-gate{
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.07), transparent 38%),
    #080808;
}

.auth-gate.hidden{
  display:none;
}

.auth-card{
  width:min(410px,100%);
  padding:30px;
  border:1px solid #2c2c2c;
  border-radius:22px;
  background:#111;
  color:#fff;
  box-shadow:0 28px 80px rgba(0,0,0,.42);
}

.auth-logo{
  display:block;
  width:160px;
  max-height:82px;
  object-fit:contain;
  margin:0 auto 22px;
  background:transparent;
}

.auth-card h2{
  margin:0 0 8px;
  text-align:center;
  font-size:25px;
}

.auth-intro{
  margin:0 0 22px;
  text-align:center;
  color:#aaa;
}

.auth-card label{
  display:block;
  margin:0 0 14px;
  color:#c5c5c5;
}

.auth-card input{
  margin-top:7px;
  background:#0b0b0b !important;
  color:#fff !important;
  border:1px solid #353535 !important;
}

.auth-submit{
  width:100%;
  min-height:48px;
  margin-top:4px;
}

.auth-link-btn{
  display:block;
  margin:12px auto 0;
  padding:8px 10px;
  border:0 !important;
  background:transparent !important;
  color:#bbb !important;
  text-decoration:underline;
}

.auth-message{
  min-height:21px;
  margin:12px 0 0;
  text-align:center;
  color:#ddd;
  font-size:13px;
}

.firebase-logout-btn{
  width:100%;
  min-height:44px;
  margin:0 0 10px;
  border:1px solid #303030;
  background:transparent;
  color:#aaa;
}

.firebase-logout-btn:hover{
  color:#fff;
  border-color:#fff;
}

@media(max-width:600px){
  .auth-gate{
    padding:16px;
  }
  .auth-card{
    padding:24px 18px;
    border-radius:20px;
  }
  .auth-logo{
    width:145px;
  }
}


/* ===== Calendrier commandes / livraisons ===== */
.calendar-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}.calendar-toolbar h2{margin:0;text-transform:capitalize;min-width:210px}.calendar-toolbar>button:not(.primary){width:44px;height:44px;border-radius:14px;font-size:24px}.calendar-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.calendar-summary>div{padding:20px;border:1px solid #2e2e2e;border-radius:18px;background:#111}.calendar-summary b{display:block;font-size:28px}.calendar-summary span{color:#aaa}.calendar-panel{overflow:auto}.cal-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(115px,1fr));min-width:805px}.cal-week span{padding:10px;text-align:center;color:#aaa;font-weight:700}.cal-day{min-height:125px;border:1px solid #292929;padding:8px;background:#0d0d0d}.cal-day.today{outline:2px solid #fff;outline-offset:-2px}.cal-empty{opacity:.35}.cal-num{font-weight:800;margin-bottom:7px}.cal-order{display:flex;flex-direction:column;width:100%;text-align:left;padding:7px 8px;margin:5px 0;border-radius:10px;border:1px solid #353535;background:#171717;color:#fff}.cal-order span{font-size:11px;color:#bbb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-order.urgent{border:2px solid #fff;background:#292929}.cal-order.late{border:2px dashed #fff;background:#1f1f1f}.cal-order.done{opacity:.55}.urgent-panel{border:2px solid #fff}.urgent-list{display:grid;gap:8px}.urgent-list button{display:flex;justify-content:space-between;gap:15px;text-align:left;padding:14px;border-radius:14px}.urgent-list span{color:#aaa}.text-action{padding:0;border:0;background:transparent;color:#fff;text-decoration:underline}.urgent-check{display:flex!important;align-items:center;gap:10px;margin:10px 0 18px!important;padding:14px;border:1px solid #343434;border-radius:14px}.urgent-check input{width:auto!important;margin:0!important}
@media(max-width:700px){.calendar-summary{grid-template-columns:1fr}.calendar-toolbar h2{min-width:0;flex:1}.urgent-list button{flex-direction:column}.calendar-panel{padding:10px}.cal-week,.calendar-grid{grid-template-columns:repeat(7,minmax(105px,1fr));min-width:735px}}
