/* ARVEN — tema del panel de administración de Django, con la paleta y
   tipografías de index-2.html (Bodoni Moda / Inter, crema + dorado). */

:root {
  --primary: #BFA37A;
  --primary-fg: #111111;

  --secondary: #111111;
  --accent: #BFA37A;

  --body-fg: #111111;
  --body-bg: #FAF6EC;
  --body-quiet-color: #666666;
  --body-loud-color: #111111;

  --header-color: #FAF6EC;
  --header-branding-color: #BFA37A;
  --header-bg: #111111;
  --header-link-color: #FAF6EC;

  --breadcrumbs-fg: #FAF6EC;
  --breadcrumbs-link-fg: #BFA37A;
  --breadcrumbs-bg: #111111;

  --link-fg: #8a7148;
  --link-hover-color: #111111;
  --link-selected-fg: #BFA37A;

  --hairline-color: #e6ddc9;
  --border-color: #ddd0b0;

  --error-fg: #ba2121;

  --darkened-bg: #f1eadb;
  --selected-bg: #f1eadb;
  --selected-row: #f6efdd;

  --button-fg: #111111;
  --button-bg: #BFA37A;
  --button-hover-bg: #a88f66;
  --default-button-bg: #111111;
  --default-button-hover-bg: #333333;
  --close-button-bg: #666666;
  --close-button-hover-bg: #444444;
  --delete-button-bg: #ba2121;
  --delete-button-hover-bg: #a41515;

  --object-tools-bg: #111111;
  --object-tools-hover-bg: #333333;

  --font-family-primary: 'Inter', -apple-system, sans-serif;
}

body,
input,
select,
textarea {
  font-family: 'Inter', -apple-system, sans-serif;
}

#header {
  border-bottom: 1px solid #BFA37A;
}

#branding h1,
#branding h1 a:link,
#branding h1 a:visited {
  font-family: 'Bodoni Moda', serif;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FAF6EC;
}

.module h2,
.module caption,
.inline-group h2 {
  font-family: 'Inter', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 12px;
}

div.breadcrumbs {
  font-size: 12px;
}

.button,
input[type="submit"],
input[type="button"],
.submit-row input,
a.button {
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
}

.selector-chosen h2,
.calendar caption,
.timelist caption {
  background: #111111;
}

.dashboard .module table th {
  font-weight: 600;
}

a:link,
a:visited {
  color: var(--link-fg);
}

.object-tools a:link,
.object-tools a:visited {
  color: var(--header-color, #fff);
}

/* Panel de resumen de órdenes en el dashboard */
.arven-order-stats {
  margin: 0 0 28px;
}
.arven-order-stats h2 {
  font-family: 'Bodoni Moda', serif;
  font-size: 20px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 14px;
  color: #111111;
}
.arven-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.arven-stat-card {
  flex: 1;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid var(--border-color, #ddd0b0);
  border-left: 4px solid #BFA37A;
  border-radius: 4px;
  padding: 18px 20px;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.arven-stat-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}
.arven-stat-card.arven-stat-paid {
  border-left-color: #3c8c4c;
}
.arven-stat-card.arven-stat-cancelled {
  border-left-color: #ba2121;
}
.arven-stat-number {
  font-family: 'Bodoni Moda', serif;
  font-size: 34px;
  font-weight: 600;
  color: #111111;
  line-height: 1;
}
.arven-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #666666;
}

/* Gráfico de barra apilada (pendientes / pagadas / canceladas) */
.arven-chart-bar {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color, #ddd0b0);
  margin-bottom: 10px;
  background: #fff;
}
.arven-chart-seg {
  height: 100%;
  transition: width .3s ease;
}
.arven-chart-empty {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
}
.arven-chart-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #444;
  margin-bottom: 22px;
}
.arven-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.arven-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Insignias de estado en la lista de órdenes */
.arven-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
}
.arven-status-pending { background: #BFA37A; color: #111; }
.arven-status-paid { background: #3c8c4c; }
.arven-status-cancelled { background: #ba2121; }
