/* ==========================================================================
   Administration IJADDI — interface claire « logiciel de gestion »
   Complète assets/css/style.css (mêmes couleurs, même police Archivo).
   Surfaces blanches sur fond doux, bordures fines, ombres légères,
   bleu IJADDI pour l'action, les cinq couleurs du logo pour repérer les domaines.
   ========================================================================== */
body.admin {
  --a-bg: #F3F6FA;
  --a-surface: #FFFFFF;
  --a-subtle: #F7F9FC;
  --a-hover: #EEF2F8;
  --a-border: #E2E8F0;
  --a-border-strong: #CBD5E2;
  --a-text: #0C1A3A;
  --a-muted: #56637D;          /* 5,5:1 sur blanc */
  --a-faint: #8792A8;
  --a-accent: var(--action);
  --a-accent-ink: #1C46A8;
  --a-accent-soft: #E9EFFC;
  --a-ocean-soft: #E3F3FA;
  --a-radius: 14px;
  --a-radius-s: 10px;
  --a-shadow-xs: 0 1px 2px rgba(23, 35, 43, .05);
  --a-shadow-sm: 0 1px 2px rgba(23, 35, 43, .04), 0 4px 12px -4px rgba(23, 35, 43, .07);
  --a-shadow-md: 0 2px 4px rgba(23, 35, 43, .04), 0 16px 36px -14px rgba(23, 35, 43, .2);
  --a-ease: cubic-bezier(.22, 1, .36, 1);
  --a-side-w: 264px;
  --a-top-h: 68px;
    background: var(--a-bg);
  color: var(--a-text);
  font-size: .95rem;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}
body.admin h1, body.admin h2, body.admin h3, body.admin h4 { font-weight: 650; letter-spacing: -.015em; line-height: 1.25; color: var(--a-text); }
body.admin h1 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); }
body.admin h2 { font-size: 1.08rem; }
body.admin h3 { font-size: 1rem; }
body.admin .lead { font-size: 1rem; color: var(--a-muted); }
body.admin .muted { color: var(--a-muted); }
body.admin ::selection { background: var(--a-accent-soft); color: var(--a-text); }

/* --------------------------------------------------------------------------
   Coque : menu latéral + zone principale
   -------------------------------------------------------------------------- */
.admin-shell { display: grid; min-height: 100vh; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .admin-shell { grid-template-columns: var(--a-side-w) minmax(0, 1fr); } }

.admin-side {
  position: fixed; inset: 0 auto 0 0; z-index: 130;
  display: flex; flex-direction: column;
  width: min(300px, 86vw);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--a-surface); border-right: 1px solid var(--a-border);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-102%);
  transition: transform .42s var(--a-ease), box-shadow .42s var(--a-ease);
}
.admin-side.is-open { transform: none; box-shadow: 24px 0 60px -20px rgba(15, 23, 30, .35); }
@media (min-width: 1000px) {
  .admin-side { position: sticky; top: 0; height: 100vh; height: 100dvh; width: auto; transform: none; transition: none; }
  .admin-side__close { display: none !important; }
}
.admin-side__brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--a-top-h); padding: 0 16px 0 20px; border-bottom: 1px solid var(--a-border); }
.admin-side__logo { display: block; }
.admin-side__logo { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.admin-side__logo img { display: block; width: 40px; height: 40px; }
.admin-side__logo .brand__text strong { font-size: 1.12rem; }
.admin-side__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--a-radius-s); background: transparent; color: var(--a-muted); cursor: pointer; transition: background-color .2s, color .2s; }
.admin-side__close:hover { background: var(--a-hover); color: var(--a-text); }

.admin-nav { display: grid; gap: 2px; padding: 12px 12px 16px; }
.admin-nav__group { padding: 18px 12px 6px; font-size: .72rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--a-faint); }
.admin-nav a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px;
  border-radius: var(--a-radius-s); color: var(--a-muted); font-weight: 560; font-size: .93rem; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.admin-nav a .icon { color: var(--a-faint); transition: color .2s, transform .35s var(--a-ease); }
.admin-nav a:hover { background: var(--a-hover); color: var(--a-text); }
.admin-nav a:hover .icon { color: var(--a-text); transform: translateX(1px); }
.admin-nav a[aria-current="page"] { background: var(--a-accent-soft); color: var(--a-accent-ink); font-weight: 650; }
.admin-nav a[aria-current="page"] .icon { color: var(--a-accent); }
.admin-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--a-accent); }
.admin-nav__count { margin-left: auto; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--a-accent-soft); color: var(--a-accent-ink); font-style: normal; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-nav a[aria-current="page"] .admin-nav__count { background: var(--a-accent); color: #fff; }

.admin-side__foot { margin-top: auto; display: grid; gap: 6px; padding: 12px; border-top: 1px solid var(--a-border); }
.admin-user { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--a-radius-s); text-decoration: none; transition: background-color .2s; }
.admin-user:hover, .admin-user[aria-current="page"] { background: var(--a-hover); }
.admin-user__text { display: grid; min-width: 0; line-height: 1.3; }
.admin-user__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 650; }
.admin-user__text small { color: var(--a-muted); font-size: .78rem; }
.admin-side__links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.admin-side__links a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 6px 8px; border-radius: var(--a-radius-s); background: var(--a-subtle); box-shadow: inset 0 0 0 1px var(--a-border); color: var(--a-muted); font-size: .82rem; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s; }
.admin-side__links a:hover { background: var(--a-hover); color: var(--a-text); }

