:root {
  --page-bg: #efefef;
  --panel-bg: #f6f6f6;
  --soft-white: rgba(255,255,255,0.68);
  --line: rgba(125, 46, 45, 0.9);
  --field: rgba(255,255,255,0.96);
  --title: #8c2e2d;
  --subtitle: #7f7f7f;
  --text: #3d3d3d;
  --label: #4a4a4a;
  --muted: #969696;
  --button-top: #d3a2a0;
  --button-bottom: #ba766e;
  --button-shadow: rgba(160, 98, 101, 0.2);
  --system-bg: rgba(10, 12, 14, 0.95);
  --brand-red: #a73d38;
  --dashboard-bg: #ececec;
  --dashboard-panel: rgba(255,255,255,0.6);
  --darker-text: #1e1e1e;
  --sidebar-bg: #f5f5f5;
  --muted-light: #8e8e8e;
  --shadow-soft: rgba(38, 38, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  font-family: "Roboto", sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
}

.login-screen {
  display: none;
}

.login-screen.active {
  display: block;
}

.desktop-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
}

.login-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: calc(100vh - 36px);
}

.photo-panel {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(rgba(42, 34, 18, 0.18), rgba(42, 34, 18, 0.18)),
    url("2025122305363725561LPU2.png") center center / cover no-repeat;
  overflow: hidden;
  filter: saturate(0.9) contrast(1.02);
}

.photo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px 30px;
  background: #f4f4f4;
}

