/* ============================================================
   BarberBook — Design System
   Palette: verde lusso + crema + oro
   Font: Playfair Display + DM Sans (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Brand colours */
  --green:       #2d4a3e;
  --green-mid:   #3d6456;
  --green-lt:    #e8ede9;
  --green-pale:  #f0f4f1;
  --cream:       #f5f0e8;
  --cream-dark:  #ede7d8;
  --gold:        #b8943f;
  --gold-lt:     #f0e4c0;
  --gold-dark:   #8a6a28;

  /* Semantic */
  --danger:      #c0392b;
  --danger-lt:   #fdecea;
  --success:     #27694e;
  --success-lt:  #e8f5ef;
  --warning:     #e67e22;
  --warning-lt:  #fef3e2;
  --info:        #2980b9;
  --info-lt:     #eaf4fb;

  /* Neutrals */
  --white:       #ffffff;
  --gray-50:     #f9f9f8;
  --gray-100:    #f0efec;
  --gray-200:    #e5e3dd;
  --gray-300:    #ccc9c0;
  --gray-400:    #a8a49a;
  --gray-500:    #7a756a;
  --gray-600:    #5a5650;
  --gray-700:    #3d3a35;
  --gray-800:    #252220;
  --gray-900:    #111;

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;

  /* Sizing */
  --sidebar-w:   260px;
  --topbar-h:    64px;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 16px rgba(0,0,0,.1);
  --shadow-md:   0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.15);

  /* Transitions */
  --ease:        cubic-bezier(.4,0,.2,1);
  --dur:         200ms;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--green);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { color: var(--gray-600); }

/* ── Layout Helpers ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-2  { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.w-full { width: 100%; }

/* ── AUTH — Split Screen ───────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-deco {
  background: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-deco::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(184,148,63,.25) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(61,100,86,.5) 0%, transparent 55%);
}
.auth-deco-content { position: relative; z-index: 1; text-align: center; color: var(--white); }
.auth-deco-icon {
  font-size: 5rem;
  display: block;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 24px rgba(184,148,63,.5));
}
.auth-deco-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
  letter-spacing: -.5px;
}
.auth-deco-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}
.auth-deco-ornament {
  margin-top: 2.5rem;
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 8px;
  opacity: .7;
}

.auth-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: var(--white);
  min-height: 100vh;
}
.auth-box {
  width: 100%;
  max-width: 420px;
}
.auth-box-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--green);
  margin-bottom: .25rem;
}
.auth-box-sub {
  color: var(--gray-500);
  font-size: .9rem;
  margin-bottom: 2rem;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1;
  padding: .75rem;
  background: none;
  border: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
  position: relative;
}
.auth-tab::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.auth-tab.active { color: var(--green); }
.auth-tab.active::after { transform: scaleX(1); }

.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ── PENDING page ──────────────────────────────────────── */
.pending-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 2rem;
}
.pending-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.pending-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1.5rem;
}
.pending-card h1 {
  font-size: 1.6rem;
  margin-bottom: .75rem;
}
.pending-card p {
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--warning-lt);
  color: var(--warning);
  border-radius: 999px;
  padding: .4rem 1.2rem;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(230,126,34,.2);
}

/* ── ADMIN LAYOUT ──────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--cream);
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--green);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-brand-icon {
  width: 42px; height: 42px;
  background: var(--gold);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.sidebar-brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.sidebar-brand-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 1.25rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.sidebar-link:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.sidebar-link.active {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(184,148,63,.4);
}
.sidebar-icon { font-size: 1.1rem; width: 22px; text-align: center; }

.sidebar-footer {
  padding: 1rem .75rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-radius: var(--radius);
  margin-bottom: .5rem;
}
.sidebar-user-avatar {
  width: 36px; height: 36px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.sidebar-user-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  transition: all var(--dur) var(--ease);
  width: 100%;
}
.sidebar-logout:hover {
  background: rgba(192,57,43,.25);
  color: #ff8a80;
}

/* Admin main content */
.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-header {
  background: var(--white);
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-header-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--green);
}
.admin-header-sub {
  font-size: .85rem;
  color: var(--gray-400);
  margin-top: .1rem;
}
.admin-content {
  padding: 2rem;
  flex: 1;
}

