/* Ressourcen-Tabelle im bestehenden RapidAlert-Tablet-Theme (dunkel / futuristisch) */

#tabResources > .res-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(100, 160, 220, 0.18);
  background: rgba(8, 17, 31, 0.55);
  box-shadow: inset 0 0 24px rgba(80, 160, 255, 0.04);
}

#tabResources .res-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#tabResources .res-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

#tabResources .res-table th {
  text-align: left;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(26, 52, 92, 0.95), rgba(12, 26, 48, 0.98));
  color: #84cbff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(100, 160, 220, 0.28);
  white-space: nowrap;
}

#tabResources .res-table th.col-narrow {
  width: 26%;
}

#tabResources .res-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(100, 160, 220, 0.1);
  vertical-align: middle;
  color: #d8eaff;
}

#tabResources .res-table tbody tr:nth-child(even) {
  background: rgba(14, 30, 54, 0.45);
}

#tabResources .res-table tbody tr:nth-child(odd) {
  background: rgba(8, 17, 31, 0.35);
}

#tabResources .resource-row {
  cursor: pointer;
  transition: background 0.12s ease;
}

#tabResources .resource-row:hover:not(.disabled):not(.resource-row-empty) {
  background: rgba(28, 62, 112, 0.55) !important;
}

#tabResources .resource-row.active {
  background: linear-gradient(90deg, rgba(20, 86, 57, 0.45), rgba(8, 24, 28, 0.75)) !important;
  box-shadow: inset 3px 0 0 #4ade80;
}

#tabResources .resource-row.active td {
  color: #c8f0d8;
  font-weight: 700;
}

#tabResources .resource-row.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#tabResources .resource-row-empty td {
  text-align: center;
  color: rgba(190, 220, 255, 0.45);
  font-size: 14px;
  font-weight: 700;
  padding: 20px;
  cursor: default;
}

#tabResources .cell-callsign {
  color: #f4f8ff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

#tabResources .cell-crew {
  color: rgba(214, 232, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

#tabResources .res-job-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: rgba(30, 200, 216, 0.15);
  color: #1ec8d8;
  border: 1px solid rgba(30, 200, 216, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
  text-transform: uppercase;
}

#tabResources .resource-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(100, 160, 255, 0.2);
  color: rgba(180, 215, 255, 0.58);
  background: rgba(100, 160, 255, 0.07);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#tabResources .resource-row.active .resource-status-pill {
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
}