.brand-header {
  width: min(100%, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-top: 10px;
}

.crest {
  width: 74px;
  height: 74px;
  display: block;
  background: url("12232025054310872_new lpu logo.png") center center / contain no-repeat;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.brand-label {
  max-width: 250px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #2d2d2d;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.login-card {
  width: min(100%, 520px);
  background: rgba(255,255,255,0.52);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(31, 31, 31, 0.04);
  padding: 18px 26px 18px;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(2.3rem, 2vw + 1.1rem, 3.2rem);
  color: var(--title);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.login-subtitle {
  margin: 8px 0 20px;
  text-align: center;
  color: var(--subtitle);
  font-size: 0.95rem;
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
  color: #666;
  font-size: 0.72rem;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.remember-me input {
  width: 14px;
  height: 14px;
  accent-color: #b06a6d;
}

.demo-tip {
  color: #8a8a8a;
  font-style: italic;
}

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

.field-label {
  color: var(--label);
  font-weight: 500;
  font-size: 0.78rem;
}

.field-header a {
  text-decoration: none;
  color: #5d72d6;
  font-size: 0.7rem;
}

.input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  background: var(--field);
  border: 1px solid rgba(96, 103, 116, 0.24);
  border-radius: 8px;
  padding: 0 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-box:focus-within {
  border-color: rgba(145, 62, 58, 0.55);
  box-shadow: 0 0 0 3px rgba(167, 61, 56, 0.08);
}

.input-icon {
  font-size: 0.9rem;
  opacity: 0.8;
  width: 16px;
  text-align: center;
}

.password-wrap {
  padding-right: 6px;
}

.password-toggle {
  border: 0;
  background: transparent;
  color: #6d72a5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.password-toggle:hover {
  background: rgba(109, 114, 165, 0.08);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.82rem;
  color: var(--text);
  font-family: inherit;
}

input::placeholder {
  color: var(--muted);
}

.captcha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.human-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #5a5a5a;
  font-size: 0.76rem;
}

.human-check input {
  width: 16px;
  height: 16px;
  accent-color: #b4b9d9;
}

.captcha-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 6px 8px;
  color: #f38a32;
  font-weight: 700;
  font-size: 0.56rem;
  letter-spacing: 0.04em;
}

.captcha-mark {
  font-size: 1rem;
  line-height: 1;
}

.form-status {
  margin: -6px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(92, 162, 101, 0.12);
  color: #2d6f3d;
  font-size: 0.72rem;
  line-height: 1.4;
}

.form-status.error {
  background: rgba(181, 31, 37, 0.08);
  color: #9c2327;
}

.sign-in {
  width: 100%;
  border: 0;
  border-radius: 6px;
  height: 46px;
  background: linear-gradient(180deg, var(--button-top) 0%, var(--button-bottom) 100%);
  color: rgba(255,255,255,0.96);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 3px 10px var(--button-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sign-in:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 6px 14px var(--button-shadow);
}

.system-bar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(16, 17, 19, 0.9);
  color: rgba(255,255,255,0.88);
  font-size: 12px;
}

.system-left,
.system-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-icon {
  opacity: 0.9;
}

.dashboard-screen {
  display: none;
  min-height: 100vh;
  background: var(--dashboard-bg);
}

.dashboard-screen.active {
  display: block;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 248, 248, 0.9);
  border-bottom: 1px solid rgba(116, 116, 116, 0.18);
  padding: 12px 24px;
  min-height: 74px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-crest {
  width: 42px;
  height: 42px;
  background: url("12232025054310872_new lpu logo.png") center center / cover no-repeat;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(120, 44, 42, 0.6);
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--darker-text);
}

.user-icon-wrap {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(106, 106, 106, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #efefef;
  color: #7b7b7b;
}

.user-info {
  text-align: left;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2f2f2f;
  letter-spacing: 0.04em;
}

.user-id {
  font-size: 0.72rem;
  color: #787878;
}

.main-dashboard {
  display: flex;
  min-height: calc(100vh - 74px - 42px);
}

.sidebar {
  width: 255px;
  background: rgba(239, 239, 239, 0.7);
  border-right: 1px solid rgba(103, 103, 103, 0.15);
  padding: 10px 12px 0;
}

.search-box {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(133, 133, 133, 0.2);
  border-radius: 8px;
  padding: 0 12px;
  color: #646464;
  margin: 4px 0 12px;
}

.search-icon {
  font-size: 1.2rem;
  color: #767676;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  color: #4a4a4a;
  font-size: 0.95rem;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.nav-leading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dropdown-chevron {
  margin-left: auto;
  font-size: 0.8rem;
  color: #5f5f5f;
  transition: transform 0.2s ease;
}

.nav-group.open .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.submenu {
  display: flex;
  flex-direction: column;
  margin-left: 18px;
  padding-left: 12px;
  border-left: 1px solid rgba(116, 116, 116, 0.32);
  gap: 2px;
}

.nav-group:not(.open) .submenu {
  display: none;
}

.sub-item {
  display: block;
  padding: 7px 10px 7px 8px;
  color: #4c4c4c;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 4px;
}

.sub-item:hover {
  background: rgba(255,255,255,0.5);
}

.sub-item.selected {
  color: #b51f25;
  font-weight: 500;
}

.nav-item.active {
  background: rgba(255,255,255,0.68);
  box-shadow: inset 0 0 0 1px rgba(126, 130, 135, 0.14);
}

.nav-icon {
  width: 16px;
  display: inline-block;
  text-align: center;
  opacity: 0.9;
}

.last-login {
  margin-top: auto;
  padding: 16px 8px 18px;
  border-top: 1px solid rgba(124, 124, 124, 0.22);
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #6f6f6f;
  font-size: 0.75rem;
}

.last-login strong {
  font-size: 0.72rem;
  font-weight: 500;
  color: #a2493d;
}

.content-area {
  flex: 1;
  padding: 16px 18px 0;
}

.payments-page {
  min-width: 0;
  padding: 0;
}

.payments-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
  background: #f2f2f2;
  border-top: 1px solid rgba(121, 121, 121, 0.14);
}

.payments-sidebar {
  background: rgba(249, 249, 249, 0.95);
  border-right: 1px solid rgba(123, 123, 123, 0.14);
  padding: 10px 12px 16px;
  display: flex;
  flex-direction: column;
}

.payments-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 12px;
  min-height: 52px;
  font-size: 1.05rem;
  color: #2d2d2d;
  font-weight: 500;
}

.small-crest {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.payments-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(116,116,116,0.18);
  border-radius: 6px;
  background: rgba(255,255,255,0.7);
  color: #676767;
  margin-bottom: 12px;
}

.payments-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payments-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3d3d3d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.payments-nav-item.active {
  background: rgba(255,255,255,0.72);
  box-shadow: inset 0 0 0 1px rgba(120,120,120,0.14);
}

.payments-last-login {
  margin-top: auto;
  padding: 12px 8px 0;
  border-top: 1px solid rgba(124,124,124,0.18);
  color: #6b6b6b;
  font-size: 0.72rem;
}

.payments-last-login strong {
  display: block;
  margin-top: 6px;
  color: #a53a36;
  font-weight: 600;
}

.payments-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.payments-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 60px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(124,124,124,0.12);
  background: rgba(248,248,248,0.92);
}

