/* RANOA Premium Motion · Administration / accueil · 2026-10-19
   CSS-only visual treatment. No business, permission or data changes. */

/* Shared app chrome : clearer hierarchy with a restrained brand surface. */
#app .side {
  background:linear-gradient(158deg,
    color-mix(in srgb,var(--surface-solid) 94%,var(--accent)) 0%,
    color-mix(in srgb,var(--surface-solid) 99%,var(--accent-2)) 65%,
    var(--surface-solid) 100%);
  border-right:1px solid color-mix(in srgb,var(--accent) 13%,var(--line));
  box-shadow:8px 0 32px rgba(17,42,84,.025);
}
#app .side .brand {
  padding:11px 10px 15px;
  border-bottom:1px solid color-mix(in srgb,var(--accent) 12%,var(--line));
  margin-bottom:2px;
}
#app .side .brand b {font-size:1.14rem;letter-spacing:-.025em}
#app .side .brand small {color:var(--muted);font-size:.73rem}
#app .side nav {gap:5px;scrollbar-width:thin}
#app .side nav button {
  position:relative;
  border-radius:13px;
  padding:10px 13px;
  min-height:42px;
  font-weight:660;
  transition:background .2s ease,transform .2s ease,border-color .2s ease;
}
#app .side nav button.active {
  background:linear-gradient(112deg,color-mix(in srgb,var(--accent) 13%,var(--surface-solid)),color-mix(in srgb,var(--accent-2) 7%,var(--surface-solid)));
  border-color:color-mix(in srgb,var(--accent) 23%,var(--line));
  color:var(--accent);
}
#app .side nav button.active::before {
  content:"";position:absolute;left:0;top:23%;height:54%;width:3px;
  border-radius:0 4px 4px 0;background:var(--accent);
}
#app .side .userbox {
  background:color-mix(in srgb,var(--surface-solid) 96%,var(--accent));
  border-color:color-mix(in srgb,var(--accent) 17%,var(--line));
  box-shadow:0 12px 28px rgba(16,36,76,.045);
}

/* Header : keep the tenant switcher, search, notifications and +Client visible.
   Less frequent commands remain accessible in an ordinary native details menu. */
