@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #18352f;
  --muted: #71817b;
  --green: #14785d;
  --green-dark: #0e6049;
  --mint: #e8f4ee;
  --line: #e4ebe7;
  --surface: #ffffff;
  --page: #f3f7f5;
  --danger: #b53d3d;
  font-family: "Poppins", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 14% 29%, rgba(219, 239, 227, 0.68), transparent 34%),
    var(--page);
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  max-width: 1240px;
  flex-direction: column;
  margin: 0 auto;
  padding: env(safe-area-inset-top) max(64px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(64px, env(safe-area-inset-left));
}

.site-header {
  display: flex;
  height: 92px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(37, 74, 61, 0.09);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
}

.brand-name {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.8px;
  text-transform: uppercase;
}

.brand-name span {
  color: var(--green);
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #61736c;
  font-size: 13px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43a87d;
  box-shadow: 0 0 0 4px rgba(67, 168, 125, 0.12);
}

.main-grid {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding: 64px 0 76px;
}

.intro {
  max-width: 490px;
  padding-bottom: 12px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 800;
  letter-spacing: -2.7px;
  line-height: 1.16;
}

h1 span {
  color: var(--green);
}

.intro-copy {
  max-width: 410px;
  margin-bottom: 26px;
  color: #667770;
  font-size: 15px;
  line-height: 1.8;
}

.trust-note {
  display: flex;
  max-width: 385px;
  align-items: center;
  gap: 10px;
  color: #708078;
  font-size: 12px;
  line-height: 1.6;
}

.lock-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: #e4f0e9;
}

.lock-icon svg {
  width: 18px;
}

.lookup-card {
  padding: 32px;
  border: 1px solid rgba(38, 77, 61, 0.06);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(26, 67, 49, 0.09);
}

.card-heading,
.result-heading,
.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-heading {
  margin-bottom: 26px;
}

.card-heading .eyebrow,
.result-heading .eyebrow,
.scanner-header .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}

.card-heading h2,
.scanner-header h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--green);
  background: var(--mint);
}

.card-icon svg {
  width: 23px;
}

form label {
  display: block;
  margin: 0 0 8px;
  color: #40564d;
  font-size: 12px;
  font-weight: 600;
}

form input {
  width: 100%;
  height: 48px;
  margin-bottom: 19px;
  padding: 0 14px;
  border: 1px solid #dce6e0;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

form input::placeholder {
  color: #a4b0aa;
}

form input:focus {
  border-color: #68a98b;
  box-shadow: 0 0 0 3px rgba(20, 120, 93, 0.1);
}

.password-field {
  position: relative;
  margin-bottom: 19px;
}

.password-field input {
  margin-bottom: 0;
  padding-right: 54px;
}

.password-reveal {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #71817b;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.password-reveal:hover {
  color: var(--green);
  background: #f3f8f5;
}

.password-reveal:focus-visible {
  outline: 2px solid #68a98b;
  outline-offset: -3px;
}

.password-reveal svg {
  width: 21px;
  height: 21px;
  pointer-events: none;
}

.password-reveal .eye-closed,
.password-reveal[aria-pressed="true"] .eye-open {
  display: none;
}

.password-reveal[aria-pressed="true"] .eye-closed {
  display: block;
}

.submit-button,
.scan-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.submit-button {
  position: relative;
  border: 0;
  color: #fff;
  background: var(--green);
}

.submit-button:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.button-arrow {
  position: absolute;
  right: 16px;
  width: 18px;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.submit-button.is-loading .button-spinner {
  display: block;
}

.submit-button.is-loading .button-arrow {
  display: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 19px 0;
  color: #9aa8a1;
  font-size: 11px;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.scan-button {
  min-height: 44px;
  border: 1px solid #dfe8e3;
  color: #456055;
  background: #fff;
}

.scan-button:hover {
  border-color: #9dc7af;
  background: #f7fbf8;
}

.scan-button svg {
  width: 19px;
  color: var(--green);
}

.form-message {
  margin: 14px 0 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--danger);
  background: #fff2f0;
  font-size: 12px;
  line-height: 1.5;
}

.form-message.is-success {
  color: var(--green-dark);
  background: #edf7f0;
}

.result-card {
  margin-top: 20px;
  padding: 19px;
  border: 1px solid #dcebe2;
  border-radius: 12px;
  background: #f9fcfa;
}

.result-heading {
  margin-bottom: 16px;
}

.result-heading h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 17px;
}

.result-check {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #e3f2e9;
  font-size: 15px;
  font-weight: 700;
}

.student-details {
  display: grid;
  gap: 11px;
  margin: 0;
}

.student-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.student-details dt {
  color: var(--muted);
}

.student-details dd {
  margin: 0;
  color: #2e473c;
  font-weight: 600;
  text-align: right;
}

.balance-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  padding: 14px;
  border-radius: 9px;
  color: #e8f5ee;
  background: #185f49;
}

