/* ══════════════════════════════════════════════════════════════════
   WINE SUPPLY — Admin Panel Styles
   ══════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --adm-bg:        #111009;
  --adm-bg-2:      #1A1814;
  --adm-bg-3:      #222018;
  --adm-bg-hover:  #2A2820;
  --adm-border:    rgba(255,255,255,0.08);
  --adm-border-2:  rgba(255,255,255,0.14);
  --adm-text:      #F0EBE2;
  --adm-text-mid:  #A89F95;
  --adm-text-dim:  #6B6560;
  --adm-accent:    #C4A460;
  --adm-accent-2:  #9A7638;
  --adm-ok:        #5AB88A;
  --adm-low:       #D4A020;
  --adm-out:       #C05050;
  --adm-dirty:     #7B8FC8;
  --adm-radius:    6px;
  --adm-font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --adm-serif:     'Cormorant Garamond', Georgia, serif;
  --adm-sp-1:      4px;
  --adm-sp-2:      8px;
  --adm-sp-3:      12px;
  --adm-sp-4:      16px;
  --adm-sp-5:      24px;
  --adm-sp-6:      32px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  font-family: var(--adm-font);
  font-size: 14px;
  line-height: 1.5;
  background: var(--adm-bg);
  color: var(--adm-text);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100svh; }

/* ══════════════════════════════════════════════════════════════════
   LOGIN
   ══════════════════════════════════════════════════════════════════ */
.adm-login {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--adm-sp-4);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196,164,96,0.12) 0%, transparent 60%),
    var(--adm-bg);
}

.adm-login__card {
  width: 100%;
  max-width: 360px;
  background: var(--adm-bg-2);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: var(--adm-sp-6) var(--adm-sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--adm-sp-5);
}

.adm-login__brand {
  display: flex;
  align-items: center;
  gap: var(--adm-sp-2);
  justify-content: center;
}

.adm-login__brand-name {
  font-family: var(--adm-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--adm-accent);
}

.adm-login__brand-divider {
  width: 1px;
  height: 16px;
  background: var(--adm-border-2);
}

.adm-login__brand-sub {
  font-size: 0.75rem;
  color: var(--adm-text-mid);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.adm-login__form { display: flex; flex-direction: column; gap: var(--adm-sp-3); }

.adm-login__error {
  font-size: 0.8125rem;
  color: var(--adm-out);
  text-align: center;
  padding: var(--adm-sp-2) var(--adm-sp-3);
  background: rgba(192,80,80,0.10);
  border-radius: var(--adm-radius);
  border: 1px solid rgba(192,80,80,0.25);
}

/* ══════════════════════════════════════════════════════════════════
   FORM PRIMITIVES
   ══════════════════════════════════════════════════════════════════ */
.adm-form-group { display: flex; flex-direction: column; gap: var(--adm-sp-1); }

.adm-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--adm-text-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.adm-input {
  height: 42px;
  padding: 0 var(--adm-sp-3);
  background: var(--adm-bg-3);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s;
}

.adm-input::placeholder { color: var(--adm-text-dim); }
.adm-input:focus { border-color: var(--adm-accent-2); }

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--adm-sp-1);
  padding: 0 var(--adm-sp-4);
  height: 38px;
  border: 1px solid transparent;
  border-radius: var(--adm-radius);
  font-family: var(--adm-font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.adm-btn--primary {
  background: var(--adm-accent);
  color: #18160E;
  border-color: var(--adm-accent);
}
.adm-btn--primary:hover:not(:disabled) { background: #D4B470; border-color: #D4B470; }
.adm-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }

.adm-btn--ghost {
  background: transparent;
  color: var(--adm-text-mid);
  border-color: var(--adm-border);
}
.adm-btn--ghost:hover { background: var(--adm-bg-hover); color: var(--adm-text); }

.adm-btn--full { width: 100%; }

.adm-btn--sm { height: 30px; padding: 0 var(--adm-sp-3); font-size: 0.8125rem; }

.adm-btn--save {
  background: transparent;
  color: var(--adm-text-dim);
  border-color: var(--adm-border);
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--adm-radius);
}
.adm-btn--save:hover { color: var(--adm-text); border-color: var(--adm-border-2); background: var(--adm-bg-hover); }
.adm-btn--dirty { color: var(--adm-dirty) !important; border-color: rgba(123,143,200,0.4) !important; }

/* ══════════════════════════════════════════════════════════════════
   ADMIN PANEL LAYOUT
   ══════════════════════════════════════════════════════════════════ */
.adm-panel {
  display: flex;
  flex-direction: column;
  height: 100svh;
  overflow: hidden;
}