.payments-tray {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(120,120,120,0.2);
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.7);
}

.payments-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
}

.payments-user-name {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #2e2e2e;
}

.payments-user-id {
  color: #767676;
}

.payments-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 16px 16px 0;
}

.stat-card {
  min-height: 95px;
  border: 1px solid rgba(120,120,120,0.16);
  border-right: none;
  background: rgba(255,255,255,0.78);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card:last-child {
  border-right: 1px solid rgba(120,120,120,0.16);
}

.red-card { border-top: 3px solid #c74f4c; }
.green-card { border-top: 3px solid #3ea67c; }
.blue-card { border-top: 3px solid #4b8dcb; }
.pale-card { border-top: 3px solid #d9a24c; }
.dark-card { border-top: 3px solid #4d4d4d; }

.stat-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: rgba(255,255,255,0.82);
  background: #c74f4c;
  font-size: 0.68rem;
  margin-bottom: 10px;
}

.green-card .stat-icon { background: #3ea67c; }
.blue-card .stat-icon { background: #4b8dcb; }
.pale-card .stat-icon { background: #d9a24c; }
.dark-card .stat-icon { background: #4d4d4d; }

.stat-value {
  font-size: 1.08rem;
  font-weight: 700;
  color: #353535;
}

.stat-label {
  font-size: 0.72rem;
  color: #676767;
  margin-top: 3px;
}

.payments-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 8px;
}

.payments-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b13b39;
  font-size: 1.08rem;
  font-weight: 700;
}

.heading-icon {
  font-size: 0.9rem;
}

.payment-plan-button {
  border: 1px solid rgba(120,120,120,0.22);
  background: rgba(255,255,255,0.75);
  border-radius: 4px;
  padding: 8px 12px;
  color: #3b3b3b;
  font: inherit;
  cursor: pointer;
}

.payments-tabs {
  padding: 0 18px 12px;
  display: flex;
  gap: 8px;
}

.tab-item {
  border: 1px solid rgba(120,120,120,0.15);
  background: rgba(255,255,255,0.55);
  border-radius: 5px 5px 0 0;
  padding: 8px 16px;
  color: #4d4d4d;
  font: inherit;
  cursor: pointer;
}

.tab-item.active {
  background: rgba(255,255,255,0.9);
  color: #2f2f2f;
}

.payment-table-section {
  padding: 0 18px 18px;
}

.payment-flow-panel {
  margin: 0 18px 18px;
  border: 1px solid rgba(140, 55, 55, 0.6);
  border-radius: 4px;
  background: rgba(255,255,255,0.72);
  overflow: hidden;
}

.payment-flow-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(140, 55, 55, 0.35);
  color: #b13b39;
  font-size: 1rem;
  font-weight: 700;
}

.payment-flow-icon {
  font-size: 0.88rem;
}

.payment-flow-block {
  padding: 0 16px 14px;
}

.payment-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(120,120,120,0.14);
  color: #383838;
  font-size: 0.9rem;
}

.payment-flow-row:first-child {
  border-top: 0;
}

.paid-row {
  color: #1d5d36;
}

.paid-row > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill.paid {
  background: rgba(32, 149, 92, 0.12);
  color: #157a45;
  border: 1px solid rgba(21, 122, 69, 0.25);
}

.payment-flow-row-head {
  font-weight: 700;
  color: #333;
}

.total-row {
  padding-top: 18px;
  font-weight: 700;
}

.payment-form-inner {
  padding: 18px 12px 4px;
}

.payment-method-switch {
  display: inline-flex;
  border: 1px solid rgba(120,120,120,0.18);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.payment-mode-tab {
  border: 0;
  background: transparent;
  color: #4a4a4a;
  padding: 8px 18px;
  font: inherit;
  cursor: pointer;
}

.payment-mode-tab.active {
  background: #b13b39;
  color: #fff;
}

.payment-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 18px;
}

.payment-total-row strong {
  font-size: 1.1rem;
  color: #1d1d1d;
}

.installment-field {
  margin-bottom: 18px;
}

.installment-field span {
  font-weight: 600;
}

.receipt-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3a3a3a;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.receipt-toggle input {
  width: 14px;
  height: 14px;
}

.gateway-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #3d3d3d;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.gateway-field select {
  width: min(420px, 100%);
  height: 38px;
  border: 1px solid rgba(120,120,120,0.24);
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
  color: #4a4a4a;
  font: inherit;
}

.payment-submit-button {
  border: 1px solid #a93a36;
  background: #b13b39;
  color: #fff;
  border-radius: 4px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.smartpay-page {
  background: #2f3338;
  min-height: calc(100vh - 140px);
  padding: 18px 0 26px;
  color: #e9edf4;
}

.smartpay-shell {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 18px;
}

.smartpay-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.smartpay-brand {
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.smartpay-brand .smart {
  color: #f5f8ff;
}

.smartpay-brand .pay {
  color: #f6a73d;
}

.smartpay-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 12px;
  color: #eef3ff;
  font-size: 1.08rem;
  font-weight: 600;
}

.smartpay-topline strong {
  color: #f4f7fa;
}

.smartpay-reference-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 7px 12px;
  color: #e9ebef;
  font-size: 0.72rem;
}

.smartpay-content {
  margin-top: 12px;
}

.smartpay-title {
  margin: 8px 0 18px;
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  font-weight: 700;
  color: #f2f5fb;
}

.smartpay-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.smartpay-methods {
  background: rgba(18,24,31,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}

.smartpay-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: rgba(52,71,118,0.9);
  color: #f6f9ff;
  font-size: 1rem;
  font-weight: 600;
}

.smartpay-method-header .caret {
  font-size: 1.2rem;
  color: #dfe7ff;
}

.smartpay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: #dee7ff;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.smartpay-option .wallet-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f6a73d, #d87029);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.smartpay-summary {
  background: rgba(18,24,31,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #edf3ff;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row strong {
  font-weight: 700;
}

.smartpay-form {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: #e6edf8;
  font-size: 0.82rem;
}

.form-field input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: #fff;
  height: 44px;
  padding: 0 12px;
  font: inherit;
}

.smartpay-button {
  margin-top: 22px;
  width: 100%;
  height: 52px;
  background: linear-gradient(180deg, #4b8ef6, #2d6dd4);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(25, 88, 180, 0.35);
}

.smartpay-footer {
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  margin-top: 28px;
}

.payment-qr-page {
  background: #2f3338;
  min-height: calc(100vh - 140px);
  padding-top: 14px;
  color: #ecf3ff;
}

.payment-qr-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px 32px;
}

.payment-qr-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 92px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin-bottom: 8px;
}

.payment-qr-brand .smart {
  color: #f5f8ff;
}

.payment-qr-brand .pay {
  color: #f6a73d;
}

.qr-panel {
  width: min(420px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-block {
  width: min(420px, 80vw);
  aspect-ratio: 1;
  background: #ffffff;
  border: 12px solid #111;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 12px 22px rgba(0,0,0,0.18);
  overflow: hidden;
}

.instapay-qr {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.qr-cell {
  background: #111;
  border-radius: 2px;
  opacity: 0.15;
}

.qr-cell.dark {
  opacity: 1;
}

.payment-qr-back {
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: #f5f8ff;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.payment-qr-back:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.qr-label {
  margin-top: 22px;
  text-align: center;
  color: #f5c14b;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
}

.qr-label strong {
  display: block;
}

.qr-note {
  margin-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.72);
  max-width: 680px;
  line-height: 1.5;
  font-size: 0.92rem;
}

.qr-expiry {
  margin-top: 16px;
  text-align: center;
  color: #ff716d;
  font-size: 0.8rem;
  font-weight: 600;
}

.smartpay-footer-note {
  text-align: center;
  color: rgba(255,255,255,0.72);
  margin-top: 30px;
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .smartpay-shell {
    padding: 0 12px;
  }

  .smartpay-panel {
    grid-template-columns: 1fr;
  }

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

  .smartpay-form {
    grid-template-columns: 1fr;
  }

  .payment-flow-panel,
  .payment-action-row,
  .payment-table-section,
  .payment-table-panel {
    margin-left: 12px;
    margin-right: 12px;
  }

  .payment-flow-block {
    padding: 0 12px 12px;
  }

  .payment-flow-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .payment-form-inner {
    padding: 14px 10px 4px;
  }

  .payment-method-switch {
    display: flex;
    width: 100%;
  }

  .payment-mode-tab {
    flex: 1;
    min-width: 0;
  }

  .payment-total-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-submit-button {
    width: 100%;
  }

  .payment-action-row {
    flex-direction: column-reverse;
    gap: 10px;
    padding: 18px 12px 12px;
  }

  .primary-payment-action,
  .secondary-payment-action {
    width: 100%;
  }

  .qr-panel {
    width: min(360px, 100%);
  }

  .qr-block {
    width: min(320px, 82vw);
  }

  .qr-note {
    font-size: 0.8rem;
  }
}

.section-title {
  color: #b13b39;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0 0 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(125,125,125,0.18);
}

.payment-invoice-card {
  border: 1px solid rgba(120,120,120,0.15);
  border-radius: 4px;
  background: rgba(255,255,255,0.74);
  padding: 12px 14px 10px;
  margin-bottom: 16px;
}

.invoice-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 12px;
}

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

.invoice-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  color: #585858;
}

.row-label {
  color: #5a5a5a;
}

.row-value {
  color: #2c2c2c;
  font-weight: 500;
}

.upcoming-section {
  padding-top: 8px;
}

.simple-card {
  margin-bottom: 12px;
}

.payment-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 18px 12px;
}

.primary-payment-action,
.secondary-payment-action {
  border-radius: 4px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.primary-payment-action {
  border: 1px solid #a93a36;
  background: #b13b39;
  color: #fff;
}

.secondary-payment-action {
  border: 1px solid rgba(161, 48, 42, 0.7);
  background: transparent;
  color: #b13b39;
}

.payment-table-panel {
  margin: 0 18px 18px;
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(141, 60, 60, 0.5);
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.payment-table-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(141, 60, 60, 0.45);
  background: rgba(255,255,255,0.24);
  color: #b13b39;
  font-size: 1rem;
  font-weight: 700;
}

.table-header-icon {
  font-size: 0.78rem;
}

.payment-table-wrap {
  overflow-x: auto;
}

.payment-detail-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.payment-detail-table th,
.payment-detail-table td {
  border: 1px solid rgba(141, 60, 60, 0.2);
  border-bottom: none;
  border-top: none;
  padding: 12px 14px;
  text-align: left;
  background: rgba(255,255,255,0.12);
  color: #3e3e3e;
  font-size: 0.8rem;
}

.payment-detail-table th {
  background: rgba(255,255,255,0.22);
  color: #5b5b5b;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .payments-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .payments-shell {
    grid-template-columns: 1fr;
  }

  .payments-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(120,120,120,0.16);
  }

  .payments-cards {
    grid-template-columns: 1fr;
  }

  .payments-content-header,
  .payments-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-plan-button {
    width: 100%;
  }

  .payments-tabs {
    flex-wrap: wrap;
  }

  .tab-item {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
  }
}

