:root {
  --bg: #f8fafd;
  --panel: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --blue: #1a73e8;
  --green: #188038;
  --yellow: #fbbc04;
  --red: #d93025;
  --sidebar-width: 256px;
  --topbar-height: 72px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Google Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  text-decoration: none;
}

.public-bg {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(26, 115, 232, .08), rgba(24, 128, 56, .04)),
    var(--bg);
}

.public-shell,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .08);
  padding: 24px;
}

.public-shell {
  max-width: 980px;
  margin: 0 auto;
}

.intake-student-lookup {
  padding-bottom: 18px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}

.intake-search-status {
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--green);
  font-size: .78rem;
}

.login-bg {
  min-height: 100vh;
  background: #f7f9fc;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, .12);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8eaed;
}

.login-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 1.2rem;
}

.login-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.login-brand strong {
  font-size: 1.2rem;
  font-weight: 500;
}

.login-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .8rem;
}

.login-heading {
  margin: 28px 0 24px;
}

.login-heading h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 500;
}

.login-heading p {
  margin: 0;
  color: var(--muted);
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  font-size: .9rem;
}

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

.login-field .form-label {
  margin-bottom: 7px;
  color: #3c4043;
  font-size: .88rem;
  font-weight: 600;
}

.login-field .input-group {
  min-height: 46px;
}

.login-field .input-group-text {
  width: 44px;
  justify-content: center;
  color: var(--muted);
  background: #f8fafd;
  border-color: var(--line);
}

.login-field .form-control:focus {
  border-color: #8ab4f8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
}

.login-submit {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .login-shell {
    align-items: start;
    padding: 16px;
  }

  .login-card {
    margin-top: 8vh;
    padding: 28px 22px;
  }
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 1.4rem;
}