/* ── Header ────────────────────────────────────────────────────── */
.adm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--adm-sp-5);
  height: 56px;
  background: var(--adm-bg-2);
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
  gap: var(--adm-sp-4);
}

.adm-header__brand {
  display: flex;
  align-items: center;
  gap: var(--adm-sp-2);
  flex-shrink: 0;
}

.adm-header__name {
  font-family: var(--adm-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--adm-accent);
  letter-spacing: 0.04em;
}

.adm-header__sub {
  font-size: 0.6875rem;
  color: var(--adm-text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-left: 1px solid var(--adm-border-2);
  padding-left: var(--adm-sp-2);
}

.adm-header__actions {
  display: flex;
  align-items: center;
  gap: var(--adm-sp-3);
  min-width: 0;
}

.adm-header__user {
  font-size: 0.8125rem;
  color: var(--adm-text-mid);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Toolbar ───────────────────────────────────────────────────── */
.adm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--adm-sp-3);
  padding: var(--adm-sp-3) var(--adm-sp-5);
  background: var(--adm-bg-2);
  border-bottom: 1px solid var(--adm-border);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.adm-toolbar__left {
  display: flex;
  align-items: center;
  gap: var(--adm-sp-3);
  flex: 1;
  min-width: 0;
}

.adm-toolbar__right {
  display: flex;
  align-items: center;
  gap: var(--adm-sp-3);
  flex-shrink: 0;
}

.adm-toolbar__count {
  font-size: 0.75rem;
  color: var(--adm-text-dim);
  white-space: nowrap;
}

.adm-search {
  position: relative;
  flex: 1;
  min-width: 140px;
  max-width: 320px;
}

.adm-search__icon {
  position: absolute;
  left: var(--adm-sp-2);
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--adm-text-dim);
  pointer-events: none;
}

.adm-search__input {
  width: 100%;
  height: 34px;
  padding: 0 var(--adm-sp-3) 0 30px;
  background: var(--adm-bg-3);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}
.adm-search__input::placeholder { color: var(--adm-text-dim); }
.adm-search__input:focus { border-color: var(--adm-accent-2); }

.adm-select {
  height: 34px;
  padding: 0 var(--adm-sp-3);
  background: var(--adm-bg-3);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
}
.adm-select:focus { border-color: var(--adm-accent-2); }

/* ── Status bar ────────────────────────────────────────────────── */
.adm-status {
  padding: var(--adm-sp-2) var(--adm-sp-5);
  font-size: 0.8125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}

.adm-status--ok    { background: rgba(90,184,138,0.12); color: var(--adm-ok); }
.adm-status--error { background: rgba(192,80,80,0.12);  color: var(--adm-out); }
.adm-status--info  { background: rgba(255,255,255,0.05); color: var(--adm-text-mid); }

/* ══════════════════════════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════════════════════════ */
.adm-table-wrap {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--adm-sp-6);
}

.adm-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.adm-th {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: var(--adm-sp-2) var(--adm-sp-3);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--adm-text-dim);
  background: var(--adm-bg-2);
  border-bottom: 1px solid var(--adm-border);
  white-space: nowrap;
  text-align: left;
}

.adm-th--cat      { width: 36px; text-align: center; }
.adm-th--price    { width: 90px; }
.adm-th--stock    { width: 96px; }
.adm-th--active   { width: 58px; text-align: center; }
.adm-th--badge    { width: 96px; }
.adm-th--save     { width: 46px; text-align: center; }

.adm-row {
  border-bottom: 1px solid var(--adm-border);
  transition: background 0.12s;
}
.adm-row:hover { background: var(--adm-bg-hover); }
.adm-row--dirty { background: rgba(123,143,200,0.06); }

.adm-td {
  padding: var(--adm-sp-2) var(--adm-sp-3);
  font-size: 0.875rem;
  color: var(--adm-text);
  vertical-align: middle;
}

.adm-td--cat    { text-align: center; }
.adm-td--save   { text-align: center; }

