/* Admin panel - same palette, denser layout. */

.admin-shell { min-height: 100vh; background: var(--cream-lift); }

.admin-bar {
  background: var(--olive); color: var(--cream);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px; min-height: 60px; position: sticky; top: 0; z-index: 50;
}
.admin-bar__brand { font-family: var(--font-display); font-size: 19px; text-decoration: none; color: var(--cream); }
.admin-bar__brand span { color: var(--gold); font-size: 13px; font-family: var(--font-body); letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; }
.admin-bar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.admin-bar__right a { color: rgba(242,237,227,.85); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); }
.admin-bar__right a:hover { background: rgba(242,237,227,.14); color: #fff; }

.admin-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 60px); }

.admin-nav { background: var(--paper); border-right: 1px solid var(--line); padding: 20px 0; }
.admin-nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 22px;
  text-decoration: none; color: var(--olive-deep); font-size: 14.5px;
  border-left: 3px solid transparent;
}
.admin-nav a:hover { background: var(--cream); }
.admin-nav a.is-on { background: var(--cream); border-left-color: var(--gold); font-weight: 600; }
.admin-nav hr { border: 0; border-top: 1px solid var(--line); margin: 14px 22px; }
.admin-nav .group { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #94987F; padding: 6px 22px; }

.admin-main { padding: clamp(22px, 4vw, 38px); max-width: 1120px; }

.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-title h1 { font-size: clamp(26px, 3.6vw, 34px); margin: 0; }
.admin-title p { margin: 6px 0 0; color: #6C7556; font-size: 15px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.stat__label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #8B8F79; font-weight: 600; }
.stat__value { font-family: var(--font-display); font-size: 32px; color: var(--olive); line-height: 1.2; margin-top: 6px; }
.stat__note { font-size: 13px; color: #6C7556; margin-top: 2px; }

.panel-admin {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(18px, 3vw, 26px);
  margin-bottom: 22px;
}
.panel-admin h2 { font-size: 21px; margin-bottom: 16px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.admin-table th {
  text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #8B8F79; font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .num { text-align: right; white-space: nowrap; }
.admin-table form { display: inline; }

.pill {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.pill-paid, .pill-fulfilled, .pill-active { background: rgba(74,86,42,.14); color: var(--olive); }
.pill-pending { background: rgba(155,128,74,.18); color: #7A6334; }
.pill-cancelled, .pill-refunded, .pill-expired { background: rgba(161,54,38,.13); color: #8A2F1F; }
.pill-hidden { background: rgba(0,0,0,.07); color: #7C8269; }
.pill-sample { background: rgba(74,86,42,.1); color: var(--olive-soft); }

.btn-danger { background: #A13626; color: #fff; border: 0; }
.btn-danger:hover { background: #8A2F1F; }

.btn-inline {
  background: none; border: 1px solid var(--line); color: var(--olive);
  padding: 6px 12px; font-size: 13px; border-radius: var(--radius);
  cursor: pointer; font-family: var(--font-body); margin-right: 5px;
  /* Links use this class too (Add tracking), so they must not look
     like prose or sit on the baseline oddly. */
  display: inline-block; text-decoration: none;
}
.btn-inline:hover { background: var(--cream); border-color: var(--olive-soft); }
.btn-inline--danger { color: #A13626; }
.btn-inline--danger:hover { background: rgba(161,54,38,.08); border-color: rgba(161,54,38,.4); }

.thumb-sm { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius); background: var(--cream); }

/* About photos: two draggable columns, one per side of the public page. */
.about-drop-wrap { display: flex; gap: 14px; margin-bottom: 12px; }
.about-drop { flex: 1 1 0; min-width: 0; }
.about-drop__title {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--olive-soft); margin: 0 0 8px;
}
.about-drop__list {
  min-height: 140px; padding: 10px; border-radius: var(--radius);
  border: 1.5px dashed var(--line); background: var(--cream);
  display: flex; flex-direction: column; gap: 10px;
}
.about-drop__list:empty::after {
  content: 'Drop photos here';
  margin: auto; font-size: 12.5px; color: var(--muted, #8b9080);
}
.about-thumb {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); overflow: hidden; cursor: grab;
}
.about-thumb:active { cursor: grabbing; }
.about-thumb img { display: block; width: 100%; pointer-events: none; }
.about-thumb.is-dragging { opacity: .4; }
.about-thumb__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; padding: 5px 6px 4px; border-top: 1px solid var(--line-soft, #EDEFE8);
}
.about-size {
  font-size: 12px; font-family: inherit; padding: 3px 4px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); color: inherit;
}
.about-thumb__remove { margin: 0; padding: 4px 6px; font-size: 11px; justify-content: center; }

/* Shop order — arrows beside the thumbnail move a product up or down. */
.row-order { display: flex; align-items: center; gap: 8px; }
.row-order__btns { display: flex; flex-direction: column; gap: 3px; }
.admin-table .row-order__btns form { display: block; margin: 0; }
.btn-move {
  background: none; border: 1px solid var(--line); color: var(--olive);
  width: 26px; height: 22px; line-height: 1; font-size: 10px; padding: 0;
  border-radius: 4px; cursor: pointer; font-family: var(--font-body);
}
.btn-move:hover:not(:disabled) { background: var(--cream); border-color: var(--olive-soft); }
.btn-move:disabled { opacity: .28; cursor: default; }

/* Product photos */
.gallery-edit { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.gallery-edit__item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 104px; cursor: pointer; text-align: center;
}
.gallery-edit__item img {
  width: 104px; height: 104px; object-fit: cover; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.gallery-edit__note {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #8B8F79;
}
.gallery-edit__remove {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: #A13626; white-space: nowrap;
}
.gallery-edit__remove input { margin: 0; }
.gallery-edit__item:has(input:checked) .gallery-edit__remove { font-weight: 700; }

/* Product variations */
.variant-row {
  display: grid; grid-template-columns: minmax(150px, 1fr) 110px auto;
  gap: 10px; align-items: center; margin-bottom: 8px;
}

.field[hidden] { display: none; }

.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 18px; }

.schedule-row {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(110px, .7fr) minmax(110px, .7fr) auto;
  gap: 12px; align-items: end; margin-bottom: 12px;
}
@media (max-width: 700px) { .schedule-row { grid-template-columns: 1fr 1fr; } }

.callout {
  background: rgba(155,128,74,.1); border: 1px solid rgba(155,128,74,.4);
  color: #6E5A31; padding: 13px 16px; border-radius: var(--radius);
  font-size: 14.5px; margin-bottom: 20px;
}
.callout strong { color: #58471F; }

.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--olive); padding: 24px;
}
.login-card {
  background: var(--paper); border-radius: var(--radius);
  padding: 38px 34px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 27px; text-align: center; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: #6C7556; font-size: 14.5px; margin-bottom: 26px; }

.empty-state { text-align: center; padding: 34px 16px; color: #6C7556; }

/* The uploaded site logo, shown on the olive header it will sit on. */
.logo-preview {
  display: inline-flex; align-items: center;
  background: var(--olive, #4A562A); border-radius: var(--radius, 6px);
  padding: 12px 16px; margin-bottom: 4px;
}
.logo-preview img { display: block; max-height: 44px; max-width: 260px; width: auto; height: auto; }

@media (max-width: 820px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 0; display: flex; flex-wrap: wrap; }
  .admin-nav hr, .admin-nav .group { display: none; }
  .admin-nav a { border-left: 0; border-bottom: 3px solid transparent; padding: 10px 14px; }
  .admin-nav a.is-on { border-left: 0; border-bottom-color: var(--gold); }
}

/* ------------------------------------------- class dates calendar module */
.caladmin { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 24px; align-items: start; }
@media (max-width: 720px) { .caladmin { grid-template-columns: 1fr; } }

.caladmin__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.caladmin__month { font-family: var(--font-display); font-size: 18px; }

.caladmin__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.caladmin__dow span { text-align: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8B8F79; font-weight: 600; }

.caladmin__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.caladmin__day {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  border: 1px solid transparent; background: var(--paper); color: var(--olive-deep);
  cursor: pointer; transition: background .12s, border-color .12s;
}
.caladmin__day--empty { background: transparent; border: 0; cursor: default; }

button.caladmin__day:hover { border-color: var(--olive); }
button.caladmin__day.is-past,
.caladmin__day.is-past { background: #ECEFE6; color: #A9AD9A; cursor: default; }
.caladmin__day.is-offseason { background: #F0EEE7; color: #B7B7A6; cursor: default; }
.caladmin__day.is-closed { background: #E7E3D9; color: #A9A591; cursor: default; text-decoration: line-through; }
.caladmin__day.is-scheduled { background: var(--olive); color: var(--cream); font-weight: 600; }
.caladmin__day.is-scheduled.is-focus { background: var(--olive-deep); box-shadow: 0 0 0 2px var(--gold); }

.caladmin__count { margin: 12px 0 0; font-size: 13.5px; color: #6C7556; }

.caladmin__side { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.caladmin__side .field { margin: 0 0 12px; }
.caladmin__focused {
  font-size: 14px; font-weight: 600; color: var(--olive-deep);
  padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}

.caladmin__note { margin: 8px 0 0; font-size: 13px; color: #9B804A; min-height: 1em; }