.btn {
  border-radius: 6px;
  font-weight: 600;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.form-control,
.form-select {
  border-radius: 6px;
  border-color: var(--line);
}

.admin-body {
  min-height: 100vh;
  background: #f7f9fc;
}

.admin-topbar {
  position: fixed;
  z-index: 1020;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar-context {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-context span {
  color: var(--muted);
  font-size: .75rem;
}

.topbar-context strong {
  font-size: .98rem;
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.console-search {
  width: min(340px, 32vw);
  height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  background: #f1f3f4;
  border: 1px solid transparent;
  border-radius: 6px;
}

.console-search:focus-within {
  background: #fff;
  border-color: #a8c7fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .18);
}

.console-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
}

.icon-button:hover {
  color: var(--blue);
  background: #f8fafd;
}

.sidebar {
  position: fixed;
  z-index: 1030;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--topbar-height);
  padding: 10px 20px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.sidebar-brand:hover {
  color: var(--text);
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 1.1rem;
}

.sidebar-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sidebar-brand strong {
  font-size: 1.05rem;
  font-weight: 500;
}

.sidebar-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .77rem;
}

.admin-nav {
  padding: 18px 12px;
}

.nav-section {
  display: block;
  padding: 16px 14px 7px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-section:first-child {
  padding-top: 2px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: #3c4043;
  padding: 9px 14px;
  border-radius: 0 22px 22px 0;
  margin: 2px 0;
  font-size: .9rem;
  font-weight: 500;
}

.admin-nav a i {
  width: 20px;
  color: #5f6368;
  text-align: center;
  font-size: 1rem;
}

.admin-nav a:hover {
  background: #f1f3f4;
  color: var(--text);
}

.admin-nav a.active {
  color: #174ea6;
  background: #e8f0fe;
}

.admin-nav a.active i {
  color: var(--blue);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 18px 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .76rem;
}

.sidebar-footer > i {
  color: var(--green);
  font-size: 1rem;
}

.sidebar-footer span {
  display: flex;
  flex-direction: column;
}

.sidebar-footer strong {
  color: #3c4043;
  font-weight: 500;
}

.mobile-menu {
  width: min(300px, 88vw) !important;
}

.mobile-menu .offcanvas-header {
  min-height: var(--topbar-height);
  padding: 0 16px 0 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .offcanvas-header .sidebar-brand {
  border: 0;
}

.mobile-menu .offcanvas-body {
  padding: 0;
}

.app-main {
  max-width: 1800px;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 34px) 32px 40px;
}

.page-title,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.page-title {
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e5e9;
  margin-bottom: 28px;
}

.page-title p,
.panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.page-title h1,
.panel h2,
.panel-header h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.page-title h1 {
  font-size: 1.7rem;
  font-weight: 400;
}

.repair-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.panel {
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.panel > h2 {
  padding: 20px 22px 0;
}

.panel > p {
  padding-right: 22px;
  padding-left: 22px;
}

.panel > form,
.panel > .row,
.panel > .detail-list,
.panel > .timeline {
  padding: 20px 22px;
}

.panel > h2 + .row,
.panel > h2 + .detail-list,
.panel > h2 + .timeline {
  padding-top: 16px;
}

.panel-header {
  min-height: 68px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.panel-header h2,
.panel h2 {
  font-size: 1rem;
  font-weight: 500;
}

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

.stat-card,
.metric {
  display: block;
  height: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--text);
}

.stat-card span,
.metric span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 8px;
}

.stat-card strong,
.metric strong {
  font-size: 1.5rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.stat-card {
  position: relative;
  min-height: 126px;
  padding: 18px 18px 15px;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}

a.stat-card:hover {
  border-color: #a8c7fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .15);
}

.stat-card strong {
  display: block;
  margin-bottom: 13px;
  font-size: 1.75rem;
  font-weight: 400;
}

.stat-card small {
  color: var(--muted);
  font-size: .74rem;
}

.stat-card::before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 8px 8px 0 0;
  opacity: .85;
}

.revenue-card::before {
  background: var(--green);
}

.paid-card::before {
  background: var(--green);
}

.balance-card::before {
  background: var(--red);
}

.student-identity {
  display: grid;
  grid-template-columns: 1.6fr 1fr repeat(3, minmax(100px, .7fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.student-identity > div {
  min-width: 0;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}

.student-identity > div:last-child {
  border-right: 0;
}

.student-identity span,
.student-identity strong {
  display: block;
  overflow-wrap: anywhere;
}

.student-identity span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .72rem;
}

.student-identity strong {
  font-size: .86rem;
  font-weight: 500;
}

.student-financials {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.prepaid-card::before {
  background: var(--yellow);
}

.settings-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.settings-nav {
  display: flex;
  gap: 4px;
  margin: -10px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e5e9;
  overflow-x: auto;
}

.settings-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--muted);
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
}

.settings-nav a:hover {
  color: var(--blue);
  background: #f1f3f4;
}

.data-management-list {
  display: grid;
}

.data-management-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

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

.data-management-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #e8f0fe;
  border-radius: 50%;
}

.archive-row .data-management-icon {
  color: var(--red);
  background: #fce8e6;
}

.data-management-row strong,
.data-management-row p {
  display: block;
  margin: 0;
}

.data-management-row strong {
  font-size: .86rem;
  font-weight: 600;
}

.data-management-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .75rem;
}

.database-modal {
  border: 0;
  border-radius: 8px;
}

.database-modal .modal-header {
  align-items: flex-start;
}

.database-modal .modal-title {
  font-size: 1.05rem;
  font-weight: 500;
}

.database-modal .modal-header p,
.archive-warning p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.archive-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  color: #a50e0e;
  background: #fce8e6;
  border: 1px solid #f4b4ae;
  border-radius: 6px;
}

.archive-warning p {
  margin: 0;
  color: inherit;
}

.settings-form-band {
  padding: 18px 22px;
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
}

.technician-add-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr auto;
  align-items: end;
  gap: 12px;
}

.settings-table td:first-child strong,
.settings-table td:first-child small {
  display: block;
}

.settings-table td:first-child small {
  margin-top: 2px;
  color: var(--muted);
}

.password-reset-form {
  display: flex;
  gap: 7px;
  max-width: 280px;
}

.settings-delete {
  width: 34px;
  height: 34px;
  color: var(--muted);
  border: 0;
  border-radius: 50%;
}

.settings-delete:hover {
  color: var(--red);
  background: #fce8e6;
}

.email-settings-form {
  padding: 0 22px 20px;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e8eaed;
}

.intake-search-settings-form {
  padding: 0 22px;
}

.network-add-form {
  display: grid;
  grid-template-columns: minmax(240px, 520px) auto;
  align-items: end;
  gap: 12px;
}

.allowed-network-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px 10px 22px;
  border-bottom: 1px solid #e8eaed;
}

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

.allowed-network-row > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.allowed-network-row > div > i {
  color: var(--blue);
  font-size: 1rem;
}