.adm-td--producer {
  font-size: 0.8125rem;
  color: var(--adm-text-mid);
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-td--name {
  max-width: 200px;
}

.adm-td--price {
  font-size: 0.8125rem;
  color: var(--adm-text-mid);
  white-space: nowrap;
}

/* Cat dot */
.adm-cat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.adm-cat-dot--tinto     { background: #9B4455; }
.adm-cat-dot--branco    { background: #C8B468; }
.adm-cat-dot--espumante { background: #6A8FB0; }

/* Vintage + premium */
.adm-vintage {
  font-size: 0.75rem;
  color: var(--adm-text-dim);
  margin-left: 5px;
}

.adm-premium-dot {
  font-size: 0.65rem;
  color: var(--adm-accent);
  margin-left: 3px;
  vertical-align: super;
}

/* Stock input */
.adm-stock-input {
  width: 72px;
  height: 30px;
  padding: 0 var(--adm-sp-2);
  background: var(--adm-bg-3);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.875rem;
  text-align: right;
  outline: none;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
  appearance: textfield;
}
.adm-stock-input::-webkit-inner-spin-button,
.adm-stock-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.adm-stock-input:focus { border-color: var(--adm-accent-2); }

/* Toggle */
.adm-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.adm-toggle__input { position: absolute; opacity: 0; width: 0; height: 0; }
.adm-toggle__track {
  position: relative;
  width: 34px;
  height: 18px;
  background: var(--adm-bg-3);
  border: 1px solid var(--adm-border);
  border-radius: 9px;
  transition: background 0.2s, border-color 0.2s;
}
.adm-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--adm-text-dim);
  transition: transform 0.2s, background 0.2s;
}
.adm-toggle__input:checked + .adm-toggle__track {
  background: rgba(90,184,138,0.25);
  border-color: var(--adm-ok);
}
.adm-toggle__input:checked + .adm-toggle__track::after {
  transform: translateX(16px);
  background: var(--adm-ok);
}

/* Badges */
.adm-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.adm-badge--ok  { background: rgba(90,184,138,0.14); color: var(--adm-ok); }
.adm-badge--low { background: rgba(212,160,32,0.14); color: var(--adm-low); }
.adm-badge--out { background: rgba(192,80,80,0.14);  color: var(--adm-out); }

/* Empty + loading */
.adm-empty {
  padding: var(--adm-sp-6);
  text-align: center;
  color: var(--adm-text-dim);
  font-size: 0.875rem;
}

.adm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--adm-sp-3);
  padding: var(--adm-sp-6);
  color: var(--adm-text-mid);
  font-size: 0.875rem;
}

@keyframes adm-spin { to { transform: rotate(360deg); } }
.adm-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--adm-border);
  border-top-color: var(--adm-accent);
  border-radius: 50%;
  animation: adm-spin 0.75s linear infinite;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════════ */
.adm-toast {
  position: fixed;
  bottom: var(--adm-sp-5);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--adm-bg-2);
  border: 1px solid var(--adm-border-2);
  color: var(--adm-text);
  font-size: 0.875rem;
  padding: var(--adm-sp-2) var(--adm-sp-4);
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  white-space: nowrap;
}
.adm-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .adm-header { padding: 0 var(--adm-sp-3); }
  .adm-header__user { display: none; }
  .adm-toolbar { padding: var(--adm-sp-2) var(--adm-sp-3); }
  .adm-toolbar__left { flex-wrap: wrap; }
  .adm-search { max-width: none; }
  .adm-status { padding: var(--adm-sp-2) var(--adm-sp-3); }
}

@media (max-width: 480px) {
  .adm-login__card { padding: var(--adm-sp-5) var(--adm-sp-4); }
  .adm-th--producer, .adm-td--producer { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════════════════════ */
.adm-stats {
  display: flex;
  gap: 1px;
  background: var(--adm-border);
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}

.adm-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--adm-sp-3) var(--adm-sp-2);
  background: var(--adm-bg-2);
  min-width: 80px;
}

.adm-stat__val {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--adm-text);
  letter-spacing: -0.02em;
}

.adm-stat__lbl {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-text-dim);
  white-space: nowrap;
}

.adm-stat--ok  .adm-stat__val { color: var(--adm-ok); }
.adm-stat--low .adm-stat__val { color: var(--adm-low); }
.adm-stat--out .adm-stat__val { color: var(--adm-out); }
.adm-stat--units .adm-stat__val { color: var(--adm-accent); }

@media (max-width: 600px) {
  .adm-stat__lbl { display: none; }
  .adm-stat { padding: var(--adm-sp-2); }
}

/* ══════════════════════════════════════════════════════════════════
   BULK IMPORT MODAL
   ══════════════════════════════════════════════════════════════════ */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 300;
  backdrop-filter: blur(4px);
}

.adm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 310;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  background: var(--adm-bg-2);
  border: 1px solid var(--adm-border-2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.adm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--adm-sp-4) var(--adm-sp-5);
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}

.adm-modal__title {
  font-family: var(--adm-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--adm-text);
  letter-spacing: 0.02em;
}

.adm-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--adm-text-dim);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  transition: color 0.15s;
}
.adm-modal__close:hover { color: var(--adm-text); }

