.can-bo-shell {
  background:
    radial-gradient(circle at 76% 16%, rgba(150, 0, 0, 0.055), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}

.can-bo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.can-bo-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

.btn-red,
.btn-light {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.btn-red svg,
.btn-light svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.btn-red {
  border: 1px solid #c50000;
  background: #c50000;
  color: #fff;
  box-shadow: 0 6px 13px rgba(192, 0, 0, 0.24);
}

.btn-red:hover {
  background: #ad0000;
}

.btn-light {
  border: 1px solid #d8dee8;
  background: #fff;
  color: #172033;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-light:hover {
  border-color: #b70000;
  color: #b70000;
  background: #fffafa;
}

.officer-panel,
.profile-card {
  border: 1px solid #e3e7ee;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.officer-panel {
  padding: 20px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(4, minmax(145px, 0.8fr)) auto auto;
  gap: 20px 26px;
  align-items: end;
}

.officer-search {
  align-self: end;
}

.officer-table {
  min-width: 1180px;
}

.role-tag,
.status-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.role-admin {
  background: #e9d8ff;
  color: #7c2dff;
}

.role-leader {
  background: #dbeafe;
  color: #2563eb;
}

.role-staff,
.role-sub {
  background: #d7f5e5;
  color: #15803d;
}

.status-pill {
  background: #d8f5e4;
  color: #087c3d;
}

.status-locked {
  background: #ffead7;
  color: #e36b00;
}

.action-dots {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #dfe5ed;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.action-dots:hover {
  background: #fff0f0;
  color: #af0000;
}

.officer-action-menu {
  right: 12px;
  top: 46px;
}

.officer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  color: #07183b;
  font-size: 14px;
  font-weight: 600;
}

.officer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: 58px 24px;
  background: rgba(15, 23, 42, 0.44);
}

.officer-modal-backdrop[hidden] {
  display: none !important;
}

.officer-modal {
  width: min(880px, 100%);
  overflow: hidden;
  border: 1px solid #dde4ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 72px rgba(15, 23, 42, 0.28);
}

.officer-modal-head,
.officer-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e6ebf2;
  padding: 18px 26px;
}

.officer-modal-head h2 {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.close-icon-btn {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  color: #111827;
  transition: background 160ms ease, color 160ms ease;
}

.close-icon-btn:hover {
  background: #fff1f1;
  color: #a00000;
}

.close-icon-btn svg {
  width: 21px;
  height: 21px;
}

.officer-modal-body {
  max-height: min(70vh, 720px);
  overflow-y: auto;
  padding: 20px 26px 24px;
}

.officer-modal-foot {
  justify-content: flex-end;
  border-top: 1px solid #e6ebf2;
  border-bottom: 0;
}

.form-block-title {
  margin-bottom: 16px;
  color: #a00000;
  font-size: 14px;
  font-weight: 900;
}

.form-label b {
  color: #ef0000;
}

.modal-person-grid {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 28px;
}

.avatar-box {
  position: relative;
  display: grid;
  height: 196px;
  place-items: center;
  border: 1px dashed #b9c4d4;
  border-radius: 7px;
  background: #fbfcfe;
  color: #344054;
  text-align: center;
}

.avatar-placeholder {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 999px;
  background: #e7e9ef;
  color: #a7adba;
}

.avatar-placeholder svg {
  width: 42px;
  height: 42px;
}

.camera-dot {
  position: absolute;
  right: 36px;
  top: 86px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d6dce6;
  border-radius: 999px;
  background: #fff;
}

.camera-dot svg {
  width: 15px;
  height: 15px;
}

.choose-photo {
  margin-top: -14px;
  font-size: 13px;
  font-weight: 600;
}

.avatar-box small {
  margin-top: -32px;
  color: #667085;
  font-size: 11px;
  font-weight: 500;
}

.modal-fields,
.form-row-2,
.form-row-3 {
  display: grid;
  gap: 16px;
}

.form-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal-divider {
  margin: 24px -26px 20px;
  border-top: 1px solid #e6ebf2;
}

.account-search .field {
  padding-left: 42px;
}

.field-left-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #172033;
}

.clear-mini {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 5px;
  color: #475467;
}

.clear-mini svg {
  width: 15px;
  height: 15px;
}

.account-result {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8dee8;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  padding: 0 16px;
  color: #172033;
  font-size: 13px;
}

.modal-hint {
  margin-top: 12px;
  color: #8a94a6;
  font-size: 12px;
  font-weight: 500;
}

.profile-card {
  width: 100%;
  padding: 36px 34px;
}

.detail-page .profile-card {
  max-width: none;
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  border-bottom: 1px solid #e5e9f0;
  padding: 0 0 38px;
}

.profile-hero img {
  width: 176px;
  height: 176px;
  border-radius: 999px;
  object-fit: cover;
  background: #f7e9e9;
}

.profile-hero h2 {
  color: #111;
  font-size: 28px;
  font-weight: 900;
}

.active-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: currentColor;
}

.profile-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 54px;
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.info-row {
  display: grid;
  grid-template-columns: 24px minmax(128px, 160px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #e5e9f0;
  color: #46536a;
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row svg {
  width: 18px;
  height: 18px;
  color: #18243a;
}

.info-row strong {
  color: #111827;
  font-weight: 500;
}

.profile-edit-field {
  height: 38px;
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  background: #fff;
  padding: 0 11px;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.profile-edit-field:focus {
  border-color: #c50000;
  box-shadow: 0 0 0 3px rgba(197, 0, 0, 0.08);
}

textarea.profile-edit-field {
  min-height: 70px;
  padding-top: 9px;
  resize: vertical;
}

.assignment-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
}

.assignment-card h2 svg {
  color: #8c0000;
}

.assignment-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #e3e8f0;
  border-radius: 6px;
  color: #111827;
  font-size: 14px;
}

.assignment-table th,
.assignment-table td {
  border-bottom: 1px solid #e8edf3;
  padding: 15px 16px;
  text-align: left;
}

.assignment-table th {
  background: #fbfcfe;
  color: #344054;
  font-weight: 800;
}

@media (max-width: 1280px) {
  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .officer-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .can-bo-head,
  .officer-foot,
  .profile-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .can-bo-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .filter-grid,
  .modal-person-grid,
  .form-row-2,
  .form-row-3,
  .info-row,
  .profile-info {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    gap: 20px;
    padding-left: 0;
  }
}
