/* ===========================================
   TF LEGION ORBAT FRONT-END STYLES
   Clean, flat, dark-themed table layout
   No blue backgrounds or unwanted panels
   =========================================== */

/* GLOBAL WRAPPER */
.orbat-wrap {
  --text: #e6e9ef;
  --muted: #9aa4b2;
  --line: #2a2f38;

  color: var(--text);
  display: grid;
  gap: 2rem;
}

/* ===========================================
   UNIT HEADERS
   =========================================== */
.orbat-unit__title {
  margin: 0 0 .4rem 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  border-left: 4px solid #2b6cb0;
  padding-left: .6rem;
}

/* ===========================================
   ELEMENT BLOCKS (NO BACKGROUND)
   =========================================== */
.orbat-element {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

/* ELEMENT HEADER — REMOVE BLUE BAR */
.orbat-element__header {
  background: transparent !important;
  padding: 0 0 0.5rem 0;
  border-bottom: none !important;
}

.orbat-element__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===========================================
   TABLE STRUCTURE
   =========================================== */
.orbat-table {
  display: grid;
  background: transparent !important;
}

/* TABLE HEADER */
.orbat-table__head {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.6fr 1.1fr .9fr;
  padding: .65rem 0;
  font-weight: 700;
  font-size: .90rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .6px;
  background: transparent !important;
  border-bottom: 1px solid var(--line);
}

/* TABLE ROWS — NO BACKGROUNDS */
.orbat-table__row {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.6fr 1.1fr .9fr;
  padding: .65rem 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: transparent !important;
}

/* REMOVE ODD/EVENT BACKGROUND */
.orbat-table__row:nth-child(odd) {
  background: transparent !important;
}

/* ===========================================
   COLUMN STYLING
   =========================================== */
.c-pos { }
.c-rank { color: var(--muted); }
.c-name { font-weight: 700; }
.c-callsign { color: var(--muted); letter-spacing: .3px; }

.c-status {
  display: flex;
  justify-content: flex-end;
}

/* ===========================================
   STATUS BADGES (ENGLISH)
   =========================================== */
.status-badge {
  display: inline-block;
  padding: .2rem .55rem;
  font-size: .82rem;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid #3a4453;
}

/* Active = GREEN */
.status-badge.is-active {
  background: #0f2d19;
  border-color: #1f7a3d;
  color: #bff3d1;
}

/* Reserve = YELLOW/BROWN */
.status-badge.is-reserve {
  background: #30250f;
  border-color: #a9771b;
  color: #f9e4b7;
}

/* LOA = ORANGE */
.status-badge.is-loa {
  background: #2b1c10;
  border-color: #b25e1e;
  color: #ffd9b8;
}

/* MIA = RED */
.status-badge.is-mia {
  background: #2f1414;
  border-color: #b33a3a;
  color: #ffc9c9;
}

/* OPEN / TBD = BLUE */
.status-badge.is-open,
.status-badge.is-tbd {
  background: #111a33;
  border-color: #4c5bd6;
  color: #d8ddff;
}

/* ===========================================
   EMPTY STATE
   =========================================== */
.orbat-empty {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  background: transparent !important;
  border: 1px dashed var(--line);
}

/* ===========================================
   RESPONSIVE BEHAVIOR
   =========================================== */
@media (max-width: 900px) {
  .orbat-table__head,
  .orbat-table__row {
    grid-template-columns: 1fr .8fr 1.4fr .9fr .9fr;
  }
}

@media (max-width: 640px) {
  .orbat-table__head { display: none; }

  .orbat-table__row {
    grid-template-columns: 1fr 1fr;
    row-gap: .25rem;
    padding: .75rem 0;
  }

  .c-pos { grid-column: 1 / 2; font-weight: 600; }
  .c-rank { grid-column: 2 / 3; text-align: right; }
  .c-name { grid-column: 1 / 3; }
  .c-callsign { grid-column: 1 / 2; color: var(--muted); }
  .c-status { grid-column: 2 / 3; justify-content: flex-end; }
}
``