#app .admin-premium-top {
  display:grid;
  grid-template-columns:minmax(180px, .72fr) minmax(0,2.4fr);
  align-items:center;
  gap:clamp(15px,1.6vw,28px);
  border-radius:23px;
  padding:18px 21px;
  border:1px solid color-mix(in srgb,var(--accent) 15%,var(--line));
  background:
    radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--accent-2) 8%,transparent),transparent 60%),
    var(--surface-solid);
  box-shadow:0 13px 34px rgba(14,39,83,.07);
}
#app .admin-premium-top .mobile-top {align-items:center;min-width:0}
#app .admin-premium-top .mobile-top>div {min-width:0}
#app .admin-premium-top .mobile-top .eyebrow {
  font-size:.68rem;letter-spacing:.16em;font-weight:850;
}
#app .admin-premium-top .mobile-top h1 {
  font-size:clamp(1.55rem,2vw,2rem);font-weight:790;letter-spacing:-.035em;
  line-height:1.1;
}
#app .admin-premium-top .mobile-top p {font-size:.86rem;line-height:1.35;margin-top:4px}
#app .admin-premium-toolbar {
  min-width:0;
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"primary actions" "status actions";
  align-items:center;
  gap:9px 13px;
}
#app .admin-toolbar-primary {
  grid-area:primary;
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
#app .admin-toolbar-primary .tenant-switcher {
  flex:0 1 205px;min-width:150px;max-width:225px;
  height:44px;min-height:44px;
  border-radius:12px;font-size:.84rem;
}
#app .admin-toolbar-primary .tenant-switcher.hidden {display:none}
#app .admin-toolbar-primary .search-wrap {
  flex:1 1 220px;min-width:0;max-width:none;
}
#app .admin-toolbar-primary #globalSearch {
  height:44px;min-height:44px;padding:10px 13px;font-size:.87rem;
  border-radius:12px;background:var(--surface-solid);
}
#app .admin-toolbar-status {
  grid-area:status;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  min-width:0;
}
#app .admin-toolbar-status > .btn {
  flex:0 0 42px;width:42px;min-width:42px;min-height:42px;padding:8px;
  border-radius:12px;
}
#app .admin-toolbar-status .toolbar-notices {
  display:flex;gap:6px;align-items:center;justify-content:flex-start;
  flex-wrap:wrap;min-width:0;
}
#app .admin-toolbar-status .toolbar-notices>.btn {
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  min-height:41px;padding:8px 11px;font-size:.79rem;
  border-radius:12px;white-space:normal;
}
#app .admin-toolbar-status .toolbar-notices>.btn.hidden{display:none}
#app .admin-toolbar-actions {
  grid-area:actions;
  display:flex;justify-content:flex-end;align-items:center;gap:8px;min-width:0;
}
#app .admin-toolbar-actions #quickClient {
  min-height:44px;border-radius:12px;padding:10px 15px;
  white-space:nowrap;box-shadow:0 9px 22px color-mix(in srgb,var(--accent) 17%,transparent);
}
#app .admin-toolbar-more {position:relative;padding:0;border:0;background:transparent;min-width:0}
#app .admin-toolbar-more>summary {
  display:inline-flex;align-items:center;gap:9px;
  padding:9px 12px;min-height:44px;
  border-radius:12px;list-style:none;cursor:pointer;
  border:1px solid var(--line);color:var(--text);background:var(--surface-solid);
  font-weight:700;font-size:.83rem;white-space:nowrap;
}
#app .admin-toolbar-more>summary::-webkit-details-marker{display:none}
#app .admin-toolbar-more>summary::marker{content:""}
#app .admin-toolbar-more[open]>summary,
#app .admin-toolbar-more>summary:hover {border-color:color-mix(in srgb,var(--accent) 34%,var(--line))}
#app .admin-toolbar-more>summary span{color:var(--accent)}
#app .admin-toolbar-menu {
  position:absolute;top:calc(100% + 7px);right:0;z-index:65;
  width:min(210px,calc(100vw - 30px));padding:8px;
  display:grid;gap:4px;
  background:var(--surface-solid);border:1px solid var(--line);
  border-radius:16px;box-shadow:0 16px 42px rgba(11,28,64,.18);
}
#app .admin-toolbar-more:not([open]) .admin-toolbar-menu {display:none}
#app .admin-toolbar-menu > .btn {
  display:flex;align-items:center;justify-content:flex-start;
  padding:10px 11px;min-height:42px;border:0;background:transparent;
  font-size:.85rem;text-align:left;white-space:normal;
}
#app .admin-toolbar-menu>.btn:hover {
  background:color-mix(in srgb,var(--accent) 9%,var(--surface-solid));
}
#app .admin-toolbar-menu>.hidden {display:none!important}

