/* AURA · Oficina Virtual — paleta real de marca (manual de marca AURA mkt):
   azul #2c68c3, celeste #55d5d0, lima #c4fb78, sobre negro. */
:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --ink: #f5f5f5;
  --muted: #96968f;
  --line: #262626;
  --brand-blue: #2c68c3;
  --brand-teal: #55d5d0;
  --brand-lime: #c4fb78;
  --accent: var(--brand-teal);
  --accent-ink: #05100f;
  --green: #22c55e;
  --amber: #fbbf24;
  --red: #f87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f5;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #eeeeec;
    --ink: #111111;
    --muted: #68675f;
    --line: #e2e1db;
    --accent: #0d9c95;
    --accent-ink: #ffffff;
    --green: #16a34a;
    --amber: #b45309;
    --red: #dc2626;
    --shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 12px 32px -16px rgba(17, 17, 17, 0.18);
    color-scheme: light;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-2: #0a0a0a; --surface: #121212; --surface-2: #1a1a1a;
  --ink: #f5f5f5; --muted: #96968f; --line: #262626;
  --accent: var(--brand-teal); --accent-ink: #05100f;
  --green: #22c55e; --amber: #fbbf24; --red: #f87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f7f5; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #eeeeec;
  --ink: #111111; --muted: #68675f; --line: #e2e1db;
  --accent: #0d9c95; --accent-ink: #ffffff;
  --green: #16a34a; --amber: #b45309; --red: #dc2626;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 12px 32px -16px rgba(17, 17, 17, 0.18);
  color-scheme: light;
}

* { box-sizing: border-box; }

/* Critico: cualquier elemento con el atributo "hidden" tiene que quedar oculto
   de verdad, aunque mas abajo le pongamos display:flex/grid a esa misma clase
   (una regla propia le gana por defecto a la regla nativa del navegador). */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Login ---------- */
.login-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
.login-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(36% 36% at 20% 25%, color-mix(in srgb, var(--brand-blue) 26%, transparent) 0%, transparent 70%),
    radial-gradient(32% 32% at 80% 75%, color-mix(in srgb, var(--brand-lime) 16%, transparent) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.login-card {
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  width: min(420px, 92vw);
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.login-logo { height: 220px; width: auto; margin: 0 auto; display: block; }
.login-tag {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#login-form { display: flex; flex-direction: column; gap: 2px; text-align: left; }
#login-form .field label { text-transform: uppercase; letter-spacing: 0.06em; }
#login-form input {
  text-align: center;
  font-size: 15px;
  padding: 10px 12px;
}
.login-submit { width: 100%; margin-top: 8px; padding: 11px; border-radius: 999px; font-size: 14px; }
.login-error {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--red);
  line-height: 1.4;
}

/* ---------- Shell / sidenav ---------- */
.shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 100vh;
}
.sidenav {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidenav-brand { padding: 0 4px; }
.sidenav-brand img { height: 88px; width: auto; display: block; margin: 0 auto; }
.sidenav-items { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-ico { font-size: 12px; opacity: 0.85; width: 14px; text-align: center; flex: none; }
.nav-item:hover { background: var(--surface); color: var(--ink); }
.nav-item[aria-selected="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-left-color: var(--accent);
}
.sidenav-foot { display: flex; flex-direction: column; gap: 8px; }

/* Panel oculto de admin: nada de texto que lo delate, solo tres puntitos
   discretos arriba del chip del usuario. */
.admin-toggle {
  appearance: none; border: none; background: transparent;
  color: var(--line); font-size: 11px; letter-spacing: 0.2em;
  text-align: left; padding: 4px 10px; cursor: pointer; align-self: flex-start;
}
.admin-toggle:hover { color: var(--muted); }
.admin-panel {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 50vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; margin: 0 2px;
}
.admin-persona { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.admin-persona:last-child { border-bottom: none; padding-bottom: 0; }
.admin-persona-nombre { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.admin-persona-fila { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.admin-persona-fila label { font-size: 11px; color: var(--muted); width: 32px; flex: none; }
.admin-persona-fila input {
  font: inherit; font-size: 12.5px; padding: 5px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%;
}
.paleta-mini { margin: 6px 0; }
.paleta-mini .color-swatch { width: 22px; height: 22px; }
.admin-persona .btn { width: 100%; margin-top: 2px; }

.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.user-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex: none;
}
.user-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.nav-item-ghost { color: var(--muted); font-size: 12px; }

.main { padding: 26px 30px 60px; min-width: 0; }
.main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.main-head h1 { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.main-head-acciones { display: flex; align-items: center; gap: 10px; }
.reloj {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}

.campana-wrap { position: relative; }
.campana-btn { position: relative; font-size: 15px; line-height: 1; padding: 7px 11px; }
.campana-badge {
  position: absolute; top: 3px; right: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg-2);
}
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80;
  width: min(340px, 90vw); max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px;
}
.notif-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 10px; }
.notif-panel-head .btn { font-size: 11px; padding: 4px 8px; }
.notif-lista { display: flex; flex-direction: column; gap: 8px; }
.notif-item { background: var(--surface-2); border-radius: 8px; padding: 9px 10px; font-size: 12.5px; cursor: pointer; border-left: 3px solid transparent; }
.notif-item.no-leida { border-left-color: var(--accent); }
.notif-item-mensaje { color: var(--ink); }
.notif-item-meta { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

.btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 13px;
  cursor: pointer;
  border: 1px solid var(--line);
}
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.panel { display: none; }
.panel.is-active { display: block; }

/* ---------- Mi oficina ---------- */
.oficina-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.oficina-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 16px;
}
.oficina-card h3 {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.oficina-card .big { font-size: 28px; font-weight: 800; margin: 4px 0 10px; color: var(--accent); }
.oficina-list { display: flex; flex-direction: column; gap: 8px; }
.oficina-card form .field:first-of-type { margin-top: 10px; }

.paleta-colores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.color-swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; padding: 0;
}
.color-swatch.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg); }
.color-swatch.is-ocupado { cursor: not-allowed; opacity: 0.35; }