.adm-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--adm-sp-4) var(--adm-sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--adm-sp-4);
}

.adm-modal__hint {
  font-size: 12px;
  color: var(--adm-text-mid);
  line-height: 1.5;
}

.adm-modal__hint code {
  background: var(--adm-bg-3);
  border: 1px solid var(--adm-border);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 11px;
  color: var(--adm-accent);
  font-family: monospace;
}

.adm-bulk-input {
  width: 100%;
  background: var(--adm-bg-3);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius);
  color: var(--adm-text);
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
  padding: var(--adm-sp-3);
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.adm-bulk-input:focus { border-color: var(--adm-accent); }

.adm-modal__actions {
  display: flex;
  align-items: center;
  gap: var(--adm-sp-3);
  flex-shrink: 0;
}

.adm-modal__hint-inline {
  font-size: 11px;
  color: var(--adm-text-dim);
  letter-spacing: 0.04em;
}

.adm-modal__actions--apply {
  padding-top: var(--adm-sp-3);
  border-top: 1px solid var(--adm-border);
  margin-top: var(--adm-sp-2);
}

/* Bulk report */
.adm-bulk-report {
  display: flex;
  flex-direction: column;
  gap: var(--adm-sp-3);
}

.adm-bulk-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--adm-sp-2);
}

.adm-bulk-summary__pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
}
.adm-bulk-summary__pill--ok    { background: rgba(90,184,138,0.15); color: var(--adm-ok); }
.adm-bulk-summary__pill--low   { background: rgba(212,160,32,0.15);  color: var(--adm-low); }
.adm-bulk-summary__pill--out   { background: rgba(192,80,80,0.15);   color: var(--adm-out); }
.adm-bulk-summary__pill--units { background: rgba(196,164,96,0.12);  color: var(--adm-accent); }

.adm-bulk-section { display: flex; flex-direction: column; gap: 4px; }

.adm-bulk-section__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--adm-sp-2) 0 4px;
  border-bottom: 1px solid var(--adm-border);
}
.adm-bulk-section__title--ok  { color: var(--adm-ok); }
.adm-bulk-section__title--low { color: var(--adm-low); }
.adm-bulk-section__title--out { color: var(--adm-out); }

.adm-bulk-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 180px;
  overflow-y: auto;
}

.adm-bulk-row {
  display: flex;
  align-items: center;
  gap: var(--adm-sp-2);
  padding: 4px var(--adm-sp-2);
  border-radius: 4px;
  font-size: 12px;
  flex-wrap: wrap;
}
.adm-bulk-row--ok  { background: rgba(90,184,138,0.06); }
.adm-bulk-row--low { background: rgba(212,160,32,0.06); }
.adm-bulk-row--out { background: rgba(192,80,80,0.06); }

.adm-bulk-row__input  { color: var(--adm-text-mid); min-width: 120px; }
.adm-bulk-row__arrow  { color: var(--adm-text-dim); flex-shrink: 0; }
.adm-bulk-row__match  { color: var(--adm-text); font-weight: 500; flex: 1; }
.adm-bulk-row__alt    { font-size: 10px; color: var(--adm-text-dim); font-style: italic; flex: 1; }
.adm-bulk-row__qty    {
  font-weight: 700;
  color: var(--adm-accent);
  min-width: 32px;
  text-align: right;
  flex-shrink: 0;
  font-size: 13px;
}

/* Save-all button variant */
.adm-btn--save-all {
  background: rgba(196,164,96,0.15);
  border: 1px solid var(--adm-accent-2);
  color: var(--adm-accent);
}
.adm-btn--save-all:hover {
  background: rgba(196,164,96,0.25);
}

/* ══════════════════════════════════════════════════════════════════
   TABLE — edit column + inactive row + source dot
   ══════════════════════════════════════════════════════════════════ */
.adm-th--edit   { width: 40px; text-align: center; }
.adm-td--edit   { text-align: center; }

.adm-row--inactive { opacity: 0.5; }

.adm-source-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}
.adm-source-dot--override { background: var(--adm-accent); }
.adm-source-dot--custom   { background: #6A9FD4; }

/* Edit button */
.adm-btn--edit {
  background: transparent;
  color: var(--adm-text-dim);
  border: 1px solid var(--adm-border);
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--adm-radius);
}
.adm-btn--edit:hover { color: var(--adm-accent); border-color: var(--adm-accent-2); background: rgba(196,164,96,0.08); }

/* Inactive badge */
.adm-badge--inactive { background: rgba(107,101,96,0.2); color: var(--adm-text-dim); }