/* ── TOPBAR (cliente) ──────────────────────────────────── */
.topbar {
  background: var(--green);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
  gap: 1rem;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  flex: 1;
  min-width: 0;
}
.topbar-brand-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.topbar-brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.topbar-user-name {
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.topbar-avatar {
  width: 36px; height: 36px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.topbar-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.topbar-logout {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-logout:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

/* Client page */
.client-wrap {
  max-width: 1140px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.client-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

/* Card che contiene il trend chart: NON deve avere overflow:hidden
   perché i valori sopra le barre (position: absolute; top: -24px) vengono tagliati */
.card-overflow-visible {
  overflow: visible !important;
}


.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--green);
}
.card-title-sub {
  font-size: .8rem;
  color: var(--gray-400);
  font-family: var(--font-sans);
  font-weight: 400;
  margin-top: .15rem;
}
.card-body {
  padding: 1.5rem;
}
.card-body-sm { padding: 1rem 1.5rem; }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .625rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.btn-sm {
  padding: .4rem .9rem;
  font-size: .8rem;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover:not(:disabled) {
  background: var(--green-mid);
  border-color: var(--green-mid);
  box-shadow: 0 4px 16px rgba(45,74,62,.3);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover:not(:disabled) {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 16px rgba(184,148,63,.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover:not(:disabled) {
  background: var(--green);
  color: var(--white);
}
.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: #a93226;
  box-shadow: 0 4px 16px rgba(192,57,43,.3);
  transform: translateY(-1px);
}
.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn-success:hover:not(:disabled) {
  background: #1e5a41;
  box-shadow: 0 4px 16px rgba(39,105,78,.3);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
  color: var(--gray-800);
}
.btn-warning {
  background: var(--warning);
  color: var(--white);
  border-color: var(--warning);
}
.btn-warning:hover:not(:disabled) {
  background: #d35400;
  box-shadow: 0 4px 16px rgba(230,126,34,.3);
  transform: translateY(-1px);
}

/* ── FORM ELEMENTS ─────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .4rem;
  letter-spacing: .2px;
}
.form-control {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,74,62,.12);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:disabled {
  background: var(--gray-100);
  color: var(--gray-400);
}
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-hint {
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: .3rem;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}

/* ── BADGES ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before {
  content: '●';
  font-size: .5rem;
}
.badge-warning  { background: var(--warning-lt);  color: var(--warning);  border: 1px solid rgba(230,126,34,.2); }
.badge-success  { background: var(--success-lt);  color: var(--success);  border: 1px solid rgba(39,105,78,.2); }
.badge-danger   { background: var(--danger-lt);   color: var(--danger);   border: 1px solid rgba(192,57,43,.2); }
.badge-info     { background: var(--info-lt);     color: var(--info);     border: 1px solid rgba(41,128,185,.2); }
.badge-gold     { background: var(--gold-lt);     color: var(--gold-dark); border: 1px solid rgba(184,148,63,.2); }
.badge-gray     { background: var(--gray-100);    color: var(--gray-500);  border: 1px solid var(--gray-200); }

/* ── ALERTS ────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  border-left: 3px solid;
  margin-bottom: 1.25rem;
  animation: slideDown .25s var(--ease);
}
.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.alert-error   { background: var(--danger-lt);  color: var(--danger);  border-color: var(--danger); }
.alert-success { background: var(--success-lt); color: var(--success); border-color: var(--success); }
.alert-warning { background: var(--warning-lt); color: var(--warning); border-color: var(--warning); }
.alert-info    { background: var(--info-lt);    color: var(--info);    border-color: var(--info); }

.dashboard-warning {
  display: flex;
  align-items: center;
  gap: .7rem;
  border-left-width: 4px;
  box-shadow: var(--shadow-sm);
}
.dashboard-warning-text {
  flex: 1;
  font-weight: 500;
  line-height: 1.45;
}
.dashboard-warning-action {
  margin-left: auto;
  white-space: nowrap;
  border: 1px solid currentColor;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TABLE ─────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
thead th {
  background: var(--green);
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .9rem 1rem;
  text-align: left;
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--dur) var(--ease);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }
td {
  padding: .85rem 1rem;
  color: var(--gray-700);
  vertical-align: middle;
}
.td-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── STATS GRID ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon-green   { background: var(--green-lt); }
.stat-icon-gold    { background: var(--gold-lt); }
.stat-icon-warning { background: var(--warning-lt); }
.stat-icon-info    { background: var(--info-lt); }
.stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.stat-card-loading .stat-icon {
  opacity: .78;
}
.stat-skeleton {
  height: 1.7rem;
  width: 78px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--gray-100) 20%, var(--gray-50) 45%, var(--gray-100) 70%);
  background-size: 220% 100%;
  animation: statShimmer 1.35s linear infinite;
}
.stat-label {
  font-size: .8rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: .2rem;
}
.stat-meta {
  margin-top: .3rem;
  font-size: .74rem;
  color: var(--gray-500);
}

.admin-quick-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.pending-count-pill {
  background: var(--gold);
  border-radius: 999px;
  padding: .05rem .4rem;
  font-size: .75rem;
}

.admin-grid-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── TREND CHART ────────────────────────────────────────── */
/* Wrapper contenente l'intero chart inclusi i label dei giorni */
.trend-chart-wrap {
  padding: 2.5rem 1.5rem 1rem;  /* top generoso per i valori badge sopra le barre */
  overflow: visible;             /* NON hidden: i badge .trend-bar-val sono outside */
  position: relative;
}

/* Area barre (flexbox orizzontale) con altezza fissa */
.trend-bars-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 160px;               /* altezza fissa: height% delle barre funziona */
  position: relative;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0;
  overflow: visible;
}

.trend-grid-lines {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.trend-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(122, 117, 106, .2);
}

.trend-grid-line em {
  position: absolute;
  left: .2rem;
  top: -9px;
  font-style: normal;
  font-size: .62rem;
  line-height: 1;
  color: var(--gray-400);
  background: rgba(255, 255, 255, .9);
  padding: 0 .15rem;
  border-radius: 2px;
}

.trend-grid-100 { top: 0; }
.trend-grid-75  { top: 25%; }
.trend-grid-50  { top: 50%; }
.trend-grid-25  { top: 75%; }

/* Ogni colonna (barra + label) */
.trend-col {
  flex: 1;
  min-width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;           /* occupa tutta l'altezza del .trend-bars-area */
  position: relative;
  z-index: 1;
}

/* Spazio flessibile sopra la barra (spinge la barra in basso) */
.trend-col-spacer { flex: 1; }

/* La barra vera e propria — altezza impostata via style attribute in PHP */
.trend-bar {
  width: 65%;
  max-width: 36px;
  min-width: 16px;
  background: linear-gradient(180deg, var(--gold-lt) 0%, var(--gold) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  position: relative;
  display: flex;
  justify-content: center;
  align-self: flex-end;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.1);
  transition: opacity .2s;
}

.trend-bar:hover { opacity: .85; }

.trend-bar.is-zero {
  background: var(--gray-200);
  min-height: 4px;
}

/* Badge numero sopra la barra */
.trend-bar-val {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .72rem;
  font-weight: 700;
  color: var(--green);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  line-height: 1;
  padding: .18rem .4rem;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Label data sotto l'area barre */
.trend-day-label {
  font-size: .7rem;
  color: var(--gray-400);
  margin-top: .5rem;
  white-space: nowrap;
  text-align: center;
}

/* Labels row sotto il .trend-bars-area (flex row) */
.trend-labels-row {
  display: flex;
  gap: 8px;
  padding: 0;
}

.trend-labels-row .trend-col-label {
  flex: 1;
  min-width: 40px;
  text-align: center;
  font-size: .7rem;
  color: var(--gray-400);
  white-space: nowrap;
  padding-top: .4rem;
}

@media (max-width: 640px) {
  .trend-bars-area { height: 120px; gap: 4px; }
  .trend-col { min-width: 34px; }
  .trend-labels-row .trend-col-label { min-width: 34px; font-size: .62rem; }
  .trend-bar-val { font-size: .65rem; top: -20px; }
  .trend-chart-wrap { padding: 2rem 1rem .75rem; }
}

.appt-date-label {
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.appt-cell-muted {
  color: var(--gray-500);
  font-size: .85rem;
}

.appt-note-cell {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muted-dash {
  color: var(--gray-300);
}

@keyframes statShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -30% 0; }
}

/* ── CALENDAR ──────────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.cal-nav-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--green);
}
.cal-nav-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--gray-500);
  transition: all var(--dur) var(--ease);
}
.cal-nav-btn:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.cal-weekheaders {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: .5rem 1.5rem 0;
  gap: 4px;
}
.cal-wh {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--gray-400);
  padding: .4rem 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: .75rem 1.5rem 1.5rem;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  cursor: default;
  transition: all var(--dur) var(--ease);
  border: 2px solid transparent;
  position: relative;
}
.cal-day.empty { background: transparent; }
.cal-day.past  { color: var(--gray-300); }
.cal-day.closed {
  color: var(--gray-300);
  background: var(--gray-50);
}
.cal-day.blocked {
  background: var(--danger-lt);
  color: var(--danger);
}
.cal-day.blocked::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--danger);
}
.cal-day.full {
  background: var(--gray-100);
  color: var(--gray-400);
  text-decoration: line-through;
}
.cal-day.available {
  background: var(--green-pale);
  color: var(--green);
  cursor: pointer;
  font-weight: 600;
}
.cal-day.available:hover {
  background: var(--green);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(45,74,62,.25);
}
.cal-day.selected {
  background: var(--green) !important;
  color: var(--white) !important;
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(45,74,62,.35);
  transform: scale(1.08);
}
.cal-day.today {
  border-color: var(--gold);
  font-weight: 700;
}
.cal-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1.5rem 1rem;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  color: var(--gray-500);
}
.cal-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.cal-legend-dot.available { background: var(--green); }
.cal-legend-dot.blocked   { background: var(--danger); }
.cal-legend-dot.full      { background: var(--gray-300); }
.cal-legend-dot.closed    { background: var(--gray-200); border: 1px solid var(--gray-300); }

/* ── SLOTS ─────────────────────────────────────────────── */
.slots-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.slots-header-date {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--green);
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  padding: 1.25rem 1.5rem;
}
.slot-btn {
  padding: .55rem .5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: .85rem;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: center;
}
.slot-btn:hover:not(.slot-booked):not(.slot-selected) {
  background: var(--green-pale);
  border-color: var(--green);
}
.slot-btn.slot-booked {
  background: var(--gray-100);
  color: var(--gray-300);
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: var(--gray-100);
}
.slot-btn.slot-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(184,148,63,.3);
}

/* Confirm form */
.confirm-form {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  background: var(--green-pale);
  animation: slideDown .2s var(--ease);
}
.confirm-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--gray-700);
}
.confirm-summary strong { color: var(--green); }

/* ── APPOINTMENTS LIST ─────────────────────────────────── */
.appt-list { display: flex; flex-direction: column; gap: .75rem; }
.appt-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  transition: all var(--dur) var(--ease);
}
.appt-item:hover { box-shadow: var(--shadow-sm); border-color: var(--green-lt); }
.appt-item.past { opacity: .6; }
.appt-date-box {
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}
.appt-date-day {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.appt-date-mon {
  font-size: .65rem;
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: .5px;
}
.appt-sep {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
  flex-shrink: 0;
}
.appt-info { flex: 1; }
.appt-time { font-weight: 600; font-size: .9rem; color: var(--gray-800); }
.appt-note { font-size: .78rem; color: var(--gray-400); margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.appt-actions { display: flex; gap: .4rem; flex-shrink: 0; }

/* ── FILTERS / TABS ────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-tab {
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.filter-tab:hover { border-color: var(--green); color: var(--green); }
.filter-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.filter-tab .count {
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .05rem .45rem;
  font-size: .72rem;
}
.filter-tab:not(.active) .count {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* ── AVAILABILITY FORM ─────────────────────────────────── */
.avail-day-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 120px auto;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--dur) var(--ease);
}
.avail-day-row:last-child { border-bottom: none; }
.avail-day-row:hover { background: var(--gray-50); }
.avail-day-name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.avail-day-row.disabled * { opacity: .4; pointer-events: none; }
.avail-day-row.disabled .day-toggle, .avail-day-row.disabled .day-toggle * { opacity: 1; pointer-events: all; }

