.administrator-table {
  min-width: 1420px;
}

.administrator-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 250px;
}

.administrator-row-button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid #cbd9ec;
  border-radius: 9px;
  cursor: pointer;
  background: #ffffff;
  color: #29405f;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.administrator-row-button:hover {
  border-color: #6b9ceb;
  background: #f4f8ff;
}

.administrator-row-button-danger {
  border-color: #fecaca;
  background: #fff7f7;
  color: #c53030;
}

.administrator-row-button-success {
  border-color: #bfe8d0;
  background: #f1fbf5;
  color: #16834d;
}

.administrator-action-note {
  color: #8390a2;
  font-size: 10px;
  white-space: nowrap;
}

.administrator-modal-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 31, 54, 0.48);
  backdrop-filter: blur(5px);
}

.administrator-modal-overlay[hidden] {
  display: none !important;
}

.administrator-modal {
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid #d7e3f3;
  border-radius: 23px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(14, 44, 86, 0.25);
}

.administrator-password-modal {
  width: min(520px, 100%);
}

.administrator-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 24px;
  border-bottom: 1px solid #e8eef7;
}

.administrator-modal-header h3 {
  margin: 0;
  color: #10233f;
  font-size: 21px;
}

.administrator-modal-header p {
  margin: 6px 0 0;
  color: #718096;
  font-size: 12px;
}

.administrator-modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d5e0ef;
  border-radius: 11px;
  cursor: pointer;
  background: #ffffff;
  color: #52637a;
  font-size: 20px;
}

.administrator-manage-form {
  display: grid;
  gap: 20px;
  padding: 23px 24px 25px;
}

.administrator-manage-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.administrator-manage-field {
  display: grid;
  gap: 7px;
}

.administrator-manage-field[hidden] {
  display: none !important;
}

.administrator-manage-field-full {
  grid-column: 1 / -1;
}

.administrator-manage-field label {
  color: #40536c;
  font-size: 12px;
  font-weight: 750;
}

.administrator-manage-field input,
.administrator-manage-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cad8ea;
  border-radius: 11px;
  outline: none;
  background: #fbfdff;
  color: #182a43;
  font: inherit;
}

.administrator-manage-field input:focus,
.administrator-manage-field select:focus {
  border-color: #3977e8;
  box-shadow: 0 0 0 3px rgba(57, 119, 232, 0.12);
}

.administrator-city-selection {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  padding: 11px;
  border: 1px solid #d8e3f1;
  border-radius: 12px;
  background: #f9fbfe;
}

.administrator-city-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
  border-radius: 9px;
  background: #ffffff;
  color: #42536c;
  font-size: 11px;
  line-height: 1.4;
}

.administrator-city-choice input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.administrator-city-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: #7b899c;
  text-align: center;
  font-size: 12px;
}

.administrator-manage-hint {
  color: #7a899c;
  font-size: 10px;
  line-height: 1.5;
}

.administrator-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 3px;
}

.administrator-modal-actions button {
  min-width: 140px;
}

@media (max-width: 720px) {
  .administrator-modal-overlay {
    align-items: start;
    padding: 12px;
  }

  .administrator-modal {
    max-height: calc(100vh - 24px);
  }

  .administrator-manage-grid,
  .administrator-city-selection {
    grid-template-columns: 1fr;
  }

  .administrator-manage-field-full {
    grid-column: auto;
  }

  .administrator-modal-actions {
    flex-direction: column-reverse;
  }

  .administrator-modal-actions button {
    width: 100%;
  }
}

/* ===== Sticky Administrator Action Column ===== */

.administrator-table-wrap {
  position: relative;
  overflow-x: auto;
}

.administrator-table th:last-child,
.administrator-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 245px;
  min-width: 245px;
  background: #ffffff;
  box-shadow: -10px 0 18px rgba(28, 58, 98, 0.07);
}

.administrator-table th:last-child {
  z-index: 6;
  background: #f7faff;
}

.administrator-table tbody tr:hover td:last-child {
  background: #f8fbff;
}

.administrator-row-actions {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 215px;
}

.administrator-row-button {
  width: 100%;
  padding: 0 8px;
  text-align: center;
}

.administrator-row-button-danger,
.administrator-row-button-success {
  grid-column: 1 / -1;
}

.administrator-action-note {
  display: block;
  width: 215px;
  color: #8390a2;
  line-height: 1.5;
  white-space: normal;
}

@media (max-width: 760px) {
  .administrator-table th:last-child,
  .administrator-table td:last-child {
    position: static;
    width: 230px;
    min-width: 230px;
    box-shadow: none;
  }
}

/* ===== Sticky Status, Proteksi, dan Aksi ===== */

.administrator-table {
  min-width: 1580px;
}

.administrator-table th:nth-last-child(3),
.administrator-table td:nth-last-child(3) {
  position: sticky;
  right: 350px;
  z-index: 3;
  width: 90px;
  min-width: 90px;
  background: #ffffff;
}