/* Écrans d'ordinateur peu hauts (1366 × 768) : tout le menu reste visible sans défiler. */
@media (min-width: 1000px) and (max-height: 860px) {
  .admin-nav { padding-top: 8px; gap: 0; }
  .admin-nav a { min-height: 34px; padding: 6px 12px; }
  .admin-nav__group { padding: 10px 12px 4px; }
  .admin-user { padding: 6px 10px; }
}

.avatar-chip { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--nuit-3), var(--nuit)); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.avatar--top { box-shadow: 0 0 0 2px var(--a-surface), 0 0 0 3px var(--a-border); transition: box-shadow .2s; }
.avatar--top:hover { box-shadow: 0 0 0 2px var(--a-surface), 0 0 0 3px var(--a-accent); }

/* Voile derrière le tiroir (téléphone, tablette) */
.admin-backdrop { position: fixed; inset: 0; z-index: 125; background: rgba(15, 23, 30, .38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity .35s var(--a-ease); }
.admin-backdrop.is-visible { opacity: 1; }
@media (min-width: 1000px) { .admin-backdrop { display: none !important; } }
body.admin.side-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Barre du haut
   -------------------------------------------------------------------------- */
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  min-height: var(--a-top-h); padding: 10px clamp(16px, 3vw, 32px);
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--a-border);
}
.admin-top__menu { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--a-border); border-radius: var(--a-radius-s); background: var(--a-surface); color: var(--a-text); cursor: pointer; transition: background-color .2s; }
.admin-top__menu:hover { background: var(--a-hover); }
@media (min-width: 1000px) { .admin-top__menu { display: none; } }
.admin-top__title { flex: 1; min-width: 0; display: grid; }
.admin-top__title h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); }
.admin-top__date { color: var(--a-muted); font-size: .8rem; font-weight: 500; }
.admin-top__actions { display: flex; align-items: center; gap: 10px; }
.admin-top__icon { display: none; place-items: center; width: 40px; height: 40px; border-radius: var(--a-radius-s); color: var(--a-text); }

.admin-search { position: relative; display: none; align-items: center; width: clamp(220px, 24vw, 340px); }
.admin-search input { width: 100%; height: 40px; padding: 0 38px 0 38px; border: 1px solid var(--a-border); border-radius: var(--a-radius-s); background: var(--a-subtle); color: var(--a-text); font: inherit; font-size: .9rem; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.admin-search input::placeholder { color: var(--a-faint); }
.admin-search input:hover { border-color: var(--a-border-strong); }
.admin-search input:focus { outline: none; background: var(--a-surface); border-color: var(--a-accent); box-shadow: 0 0 0 4px rgba(31, 85, 201, .14); }
.admin-search__icon { position: absolute; left: 12px; color: var(--a-faint); pointer-events: none; }
.admin-search kbd { position: absolute; right: 10px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--a-border); border-radius: 5px; background: var(--a-surface); color: var(--a-faint); font: 600 .72rem/1 var(--font); }
.admin-search input:focus ~ kbd { opacity: 0; }
@media (min-width: 860px) { .admin-search { display: flex; } }
@media (max-width: 859px) { .admin-top__icon { display: grid; } }

/* --------------------------------------------------------------------------
   Contenu
   -------------------------------------------------------------------------- */
.admin-content { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; width: 100%; max-width: 1480px; padding: clamp(16px, 2.6vw, 32px); }
.admin-content > * { min-width: 0; }
@media (min-width: 1000px) { .admin-content { gap: 24px; } }