/* Blocked dates */
.blocked-list { display: flex; flex-direction: column; gap: .6rem; }
.blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: var(--danger-lt);
  border: 1px solid rgba(192,57,43,.15);
}
.blocked-item-info { display: flex; align-items: center; gap: .75rem; }
.blocked-item-date { font-weight: 700; color: var(--danger); font-size: .9rem; }
.blocked-item-reason { font-size: .82rem; color: var(--gray-500); }

/* ── SPINNER ───────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }
.spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  color: var(--gray-400);
  font-size: .9rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--gray-400);
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.empty-state-text { font-size: .9rem; }

/* ── SEARCH & FILTER BAR ───────────────────────────────── */
.filter-bar {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-bar .form-control {
  max-width: 220px;
}

/* ── MISC ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 1.5rem 0;
}
.section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.text-muted { color: var(--gray-400) !important; }
.text-green { color: var(--green) !important; }
.text-gold  { color: var(--gold) !important; }
.text-danger { color: var(--danger) !important; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-brand { padding: 1rem; }
  .sidebar-nav {
    flex-direction: row;
    padding: .5rem 1rem;
    flex-wrap: wrap;
    order: 3;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .sidebar-link span:last-child { display: none; }
  .sidebar-link { padding: .6rem .75rem; }
  .sidebar-footer { display: none; }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .avail-day-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    position: relative;
    z-index: 1;
  }
  .avail-day-name { 
    grid-column: 1 / -1; 
  }
}

@media (max-width: 768px) {
  .client-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-deco { display: none; }
  .auth-side { padding: 2rem 1.25rem; min-height: 100vh; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 1rem; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .form-control { max-width: 100%; }
  .topbar { padding: 0 .75rem; }

  /* Topbar cliente mobile: nasconde il nome testo e il separatore per risparmiare spazio.
     Rimane visibile l'avatar con iniziale e il bottone logout semplificato */
  .topbar-user-name { display: none; }
  .topbar-sep { display: none; }

  /* Il brand name si riduce ma rimane visibile fino a 480px */
  .topbar-brand-name {
    font-size: 1rem;
  }

  /* Il link profilo nell'area utente: niente gap extra */
  .topbar-user-link {
    gap: 0 !important;
  }

  .dashboard-warning {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .dashboard-warning-action {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .cal-grid { gap: 2px; padding: .5rem; }
  .cal-day { font-size: .8rem; }
  .appt-item { flex-wrap: wrap; }
  
  /* Very small screens: reduce padding */
  .admin-content { padding: .75rem; }
  /* NOTA: non mettere padding su .card direttamente — il padding è in .card-body e .card-header */
  .form-row { gap: .5rem; }
  
  /* Modal adjustments for very small screens */
  .modal-box { max-height: 95vh; }
  .modal-header { padding: 1rem; }
  .modal-body { padding: 1rem; }
  .modal-footer { padding: .75rem; gap: .5rem; }
  
  /* Stat cards text smaller on very small */
  .stat-value { font-size: 1.2rem; }
  .stat-label { font-size: .65rem; }
  
  /* Table wrapping on very small */
  .table-mobile-cards tbody td {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .table-mobile-cards tbody td::before {
    margin-bottom: .25rem;
    min-width: 0;
    padding-right: 0;
  }

  /* Topbar cliente su schermi molto piccoli: brand name nascosto,
     logout ridotto a sola icona */
  .topbar-brand-name { display: none; }
  .topbar-logout-label { display: none; } /* nasconde testo "Esci", rimane solo ⏻ */
  .topbar-avatar { width: 32px; height: 32px; font-size: .8rem; }
}

/* Screens below 375px (very small phones) */
@media (max-width: 375px) {
  .sidebar-nav a span { font-size: .52rem !important; }
  .stats-grid { gap: .5rem; }
  .card { border-radius: var(--radius); }
  
  /* Ensure footer nav doesn't take too much space */
  .sidebar { height: 65px; }
  body, .admin-layout, .admin-content { padding-bottom: 65px !important; }
}

/* ── CALENDAR: stato unavailable (oltre 30gg) ──────────── */
.cal-day.unavailable {
  color: var(--gray-300);
  background: transparent;
  opacity: .45;
}

/* ── MODAL OVERLAY ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn .2s var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  animation: modalSlideUp .25s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green);
}
.modal-close {
  width: 32px; height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: .9rem;
  color: var(--gray-500);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.modal-close:hover {
  background: var(--danger-lt);
  color: var(--danger);
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  background: var(--gray-50);
}

/* ── MODAL CONFERMA PRENOTAZIONE (pre-submit) ───────────── */
.confirm-modal-info {
  background: var(--green-pale);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .95rem;
}
.confirm-modal-info .confirm-date {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: .2rem;
}
.confirm-modal-info .confirm-time {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1rem;
}
.confirm-modal-notice {
  font-size: .82rem;
  color: var(--gray-500);
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin-top: .75rem;
  line-height: 1.5;
}

/* ── BANNER NOTIFICHE ──────────────────────────────────── */
.notif-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(45,74,62,.25);
  animation: slideDown .3s var(--ease);
  flex-wrap: wrap;
}
.notif-banner-text {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 1;
  min-width: 0;
}
.notif-banner-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.notif-banner-msg {
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
}
.notif-banner-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.notif-banner-link {
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  padding: .4rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.notif-banner-link:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}
.notif-banner-close {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: .35rem .6rem;
  cursor: pointer;
  font-size: .8rem;
  transition: all var(--dur) var(--ease);
}
.notif-banner-close:hover {
  background: rgba(255,255,255,.25);
}

/* ── BANNER BENVENUTO ──────────────────────────────────── */
.welcome-banner {
  background: linear-gradient(135deg, var(--gold-lt) 0%, #fdf8ee 100%);
  border: 1.5px solid rgba(184,148,63,.3);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: slideDown .3s var(--ease);
}
.welcome-banner-content {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  flex: 1;
}
.welcome-banner-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.welcome-banner-text {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.welcome-banner-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1rem;
  padding: .1rem .3rem;
  border-radius: 4px;
  transition: all var(--dur) var(--ease);
  flex-shrink: 0;
}
.welcome-banner-close:hover {
  color: var(--gray-700);
  background: var(--gray-100);
}

/* ── WAITLIST BUTTON ───────────────────────────────────── */
.waitlist-section {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  animation: slideDown .2s var(--ease);
}
.waitlist-section-text {
  font-size: .85rem;
  color: var(--gray-500);
}
.btn-waitlist {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-sans);
}
.btn-waitlist:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,74,62,.25);
}
.btn-waitlist.in-list {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn-waitlist.in-list:hover {
  background: var(--danger-lt);
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: none;
}

/* ── ERRORE LAST-MINUTE ────────────────────────────────── */
.alert-lastminute {
  background: var(--warning-lt);
  border-left: 3px solid var(--warning);
  color: var(--warning);
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.5rem;
  animation: slideDown .25s var(--ease);
}

/* ── TOGGLE TIPO PRENOTAZIONE ──────────────────────────── */
.toggle-tipo {
  display: flex;
  background: var(--cream);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 1.2rem;
  gap: 3px;
}
.toggle-tipo button {
  flex: 1;
  padding: .5rem;
  border: none;
  border-radius: calc(var(--radius) - 3px);
  background: transparent;
  color: var(--gray-500);
  font-family: var(--font-sans);
  font-size: .88rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-weight: 500;
}
.toggle-tipo button.active {
  background: var(--white);
  color: var(--green);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.toggle-tipo button:hover:not(.active) {
  color: var(--gray-700);
  background: rgba(255,255,255,.6);
}

/* ── BADGE OSPITE & TELEFONO GUEST ─────────────────────── */
.badge-guest {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--gray-600);
  font-size: .7rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-weight: 600;
  margin-left: .4rem;
  vertical-align: middle;
  border: 1px solid var(--gray-200);
}
.guest-phone {
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: .15rem;
}

/* ============================================================
   SISTEMA TEMI — sovrascrive TUTTE le variabili necessarie
   ============================================================ */

/* ─── TEMA BARBERSHOP (rosso, bianco, azzurro) ───────────── */
body.tema-barbershop {
  --green:      #1a3a5c;
  --green-mid:  #1e4d7a;
  --green-lt:   #e8f0f8;
  --cream:      #ffffff;
  --cream-dk:   #dde6f0;
  --gold:       #c0392b;
  --gold-lt:    #fdecea;
  --text:       #1a2530;
  --text-mid:   #3a4a58;
  --text-lt:    #7a8a98;
  --white:      #ffffff;
  --success:    #1e6b45;
  --success-lt: #e6f4ee;
  --danger:     #c0392b;
  --danger-lt:  #fdecea;
  --warning:    #a67c00;
  --warning-lt: #fef8e1;
}

/* ─── TEMA DARK ──────────────────────────────────────────── */
body.tema-dark {
  --green:      #1a1a2e;
  --green-mid:  #16213e;
  --green-lt:   #1e2d4a;
  --cream:      #1e1e2e;
  --cream-dk:   #2a2a3e;
  --gold:       #e94560;
  --gold-lt:    #3a1a24;
  --text:       #e8e8f0;
  --text-mid:   #b0b0c8;
  --text-lt:    #707088;
  --white:      #252538;
  --success:    #2ecc71;
  --success-lt: #0d2e1a;
  --danger:     #e94560;
  --danger-lt:  #2e0d16;
  --warning:    #f39c12;
  --warning-lt: #2e2000;
}

/* ─── TEMA ORO-NERO ──────────────────────────────────────── */
body.tema-oro-nero {
  --green:      #1a1008;
  --green-mid:  #2a1f0a;
  --green-lt:   #f5ead0;
  --cream:      #faf5ea;
  --cream-dk:   #f0e8d0;
  --gold:       #c9a84c;
  --gold-lt:    #fdf3d8;
  --text:       #1a1008;
  --text-mid:   #3a2e18;
  --text-lt:    #7a6a48;
  --white:      #ffffff;
  --success:    #2e6b30;
  --success-lt: #e8f5e8;
  --danger:     #c0392b;
  --danger-lt:  #fdecea;
  --warning:    #a67c00;
  --warning-lt: #fef8e1;
}

/* ─── TEMA VINTAGE ───────────────────────────────────────── */
body.tema-vintage {
  --green:      #4a3728;
  --green-mid:  #6b5040;
  --green-lt:   #f5ede0;
  --cream:      #fdf8f0;
  --cream-dk:   #ede0cc;
  --gold:       #c17f3a;
  --gold-lt:    #fdf0e0;
  --text:       #2a1e14;
  --text-mid:   #4a3828;
  --text-lt:    #8a7060;
  --white:      #ffffff;
  --success:    #3a6b30;
  --success-lt: #eaf5e8;
  --danger:     #b03020;
  --danger-lt:  #fdecea;
  --warning:    #a06800;
  --warning-lt: #fef5e0;
}

/* ============================================================
   DARK MODE — fix specifici per componenti che non ereditano
   le variabili CSS correttamente
   ============================================================ */

/* Topbar */
body.tema-dark .topbar {
  background: var(--green);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Card */
body.tema-dark .card {
  background: var(--white);
  border-color: var(--cream-dk);
}

/* Form controls */
body.tema-dark .form-control {
  background: var(--cream);
  border-color: var(--cream-dk);
  color: var(--text);
}

body.tema-dark .form-control::placeholder {
  color: var(--text-lt);
}

body.tema-dark .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233,69,96,.15);
}