/* ══════════════════════════════════════════════════════════════════
   STATS BAR — inactive stat
   ══════════════════════════════════════════════════════════════════ */
.adm-stat--inactive .adm-stat__val { color: var(--adm-text-dim); }

/* ══════════════════════════════════════════════════════════════════
   WINE FORM MODAL (edit + add)
   ══════════════════════════════════════════════════════════════════ */
.adm-modal--narrow {
  width: min(520px, calc(100vw - 32px));
}

.adm-wine-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--adm-sp-3);
}

.adm-form-group--span2 { grid-column: 1 / -1; }

.adm-form-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--adm-text-dim);
  padding-top: var(--adm-sp-2);
  border-top: 1px solid var(--adm-border);
  align-self: end;
}

.adm-select--full {
  width: 100%;
  height: 42px;
  padding: 0 var(--adm-sp-3);
  background: var(--adm-bg-3);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.9375rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.adm-select--full:focus { border-color: var(--adm-accent-2); }

.adm-textarea {
  width: 100%;
  padding: var(--adm-sp-2) var(--adm-sp-3);
  background: var(--adm-bg-3);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.adm-textarea::placeholder { color: var(--adm-text-dim); }
.adm-textarea:focus { border-color: var(--adm-accent-2); }

.adm-toggle--large .adm-toggle__track {
  width: 42px;
  height: 22px;
  border-radius: 11px;
}
.adm-toggle--large .adm-toggle__track::after {
  width: 14px;
  height: 14px;
  top: 3px;
  left: 3px;
}
.adm-toggle--large .adm-toggle__input:checked + .adm-toggle__track::after {
  transform: translateX(20px);
}

.adm-form-toggle-row {
  display: flex;
  align-items: center;
  gap: var(--adm-sp-2);
  padding-top: 22px;
}

.adm-modal__footer {
  display: flex;
  align-items: center;
  gap: var(--adm-sp-3);
  padding: var(--adm-sp-4) var(--adm-sp-5);
  border-top: 1px solid var(--adm-border);
  flex-shrink: 0;
  background: var(--adm-bg-2);
}

.adm-wine-id-preview {
  font-size: 0.6875rem;
  color: var(--adm-text-dim);
  font-family: monospace;
  margin-top: 4px;
  min-height: 1em;
}

.adm-producer-hint {
  display: block;
  font-size: 0.6875rem;
  margin-top: 3px;
  min-height: 1em;
  transition: color 0.15s;
}

.adm-producer-hint--match {
  color: var(--adm-ok);
}

.adm-producer-hint--new {
  color: var(--adm-accent);
}

.adm-producer-hint--suggest {
  color: var(--adm-ok);
}

@media (max-width: 480px) {
  .adm-wine-form { grid-template-columns: 1fr; }
  .adm-form-group--span2 { grid-column: 1; }
}

/* ══════════════════════════════════════════════════════════════════
   ADMIN TABS
   ══════════════════════════════════════════════════════════════════ */
.adm-tabs {
  display: flex;
  background: var(--adm-bg-2);
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}

.adm-tab {
  padding: var(--adm-sp-3) var(--adm-sp-5);
  font-family: var(--adm-font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  position: relative;
  top: 1px;
}

.adm-tab:hover { color: var(--adm-text-mid); }

.adm-tab.is-active {
  color: var(--adm-accent);
  border-bottom-color: var(--adm-accent);
}

/* ══════════════════════════════════════════════════════════════════
   BILLBOARD ADMIN PANEL
   ══════════════════════════════════════════════════════════════════ */
.adm-billboard {
  padding: var(--adm-sp-5);
  overflow-y: auto;
  flex: 1;
}

.adm-billboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--adm-sp-4);
  margin-bottom: var(--adm-sp-5);
}

.adm-billboard__title {
  font-family: var(--adm-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--adm-text);
  letter-spacing: 0.02em;
}

.adm-billboard__hint {
  font-size: 0.75rem;
  color: var(--adm-text-dim);
  margin-top: 4px;
  line-height: 1.5;
  max-width: 480px;
}

.adm-campaign-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adm-campaign-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto auto;
  align-items: center;
  gap: var(--adm-sp-3);
  padding: var(--adm-sp-3) var(--adm-sp-4);
  background: var(--adm-bg-2);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  transition: border-color 0.15s;
}

.adm-campaign-row:hover { border-color: var(--adm-border-2); }
.adm-campaign-row--inactive { opacity: 0.5; }

.adm-campaign-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  justify-self: center;
  flex-shrink: 0;
}