/* Entrée douce : les blocs montent l'un après l'autre */
@media (prefers-reduced-motion: no-preference) {
  .admin-content > :not(.toasts) { animation: a-rise .6s var(--a-ease) both; }
  .admin-content > :nth-child(2) { animation-delay: .03s; }
  .admin-content > :nth-child(3) { animation-delay: .07s; }
  .admin-content > :nth-child(4) { animation-delay: .11s; }
  .admin-content > :nth-child(5) { animation-delay: .15s; }
  .admin-content > :nth-child(n+6) { animation-delay: .19s; }
  .kpis > .kpi { animation: a-rise .6s var(--a-ease) both; }
  .kpis > .kpi:nth-child(2) { animation-delay: .05s; }
  .kpis > .kpi:nth-child(3) { animation-delay: .1s; }
  .kpis > .kpi:nth-child(4) { animation-delay: .15s; }
  .kpis > .kpi:nth-child(5) { animation-delay: .2s; }
}
@keyframes a-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Indicateurs
   -------------------------------------------------------------------------- */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.kpi {
  position: relative; display: grid; align-content: start; gap: 6px; min-width: 0;
  padding: 18px 18px 16px; border-radius: var(--a-radius); background: var(--a-surface);
  box-shadow: var(--a-shadow-sm), inset 0 0 0 1px var(--a-border);
  color: inherit; text-decoration: none;
  transition: transform .35s var(--a-ease), box-shadow .35s var(--a-ease);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--a-shadow-md), inset 0 0 0 1px var(--a-border); }
.kpi__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kpi__label { color: var(--a-muted); font-size: .84rem; font-weight: 600; line-height: 1.35; }
.kpi__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.kpi__icon--terra { background: var(--a-accent-soft); color: var(--a-accent); }
.kpi__icon--sun { background: #FEF4D6; color: #8A5E00; }
.kpi__icon--ocean { background: var(--a-ocean-soft); color: var(--nuit-3); }
.kpi__icon--palm { background: #E7F4E2; color: #2C7A2C; }
.kpi__icon--surf { background: #E3F3FA; color: var(--ciel-ink); }
.kpi__value { font-size: 1.95rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--a-text); font-variant-numeric: tabular-nums; }
.kpi__value small { font-size: .55em; font-weight: 600; color: var(--a-faint); letter-spacing: -.01em; }
.kpi--money .kpi__value { font-size: 1.5rem; padding-top: .2em; }
.kpi__hint { color: var(--a-muted); font-size: .8rem; }
.kpi--warn::after { content: ""; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--a-accent); box-shadow: 0 0 0 3px var(--a-surface); }
@media (prefers-reduced-motion: no-preference) { .kpi--warn::after { animation: a-ping 2.4s ease-out 1s 3; } }
@keyframes a-ping { 0% { box-shadow: 0 0 0 3px var(--a-surface), 0 0 0 3px rgba(31, 85, 201, .45); } 100% { box-shadow: 0 0 0 3px var(--a-surface), 0 0 0 12px rgba(31, 85, 201, 0); } }
.kpi__meter { display: block; height: 6px; margin: 4px 0 2px; border-radius: 6px; background: var(--a-hover); overflow: hidden; }
.kpi__meter i { display: block; width: var(--p, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nuit-3), var(--ciel)); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .kpi__meter i { animation: a-grow-x 1s var(--a-ease) .3s both; } }
@keyframes a-grow-x { from { transform: scaleX(0); } }
@media (max-width: 599px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi__icon { width: 30px; height: 30px; border-radius: 9px; }
  .kpi__icon .icon { width: 16px; height: 16px; }
  .kpi__value { font-size: 1.6rem; }
  .kpi--money { grid-column: 1 / -1; order: 10; }
  .kpi--money .kpi__value { font-size: 1.4rem; }
  .kpi--warn::after { top: auto; bottom: 14px; }
}

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */
.card { min-width: 0; border-radius: var(--a-radius); background: var(--a-surface); box-shadow: var(--a-shadow-xs), inset 0 0 0 1px var(--a-border); }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; min-height: 60px; padding: 14px 20px; border-bottom: 1px solid var(--a-border); }
.card__head h2 { margin: 0; font-size: 1.02rem; font-weight: 650; }
.card__body { padding: 20px; }
.card__body > :first-child { margin-top: 0; }
.card__body h3 { display: flex; align-items: center; gap: 8px; }
.card + .card { margin-top: 0; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 1200px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }
@media (max-width: 599px) { .card__head { padding: 12px 16px; min-height: 54px; } .card__body { padding: 16px; } }