/* Tabelle */
body.tema-dark table {
  background: var(--white);
}

body.tema-dark tbody tr {
  border-bottom-color: var(--cream-dk);
}

body.tema-dark tbody tr:hover {
  background: var(--cream);
}

body.tema-dark thead {
  background: var(--green);
}

/* Sidebar */
body.tema-dark .sidebar {
  background: var(--green);
  border-top-color: rgba(255,255,255,.08);
}

/* Auth page */
body.tema-dark .auth-form-side {
  background: var(--cream);
}

body.tema-dark .auth-form-title {
  color: var(--gold);
}

/* Alert */
body.tema-dark .alert-success {
  background: var(--success-lt);
  color: var(--success);
  border-color: var(--success);
}

body.tema-dark .alert-error {
  background: var(--danger-lt);
  color: var(--gold);
  border-color: var(--gold);
}

body.tema-dark .alert-info {
  background: var(--green-lt);
  color: var(--text);
  border-color: var(--cream-dk);
}

body.tema-dark .alert-warning {
  background: var(--warning-lt);
  color: var(--warning);
  border-color: var(--warning);
}

/* Stat cards */
body.tema-dark .stat-card {
  background: var(--white);
  border-color: var(--cream-dk);
}

body.tema-dark .stat-label {
  color: var(--text-lt);
}