/* Dashboard : brand-led hero and calm metrics, preserving all existing data IDs. */
#app #tab-dashboard {min-width:0;display:grid;gap:15px}
#app #tab-dashboard.hidden {display:none}
#app #tab-dashboard .hero-band {
  position:relative;display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px 22px;align-items:center;
  min-height:154px;
  padding:clamp(19px,2.3vw,30px);
  border-radius:25px;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 3% 0%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 62%),
    linear-gradient(132deg,color-mix(in srgb,var(--accent) 6%,var(--surface-solid)),color-mix(in srgb,var(--accent-2) 5%,var(--surface-solid)));
  border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));
  box-shadow:0 15px 35px rgba(16,40,84,.075);
}
#app #tab-dashboard .hero-band::before {
  content:"";position:absolute;left:0;top:23%;height:54%;width:4px;
  border-radius:0 6px 6px 0;background:linear-gradient(180deg,var(--accent),var(--accent-2));
}
#app #tab-dashboard .hero-band>div {position:relative;min-width:0;z-index:1}
#app #tab-dashboard .hero-band .eyebrow {
  display:inline-flex;align-items:center;gap:7px;
  font-size:.69rem;letter-spacing:.15em;font-weight:850;
}
#app #tab-dashboard .hero-band .eyebrow::before {
  content:"";width:6px;height:6px;background:var(--accent-2);border-radius:50%;
}
#app #tab-dashboard .hero-band h2 {
  font-size:clamp(1.4rem,2.1vw,2.05rem);
  line-height:1.17;letter-spacing:-.035em;
  margin:10px 0 7px;
  max-width:31ch;
}
#app #tab-dashboard .hero-band p {font-size:.9rem;line-height:1.5}
#app #tab-dashboard .hero-actions {
  display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;
}
#app #tab-dashboard .hero-actions :is(.btn,.primary) {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:10px 13px;border-radius:12px;font-size:.83rem;
  white-space:normal;
}
#app #tab-dashboard .hero-actions>.primary {box-shadow:0 9px 22px color-mix(in srgb,var(--accent) 17%,transparent)}
#app #tab-dashboard #planOverview {
  margin:0;padding:12px;gap:10px;
  border-radius:19px;
  border:1px solid color-mix(in srgb,var(--accent) 12%,var(--line));
  background:var(--surface-solid);
  box-shadow:0 9px 22px rgba(16,36,76,.045);
}
#app #tab-dashboard #planOverview .plan-stat {
  min-width:0;min-height:72px;border-radius:13px;padding:12px;
  background:color-mix(in srgb,var(--accent) 3%,var(--surface-solid));
  border:1px solid color-mix(in srgb,var(--accent) 7%,var(--line));
}
#app #tab-dashboard #planOverview .plan-stat small {font-size:.73rem}
#app #tab-dashboard #planOverview .plan-stat b {font-size:1.07rem}
#app #tab-dashboard .metrics {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
}
#app #tab-dashboard .metric {
  --metric-accent:var(--accent);
  min-width:0;min-height:139px;
  padding:17px 18px 15px;border:1px solid color-mix(in srgb,var(--metric-accent) 17%,var(--line));
  border-radius:20px;
  background:linear-gradient(152deg,var(--surface-solid) 20%,color-mix(in srgb,var(--metric-accent) 7%,var(--surface-solid)));
  color:var(--text);
  box-shadow:0 12px 27px rgba(16,36,76,.055);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
#app #tab-dashboard .metric.gradient-a{--metric-accent:#3c73ef}
#app #tab-dashboard .metric.gradient-b{--metric-accent:#0fa6b2}
#app #tab-dashboard .metric.gradient-c{--metric-accent:#8459d8}
#app #tab-dashboard .metric.gradient-d{--metric-accent:#149a79}
#app #tab-dashboard .metric::before {
  content:"";position:absolute;left:17px;top:0;width:58px;height:3px;
  border-radius:0 0 4px 4px;background:var(--metric-accent);
}
#app #tab-dashboard .metric::after {
  right:-30px;bottom:-38px;width:112px;height:112px;
  background:color-mix(in srgb,var(--metric-accent) 10%,transparent);
}
#app #tab-dashboard .metric>span:first-child {
  font-size:.78rem;font-weight:700;opacity:1;
  color:var(--muted);
}
#app #tab-dashboard .metric strong {
  font-size:clamp(1.55rem,2.2vw,2.1rem);
  font-weight:830;letter-spacing:-.04em;
  margin:8px 0 0;
  color:var(--text);
  overflow-wrap:anywhere;
}
#app #tab-dashboard .metric .metric-link-hint {
  position:relative;z-index:1;
  font-size:.75rem;opacity:1;font-weight:750;
  margin-top:11px;color:var(--metric-accent);
}
#app #tab-dashboard .two {gap:13px;align-items:start}
#app #tab-dashboard .two>.panel {
  background:var(--surface-solid);
  border-radius:20px;
  border:1px solid color-mix(in srgb,var(--accent) 12%,var(--line));
  box-shadow:0 12px 30px rgba(16,36,76,.055);
}
#app #tab-dashboard .two>.panel>.ph {padding:18px 20px}
#app #tab-dashboard .two>.panel>.ph h2 {letter-spacing:-.025em;font-size:1.17rem}
#app #tab-dashboard .two>.panel>.pb {padding:15px 18px}
#app #tab-dashboard .two>.panel .table {max-width:100%;overflow-x:auto}
#app #tab-dashboard .two>.panel th {
  font-size:.72rem;letter-spacing:.07em;text-transform:uppercase;
}
#app #tab-dashboard .two>.panel .card {
  border-color:color-mix(in srgb,var(--accent) 10%,var(--line));
  background:color-mix(in srgb,var(--accent) 3%,var(--surface-solid));
}