.enrollment-page {
  min-width: 0;
  padding-top: 18px;
}

.enlistment-panel {
  background: rgba(255,255,255,0.82);
  border: 2px solid #b51f25;
  border-radius: 5px 5px 0 0;
  min-height: calc(100vh - 132px);
  overflow: hidden;
}

.enlistment-heading {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid rgba(181, 31, 37, 0.14);
}

.enlistment-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b51f25;
  font-size: 0.92rem;
  font-weight: 500;
}

.page-icon {
  font-size: 1.05rem;
}

.collapse-button {
  width: 27px;
  height: 25px;
  border: 1px solid #d14a4e;
  border-radius: 3px;
  background: #fff;
  color: #b51f25;
}

.enlistment-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 12px 10px 10px;
  color: #1f3b5c;
  font-size: 0.68rem;
}

.academic-session {
  grid-column: 1 / 2;
}

.summary-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.session-select {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border: 1px solid #d6dce6;
  border-radius: 4px;
  color: #31435b;
  background: #fff;
}

.program-details {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.25;
}

.program-details div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.program-details span {
  font-weight: 500;
}

.program-details strong {
  font-size: 0.67rem;
}

.right-details {
  grid-column: 3 / 4;
  grid-row: 2;
}

.table-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 0 10px 7px;
}