/* Badge */
body.tema-dark .badge-success {
  background: var(--success-lt);
  color: var(--success);
}

body.tema-dark .badge-danger {
  background: var(--danger-lt);
  color: var(--gold);
}

body.tema-dark .badge-warning {
  background: var(--warning-lt);
  color: var(--warning);
}

body.tema-dark .badge-info {
  background: var(--green-lt);
  color: var(--text);
}

body.tema-dark .badge-muted {
  background: var(--cream-dk);
  color: var(--text-lt);
}

/* Bottoni */
body.tema-dark .btn-outline {
  border-color: var(--text-lt);
  color: var(--text);
}

body.tema-dark .btn-outline:hover {
  background: var(--cream-dk);
}

body.tema-dark .btn-ghost {
  color: var(--text-mid);
}

body.tema-dark .btn-ghost:hover {
  background: var(--cream-dk);
}

/* Calendario */
body.tema-dark .cal-day.available {
  background: var(--green-lt);
  color: var(--text);
  border-color: var(--gold);
}

body.tema-dark .cal-day.available:hover,
body.tema-dark .cal-day.selected {
  background: var(--gold);
  color: var(--green);
}

body.tema-dark .cal-day.blocked,
body.tema-dark .cal-day.closed,
body.tema-dark .cal-day.past {
  background: var(--cream-dk);
  color: var(--text-lt);
}