/* Hover only with a real pointer. Motion should never obscure live data. */
@media (hover:hover) and (pointer:fine) {
  #app .side nav button:not(:disabled):hover {transform:translateX(2px)}
  #app #tab-dashboard .metric-link:hover {
    transform:translateY(-3px);filter:none;
    border-color:color-mix(in srgb,var(--metric-accent) 36%,var(--line));
    box-shadow:0 18px 34px rgba(16,36,76,.105);
  }
}
@keyframes ranoa-admin-enter {
  from{opacity:.6;transform:translateY(7px)}
  to{opacity:1;transform:translateY(0)}
}
@media (prefers-reduced-motion:no-preference) {
  #app #tab-dashboard:not(.hidden) .hero-band {animation:ranoa-admin-enter .34s ease-out both}
  #app #tab-dashboard:not(.hidden) .metric {animation:ranoa-admin-enter .32s ease-out both}
  #app #tab-dashboard:not(.hidden) .metric:nth-child(2){animation-delay:.04s}
  #app #tab-dashboard:not(.hidden) .metric:nth-child(3){animation-delay:.08s}
  #app #tab-dashboard:not(.hidden) .metric:nth-child(4){animation-delay:.12s}
}

/* Tablet: keep the same tools, without making the top bar one huge row. */
@media (max-width:1340px) {
  #app .admin-premium-top {grid-template-columns:minmax(0,1fr);gap:12px}
  #app .admin-premium-toolbar {max-width:100%;grid-template-columns:minmax(0,1fr) auto}
  #app #tab-dashboard .hero-band {grid-template-columns:minmax(0,1fr)}
  #app #tab-dashboard .hero-actions {justify-content:flex-start}
}
@media (max-width:980px) {
  #app .admin-premium-toolbar {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"primary primary" "status actions";
  }
  #app .admin-toolbar-primary .tenant-switcher {flex:0 1 230px}
  #app .admin-toolbar-status .toolbar-notices>.btn {padding:8px 9px}
  #app #tab-dashboard .metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
  #app #tab-dashboard .two {grid-template-columns:minmax(0,1fr)}
}
@media (max-width:680px) {
  #app .admin-premium-top {padding:12px;border-radius:18px;gap:11px}
  #app .admin-premium-toolbar {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"primary" "status" "actions";
    gap:8px;
  }
  #app .admin-toolbar-primary {
    display:grid;grid-template-columns:minmax(0,1fr);gap:7px;
  }
  #app .admin-toolbar-primary .tenant-switcher {
    width:100%;max-width:none;min-width:0;
  }
  #app .admin-toolbar-primary .search-wrap {width:100%;min-width:0}
  #app .admin-toolbar-status {
    min-width:0;display:grid;
    grid-template-columns:42px 42px minmax(0,1fr);
    align-items:start;gap:6px;
  }
  #app .admin-toolbar-status .toolbar-notices {
    min-width:0;width:100%;display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;
  }
  #app .admin-toolbar-status .toolbar-notices>.btn {
    width:100%;min-width:0;min-height:42px;
    white-space:normal;overflow-wrap:anywhere;
    font-size:.71rem;padding:7px 4px;
  }
  #app .admin-toolbar-status .toolbar-notices>.btn:not(.hidden):nth-child(3) {
    grid-column:1 / -1;
  }
  #app .admin-toolbar-actions {
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:7px;width:100%;justify-content:stretch;
  }
  #app .admin-toolbar-more,
  #app .admin-toolbar-more>summary,
  #app .admin-toolbar-actions #quickClient {width:100%;min-width:0}
  #app .admin-toolbar-more>summary {justify-content:center}
  #app .admin-toolbar-actions #quickClient {padding:10px 8px}
  #app #tab-dashboard {gap:10px}
  #app #tab-dashboard .hero-band {min-height:0;padding:17px;border-radius:19px}
  #app #tab-dashboard .hero-band h2 {font-size:clamp(1.28rem,4.5vw,1.7rem)}
  #app #tab-dashboard .hero-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
  #app #tab-dashboard .hero-actions :is(.btn,.primary) {width:100%;min-width:0;white-space:normal}
  #app #tab-dashboard .hero-actions :first-child {grid-column:1 / -1}
  #app #tab-dashboard #planOverview {grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:7px}
  #app #tab-dashboard #planOverview .plan-stat {min-height:65px;padding:9px}
  #app #tab-dashboard .metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #app #tab-dashboard .metric {min-height:116px;padding:13px;border-radius:15px}
  #app #tab-dashboard .metric strong {font-size:clamp(1.3rem,5vw,1.6rem)}
  #app #tab-dashboard .metric .metric-link-hint {font-size:.7rem}
  #app #tab-dashboard .two>.panel>.ph {padding:13px 15px}
  #app #tab-dashboard .two>.panel>.pb {padding:12px 13px}
}
@media (max-width:360px) {
  #app .admin-premium-top .mobile-top h1 {font-size:1.45rem}
  #app .admin-toolbar-status {grid-template-columns:42px 42px minmax(0,1fr)}
  #app .admin-toolbar-status .toolbar-notices {grid-template-columns:minmax(0,1fr)}
  #app .admin-toolbar-status .toolbar-notices>.btn:not(.hidden):nth-child(3){grid-column:auto}
  #app #tab-dashboard .hero-actions {grid-template-columns:minmax(0,1fr)}
  #app #tab-dashboard .hero-actions :first-child {grid-column:auto}
  #app #tab-dashboard #planOverview {grid-template-columns:repeat(2,minmax(0,1fr))}
  #app #tab-dashboard .metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
  #app #tab-dashboard .metric {padding:11px;min-height:108px}
  #app #tab-dashboard .metric>span:first-child {font-size:.72rem}
  #app #tab-dashboard .metric .metric-link-hint {font-size:.66rem}
}
@media (prefers-reduced-motion:reduce) {
  #app .admin-premium-top *,
  #app .side nav button,
  #app #tab-dashboard .metric,
  #app #tab-dashboard .hero-band {
    animation:none!important;
    transition:none!important;
  }
}