.table-toolbar input {
  width: 130px;
  height: 27px;
  border: 1px solid #d6dce6;
  border-radius: 4px;
  padding: 0 9px;
  font: inherit;
  font-size: 0.67rem;
}

.table-toolbar button {
  width: 28px;
  height: 27px;
  border: 1px solid #d6dce6;
  border-radius: 3px;
  background: #fff;
  color: #2f5274;
  font-size: 0.72rem;
}

.enlistment-table-wrap {
  overflow-x: auto;
  margin: 0 10px;
}

.enlistment-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: auto;
  color: #263b54;
  font-size: 0.58rem;
}

.enlistment-table th,
.enlistment-table td {
  border: 1px solid #d4dbe6;
  padding: 7px 5px;
  text-align: left;
  white-space: nowrap;
}

.enlistment-table th {
  background: #f2f5fb;
  font-weight: 700;
}

.enlistment-table tbody tr:nth-child(even) {
  background: #f5f5f5;
}

.status {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.54rem;
}

.status.approved,
.status.yes {
  border-color: #70c88a;
  color: #39a85b;
  background: #f8fff9;
}

.table-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: #315274;
  font-size: 0.65rem;
}

.table-footer button {
  border: 0;
  border-radius: 3px;
  padding: 8px 12px;
  background: #b8c6da;
  color: #fff;
  font-size: 0.68rem;
}

