.onxon-staff-access,
.onxon-staff-portal { margin-top: 28px; }
.onxon-staff-eyebrow { display: inline-block; color: #e31b23; font-size: 12px; font-weight: 800; letter-spacing: .14em; margin-bottom: 6px; }
.onxon-staff-login-card { border-top: 4px solid #e31b23; }
.onxon-staff-notice { padding: 14px 16px; border-radius: 10px; margin: 0 0 18px; font-weight: 700; }
.onxon-staff-notice.ok { background: #eaf8ef; color: #156b35; }
.onxon-staff-notice.error { background: #fff0f0; color: #a51e24; }
.onxon-staff-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; border-radius: 16px; background: #111; color: #fff; margin-bottom: 18px; }
.onxon-staff-toolbar h2 { color: #fff; margin: 0 0 6px; }
.onxon-staff-toolbar p { margin: 0; color: #d5d5d5; }
.onxon-staff-secondary { border: 1px solid #fff; background: transparent; color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.onxon-staff-secondary-dark { border: 1px solid #222; background: #fff; color: #222; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.onxon-staff-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.onxon-staff-summary div { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 14px; text-align: center; }
.onxon-staff-summary b { display: block; font-size: 22px; }
.onxon-staff-summary span { font-size: 12px; color: #666; }
.onxon-staff-operations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.onxon-staff-operations div { background: #111; color: #fff; border-radius: 14px; padding: 18px; text-align: center; border-bottom: 4px solid #e31b23; }
.onxon-staff-operations b { display: block; color: #fff; font-size: 22px; }
.onxon-staff-operations span { display: block; color: #ddd; font-size: 12px; margin-top: 4px; }
.onxon-staff-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.onxon-staff-search input { flex: 1 1 220px; min-width: 180px; }
.onxon-staff-search select { flex: 1 1 160px; min-width: 160px; }
.onxon-staff-search .onxon-tm-btn { flex: 1 1 120px; max-width: 180px; margin: 0; }
.onxon-staff-count { color: #30343b; font-size: 14px; font-weight: 700; }
.onxon-staff-scroll-hint { display: none; margin: 0 0 8px; color: #30343b; font-size: 12px; font-weight: 800; text-align: center; }
.onxon-staff-table-scroll { display: block; width: 100%; max-width: 100%; overflow-x: auto !important; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: auto; padding-bottom: 8px; border: 1px solid #cbd2dc; border-radius: 14px; background: #fff; box-shadow: 0 9px 22px rgba(23,26,32,.10); }
.onxon-staff-student-table { width: 100%; min-width: 900px; margin: 0; border-collapse: separate; border-spacing: 0; background: #fff; }
.onxon-staff-student-table th,
.onxon-staff-student-table td { box-sizing: border-box; padding: 13px 14px; border-right: 1px solid #d7dce4; border-bottom: 1px solid #d7dce4; color: #171a20; font-size: 14px; line-height: 1.45; vertical-align: middle; }
.onxon-staff-student-table thead th { background: linear-gradient(135deg, #171a20, #30343d); color: #fff !important; font-weight: 900; letter-spacing: .03em; }
.onxon-staff-student-table tbody tr { background: #fff; }
.onxon-staff-student-table tbody tr:nth-child(even) { background: #f4f7fb; }
.onxon-staff-student-table tbody tr:hover,
.onxon-staff-student-table tbody tr:focus-within { background: #fff0b8; }
.onxon-staff-student-table th:first-child,
.onxon-staff-student-table td:first-child { position: sticky; left: 0; z-index: 2; min-width: 135px; background: inherit; box-shadow: 6px 0 8px -8px rgba(0,0,0,.45); }
.onxon-staff-student-table thead th:first-child { z-index: 3; }
.onxon-staff-student-id,
.onxon-staff-student-id:visited,
.onxon-staff-student-id:hover,
.onxon-staff-student-id:focus { color: #111 !important; font-weight: 800; text-decoration: none; }
.onxon-staff-status { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #eee; font-size: 12px; font-weight: 700; }
.onxon-staff-status.active { background: #e6f6ec; color: #126332; }
.onxon-staff-status.pending { background: #fff4d6; color: #805d00; }
.onxon-staff-status.inactive { background: #f0f0f0; color: #555; }
.onxon-staff-inline-form { display: flex; gap: 6px; align-items: center; min-width: 220px; }
.onxon-staff-inline-form select { min-width: 135px; }
.onxon-staff-inline-form button,
.onxon-staff-inline-status button { border: 0; background: #222; color: #fff; border-radius: 7px; padding: 7px 10px; cursor: pointer; }
.onxon-staff-inline-status { display: inline; margin-left: 10px; }
.onxon-staff-profile-head { display: flex; gap: 18px; align-items: center; background: #111; color: #fff; padding: 24px; border-radius: 16px; margin-bottom: 18px; }
.onxon-staff-profile-head img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; }
.onxon-staff-profile-head span { color: #ffcf33; font-weight: 800; }
.onxon-staff-profile-head h2 { color: #fff; margin: 4px 0; }
.onxon-staff-profile-head p { margin: 0; color: #ddd; }
.onxon-staff-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.onxon-staff-stats div { background: #fff; border: 1px solid #e8e8e8; border-radius: 14px; padding: 18px; text-align: center; }
.onxon-staff-stats b { display: block; font-size: 24px; }
.onxon-staff-stats span { display: block; color: #666; font-size: 13px; }
.onxon-staff-info-grid,
.onxon-staff-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.onxon-staff-management form { padding: 14px; background: #f7f7f7; border-radius: 12px; }
.onxon-staff-management select,
.onxon-staff-management input { display: block; width: 100%; margin: 8px 0 12px; }
.onxon-staff-training-editor form { padding: 16px; background: #f7f7f7; border-radius: 12px; }
.onxon-staff-training-editor h3 { margin-top: 0; }
.onxon-staff-training-editor label { margin-bottom: 10px; }
.onxon-staff-training-editor select,
.onxon-staff-training-editor input,
.onxon-staff-training-editor textarea { display: block; width: 100%; margin: 7px 0 12px; }
.onxon-staff-action-link {
  display: inline-flex;
  min-height: 38px;
  padding: 9px 14px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid #d9a400;
  border-radius: 10px;
  background: linear-gradient(145deg, #fffdf4, #ffd84f);
  color: #171a20 !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 4px 0 #b98200, 0 9px 18px rgba(85, 57, 0, .16);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.onxon-staff-action-link:hover,
.onxon-staff-action-link:focus-visible {
  filter: brightness(1.035);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b98200, 0 12px 22px rgba(85, 57, 0, .2);
  outline: 3px solid rgba(233, 31, 43, .25);
  outline-offset: 2px;
}
.onxon-staff-action-link:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #b98200, 0 5px 10px rgba(85, 57, 0, .14);
}
.onxon-staff-delete-form { margin-top: 16px; border: 1px solid #efb0b0; }
.onxon-staff-danger { border: 0; background: #b21f2d; color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 800; cursor: pointer; }
.onxon-staff-protected { padding: 12px 14px; background: #fff4d6; border-radius: 10px; color: #6e5300; }
.onxon-staff-back { font-weight: 700; }
.onxon-staff-help { font-size: 13px; color: #666; }
.onxon-staff-floating-scroll { position: fixed; bottom: 0; height: 20px; overflow-x: auto; overflow-y: hidden; z-index: 9999; display: none; background: #fff; border: 1px solid #bbb; border-bottom: 0; border-radius: 8px 8px 0 0; box-shadow: 0 -3px 12px rgba(0,0,0,.18); }
.onxon-staff-floating-scroll > div { height: 1px; }

@media (max-width: 900px) {
    .onxon-staff-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .onxon-staff-operations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .onxon-staff-toolbar { display: block; }
    .onxon-staff-toolbar form { margin-top: 18px; }
    .onxon-staff-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .onxon-staff-operations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .onxon-staff-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .onxon-staff-info-grid,
    .onxon-staff-action-grid { grid-template-columns: 1fr; }
    .onxon-staff-search { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .onxon-staff-search input,
    .onxon-staff-search select,
    .onxon-staff-search .onxon-tm-btn { width: 100%; min-width: 0; max-width: none; margin: 0; }
    .onxon-staff-search .onxon-tm-btn { border-radius: 12px; }
    .onxon-staff-scroll-hint { display: block; }
    .onxon-staff-table-scroll { margin-right: 0; }
    .onxon-staff-student-table { min-width: 880px; }
    .onxon-staff-inline-form { min-width: 190px; }
    .onxon-staff-floating-scroll { height: 24px; }
}