/* Mobile revision 2026-10-19: compact controls, never hide functionality.
   Search and unread alerts expand on demand instead of taking three rows. */
#app .admin-mobile-toggle {display:none}
@media(max-width:680px){
  #app .admin-premium-top {
    position:relative;
    top:auto;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:9px;
    padding:11px 12px;
  }
  #app .admin-premium-top .mobile-top {gap:8px}
  #app .admin-premium-top .mobile-top h1 {
    font-size:clamp(1.35rem,5vw,1.58rem);
    margin:0;
  }
  #app .admin-premium-top .mobile-top p {display:none}
  #app .admin-premium-top .mobile-top .eyebrow {font-size:.61rem}
  #app .admin-premium-toolbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"primary primary" "status actions";
    gap:7px;
    min-width:0;
    width:100%;
    align-items:start;
  }
  #app .admin-toolbar-primary {
    grid-area:primary;
    display:grid;
    grid-template-columns:minmax(0,1fr) 42px;
    align-items:center;
    gap:7px;
    min-width:0;
  }
  #app .admin-toolbar-primary .tenant-switcher {
    grid-column:1;
    width:100%;min-width:0;max-width:none;
    height:42px;min-height:42px;
    font-size:.81rem;
  }
  #app .admin-toolbar-primary .search-wrap {
    grid-column:1 / -1;
    display:none;
    width:100%;min-width:0;
  }
  #app .admin-toolbar-primary.search-open .search-wrap {display:block}
  #app .admin-mobile-toggle {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:relative;
    width:42px;min-width:42px;height:42px;min-height:42px;
    padding:7px;
    font-size:1.05rem;line-height:1;
    border-radius:12px;
  }
  #app .admin-toolbar-primary #adminMobileSearchToggle {
    grid-column:2;
    grid-row:1;
    width:42px;
  }
  #app .admin-mobile-toggle[aria-expanded="true"] {
    border-color:color-mix(in srgb,var(--accent) 48%,var(--line));
    background:color-mix(in srgb,var(--accent) 10%,var(--surface-solid));
  }
  #app .admin-toolbar-status {
    grid-area:status;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:5px;
    position:relative;
    min-width:0;
    width:auto;
  }
  #app .admin-toolbar-status>.btn:not(.admin-mobile-toggle) {
    display:inline-flex;
    flex:0 0 39px;
    width:39px;min-width:39px;height:42px;min-height:42px;
    font-size:.85rem;
    padding:7px;
  }
  #app .admin-toolbar-status #adminMobileAlertsToggle {
    flex:0 0 42px;
  }
  #app .admin-toolbar-status .toolbar-notices {
    display:none;
    position:absolute;
    z-index:85;
    top:calc(100% + 7px);
    left:0;
    width:min(260px,calc(100vw - 36px));
    min-width:0;
    max-width:none;
    padding:9px;
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--surface-solid);
    box-shadow:0 18px 40px rgba(12,31,68,.19);
  }
  #app .admin-toolbar-status.alerts-open .toolbar-notices {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:6px;
  }
  #app .admin-toolbar-status .toolbar-notices>.btn:not(.hidden),
  #app .admin-toolbar-status.alerts-open .toolbar-notices>.btn:not(.hidden):nth-child(3) {
    display:flex;
    grid-column:auto;
    width:100%;
    min-height:43px;
    justify-content:space-between;
    padding:9px 11px;
    font-size:.81rem;
  }
  #app .admin-mobile-alert-count {
    position:absolute;
    top:1px;right:0;
    display:flex;align-items:center;justify-content:center;
    min-width:17px;height:17px;
    padding:0 3px;
    border-radius:999px;
    font-size:.61rem;font-weight:850;
    background:var(--danger);color:#fff;
    border:1px solid var(--surface-solid);
  }
  #app .admin-mobile-alert-count.hidden {display:none}
  #app .admin-toolbar-actions {
    grid-area:actions;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    width:auto;
    min-width:0;
    gap:6px;
  }
  #app .admin-toolbar-more {width:auto;min-width:0;flex:none}
  #app .admin-toolbar-more>summary {
    width:auto;
    min-height:42px;
    padding:8px 10px;
    font-size:.78rem;
    white-space:nowrap;
  }
  #app .admin-toolbar-actions #quickClient {
    flex:none;
    width:auto;
    min-width:0;
    min-height:42px;
    padding:8px 10px;
    font-size:.78rem;
    white-space:nowrap;
  }
  #app .admin-premium-top:has(.admin-toolbar-more[open]),
  #app .admin-premium-top:has(.admin-toolbar-status.alerts-open) {
    z-index:70;
  }
}
@media(max-width:380px){
  #app .admin-premium-top {padding:9px 10px}
  #app .admin-toolbar-status>.btn:not(.admin-mobile-toggle) {
    flex-basis:36px;width:36px;min-width:36px;
  }
  #app .admin-toolbar-status #adminMobileAlertsToggle {
    flex-basis:39px;width:39px;min-width:39px;
  }
  #app .admin-toolbar-actions #quickClient {
    padding:8px 8px;
    font-size:.73rem;
  }
  #app .admin-toolbar-more>summary {
    padding:8px 8px;
    font-size:.73rem;
  }
}
/* Requests: use the responsive-cards component already present in style.css. */
@media(max-width:980px){
  #app #tab-requests {
    min-width:0;
    max-width:100%;
    overflow:visible;
  }
  #app #tab-requests>.pb.table {
    min-width:0;max-width:100%;width:100%;
    overflow:visible;
    padding:10px;
    margin:0;
  }
  #app #tab-requests table.responsive-cards {
    min-width:0!important;
    width:100%;
    max-width:100%;
    table-layout:auto;
  }
  #app #tab-requests table.responsive-cards td {
    min-width:0!important;
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  #app #tab-requests table.responsive-cards td[data-label="Détail"] .request-details {
    min-width:0;max-width:100%;
    display:block;
    overflow-wrap:anywhere;
    white-space:normal;
    line-height:1.46;
  }
  #app #tab-requests table.responsive-cards td[data-label="Détail"] .request-details .cell-sub {
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  #app #tab-requests table.responsive-cards td[data-label="Action"] {
    grid-template-columns:minmax(0,1fr);
    gap:7px;
  }
  #app #tab-requests table.responsive-cards td[data-label="Action"] .primary {
    min-width:0;
    width:100%;
    min-height:44px;
    white-space:normal;
  }
  #app #tab-requests table.responsive-cards td[colspan] {
    display:block;
    width:100%;
    text-align:center;
  }
}
@media(max-width:360px){
  #app #tab-requests>.pb.table {padding:7px}
  #app #tab-requests table.responsive-cards tbody td {
    grid-template-columns:minmax(76px,29%) minmax(0,1fr);
    gap:8px;
  }
  #app #tab-requests table.responsive-cards td[data-label="Action"] {
    grid-template-columns:minmax(0,1fr);
  }
}