body.tema-dark .cal-day-name {
  color: var(--text-lt);
}

/* Slot picker */
body.tema-dark .slot-btn {
  background: var(--white);
  border-color: var(--cream-dk);
  color: var(--text);
}

body.tema-dark .slot-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--cream);
}

body.tema-dark .slot-btn.selected {
  background: var(--gold);
  color: var(--green);
  border-color: var(--gold);
}

body.tema-dark .slot-btn.booked {
  background: var(--cream-dk);
  color: var(--text-lt);
  border-color: var(--cream-dk);
}

/* Modal */
body.tema-dark .modal {
  background: var(--white);
}

body.tema-dark .modal-title {
  color: var(--gold);
}

body.tema-dark .modal-text {
  color: var(--text-lt);
}

body.tema-dark .modal-bg {
  background: rgba(0,0,0,.7);
}

/* Availability rows */
body.tema-dark .avail-row {
  background: var(--white);
  border-color: var(--cream-dk);
}

body.tema-dark .avail-row-inputs {
  background: var(--cream);
  border-top-color: var(--cream-dk);
}

body.tema-dark .avail-day-name {
  color: var(--text);
}

/* Pending card */
body.tema-dark .pending-card {
  background: var(--white);
}

body.tema-dark .pending-title {
  color: var(--gold);
}