.administrator-table th:nth-last-child(2),
.administrator-table td:nth-last-child(2) {
  position: sticky;
  right: 245px;
  z-index: 3;
  width: 105px;
  min-width: 105px;
  background: #ffffff;
}

.administrator-table th:last-child,
.administrator-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 245px;
  min-width: 245px;
  background: #ffffff;
  box-shadow: -10px 0 18px rgba(28, 58, 98, 0.07);
}

.administrator-table th:nth-last-child(3),
.administrator-table th:nth-last-child(2),
.administrator-table th:last-child {
  z-index: 6;
  background: #f7faff;
}

.administrator-table tbody tr:hover td:nth-last-child(3),
.administrator-table tbody tr:hover td:nth-last-child(2),
.administrator-table tbody tr:hover td:last-child {
  background: #f8fbff;
}

@media (max-width: 760px) {
  .administrator-table th:nth-last-child(3),
  .administrator-table td:nth-last-child(3),
  .administrator-table th:nth-last-child(2),
  .administrator-table td:nth-last-child(2),
  .administrator-table th:last-child,
  .administrator-table td:last-child {
    position: static;
    right: auto;
    box-shadow: none;
  }
}

/* ===== Sticky Status, Proteksi, dan Aksi ===== */

.administrator-table {
  min-width: 1580px;
}

.administrator-table th:nth-last-child(3),
.administrator-table td:nth-last-child(3) {
  position: sticky;
  right: 350px;
  z-index: 3;
  width: 90px;
  min-width: 90px;
  background: #ffffff;
}

.administrator-table th:nth-last-child(2),
.administrator-table td:nth-last-child(2) {
  position: sticky;
  right: 245px;
  z-index: 3;
  width: 105px;
  min-width: 105px;
  background: #ffffff;
}

.administrator-table th:last-child,
.administrator-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 245px;
  min-width: 245px;
  background: #ffffff;
  box-shadow: -10px 0 18px rgba(28, 58, 98, 0.07);
}

.administrator-table th:nth-last-child(3),
.administrator-table th:nth-last-child(2),
.administrator-table th:last-child {
  z-index: 6;
  background: #f7faff;
}

.administrator-table tbody tr:hover td:nth-last-child(3),
.administrator-table tbody tr:hover td:nth-last-child(2),
.administrator-table tbody tr:hover td:last-child {
  background: #f8fbff;
}

@media (max-width: 760px) {
  .administrator-table th:nth-last-child(3),
  .administrator-table td:nth-last-child(3),
  .administrator-table th:nth-last-child(2),
  .administrator-table td:nth-last-child(2),
  .administrator-table th:last-child,
  .administrator-table td:last-child {
    position: static;
    right: auto;
    box-shadow: none;
  }
}

/* ===== Managed Cities Inside Region Column ===== */

.administrator-table {
  min-width: 1450px;
}

.administrator-cities-inline {
  margin-top: 7px;
  max-width: 300px;
}

.administrator-table td:nth-child(5) {
  min-width: 250px;
}

/* ===== Sticky Administrator Identity Column ===== */

.administrator-table th:first-child,
.administrator-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  width: 285px;
  min-width: 285px;
  background: #ffffff;
  box-shadow: 10px 0 18px rgba(28, 58, 98, 0.06);
}

.administrator-table th:first-child {
  z-index: 8;
  background: #f7faff;
}

.administrator-table tbody tr:hover td:first-child {
  background: #f8fbff;
}

.administrator-profile {
  min-width: 245px;
}

.administrator-profile strong,
.administrator-profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.administrator-profile > span:last-child {
  min-width: 0;
  max-width: 205px;
}

/*
 * Lebar tabel diseimbangkan:
 * identitas kiri tetap terlihat,
 * status/proteksi/aksi tetap terlihat di kanan.
 */
.administrator-table {
  min-width: 1520px;
}

@media (max-width: 760px) {
  .administrator-table th:first-child,
  .administrator-table td:first-child {
    position: static;
    left: auto;
    box-shadow: none;
  }
}

/* ===== Compact Administrator Table Final ===== */

.administrator-table {
  min-width: 1220px;
}

.administrator-table th:first-child,
.administrator-table td:first-child {
  width: 330px;
  min-width: 330px;
}

.administrator-profile {
  min-width: 285px;
}

.administrator-profile > span:last-child {
  max-width: 245px;
}

.administrator-profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.administrator-role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #53657d;
  font-size: 10px;
  font-weight: 750;
}

.administrator-table th:nth-child(2),
.administrator-table td:nth-child(2) {
  width: 170px;
  min-width: 170px;
}

.administrator-table th:nth-child(3),
.administrator-table td:nth-child(3) {
  width: 330px;
  min-width: 330px;
}