/* Dashboard mobile fix: never squeeze three commercial KPIs into one row.
   Keep links and figures readable on 320px without affecting desktop. */
@media(max-width:680px) {
  #app #tab-dashboard #salesSummary {
    min-width:0;
    width:100%;
    padding:11px;
  }
  #app #tab-dashboard #salesSummary .sales-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:9px;
    min-width:0;
    width:100%;
  }
  #app #tab-dashboard #salesSummary .sales-grid>.dashboard-link-card {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    column-gap:12px;
    row-gap:4px;
    min-width:0;
    width:100%;
    min-height:79px;
    padding:12px 14px;
    border-radius:14px;
    align-items:center;
    text-align:left;
  }
  #app #tab-dashboard #salesSummary .sales-grid>.dashboard-link-card>.muted {
    grid-column:1;grid-row:1;
    min-width:0;
    font-size:.85rem;
    font-weight:720;
    line-height:1.3;
    overflow-wrap:normal;
  }
  #app #tab-dashboard #salesSummary .sales-grid>.dashboard-link-card>.price {
    grid-column:2;grid-row:1;
    justify-self:end;
    margin:0;
    font-size:1.55rem;
    line-height:1;
    text-align:right;
    font-weight:850;
    white-space:nowrap;
  }
  #app #tab-dashboard #salesSummary .sales-grid>.dashboard-link-card>.dashboard-link-hint {
    grid-column:1/-1;
    grid-row:2;
    margin:0;
    font-size:.73rem;
    color:var(--accent);
  }
  #app #tab-dashboard .two>.panel>.pb.table {
    width:100%;
    min-width:0;
    padding:11px;
    overflow:visible;
  }
  #app #tab-dashboard .dashboard-bookings-table {
    width:100%;
    min-width:0!important;
    max-width:100%;
  }
  #app #tab-dashboard .dashboard-bookings-table tbody td {
    min-width:0!important;
    overflow-wrap:anywhere;
  }
  #app #tab-dashboard .dashboard-bookings-table tbody td .cell-sub {
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
}
@media(max-width:360px) {
  #app #tab-dashboard #salesSummary {padding:8px}
  #app #tab-dashboard #salesSummary .sales-grid>.dashboard-link-card {padding:11px 12px}
  #app #tab-dashboard .dashboard-bookings-table tbody td {
    grid-template-columns:minmax(72px,30%) minmax(0,1fr);
    gap:7px;
  }
}