@media (max-width: 980px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .photo-panel {
    min-height: 240px;
  }

  .login-panel {
    padding: 30px 20px 26px;
  }
}

@media (max-width: 720px) {
  .main-dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(103, 103, 103, 0.15);
  }

  .content-area {
    padding: 12px 12px 0;
  }

  .form-row,
  .captcha-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

.enlistment-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.enlistment-actions button {
  border: 1px solid #d14a4e;
  border-bottom: 1px solid #d14a4e;
  border-radius: 4px 4px 0 0;
  min-width: 102px;
  padding: 8px 12px;
  background: #fff;
  color: #b51f25;
  font-size: 0.68rem;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}

.greeting-bar {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(103, 103, 103, 0.15);
  border-radius: 10px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 16px;
}

.welcome-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2e2e2e;
  font-size: 0.96rem;
}

.weather-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #9db7f5, #7b9af5);
  color: #fff;
  font-size: 1.1rem;
}

.greeting-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2f2f2f;
}

.action-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(102,102,102,0.15);
  color: #7b7b7b;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(112, 112, 112, 0.18);
  border-radius: 10px;
  min-height: 280px;
  padding: 12px 18px 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.98rem;
  color: #2f2f2f;
  font-weight: 700;
  margin-bottom: 12px;
}

.panel-button,
.panel-icon {
  border: 1px solid rgba(165, 54, 54, 0.2);
  background: rgba(255,255,255,0.6);
  color: #b33d3d;
  border-radius: 6px;
  font-size: 0.7rem;
  padding: 5px 10px;
  cursor: pointer;
}