.allowed-network-row strong,
.allowed-network-row small {
  display: block;
}

.allowed-network-row strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  font-weight: 500;
}

.allowed-network-row small,
.settings-footer-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: .7rem;
}

.settings-footer-note {
  display: flex;
  align-items: center;
  gap: 7px;
}

.settings-empty-row {
  padding: 18px 22px;
  color: var(--muted);
  font-size: .78rem;
}

.time-display-form {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.time-display-options {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  background: #f1f3f4;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.time-display-options label {
  min-width: 0;
  cursor: pointer;
}

.time-display-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.time-display-options span {
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 4px;
}

.time-display-options i {
  grid-row: 1 / 3;
  font-size: 1rem;
  text-align: center;
}

.time-display-options strong,
.time-display-options small {
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
}

.time-display-options strong {
  color: #3c4043;
  font-size: .82rem;
  font-weight: 500;
}

.time-display-options small {
  font-size: .68rem;
}

.time-display-options input:checked + span {
  color: var(--blue);
  background: #fff;
  border-color: #a8c7fa;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .14);
}

.time-display-options input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.settings-toggle-row strong,
.settings-toggle-row small {
  display: block;
}

.settings-toggle-row strong {
  font-size: .85rem;
  font-weight: 500;
}

.settings-toggle-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
}

.form-switch-control {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
}

.form-switch-control input {
  position: absolute;
  opacity: 0;
}

.form-switch-control span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #9aa0a6;
  border-radius: 11px;
  transition: background .15s;
}

.form-switch-control span::after {
  position: absolute;
  content: "";
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .15s;
}

.form-switch-control input:checked + span {
  background: var(--blue);
}

.form-switch-control input:checked + span::after {
  transform: translateX(16px);
}

.form-switch-control input:focus-visible + span {
  outline: 2px solid #a8c7fa;
  outline-offset: 2px;
}

.email-settings-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
}

.email-host { grid-column: span 4; }
.email-port { grid-column: span 2; }
.email-encryption { grid-column: span 2; }
.email-username { grid-column: span 4; }
.email-password,
.email-sender-name,
.email-sender-email { grid-column: span 4; }

.settings-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.settings-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-email-modal {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(60, 64, 67, .26);
}

.test-email-modal .modal-header {
  align-items: flex-start;
}

.test-email-modal .modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.test-email-modal .modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.test-email-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  margin-top: 14px;
  border: 1px solid;
  border-radius: 6px;
}

.test-email-status[hidden] {
  display: none;
}

.test-email-status.success {
  color: #137333;
  background: #e6f4ea;
  border-color: #a8dab5;
}

.test-email-status.error {
  color: #a50e0e;
  background: #fce8e6;
  border-color: #f4b4ae;
}

.test-email-status > i {
  margin-top: 1px;
}

.test-email-status strong,
.test-email-status p {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.test-email-status strong {
  font-size: .82rem;
  font-weight: 600;
}

.test-email-status p {
  margin-top: 3px;
  font-size: .75rem;
}

.campus-add-form {
  display: grid;
  grid-template-columns: minmax(240px, 480px) auto;
  align-items: end;
  gap: 12px;
}

.campus-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 22px;
  border-bottom: 1px solid #e8eaed;
}

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

.campus-rename-form {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 100px 100px auto;
  align-items: center;
  gap: 12px;
}

.campus-rename-form span {
  color: var(--muted);
  font-size: .72rem;
}

.policy-exclusions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 22px;
  color: #3c4043;
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
}

.policy-exclusions > i {
  margin-top: 1px;
  color: var(--muted);
  font-size: 1rem;
}

.policy-exclusions strong,
.policy-exclusions p {
  display: block;
  margin: 0;
}

.policy-exclusions strong {
  font-size: .82rem;
  font-weight: 500;
}

.policy-exclusions p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}

.deductible-stage-add {
  display: grid;
  grid-template-columns: 180px 220px auto;
  align-items: end;
  gap: 12px;
}

.deductible-stage-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 10px 18px 10px 22px;
  border-bottom: 1px solid #e8eaed;
}

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

.deductible-stage-form {
  display: grid;
  grid-template-columns: 160px 190px minmax(220px, 1fr);
  align-items: end;
  gap: 12px;
}

