﻿/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.al { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.asb {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.asb::before {
  content: '';
  position: absolute;
  right: -55px;
  bottom: -40px;
  width: 200px;
  height: 228px;
  background-image: url('../img/logo-b.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.05;
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(30) brightness(2);
  pointer-events: none;
  z-index: 0;
}

.asb-logo, .asb-title, .ans, .ani { position: relative; z-index: 1; }

.asb-logo {
  padding: 24px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--wh);
}
.asb-title { font-family: 'IvyOra Display', Georgia, serif; font-size: 16px; color: var(--wh); font-weight: 500; }

.ans {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 16px 22px 6px;
}

.ani {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  border-left: 2px solid transparent;
  font-weight: 300;
  letter-spacing: 0.2px;
  transition: all 0.15s;
  text-decoration: none;
}
.ani:hover { color: var(--wh); background: rgba(255,255,255,0.05); }
.ani.on    { color: var(--wh); background: rgba(255,255,255,0.07); border-left-color: var(--lav); }

/* ── Admin user strip ──── */
.asb-user {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.asb-user-nm   { font-size: 11.5px; color: rgba(255,255,255,0.9); font-weight: 500; }
.asb-user-role { font-size: 10px; color: rgba(255,255,255,0.38); font-weight: 300; margin-top: 2px; }

/* ══════════════════════════════════════════
   METRICS ROW  (mirrored from dashboard.css)
══════════════════════════════════════════ */
.dmets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
}
.dmet   { background: var(--wh); padding: 22px 20px; }
.dmet-l { font-size: 10px; color: var(--stone); letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.dmet-v { font-family: 'IvyOra Display', Georgia, serif; font-size: 24px; color: var(--ink); margin-bottom: 6px; font-weight: 500; }

/* ══════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════ */
.am { background: var(--bone); padding: 32px; color: var(--ink); }

.at { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.at-t { font-family: 'IvyOra Display', Georgia, serif; font-size: 28px; font-weight: 400; }

/* ══════════════════════════════════════════
   TABLE WIDGET
══════════════════════════════════════════ */
.tw { background: var(--wh); border: 1px solid var(--border); margin-bottom: 16px; overflow: hidden; box-shadow: var(--sh-sm); border-radius: 10px; }

.th { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.th-t { font-size: 11.5px; font-weight: 600; letter-spacing: 0.4px; }

/* ══════════════════════════════════════════
   TABLE
══════════════════════════════════════════ */
table { width: 100%; border-collapse: collapse; table-layout: fixed; }

th {
  background: rgba(0,0,0,0.02);
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 600;
  color: var(--stone);
  text-align: left;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

td {
  padding: 10px 12px;
  font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-weight: 300;
}
tr:last-child td { border-bottom: none; }

/* ── Botón blanco → navy (acciones de header y acciones rápidas) ── */
.btn-wh {
  display: inline-block;
  background: var(--wh);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 10px;
  font-family: 'Kind Sans', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  padding: 8px 14px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn-wh:hover { background: var(--navy); border-color: var(--navy); color: var(--wh); }

/* ── Table action button ─ */
.ab {
  background: transparent;
  border: 1px solid var(--border);
  padding: 4px 10px;
  font-size: 10.5px;
  cursor: pointer;
  font-family: 'Kind Sans', system-ui, sans-serif;
  border-radius: 5px;
  transition: border-color 0.15s;
}
.ab:hover { border-color: var(--ink); }

/* ── Search input ─────── */
input[type="text"] {
  padding: 6px 10px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-family: 'Kind Sans', system-ui, sans-serif;
  border-radius: 6px;
  outline: none;
  background: var(--bone);
  transition: border-color 0.15s;
}
input[type="text"]:focus { border-color: var(--lav); }

/* ── Bar chart rows ────── */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { font-size: 12px; min-width: 70px; font-weight: 300; }
.bar-track { flex: 1; height: 4px; background: rgba(0,0,0,0.07); }
.bar-fill  { height: 4px; }
.bar-count { font-size: 12px; font-weight: 500; min-width: 20px; text-align: right; }