.attendance-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.attendance-ring {
  position: relative;
  width: 235px;
  height: 118px;
  border-top-left-radius: 140px;
  border-top-right-radius: 140px;
  background: linear-gradient(180deg, #d7d7d7 0%, #b5b5b5 100%);
  overflow: hidden;
  border: 12px solid rgba(180,180,180,0.95);
  border-bottom: 0;
}

.attendance-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
}

.ring-value {
  position: absolute;
  inset: auto 0 10px 0;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #3d3d3d;
}

.ring-scale {
  width: 200px;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #7d7d7d;
  font-size: 0.72rem;
}

.ring-caption {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #3d3d3d;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.76rem;
  color: #3b3b3b;
}

.progress-value {
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(180, 180, 180, 0.5);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7fd49b, #4dbb76);
}

.schedule-panel {
  min-height: 280px;
}

.schedule-empty {
  height: 200px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
}

.lower-grid {
  margin-bottom: 18px;
}

.course-panel {
  min-height: 320px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  overflow-y: auto;
  padding-right: 6px;
  flex: 1;
}

.course-item {
  display: grid;
  grid-template-columns: 38px minmax(70px, 110px) 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(133, 133, 133, 0.18);
}

.course-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #d0574f, #bc3d3a);
  color: #fff;
  font-size: 0.9rem;
}

.course-title {
  font-weight: 700;
  color: #2f2f2f;
  font-size: 0.96rem;
  text-decoration: none;
}

.course-title:hover {
  text-decoration: underline;
}

.course-name {
  font-size: 0.9rem;
  color: #3c3c3c;
}

.course-credits {
  color: #747474;
  font-size: 0.76rem;
  white-space: nowrap;
}

.payment-panel {
  min-height: 320px;
}

.panel-button.secondary {
  background: rgba(255,255,255,0.4);
  color: #7c7c7c;
}

.payment-tabs {
  display: flex;
  gap: 10px;
  margin: 8px 0 14px;
}

.tab {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #747474;
  background: rgba(255,255,255,0.32);
}

.tab.active {
  background: rgba(204, 70, 70, 0.1);
  color: #c24848;
}

.payment-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(181, 181, 181, 0.35);
  border-radius: 10px;
  padding: 18px 14px 14px;
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-item {
  border-bottom: 1px solid rgba(144, 144, 144, 0.18);
  padding-bottom: 10px;
}

.payment-item:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.payment-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #353535;
  margin-bottom: 8px;
}

.payment-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #404040;
  font-size: 0.78rem;
  line-height: 1.5;
}

.payment-meta strong {
  font-weight: 700;
}

.paid {
  color: #3c8f59;
}

.ask-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(129, 129, 129, 0.2);
  background: rgba(255,255,255,0.7);
  color: #616161;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.68rem;
}

.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 12, 0.9);
  color: rgba(255,255,255,0.85);
  height: 34px;
  padding: 0 18px;
  font-size: 0.7rem;
}

.modal-open {
  overflow: hidden;
}

.assessment-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.assessment-modal.open {
  display: flex;
}

.assessment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, 0.72);
}

.assessment-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: min(920px, 94vw);
  max-height: 94vh;
  padding: 12px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  overflow: auto;
}