.deductible-stage-actions {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deductible-stage-actions form {
  display: flex;
}

.deductible-stage-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 500;
}

.stage-range {
  align-self: center;
  color: var(--muted);
  font-size: .72rem;
}

.section-heading {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.bulk-operation h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.section-heading p,
.bulk-operation p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

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

.bulk-operation {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.bulk-operation:last-child {
  border-right: 0;
}

.bulk-operation-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 78px;
}

.bulk-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  color: var(--blue);
  background: #e8f0fe;
  border-radius: 50%;
}

.column-list {
  min-height: 76px;
  padding: 12px;
  margin: 16px 0;
  background: #f8fafd;
  border: 1px solid #e8eaed;
  border-radius: 6px;
}

.column-list span,
.column-list code {
  display: block;
}

.column-list span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.column-list code {
  color: #3c4043;
  font-size: .7rem;
  line-height: 1.5;
  white-space: normal;
}

.file-picker {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  cursor: pointer;
  border: 1px dashed #9aa0a6;
  border-radius: 6px;
}

.file-picker:hover {
  background: #f8fafd;
  border-color: var(--blue);
}

.file-picker > i {
  color: var(--green);
  font-size: 1.35rem;
}

.file-picker span,
.file-picker strong,
.file-picker small {
  display: block;
}

.file-picker strong {
  font-size: .8rem;
  font-weight: 500;
}

.file-picker small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bulk-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.import-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.import-result p {
  margin: 2px 0 0;
}

.settings-list > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 22px;
  border-bottom: 1px solid #e8eaed;
}

.settings-list > div:last-child {
  border-bottom: 0;
}

.settings-list > div > i {
  width: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 1rem;
}

.settings-list > div > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.settings-list strong {
  font-size: .85rem;
  font-weight: 500;
}

.settings-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .74rem;
}

.table {
  margin-bottom: 0;
  font-size: .86rem;
}

.table > :not(caption) > * > * {
  padding: 13px 16px;
  border-bottom-color: #e8eaed;
}

.table thead th {
  color: var(--muted);
  background: #f8fafd;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: #f8fafd;
}

.badge.text-bg-light {
  color: #174ea6 !important;
  background: #e8f0fe !important;
  border-color: #d2e3fc !important;
  font-weight: 500;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(140px, 1fr)) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.audit-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, .45fr) minmax(160px, .4fr) auto auto;
  gap: 10px;
  margin-bottom: 16px;
}

.audit-search {
  position: relative;
}

.audit-search > i {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  color: var(--muted);
  transform: translateY(-50%);
}

.audit-search .form-control {
  padding-left: 38px;
}

.audit-table td strong,
.audit-table td small {
  display: block;
}

.audit-table td small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .7rem;
}

.audit-time {
  min-width: 170px;
  color: var(--muted);
  font-size: .76rem;
}

.audit-action {
  display: inline-block;
  padding: 3px 7px;
  color: #174ea6;
  background: #e8f0fe;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .69rem;
  white-space: nowrap;
}

.audit-description {
  min-width: 260px;
  max-width: 480px;
}

.audit-table code {
  color: #3c4043;
  font-size: .7rem;
}

.student-directory-search {
  display: grid;
  grid-template-columns: minmax(0, 720px) 42px;
  gap: 10px;
  margin-bottom: 16px;
}

.student-directory-search .btn {
  width: 42px;
  padding: 0;
}

.table-pagination {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .78rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-controls strong {
  min-width: 94px;
  color: #3c4043;
  font-weight: 500;
  text-align: center;
}

.pagination-controls .icon-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: .85rem;
}

.pagination-controls .icon-button.disabled {
  opacity: .35;
}

.student-directory-search .student-search-results button > i {
  opacity: 1;
}

.status-pill {
  border: 1px solid rgba(26, 115, 232, .25);
  background: rgba(26, 115, 232, .09);
  color: var(--blue);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  border-left: 3px solid var(--blue);
  padding-left: 12px;
}

.timeline span,
.detail-list dt {
  color: var(--muted);
  font-size: .82rem;
}

.timeline p,
.detail-list dd {
  margin-bottom: 0;
}

.public-updates-panel {
  margin-top: 16px;
}

.visibility-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 600;
}

.note-composer {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.note-composer textarea {
  margin-bottom: 10px;
  resize: vertical;
}

.note-thread {
  background: #fff;
}

.note-entry {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #e8eaed;
}

.note-entry:last-child {
  border-bottom: 0;
}

.note-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #174ea6;
  background: #e8f0fe;
  border-radius: 50%;
}