.adm-campaign-type-dot--novo      { background: #7EC8A0; }
.adm-campaign-type-dot--promocao  { background: #E8B84B; }
.adm-campaign-type-dot--cupom     { background: #C47EAD; }
.adm-campaign-type-dot--destaque  { background: #D4A060; }
.adm-campaign-type-dot--sazonal   { background: #7EB8D4; }

.adm-campaign-info { min-width: 0; }

.adm-campaign-info__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-campaign-info__meta {
  font-size: 0.6875rem;
  color: var(--adm-text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-billboard-empty {
  text-align: center;
  padding: var(--adm-sp-6) 0;
  color: var(--adm-text-dim);
  font-size: 0.875rem;
  line-height: 2;
}

.adm-billboard-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--adm-sp-3);
  padding: var(--adm-sp-6) 0;
  color: var(--adm-text-mid);
  font-size: 0.875rem;
}

/* ── Checkbox row ───────────────────────────────────────────────── */
.adm-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.adm-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--adm-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.adm-checkbox-label {
  font-size: 0.8125rem;
  color: var(--adm-text-mid);
}

.adm-checkbox-row:hover .adm-checkbox-label { color: var(--adm-text); }

@media (max-width: 600px) {
  .adm-campaign-row {
    grid-template-columns: 20px 1fr auto auto auto;
    gap: var(--adm-sp-2);
    padding: var(--adm-sp-2) var(--adm-sp-3);
  }
  .adm-billboard__header { flex-direction: column; }
  .adm-billboard { padding: var(--adm-sp-3); }
}

/* ══════════════════════════════════════════════════════════════════
   BULK IMPORT — EDITABLE ROWS
   ══════════════════════════════════════════════════════════════════ */
.adm-bulk-edit-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--adm-sp-4) 0;
}

.adm-bulk-edit-row {
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  background: var(--adm-bg-2);
  overflow: hidden;
  transition: border-color 0.15s;
}

.adm-bulk-edit-row--create { border-left: 3px solid var(--adm-low); }
.adm-bulk-edit-row--update { border-left: 3px solid var(--adm-ok); }
.adm-bulk-edit-row--ignore { border-left: 3px solid var(--adm-text-dim); opacity: 0.55; }

.adm-bulk-edit-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--adm-sp-3);
  padding: var(--adm-sp-2) var(--adm-sp-4);
  background: var(--adm-bg-3);
  border-bottom: 1px solid var(--adm-border);
}

.adm-bulk-edit-row__orig {
  font-size: 0.8125rem;
  color: var(--adm-text-mid);
  font-style: italic;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.adm-bulk-action-sel {
  font-family: var(--adm-font);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--adm-bg-hover);
  color: var(--adm-text);
  border: 1px solid var(--adm-border-2);
  border-radius: var(--adm-radius);
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.adm-bulk-edit-row__fields {
  padding: var(--adm-sp-3) var(--adm-sp-4);
}

.adm-bulk-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--adm-sp-3) var(--adm-sp-4);
}

.adm-label--sm {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-text-dim);
  display: block;
  margin-bottom: 4px;
}

.adm-bulk-warn {
  font-size: 0.6875rem;
  color: var(--adm-low);
  margin-top: 4px;
}

.adm-bulk-match-ok {
  font-size: 0.6875rem;
  color: var(--adm-ok);
  margin-top: 4px;
}

.adm-bulk-ignore-label {
  font-size: 0.8125rem;
  color: var(--adm-text-dim);
  font-style: italic;
  padding: var(--adm-sp-2) 0;
}

