:root {
  --bg: #0f1720;
  --panel: #16212c;
  --panel-2: #1c2a37;
  --border: #2a3a48;
  --text: #e6edf3;
  --muted: #93a4b3;
  --accent: #ff6600;
  --accent-2: #0091d5;
  --ok: #2ecc71;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.banner {
  background: #3a1d00;
  color: #ffb066;
  text-align: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #5c3200;
}

header.top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

header.top .logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

header.top nav {
  display: flex;
  gap: 18px;
}

header.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}

header.top nav a:hover,
header.top nav a.active {
  color: var(--text);
  background: var(--panel-2);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
}

h1 {
  font-size: 22px;
  margin: 0 0 4px 0;
}

p.subtitle {
  color: var(--muted);
  margin: 0 0 24px 0;
  font-size: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #17110a;
  font-weight: 700;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover { filter: brightness(1.08); }

.btn.secondary {
  background: var(--accent-2);
  color: #06202c;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tr:hover td { background: var(--panel-2); }

.table-wrap { overflow-x: auto; }

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #0c2b1e;
  color: var(--ok);
}

.pill.training {
  background: #2b1a04;
  color: var(--accent);
}

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

form.inline { display: inline; }

/* --------------------------------------------------------------------
   Réplica visual de EFOS ("My Sectors" + detalle) — tema claro,
   deliberadamente distinto del resto de la app para que se note que
   esta parte imita la interfaz real que estamos leyendo.
   -------------------------------------------------------------------- */
.efos-shell {
  background: #eef0f2;
  color: #222;
  min-height: calc(100vh - 90px);
  padding: 20px;
}

.efos-panel {
  background: #fff;
  border: 1px solid #d5d9dd;
  border-radius: 4px;
  margin: 0 auto 16px auto;
  max-width: 1300px;
  padding: 16px 20px;
}

.efos-title-bar {
  max-width: 1300px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #d5d9dd;
}

.efos-title-bar .tab-label {
  background: #ee7d1f;
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
}

.efos-title-bar .tab-context {
  background: #e2e4e7;
  color: #333;
  padding: 10px 20px;
  flex: 1;
}

.efos-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
}

.efos-toolbar a {
  color: #1a6fb0;
  text-decoration: none;
}

.efos-note {
  background: #eef6fc;
  border: 1px solid #cfe4f2;
  color: #33607e;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.efos-month-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}

.efos-month-tabs a {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #d5d9dd;
  border-radius: 3px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  background: #f7f8f9;
}

.efos-month-tabs a.active {
  background: #22304a;
  color: #fff;
  border-color: #22304a;
}

.efos-btn-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.efos-btn {
  border: 1px solid #d5d9dd;
  background: #fff;
  color: #333;
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.efos-btn.active {
  background: #3f9142;
  color: #fff;
  border-color: #3f9142;
}

.efos-layout {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.efos-layout .main-col { flex: 1; min-width: 0; }

.efos-summary {
  width: 260px;
  flex-shrink: 0;
}

.efos-summary table { font-size: 13px; }
.efos-summary th, .efos-summary td { border-bottom: 1px solid #e5e7ea; padding: 6px 8px; }

.efos-table-wrap { overflow-x: auto; }

table.efos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: #fff;
}

table.efos-table th {
  background: #f2f3f5;
  color: #444;
  text-transform: none;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 8px;
  border: 1px solid #e2e4e7;
  white-space: nowrap;
}

table.efos-table td {
  padding: 6px 8px;
  border: 1px solid #e8eaec;
  white-space: nowrap;
  color: #222;
}

table.efos-table tr:nth-child(even) td { background: #fafbfc; }
table.efos-table a { color: #1a6fb0; font-weight: 600; text-decoration: none; }
table.efos-table a:hover { text-decoration: underline; }

.efos-report-icon {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #3f9142;
  color: #fff;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  font-weight: 700;
}

/* --- detalle de sector --- */
.efos-detail-layout {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  border: 1px solid #d5d9dd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.efos-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #2b3852;
}

.efos-sidebar .back {
  color: #cfd6e4;
  padding: 14px 16px;
  font-size: 13px;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid #3a4864;
}

.efos-sidebar a.tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #dbe1ec;
  padding: 12px 16px;
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px solid #34415c;
}

.efos-sidebar a.tab.active {
  background: #fff;
  color: #22304a;
  font-weight: 700;
}

.efos-sidebar .badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-left: 4px;
}
.efos-sidebar .badge.blue { background: #2f8fd8; }
.efos-sidebar .badge.purple { background: #8c6fc9; }

.efos-detail-content {
  flex: 1;
  min-width: 0;
  padding: 20px;
}

.efos-section-title {
  font-weight: 700;
  font-size: 13px;
  background: #f2f3f5;
  border: 1px solid #e2e4e7;
  border-bottom: none;
  padding: 8px 12px;
}

table.efos-kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 18px;
}

table.efos-kv th, table.efos-kv td {
  border: 1px solid #e2e4e7;
  padding: 8px 12px;
  text-align: left;
}

table.efos-kv th {
  background: #f7f8f9;
  width: 30%;
  font-weight: 600;
  color: #444;
}

.efos-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.efos-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.efos-pill-training {
  display: inline-block;
  background: #fdeee0;
  color: #b85c00;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}

.step {
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