/* Divider */
body.tema-dark .divider {
  color: var(--text-lt);
}

body.tema-dark .divider::before,
body.tema-dark .divider::after {
  background: var(--cream-dk);
}

/* Section title e card title */
body.tema-dark .card-title,
body.tema-dark .section-title,
body.tema-dark .admin-page-title,
body.tema-dark .calendar-title {
  color: var(--gold);
}

body.tema-dark .card-subtitle,
body.tema-dark .admin-page-sub {
  color: var(--text-lt);
}

/* Table wrap border */
body.tema-dark .table-wrap {
  border-color: var(--cream-dk);
}

/* Input select option (non tutti i browser supportano lo stile,
   ma almeno il colore di sfondo del dropdown) */
body.tema-dark select option {
  background: var(--cream);
  color: var(--text);
}

/* ── MOBILE SPECIFICS (max-width: 768px) ───────────────── */
@media (max-width: 768px) {
  .admin-layout { padding-bottom: 70px; }
  .sidebar {
    position: fixed;
    bottom: 0;
    height: 70px;
    flex-direction: row;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 1000;
  }
  .sidebar-brand, .sidebar-label, .sidebar-footer, .sidebar-user { display: none; }
  .sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    padding: 0;
  }
  .sidebar-nav a {
    flex-direction: column;
    gap: 3px;
    font-size: .65rem;
    min-height: 48px;
    border-right: none;
    padding: .4rem;
  }
  .sidebar-nav a.active {
    border-top: 3px solid var(--gold);
    border-right: none;
    border-left: none;
    background: rgba(255,255,255,.05);
  }
  .sidebar-nav svg, .sidebar-icon {
    width: 22px;
    height: 22px;
    font-size: 1.2rem;
  }
  .table-mobile-cards thead { display: none; }
  .table-mobile-cards tbody tr {
    display: block;
    margin-bottom: .8rem;
    border: 1px solid var(--cream-dk);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--white);
  }
  .table-mobile-cards tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: .6rem 0;
    border-bottom: 1px solid var(--gray-100);
    min-height: 32px;
  }
  .table-mobile-cards tbody tr td:last-child {
    border-bottom: none;
  }
  .table-mobile-cards tbody td::before {
    content: attr(data-label);
    font-size: .75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 700;
    padding-right: 1rem;
    flex-shrink: 0;
    min-width: 80px;
    margin-top: .1rem;
  }
  .table-mobile-cards .actions-cell {
    flex-direction: column;
    align-items: stretch;
    margin-top: .5rem;
    padding-top: .75rem;
    border-top: 1px solid var(--gray-100);
  }
  .table-mobile-cards .actions-cell::before { display: none; }
  .table-mobile-cards .td-actions {
    justify-content: space-between;
    width: 100%;
  }

  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .admin-content { padding: 1rem 1rem 80px; }
  .cal-day { min-height: 44px; font-size: 1rem; border-width: 1.5px; }
  .slots-grid { grid-template-columns: repeat(2,1fr); }
  .slot-btn { min-height: 48px; font-size: .95rem; }
  
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-box {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    margin: 0;
  }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; justify-content: center; }
  .client-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr; }
  
  /* Prevent overflow on small screens */
  .modal-box { border-radius: 0; }
}

/* ── NUOVI COMPONENTI ──────────────────────────────────── */
.cal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: .3rem .7rem;
  border: 1px solid var(--green-lt);
  border-radius: 6px;
  background: var(--green-lt);
  margin-top: .4rem;
  transition: all .2s var(--ease);
}
.cal-link-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-1px);
}

/* ============================================================
   PATCH RESPONSIVI E BOTTOM NAV (Aggiunte finali)
   ============================================================ */

/* 1. BOTTOM NAV ADMIN — SI MANGIA IL CONTENUTO */
@media (max-width: 768px) {
  /* Padding bottom globale per evitare del tutto l'overlay della nav bar fissa su mobile */
  body {
    padding-bottom: 70px !important;
  }
  
  .admin-layout,
  .admin-content,
  .page,
  .page-sm,
  .page-md,
  .client-main,
  .client-content,
  .client-layout {
    padding-bottom: 70px !important;
  }

  /* Assicurati che la sidebar non abbia overflow nascosto
     che taglia le label dei link */
  .sidebar {
    overflow: visible;
    flex-wrap: nowrap;
    height: 70px;
  }

  /* Label testo sotto le icone nella bottom nav:
     non devono mai andare a capo o essere troncate visibilmente a metà */
  .sidebar-nav a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
    padding: 6px 3px !important;
    gap: 2px !important;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
  }

  .sidebar-nav a.active {
    color: var(--gold) !important;
    background: transparent !important;
    border-top: 3px solid var(--gold) !important;
  }

  /* Riduzione equilibrata font */
  .sidebar-nav a span {
    font-size: .58rem !important;
    font-weight: 500;
    line-height: 1.1;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-nav svg, .sidebar-nav span.sidebar-icon {
    width: 20px !important;
    height: 20px !important;
    font-size: 1rem !important;
    flex-shrink: 0;
    margin: 0 !important;
  }
}