/* Agenda du jour (vue d'ensemble) */
.agenda { display: grid; gap: 18px; }
.agenda__group h3 { margin: 0 0 10px; font-size: .92rem; font-weight: 650; }
.agenda__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.agenda__icon--in { background: #E7F4E2; color: #2C7A2C; }
.agenda__icon--out { background: var(--a-ocean-soft); color: var(--nuit-3); }
.agenda__icon--table { background: #FEF4D6; color: #8A5E00; }
.agenda__count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--a-hover); color: var(--a-muted); font-size: .74rem; font-weight: 700; }
.agenda__list { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; border-radius: var(--a-radius-s); box-shadow: inset 0 0 0 1px var(--a-border); }
.agenda__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; }
.agenda__list li + li { border-top: 1px solid var(--a-border); }
.agenda__name { font-weight: 650; text-decoration: none; color: var(--a-text); }
.agenda__name:hover { color: var(--a-accent-ink); }
.agenda__meta { flex: 1 1 auto; min-width: 0; color: var(--a-muted); font-size: .86rem; }
.agenda__time { display: inline-grid; place-items: center; min-width: 52px; height: 26px; padding: 0 8px; border-radius: 7px; background: var(--a-subtle); box-shadow: inset 0 0 0 1px var(--a-border); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.agenda__empty { margin: 0; padding: 12px; border-radius: var(--a-radius-s); background: var(--a-subtle); color: var(--a-muted); font-size: .88rem; }

/* Histogramme d'occupation */
.bars-wrap { overflow-x: auto; scrollbar-width: thin; }
.bars { display: flex; align-items: stretch; gap: 6px; min-width: 460px; height: 190px; padding-top: 4px; }
.bars__col { flex: 1 1 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; min-width: 0; text-align: center; }
.bars__col b { font-size: .74rem; font-weight: 700; color: var(--a-text); font-variant-numeric: tabular-nums; }
.bars__track { position: relative; display: flex; align-items: flex-end; border-radius: 7px; background: var(--a-subtle); overflow: hidden; }
.bars__bar { width: 100%; min-height: 3px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #5C8BEA, var(--action)); transform-origin: bottom; }
.bars__col.is-weekend .bars__track { background: #EDF1F7; }
.bars__col.is-today .bars__bar { background: linear-gradient(180deg, var(--nuit-3), var(--nuit)); }
.bars__col span { font-size: .7rem; color: var(--a-muted); font-variant-numeric: tabular-nums; }
.bars__col.is-today span { color: var(--a-text); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .bars__bar { animation: a-grow-y .9s var(--a-ease) both; animation-delay: calc(.25s + var(--i, 0) * .035s); } }
@keyframes a-grow-y { from { transform: scaleY(0); } }

/* --------------------------------------------------------------------------
   Tableaux de données (deviennent des fiches sur téléphone)
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: 0 0 var(--a-radius) var(--a-radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--a-border); }
table.data th:first-child, table.data td:first-child { padding-left: 20px; }
table.data th:last-child, table.data td:last-child { padding-right: 20px; }
table.data thead th { position: sticky; top: 0; background: var(--a-subtle); color: var(--a-muted); font-size: .74rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
table.data tbody tr { transition: background-color .15s; }
table.data tbody tr:hover { background: #FBFAF8; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data a.ref { font-weight: 700; color: var(--a-text); text-decoration: none; }
table.data a.ref:hover { color: var(--a-accent-ink); }
table.data .sub { display: block; margin-top: 2px; color: var(--a-muted); font-size: .8rem; }
table.data a.ref, table.data strong { white-space: nowrap; }
.card > .table-wrap:first-child { border-radius: var(--a-radius); }
.card > .table-wrap:first-child table.data thead th:first-child { border-top-left-radius: var(--a-radius); }
.card > .table-wrap:first-child table.data thead th:last-child { border-top-right-radius: var(--a-radius); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--a-subtle); }
.thumb--square { width: 48px; height: 48px; }
.drag { cursor: grab; color: var(--a-faint); }

@media (max-width: 760px) {
  .table-wrap:has(table.is-stacked) { overflow: visible; }
  table.data.is-stacked, table.data.is-stacked tbody { display: block; }
  table.data.is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data.is-stacked tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 14px 16px; border-bottom: 1px solid var(--a-border); }
  table.data.is-stacked tbody tr:hover { background: transparent; }
  table.data.is-stacked tr:last-child { border-bottom: 0; }
  table.data.is-stacked td { display: block; min-width: 0; padding: 0 !important; border: 0; text-align: left !important; }
  table.data.is-stacked td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--a-faint); font-size: .7rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
  table.data.is-stacked td.is-lead { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-size: .98rem; }
  table.data.is-stacked td.is-lead::before { display: none; }
  table.data.is-stacked td.is-lead .sub { flex-basis: 100%; }
  table.data.is-stacked td.is-wide, table.data.is-stacked td[colspan] { grid-column: 1 / -1; }
  table.data.is-stacked td.is-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px !important; }
  table.data.is-stacked td.is-actions::before { display: none; }
  table.data.is-stacked td.is-actions .btn { flex: 1 1 auto; }
  table.data.is-stacked td.is-empty { display: none; }
  table.data.is-stacked a.ref, table.data.is-stacked strong { white-space: normal; }
}

/* --------------------------------------------------------------------------
   Filtres, onglets, pagination
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filters .field { gap: 5px; flex: 1 1 160px; min-width: 0; }
.filters .field:first-child { flex-basis: 220px; }
.filters .input, .filters .select { min-height: 40px; padding: 7px 12px; font-size: .9rem; }
.filters .select { padding-right: 36px; background-position: right 12px center; }
.filters > .btn { flex: none; }
.card__head .filters { flex-wrap: nowrap; }
@media (max-width: 599px) {
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .filters > .btn { width: 100%; }
  .card__head .filters { display: flex; flex-wrap: wrap; }
}

.tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; padding: 4px; border-radius: 12px; background: var(--a-hover); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 7px 14px; border-radius: 9px; color: var(--a-muted); font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.tabs a:hover { color: var(--a-text); }
.tabs a[aria-current="page"] { background: var(--a-surface); color: var(--a-text); box-shadow: var(--a-shadow-xs), 0 0 0 1px var(--a-border); }

.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--a-border); color: var(--a-muted); font-size: .86rem; }
.pagination div { display: flex; gap: 6px; }

/* --------------------------------------------------------------------------
   Formulaires et boutons (version gestion : plus compacts, coins moins ronds)
   -------------------------------------------------------------------------- */
body.admin .form-grid { gap: 16px 18px; }
body.admin .field { gap: 6px; }
body.admin .field > label, body.admin .field__label { font-size: .85rem; font-weight: 600; color: var(--a-text); }
body.admin .field__hint { font-size: .8rem; color: var(--a-muted); }
body.admin .input, body.admin .select, body.admin .textarea {
  min-height: 42px; padding: 9px 13px; border: 1px solid var(--a-border-strong); border-radius: var(--a-radius-s);
  background-color: var(--a-surface); font-size: .93rem; box-shadow: var(--a-shadow-xs);
}
body.admin .select { padding-right: 38px; background-position: right 12px center; }
body.admin .textarea { min-height: 110px; }
body.admin .input:hover, body.admin .select:hover, body.admin .textarea:hover { border-color: #BDB8AF; }
body.admin .input:focus, body.admin .select:focus, body.admin .textarea:focus { border-color: var(--a-accent); box-shadow: 0 0 0 4px rgba(31, 85, 201, .14); }
body.admin input[type="date"].input { min-height: 42px; }
body.admin .check input { width: 18px; height: 18px; accent-color: var(--a-accent); }
body.admin .form-actions { gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--a-border); }
@media (max-width: 760px) { body.admin .input, body.admin .select, body.admin .textarea { font-size: 16px; } }

body.admin .btn {
  min-height: 40px; padding: .55em 1.1em; border-radius: var(--a-radius-s);
  font-size: .9rem; font-weight: 620; letter-spacing: 0; white-space: nowrap; box-shadow: var(--a-shadow-xs);
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
}
body.admin .btn::before { display: none; }
body.admin .btn:hover, body.admin .btn:focus-visible { background: var(--btn-hover); color: var(--btn-fg-hover); border-color: var(--btn-bd-hover); }
body.admin .btn:active { transform: scale(.98); }
body.admin .btn--sm { min-height: 34px; padding: .4em .85em; font-size: .84rem; }
body.admin .btn--lg { min-height: 48px; font-size: .98rem; }
body.admin .btn--primary, body.admin .btn--sun { --btn-bg: var(--a-accent); --btn-fg: #fff; --btn-hover: var(--action-hover); --btn-fg-hover: #fff; --btn-bd: transparent; --btn-bd-hover: transparent; box-shadow: 0 1px 2px rgba(22, 63, 158, .25), inset 0 1px 0 rgba(255, 255, 255, .14); }
body.admin .btn--navy, body.admin .btn--dark { --btn-bg: var(--a-text); --btn-fg: #fff; --btn-hover: #2A3A45; --btn-fg-hover: #fff; }
body.admin .btn--ghost, body.admin .btn--outline { --btn-bg: var(--a-surface); --btn-fg: var(--a-text); --btn-bd: var(--a-border-strong); --btn-hover: var(--a-hover); --btn-fg-hover: var(--a-text); --btn-bd-hover: var(--a-border-strong); }
body.admin .btn--danger { --btn-bg: #FEF1EF; --btn-fg: #A1281A; --btn-bd: #F6D2CC; --btn-hover: #FCE2DE; --btn-fg-hover: #8A1C12; --btn-bd-hover: #F0BDB4; box-shadow: none; }
body.admin .btn--whatsapp { --btn-bg: #1FA855; --btn-fg: #fff; --btn-hover: #178544; --btn-fg-hover: #fff; }
body.admin .btn.is-loading::after { border-color: var(--btn-fg); border-right-color: transparent; }
@media (max-width: 760px) { body.admin .btn { white-space: normal; } }

/* --------------------------------------------------------------------------
   Fiches de détail
   -------------------------------------------------------------------------- */
.detail-grid { display: grid; gap: 20px; }
@media (min-width: 1100px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 24px; } .detail-grid > :last-child { position: sticky; top: calc(var(--a-top-h) + 20px); display: grid; gap: 20px; } }
.detail-dl { display: grid; gap: 0; margin: 0; }
.detail-dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--a-border); }
.detail-dl div:last-child { border-bottom: 0; }
.detail-dl dt { color: var(--a-muted); font-size: .88rem; }
.detail-dl dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .detail-dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.status-form { display: grid; gap: 12px; }
.inline-form { display: inline; }

/* Champ image */
.image-field__row { display: grid; gap: 14px; }
@media (min-width: 700px) { .image-field__row { grid-template-columns: 180px 1fr; } }
.image-field__preview { display: grid; place-items: center; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--a-radius-s); background: var(--a-subtle); box-shadow: inset 0 0 0 1px var(--a-border); color: var(--a-faint); }
.image-field__preview img { width: 100%; height: 100%; object-fit: cover; }
.image-field__controls { display: grid; gap: 8px; align-content: start; }
.image-field__upload { justify-self: start; cursor: pointer; }
.check.small span { font-size: .85rem; color: var(--a-muted); }

/* --------------------------------------------------------------------------
   Messages : petites notifications (toasts) et alertes
   -------------------------------------------------------------------------- */
body.admin .notice { margin: 0; padding: 14px 16px; border-radius: var(--a-radius-s); font-size: .92rem; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
body.admin .notice a { font-weight: 650; }
.toasts { position: fixed; z-index: 200; top: calc(var(--a-top-h) + 12px); right: 16px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toasts:empty { display: none; }
.toast { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 44px 14px 14px; border-radius: 12px; background: var(--a-surface); box-shadow: var(--a-shadow-md), inset 0 0 0 1px var(--a-border); color: var(--a-text); font-size: .9rem; font-weight: 520; overflow: hidden; pointer-events: auto; animation: toast-in .5s var(--a-ease) both; }
.toast > .icon { flex: none; margin-top: 1px; }
.toast--success > .icon { color: #2C7A2C; }
.toast--error > .icon { color: var(--erreur); }
.toast--info > .icon { color: var(--ciel-ink); }
.toast__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--a-faint); cursor: pointer; }
.toast__close:hover { background: var(--a-hover); color: var(--a-text); }
.toast__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; transform-origin: left; opacity: .5; }
.toast--success .toast__bar { color: #2C7A2C; }
.toast--info .toast__bar { color: var(--ciel-ink); }
.toast.is-leaving { animation: toast-out .35s var(--a-ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px) scale(.98); } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 760px) {
  .toasts { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; left: 12px; width: auto; }
  @keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes toast-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
}

/* Statuts */
body.admin .badge { padding: 3px 10px 3px 9px; font-size: .78rem; font-weight: 620; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
body.admin .badge::before { width: 6px; height: 6px; }

/* --------------------------------------------------------------------------
   Planning d'occupation
   -------------------------------------------------------------------------- */
.planning { overflow-x: auto; border-radius: var(--a-radius-s); box-shadow: inset 0 0 0 1px var(--a-border); scrollbar-width: thin; }
.planning table { border-collapse: separate; border-spacing: 0; min-width: 900px; width: 100%; font-size: .78rem; }
.planning th, .planning td { height: 38px; min-width: 34px; padding: 0; border-right: 1px solid var(--a-border); border-bottom: 1px solid var(--a-border); text-align: center; }
.planning tr > :last-child { border-right: 0; }
.planning tbody tr:last-child > * { border-bottom: 0; }
.planning th { position: sticky; top: 0; z-index: 1; background: var(--a-subtle); color: var(--a-muted); font-weight: 600; line-height: 1.2; }
.planning th.weekend { background: #EDF1F7; }
.planning th.today-col { background: var(--a-accent-soft); color: var(--a-accent-ink); box-shadow: inset 0 -2px 0 var(--a-accent); }
.planning td.room-name { position: sticky; left: 0; z-index: 2; min-width: 210px; padding: 0 14px; background: var(--a-surface); color: var(--a-text); font-weight: 650; text-align: left; white-space: nowrap; box-shadow: 6px 0 12px -10px rgba(23, 35, 43, .35); }
.planning th:first-child { position: sticky; left: 0; z-index: 3; }
.planning td.room-name .sub { display: block; font-weight: 450; color: var(--a-muted); font-size: .74rem; }
.planning td.cell a, .planning td.cell span { display: block; height: 100%; line-height: 38px; font-weight: 700; text-decoration: none; transition: filter .15s; }
.planning td.cell a:hover { filter: brightness(.95); }
.planning .c0 { color: var(--a-border-strong); }
.planning .c1 { background: #E3F3FA; color: #0A5468; }
.planning .c2 { background: #FDF1D8; color: #8A4B00; }
.planning .c3 { background: var(--a-accent-soft); color: var(--a-accent-ink); }
.planning td.weekend { background-color: #F8FAFC; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--a-muted); font-size: .82rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }

/* --------------------------------------------------------------------------
   Barre d'onglets du téléphone
   -------------------------------------------------------------------------- */
.admin-tabbar { display: none; }
@media (max-width: 760px) {
  body.admin { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .admin-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
    border-top: 1px solid var(--a-border);
  }
  .admin-tabbar a, .admin-tabbar button {
    display: grid; justify-items: center; gap: 3px; min-height: 52px; padding: 6px 2px 4px; border: 0; border-radius: 12px;
    background: transparent; color: var(--a-muted); font: 600 .7rem/1.1 var(--font); text-decoration: none; cursor: pointer;
    transition: color .2s, background-color .2s;
  }
  .admin-tabbar__icon { position: relative; display: grid; place-items: center; width: 44px; height: 28px; border-radius: 14px; transition: background-color .3s var(--a-ease), transform .3s var(--a-ease); }
  .admin-tabbar__icon em { position: absolute; top: -4px; right: 2px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--a-accent); color: #fff; font-style: normal; font-size: .62rem; font-weight: 700; box-shadow: 0 0 0 2px #fff; }
  .admin-tabbar [aria-current="page"], .admin-tabbar .is-current { color: var(--a-accent-ink); }
  .admin-tabbar [aria-current="page"] .admin-tabbar__icon, .admin-tabbar .is-current .admin-tabbar__icon { background: var(--a-accent-soft); color: var(--a-accent); }
  .admin-tabbar a:active .admin-tabbar__icon, .admin-tabbar button:active .admin-tabbar__icon { transform: scale(.9); }
  .admin-top { gap: 10px; min-height: 60px; }
  .admin-top__date { font-size: .74rem; }
  body.admin .admin-top__new { width: 40px; min-height: 40px; height: 40px; padding: 0; flex: none; border-radius: 12px; }
  .admin-top__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .avatar--top { display: none; }
}

/* --------------------------------------------------------------------------
   Connexion
   -------------------------------------------------------------------------- */
body.admin-login { background: var(--a-bg); }
.login-page { display: grid; min-height: 100vh; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .login-page { grid-template-columns: minmax(0, 1.1fr) minmax(440px, 1fr); } .login-page--single { grid-template-columns: minmax(0, 1fr); } }
.login-visual { position: relative; isolation: isolate; display: none; overflow: hidden; padding: 48px; background: var(--nuit); color: #fff; }
@media (min-width: 960px) { .login-visual { display: flex; flex-direction: column; justify-content: flex-end; } }
.login-visual img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.login-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 24, 33, .15) 0%, rgba(4, 24, 33, .35) 45%, rgba(4, 24, 33, .9) 100%); }
.login-visual__sun { position: absolute; left: 48px; bottom: 236px; width: 120px; height: 60px; border-radius: 120px 120px 0 0; background: var(--jaune); box-shadow: 0 0 60px 10px rgba(242, 165, 22, .35); }
body.admin .login-visual h2 { margin: 0 0 10px; max-width: 16ch; color: #fff; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 720;  letter-spacing: -.035em; line-height: 1.05; }
.login-visual p { margin: 0; max-width: 42ch; color: rgba(255, 255, 255, .82); }
.login-main { display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); background: radial-gradient(80% 50% at 50% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%), var(--a-bg); }
.login-card { width: min(400px, 100%); padding: clamp(26px, 4vw, 40px); border-radius: 20px; background: var(--a-surface); box-shadow: var(--a-shadow-md), inset 0 0 0 1px var(--a-border); }
@media (prefers-reduced-motion: no-preference) { .login-card { animation: a-rise .7s var(--a-ease) both; } }
.login-card__logo { display: block; width: auto; height: 46px; margin: 0 0 26px; }
.login-card h1 { margin: 0 0 6px; font-size: 1.45rem; font-weight: 680; }
.login-card__intro { margin: 0 0 22px; color: var(--a-muted); font-size: .92rem; }
.login-card .notice { margin-bottom: 16px; }
.login-card .btn { margin-top: 22px; }
.login-card__back { margin: 18px 0 0; text-align: center; font-size: .86rem; }
.login-card__back a { color: var(--a-muted); text-decoration: none; }
.login-card__back a:hover { color: var(--a-accent-ink); }
.password-field { position: relative; }
.password-field .input { padding-right: 48px; }
.password-field__toggle { position: absolute; right: 4px; top: 50%; display: grid; place-items: center; width: 40px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--a-faint); cursor: pointer; transform: translateY(-50%); }
.password-field__toggle:hover { color: var(--a-text); background: var(--a-hover); }

@media (prefers-reduced-motion: reduce) {
  .admin-side, .admin-backdrop { transition: none; }
}
@media print {
  .admin-side, .admin-top, .admin-tabbar, .toasts, .admin-backdrop { display: none !important; }
  .admin-shell { display: block; }
  body.admin { background: #fff; padding: 0; }
}

/* --------------------------------------------------------------------------
   Éléments propres à l'administration IJADDI
   -------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--nouveau { background: #FEF4D6; color: #7A5200; }
.badge--en_cours { background: #E9EFFC; color: #1C46A8; }
.badge--traite { background: #E7F4E2; color: #22561A; }
.badge--on { background: #E7F4E2; color: #22561A; }
.badge--off { background: #EEF2F8; color: #56637D; }
.badge--don { background: #FDECEA; color: #9C2416; }
.badge--partenariat { background: #E9EFFC; color: #1C46A8; }
.badge--benevolat { background: #E7F4E2; color: #22561A; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ciel)); vertical-align: middle; }
.admin-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--a-subtle); box-shadow: inset 0 0 0 1px var(--a-border); font-size: .76rem; font-weight: 600; white-space: nowrap; }
.admin-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

.row-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-title strong { display: block; font-weight: 650; }
.row-title small { display: block; color: var(--a-muted); font-size: .8rem; line-height: 1.4; }
.row-thumb { flex: none; width: 56px; height: 42px; overflow: hidden; border-radius: 8px; background: var(--a-subtle); box-shadow: inset 0 0 0 1px var(--a-border); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c, var(--ciel)); color: var(--c-ink, #fff); }
tr.is-off td { opacity: .55; }
.toggle-pill { min-height: 30px; padding: 3px 12px; border: 0; border-radius: 999px; background: #EEF2F8; color: #56637D; font: 650 .78rem/1 var(--font); cursor: pointer; transition: background-color .2s, color .2s; }
.toggle-pill.is-on { background: #E7F4E2; color: #22561A; }
.toggle-pill:hover { box-shadow: inset 0 0 0 1px currentColor; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--a-muted); cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--a-hover); color: var(--a-text); }
.icon-btn--danger:hover { background: #FDECEA; color: #9C2416; }
.row-actions form { display: inline; margin: 0; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.toolbar p { margin: 0; color: var(--a-muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; color: var(--a-muted); }
.back-link:hover { color: var(--a-text); }

.form-card-admin { max-width: 980px; }
.fieldset { display: grid; gap: 18px; padding: 20px; border-radius: var(--a-radius); background: var(--a-surface); box-shadow: var(--a-shadow-xs), inset 0 0 0 1px var(--a-border); }
.fieldset + .fieldset { margin-top: 16px; }
.fieldset h2 { margin: 0; font-size: 1rem; }
.admin-form { display: grid; gap: 18px; }
@media (min-width: 760px) { .admin-form--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .admin-form--2 .span-all { grid-column: 1 / -1; } }
.color-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.color-choice { position: relative; }
.color-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.color-choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--a-surface); box-shadow: inset 0 0 0 1.5px var(--a-border-strong); font-size: .86rem; font-weight: 600; }
.color-choice span i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.color-choice input:checked + span { box-shadow: inset 0 0 0 2px var(--a-text); }
.color-choice input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 2px; }
.image-field { display: grid; gap: 12px; }
@media (min-width: 700px) { .image-field { grid-template-columns: 180px minmax(0, 1fr); align-items: start; } }
.image-field__preview { display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--a-radius-s); background: var(--a-subtle); box-shadow: inset 0 0 0 1px var(--a-border); color: var(--a-faint); }
.image-field__preview img { width: 100%; height: 100%; object-fit: cover; }
.image-field__controls { display: grid; gap: 8px; }
.file-input { font-size: .88rem; }
.hint-box { padding: 12px 14px; border-radius: var(--a-radius-s); background: var(--a-subtle); box-shadow: inset 0 0 0 1px var(--a-border); color: var(--a-muted); font-size: .86rem; }

.message-view { display: grid; gap: 16px; }
.message-view__text { white-space: pre-wrap; font-size: 1rem; line-height: 1.65; }
.list-plain { list-style: none; display: grid; gap: 0; }
.list-plain li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--a-border); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain a { font-weight: 650; text-decoration: none; }
.list-plain a:hover { color: var(--a-accent-ink); }
.list-plain small { color: var(--a-muted); }
.unread-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--action); vertical-align: middle; }
.quick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.quick a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--a-radius-s); background: var(--a-surface); box-shadow: var(--a-shadow-xs), inset 0 0 0 1px var(--a-border); font-weight: 650; text-decoration: none; transition: transform .3s var(--a-ease), box-shadow .3s; }
.quick a:hover { transform: translateY(-2px); box-shadow: var(--a-shadow-md), inset 0 0 0 1px var(--a-border); }
.quick .row-icon { width: 36px; height: 36px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 16px 18px; border-radius: var(--a-radius); background: #FEF4D6; color: #6B4700; font-weight: 550; }
.banner .btn { flex: none; }
.login-visual__ring { position: absolute; left: 48px; bottom: 230px; width: 130px; height: 130px; color: var(--ciel); }
.login-card__brand { margin-bottom: 26px; }
.login-card__brand .brand__logo { width: 52px; height: 52px; }

.form-grid--single { grid-template-columns: minmax(0, 1fr) !important; }
.toolbar > * { min-width: 0; max-width: 100%; }
.toolbar .row-actions { flex-wrap: wrap; }
.toolbar .tabs { max-width: 100%; }