.balance-panel span {
  font-size: 12px;
}

.balance-panel strong {
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.result-date {
  margin: 11px 0 0;
  color: #819188;
  font-size: 10px;
  text-align: right;
}

.site-footer {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(37, 74, 61, 0.09);
  color: #819088;
  font-size: 11px;
}

.site-footer a {
  color: #53695e;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scanner-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 20px 80px rgba(15, 38, 29, 0.28);
}

.scanner-dialog::backdrop {
  background: rgba(17, 39, 31, 0.58);
  backdrop-filter: blur(3px);
}

.scanner-header {
  margin-bottom: 12px;
}

.scanner-header h2 {
  font-size: 19px;
}

.close-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  color: #53675e;
  background: #f0f5f2;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.scanner-help {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #15251f;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  inset: 18% 18%;
  border: 2px solid rgba(207, 255, 226, 0.9);
  border-radius: 12px;
  box-shadow: 0 0 0 100vmax rgba(9, 24, 17, 0.18);
  pointer-events: none;
}

.scanner-message {
  margin: 13px 0 0;
  color: #60736a;
  font-size: 12px;
  text-align: center;
}

.auth-shell {
  min-height: 100vh;
  min-height: 100svh;
}

.back-link {
  color: #53695e;
  font-size: 12px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--green);
}

.auth-main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 56px 0;
}

.auth-card {
  width: min(100%, 400px);
  padding: 28px;
}

.auth-card .card-heading {
  align-items: flex-start;
  margin-bottom: 22px;
}

.auth-card h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -1px;
}

.auth-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

#login-form > input {
  margin-bottom: 15px;
}

#login-form .password-field {
  margin-bottom: 15px;
}

#login-form select {
  margin-bottom: 16px;
}

