:root {
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #d9ded8;
  --brand: #246b63;
  --brand-strong: #174d47;
  --blue: #2f5f98;
  --red: #b4443f;
  --amber: #b87a1f;
  --green-soft: #e4f1ed;
  --red-soft: #f7e6e4;
  --blue-soft: #e7eef7;
  --shadow: 0 12px 32px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  min-height: 100vh;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(36, 107, 99, 0.1), transparent 38%),
    linear-gradient(315deg, rgba(184, 122, 31, 0.14), transparent 42%),
    var(--bg);
}

.login-card,
.panel,
.metric,
.record-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(520px, 100%);
  padding: 28px;
}

.brand-title {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.subtle {
  color: var(--muted);
  margin: 0;
}

.role-tabs,
.admin-tabs,
.direction-group {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef1ed;
}

.role-tabs {
  width: 100%;
  margin: 24px 0;
  grid-template-columns: 1fr 1fr;
}

.tab-btn,
.direction-btn {
  min-height: 40px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  padding: 0 14px;
  white-space: nowrap;
}

.tab-btn.active,
.direction-btn.active {
  background: var(--panel);
  color: var(--brand-strong);
  box-shadow: 0 4px 14px rgba(31, 41, 51, 0.08);
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #374151;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 107, 99, 0.13);
}

.primary-btn,
.ghost-btn,
.danger-btn,
.small-btn,
.icon-btn {
  min-height: 40px;
  border-radius: 6px;
  padding: 0 14px;
  white-space: nowrap;
}

.primary-btn {
  background: var(--brand);
  color: #fff;
}

.primary-btn:hover {
  background: var(--brand-strong);
}

.ghost-btn {
  background: #eef1ed;
  color: var(--ink);
}

.danger-btn {
  background: var(--red-soft);
  color: var(--red);
}

.small-btn {
  min-height: 34px;
  background: #eef1ed;
  color: var(--ink);
  font-size: 14px;
}

.icon-btn {
  width: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #eef1ed;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.identity {
  color: var(--muted);
}

.main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 32px) 40px;
}

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

.section-head h2,
.panel h2,
.panel h3 {
  margin: 0;
}

.section-head h2 {
  font-size: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 18px;
  align-items: start;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  padding: 18px;
}

.metric .label {
  color: var(--muted);
  font-size: 14px;
}

.metric .value {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
}

.metric .value.good {
  color: var(--brand);
}

.metric .value.bad {
  color: var(--red);
}

.panel,
.record-form {
  padding: 18px;
}

.panel + .panel,
.record-form + .panel {
  margin-top: 18px;
}

.record-form h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 150px auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f7;
}

.records-filter {
  grid-template-columns: 150px 160px 150px minmax(180px, 1fr) auto auto;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: #374151;
  font-size: 14px;
  background: #f1f4f0;
}

.score-plus {
  color: var(--brand);
  font-weight: 700;
}

.score-minus {
  color: var(--red);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 13px;
  background: #edf0ed;
  color: #374151;
}

.badge.reward {
  background: var(--green-soft);
  color: var(--brand-strong);
}

.badge.penalty {
  background: var(--red-soft);
  color: var(--red);
}

.badge.rental {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-active {
  color: var(--brand);
}

.status-disabled {
  color: var(--red);
}

.daily-list {
  display: grid;
  gap: 10px;
}

.daily-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.empty {
  color: var(--muted);
  padding: 18px 0;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
}

.student-app {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff8e8 0, #f5fbff 42%, #f7f7f4 100%);
}

.student-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(14px, 3vw, 30px);
  border-bottom: 1px solid rgba(217, 222, 216, 0.8);
  background: rgba(255, 252, 243, 0.92);
  backdrop-filter: blur(12px);
}

.student-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.student-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffe6a7;
  box-shadow: inset 0 -4px 0 rgba(184, 122, 31, 0.16);
  font-size: 24px;
}

.student-title h1 {
  margin: 0;
  font-size: 21px;
}