.note-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 1px 0 5px;
}

.note-meta strong {
  font-size: .82rem;
  font-weight: 600;
}

.note-meta time {
  color: var(--muted);
  font-size: .7rem;
  white-space: nowrap;
}

.note-entry p {
  margin: 0;
  color: #3c4043;
  font-size: .88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.empty-notes {
  padding: 28px 22px;
  color: var(--muted);
  text-align: center;
}

.empty-notes i {
  display: block;
  margin-bottom: 7px;
  font-size: 1.25rem;
}

.empty-notes p {
  margin: 0;
  font-size: .82rem;
}

.public-note-section {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.public-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  background: #f8fafd;
  border-bottom: 1px solid var(--line);
}

.public-section-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
}

.public-section-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.public-section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .76rem;
}

.status-history {
  margin-top: 20px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.status-history summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

.public-issue-details {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(0, 2fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.public-issue-details > div {
  padding: 16px 18px;
}

.public-issue-details > div + div {
  border-left: 1px solid var(--line);
}

.public-issue-details span,
.public-issue-details strong {
  display: block;
}

.public-issue-details span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 500;
}

.public-issue-details strong {
  font-size: .9rem;
  font-weight: 500;
}

.public-issue-details p {
  margin: 0;
  color: #3c4043;
  font-size: .88rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.payment-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.payment-alert p {
  margin: 2px 0 0;
}

.payment-form {
  padding: 22px;
}

.student-search-field {
  max-width: 720px;
}

.student-combobox {
  position: relative;
}

.student-search-input {
  position: relative;
}

.student-search-input > i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 13px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.student-search-input .form-control {
  padding-left: 38px;
}

.student-search-results {
  position: absolute;
  z-index: 1040;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 330px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(60, 64, 67, .22);
  overflow-y: auto;
}

.student-search-results button {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 4px;
  text-align: left;
}

.student-search-results button:hover,
.student-search-results button:focus {
  background: #f1f3f4;
  outline: 0;
}

.student-search-results button[aria-selected="true"] {
  background: #e8f0fe;
}

.student-search-results button > span:nth-child(2),
.student-search-results button strong,
.student-search-results button small {
  display: block;
  min-width: 0;
}

.student-search-results button strong {
  font-size: .84rem;
  font-weight: 500;
}

.student-search-results button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .7rem;
}

.student-search-results button > i {
  color: var(--blue);
  opacity: 0;
}

.student-search-results button[aria-selected="true"] > i {
  opacity: 1;
}

.student-result-avatar {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  color: #174ea6;
  background: #e8f0fe;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 600;
}

.student-search-empty {
  padding: 20px 12px;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}

.payment-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 16px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid #e8eaed;
}

.payment-notes-field {
  grid-column: span 2;
}

.payment-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.payment-submit > span {
  color: var(--muted);
  font-size: .72rem;
}

.payment-submit > span i {
  margin-right: 5px;
  color: var(--green);
}

.prepaid-credit-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #f8fafd;
  border: 1px solid #d2e3fc;
  border-radius: 6px;
}

.prepaid-credit-callout > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.prepaid-credit-callout > div > i {
  color: var(--green);
  font-size: 1.1rem;
}

.prepaid-credit-callout span,
.prepaid-credit-callout strong {
  display: block;
}

.prepaid-credit-callout span {
  color: var(--muted);
  font-size: .72rem;
}

.prepaid-credit-callout strong {
  margin-top: 2px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.payment-report-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, .8fr)) repeat(3, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.repair-report-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, .8fr)) repeat(4, minmax(135px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.report-nav {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  background: #f1f3f4;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.report-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 13px;
  color: #3c4043;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 500;
}

.report-nav a:hover {
  color: var(--blue);
}

.report-nav a.active {
  color: #174ea6;
  background: #fff;
  border-color: #a8c7fa;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .12);
}

.report-directory-row {
  min-height: 84px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(120px, auto) 24px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

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

.report-directory-row:hover {
  color: var(--text);
  background: #f8fafd;
}

.report-directory-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #174ea6;
  background: #e8f0fe;
  border-radius: 50%;
}

.repair-report-icon {
  color: #137333;
  background: #e6f4ea;
}

.report-directory-row > span:nth-child(2) strong,
.report-directory-row > span:nth-child(2) small,
.report-directory-metrics strong,
.report-directory-metrics small {
  display: block;
}

.report-directory-row > span:nth-child(2) strong {
  font-size: .9rem;
  font-weight: 500;
}

.report-directory-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}

.report-directory-metrics {
  text-align: right;
}

.report-directory-metrics strong {
  font-size: 1.1rem;
  font-weight: 500;
}

.report-directory-row > i {
  color: var(--muted);
}

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

.repair-report-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-summary-grid .metric {
  min-height: 96px;
}

.report-results-header,
.report-export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-student-id,
.payment-report-print-table small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .7rem;
}