.notas-card { grid-column: 1 / -1; }
.nota-form { display: flex; gap: 8px; margin: 10px 0 14px; }
.nota-form textarea {
  flex: 1;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
/* Corcho: las notas se posicionan libres (arrastrables) y se pueden agrandar
   con el grip nativo del navegador (resize: both). */
.corcho { position: relative; min-height: 340px; }
.nota {
  position: absolute;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
  min-height: 90px;
  resize: both;
  overflow: auto;
  cursor: grab;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}
.nota.se-arrastra { cursor: grabbing; opacity: 0.85; z-index: 50; }
.nota-texto {
  font-size: 12.5px;
  line-height: 1.4;
  white-space: pre-wrap;
  flex: 1;
  outline: none;
  cursor: text;
  overflow-y: auto;
}
.nota-acciones { display: flex; gap: 8px; justify-content: flex-end; position: relative; }
.nota-acciones button {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
}
.nota-acciones button:hover { color: var(--accent); }
.nota-menu {
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 190px;
  box-shadow: var(--shadow);
  cursor: default;
}
.nota-menu-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.nota-menu-fila button {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
}
.nota-menu-fila input[type="color"] { width: 34px; height: 26px; border: none; background: none; cursor: pointer; padding: 0; }
.nota-menu-fila input[type="range"] { flex: 1; }

/* ---------- Boards ---------- */
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.col {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 90px;
  transition: background 0.12s ease;
}
.col.is-dragover { background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 2px;
}
.col-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.col-reordenar {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); border-radius: 6px; width: 22px; height: 22px;
  font-size: 12px; line-height: 1; cursor: pointer; flex: none;
}
.col-reordenar:hover { color: var(--ink); border-color: var(--accent); }
.col-count {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 20px;
  padding: 1px 8px;
  font-variant-numeric: tabular-nums;
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.card {
  background: var(--surface);
  border-radius: 9px;
  padding: 10px 11px 11px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: 1px solid transparent;
}
.card:hover { border-color: var(--accent); }
.card.is-dragging { opacity: 0.4; }
.card.es-oculta { opacity: 0.5; border-style: dashed; border-color: var(--line); }
.card-top { display: flex; align-items: center; gap: 8px; }
.card-check { display: flex; flex: none; cursor: pointer; }
.card-check input { width: 15px; height: 15px; cursor: pointer; margin: 0; }
.card-top .card-title { flex: 1; margin: 0; }
.card-ocultar {
  appearance: none; border: none; background: transparent; flex: none;
  color: var(--muted); font-size: 12px; cursor: pointer; padding: 2px;
  opacity: 0; transition: opacity 0.12s ease;
}
.card:hover .card-ocultar { opacity: 1; }
.card-ocultar:hover { color: var(--accent); }
.card-title { font-size: 13.5px; font-weight: 700; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.note { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

.add-card {
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 9px;
  padding: 8px;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.add-card:hover { color: var(--ink); border-color: var(--accent); }

dialog {
  border: none;
  border-radius: 14px;
  padding: 20px;
  width: min(420px, 90vw);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
dialog h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 13.5px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.campo-checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink); font-weight: 400; cursor: pointer;
}
.campo-checkbox input { width: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.empty { color: var(--muted); font-size: 13px; padding: 12px 4px; }

/* ---------- Sub-pestañas (Clientes / Tareas) ---------- */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.subtab {
  appearance: none; border: none; background: transparent;
  color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700;
  padding: 8px 14px; cursor: pointer; border-bottom: 2px solid transparent;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.subtab:hover { color: var(--ink); }
.subtab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.subpanel { display: none; }
.subpanel.is-active { display: block; }
.subtabs-internas { margin-bottom: 14px; }
.subtabs-internas .subtab { padding: 6px 12px; font-size: 11.5px; }
.vista-interna { display: none; }
.vista-interna.is-active { display: block; }

/* ---------- Lista de clientes ---------- */
.lista-filtros { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.lista-filtros input, .lista-filtros select {
  font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.lista-filtros input { flex: 1; min-width: 180px; }
.lista-filtros .btn { margin-left: auto; }

.tabla-clientes { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; }
.tabla-clientes th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.tabla-clientes td { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.tabla-clientes tr:last-child td { border-bottom: none; }
.tabla-clientes tbody tr { cursor: pointer; }
.tabla-clientes tbody tr:hover { background: var(--surface-2); }
.tabla-clientes tr.fila-inactiva { opacity: 0.55; }
.estado-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.estado-select {
  font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer;
}
.estado-inline .btn { font-size: 11.5px; padding: 5px 10px; white-space: nowrap; }

/* ---------- Dialogo grande de cliente ---------- */
/* Ojo: el "display: flex" va atado a [open], si no el dialogo queda visible
   (fuera de su posicion de modal) aunque este cerrado -- mismo problema que
   el atributo "hidden" mas arriba. */
.cliente-dialog { width: min(680px, 92vw); max-height: 86vh; padding: 0; overflow: hidden; }
.cliente-dialog[open] { display: flex; flex-direction: column; }
.cliente-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.cliente-dialog-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.cliente-dialog-tabs { display: flex; gap: 4px; padding: 14px 22px 0; border-bottom: 1px solid var(--line); }
.cliente-dialog-body { padding: 18px 22px 22px; overflow-y: auto; }
.cliente-tab { display: none; }
.cliente-tab.is-active { display: block; }

.foto-form { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.foto-form input[type="text"], .foto-form select {
  font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); flex: 1; min-width: 120px;
}
.fotos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.foto-item { background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.foto-item img { width: 100%; height: 100px; object-fit: cover; display: block; }
.foto-meta { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; font-size: 10.5px; color: var(--muted); gap: 4px; }
.foto-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foto-meta a, .foto-meta button { background: transparent; border: none; color: var(--muted); cursor: pointer; flex: none; text-decoration: none; }
.foto-meta a:hover, .foto-meta button:hover { color: var(--accent); }
.foto-meta button:hover { color: var(--red); }

/* ---------- Clientes: Semáforo (lista en acordeon por cliente) ---------- */
.semaforo-head { margin-bottom: 14px; }
.fila-semaforo { margin-bottom: 8px; }
.fila-semaforo-head {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: 10px; padding: 12px 14px; cursor: pointer;
}
.fila-semaforo-head:hover { border-color: var(--accent); }
.fila-semaforo-head strong { flex: 1; }
.fila-semaforo-flecha { font-size: 10px; color: var(--muted); }
.fila-semaforo-detalle {
  background: var(--surface-2); border-radius: 0 0 10px 10px; padding: 16px;
  margin: -6px 4px 0; border: 1px solid var(--line); border-top: none;
}
.semaforo-detalle-acciones { margin-bottom: 14px; }

.historial-lista { display: flex; flex-direction: column; gap: 10px; }
.historial-item { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.historial-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.historial-meta button { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 12px; flex: none; padding: 0 2px; }
.historial-meta button:hover { color: var(--red); }

/* ---------- Pestaña Producción del cliente ---------- */
.produccion-objetivo { font-size: 12.5px; color: var(--muted); margin: -8px 0 16px; }
.produccion-subtitulo { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 8px; }
.produccion-objetivos-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.produccion-objetivos-form .field { margin-bottom: 0; }
.produccion-checklist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.produccion-check-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.produccion-check-label { font-size: 12.5px; font-weight: 700; min-width: 150px; }
.produccion-check-grupo { display: flex; flex-wrap: wrap; gap: 6px; }
.produccion-check {
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface-2); color: transparent;
  cursor: pointer; font-size: 13px; font-weight: 800; padding: 0;
}
.produccion-check.is-hecho { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---------- Tareas: Rendimiento de equipo ---------- */
.rendimiento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 8px; }
.rendimiento-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 12px; padding: 14px; }
.rendimiento-card-nombre { font-size: 13.5px; font-weight: 800; margin-bottom: 8px; }
.rendimiento-card-fila { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding: 3px 0; }
.rendimiento-card-fila strong { color: var(--ink); font-size: 13px; }

/* ---------- FullCalendar, theming a la marca ---------- */
#calendario-tareas, #calendario-producciones {
  background: var(--surface); border-radius: 14px; padding: 16px; border: 1px solid var(--line);
}
.fc { --fc-border-color: var(--line); --fc-page-bg-color: transparent; --fc-neutral-bg-color: var(--surface-2); }
.fc .fc-toolbar-title { color: var(--ink); font-size: 16px; font-weight: 800; }
.fc .fc-button {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  text-transform: capitalize; box-shadow: none;
}
.fc .fc-button:hover { background: var(--accent); color: var(--accent-ink); }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.fc .fc-daygrid-day-number, .fc .fc-col-header-cell-cushion { color: var(--ink); }
.fc .fc-day-today { background: color-mix(in srgb, var(--accent) 10%, transparent) !important; }
.fc-event { border: none; font-size: 11px; padding: 1px 4px; cursor: pointer; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
  }
  .sidenav-items { flex-direction: row; }
  .sidenav-foot { flex-direction: row; }
  .board { grid-auto-columns: 78vw; }
}
