/* Personnel — Crew Management mockup (milky + orange, square corners) */
.pnl-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: transparent;
  color: #2a241c;
  gap: 0;
}

.pnl-head {
  padding: 4px 20px 0;
  border-bottom: none;
  background: transparent;
  flex: 0 0 auto;
}

.pnl-breadcrumb {
  font-size: 12px;
  color: #a89888;
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 600;
}

.pnl-breadcrumb .clickable {
  cursor: pointer;
  color: #a89888;
}

.pnl-breadcrumb .clickable:hover {
  color: var(--gce-shell-orange, #1e3a8a);
}

.pnl-breadcrumb .active {
  color: #6b5d4f;
  font-weight: 700;
}

.pnl-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pnl-head-row h2 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #2a241c;
}

.pnl-subtitle {
  margin: 0;
  font-size: 13px;
  color: #8a7b6c;
  font-weight: 500;
}

.pnl-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.pnl-crews-search {
  min-width: 220px;
}

.pnl-ops-avatar {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gce-shell-orange, #1e3a8a);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 36px;
}

.pnl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  border-bottom: 1px solid rgba(226, 214, 198, 0.55);
  width: 100%;
}

.pnl-tabs--mockup {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(226, 214, 198, 0.55);
  border-radius: 0;
}

.pnl-tab {
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8a7b6c;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0;
  cursor: pointer;
  margin-bottom: -1px;
}

.pnl-tab:hover {
  color: #2a241c;
  background: transparent;
}

.pnl-tab.active {
  color: var(--gce-shell-orange, #1e3a8a);
  background: transparent;
  border-bottom-color: var(--gce-shell-orange, #1e3a8a);
  box-shadow: none;
}

.pnl-head .gce-market-banner-host {
  margin: 12px 0 0;
}

.pnl-body {
  flex: 1;
  min-height: 0;
  overflow: visible;
  padding: 14px 20px 24px;
}

.pnl-tab-panel {
  min-height: 0;
}

.pnl-tab-panel.hidden {
  display: none !important;
}

#personnel-crews-host .crw-page--embedded {
  gap: 14px;
  padding: 0;
}

#personnel-crews-host .crw-page-head {
  display: none;
}

/* Staff tab (Office & Staff) */
.pnl-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 14px;
  background: transparent;
  border-bottom: none;
}

.pnl-kpi {
  background: var(--gce-milk-card, rgba(255, 253, 250, 0.78));
  border: 1px solid var(--gce-milk-line, rgba(226, 214, 198, 0.55));
  border-radius: 0;
  padding: 12px 14px;
  box-shadow: var(--gce-milk-shadow, 0 10px 28px rgba(55, 40, 25, 0.06));
}

.pnl-kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a8b7a;
}

.pnl-kpi-val {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  color: #2a241c;
}

.pnl-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 0 14px;
  border-bottom: none;
}

.pnl-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--gce-milk-line, rgba(226, 214, 198, 0.55));
  border-radius: 0;
  background: rgba(255, 253, 250, 0.88);
}

.pnl-search-wrap span {
  color: #8a7b6c;
}

.pnl-search {
  border: none;
  outline: none;
  flex: 1;
  font: inherit;
  background: transparent;
  color: #2a241c;
}

.pnl-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pnl-chip {
  border: 1px solid var(--gce-milk-line, rgba(226, 214, 198, 0.55));
  background: rgba(255, 253, 250, 0.88);
  color: #6b5d4f;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 0;
  cursor: pointer;
}

.pnl-chip.active {
  background: rgba(30, 58, 138, 0.12);
  border-color: rgba(30, 58, 138, 0.45);
  color: var(--gce-shell-orange, #1e3a8a);
}

.pnl-btn-primary {
  background: var(--gce-shell-orange, #1e3a8a) !important;
  border-color: var(--gce-shell-orange, #1e3a8a) !important;
  color: #fff !important;
  border-radius: 0 !important;
}

.pnl-section {
  padding: 16px 0 24px;
}

.pnl-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #2a241c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pnl-count {
  font-weight: 700;
  color: #8a7b6c;
  text-transform: none;
  letter-spacing: 0;
}

.pnl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pnl-section--sys {
  margin-top: 8px;
  border-top: 1px solid var(--gce-milk-line, rgba(226, 214, 198, 0.55));
  padding-top: 20px;
}

.pnl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gce-milk-line, rgba(226, 214, 198, 0.55));
  border-radius: 0;
  background: var(--gce-milk-card, rgba(255, 253, 250, 0.78));
  box-shadow: var(--gce-milk-shadow, 0 10px 28px rgba(55, 40, 25, 0.06));
}

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

.pnl-table th,
.pnl-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(226, 214, 198, 0.35);
}

.pnl-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a8b7a;
  background: rgba(239, 246, 255, 0.92);
}

.pnl-table tr:last-child td {
  border-bottom: none;
}

.pnl-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 0;
}

.pnl-pill--office {
  background: rgba(219, 234, 254, 0.88);
  color: #c2410c;
  border: 1px solid rgba(30, 58, 138, 0.35);
}

.pnl-pill--field {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.pnl-pill--ok {
  background: #dcfce7;
  color: #166534;
}

.pnl-pill--muted {
  background: #f1f5f9;
  color: #64748b;
}

.pnl-pill--login {
  background: #fef3c7;
  color: #a16207;
  border: 1px solid #fcd34d;
}

.pnl-actions {
  white-space: nowrap;
}

.pnl-link-btn {
  border: none;
  background: transparent;
  color: var(--gce-shell-orange, #1e3a8a);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.pnl-link-btn--danger {
  color: #991b1b;
}

.pnl-empty,
.pnl-sys-empty {
  padding: 24px;
  text-align: center;
  color: #8a7b6c;
  font-size: 14px;
}

.pnl-add-panel {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid var(--gce-milk-line, rgba(226, 214, 198, 0.55));
  background: var(--gce-milk-card, rgba(255, 253, 250, 0.78));
}

.pnl-add-head h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #2a241c;
}

.pnl-add-head .muted {
  margin: 0;
  font-size: 12px;
  color: #8a7b6c;
}

.pnl-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pnl-add-grid .form-field label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a8b7a;
}

.pnl-add-grid input,
.pnl-add-grid select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid var(--gce-milk-line, rgba(226, 214, 198, 0.55));
  background: #fff;
  font: inherit;
  color: #2a241c;
}

.pnl-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 214, 198, 0.35);
}

@media (max-width: 960px) {
  .pnl-kpi-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .pnl-kpi-row,
  .pnl-add-grid {
    grid-template-columns: 1fr;
  }

  .pnl-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pnl-head-actions {
    width: 100%;
    margin-left: 0;
  }
}