.payment-report-print-body {
  min-height: 100vh;
  padding: 24px;
  background: #eef1f5;
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
}

.print-toolbar {
  width: min(11in, 100%);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 auto 16px;
}

.payment-report-sheet {
  width: 11in;
  min-height: 8.5in;
  padding: .45in;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 12px rgba(60, 64, 67, .2);
}

.payment-report-print-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .25in;
  padding-bottom: .16in;
  border-bottom: 2px solid #202124;
}

.payment-report-print-header > div:first-child > span {
  color: #1a73e8;
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
}

.payment-report-print-header h1 {
  margin: .03in 0;
  font-size: 20pt;
  font-weight: 500;
}

.payment-report-print-header p,
.payment-report-print-header > div:last-child span,
.payment-report-print-header > div:last-child strong {
  display: block;
  margin: 0;
  font-size: 8.5pt;
}

.payment-report-print-header > div:last-child {
  text-align: right;
}

.payment-report-criteria,
.payment-report-print-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: .15in 0;
}

.repair-report-criteria {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: .15in 0;
  border: 1px solid #c7cacf;
}

.repair-report-criteria > div {
  padding: .09in .12in;
  border-right: 1px solid #c7cacf;
}

.repair-report-criteria > div:last-child {
  border-right: 0;
}

.repair-report-criteria dt {
  color: #5f6368;
  font-size: 7.5pt;
  font-weight: 500;
  text-transform: uppercase;
}

.repair-report-criteria dd {
  margin: .02in 0 0;
  font-size: 9pt;
  font-weight: 600;
}

.repair-print-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payment-report-print-table.repair-report-print-table th:nth-child(1) { width: 1.15in; }
.payment-report-print-table.repair-report-print-table th:nth-child(2) { width: 1.55in; }
.payment-report-print-table.repair-report-print-table th:nth-child(3) { width: 1.3in; }
.payment-report-print-table.repair-report-print-table th:nth-child(4) { width: auto; }
.payment-report-print-table.repair-report-print-table th:nth-child(5) { width: 1.2in; }
.payment-report-print-table.repair-report-print-table th:nth-child(6) { width: 1.1in; }

.payment-report-criteria {
  border: 1px solid #c7cacf;
}

.payment-report-criteria > div,
.payment-report-print-summary > div {
  padding: .09in .12in;
  border-right: 1px solid #c7cacf;
}

.payment-report-criteria > div:last-child,
.payment-report-print-summary > div:last-child {
  border-right: 0;
}

.payment-report-criteria dt,
.payment-report-print-summary span {
  color: #5f6368;
  font-size: 7.5pt;
  font-weight: 500;
  text-transform: uppercase;
}

.payment-report-criteria dd,
.payment-report-print-summary strong {
  display: block;
  margin: .02in 0 0;
  font-size: 10pt;
  font-weight: 600;
}

.payment-report-print-summary {
  background: #f8fafd;
  border: 1px solid #c7cacf;
}

.payment-report-print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 7.5pt;
}

.payment-report-print-table th,
.payment-report-print-table td {
  padding: .07in .06in;
  border-bottom: 1px solid #dadce0;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.payment-report-print-table th {
  color: #5f6368;
  background: #f1f3f4;
  font-size: 7pt;
  text-transform: uppercase;
}

.payment-report-print-table th:nth-child(1) { width: .85in; }
.payment-report-print-table th:nth-child(2) { width: 1.65in; }
.payment-report-print-table th:nth-child(3) { width: 1.35in; }
.payment-report-print-table th:nth-child(4) { width: 1.35in; }
.payment-report-print-table th:nth-child(6) { width: .85in; }