.assessment-modal-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.assessment-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 35, 35, 0.76);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .photo-panel {
    min-height: 320px;
  }

  .login-panel {
    padding-top: 28px;
  }

  .main-dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(117,117,117,0.16);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .content-area,
  .enrollment-page {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .login-layout {
    min-height: auto;
  }

  .photo-panel {
    min-height: 220px;
  }

  .brand-header {
    gap: 10px;
    margin-bottom: 14px;
    padding-top: 0;
  }

  .crest {
    width: 56px;
    height: 56px;
  }

  .brand-label {
    font-size: 0.88rem;
    max-width: 190px;
    white-space: normal;
  }

  .login-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .login-card {
    padding-left: 14px;
    padding-right: 14px;
    width: 100%;
  }

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

  .field-header {
    flex-wrap: wrap;
  }

  .system-bar {
    min-height: 34px;
    height: auto;
    padding: 0 10px;
    font-size: 10px;
    gap: 8px;
  }

  .system-right {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topbar {
    padding: 10px 12px;
    min-height: 62px;
  }

  .topbar-left,
  .topbar-right {
    gap: 7px;
  }

  .mini-crest {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .user-name {
    font-size: 0.62rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-id {
    font-size: 0.6rem;
  }

  .content-area {
    min-width: 0;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .sidebar {
    padding: 8px 8px 0;
  }

  .search-box {
    margin-top: 2px;
  }

  .side-nav {
    gap: 2px;
  }

  .nav-item {
    min-height: 40px;
    height: auto;
    font-size: 0.88rem;
  }

  .sub-item {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.84rem;
  }

  .last-login {
    padding: 12px 8px 14px;
  }

  .greeting-bar {
    min-height: 58px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .greeting-label {
    font-size: 0.95rem;
  }

  .dashboard-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .panel {
    min-width: 0;
    padding: 11px 12px 14px;
  }

  .panel-head {
    gap: 8px;
  }

  .panel-button {
    padding: 6px 8px;
    font-size: 0.66rem;
  }

  .course-panel,
  .payment-panel {
    min-height: 300px;
  }

  .course-list {
    padding-right: 2px;
  }

  .course-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .course-badge {
    width: 30px;
    height: 30px;
  }

  .course-title,
  .course-name {
    overflow-wrap: anywhere;
  }

  .course-title {
    font-size: 0.86rem;
  }

  .course-name {
    font-size: 0.8rem;
  }

  .course-credits {
    font-size: 0.7rem;
  }

  .payment-card {
    padding: 14px 10px 12px;
  }

  .payment-title {
    font-size: 0.94rem;
  }

  .payment-meta {
    font-size: 0.72rem;
  }

  .enrollment-page {
    padding: 10px;
  }

  .enlistment-panel {
    min-height: auto;
  }

  .enlistment-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .academic-session,
  .program-details,
  .right-details {
    grid-column: 1;
    grid-row: auto;
  }

  .table-toolbar {
    justify-content: stretch;
    padding-top: 4px;
  }

  .table-toolbar input {
    flex: 1;
    min-width: 0;
  }

  .enlistment-table-wrap {
    margin-left: 6px;
    margin-right: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .table-footer {
    flex-wrap: wrap;
  }

  .enlistment-actions {
    margin-bottom: 0;
  }

  .enlistment-actions button {
    min-height: 38px;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .assessment-modal {
    padding: 8px;
  }

  .assessment-modal-dialog {
    max-width: 100%;
    max-height: 96vh;
    padding: 6px;
  }

  .assessment-modal-close {
    top: 10px;
    right: 10px;
  }

  .course-item {
    grid-template-columns: 36px 1fr;
  }

  .course-name,
  .course-credits {
    grid-column: 2;
  }
}

@media (max-width: 380px) {
  .topbar-right .user-icon-wrap {
    display: none;
  }

  .user-name {
    max-width: 135px;
  }

  .brand-label {
    max-width: 170px;
    font-size: 0.82rem;
  }

  .payment-meta {
    font-size: 0.68rem;
  }
}