.student-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.student-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.student-nav {
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
  padding: 5px;
  border: 1px solid #eadfca;
  border-radius: 8px;
  background: #fff7df;
}

.student-nav-btn,
.student-logout,
.student-link-btn,
.student-cta,
.student-submit {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  white-space: nowrap;
}

.student-nav-btn {
  background: transparent;
  color: #6b5c45;
}

.student-nav-btn.active {
  background: #ffffff;
  color: #9a5a1e;
  box-shadow: 0 5px 16px rgba(184, 122, 31, 0.14);
}

.student-logout,
.student-link-btn {
  background: #edf4ff;
  color: #2f5f98;
}

.student-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px clamp(14px, 3vw, 30px) 42px;
}

.student-hero {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #eadfca;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff2bd 0%, #fef8ed 46%, #e5f5ef 100%);
  box-shadow: var(--shadow);
}

.student-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #9a5a1e;
  font-weight: 700;
}

.student-hero h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.08;
}

.student-hero p {
  margin: 10px 0 0;
  color: #6b5c45;
}

.student-cta,
.student-submit {
  background: #ffb84d;
  color: #3f2a12;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(184, 122, 31, 0.2);
}

.student-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.student-score-card,
.student-panel,
.student-record-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.student-score-card {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  padding: 18px;
}

.student-score-card.sunny {
  background: #fff7df;
}

.student-score-card.mint {
  background: #eaf8f1;
}

.student-score-card span,
.student-score-card small {
  color: var(--muted);
}

.student-score-card strong {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
}

.student-score-card strong.good,
.student-score-card b.good {
  color: var(--brand);
}

.student-score-card strong.bad,
.student-score-card b.bad {
  color: var(--red);
}

.student-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.student-panel,
.student-record-card {
  padding: 18px;
}

.student-record-card {
  display: grid;
  gap: 14px;
}

.student-panel.pastel {
  background: #f7f0ff;
}

.student-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.student-panel-head h3 {
  margin: 0;
  font-size: 20px;
}

.cute-daily-list,
.cute-record-list {
  display: grid;
  gap: 10px;
}

.cute-daily-row,
.cute-record-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #ece7dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.cute-daily-row {
  grid-template-columns: 1fr auto;
}

.cute-record-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.cute-record-row strong,
.cute-record-row small {
  display: block;
}

.cute-record-row small {
  margin-top: 2px;
  color: var(--muted);
}

.student-empty {
  color: var(--muted);
  padding: 14px 0;
}

.student-record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.item-groups {
  display: grid;
  gap: 18px;
}

.item-group h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.item-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.item-chip {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 4px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5decf;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.item-chip span {
  grid-row: 1 / span 2;
  font-size: 24px;
}

.item-chip b,
.item-chip small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-chip b {
  font-size: 14px;
}

.item-chip small {
  color: var(--muted);
  font-size: 12px;
}

.item-chip.disabled,
.item-chip:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  background: #f3f4f6;
  color: #6b7280;
}

.item-chip.disabled span,
.item-chip:disabled span {
  filter: grayscale(1);
}

.item-chip.reward.active {
  border-color: #f1b545;
  background: #fff4cf;
}

.item-chip.penalty.active {
  border-color: #e7909b;
  background: #fff0f2;
}

.item-chip.rental.active {
  border-color: #87add8;
  background: #eef6ff;
}

.selected-item-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
}

.selected-item-card.reward {
  background: #fff4cf;
}

.selected-item-card.penalty {
  background: #fff0f2;
}

.selected-item-card.rental {
  background: #eef6ff;
}

.selected-item-card > span {
  font-size: 34px;
}

.selected-item-card small,
.selected-item-card p,
.student-tip {
  color: var(--muted);
}

.selected-item-card h3,
.selected-item-card p {
  margin: 0;
}

.selected-item-card h3 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.student-tip {
  margin: 0;
  font-size: 13px;
}

.student-record-modal .student-submit {
  min-width: 112px;
}