.payment-report-print-table .amount {
  text-align: right;
  white-space: nowrap;
}

.payment-report-print-table tfoot td {
  padding-top: .1in;
  border-top: 2px solid #202124;
  border-bottom: 0;
  font-weight: 700;
}

.payment-report-print-table tfoot td:first-child {
  text-align: right;
}

.empty-report {
  padding: .3in !important;
  color: #5f6368;
  text-align: center;
}

.repair-slip-body {
  min-height: 100vh;
  padding: 28px;
  background: #eef1f5;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}

.slip-actions {
  width: min(8.5in, 100%);
  display: flex;
  gap: 8px;
  margin: 0 auto 16px;
}

.repair-slip-page {
  width: 8.5in;
  min-height: 11in;
  display: flex;
  flex-direction: column;
  padding: .5in;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 12px rgba(60, 64, 67, .2);
  font-size: 12pt;
  line-height: 1.3;
}

.device-tab {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr .7fr;
  grid-template-areas:
    "student student grade"
    "id campus date";
  column-gap: .22in;
  row-gap: .05in;
  padding: .12in 0 .13in;
  border-bottom: 2px dashed #000;
  font-size: 11pt;
}

.tab-item {
  display: flex;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}

.tab-item span,
.tab-item strong {
  font-weight: 700;
}

.tab-student { grid-area: student; }
.tab-grade { grid-area: grade; justify-self: end; }
.tab-id { grid-area: id; }
.tab-campus { grid-area: campus; }
.tab-date { grid-area: date; justify-self: end; }

.return-device-tab {
  grid-template-columns: 1.05fr 1.2fr .7fr auto;
  grid-template-areas:
    "student student grade status"
    "id campus date status";
}

.return-complete-label {
  grid-area: status;
  align-self: start;
  justify-self: end;
  padding: .06in .12in;
  border: 1.5px solid #000;
  border-radius: 3px;
  font-size: 10pt;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticket-content {
  padding-top: .38in;
}

.ticket-content h1 {
  margin: 0 0 .38in;
  font-size: 20pt;
  font-weight: 400;
  letter-spacing: 0;
}

.ticket-content dl,
.ticket-submitter dl {
  display: grid;
  grid-template-columns: 1.35in minmax(0, 1fr);
  row-gap: .02in;
  margin: 0;
}

.ticket-content dt,
.ticket-submitter dt {
  font-weight: 400;
}

.ticket-content dd,
.ticket-submitter dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.ticket-identifiers {
  margin-bottom: .28in !important;
}

.ticket-student-details {
  margin-bottom: .28in !important;
}

.ticket-issue-details dt,
.ticket-issue-details dd {
  padding-bottom: .03in;
}

.ticket-submitter {
  padding: .13in 0 0;
  margin-top: auto;
  border-top: 2px dashed #000;
}

.return-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .25in;
  margin-bottom: .3in;
}

.return-title h1 {
  margin-bottom: 0;
}

.return-title p {
  margin: .04in 0 0;
  color: #444;
  font-size: 10pt;
}

.return-issue-details {
  margin-bottom: .28in !important;
}

.return-updates {
  border-top: 1px solid #000;
}

.return-updates h2 {
  margin: 0;
  padding: .14in 0 .1in;
  font-size: 13pt;
  font-weight: 700;
}

.return-updates article {
  padding: .09in 0;
  border-top: 1px solid #bbb;
  break-inside: avoid;
}

.return-updates article > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .15in;
}

.return-updates article strong,
.return-updates article time {
  font-size: 9pt;
}

.return-updates article time {
  color: #444;
}

.return-updates article p,
.return-empty-updates {
  margin: .04in 0 0;
  font-size: 10.5pt;
  line-height: 1.35;
  white-space: pre-wrap;
}

.return-empty-updates {
  padding: .1in 0;
  color: #444;
}

.return-submitter {
  padding-top: .13in;
  margin-top: auto;
  border-top: 2px dashed #000;
  break-inside: avoid;
}

.return-submitter dl {
  display: grid;
  grid-template-columns: 1.05in minmax(0, 1fr);
  row-gap: .02in;
  margin: 0;
}

.return-submitter dt {
  font-weight: 400;
}

.return-submitter dd {
  margin: 0;
}