.adm-bulk-suggestions {
  margin-top: var(--adm-sp-3);
  padding-top: var(--adm-sp-3);
  border-top: 1px solid var(--adm-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.adm-bulk-suggestions__label {
  font-size: 0.6875rem;
  color: var(--adm-text-dim);
  width: 100%;
}

.adm-bulk-suggestion {
  display: inline-block;
  font-size: 0.6875rem;
  color: var(--adm-text-mid);
  background: var(--adm-bg-hover);
  border: 1px solid var(--adm-border);
  border-radius: 4px;
  padding: 2px 8px;
}

/* Summary pills — add new variant */
.adm-bulk-summary__pill--new {
  background: rgba(212, 160, 32, 0.15);
  color: var(--adm-low);
}

@media (max-width: 520px) {
  .adm-bulk-fields-grid { grid-template-columns: 1fr; }
  .adm-bulk-edit-row__header { flex-direction: column; align-items: flex-start; }
  .adm-bulk-action-sel { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   BILLBOARD MODAL — new 2-column layout
   ═══════════════════════════════════════════════════════════════ */

.adm-modal--bb {
  max-width: 960px;
  width: 95vw;
}

.bb-modal-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  height: calc(100vh - 180px);
  max-height: 680px;
  overflow: hidden;
}

.bb-form-pane {
  overflow-y: auto;
  padding: var(--adm-sp-5);
  border-right: 1px solid var(--adm-border);
}

.bb-preview-pane {
  overflow-y: auto;
  padding: var(--adm-sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--adm-sp-3);
  background: var(--adm-bg-2);
}

/* Templates row */
.bb-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: var(--adm-sp-4);
  padding: var(--adm-sp-3) var(--adm-sp-4);
  background: var(--adm-bg-hover);
  border-radius: 6px;
}
.bb-templates__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adm-text-dim);
  width: 100%;
}
.bb-tpl-btn {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--adm-border);
  border-radius: 20px;
  background: var(--adm-bg);
  color: var(--adm-text-mid);
  cursor: pointer;
  transition: all 0.15s;
}
.bb-tpl-btn:hover { background: var(--adm-accent); color: #fff; border-color: var(--adm-accent); }

/* Image upload */
.bb-img-section { margin-bottom: var(--adm-sp-4); }
.bb-img-dropzone {
  position: relative;
  border: 2px dashed var(--adm-border);
  border-radius: 8px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
}
.bb-img-dropzone:hover, .bb-img-dropzone--over { border-color: var(--adm-accent); background: rgba(212,160,32,0.04); }
.bb-img-dropzone--loading { pointer-events: none; opacity: 0.6; }
.bb-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--adm-text-dim);
  font-size: 0.8125rem;
  padding: var(--adm-sp-5);
  text-align: center;
}
.bb-img-hint { font-size: 0.6875rem; color: var(--adm-text-dim); }
.bb-img-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.bb-img-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}
.bb-img-action-btn {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: rgba(0,0,0,0.65);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.bb-img-action-btn:hover { background: rgba(0,0,0,0.85); }
.bb-img-action-btn--remove:hover { background: rgba(192,60,60,0.85); }
.bb-img-uploading {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 0.875rem;
  backdrop-filter: blur(4px);
}

/* Active label */
.bb-active-label {
  font-size: 0.8125rem;
  color: var(--adm-text-mid);
  margin-left: var(--adm-sp-3);
}

/* Advanced toggle */
.bb-advanced-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--adm-text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--adm-sp-3) 0;
  margin-top: var(--adm-sp-3);
  transition: color 0.15s;
}
.bb-advanced-toggle:hover { color: var(--adm-text-mid); }
.bb-advanced-toggle svg { transition: transform 0.2s; }
.bb-advanced-toggle--open svg { transform: rotate(180deg); }
.bb-advanced-panel { padding-top: var(--adm-sp-3); display: flex; flex-direction: column; gap: var(--adm-sp-4); border-top: 1px solid var(--adm-border); margin-top: var(--adm-sp-2); }

/* Wine search */
.bb-wine-search { position: relative; }
.bb-wine-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 6px;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.bb-wine-result {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.1s;
}
.bb-wine-result:hover { background: var(--adm-bg-hover); }
.bb-wine-result--out { opacity: 0.5; }
.bb-wine-result__name { display: block; font-size: 0.875rem; color: var(--adm-text); }
.bb-wine-result__meta { font-size: 0.6875rem; color: var(--adm-text-dim); }
.bb-wine-result-empty { padding: 10px 12px; font-size: 0.8125rem; color: var(--adm-text-dim); }
.bb-wine-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(212,160,32,0.1);
  border: 1px solid rgba(212,160,32,0.3);
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--adm-text);
}
.bb-wine-clear {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--adm-text-dim);
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}
.bb-wine-clear:hover { color: var(--adm-out); }

/* Preview pane */
.bb-preview-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--adm-text-dim);
}
.bb-card-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  min-height: 160px;
}
.bb-card-preview .ws-billboard__card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.bb-card-preview .ws-billboard__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,8,6,0.75) 0%, rgba(10,8,6,0.3) 65%, transparent 100%);
}
.bb-card-preview .ws-billboard__card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  gap: 6px;
}
.bb-card-preview .ws-billboard__title { font-size: 1rem; }
.bb-card-preview .ws-billboard__subtitle { font-size: 0.75rem; }
.bb-card-preview .ws-billboard__cta { font-size: 0.6875rem; padding: 6px 14px; }
.bb-preview-hint { font-size: 0.6875rem; color: var(--adm-text-dim); text-align: center; }