.record-reminder {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.record-reminder span {
  font-size: 28px;
}

.record-reminder p {
  margin: 0;
}

.record-reminder.reward {
  background: #fff4cf;
  color: #7a4c0f;
}

.record-reminder.penalty {
  background: #fff0f2;
  color: #8b3438;
}

.record-reminder.rental {
  background: #eef6ff;
  color: #2f5f98;
}

.completion-box {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #f2d58b;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff9e8, #fffdf7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.completion-box.hidden {
  display: none;
}

.completion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.completion-box input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #ffb84d;
  cursor: pointer;
}

.completion-box input[type="range"]::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ffd36e, #ff9f68);
  box-shadow: inset 0 2px 3px rgba(122, 76, 15, 0.16);
}

.completion-box input[type="range"]::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -8px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #ff8f4d;
  box-shadow: 0 6px 14px rgba(184, 122, 31, 0.25);
  appearance: none;
}

.completion-box input[type="range"]::-moz-range-track {
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ffd36e, #ff9f68);
  box-shadow: inset 0 2px 3px rgba(122, 76, 15, 0.16);
}

.completion-box input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #ff8f4d;
  box-shadow: 0 6px 14px rgba(184, 122, 31, 0.25);
}

.completion-scale {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  color: #9a6a22;
  font-size: 12px;
  text-align: center;
}

.completion-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff0c2;
  color: #9a5a1e;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  background: #edf1ee;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d4dbd5;
  background: #1f2933;
  color: #eef2f0;
}

.admin-brand {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.admin-brand strong,
.admin-brand span {
  display: block;
}

.admin-brand strong {
  font-size: 17px;
}

.admin-brand span {
  margin-top: 2px;
  color: #aeb8b4;
  font-size: 12px;
}

.admin-menu {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
}

.admin-menu-item {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
  background: transparent;
  color: #c7d0cc;
  text-align: left;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-menu-item.active {
  border-left: 3px solid #5bc0a8;
}

.admin-workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 9;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 21px;
}

.admin-main {
  width: min(1440px, 100%);
  padding: 20px 24px 34px;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-stat .label {
  color: var(--muted);
  font-size: 14px;
}

.admin-stat strong {
  color: var(--brand);
  font-size: 34px;
  line-height: 1.1;
}

.admin-stat strong.bad {
  color: var(--red);
}

.admin-stat small {
  color: var(--muted);
}

.admin-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  color: #fff;
  background: #1f2933;
  box-shadow: var(--shadow);
}

.toast.error {
  background: var(--red);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 41, 51, 0.42);
}

.modal {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(31, 41, 51, 0.22);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

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

@media (max-width: 980px) {
  .dashboard-grid,
  .admin-panel-grid,
  .admin-content-grid,
  .student-home-grid,
  .student-record-layout {
    grid-template-columns: 1fr;
  }

  .metrics,
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 640px) {
  .login-page {
    padding: 14px;
  }

  .login-card,
  .panel,
  .record-form,
  .metric {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .student-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-actions,
  .student-nav {
    width: 100%;
  }

  .student-actions {
    align-items: stretch;
  }

  .student-nav {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    overflow-x: auto;
  }

  .student-logout {
    width: 100%;
  }

  .student-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid.two,
  .metrics,
  .student-score-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    height: auto;
    z-index: 20;
  }

  .admin-brand {
    min-height: 56px;
  }

  .admin-menu {
    grid-auto-flow: column;
    grid-auto-columns: minmax(92px, 1fr);
    overflow-x: auto;
    padding: 8px 10px 10px;
  }

  .admin-menu-item {
    text-align: center;
    padding: 0 10px;
  }

  .admin-menu-item.active {
    border-left: 0;
    border-bottom: 3px solid #5bc0a8;
  }

  .admin-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .admin-main {
    padding: 14px;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .records-filter {
    grid-template-columns: 1fr;
  }

  .item-chip-grid {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    padding: 0 10px;
  }
}