@media (max-width: 820px) {
  .repair-slip-body {
    padding: 16px;
  }

  .repair-slip-page {
    width: 100%;
    min-height: auto;
    padding: 28px;
  }

  .device-tab {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "student grade" "id date" "campus campus";
  }

  .return-device-tab {
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas: "student grade status" "id date status" "campus campus campus";
  }

  .tab-campus {
    justify-self: start;
  }
}

@media (max-width: 991.98px) {

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

  .audit-search {
    grid-column: 1 / -1;
  }
  .admin-topbar {
    left: 0;
    height: 64px;
    padding: 0 16px;
  }

  .app-main {
    margin-left: 0;
    padding: 88px 18px 28px;
  }

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

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

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

  .student-identity > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .student-identity > div:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .student-identity > div:last-child {
    border-bottom: 0;
  }

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

  .bulk-operation {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bulk-operation:last-child {
    border-bottom: 0;
  }

  .technician-add-form,
  .email-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .email-settings-grid > div {
    grid-column: auto;
  }

  .campus-rename-form {
    grid-template-columns: minmax(180px, 1fr) 90px 90px auto;
  }

  .deductible-stage-form {
    grid-template-columns: 130px 160px minmax(160px, 1fr);
  }

  .network-add-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .payment-report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repair-report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 575.98px) {

  .audit-filters {
    grid-template-columns: 1fr;
  }

  .audit-search {
    grid-column: auto;
  }

  .deductible-stage-row {
    grid-template-columns: 1fr;
  }

  .deductible-stage-actions {
    justify-content: flex-end;
  }

  .data-management-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .data-management-row > .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .topbar-context span {
    display: none;
  }

  .page-title {
    align-items: flex-start;
  }

  .page-title .btn {
    flex: 0 0 auto;
  }

  .repair-page-actions {
    width: 100%;
    justify-content: flex-start;
  }

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

  .student-financials,
  .student-identity {
    grid-template-columns: 1fr;
  }

  .student-identity > div:nth-child(odd) {
    border-right: 0;
  }

  .public-issue-details,
  .payment-fields,
  .payment-report-filters,
  .repair-report-filters,
  .report-summary-grid,
  .repair-report-summary {
    grid-template-columns: 1fr;
  }

  .report-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-directory-row {
    grid-template-columns: 40px minmax(0, 1fr) 20px;
  }

  .report-directory-metrics {
    display: none;
  }

  .public-issue-details > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .payment-notes-field {
    grid-column: auto;
  }

  .payment-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .time-display-form {
    align-items: stretch;
    flex-direction: column;
  }

  .time-display-options {
    grid-template-columns: 1fr;
  }

  .technician-add-form,
  .email-settings-grid,
  .campus-add-form,
  .campus-rename-form,
  .deductible-stage-add,
  .deductible-stage-form,
  .network-add-form {
    grid-template-columns: 1fr;
  }

  .settings-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-form-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .campus-rename-form span {
    display: inline;
  }

  .campus-setting-row {
    align-items: start;
  }
}

@page {
  size: Letter portrait;
  margin: .5in;
}

@page paymentReport {
  size: Letter landscape;
  margin: .4in;
}

@media print {
  body {
    background: #fff;
  }

  .admin-topbar,
  .sidebar,
  .no-print {
    display: none !important;
  }

  .app-main {
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .print-heading {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .student-identity,
  .student-financials,
  .panel {
    break-inside: avoid;
    box-shadow: none;
  }

  .student-financials {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .stat-card {
    min-height: 96px;
    padding: 12px;
  }

  .stat-card strong {
    font-size: 1.25rem;
  }

  .table {
    font-size: .72rem;
  }

  .table > :not(caption) > * > * {
    padding: 8px;
  }

  .repair-slip-body {
    min-height: 0;
    padding: 0;
    background: #fff;
  }

  .payment-report-print-body {
    min-height: 0;
    padding: 0;
    background: #fff;
    page: paymentReport;
  }

  .payment-report-sheet {
    width: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }

  .slip-actions {
    display: none !important;
  }

  .repair-slip-page {
    width: 7.5in;
    min-height: 10in;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }

  .device-tab {
    grid-template-columns: 1.15fr 1.2fr .7fr;
    grid-template-areas: "student student grade" "id campus date";
  }

  .return-device-tab {
    grid-template-columns: 1.05fr 1.2fr .7fr auto;
    grid-template-areas: "student student grade status" "id campus date status";
  }

  .tab-campus {
    justify-self: auto;
  }
}