/* Campaign list improvements */
.adm-campaign-row {
  display: flex;
  align-items: center;
  gap: var(--adm-sp-3);
  padding: var(--adm-sp-3) var(--adm-sp-4);
  border-bottom: 1px solid var(--adm-border);
  transition: background 0.1s;
}
.adm-campaign-row:hover { background: var(--adm-bg-hover); }
.adm-campaign-thumb {
  width: 48px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--adm-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-campaign-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adm-campaign-status {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.adm-campaign-status--active { background: rgba(90,184,138,0.15); color: #5ab88a; }
.adm-campaign-status--draft  { background: var(--adm-bg-2); color: var(--adm-text-dim); }

/* Mobile */
@media (max-width: 680px) {
  .adm-modal--bb { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; margin: 0; }
  .bb-modal-layout { grid-template-columns: 1fr; height: auto; max-height: none; overflow: visible; }
  .bb-form-pane { border-right: none; border-bottom: 1px solid var(--adm-border); }
  .bb-preview-pane { height: auto; }
  .bb-card-preview { aspect-ratio: 16/7; }
}

/* ── Admin mobile: prevent Safari zoom on inputs ── */
@media (max-width: 767px) {
  .adm-input,
  .adm-select--full,
  .adm-select,
  .adm-textarea,
  input[type="text"],
  input[type="number"],
  input[type="url"],
  input[type="email"],
  input[type="search"],
  input[type="datetime-local"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Touch targets: all admin buttons ≥ 40px */
  .adm-btn {
    min-height: 40px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Modals: full scroll on small screens */
  .adm-modal {
    max-height: 95svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Billboard modal: full screen on small mobile */
  .adm-modal--bb {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    margin: 0;
    top: 0;
    transform: none;
  }
  .adm-modal--bb.is-open { transform: none; }
}

/* ══════════════════════════════════════════════════════════════════
   GOD MODE — Brand logo
   ══════════════════════════════════════════════════════════════════ */
.adm-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adm-brand-logo__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--adm-accent);
  opacity: 0.9;
}
.adm-brand-logo__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--adm-text);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════
   GOD MODE — Clickable stat cards
   ══════════════════════════════════════════════════════════════════ */
button.adm-stat {
  cursor: pointer;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: var(--adm-sp-2) var(--adm-sp-3);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  position: relative;
}
button.adm-stat:hover {
  background: var(--adm-bg-hover);
  border-color: var(--adm-border);
}
button.adm-stat:active {
  transform: scale(0.97);
}
button.adm-stat.is-active {
  background: rgba(255,255,255,0.06);
  border-color: var(--adm-border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
button.adm-stat.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  border-radius: 2px;
  background: var(--adm-accent);
}
button.adm-stat--ok.is-active::after   { background: var(--adm-ok); }
button.adm-stat--low.is-active::after  { background: var(--adm-low); }
button.adm-stat--out.is-active::after  { background: var(--adm-out); }
button.adm-stat--inactive.is-active::after { background: var(--adm-text-dim); }

/* Tooltip hint on hover */
button.adm-stat[title] { cursor: pointer; }

/* ══════════════════════════════════════════════════════════════════
   GOD MODE — Dirty badge on Save All button
   ══════════════════════════════════════════════════════════════════ */
.adm-dirty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
}
#saveAllBtn[disabled] .adm-dirty-badge { opacity: 0.5; }

/* ══════════════════════════════════════════════════════════════════
   GOD MODE — Clear filters button
   ══════════════════════════════════════════════════════════════════ */
.adm-btn--clear-filter {
  color: var(--adm-accent);
  border-color: rgba(var(--adm-accent-rgb, 192,158,106), 0.35);
  gap: 4px;
}
.adm-btn--clear-filter:hover {
  background: rgba(var(--adm-accent-rgb, 192,158,106), 0.08);
}

/* ══════════════════════════════════════════════════════════════════
   GOD MODE — Manual wine indicator dot in table
   ══════════════════════════════════════════════════════════════════ */
.adm-manual-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--adm-accent);
  margin-left: 5px;
  vertical-align: middle;
  opacity: 0.75;
  flex-shrink: 0;
  title: "Vinho criado manualmente";
}
/* Wine name cell: allow dot to show inline */
.adm-td--name {
  display: table-cell; /* keep default; dot is inline */
}
.adm-td--name > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ══════════════════════════════════════════════════════════════════
   GOD MODE — Toast enhancements
   ══════════════════════════════════════════════════════════════════ */
.adm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 320px;
  pointer-events: none;
}
/* Individual toast items (if we ever upgrade to multi-toast) */
.adm-toast__item {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(8px);
  animation: toastIn 0.22s ease forwards;
}
@keyframes toastIn {
  to { opacity: 1; transform: translateY(0); }
}