form select,
.select-with-scan select {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin-bottom: 19px;
  padding: 0 14px;
  border: 1px solid #dce6e0;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

form select:focus,
.select-with-scan select:focus {
  border-color: #68a98b;
  box-shadow: 0 0 0 3px rgba(20, 120, 93, 0.1);
}

.dashboard-shell {
  max-width: 1320px;
}

.profile-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.student-header-back {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #dce6e0;
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.student-header-back:hover {
  color: var(--green);
  text-decoration: none;
}

.profile-copy {
  display: grid;
  gap: 3px;
  text-align: right;
}

.profile-copy strong {
  color: #2d463b;
  font-size: 12px;
}

.profile-copy span {
  color: var(--muted);
  font-size: 10px;
}

.logout-button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dce6e0;
  border-radius: 8px;
  color: #53695e;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.logout-button:hover {
  border-color: #9dc7af;
  color: var(--green);
}

.dashboard-main {
  flex: 1;
  padding: 38px 0 52px;
}

.dashboard-welcome {
  margin-bottom: 25px;
}

.dashboard-welcome h1 {
  margin: 0 0 7px;
  font-size: 32px;
  letter-spacing: -1.4px;
}

.dashboard-welcome > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-message {
  margin: 0 0 20px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.dashboard-layout > .lookup-card {
  min-width: 0;
}

.select-with-scan {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.select-with-scan select {
  flex: 1;
}

.scan-inline-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid #dfe8e3;
  border-radius: 9px;
  color: var(--green);
  background: #fff;
  cursor: pointer;
}

.scan-inline-button:hover {
  border-color: #9dc7af;
  background: #f7fbf8;
}

.scan-inline-button svg {
  width: 21px;
}

.student-list-card {
  max-height: 590px;
}

.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.dashboard-nav a {
  padding: 9px 13px;
  border: 1px solid #dce8e1;
  border-radius: 20px;
  color: #486156;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-nav a:hover {
  border-color: #9dc7af;
  color: var(--green);
}

.admin-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  padding: 16px 10px 12px;
  border: 1px solid #e4ebe7;
  border-radius: 14px;
  background: #fff;
}

.admin-sidebar-heading {
  display: grid;
  gap: 3px;
  padding: 2px 10px 15px;
  margin-bottom: 8px;
  border-bottom: 1px solid #edf2ef;
}

.admin-sidebar-kicker {
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.admin-sidebar-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.admin-sidebar-heading > span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-menu {
  display: grid;
  gap: 5px;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: #53695e;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.admin-menu-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: #789087;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.admin-menu-item:hover {
  color: var(--green);
  background: #f4f9f6;
}

.admin-menu-item.is-active {
  color: var(--green-dark);
  background: #eaf5ee;
}

.admin-menu-item.is-active .admin-menu-icon,
.admin-menu-item:hover .admin-menu-icon {
  color: var(--green);
}

.admin-sidebar-note {
  margin: 18px 10px 2px;
  padding-top: 12px;
  border-top: 1px solid #edf2ef;
  color: #84938d;
  font-size: 10px;
  line-height: 1.6;
}

.admin-content {
  min-width: 0;
}

.admin-section {
  display: grid;
  gap: 18px;
}

.admin-section .summary-card,
.admin-section .table-card {
  margin-bottom: 0;
}

.admin-section .table-card {
  min-width: 0;
}

.admin-chart-card .card-heading {
  margin-bottom: 8px;
}

.chart-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 8px;
  color: #61736c;
  font-size: 11px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chart-dot-deposit,
.chart-bar-deposit {
  background: #26956d;
}

.chart-dot-withdrawal,
.chart-bar-withdrawal {
  background: #e0a447;
}

.admin-chart {
  display: grid;
  height: 180px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  padding: 10px 6px 0;
  border-bottom: 1px solid #e4ebe7;
}

.chart-month {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) 23px;
  justify-items: center;
}

.chart-bars {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

.chart-bar {
  width: min(24px, 36%);
  min-height: 2px;
  border-radius: 5px 5px 0 0;
}

.chart-month-label {
  align-self: end;
  color: #71817b;
  font-size: 10px;
}

.chart-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 14px;
}

.chart-totals p {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #71817b;
  font-size: 10px;
}

.chart-totals strong {
  color: var(--ink);
  font-size: 13px;
}

.admin-form {
  max-width: 620px;
}

.admin-form textarea {
  width: 100%;
  min-height: 84px;
  margin-bottom: 19px;
  padding: 12px 14px;
  border: 1px solid #dce6e0;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.admin-form textarea:focus {
  border-color: #68a98b;
  box-shadow: 0 0 0 3px rgba(20, 120, 93, 0.1);
}

.admin-inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-inline-form > div {
  min-width: 0;
}

.admin-inline-form input,
.admin-inline-form select {
  margin-bottom: 0;
}

.admin-inline-form .submit-button,
.admin-inline-form .secondary-button {
  width: auto;
  min-width: 112px;
  margin-bottom: 0;
}

.secondary-button,
.admin-action-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  color: #486156;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.secondary-button:hover:not(:disabled),
.admin-action-button:hover:not(:disabled) {
  border-color: #9dc7af;
  color: var(--green);
  background: #f7fbf8;
}

.admin-action-button {
  min-height: 30px;
  margin: 2px 4px 2px 0;
  padding: 5px 8px;
}

.admin-action-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-class-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.admin-class-item {
  display: grid;
  min-height: 92px;
  gap: 6px;
  padding: 13px;
  border: 1px solid #e4ebe7;
  border-radius: 10px;
  color: #61736c;
  background: #fbfdfb;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  text-align: left;
}

.admin-class-item:hover,
.admin-class-item.is-selected {
  border-color: #9dc7af;
  background: #f1f8f4;
}

.admin-class-item strong {
  color: #304d40;
  font-size: 14px;
}

.transaction-filter-form {
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
}

.admin-help {
  margin: -5px 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
  padding: 25px 28px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(115deg, #14583f, #21815e);
  box-shadow: 0 12px 30px rgba(24, 95, 73, 0.14);
}

.summary-card .eyebrow {
  color: #c2e7d1;
}

.summary-card h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -1px;
}

.summary-caption {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.summary-card .card-icon {
  width: 52px;
  height: 52px;
  color: #d8f1e2;
  background: rgba(255, 255, 255, 0.14);
}

.summary-card .card-icon svg {
  width: 27px;
}

.table-card {
  margin-bottom: 20px;
  padding: 25px;
}

.table-card .card-heading {
  margin-bottom: 17px;
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1ee;
  font-size: 11px;
}

th {
  color: #74837c;
  font-size: 10px;
  font-weight: 600;
}

td {
  color: #385247;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.transaction-deposit {
  color: #16734f;
  font-weight: 700;
}

.transaction-withdrawal {
  color: #a34b40;
  font-weight: 700;
}

.admin-lists {
  gap: 20px;
}

.student-profile-card {
  max-width: 620px;
  margin-bottom: 20px;
}

.student-withdrawal-link {
  width: min(100%, 320px);
  margin: 22px auto 0;
  color: #fff;
  text-decoration: none;
}

.student-withdrawal-link:hover {
  color: #fff;
}

.student-withdrawal-view {
  display: grid;
  max-width: 620px;
  gap: 16px;
}

.student-back-link {
  justify-self: start;
}

.student-withdrawal-card,
.student-withdrawal-status {
  width: 100%;
}

.refresh-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  color: #486156;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.refresh-button:hover:not(:disabled) {
  border-color: #9dc7af;
  color: var(--green);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.refresh-button svg {
  width: 16px;
  height: 16px;
}

.refresh-button.is-loading svg {
  animation: spin 700ms linear infinite;
}

.student-dashboard-layout {
  margin-bottom: 20px;
}

.student-request-help {
  margin: -3px 0 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.student-request-list {
  display: grid;
  gap: 10px;
}

.student-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e7eee9;
  border-radius: 10px;
  background: #fbfdfb;
}

.student-request-item strong {
  color: #304d40;
  font-size: 13px;
}

.student-request-item p {
  margin: 4px 0;
  color: #53695e;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.student-request-status-note {
  margin: 4px 0;
  color: #304d40;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.student-request-status-note.is-rejected {
  color: #b84d46;
}

.student-request-status-note.is-waiting {
  color: #8a6100;
}

.student-request-item div > span {
  color: #829087;
  font-size: 10px;
}

.status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.status-cell {
  font-size: 10px;
  font-weight: 700;
}

.status-menunggu {
  color: #8a6100;
  background: #fff4d6;
}

.status-ditolak {
  color: #a23f38;
  background: #fff0ee;
}

.status-disetujui,
.status-tersimpan {
  color: #16734f;
  background: #eaf6ef;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.review-button {
  margin: 2px 4px 2px 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
}

.review-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.review-disetujui {
  border-color: #c6e4d2;
  color: #16734f;
  background: #edf8f1;
}

.review-ditolak {
  border-color: #f1d5d1;
  color: #a23f38;
  background: #fff4f2;
}

[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 850px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    overflow-x: auto;
    padding: 8px;
  }

  .admin-menu {
    display: flex;
    min-width: max-content;
    gap: 4px;
  }

  .admin-menu-item {
    min-height: 38px;
    white-space: nowrap;
  }

  .admin-inline-form,
  .transaction-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-inline-form .submit-button,
  .admin-inline-form .secondary-button {
    grid-column: 1 / -1;
  }

  .page-shell {
    padding-right: max(32px, env(safe-area-inset-right));
    padding-left: max(32px, env(safe-area-inset-left));
  }

  .main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 36px;
  }

  h1 {
    font-size: 40px;
  }
}

