/* ============================================================
   SHELL de Bitácora de Rodeo (nuevo frontend, BIT-05) — Header +
   Sidebar + Área de contenido. Independiente del portal legacy en
   la raíz; solo reusa tokens.css para mantener la misma identidad
   visual (paleta, tipografía).
   ============================================================ */

* { box-sizing: border-box; }

.rodeo-body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  overflow: hidden;
  margin: 0;
}

.rodeo-header {
  flex-shrink: 0;
  padding: 12px 22px;
  background: var(--dark-teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rodeo-header-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  color: #fff; font-size: 15px;
}
.rodeo-header-brand img { height: 28px; }

.rodeo-header-establecimiento select {
  font-family: var(--font-body);
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.rodeo-header-establecimiento select option {
  color: #222;
  background: #fff;
}
.rodeo-header-establecimiento span { color: rgba(255,255,255,0.85); font-size: 13px; }

.rodeo-header-user {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,0.85);
}
.rodeo-header-user .rol-badge {
  font-family: var(--font-display);
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rodeo-header-user button {
  font-family: var(--font-body);
  background: none; border: none; color: rgba(255,255,255,0.75);
  text-decoration: underline; cursor: pointer; font-size: 12px;
}
.rodeo-header-user button:hover { color: #fff; }

.rodeo-body-row { flex: 1; display: flex; overflow: hidden; }

.rodeo-sidebar {
  width: 190px; flex-shrink: 0;
  background: var(--surface2);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.rodeo-sidebar-item {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
}
.rodeo-sidebar-item.active { background: var(--surface); color: var(--dark-teal); font-weight: 600; }

.rodeo-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

.rodeo-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.rodeo-view-header h2 { margin: 0; }
.rodeo-empty { color: var(--muted); font-size: 14px; }

.rodeo-loading, .rodeo-error { color: var(--muted); font-size: 14px; }
.rodeo-error { color: #8c1a1a; }

.rodeo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px var(--border);
}
.rodeo-card h2 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--dark-teal);
  margin: 0 0 12px;
}
.rodeo-check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.rodeo-check-list li { display: flex; align-items: center; gap: 8px; }
.rodeo-check-ok { color: #1a5c2a; }
.rodeo-check-fail { color: #8c1a1a; }

.rodeo-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rodeo-card-header h2 { margin: 0; }

.rodeo-btn {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  background: var(--orange); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 8px 16px; letter-spacing: 0.02em;
}
.rodeo-btn:hover { opacity: 0.85; }
.rodeo-btn:disabled { background: var(--faint); color: #fff; cursor: not-allowed; opacity: 0.7; }
.rodeo-btn-guardado:disabled { background: #d4edda; color: #1a5c2a; opacity: 1; }

.rodeo-link-btn {
  font-family: var(--font-body); font-size: 12px; color: var(--muted);
  background: none; border: none; text-decoration: underline; cursor: pointer;
  padding: 0; margin-left: 12px;
}
.rodeo-link-btn:hover { color: var(--text); }

.rodeo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rodeo-table th { text-align: left; font-family: var(--font-display); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.rodeo-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.rodeo-table-acciones a { color: var(--dark-teal); font-weight: 600; text-decoration: none; }
.rodeo-table-acciones a:hover { text-decoration: underline; }

.rodeo-form-acciones { display: flex; align-items: center; margin-top: 4px; }
.rodeo-hint { color: var(--faint); font-size: 12px; margin: -6px 0 14px; }
.rodeo-required { color: #8c1a1a; }
.rodeo-inline-form {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px 0 12px;
}