/* 2. TESTO CHE ESCE DAI CONTENITORI SU MOBILE */
@media (max-width: 768px) {

  /* Testo nelle celle: va a capo invece di uscire */
  td, th {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
  }

  /* Evitiamo restrizioni massime che rompano flex-header o icone svg */
  .admin-header, .topbar {
    width: 100%;
    max-width: 100vw;
  }

  .sidebar {
      bottom: 0;
      top: auto;
      left: 0;
      width: 100%;
      position: fixed !important;
      z-index: 9999;
  }

  /* Card e contenitori: non escono mai dallo schermo */
  .card {
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
  }

  /* Stat cards: testo ridotto se non ci sta */
  .stat-value {
    font-size: 1.4rem;
    word-break: break-all;
  }

  .stat-label {
    font-size: .70rem;
    line-height: 1.3;
  }

  /* Admin topbar: titolo non va su una riga sola se è lungo */
  .admin-page-title {
    font-size: 1.2rem;
    word-break: break-word;
  }

  /* Badge: non escono mai dal contenitore */
  .badge {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }

  /* Actions cell: i bottoni vanno a capo invece di uscire */
  .actions-cell {
    flex-wrap: wrap;
    gap: .3rem;
  }

  .actions-cell .btn {
    flex-shrink: 0;
  }

  /* Form control: non più largo del contenitore */
  .form-control,
  select.form-control,
  input.form-control,
  textarea.form-control {
    width: 100%;
    min-width: 0;
  }

  /* Topbar cliente: nome utente troncato se lungo */
  .topbar-nav span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* 3. CSS SEZIONE DISPONIBILITÀ (AVAILABILITY ROWS) */
.avail-row {
  border: 1.5px solid var(--cream-dk);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: .6rem;
  transition: border-color var(--transition);
  overflow: hidden;
}

.avail-row.is-active {
  border-color: var(--green-mid);
}

.avail-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  cursor: pointer;
  min-height: 48px;
  gap: .5rem;
}

.avail-toggle {
  display: flex;
  align-items: center;
  gap: .7rem;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.avail-toggle input[type=checkbox] {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.avail-day-name {
  font-weight: 500;
  color: var(--text);
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.avail-status-badge {
  font-size: .75rem;
  font-weight: 500;
  padding: .2rem .7rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.avail-status-badge.open {
  background: var(--success-lt);
  color: var(--success);
}

.avail-status-badge.closed {
  background: var(--cream-dk);
  color: var(--text-lt);
}

.avail-row-inputs {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--cream-dk);
  flex-wrap: wrap;
  background: var(--cream);
}

.avail-input-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}

.avail-input-label {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-lt);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.avail-time  { width: 120px; }
.avail-slot  { width: 100px; }

/* Mobile: inputs impilati verticalmente */
@media (max-width: 768px) {
  .avail-row-inputs {
    flex-direction: column;
    align-items: stretch;
    gap: .7rem;
  }

  .avail-input-group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .avail-input-label {
    min-width: 50px;
    flex-shrink: 0;
  }

  .avail-time,
  .avail-slot {
    width: 100%;
    flex: 1;
    min-width: 0;
  }
}

/* ========================================================
   GENERAL RESPONSIVE FIXES — Prevent overflow on mobile
   ======================================================== */
@media (max-width: 768px) {
  
  /* Prevent horizontal scrollbar */
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* All text: prevent overflow */
  p, span, h1, h2, h3, h4, h5, h6, label {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Buttons and links: fit container */
  button, .btn, .badge, a {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Form inputs */
  input, select, textarea, .form-control {
    max-width: 100% !important;
    width: 100%;
    min-width: 0;
  }

  /* Cards and panels */
  .card, .panel {
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
  }

  /* Modals stay within viewport */
  .modal-box {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  /* Alerts and banners */
  .alert, .notif-banner, .welcome-banner {
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
  }

  /* Top and admin bars */
  .topbar, .admin-header, .admin-nav {
    padding-left: .75rem;
    padding-right: .75rem;
    overflow: hidden;
  }

  /* Scrollable tables */
  table {
    max-width: 100%;
    overflow-x: auto;
  }

  /* Calendar and slots */
  .slots-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: .5rem;
  }

  /* Date and time inputs */
  input[type="date"], input[type="time"] {
    width: 100%;
    min-width: 0;
  }

  /* Content sections use full width */
  .admin-content, .client-content, .page-content {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
/* Fix mobile layout card stacked al di sotto dei 480px, in modo che sovrascriva i blocchi media precedenti */
@media (max-width: 480px) {
  .table-mobile-cards tbody td {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: .75rem 0 !important;
  }
  .table-mobile-cards tbody td::before {
    margin-bottom: .35rem !important;
    min-width: 0 !important;
    padding-right: 0 !important;
  }
}