@media (max-width: 760px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro {
    max-width: 560px;
  }

  .main-grid > .lookup-card {
    width: 100%;
    max-width: 560px;
    justify-self: center;
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding-right: max(20px, env(safe-area-inset-right));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .site-header {
    height: 76px;
  }

  .main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 42px 0 50px;
  }

  .intro {
    max-width: 520px;
    padding-bottom: 0;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(35px, 9vw, 46px);
    letter-spacing: -2px;
  }

  .intro-copy {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .lookup-card {
    width: 100%;
    max-width: 480px;
    justify-self: center;
    padding: 25px;
  }

  .auth-main {
    padding: 40px 0;
  }

  .auth-card {
    padding: 23px;
  }

  .dashboard-main {
    padding: 30px 0 40px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .admin-inline-form,
  .transaction-filter-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-inline-form .submit-button,
  .admin-inline-form .secondary-button {
    grid-column: auto;
  }

  .admin-chart {
    height: 150px;
    gap: 5px;
  }

  .student-list-card {
    max-height: none;
  }

  .table-card {
    padding: 20px 16px;
  }

  form input,
  form select,
  .select-with-scan select {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .header-note {
    font-size: 11px;
  }

  .brand-name {
    font-size: 14px;
  }

  .lookup-card {
    padding: 21px 18px;
  }

  .auth-card {
    padding: 20px 18px;
  }

  .site-footer {
    font-size: 10px;
  }

  .profile-bar {
    gap: 9px;
  }

  .student-header-back {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  .profile-copy strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-welcome h1 {
    font-size: 28px;
  }

  .student-dashboard-layout > .lookup-card {
    padding: 18px 16px;
  }

  .student-withdrawal-card,
  .student-withdrawal-status {
    padding: 18px 16px;
  }

  .student-withdrawal-card .card-heading,
  .student-withdrawal-status .card-heading {
    margin-bottom: 18px;
  }

  .student-withdrawal-card .card-heading h2,
  .student-withdrawal-status .card-heading h2 {
    font-size: 18px;
  }

  .student-dashboard-layout .card-heading {
    margin-bottom: 18px;
  }

  .student-dashboard-layout .card-heading h2 {
    font-size: 18px;
  }

  #withdrawal-form label {
    margin-bottom: 6px;
  }

  #withdrawal-form input {
    height: 44px;
    margin-bottom: 14px;
    padding-right: 12px;
    padding-left: 12px;
  }

  #submit-withdrawal {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
