:root {
  --ink: #18324b;
  --ink-deep: #12273c;
  --ink-muted: #64768a;
  --blue: #2f76c7;
  --blue-soft: #eaf3fc;
  --red: #e53946;
  --red-deep: #ca2e3b;
  --green: #16865d;
  --green-soft: #e7f5ef;
  --amber: #a86a0c;
  --amber-soft: #fff4dd;
  --paper: #ffffff;
  --mist: #f4f7fa;
  --line: #e3eaf0;
  --line-strong: #d1dce5;
  --shadow: 0 16px 44px rgba(24, 50, 75, .08);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--mist); }
body {
  margin: 0;
  color: var(--ink-deep);
  background: var(--mist);
  font-family: "Google Sans", "Noto Sans Thai", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "GRAD" 0;
  font-size: 14px;
}
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(47, 118, 199, .28);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.site-header {
  height: 86px;
  padding: 0 4.2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid rgba(24, 50, 75, .08);
  position: relative;
  z-index: 2;
}
.brand-lockup { display: inline-flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 48px; height: 48px; display: inline-grid; place-items: center;
  color: white; background: var(--red); border-radius: 14px 14px 14px 5px;
  box-shadow: 0 8px 18px rgba(229, 57, 70, .18);
}
.brand-mark .icon { width: 27px; height: 27px; stroke-width: 1.8; }
.brand-words { display: grid; gap: 1px; }
.brand-words strong { font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.brand-words small { color: #7d8c9a; font-size: 9px; font-weight: 600; letter-spacing: .18em; }
.header-note { display: flex; align-items: center; gap: 10px; color: #52677c; font-size: 13px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #1aa06b; box-shadow: 0 0 0 4px rgba(26, 160, 107, .1); }

.auth-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); min-height: calc(100vh - 86px); }
.welcome-panel {
  min-height: 690px;
  display: flex; justify-content: flex-end;
  padding: 72px clamp(40px, 7vw, 120px) 24px 5vw;
  background: #eaf2f9;
  overflow: hidden;
  position: relative;
}
.welcome-panel::before { content: ""; width: 460px; height: 460px; position: absolute; left: -250px; top: -250px; border: 1px solid rgba(47, 118, 199, .12); border-radius: 50%; box-shadow: 0 0 0 46px rgba(47, 118, 199, .035), 0 0 0 92px rgba(47, 118, 199, .025); }
.welcome-copy { width: min(100%, 600px); position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.eyebrow-rule { display: inline-block; width: 24px; height: 2px; background: var(--red); }
.welcome-copy h1 { margin: 0; color: var(--ink); font-size: clamp(38px, 4.4vw, 57px); line-height: 1.22; letter-spacing: -.055em; font-weight: 700; }
.welcome-copy h1 span { color: var(--red); }
.welcome-lede { max-width: 490px; margin: 16px 0 27px; color: #53697e; font-size: 16px; line-height: 1.8; }
.welcome-points { display: grid; grid-template-columns: 1fr; gap: 15px; }
.welcome-points > div { display: flex; gap: 13px; align-items: center; }
.point-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); background: rgba(255,255,255,.76); border: 1px solid rgba(47,118,199,.13); border-radius: 11px; }
.point-icon .icon { width: 19px; height: 19px; }
.welcome-points b, .welcome-points small { display: block; }
.welcome-points b { margin-bottom: 2px; color: var(--ink); font-size: 13px; font-weight: 700; }
.welcome-points small { color: #6f8090; font-size: 11px; }
.campus-art { height: 210px; max-width: 570px; margin-top: 32px; position: relative; overflow: hidden; border-radius: 3px 3px 14px 14px; background: linear-gradient(178deg, #dcebf6 0%, #c7ddeb 62%, #a5bdcd 63%, #cedae0 100%); }
.campus-art::before { content: ""; position: absolute; inset: auto 0 0; height: 49px; background: repeating-linear-gradient(120deg, #c2d0d7 0 44px, #b9c9d0 44px 48px); }
.campus-sun { position: absolute; width: 62px; height: 62px; top: 23px; right: 54px; border-radius: 50%; background: rgba(255,255,255,.7); }
.campus-building { position: absolute; left: 13%; bottom: 44px; width: 65%; height: 119px; background: #eff4f6; border-top: 11px solid #647b89; box-shadow: 10px 9px 0 #a3b5c0; transform: skewY(-2deg); }
.building-sign { position: absolute; top: 9px; left: 20px; color: #526d80; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.building-windows { position: absolute; display: grid; grid-template-columns: repeat(3, 31px); grid-template-rows: repeat(2, 23px); gap: 9px 14px; left: 20px; top: 36px; }
.building-windows i { border: 4px solid #91a7b3; background: #d1e1e9; }
.building-entry { position: absolute; bottom: 0; right: 25px; width: 38px; height: 57px; background: #9aacb5; border: 4px solid #d4dfe4; border-bottom: 0; }
.campus-tree { position: absolute; bottom: 42px; width: 36px; height: 68px; border-radius: 48% 52% 28% 28%; background: #779c8b; }
.campus-tree::after { content: ""; position: absolute; bottom: -10px; left: 14px; width: 8px; height: 24px; background: #8d816c; }
.tree-one { left: 5%; transform: scale(.8); }.tree-two { right: 7%; transform: scale(1.15); }
.road-line { position: absolute; z-index: 1; bottom: 14px; left: 0; width: 100%; border-top: 2px dashed rgba(255,255,255,.85); }
.parked-car { position: absolute; z-index: 2; right: 21%; bottom: 20px; width: 120px; height: 34px; border-radius: 22px 32px 8px 10px; background: var(--red); box-shadow: inset 0 -7px 0 rgba(0,0,0,.12), 0 5px 8px rgba(24,50,75,.22); }
.parked-car::before { content: ""; position: absolute; left: 26px; top: -17px; width: 66px; height: 22px; border-radius: 36px 30px 0 0; background: #bd3441; clip-path: polygon(17% 0, 80% 0, 100% 100%, 0 100%); }
.car-window { position: absolute; left: 42px; top: -13px; width: 36px; height: 12px; z-index: 1; background: #c7e0ea; clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.parked-car i, .parked-car b { position: absolute; bottom: -6px; width: 19px; height: 19px; border: 4px solid #dbe1e4; border-radius: 50%; background: #273744; }
.parked-car i { left: 16px; }.parked-car b { right: 16px; }
.art-label { position: absolute; right: 13px; bottom: 13px; z-index: 3; color: rgba(24,50,75,.68); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.campus-caption { max-width: 570px; display: flex; justify-content: space-between; color: #718493; font-size: 10px; padding-top: 8px; }
.signin-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 52px 36px 22px; background: #fff; }
.signin-card { width: min(100%, 390px); }
.signin-emblem { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 22px; color: var(--red); background: #fff1f2; border-radius: 16px 16px 16px 5px; }
.signin-emblem .icon { width: 30px; height: 30px; }
.signin-card .eyebrow { color: #8291a0; font-size: 9px; }
.signin-card h2 { margin: 0; color: var(--ink); font-size: 31px; font-weight: 700; letter-spacing: -.04em; }
.signin-copy { margin: 8px 0 26px; color: #718192; line-height: 1.75; font-size: 13px; }
.admin-login-form { display: grid; gap: 14px; }
.admin-login-form .field { gap: 6px; font-size: 13px; }
.admin-login-form .field input { min-height: 46px; font-size: 14px; }
.admin-login-form .btn { width: 100%; min-height: 44px; }
.setup-notice { margin-top: 17px; padding: 13px; display: flex; gap: 10px; color: #705317; border: 1px solid #f3dfb2; border-radius: 8px; background: #fff9e9; }
.setup-notice-icon { color: #a86a0c; }
.setup-notice b, .setup-notice small { display: block; }
.setup-notice b { margin-bottom: 4px; font-size: 12px; }
.setup-notice small { color: #806b42; line-height: 1.55; font-size: 10px; }
.signin-privacy { margin: 23px 0 0; display: flex; gap: 7px; color: #8a98a5; font-size: 10px; align-items: center; }
.signin-privacy .icon { width: 14px; height: 14px; }
.signin-footer { width: min(100%, 390px); display: flex; justify-content: center; gap: 5px; color: #99a4af; font-size: 10px; margin-top: 38px; }
.signin-footer a { color: var(--blue); text-decoration: none; }

.app-shell { min-height: calc(100vh - 86px); display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; padding: 25px 16px 18px; background: var(--ink); color: #fff; min-height: calc(100vh - 86px); }
.sidebar-account { display: flex; gap: 11px; align-items: center; padding: 4px 9px 23px; border-bottom: 1px solid rgba(255,255,255,.12); }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: inline-grid; place-items: center; overflow: hidden; border-radius: 50%; color: #668099; background: #e8eef4; }
.avatar .icon { width: 19px; height: 19px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-large { width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.28); }
.sidebar-person { min-width: 0; }
.sidebar-person b, .sidebar-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-person b { color: #fff; font-size: 12px; font-weight: 600; }
.sidebar-person small { color: #9db0c2; margin-top: 3px; font-size: 9px; }
.side-label { margin: 23px 10px 9px; color: #8ba0b5; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.side-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 10px; text-align: left; color: #c8d3dd; border: 0; border-radius: 7px; background: transparent; font-size: 12px; cursor: pointer; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.active { color: #fff; background: var(--red); box-shadow: 0 5px 13px rgba(0,0,0,.12); }
.nav-item .icon { width: 17px; height: 17px; }
.nav-count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; margin-left: auto; border-radius: 50%; background: rgba(255,255,255,.17); font-size: 9px; }
.nav-count-red { color: var(--red-deep); background: #fff; }
.sidebar-help { margin: auto 3px 18px; padding: 15px 12px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: rgba(255,255,255,.045); }
.help-icon { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: 9px; color: #ffc45b; border-radius: 7px; background: rgba(255,196,91,.12); }
.help-icon .icon { width: 15px; height: 15px; }
.sidebar-help b { display: block; font-size: 11px; }
.sidebar-help p { margin: 5px 0 0; color: #a8b8c7; font-size: 9px; line-height: 1.6; }
.logout-link { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 11px 10px 0; border: 0; border-top: 1px solid rgba(255,255,255,.12); color: #bdcad5; background: transparent; text-align: left; font-size: 11px; cursor: pointer; }
.logout-link:hover { color: #fff; }.logout-link .icon { width: 16px; height: 16px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topline { height: 61px; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 clamp(22px, 4vw, 58px); border-bottom: 1px solid var(--line); background: #fff; }
.topline-context { display: flex; align-items: center; gap: 8px; color: #778897; font-size: 10px; }
.topline-context .online-dot { width: 6px; height: 6px; box-shadow: none; }
.topline-profile { display: flex; align-items: center; gap: 8px; color: #496074; font-size: 11px; font-weight: 600; }
.topline-profile .avatar { width: 29px; height: 29px; }
.mobile-brand { display: none; }
.mobile-bottom-nav { display: none; }
.mobile-logout { display: none; }
.app-content { width: 100%; max-width: 1490px; margin: 0 auto; padding: 36px clamp(22px, 4vw, 58px) 32px; flex: 1; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.page-heading .eyebrow { margin-bottom: 4px; font-size: 9px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: 27px; line-height: 1.45; letter-spacing: -.035em; font-weight: 700; }
.page-heading p:not(.eyebrow) { margin: 4px 0 0; color: #718293; font-size: 12px; }
.heading-mark { display: flex; align-items: center; gap: 8px; padding: 9px 13px; color: var(--red-deep); background: #fff2f3; border-radius: 6px; font-size: 10px; font-weight: 600; }
.heading-mark .icon { width: 18px; height: 18px; }
.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 22px; align-items: start; }
.request-form { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 12px rgba(24,50,75,.025); overflow: hidden; }
.form-section { padding: 25px 28px 26px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.section-index { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue); border-radius: 8px; background: var(--blue-soft); font-size: 10px; font-weight: 700; }
.section-index .icon { width: 20px; height: 20px; stroke-width: 1.8; }
.section-heading h2 { margin: 1px 0 2px; color: var(--ink); font-size: 15px; font-weight: 700; }
.section-heading p { margin: 0; color: #8593a0; font-size: 10px; }
.identity-strip { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; padding: 10px 12px; background: #f7f9fb; border: 1px solid #edf1f4; border-radius: 7px; }
.identity-avatar { width: 38px; height: 38px; }
.identity-text { min-width: 0; display: grid; gap: 1px; }
.identity-text b, .identity-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-text b { color: #344a5e; font-size: 11px; }
.identity-text span { color: #8997a4; font-size: 9px; }
.verified-label { display: flex; align-items: center; gap: 4px; margin-left: auto; color: var(--green); font-size: 9px; font-weight: 600; white-space: nowrap; }
.verified-label .icon { width: 14px; height: 14px; }
.field-grid { display: grid; gap: 16px 14px; }
.field-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 7px; min-width: 0; color: #41566a; font-size: 11px; font-weight: 600; }
.field > span:first-child { display: block; }
.field em, .form-legend em { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 10px 12px; color: var(--ink-deep); background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; outline: none; font-size: 11px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: #a4b0bb; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,118,199,.1); }
.field select { appearance: none; padding-right: 35px; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23758899' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.field textarea { min-height: 83px; resize: vertical; line-height: 1.65; }
.field small { margin-top: -4px; color: #95a2ad; font-size: 9px; font-weight: 400; }
.field-full { grid-column: 1 / -1; }
.field-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; }
.calendar-wrap { display: flex; align-items: center; position: relative; }
.calendar-wrap .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: #7c8d9c; pointer-events: none; }
.calendar-wrap input { padding-left: 37px; cursor: pointer; }
.flatpickr-calendar { width: 306px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 16px 42px rgba(24,50,75,.17); font-family: "Google Sans", "Noto Sans Thai", sans-serif; }
.flatpickr-months { align-items: center; padding: 4px 3px 7px; }
.flatpickr-current-month { color: var(--ink); font-size: 14px; font-weight: 700; }
.flatpickr-current-month .flatpickr-monthDropdown-months { color: var(--ink); font-weight: 700; }
.flatpickr-weekdays { height: 31px; }
.flatpickr-weekday { color: #82909d; font-size: 10px; font-weight: 600; }
.flatpickr-day { max-width: 37px; height: 37px; line-height: 35px; border-radius: 9px; color: #455a6d; font-size: 11px; }
.flatpickr-day:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.flatpickr-day.today { border-color: var(--blue); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange { color: #fff; border-color: var(--red); background: var(--red); }
.flatpickr-day.inRange { border-color: #f6e5e7; background: #f6e5e7; box-shadow: -5px 0 0 #f6e5e7, 5px 0 0 #f6e5e7; }
.flatpickr-prev-month, .flatpickr-next-month { color: var(--ink-muted); }
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg { fill: var(--blue); }
.upload-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 13px; }
.upload-card { min-width: 0; display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 12px; padding: 10px; border: 1px dashed #cbd8e2; border-radius: 8px; background: #fbfcfd; }
.upload-preview { height: 94px; position: relative; display: grid; place-items: center; overflow: hidden; color: #9dafbd; background: #edf2f6; border-radius: 5px; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-placeholder-icon .icon { width: 27px; height: 27px; stroke-width: 1.4; }
.remove-image { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; display: none; place-items: center; padding: 0; color: #fff; border: 0; border-radius: 50%; background: rgba(20,35,47,.72); cursor: pointer; }
.remove-image .icon { width: 14px; height: 14px; }
.upload-preview.has-image .remove-image { display: grid; }
.upload-copy { min-width: 0; align-self: center; display: flex; flex-direction: column; gap: 4px; }
.upload-copy b { color: #394f63; font-size: 10px; line-height: 1.55; }
.upload-copy span { color: #8594a1; font-size: 9px; line-height: 1.5; }
.upload-trigger { width: fit-content; min-height: 27px; display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 4px 8px; color: var(--blue); border: 1px solid #c9d9e9; border-radius: 5px; background: #fff; font-size: 9px; font-weight: 600; cursor: pointer; }
.upload-trigger:hover { background: #f0f7fe; }.upload-trigger .icon { width: 13px; height: 13px; }
.privacy-note { display: flex; gap: 10px; margin-top: 15px; padding: 11px 12px; color: #507b6c; border-radius: 6px; background: #f0f8f4; }
.privacy-note > .icon { width: 16px; height: 16px; margin-top: 1px; flex: 0 0 auto; }
.privacy-note p { margin: 0; display: grid; gap: 2px; }
.privacy-note b { font-size: 10px; }
.privacy-note span { color: #6c897e; font-size: 9px; line-height: 1.55; }
.form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 18px 28px; background: #fbfcfd; }
.form-footer p { max-width: 420px; margin: 0; color: #8996a2; font-size: 9px; line-height: 1.6; }
.btn { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 6px; font-size: 11px; font-weight: 600; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { color: #fff; border-color: var(--red); background: var(--red); box-shadow: 0 4px 10px rgba(229,57,70,.16); }
.btn-primary:hover, .btn-primary:focus { color: #fff; border-color: var(--red-deep); background: var(--red-deep); }
.submit-button { min-width: 175px; }
.submit-button .icon { transition: transform .15s; }.submit-button:hover .icon { transform: translateX(3px); }
.btn-outline { color: #50667a; border: 1px solid var(--line-strong); background: #fff; box-shadow: none; }
.btn-outline:hover { color: var(--ink); border-color: #a8b8c6; background: #f9fbfc; }
.btn-filter { min-height: 37px; color: #fff; border: 0; background: var(--ink); }
.btn-filter:hover { color: #fff; background: #294c6c; }
.request-aside { display: grid; gap: 13px; }
.progress-card { padding: 16px 15px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.progress-title { display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-size: 11px; font-weight: 700; }
.progress-fraction { color: #8a99a6; font-size: 9px; font-weight: 500; }
.progress-track { height: 4px; margin: 12px 0 15px; overflow: hidden; border-radius: 4px; background: #eaf0f4; }
.progress-track span { display: block; width: 34%; height: 100%; border-radius: inherit; background: var(--red); }
.progress-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.progress-steps li { position: relative; display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; align-items: start; color: #9ba8b3; }
.progress-steps li::before { content: ""; grid-row: 1; width: 15px; height: 15px; border: 1px solid #ccd6de; border-radius: 50%; background: #fff; }
.progress-steps li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 16px; height: 12px; border-left: 1px solid #dce4e9; }
.progress-steps li b { font-size: 9px; font-weight: 600; }.progress-steps li small { margin-top: 2px; font-size: 8px; }
.progress-steps li.step-current { color: var(--ink); }.progress-steps li.step-current::before { border: 4px solid var(--red); }.progress-steps li.step-current b { color: var(--red-deep); }
.aside-note { display: flex; gap: 10px; padding: 14px; border: 1px solid #eadfcb; border-radius: 7px; background: #fffaf1; }
.aside-note-icon { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; color: #a87318; border-radius: 8px; background: #fff0ce; }
.aside-note-icon .icon { width: 16px; height: 16px; }
.aside-note b { color: #755623; font-size: 10px; }
.aside-note p { margin: 4px 0 0; color: #967e56; font-size: 9px; line-height: 1.6; }
.aside-campus { height: 143px; position: relative; overflow: hidden; border-radius: 7px; background: linear-gradient(#eaf2f8 0 67%, #a9bac4 67% 100%); }
.aside-campus-building { position: absolute; left: 13%; bottom: 34px; width: 68%; height: 68px; padding: 14px 10px; display: flex; justify-content: space-between; border-top: 7px solid #6c8090; background: #f9fbfc; box-shadow: 5px 6px 0 #a0b3be; }
.aside-campus-building i { width: 20px; height: 17px; background: #c8dce7; border: 3px solid #8da2ae; }
.aside-campus-building b { position: absolute; right: 12px; bottom: 0; width: 21px; height: 31px; background: #a5b8c2; }
.aside-campus-road { position: absolute; bottom: 18px; z-index: 1; width: 100%; border-top: 2px dashed rgba(255,255,255,.8); }
.aside-campus > span { position: absolute; z-index: 2; bottom: 6px; left: 10px; color: #fff; text-shadow: 0 1px 3px rgba(20,35,47,.5); font-size: 8px; line-height: 1.35; font-weight: 600; }
.form-legend { color: #8897a4; font-size: 9px; padding: 1px 3px; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; padding: 14px clamp(22px, 4vw, 58px) 17px; color: #92a0ab; border-top: 1px solid var(--line); background: #fff; font-size: 9px; }

.mine-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.summary-tile { min-height: 77px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.summary-symbol { width: 35px; height: 35px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 9px; }
.summary-symbol .icon { width: 18px; height: 18px; }
.summary-tile b, .summary-tile small { display: block; }.summary-tile b { color: var(--ink); font-size: 18px; }.summary-tile small { margin-top: 1px; color: #81909d; font-size: 9px; }
.request-list { display: grid; gap: 10px; }
.request-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 20px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.request-card-main { min-width: 0; }
.request-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.request-ref { color: #7790a2; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.request-card h3 { margin: 7px 0 3px; color: var(--ink); font-size: 13px; font-weight: 700; }
.request-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 8px; color: #778896; font-size: 9px; }
.request-meta span { display: flex; align-items: center; gap: 5px; }.request-meta .icon { width: 13px; height: 13px; }
.request-card-note { grid-column: 1/-1; padding-top: 10px; border-top: 1px solid #edf1f4; color: #7a6970; font-size: 10px; line-height: 1.6; }
.request-card-actions { align-self: start; text-align: right; }
.request-card-actions .btn { min-height: 31px; margin-top: 9px; padding: 6px 9px; font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { color: #a86a0c; background: var(--amber-soft); }
.status-approved { color: #16865d; background: var(--green-soft); }
.status-rejected { color: #c13c48; background: #fff0f1; }
.empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #8293a1; border: 1px dashed #d8e1e8; border-radius: 8px; background: #fff; text-align: center; }
.empty-state > span { width: 39px; height: 39px; display: grid; place-items: center; color: #7290a6; background: #eff4f7; border-radius: 50%; }.empty-state b { color: #496176; font-size: 12px; }.empty-state small { max-width: 290px; color: #8c9aa6; font-size: 10px; line-height: 1.5; }

.admin-heading { margin-bottom: 20px; }
.admin-tabs { display: flex; gap: 21px; border-bottom: 1px solid var(--line-strong); margin-bottom: 17px; }
.admin-tab { position: relative; display: flex; align-items: center; gap: 7px; padding: 10px 2px 12px; color: #83919e; border: 0; background: transparent; font-size: 11px; font-weight: 600; cursor: pointer; }
.admin-tab.active { color: var(--red-deep); }.admin-tab.active::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: -1px; background: var(--red); }
.admin-tab span { min-width: 18px; height: 18px; display: grid; place-items: center; color: #fff; border-radius: 9px; background: var(--red); font-size: 8px; }
.status-tabs { display: flex; gap: 6px; padding: 4px; background: #eef2f5; border-radius: 7px; width: fit-content; margin-bottom: 14px; }
.status-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 5px 10px; color: #687d8f; border: 0; border-radius: 5px; background: transparent; font-size: 9px; cursor: pointer; }
.status-tab b { min-width: 17px; height: 17px; display: grid; place-items: center; color: #7c8b97; border-radius: 9px; background: rgba(255,255,255,.6); font-size: 8px; }
.status-tab.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(24,50,75,.11); }.status-tab.active b { color: var(--red-deep); background: #fff0f1; }
.filter-bar { display: flex; gap: 8px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 7px 7px 0 0; background: #fff; }
.search-control { min-width: 180px; flex: 1; height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 5px; color: #8092a2; }
.search-control .icon { width: 15px; height: 15px; }.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 10px; }.search-control input::placeholder { color: #a0abb4; }
.filter-select { display: grid; gap: 4px; min-width: 112px; color: #8a98a4; font-size: 8px; }
.filter-select input { width: 100%; height: 37px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 5px; color: #485e71; background: #fff; font-size: 9px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 7px 7px; background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th { padding: 11px 12px; color: #82909d; background: #f7f9fb; border-bottom: 1px solid var(--line); text-align: left; font-size: 9px; font-weight: 600; white-space: nowrap; }
.admin-table td { padding: 11px 12px; color: #4b6073; border-bottom: 1px solid #edf1f4; vertical-align: middle; font-size: 9px; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.table-person { min-width: 130px; }.table-person b, .table-person small { display: block; }.table-person b { color: var(--ink); font-size: 10px; }.table-person small { margin-top: 3px; color: #8a98a4; font-size: 8px; }
.table-vehicle b, .table-vehicle small { display: block; }.table-vehicle b { color: #455b6d; font-size: 9px; }.table-vehicle small { margin-top: 3px; color: #8c9aa5; font-size: 8px; }
.table-period { white-space: nowrap; }.table-period small { display: block; color: #98a4ae; margin-top: 3px; }
.row-actions { display: flex; gap: 5px; }
.row-action { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; color: #6d8293; background: #fff; cursor: pointer; }
.row-action:hover { color: var(--blue); border-color: #afc9e0; background: #f5faff; }.row-action .icon { width: 14px; height: 14px; }
.row-action-delete { color: var(--red-deep); border-color: #f0c6cb; }
.row-action-delete:hover { color: #fff; border-color: var(--red); background: var(--red); }
.report-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 20px 0 17px; }
.report-heading h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; }.report-heading p { margin: 4px 0 0; color: #81909d; font-size: 10px; }
.report-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; }.report-actions .filter-select { min-width: 120px; }.report-actions .btn { min-height: 37px; }
.report-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 0 0 14px; }
.report-stat { padding: 11px 13px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }.report-stat span { color: #82909d; font-size: 8px; }.report-stat b { display: block; margin-top: 5px; color: var(--ink); font-size: 18px; }.report-stat.pending b { color: var(--amber); }.report-stat.approved b { color: var(--green); }.report-stat.rejected b { color: var(--red-deep); }
.report-paper { padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.report-title { display: flex; justify-content: center; align-items: center; gap: 11px; margin-bottom: 20px; text-align: center; }
.report-seal { width: 39px; height: 39px; display: grid; place-items: center; color: var(--red); border: 2px solid var(--red); border-radius: 50%; font-weight: 700; }
.report-title b, .report-title span, .report-title small { display: block; }.report-title b { color: var(--ink); font-size: 13px; }.report-title span { margin-top: 2px; color: #4f6273; font-size: 11px; font-weight: 600; }.report-title small { margin-top: 4px; color: #788896; font-size: 9px; }
.report-table { min-width: 720px; }.report-table th, .report-table td { text-align: center; border: 1px solid #dbe2e8; }.report-table th { color: #40566a; background: #f7f9fb; }.report-table td { font-size: 8px; }
.report-signatures { display: flex; justify-content: space-around; gap: 30px; padding-top: 32px; color: #66798a; text-align: center; font-size: 9px; }.report-signatures small { display: block; margin-top: 7px; }
.swal2-popup { font-family: "Google Sans", "Noto Sans Thai", sans-serif !important; border-radius: 12px !important; }.swal2-title { color: var(--ink) !important; font-size: 20px !important; }.swal2-html-container { color: #617487 !important; font-size: 12px !important; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }.detail-cell { padding: 9px; border: 1px solid #e9eef2; border-radius: 6px; background: #f9fbfc; }.detail-cell small, .detail-cell b { display: block; }.detail-cell small { margin-bottom: 4px; color: #8c99a5; font-size: 9px; }.detail-cell b { color: #31485d; font-size: 10px; font-weight: 600; }.detail-wide { grid-column: 1/-1; }.detail-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; text-align: left; }.detail-photo { min-width: 0; }.detail-photo img { width: 100%; height: 105px; object-fit: cover; border-radius: 5px; background: #edf2f5; }.detail-photo a { display: block; margin-top: 4px; color: var(--blue); font-size: 9px; text-decoration: none; }.detail-photo-empty { min-height: 105px; display: grid; place-items: center; padding: 12px; color: #8293a1; background: #f5f8fa; border-radius: 5px; font-size: 10px; text-align: center; }

@media (max-width: 1200px) {
  .request-layout { grid-template-columns: minmax(0,1fr) 215px; gap: 15px; }
  .form-section { padding: 22px 21px; }
  .form-footer { padding: 16px 21px; }
  .upload-card { grid-template-columns: 85px minmax(0,1fr); gap: 9px; padding: 8px; }
  .upload-preview { height: 83px; }
}
@media (max-width: 980px) {
  .site-header { height: 74px; padding: 0 22px; }
  .auth-layout { min-height: calc(100vh - 74px); grid-template-columns: minmax(0,1fr) minmax(340px,.9fr); }
  .welcome-panel { min-height: 650px; padding: 56px 32px 20px; }
  .app-shell { min-height: calc(100vh - 74px); grid-template-columns: 205px minmax(0,1fr); }
  .sidebar { min-height: calc(100vh - 74px); }
  .app-content { padding: 28px 24px; }
  .request-layout { grid-template-columns: 1fr; }
  .request-aside { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .aside-campus, .form-legend { display: none; }
  .filter-bar { flex-wrap: wrap; }
  .search-control { flex-basis: 100%; }
}
@media (max-width: 700px) {
  .site-header { height: 66px; padding: 0 17px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px 12px 12px 4px; }
  .brand-words strong { font-size: 15px; }.brand-words small { font-size: 7px; letter-spacing: .12em; }
  .header-note { gap: 7px; font-size: 9px; }.header-note .online-dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(26,160,107,.1); }
  .auth-layout { min-height: calc(100vh - 66px); display: flex; flex-direction: column; }
  .welcome-panel { min-height: 0; padding: 31px 22px 21px; justify-content: center; }
  .welcome-copy { width: 100%; }
  .welcome-copy .eyebrow { margin-bottom: 8px; font-size: 8px; }
  .welcome-copy h1 { font-size: 34px; line-height: 1.2; }
  .welcome-lede { max-width: 470px; margin: 10px 0 15px; font-size: 12px; line-height: 1.6; }
  .welcome-points { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .welcome-points > div { display: flex; gap: 6px; align-items: flex-start; }
  .point-icon { width: 27px; height: 27px; border-radius: 7px; }.point-icon .icon { width: 14px; height: 14px; }
  .welcome-points b { font-size: 8px; line-height: 1.4; }.welcome-points small { display: none; }
  .campus-art { height: 125px; margin-top: 17px; }
  .campus-building { bottom: 30px; height: 75px; border-top-width: 8px; }.building-sign { top: 6px; left: 12px; font-size: 6px; }.building-windows { grid-template-columns: repeat(3,20px); grid-template-rows: repeat(2,14px); gap: 5px 8px; left: 13px; top: 25px; }.building-windows i { border-width: 2px; }.building-entry { right: 18px; width: 25px; height: 37px; border-width: 3px; }.campus-tree { bottom: 27px; transform: scale(.65); }.tree-two { transform: scale(.8); }.parked-car { transform: scale(.75); transform-origin: bottom right; bottom: 13px; right: 17%; }.art-label { font-size: 6px; bottom: 8px; right: 7px; }.road-line { bottom: 10px; }.campus-caption { padding-top: 5px; font-size: 8px; }
  .signin-side { padding: 29px 22px 24px; align-items: stretch; }
  .signin-card, .signin-footer { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
  .signin-emblem { width: 43px; height: 43px; margin-bottom: 13px; border-radius: 12px 12px 12px 4px; }.signin-emblem .icon { width: 24px; height: 24px; }
  .signin-card .eyebrow { margin-bottom: 5px; font-size: 8px; }.signin-card h2 { font-size: 25px; }.signin-copy { margin: 4px 0 17px; font-size: 11px; }
  .signin-privacy { margin-top: 15px; font-size: 9px; }.signin-footer { margin-top: 18px; }
  .app-shell { display: block; min-height: calc(100vh - 66px); }
  .sidebar { display: none; }
  .app-topline { height: 54px; justify-content: space-between; padding: 0 16px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-size: 10px; }.mobile-brand .brand-mark { width: 29px; height: 29px; border-radius: 9px 9px 9px 3px; box-shadow: none; }.mobile-brand .brand-mark .icon { width: 18px; height: 18px; }
  .topline-context { display: none; }.topline-profile { gap: 5px; font-size: 9px; }.topline-profile .avatar { width: 25px; height: 25px; }
  .app-content { padding: 23px 15px 24px; }
  .page-heading { align-items: flex-start; margin-bottom: 16px; }.page-heading h1 { font-size: 20px; }.page-heading p:not(.eyebrow) { max-width: 270px; font-size: 10px; line-height: 1.55; }.page-heading .eyebrow { font-size: 8px; }.heading-mark { padding: 7px 8px; font-size: 8px; }.heading-mark .icon { width: 15px; height: 15px; }
  .request-layout { gap: 12px; }.request-form { border-radius: 7px; }
  .form-section { padding: 18px 15px; }.section-heading { gap: 9px; margin-bottom: 15px; }.section-index { width: 24px; height: 24px; border-radius: 7px; font-size: 9px; }.section-heading h2 { font-size: 13px; }.section-heading p { font-size: 9px; line-height: 1.5; }
  .identity-strip { gap: 8px; padding: 8px; margin-bottom: 14px; }.identity-avatar { width: 32px; height: 32px; }.identity-text b { font-size: 10px; }.identity-text span { font-size: 8px; }.verified-label { font-size: 8px; }.verified-label .icon { width: 12px; height: 12px; }
  .field-grid { gap: 12px 9px; }.field-grid-two { grid-template-columns: repeat(2,minmax(0,1fr)); }.field { gap: 5px; font-size: 9px; }.field input, .field select, .field textarea { min-height: 39px; padding: 9px; font-size: 10px; }.field select { padding-right: 25px; background-position: right 8px center; }.field textarea { min-height: 75px; }.field small { font-size: 8px; }.field-row { gap: 7px; grid-template-columns: 1.05fr .95fr; }.calendar-wrap .icon { left: 9px; width: 14px; height: 14px; }.calendar-wrap input { padding-left: 29px; }
  .upload-grid { grid-template-columns: 1fr; gap: 9px; }.upload-card { grid-template-columns: 86px minmax(0,1fr); }.upload-preview { height: 78px; }.upload-copy b { font-size: 9px; }.upload-copy span { font-size: 8px; }
  .privacy-note { margin-top: 11px; padding: 9px; }.privacy-note b { font-size: 9px; }.privacy-note span { font-size: 8px; }
  .form-footer { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px 15px; }.form-footer p { font-size: 8px; }.submit-button { width: 100%; min-height: 43px; }
  .request-aside { grid-template-columns: 1fr; gap: 8px; }.progress-card { padding: 12px; }.progress-steps { grid-template-columns: repeat(3,1fr); gap: 5px; }.progress-steps li { grid-template-columns: 13px 1fr; column-gap: 5px; }.progress-steps li::before { width: 12px; height: 12px; }.progress-steps li:not(:last-child)::after { left: 5px; top: 13px; height: 9px; }.progress-steps li b { font-size: 8px; }.progress-steps li small { display: none; }.progress-track { margin: 9px 0 12px; }.aside-note { padding: 10px; }.aside-note b { font-size: 9px; }.aside-note p { font-size: 8px; }
  .app-footer { gap: 9px; flex-wrap: wrap; padding: 12px 15px; font-size: 8px; }
  .mobile-bottom-nav { position: sticky; z-index: 4; bottom: 0; display: flex; justify-content: space-around; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -5px 18px rgba(24,50,75,.05); }
  .mobile-nav-item { min-width: 75px; display: grid; place-items: center; gap: 2px; padding: 4px 8px; color: #788999; border: 0; border-radius: 6px; background: transparent; font-size: 8px; cursor: pointer; }
  .mobile-nav-item .icon { width: 17px; height: 17px; }.mobile-nav-item.active { color: var(--red-deep); background: #fff2f3; }
  .mobile-logout { width: 27px; height: 27px; display: grid; place-items: center; margin-left: 4px; color: #8392a0; border: 0; border-radius: 6px; background: #f1f4f6; }
  .mobile-logout .icon { width: 15px; height: 15px; }
  .mine-summary { gap: 6px; }.summary-tile { min-height: 62px; gap: 6px; padding: 8px 7px; }.summary-symbol { width: 26px; height: 26px; border-radius: 7px; }.summary-symbol .icon { width: 14px; height: 14px; }.summary-tile b { font-size: 15px; }.summary-tile small { font-size: 7px; }
  .request-card { gap: 10px; padding: 12px; }.request-card h3 { font-size: 11px; }.request-meta { gap: 6px 10px; font-size: 8px; }.request-card-actions .status-pill { font-size: 8px; }.request-card-actions .btn { margin-top: 6px; }
  .admin-heading { align-items: center; }.admin-heading .btn { min-height: 33px; padding: 6px 8px; font-size: 8px; white-space: nowrap; }.admin-heading .btn i { font-size: 11px; }
  .admin-tabs { gap: 17px; }.admin-tab { padding: 8px 1px 10px; font-size: 9px; }
  .status-tabs { width: 100%; gap: 2px; justify-content: space-between; }.status-tab { gap: 4px; padding: 5px 6px; font-size: 8px; }.status-tab b { min-width: 14px; height: 14px; font-size: 7px; }
  .filter-bar { padding: 8px; gap: 6px; }.filter-select { min-width: 0; flex: 1; }.filter-select input { height: 34px; }.filter-bar .btn-filter { min-height: 34px; flex: 0 0 auto; padding: 6px 10px; font-size: 9px; }
  .report-heading { display: block; }.report-actions { margin-top: 13px; }.report-actions .filter-select { min-width: calc(50% - 6px); }.report-actions .btn { min-height: 34px; flex: 1; padding: 6px; font-size: 9px; }.report-stats { grid-template-columns: repeat(2,1fr); gap: 6px; }.report-stat { padding: 9px; }.report-paper { padding: 12px; }.report-signatures { gap: 15px; font-size: 8px; }
  .detail-grid { gap: 6px; }.detail-cell { padding: 7px; }.detail-cell small { font-size: 8px; }.detail-cell b { font-size: 9px; }.detail-photo img { height: 80px; }
}
@media (max-width: 370px) {
  .header-note { max-width: 114px; line-height: 1.35; }
  .welcome-copy h1 { font-size: 30px; }
  .welcome-points { gap: 5px; }
  .welcome-points b { font-size: 7px; }
  .brand-words strong { font-size: 13px; }
  .field-grid-two { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .page-heading h1 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff !important; font-size: 10px; }
  .site-header, .sidebar, .app-topline, .app-footer, .admin-heading, .admin-tabs, #adminQueue, .report-toolbar, .report-stats { display: none !important; }
  .app-shell { display: block; min-height: 0; }
  .app-content { max-width: none; padding: 0; }
  #adminView, #adminReports { display: block !important; }
  .report-paper { border: 0; padding: 0; }
  .report-title { margin: 0 0 12px; }
  .report-table { min-width: 0; font-size: 9px; }
  .report-table th, .report-table td { padding: 5px 7px; }
  .report-signatures { padding-top: 26px; }
}

/* Public student access and staff-only controls */
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-link { color: #52677c; font-size: 12px; text-decoration: none; }
.header-link:hover { color: var(--blue); }
.btn-admin-login { min-height: 39px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: #fff; font-size: 11px; font-weight: 600; }
.btn-admin-login:hover { border-color: #9fb1c0; background: #f7f9fb; }
.btn-admin-login .icon { width: 15px; height: 15px; }
.admin-session-badge { display: flex; align-items: center; gap: 12px; color: #506477; font-size: 11px; }
.logout-icon-button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--red-deep); border: 1px solid #f1d5d8; border-radius: 7px; background: #fff; cursor: pointer; }
.logout-icon-button .icon { width: 16px; height: 16px; }
.sidebar-campus-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--red); border-radius: 13px 13px 13px 4px; font-size: 17px; font-weight: 700; }
.tracking-lookup { display: flex; align-items: end; gap: 12px; max-width: 720px; margin: 0 0 20px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.tracking-lookup .field { flex: 1; }
.tracking-lookup .btn { min-height: 43px; }
.tracking-result { max-width: 950px; }
.tracking-card { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.tracking-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tracking-card-heading small, .tracking-card-heading b { display: block; }
.tracking-card-heading small { margin-bottom: 5px; color: var(--ink-muted); font-size: 11px; }
.tracking-card-heading b { color: var(--ink); font-size: clamp(16px, 2.3vw, 22px); letter-spacing: .035em; }
.permit-number { display: inline-flex; padding: 11px 15px; color: var(--ink); background: #eef4f9; border: 1px dashed #a9bdcd; border-radius: 7px; font-size: 19px; font-weight: 700; letter-spacing: .075em; user-select: all; }
#requestForm input[name="student_name"], #requestForm input[name="department"], #requestForm input[name="class_group"] { background: #f6f9fb; color: #40586c; }
#requestForm.student-record-ready input[name="student_name"], #requestForm.student-record-ready input[name="department"], #requestForm.student-record-ready input[name="class_group"] { border-color: #b5d9c7; background: #f3fbf6; }

.app-shell:not(.is-admin) .app-topline { display: none; }
#studentLookupMessage { min-height: 1.4em; margin-top: 0; font-size: 11px; line-height: 1.45; }
#studentLookupMessage[data-state="loading"] { color: var(--blue); }
#studentLookupMessage[data-state="success"] { color: var(--green); font-weight: 600; }
#studentLookupMessage[data-state="error"] { color: var(--red-deep); font-weight: 600; }
.tracking-timeline { padding: 20px 0; border-bottom: 1px solid var(--line); }
.tracking-timeline ol { display: flex; align-items: flex-start; gap: 0; margin: 0; padding: 0; list-style: none; }
.status-step { display: flex; flex: 1; gap: 10px; position: relative; color: #718293; }
.status-step + .status-step { padding-left: 30px; }
.status-step + .status-step::before { content: ""; position: absolute; left: -1px; top: 15px; width: 31px; height: 1px; background: var(--line-strong); }
.status-step > span { width: 30px; height: 30px; z-index: 1; display: grid; place-items: center; flex: 0 0 auto; color: #788a99; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; }
.status-step > span .icon { width: 14px; height: 14px; }
.status-step b, .status-step small { display: block; }
.status-step b { margin: 1px 0 3px; color: var(--ink); font-size: 12px; }
.status-step small { color: var(--ink-muted); font-size: 10px; }
.status-step.is-done > span, .status-step.is-approved > span { color: #fff; border-color: var(--green); background: var(--green); }
.status-step.is-rejected > span { color: #fff; border-color: var(--red); background: var(--red); }
.status-step.is-current > span { color: #9a680d; border-color: #e4be69; background: #fff6dd; }
.tracking-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 20px 0; }
.tracking-details .detail-cell { min-height: 61px; }
.tracking-details .detail-cell:last-child { grid-column: 1 / -1; }
.request-card-note { display: grid; gap: 4px; }
.tracking-card-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 17px; border-top: 1px solid var(--line); }
.admin-login-form { display: grid; gap: 16px; }
.admin-login-form .field { gap: 7px; color: #536a7e; font-size: 12px; font-weight: 600; }
.admin-login-form .field input { min-height: 49px; padding: 10px 13px; border: 1px solid #d5e0e9; border-radius: 9px; background: #fbfdff; color: var(--ink); font-size: 14px; }
.admin-login-form .field input:focus { border-color: #80add6; background: #fff; }
.admin-login-form .btn { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; border-radius: 9px; font-size: 14px; font-weight: 700; }
.admin-login-form .btn .icon { width: 18px; height: 18px; }
.admin-auth-page .signin-return { display: inline-flex; align-items: center; gap: 7px; margin-top: 21px; color: #526b81; font-size: 12px; font-weight: 600; text-decoration: none; }
.admin-auth-page .signin-return:hover { color: var(--blue); text-decoration: underline; }
.admin-auth-page .signin-privacy { margin-top: 20px; color: #788a99; font-size: 11px; }
.admin-auth-page .signin-privacy .icon { width: 16px; height: 16px; color: var(--green); }
body.is-admin-login .site-header .header-actions { display: none; }
body.is-admin-login #appShell { display: none !important; }
.admin-auth-page:not([hidden]) { display: grid; }
.student-setup-notice { width: 100%; max-width: none; margin: 0 0 18px; }
.request-detail-popup .detail-photo img { object-fit: contain; background: var(--mist); }
@media (max-width: 700px) {
  .header-actions { gap: 12px; }
  .header-actions .header-link { display: none; }
  .header-link { font-size: 10px; }
  .btn-admin-login { min-height: 34px; padding: 6px 10px; font-size: 10px; }
  .admin-session-badge { gap: 6px; max-width: 52vw; font-size: 9px; }
  .admin-session-badge #adminSessionEmail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logout-icon-button { display: none; }
  .tracking-lookup { align-items: stretch; flex-direction: column; gap: 9px; padding: 13px; }
  .tracking-lookup .btn { min-height: 40px; }
  .tracking-details { grid-template-columns: 1fr; gap: 7px; }
  .tracking-details .detail-cell:last-child { grid-column: auto; }
  .tracking-timeline ol { display: grid; gap: 15px; }
  .status-step + .status-step { padding-left: 0; }
  .status-step + .status-step::before { display: none; }
  .tracking-card-heading { align-items: flex-start; flex-direction: column; }
  .tracking-card-actions { justify-content: stretch; }
  .tracking-card-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 370px) {
  .header-actions { gap: 7px; }
  .header-link { font-size: 9px; }
  .btn-admin-login { min-height: 32px; padding: 5px 8px; font-size: 9px; }
}
@media print {
  .site-header, .sidebar, .app-topline, .app-footer, .mobile-bottom-nav { display: none !important; }
}
@media (min-width: 701px) {
  .sidebar-person b, .nav-item { font-size: 13px; }
  .page-heading .eyebrow { font-size: 11px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading p:not(.eyebrow) { font-size: 14px; }
  .heading-mark, .field { font-size: 13px; }
  .section-index { font-size: 11px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading p { font-size: 12px; }
  .field input, .field select, .field textarea { font-size: 13px; }
  .field small, .upload-copy span, .upload-trigger, .privacy-note span, .form-footer p { font-size: 11px; }
  .upload-copy b, .privacy-note b { font-size: 12px; }
  .btn { font-size: 13px; }
}
@media (max-width: 700px) {
  .page-heading h1 { font-size: 22px; }
  .section-heading h2 { font-size: 14px; }
  .section-heading p { font-size: 10px; }
  .field { font-size: 10px; }
  .field input, .field select, .field textarea { font-size: 12px; }
  .field small, .upload-copy span, .privacy-note span, .form-footer p { font-size: 9px; }
  .upload-copy b, .privacy-note b { font-size: 10px; }
  .btn { font-size: 11px; }
}

/* Student flow: phone-sized reading, single-column entry, and thumb-sized actions. */
@media (max-width: 700px) {
  #appShell:not(.is-admin) .app-topline { display: none; }
  #studentView { padding: 22px 16px 30px; }
  #studentView .page-heading { margin-bottom: 20px; }
  #studentView .page-heading .eyebrow { margin-bottom: 7px; font-size: 11px; letter-spacing: .06em; }
  #studentView .page-heading h1 { font-size: clamp(25px, 7vw, 30px); line-height: 1.25; }
  #studentView .page-heading p:not(.eyebrow) { max-width: 32rem; margin-top: 8px; font-size: 14px; line-height: 1.65; }
  #requestPanel .heading-mark { display: none; }
  #studentView .request-layout { display: flex; flex-direction: column; gap: 14px; }
  #studentView .request-aside { order: -1; width: 100%; }
  #studentView .request-aside > :not(.progress-card) { display: none; }
  #studentView .progress-card { padding: 17px 16px 14px; border-radius: 14px; box-shadow: 0 5px 18px rgba(24,50,75,.04); }
  #studentView .progress-title { font-size: 14px; }
  #studentView .progress-fraction { font-size: 13px; font-weight: 700; }
  #studentView .progress-track { height: 6px; margin: 13px 0 15px; }
  #studentView .progress-steps { gap: 9px; }
  #studentView .progress-steps li { display: block; padding-top: 19px; }
  #studentView .progress-steps li::before { position: absolute; top: 0; left: 0; width: 13px; height: 13px; }
  #studentView .progress-steps li::after { display: none; }
  #studentView .progress-steps li b { display: block; font-size: 12px; line-height: 1.3; }
  #studentView .request-form { width: 100%; border-radius: 14px; box-shadow: 0 5px 18px rgba(24,50,75,.04); }
  #studentView .form-section { padding: 23px 18px 25px; }
  #studentView .section-heading { gap: 11px; margin-bottom: 20px; }
  #studentView .section-index { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
  #studentView .section-heading h2 { margin-top: 0; font-size: 17px; line-height: 1.3; }
  #studentView .section-heading p { margin-top: 3px; font-size: 12px; line-height: 1.55; }
  #studentView .field-grid, #studentView .field-grid-two { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #studentView .field-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #studentView .field-full { grid-column: auto; }
  #studentView .field { gap: 8px; color: #344b60; font-size: 14px; line-height: 1.45; }
  #studentView .field input, #studentView .field select, #studentView .field textarea { min-height: 52px; padding: 12px 14px; border-radius: 10px; font-size: 16px; line-height: 1.4; }
  #studentView .field textarea { min-height: 118px; }
  #studentView .field small { margin-top: -2px; font-size: 12px; line-height: 1.45; }
  #studentLookupMessage { font-size: 12px; }
  #studentView .field select { padding-right: 40px; background-position: right 16px center; }
  #studentView .calendar-wrap .icon { left: 15px; width: 19px; height: 19px; }
  #studentView .calendar-wrap input { padding-left: 46px; }
  #studentView .upload-grid { gap: 13px; }
  #studentView .upload-card { grid-template-columns: 84px minmax(0,1fr); gap: 13px; padding: 12px; border-radius: 12px; }
  #studentView .upload-preview { height: 105px; border-radius: 9px; }
  #studentView .upload-copy { gap: 4px; }
  #studentView .upload-copy b { font-size: 14px; line-height: 1.4; }
  #studentView .upload-copy span { font-size: 12px; line-height: 1.45; }
  #studentView .upload-trigger { width: 100%; min-height: 44px; justify-content: center; gap: 7px; margin-top: 5px; padding: 8px; border-radius: 8px; font-size: 13px; }
  #studentView .upload-trigger .icon { width: 17px; height: 17px; }
  #studentView .upload-trigger span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #studentView .remove-image { width: 40px; height: 40px; top: 4px; right: 4px; }
  #studentView .remove-image .icon { width: 18px; height: 18px; }
  #studentView .privacy-note { gap: 11px; margin-top: 16px; padding: 13px; border-radius: 10px; }
  #studentView .privacy-note b { font-size: 13px; }
  #studentView .privacy-note span { font-size: 12px; line-height: 1.55; }
  #studentView .form-footer { gap: 14px; padding: 19px 18px 21px; }
  #studentView .form-footer p { max-width: none; font-size: 12px; line-height: 1.5; }
  #studentView .submit-button { min-height: 54px; border-radius: 10px; font-size: 16px; }
  #studentView .student-setup-notice { margin-bottom: 17px; padding: 14px; border-radius: 12px; }
  #studentView .student-setup-notice b { font-size: 14px; }
  #studentView .student-setup-notice small { font-size: 12px; }
  #studentView .tracking-lookup { gap: 13px; padding: 16px; border-radius: 13px; }
  #studentView .tracking-lookup .btn, #studentView .tracking-card-actions .btn, #trackingPanel .page-heading .btn { min-height: 48px; border-radius: 9px; font-size: 14px; }
  #trackingPanel .page-heading { display: block; }
  #trackingPanel .page-heading .btn { margin-top: 14px; }
  #studentView .tracking-card { padding: 19px 16px; border-radius: 13px; }
  #studentView .tracking-card-heading b, #studentView .permit-number { overflow-wrap: anywhere; word-break: break-word; letter-spacing: 0; }
  #studentView .tracking-card-heading b { font-size: 17px; line-height: 1.5; }
  #studentView .status-step b { font-size: 14px; }
  #studentView .status-step small { font-size: 12px; }
  #studentView .tracking-details .detail-cell { min-height: 0; padding: 12px; }
  #studentView .tracking-details .detail-cell small { font-size: 12px; }
  #studentView .tracking-details .detail-cell b { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
  #studentView .tracking-card-actions { flex-direction: column; }
  #studentView .tracking-card-actions .btn { width: 100%; }
  #studentView .empty-state b { font-size: 15px; }
  #studentView .empty-state small { font-size: 12px; line-height: 1.5; }
  .mobile-bottom-nav { position: sticky; bottom: 0; min-height: 64px; gap: 8px; padding: 8px 15px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-nav-item { min-height: 48px; flex: 1; gap: 2px; border-radius: 10px; font-size: 12px; font-weight: 700; touch-action: manipulation; }
  .mobile-nav-item .icon { width: 20px; height: 20px; }
  .btn-admin-login { min-height: 44px; padding: 9px 12px; border-radius: 9px; font-size: 12px; }
  .site-header { height: 64px; padding: 0 16px; }
  .site-header .brand-mark { width: 36px; height: 36px; }
  .site-header .brand-mark .icon { width: 21px; height: 21px; }
  .site-header .brand-lockup { gap: 9px; min-width: 0; }
  .site-header .brand-words strong { font-size: 14px; line-height: 1.2; }
  .site-header .brand-words small { display: none; }
  .flatpickr-calendar { max-width: calc(100vw - 24px); }
  .flatpickr-rContainer, .flatpickr-days, .dayContainer, .flatpickr-weekdays, .flatpickr-weekdaycontainer { width: 100%; min-width: 0; max-width: 100%; }
  .flatpickr-day { width: 14.2857%; max-width: 14.2857%; flex-basis: 14.2857%; height: 42px; line-height: 40px; font-size: 14px; }
  .permit-number { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; font-size: 15px; letter-spacing: 0; }
  .swal2-popup { width: min(96vw, 32rem) !important; }
}

@media (max-width: 370px) {
  #studentView { padding-right: 12px; padding-left: 12px; }
  #studentView .form-section { padding-right: 15px; padding-left: 15px; }
  #studentView .upload-card { grid-template-columns: 72px minmax(0,1fr); gap: 10px; }
  #studentView .upload-preview { height: 96px; }
  .site-header .brand-words strong { max-width: 140px; font-size: 13px; }
  .btn-admin-login { padding-right: 9px; padding-left: 9px; font-size: 11px; }
}

/* One-touch entry point for a stay-style parking date range. */
.date-range-trigger {
  width: 100%; min-height: 50px; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; color: #8796a4; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px;
  text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.date-range-trigger:hover, .date-range-trigger[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,118,199,.1); }
.date-range-trigger:focus-visible { outline: 3px solid rgba(47,118,199,.28); outline-offset: 2px; }
.date-range-trigger > .icon { width: 20px; height: 20px; color: var(--red); }
.date-range-trigger > span { min-width: 0; flex: 1; font-size: 13px; font-weight: 500; }
.date-range-trigger.has-date > span { color: var(--ink); font-weight: 700; }
.date-range-trigger > i { color: #93a2ae; font-size: 13px; }
.date-range-backdrop { position: fixed; inset: 0; display: block; background: rgba(18,39,60,.42); z-index: 1001; }
body.range-picker-open { overflow: hidden; }

.student-range-calendar { z-index: 1002; }
.student-range-calendar::before, .student-range-calendar::after { display: none; }
.student-range-footer { padding-top: 17px; display: flex; justify-content: center; }
.student-range-confirm { min-width: 190px; min-height: 44px; padding: 10px 18px; color: #fff; background: var(--red); border: 0; border-radius: 10px; font-size: 13px; font-weight: 700; box-shadow: 0 6px 14px rgba(229,57,70,.2); cursor: pointer; }
.student-range-confirm:hover { background: var(--red-deep); }
.student-range-confirm:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }

@media (max-width: 700px) {
  #studentView .date-range-trigger { min-height: 54px; padding: 12px 15px; }
  #studentView .date-range-trigger > span { font-size: 15px; }
  .student-range-confirm { min-height: 48px; }
  .request-detail-popup .detail-photos { grid-template-columns: 1fr; }
  .request-detail-popup .detail-photo img, .request-detail-popup .detail-photo-empty { height: 170px; }
}

/* Unified layout, type and icon rhythm across public and staff screens. */
:root {
  --line: #dfe7ee;
  --line-strong: #cbd8e3;
  --shadow: 0 12px 32px rgba(24, 50, 75, .07);
}
body { font-size: 15px; line-height: 1.55; }
.icon { width: 20px; height: 20px; stroke-width: 1.9; vertical-align: middle; }
.brand-mark .icon { width: 24px; height: 24px; }
.site-header { box-shadow: 0 2px 14px rgba(24, 50, 75, .03); }
.brand-words strong { font-size: 20px; letter-spacing: -.025em; }
.header-actions { gap: 24px; }
.header-link, .btn-admin-login { font-size: 14px; font-weight: 600; }
.header-link { min-height: 44px; display: inline-flex; align-items: center; }
.btn-admin-login, .logout-icon-button { min-height: 44px; border-radius: 10px; }
.btn-admin-login .icon, .logout-icon-button .icon { width: 20px; height: 20px; }
.sidebar { padding: 28px 17px 20px; }
.sidebar-account { gap: 13px; }
.sidebar-person b { font-size: 14px; }
.sidebar-person small, .side-label { font-size: 11px; }
.nav-item, .logout-link { min-height: 46px; gap: 12px; padding: 11px 13px; border-radius: 10px; font-size: 14px; line-height: 1.35; }
.nav-item .icon, .logout-link .icon { width: 20px; height: 20px; }
.app-content { max-width: 1380px; padding-top: 38px; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(27px, 2.3vw, 32px); line-height: 1.3; }
.page-heading p:not(.eyebrow) { font-size: 14px; line-height: 1.55; }
.request-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; }
.request-form, .tracking-card, .progress-card, .tracking-lookup, .report-paper { border-radius: 14px; box-shadow: var(--shadow); }
.form-section { padding: 29px 32px 31px; }
.section-heading { align-items: center; gap: 13px; margin-bottom: 23px; }
.section-index { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
.section-heading h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.section-heading p { margin-top: 3px; color: var(--ink-muted); font-size: 13px; line-height: 1.45; }
.field-grid { gap: 19px 18px; align-items: start; }
.vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-row-plate { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { gap: 8px; color: #334b60; font-size: 14px; font-weight: 600; line-height: 1.4; }
.field input, .field select, .field textarea, .filter-select input, .search-control, .date-range-trigger { border-radius: 10px; }
.field input, .field select, .field textarea { min-height: 50px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder, .search-control input::placeholder { color: #7d8e9c; }
.field textarea { min-height: 108px; }
.field small, #studentLookupMessage { margin-top: 0; color: var(--ink-muted); font-size: 12px; line-height: 1.45; }
#requestForm input[readonly] { border-color: #dbe5ec; }
.date-range-trigger { min-height: 50px; padding: 11px 14px; color: #718393; }
.date-range-trigger > span { font-size: 15px; }
.date-range-chevron { width: 18px; height: 18px; color: #72879a; transition: transform .15s; }
.date-range-trigger[aria-expanded="true"] .date-range-chevron { transform: rotate(180deg); }
.upload-grid { gap: 14px; }
.upload-card { grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 17px; padding: 13px; border-color: #bed0de; border-radius: 12px; background: #fcfdff; }
.upload-preview { height: 106px; border-radius: 9px; }
.upload-placeholder-icon .icon { width: 30px; height: 30px; stroke-width: 1.9; }
.upload-copy { gap: 4px; }
.upload-copy b { font-size: 15px; line-height: 1.4; }
.upload-copy span { color: var(--ink-muted); font-size: 12px; line-height: 1.45; }
.upload-trigger { min-height: 44px; gap: 8px; margin-top: 8px; padding: 9px 14px; border-radius: 8px; font-size: 13px; }
.upload-trigger .icon { width: 18px; height: 18px; }
.remove-image { width: 40px; height: 40px; }
.remove-image .icon { width: 18px; height: 18px; }
.privacy-note { align-items: flex-start; padding: 14px; border-radius: 10px; }
.privacy-note > .icon { width: 20px; height: 20px; margin-top: 1px; }
.privacy-note b { font-size: 13px; }
.privacy-note span { font-size: 12px; }
.form-footer { padding: 20px 32px; }
.btn { min-height: 44px; gap: 9px; padding: 10px 16px; border-radius: 9px; font-size: 14px; line-height: 1.3; font-weight: 700; white-space: normal; }
.btn .icon { width: 19px; height: 19px; }
.btn-primary:disabled { color: #fff; border-color: var(--red); background-color: var(--red); }
.submit-button { min-height: 50px; }
.progress-card { padding: 20px 18px; }
.progress-title { font-size: 14px; }
.progress-fraction { font-size: 12px; }
.progress-steps li { grid-template-columns: 18px 1fr; column-gap: 9px; }
.progress-steps li::before { width: 16px; height: 16px; }
.progress-steps li b { font-size: 12px; }
.progress-steps li small { font-size: 11px; }
.tracking-lookup { gap: 14px; padding: 21px; }
.tracking-lookup .btn { min-height: 50px; }
.tracking-details .detail-cell { min-height: 72px; }
.detail-cell { padding: 12px 14px; border-radius: 9px; }
.detail-cell small { font-size: 12px; }
.detail-cell b { font-size: 14px; line-height: 1.45; }
.status-step > span { width: 36px; height: 36px; }
.status-step > span .icon { width: 18px; height: 18px; }
.status-step b { font-size: 14px; }
.status-step small { font-size: 12px; }
.tracking-card-actions .btn { min-height: 44px; }
.empty-state { min-height: 180px; gap: 11px; border-radius: 12px; }
.empty-state > span { width: 48px; height: 48px; }
.empty-state > span .icon { width: 24px; height: 24px; }
.empty-state b { font-size: 15px; }
.empty-state small { font-size: 12px; }
.admin-tabs { gap: 27px; margin-bottom: 19px; }
.admin-tab { min-height: 48px; padding: 10px 3px; font-size: 14px; }
.admin-tab span { min-width: 23px; height: 23px; border-radius: 12px; font-size: 11px; }
.status-tabs { gap: 5px; padding: 5px; margin-bottom: 16px; border-radius: 10px; }
.status-tab { min-height: 40px; gap: 8px; padding: 8px 13px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.status-tab b { min-width: 22px; height: 22px; border-radius: 11px; font-size: 11px; }
.filter-bar { gap: 12px; padding: 16px; border-radius: 12px 12px 0 0; }
.search-control { height: 46px; gap: 10px; padding: 0 13px; }
.search-control .icon { width: 20px; height: 20px; }
.search-control input { font-size: 14px; }
.filter-select { gap: 7px; min-width: 145px; color: #52677a; font-size: 12px; font-weight: 600; }
.filter-select input { height: 46px; padding: 10px 12px; color: var(--ink); font-size: 14px; }
.filter-bar .btn, .report-actions .btn { min-height: 46px; }
.table-wrap { border-radius: 0 0 12px 12px; }
.admin-table { min-width: 840px; }
.admin-table th { padding: 14px 16px; color: #536a7f; font-size: 12px; font-weight: 700; }
.admin-table td { padding: 15px 16px; color: #42596d; font-size: 13px; line-height: 1.45; }
.table-person b, .table-vehicle b { font-size: 13px; }
.table-person small, .table-vehicle small, .table-period small { font-size: 11px; }
.row-actions { gap: 8px; }
.row-action { width: 44px; height: 44px; border-radius: 9px; }
.row-action .icon { width: 19px; height: 19px; }
.row-action-delete { border-color: #f0c6cb; }
.status-pill { gap: 7px; padding: 7px 11px; font-size: 12px; }
.status-pill::before { width: 7px; height: 7px; }
.report-heading { margin: 25px 0 19px; }
.report-heading h2 { font-size: 21px; }
.report-actions { gap: 10px; }
.report-actions .filter-select { min-width: 145px; }
.report-stats { gap: 13px; }
.report-stat { padding: 17px; border-radius: 11px; }
.report-stat span { font-size: 12px; }
.report-stat b { font-size: 25px; }
.report-paper { padding: 28px; }
.report-title b { font-size: 17px; }
.report-title span { font-size: 14px; }
.report-title small, .report-signatures { font-size: 12px; }
.report-table td { font-size: 12px; }
.detail-photo a { font-size: 12px; }
.app-footer { font-size: 12px; }

@media (max-width: 1200px) {
  .request-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 17px; }
  .form-section { padding: 25px 24px; }
  .form-footer { padding: 18px 24px; }
}
@media (max-width: 980px) {
  .request-layout { grid-template-columns: 1fr; }
  .request-aside { grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar .search-control { grid-column: 1 / -1; }
  .filter-bar .btn { align-self: end; }
}
@media (max-width: 700px) {
  body { font-size: 14px; }
  .site-header { padding: 0 15px; }
  .site-header .brand-words strong { font-size: 15px; }
  .header-actions { gap: 8px; }
  .btn-admin-login { min-height: 44px; padding: 9px 11px; font-size: 12px; }
  .btn-admin-login .icon { width: 18px; height: 18px; }
  .app-content, #studentView { padding: 22px 16px 30px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p:not(.eyebrow) { font-size: 14px; }
  #studentView .form-section { padding: 23px 18px 25px; }
  #studentView .section-index { width: 36px; height: 36px; }
  #studentView .section-heading h2 { font-size: 18px; }
  #studentView .field-grid, #studentView .vehicle-grid { grid-template-columns: 1fr; }
  #studentView .field-row-plate { grid-template-columns: 1fr; }
  #studentView .field { font-size: 14px; }
  #studentView .field input, #studentView .field select, #studentView .field textarea { min-height: 52px; font-size: 16px; }
  #studentView .upload-card { grid-template-columns: 84px minmax(0, 1fr); gap: 13px; }
  #studentView .upload-copy b { font-size: 14px; }
  #studentView .upload-copy span { font-size: 12px; }
  #studentView .upload-trigger { width: 100%; min-height: 44px; }
  #studentView .remove-image { width: 40px; height: 40px; }
  #studentView .tracking-lookup .btn, #studentView .tracking-card-actions .btn { min-height: 48px; }
  .mobile-nav-item { min-height: 48px; font-size: 12px; }
  .mobile-nav-item .icon { width: 22px; height: 22px; }
  .admin-content { padding-bottom: 30px; }
  .admin-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .admin-heading .btn { min-height: 44px; padding: 9px 13px; font-size: 13px; }
  .admin-tabs { gap: 18px; overflow-x: auto; }
  .admin-tab { flex: 0 0 auto; min-height: 48px; font-size: 13px; }
  .status-tabs { display: flex; width: 100%; overflow-x: auto; justify-content: flex-start; scrollbar-width: thin; }
  .status-tab { flex: 0 0 auto; min-height: 44px; font-size: 12px; }
  .filter-bar { gap: 11px; padding: 13px; }
  .filter-select { min-width: 0; font-size: 12px; }
  .filter-select input { height: 46px; font-size: 14px; }
  .filter-bar .btn-filter { min-height: 46px; grid-column: 1 / -1; font-size: 14px; }
  .report-heading { display: block; }
  .report-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 16px; }
  .report-actions .filter-select { min-width: 0; }
  .report-actions .btn { min-height: 46px; font-size: 13px; }
  .report-stats { gap: 9px; }
  .report-stat { padding: 14px; }
  .report-stat span { font-size: 12px; }
  .report-paper { padding: 16px; }
  .report-signatures { gap: 12px; font-size: 11px; }
  .detail-cell { padding: 11px; }
  .detail-cell small { font-size: 11px; }
  .detail-cell b { font-size: 13px; }
  .app-footer { padding: 14px 16px; font-size: 11px; }
}
@media (max-width: 370px) {
  .site-header .brand-words strong { font-size: 13px; }
  #studentView .upload-card { grid-template-columns: 72px minmax(0, 1fr); }
  .report-actions .btn { font-size: 12px; padding-inline: 8px; }
}
@media print {
  .report-paper { box-shadow: none; padding: 0; }
  .report-table th, .report-table td { padding: 5px 7px; font-size: 9px; }
  .report-signatures { font-size: 9px; }
}

.admin-tab .icon { width: 19px; height: 19px; }
.student-admin-panel { display: grid; gap: 18px; }
.student-admin-heading, .student-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.student-admin-heading { margin: 3px 0 0; }
.student-admin-heading h2, .student-list-heading h3 { margin: 0; color: var(--ink); font-size: 21px; line-height: 1.35; font-weight: 700; }
.student-admin-heading p { margin: 4px 0 0; color: var(--ink-muted); font-size: 13px; }
.student-admin-heading .btn { min-height: 46px; }
.student-admin-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.student-admin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.student-admin-stat { min-height: 85px; display: flex; align-items: center; gap: 13px; padding: 15px 18px; border: 1px solid #cfe7dc; border-radius: 12px; background: #f5fbf8; }
.student-admin-stat-muted { border-color: var(--line); background: #fff; }
.student-stat-mark { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; color: var(--green); border-radius: 11px; background: var(--green-soft); }
.student-admin-stat-muted .student-stat-mark { color: #708396; background: #eef3f6; }
.student-stat-mark .icon { width: 21px; height: 21px; }
.student-admin-stat small, .student-admin-stat b { display: block; }
.student-admin-stat small { color: var(--ink-muted); font-size: 12px; }
.student-admin-stat b { margin-top: 1px; color: var(--ink); font-size: 23px; line-height: 1.25; }
.student-bulk-card { padding: 20px; border: 1px solid #d8e4ed; border-radius: 14px; background: linear-gradient(135deg, #fff 0%, #f7fafc 100%); }
.student-bulk-title { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.student-bulk-icon { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; color: var(--blue); border-radius: 11px; background: var(--blue-soft); }
.student-bulk-icon .icon { width: 21px; height: 21px; }
.student-bulk-title h3 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; }
.student-bulk-title p { margin: 3px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.5; }
.student-bulk-fields { display: grid; grid-template-columns: minmax(170px, 1.15fr) minmax(150px, 1fr) minmax(145px, 1fr) auto; gap: 12px; align-items: end; }
.student-bulk-fields .filter-select, .student-filter-bar .filter-select { min-width: 0; gap: 7px; color: #52677a; font-size: 12px; font-weight: 600; }
.student-bulk-fields .filter-select input, .student-bulk-fields .filter-select select, .student-filter-bar .filter-select select { width: 100%; height: 46px; padding: 9px 12px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; background-color: #fff; font-size: 14px; font-weight: 400; }
.student-bulk-fields .filter-select select, .student-filter-bar .filter-select select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23758899' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.student-bulk-fields .filter-select select:disabled { color: #8796a4; background-color: #f1f4f6; }
.student-bulk-submit { display: grid; gap: 5px; justify-items: start; }
.student-bulk-submit small { min-height: 1.3em; color: var(--ink-muted); font-size: 11px; }
.student-bulk-submit .btn { min-height: 46px; white-space: nowrap; }
.student-list-heading { padding-top: 4px; }
.student-list-heading h3 { font-size: 17px; }
.student-inactive-toggle { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; color: #52677a; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.student-inactive-toggle input, .student-active-control input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.student-filter-bar { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 1fr) minmax(140px, .9fr); gap: 11px; align-items: end; padding: 15px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #fff; }
.student-filter-bar .search-control { height: 46px; border-radius: 10px; }
.student-filter-bar .search-control input { min-width: 0; font-size: 14px; }
.student-table-wrap { border-radius: 0 0 12px 12px; }
.student-table { min-width: 830px; }
.student-table td:first-child { white-space: nowrap; }
.student-table-id { color: var(--ink); font-variant-numeric: tabular-nums; }
.student-table td:nth-child(2) { min-width: 180px; }
.student-state { min-height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.student-state::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.student-state-active { color: var(--green); background: var(--green-soft); }
.student-state-inactive { color: #728192; background: #edf1f4; }
.student-row-inactive td { color: #8492a0; background: #fbfcfd; }
.student-row-action { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); border: 1px solid #d3e2ed; border-radius: 9px; background: #fff; cursor: pointer; }
.student-row-action:hover { color: #155c9f; border-color: #a9c9df; background: #f3f9fd; }
.student-row-action .icon { width: 18px; height: 18px; }
.student-delete-action { color: #bd3946; border-color: #f0d8db; }
.student-delete-action:hover { color: #a52b38; border-color: #e8b9bf; background: #fff5f6; }
.student-restore-action { color: var(--green); border-color: #cde6da; }
.student-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.student-pagination small { color: var(--ink-muted); font-size: 12px; }
.student-pagination > div { display: flex; gap: 8px; }
.student-pagination .btn { min-height: 42px; font-size: 13px; }
.student-editor-modal { border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(24,50,75,.19); }
.student-editor-modal .modal-header { align-items: flex-start; padding: 23px 24px 15px; border-bottom: 1px solid var(--line); }
.student-editor-modal .modal-header p { margin: 4px 0 0; color: var(--ink-muted); font-size: 13px; }
.student-editor-modal .modal-body { display: grid; gap: 17px; padding: 21px 24px; }
.student-editor-modal .field { gap: 7px; font-size: 13px; }
.student-editor-modal .field input { min-height: 48px; font-size: 15px; }
.student-editor-modal .field input[readonly] { color: #728292; background: #f4f7f9; }
.student-active-control { min-height: 44px; display: flex; align-items: center; gap: 10px; color: #40586c; font-size: 13px; font-weight: 600; }
.student-editor-modal .modal-footer { gap: 9px; padding: 14px 24px 22px; border-top: 0; }
.student-import-modal { overflow: hidden; border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(24,50,75,.19); }
.student-import-modal .modal-header { padding: 22px 24px 15px; border-bottom: 1px solid var(--line); }
.student-import-eyebrow { display: block; margin-bottom: 3px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.student-import-modal .modal-body { display: grid; gap: 15px; padding: 20px 24px; }
.student-import-template { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfd; }
.student-import-template > span { display: grid; gap: 3px; }
.student-import-template b { color: var(--ink); font-size: 13px; }
.student-import-template small { color: var(--ink-muted); font-size: 12px; }
.student-import-template .btn { min-height: 42px; white-space: nowrap; }
.student-import-file { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 15px; border: 1px dashed #b7cddd; border-radius: 11px; background: #fff; cursor: pointer; }
.student-import-file-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--blue); border-radius: 10px; background: var(--blue-soft); }
.student-import-file-icon .icon { width: 19px; height: 19px; }
.student-import-file > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.student-import-file b { color: var(--ink); font-size: 13px; }
.student-import-file small { overflow: hidden; color: var(--ink-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.student-import-file input { grid-column: 2; width: 100%; color: var(--ink-muted); font-size: 12px; }
.student-import-feedback { padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #f7fafc; color: var(--ink); font-size: 13px; }
.student-import-feedback[hidden], .student-import-preview-wrap[hidden] { display: none !important; }
.student-import-feedback b, .student-import-feedback span { display: block; }
.student-import-feedback span { margin-top: 3px; color: var(--ink-muted); font-size: 12px; }
.student-import-feedback ul { display: grid; gap: 3px; margin: 9px 0 0; padding-left: 19px; color: #8a5900; font-size: 12px; }
.student-import-feedback-warning { border-color: #f1d59a; background: #fff9e9; }
.student-import-feedback-success { border-color: #c6e5d6; background: #f0faf5; }
.student-import-preview-wrap { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.student-import-preview { min-width: 650px; margin: 0; }
.student-import-preview th, .student-import-preview td { padding: 9px 11px; font-size: 12px; }
.student-import-more { color: var(--ink-muted); text-align: center; }
.student-import-error-list { display: grid; gap: 4px; padding-left: 20px; text-align: left; }
.student-import-modal .modal-footer { gap: 9px; padding: 14px 24px 20px; border-top: 0; }

@media (max-width: 1100px) {
  .student-bulk-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-bulk-submit { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .student-filter-bar { grid-template-columns: minmax(0, 1fr) minmax(140px, .8fr) minmax(130px, .75fr); }
}
@media (max-width: 700px) {
  .student-admin-panel { gap: 15px; }
  .student-admin-heading { align-items: flex-start; }
  .student-admin-heading { flex-wrap: wrap; }
  .student-admin-heading h2 { font-size: 20px; }
  .student-admin-heading p { max-width: 230px; font-size: 12px; }
  .student-admin-heading .btn { min-height: 46px; padding: 9px 11px; font-size: 12px; }
  .student-admin-heading .btn .icon { width: 18px; height: 18px; }
  .student-admin-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-admin-actions .btn { justify-content: center; padding-right: 8px; padding-left: 8px; }
  .student-admin-stats { gap: 9px; }
  .student-admin-stat { min-height: 76px; gap: 9px; padding: 11px; }
  .student-stat-mark { width: 35px; height: 35px; }
  .student-stat-mark .icon { width: 18px; height: 18px; }
  .student-admin-stat small { font-size: 11px; }
  .student-admin-stat b { font-size: 20px; }
  .student-bulk-card { padding: 15px; border-radius: 12px; }
  .student-bulk-title { align-items: flex-start; gap: 10px; }
  .student-bulk-title h3 { font-size: 15px; }
  .student-bulk-title p { font-size: 11px; }
  .student-bulk-fields { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .student-bulk-submit { grid-column: auto; align-items: center; }
  .student-list-heading { align-items: flex-start; }
  .student-list-heading h3 { padding-top: 8px; font-size: 16px; }
  .student-inactive-toggle { min-height: 42px; gap: 7px; padding: 6px 8px; font-size: 11px; }
  .student-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .student-filter-bar .search-control { grid-column: 1 / -1; }
  .student-table { min-width: 760px; }
  .student-table th, .student-table td { padding: 12px; }
  .student-row-action { width: 44px; height: 44px; }
  .student-pagination { align-items: flex-start; flex-direction: column; }
  .student-pagination > div { width: 100%; }
  .student-pagination .btn { flex: 1; }
  .student-editor-modal .modal-header { padding: 20px 18px 13px; }
  .student-editor-modal .modal-body { gap: 15px; padding: 18px; }
  .student-editor-modal .modal-footer { padding: 12px 18px 18px; }
  .student-import-modal .modal-header { padding: 19px 18px 13px; }
  .student-import-modal .modal-body { gap: 12px; padding: 16px 18px; }
  .student-import-template { align-items: flex-start; flex-direction: column; }
  .student-import-template .btn { width: 100%; justify-content: center; }
  .student-import-file { padding: 12px; }
  .student-import-modal .modal-footer { padding: 12px 18px 18px; }
}

/* Shared spacing rhythm: compact control groups, clear section breaks, and room for actions. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
}

.app-content { padding-top: var(--space-8); padding-bottom: var(--space-7); }
.page-heading { gap: var(--space-5); margin-bottom: var(--space-6); }
.request-layout { gap: var(--space-6); }
.form-section { padding: var(--space-7) var(--space-8); }
.section-heading { gap: var(--space-3); margin-bottom: var(--space-6); }
.field-grid { gap: var(--space-5) var(--space-4); }
.upload-grid { gap: var(--space-4); }
.upload-card { gap: var(--space-4); padding: var(--space-3); }
.form-footer { padding: var(--space-5) var(--space-8); }
.request-aside { gap: var(--space-4); }
.tracking-lookup { gap: var(--space-4); padding: var(--space-6); }
.tracking-result { margin-top: var(--space-5); }
.tracking-card { padding: var(--space-6); }
.tracking-details { gap: var(--space-3); }
.detail-cell { padding: var(--space-3) var(--space-4); }
.admin-heading { margin-bottom: var(--space-5); }
.admin-tabs { gap: var(--space-6); margin-bottom: var(--space-5); }
.status-tabs { margin-bottom: var(--space-4); }
.filter-bar { gap: var(--space-3); padding: var(--space-4); }
.admin-table th, .admin-table td { padding: var(--space-3) var(--space-4); }
.report-heading { margin: var(--space-6) 0 var(--space-5); }
.report-stats { gap: var(--space-3); margin-bottom: var(--space-4); }
.report-paper { padding: var(--space-7); }
.report-title { margin-bottom: var(--space-6); }
.report-signatures { padding-top: var(--space-7); }
.student-admin-panel { gap: var(--space-5); }
.student-admin-stats { gap: var(--space-4); }
.student-bulk-title { margin-bottom: var(--space-4); }
.student-bulk-fields { gap: var(--space-3); }
.student-filter-bar { gap: var(--space-3); padding: var(--space-4); }
.student-pagination { margin-top: var(--space-2); }
.student-editor-modal .modal-body { gap: var(--space-4); padding: var(--space-5) var(--space-6); }

@media (max-width: 1200px) and (min-width: 701px) {
  .request-layout { gap: var(--space-5); }
  .form-section { padding: var(--space-6); }
  .form-footer { padding: var(--space-5) var(--space-6); }
  .app-content { padding-top: var(--space-7); }
}

@media (max-width: 700px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
  }
  .app-main { flex: 1 0 auto; }
  .app-content, #studentView { padding: var(--space-6) 16px var(--space-7); }
  .page-heading { margin-bottom: var(--space-5); }
  #studentView .request-layout { gap: var(--space-4); }
  #studentView .form-section { padding: var(--space-6) 18px; }
  #studentView .section-heading { gap: var(--space-3); margin-bottom: var(--space-5); }
  #studentView .field-grid, #studentView .field-grid-two, #studentView .field-row { gap: var(--space-4); }
  #studentView .upload-grid { gap: var(--space-3); }
  #studentView .upload-card { gap: var(--space-3); padding: var(--space-3); }
  #studentView .form-footer { gap: var(--space-3); padding: var(--space-5) 18px; }
  #studentView .tracking-lookup { gap: var(--space-3); padding: var(--space-4); }
  #trackingPanel .page-heading { margin-bottom: var(--space-5); }
  #trackingPanel .page-heading .btn { margin-top: var(--space-3); }
  #studentView .tracking-card { padding: var(--space-5) var(--space-4); }
  #studentView .tracking-details { gap: var(--space-3); }
  #studentView .tracking-details .detail-cell { padding: var(--space-3); }
  .mobile-bottom-nav {
    min-height: 68px;
    gap: var(--space-2);
    padding: var(--space-2) 16px calc(var(--space-2) + env(safe-area-inset-bottom));
  }
  .admin-table th, .admin-table td { padding: var(--space-3); }
  .student-admin-panel { gap: var(--space-5); }
  .student-admin-stats { gap: var(--space-3); }
  .student-bulk-fields { gap: var(--space-3); }
  .student-filter-bar { gap: var(--space-3); padding: var(--space-3); }
  .student-editor-modal .modal-body { gap: var(--space-4); padding: var(--space-4); }
  .report-actions { gap: var(--space-3); }
  .report-stats { gap: var(--space-3); }
  .report-paper { padding: var(--space-4); }
}

@media (max-width: 370px) {
  .app-content, #studentView { padding-right: 12px; padding-left: 12px; }
  #studentView .form-section { padding-right: 16px; padding-left: 16px; }
}

@media print {
  .report-paper { padding: 0; }
}

.submission-window-panel { display: grid; align-content: start; max-width: 980px; }
.submission-window-card { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.submission-window-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.submission-window-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; color: var(--blue); border-radius: 12px; background: var(--blue-soft); }
.submission-window-mark .icon { width: 24px; height: 24px; }
.submission-window-heading h2 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.35; }
.submission-window-heading p { margin: 4px 0 0; color: var(--ink-muted); font-size: 13px; }
.submission-window-state { margin-left: auto; padding: 8px 12px; border-radius: 999px; color: var(--ink-muted); background: var(--mist); font-size: 12px; font-weight: 700; white-space: nowrap; }
.submission-state-open { color: #126b4b; background: var(--green-soft); }
.submission-state-upcoming { color: #875a08; background: var(--amber-soft); }
.submission-state-closed, .submission-state-unavailable { color: #ad303c; background: #fff0f1; }
.submission-window-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.submission-window-fields .filter-select { min-width: 0; gap: 7px; color: #52677a; font-size: 13px; font-weight: 600; }
.submission-window-fields .filter-select input { width: 100%; height: 50px; padding: 12px 14px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font-size: 15px; }
.submission-window-help { margin: 13px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.5; }
.submission-window-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.submission-window-actions .btn { min-height: 46px; }
@media (max-width: 700px) {
  .submission-window-heading { align-items: flex-start; flex-wrap: wrap; gap: 11px; margin-bottom: 20px; }
  .submission-window-heading h2 { font-size: 18px; }
  .submission-window-heading p { font-size: 12px; }
  .submission-window-state { margin: 0 0 0 auto; }
  .submission-window-fields { grid-template-columns: 1fr; gap: 13px; }
  .submission-window-actions { flex-direction: column-reverse; }
  .submission-window-actions .btn { width: 100%; min-height: 48px; justify-content: center; }
}

/* Keep the student date-range dialog centered inside the visible mobile viewport. */
.flatpickr-calendar.student-range-calendar.open {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(384px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  margin: 0 !important;
  overflow-y: auto;
  transform: translate(-50%, -50%) !important;
}
.tracking-vehicle-photo { display: grid; gap: 10px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.tracking-vehicle-photo figcaption, .tracking-vehicle-photo > b { color: var(--ink); font-size: 14px; font-weight: 700; }
.tracking-vehicle-photo img { display: block; width: 100%; max-height: 360px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.tracking-vehicle-photo-empty { min-height: 150px; display: grid; place-items: center; color: var(--ink-muted); border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--mist); }
@media (max-width: 700px) {
  #studentView .tracking-vehicle-photo { gap: 9px; padding-top: 16px; }
  #studentView .tracking-vehicle-photo img { max-height: 320px; }
}

.tracking-status-summary { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 15px 17px; border: 1px solid; border-radius: 12px; }
.tracking-status-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; }
.tracking-status-icon .icon { width: 22px; height: 22px; }
.tracking-status-summary small, .tracking-status-summary b { display: block; }
.tracking-status-summary small { margin-bottom: 3px; font-size: 12px; font-weight: 600; opacity: .82; }
.tracking-status-summary b { font-size: 19px; line-height: 1.35; }
.tracking-status-pending { color: #875a08; border-color: #f1d89c; background: #fff8e8; }
.tracking-status-pending .tracking-status-icon { color: #98640a; background: #ffedc2; }
.tracking-status-approved { color: #126b4b; border-color: #b9e2d0; background: #edf9f3; }
.tracking-status-approved .tracking-status-icon { color: #fff; background: var(--green); }
.tracking-status-rejected { color: #ad303c; border-color: #f0c3c8; background: #fff2f3; }
.tracking-status-rejected .tracking-status-icon { color: #fff; background: var(--red); }
@media (max-width: 700px) {
  #studentView .tracking-status-summary { gap: 12px; margin-top: 14px; padding: 13px 14px; }
  #studentView .tracking-status-icon { width: 40px; height: 40px; }
  #studentView .tracking-status-summary small { font-size: 12px; }
  #studentView .tracking-status-summary b { font-size: 17px; }
}

/* Student tracking summary card: key facts first, remaining details in a disclosure. */
#studentView .tracking-summary-card { padding: clamp(18px, 3vw, 28px); }
#studentView .tracking-summary-card .tracking-card-heading { align-items: center; flex-direction: row; padding-bottom: 15px; }
#studentView .tracking-summary-card .tracking-card-heading b { overflow-wrap: anywhere; word-break: break-word; letter-spacing: 0; }
#studentView .tracking-summary-card .tracking-status-summary { margin-top: 15px; }
#studentView .tracking-summary-photo { gap: 9px; margin-top: 17px; padding: 0; border: 0; }
#studentView .tracking-photo-trigger { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: zoom-in; }
#studentView .tracking-photo-trigger:focus-visible { outline: 3px solid rgba(47, 118, 199, .35); outline-offset: 4px; }
#studentView .tracking-summary-photo img { max-height: 310px; }
#studentView .tracking-summary-photo .tracking-vehicle-photo-empty { min-height: 160px; }
.tracking-summary-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 15px; }
.tracking-summary-fact { min-width: 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.tracking-summary-fact.tracking-summary-name { grid-column: 1 / -1; }
.tracking-summary-fact small, .tracking-summary-fact b { display: block; }
.tracking-summary-fact small { margin-bottom: 5px; color: var(--ink-muted); font-size: 11px; font-weight: 600; }
.tracking-summary-fact b { color: var(--ink); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.tracking-more-details { margin-top: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.tracking-more-details > summary { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.tracking-more-details > summary::-webkit-details-marker { display: none; }
.tracking-more-details > summary .icon { width: 17px; height: 17px; color: var(--ink-muted); transition: transform .18s ease; }
.tracking-more-details[open] > summary { border-bottom: 1px solid var(--line); }
.tracking-more-details[open] > summary .icon { transform: rotate(180deg); }
.tracking-more-content { padding: 0 15px 13px; }
.tracking-more-content .tracking-timeline { padding-top: 17px; }
.tracking-more-content .tracking-details { padding-bottom: 12px; }
.tracking-more-content .request-card-note { margin: 0 0 7px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
@media (max-width: 700px) {
  #studentView .tracking-summary-card { padding: 18px 15px; }
  #studentView .tracking-summary-card .tracking-card-heading { align-items: flex-start; flex-direction: column; }
  #studentView .tracking-summary-photo img { max-height: 280px; }
  #studentView .tracking-summary-facts { grid-template-columns: 1fr; gap: 9px; }
  #studentView .tracking-summary-fact.tracking-summary-name { grid-column: auto; }
  #studentView .tracking-summary-fact { padding: 12px 13px; }
  #studentView .tracking-summary-fact b { font-size: 14px; }
  #studentView .tracking-more-content { padding-right: 12px; padding-left: 12px; }
}

/* Keep staff navigation together in the admin sidebar. */
body.is-admin-session .site-header .header-link { display: none; }
body.is-admin-session .mobile-bottom-nav { display: none !important; }
.admin-side-nav .admin-tab { position: relative; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 11px 13px; color: #c8d3dd; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 14px; font-weight: 600; cursor: pointer; }
.admin-side-nav .admin-tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-side-nav .admin-tab.active { color: #fff; background: var(--red); box-shadow: 0 5px 13px rgba(0,0,0,.12); }
.admin-side-nav .admin-tab.active::after { display: none; }
.admin-side-nav .admin-tab .icon { width: 20px; height: 20px; flex: 0 0 auto; }
.admin-side-nav .admin-tab > span:first-of-type { display: block; width: auto; min-width: 0; height: auto; padding: 0; place-items: initial; color: inherit; border-radius: 0; background: transparent; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: left; }
.admin-side-nav .admin-tab > .nav-count { min-width: 20px; height: 20px; display: inline-grid; place-items: center; margin-left: auto; padding: 0 5px; color: var(--red-deep); border-radius: 999px; background: #fff; font-size: 10px; }
@media (max-width: 760px) {
  .app-shell.is-admin #adminSideNav .admin-tab > span:first-of-type { font-size: 12px; }
}
@media (max-width: 760px) {
  .app-shell.is-admin .sidebar { min-height: 0; display: flex; padding: 8px 12px; overflow: hidden; }
  .app-shell.is-admin .sidebar-account,
  .app-shell.is-admin #adminSideLabel { display: none; }
  .app-shell.is-admin #adminSideNav { display: flex; flex-flow: row nowrap; gap: 6px; width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .app-shell.is-admin #adminSideNav .admin-tab { width: auto; min-width: max-content; min-height: 42px; flex: 0 0 auto; gap: 8px; padding: 8px 11px; border-radius: 8px; font-size: 12px; }
  .app-shell.is-admin #adminSideNav .admin-tab .icon { width: 17px; height: 17px; }
}

/* Weekly report layout */
.report-toolbar { display: grid; gap: 17px; margin: 0 0 24px; padding: 20px 22px 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(24, 50, 75, .045); }
.report-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px; }
.report-filters .filter-select { min-width: 0; gap: 7px; color: #536a7e; font-size: 12px; font-weight: 600; }
.report-filters .filter-select input,
.report-filters .filter-select select { width: 100%; height: 46px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: #fff; font-size: 14px; }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 15px; border-top: 1px solid #edf1f5; }
.report-actions .btn { min-height: 45px; padding: 10px 16px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.report-actions .btn .icon { width: 16px; height: 16px; }
.report-stats { margin-bottom: 18px; }
.report-stat { padding: 14px 16px; border-radius: 11px; }
.report-stat span { font-size: 11px; }
.report-stat b { margin-top: 3px; font-size: 22px; }
.report-paper { padding: 28px; border-color: #dce5ed; border-radius: 15px; box-shadow: 0 18px 48px rgba(24, 50, 75, .07); }
.report-signatures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 26px; padding: 0; color: var(--ink); }
.signature-block { min-width: 0; min-height: 178px; display: flex; flex-direction: column; align-items: center; padding: 17px 12px 13px; border: 1px solid #dce5ed; border-radius: 12px; background: linear-gradient(180deg, #fbfdff, #fff); text-align: center; }
.signature-role { color: #334b61; font-size: 13px; font-weight: 700; line-height: 1.4; }
.signature-space { width: 100%; min-height: 54px; flex: 1 1 auto; }
.signature-rule { width: 88%; border-top: 1px solid #9cabb8; }
.signature-name { display: block; max-width: 100%; margin-top: 8px; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 600; }
.signature-block small { display: block; max-width: 100%; margin-top: 4px; overflow-wrap: anywhere; color: var(--ink-muted); font-size: 11px; }
.report-title { gap: 14px; margin: 0 0 23px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.report-seal { width: 46px; height: 46px; flex: 0 0 auto; font-size: 20px; }
.report-title b { font-size: 18px; }
.report-title span { margin-top: 4px; font-size: 15px; }
.report-title small { margin-top: 6px; color: #556a7e; font-size: 12px; line-height: 1.45; }
.report-table-wrap { overflow: visible; border: 0; border-radius: 0; }
.report-table { width: 100%; min-width: 0; table-layout: fixed; }
.report-table th, .report-table td { padding: 11px 9px; text-align: center; border: 1px solid #dbe4eb; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.report-table th { color: #334b61; background: #f2f6f9; font-size: 12px; font-weight: 700; }
.report-table th:nth-child(1), .report-table td:nth-child(1) { width: 8%; }
.report-table th:nth-child(2), .report-table td:nth-child(2) { width: 31%; text-align: left; }
.report-table th:nth-child(3), .report-table td:nth-child(3) { width: 14%; }
.report-table th:nth-child(4), .report-table td:nth-child(4) { width: 33%; }
.report-table th:nth-child(5), .report-table td:nth-child(5) { width: 14%; }
.report-student b, .report-student small, .report-vehicle b, .report-vehicle small { display: block; }
.report-student b, .report-vehicle b { color: var(--ink); font-size: 13px; font-weight: 700; }
.report-student small, .report-vehicle small { margin-top: 4px; color: var(--ink-muted); font-size: 11px; }
.report-number { color: var(--ink-muted) !important; }
.report-status-chip { display: inline-flex; justify-content: center; padding: 5px 8px; border: 1px solid #d8e1e8; border-radius: 999px; color: #5b6e7e; background: #f4f7f9; font-size: 11px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.report-status-chip[data-status="approved"] { color: #126b4b; border-color: #bfe2d2; background: #eef8f3; }
.report-status-chip[data-status="rejected"] { color: #a92e3a; border-color: #f0c7cb; background: #fff3f4; }
.report-status-chip[data-status="pending"] { color: #8e5b08; border-color: #f0d99e; background: #fff8e8; }
.report-signatories-modal { overflow: hidden; border: 0; border-radius: 16px; box-shadow: 0 20px 65px rgba(24, 50, 75, .2); }
.report-signatories-modal .modal-header { align-items: flex-start; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }
.report-signatories-modal .modal-title { margin-top: 3px; color: var(--ink); font-size: 21px !important; font-weight: 700; }
.report-signatories-modal .modal-body { display: grid; gap: 13px; padding: 20px 24px; }
.signatory-editor-card { min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.signatory-editor-card legend { float: none; width: auto; display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 700; }
.signatory-editor-card legend span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--blue); border-radius: 8px; background: var(--blue-soft); font-size: 11px; }
.signatory-editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signatory-editor-fields .field { gap: 6px; color: #536a7e; font-size: 12px; font-weight: 600; }
.signatory-editor-fields .field input { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; }
.report-signatories-modal .modal-footer { gap: 9px; padding: 14px 24px 21px; border-top: 0; }
.report-signatories-modal .modal-footer .btn { min-height: 43px; }

@media (max-width: 1200px) {
  .report-filters { gap: 13px; }
}
@media (max-width: 700px) {
  .report-toolbar { gap: 14px; margin-bottom: 20px; padding: 16px; border-radius: 12px; }
  .report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .report-filters .filter-select { min-width: 0; }
  .report-filters .filter-select input, .report-filters .filter-select select { height: 45px; font-size: 13px; }
  .report-filters .report-status-filter { grid-column: 1 / -1; }
  .report-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-top: 13px; }
  .report-actions .btn { min-height: 45px; font-size: 12px; }
  .report-actions #applyReport { grid-column: 1 / -1; }
  .report-stats { gap: 8px; }
  .report-stat { padding: 11px; }
  .report-paper { padding: 16px; border-radius: 12px; }
  .report-signatures { gap: 8px; margin-bottom: 18px; }
  .signature-block { min-height: 150px; padding: 12px 7px 10px; border-radius: 9px; }
  .signature-role { font-size: 11px; }
  .signature-name { font-size: 10px; }
  .signature-block small { font-size: 9px; }
  .report-title { gap: 9px; margin-bottom: 17px; padding-bottom: 14px; }
  .report-seal { width: 38px; height: 38px; font-size: 16px; }
  .report-title b { font-size: 15px; }
  .report-title span { font-size: 12px; }
  .report-title small { font-size: 10px; }
  .report-table th, .report-table td { padding: 8px 5px; font-size: 11px; }
  .report-table th { font-size: 10px; }
  .report-student b, .report-vehicle b { font-size: 11px; }
  .report-student small, .report-vehicle small { font-size: 9px; }
  .report-status-chip { padding: 4px 5px; font-size: 9px; }
  .report-signatories-modal .modal-header { padding: 19px 18px 14px; }
  .report-signatories-modal .modal-body { gap: 10px; padding: 15px 18px; }
  .signatory-editor-card { padding: 12px; }
  .signatory-editor-fields { grid-template-columns: 1fr; gap: 10px; }
  .report-signatories-modal .modal-footer { padding: 10px 18px 17px; }
}

@media print {
  @page { size: A4 portrait; margin: 11mm; }
  html, body { width: 100%; min-width: 0; min-height: 0; background: #fff !important; }
  body { color: #172b3d !important; font-family: "Google Sans", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; font-size: 10.5pt; font-optical-sizing: auto; font-variation-settings: "GRAD" 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-paper, .report-paper * { font-family: "Google Sans", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif !important; font-optical-sizing: auto; font-variation-settings: "GRAD" 0; }
  .site-header, .sidebar, .app-topline, .app-footer, .mobile-bottom-nav, .admin-heading, .admin-tabs, #adminQueue, #adminStudents, #adminSubmissionWindow, .report-toolbar, .report-stats, .modal, .modal-backdrop { display: none !important; }
  .app-shell { display: block !important; width: 100%; min-height: 0; }
  .app-content { width: 100%; max-width: none; margin: 0; padding: 0; }
  #adminView, #adminReports { display: block !important; width: 100%; }
  .report-paper { width: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .report-signatures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4mm; margin: 0 0 7mm; }
  .signature-block { min-height: 39mm; padding: 3mm 2mm 2.5mm; border: .65pt solid #87939c; border-radius: 0; background: #fff !important; break-inside: avoid; }
  .signature-role { color: #172b3d; font-size: 10.5pt; }
  .signature-space { min-height: 16mm; }
  .signature-rule { border-color: #58636b; }
  .signature-name { margin-top: 1.5mm; color: #172b3d; font-size: 9.5pt; }
  .signature-block small { margin-top: 1mm; color: #34495a; font-size: 9pt; }
  .report-title { gap: 3mm; margin: 0 0 6mm; padding: 0 0 4mm; border-color: #9daab4; }
  .report-seal { width: 12mm; height: 12mm; font-size: 14pt; }
  .report-title b { color: #172b3d; font-size: 14pt; }
  .report-title span { color: #283e51; font-size: 11.5pt; }
  .report-title small { margin-top: 1.5mm; color: #34495a; font-size: 10.5pt; }
  .report-table-wrap { overflow: visible; }
  .report-table { width: 100%; min-width: 0; table-layout: fixed; }
  .report-table th, .report-table td { padding: 2.2mm 1.6mm; border: .6pt solid #87939c; color: #172b3d; font-size: 10pt; line-height: 1.4; }
  .report-table tbody tr:last-child td { border-bottom: .6pt solid #87939c !important; }
  .report-table th { background: #edf2f5 !important; font-size: 10pt; }
  .report-table th:nth-child(1), .report-table td:nth-child(1) { width: 8%; }
  .report-table th:nth-child(2), .report-table td:nth-child(2) { width: 31%; }
  .report-table th:nth-child(3), .report-table td:nth-child(3) { width: 14%; }
  .report-table th:nth-child(4), .report-table td:nth-child(4) { width: 33%; }
  .report-table th:nth-child(5), .report-table td:nth-child(5) { width: 14%; }
  .report-student b, .report-vehicle b { color: #172b3d; font-size: 10pt; }
  .report-student small, .report-vehicle small { margin-top: .8mm; color: #34495a; font-size: 8.8pt; }
  .report-status-chip { padding: 1mm 1.4mm; border-radius: 99px; font-size: 9pt; }
  .report-table tr { break-inside: avoid; }
}

.detail-photo-trigger { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: var(--mist); cursor: zoom-in; }
.detail-photo-trigger img { display: block; width: 100%; height: 118px; object-fit: cover; transition: transform .2s ease; }
.detail-photo-trigger:hover img { transform: scale(1.035); }
.detail-photo-trigger:focus-visible { outline: 3px solid rgba(36, 112, 199, .35); outline-offset: 3px; }
.detail-photo-caption { display: block; margin-top: 7px; color: var(--ink-muted); font-size: 12px; font-weight: 600; }
dialog.photo-preview-dialog:not([open]) { display: none; }
dialog.photo-preview-dialog { width: min(920px, calc(100vw - 28px)); max-width: none; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); margin: auto; padding: 17px; overflow: auto; border: 1px solid rgba(255,255,255,.55); border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 90px rgba(7, 20, 34, .35); }
dialog.photo-preview-dialog::backdrop { background: rgba(14, 27, 40, .76); backdrop-filter: blur(4px); }
.photo-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.photo-preview-heading h2 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.photo-preview-close { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--ink-muted); border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.photo-preview-close:hover { color: var(--red-deep); background: #fff4f5; }
.photo-preview-close .icon { width: 18px; height: 18px; }
#photoPreviewImage { display: block; width: 100%; height: min(74vh, 720px); height: min(74dvh, 720px); object-fit: contain; border-radius: 10px; background: #f1f4f6; }
@media (max-width: 600px) {
  dialog.photo-preview-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 12px; border-radius: 13px; }
  .photo-preview-heading { margin-bottom: 10px; }
  #photoPreviewImage { height: min(72dvh, 620px); }
  .detail-photo-trigger img { height: 112px; }
}

/* Document header for the weekly parking authorization report */
.report-document-header { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, .43fr)); gap: 5px; align-items: stretch; margin-bottom: 17px; }
.report-document-info { min-width: 0; min-height: 178px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 18px 14px; border: 1px solid #18324b; border-radius: 9px; color: var(--ink); background: #fff; text-align: center; }
.report-document-info > b { color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.4; }
.report-document-info h3 { margin: 0; color: #536a7e; font-size: 28px; font-weight: 700; line-height: 1.4; }
.report-document-info > span { color: #647a8e; font-size: 18px; line-height: 1.5; }
.report-document-info > small { color: var(--ink-muted); font-size: 13px; line-height: 1.4; }
#reportSignatures { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 5px; margin: 0; padding: 0; }
.signature-block { min-height: 178px; padding: 14px 7px 10px; border: 1px solid #748493; border-radius: 9px; background: #fff; }
.signature-role { color: #334b61; font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.signature-position { max-width: 100%; margin-top: 0; color: #334b61; font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.signature-space { min-height: 36px; }
.signature-rule { border-top: 1px dotted #718190; }
.signature-name { margin-top: 7px; font-size: 10px; line-height: 1.35; }
.signature-block .signature-date { margin-top: 7px; color: #536579; font-size: 8px; letter-spacing: .015em; line-height: 1.25; white-space: nowrap; }

@media (max-width: 700px) {
  .report-document-header { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .report-document-info { grid-column: 1 / -1; min-height: 154px; padding: 16px 12px; }
  .report-document-info > b { font-size: 16px; }
  .report-document-info h3 { font-size: 24px; }
  .report-document-info > span { font-size: 16px; }
  #reportSignatures { grid-column: 1 / -1; gap: 7px; }
  .signature-block { min-height: 145px; padding: 11px 5px 9px; }
  .signature-role { font-size: 10px; }
  .signature-position { font-size: 9.5px; }
  .signature-space { min-height: 28px; }
  .signature-name { font-size: 9px; }
  .signature-block .signature-date { font-size: 7px; }
}

@media print {
  .report-document-header { grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, .43fr)); gap: 1.3mm; margin-bottom: 4mm; }
  .report-document-info { min-height: 39mm; gap: 1mm; padding: 2mm; border: .7pt solid #18324b; border-radius: 0; }
  .report-document-info > b { font-size: 13.2pt; }
  .report-document-info h3 { font-size: 18pt; }
  .report-document-info > span { font-size: 12pt; }
  .report-document-info > small { font-size: 10.2pt; }
  #reportSignatures { grid-column: 2 / -1; gap: 1.3mm; }
  .signature-block { min-height: 39mm; padding: 2mm 1mm 1.5mm; border: .65pt solid #74808a; border-radius: 0; }
  .signature-role { color: #172b3d; font-size: 8.5pt; }
  .signature-position { margin-top: 0; color: #172b3d; font-size: 9.5pt; font-weight: 700; }
  .signature-space { min-height: 9mm; }
  .signature-rule { border-color: #64727e; }
  .signature-name { margin-top: 1mm; font-size: 7.5pt; }
  .signature-block .signature-date { margin-top: 1.5mm; color: #34495a; font-size: 6.4pt; letter-spacing: 0; }
}

/* Keep Flatpickr weekday labels and date cells on the same seven-column grid.
   The generated inline widths can otherwise leave enough room for an eighth cell. */
.flatpickr-calendar .flatpickr-rContainer,
.flatpickr-calendar .flatpickr-weekdays,
.flatpickr-calendar .flatpickr-weekdaycontainer,
.flatpickr-calendar .flatpickr-days,
.flatpickr-calendar .dayContainer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.flatpickr-calendar .flatpickr-weekdaycontainer,
.flatpickr-calendar .dayContainer {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.flatpickr-calendar .flatpickr-day {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  margin: 0;
}

/* Shared calendar controls for student requests, admin filters and reports. */
.flatpickr-calendar.parking-calendar {
  width: min(384px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 20px 56px rgba(18, 39, 60, .18);
}
.flatpickr-calendar.parking-calendar.student-range-calendar.open {
  width: min(384px, calc(100vw - 24px)) !important;
}
.parking-calendar .calendar-heading { padding-bottom: 18px; text-align: left; }
.parking-calendar .calendar-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.parking-calendar .calendar-heading strong { color: var(--ink-deep); font-size: 19px; font-weight: 700; line-height: 1.4; }
.parking-calendar .calendar-heading small { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 12px; line-height: 1.6; }
.parking-calendar .calendar-navigation { display: flex; flex: 0 0 auto; gap: 8px; }
.parking-calendar .calendar-navigation button {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer;
}
.parking-calendar .calendar-navigation button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--mist); }
.parking-calendar .calendar-navigation button:disabled { opacity: .3; cursor: not-allowed; }
.parking-calendar [data-calendar-previous] .icon { transform: rotate(90deg); }
.parking-calendar [data-calendar-next] .icon { transform: rotate(-90deg); }
.flatpickr-calendar.parking-calendar .flatpickr-prev-month,
.flatpickr-calendar.parking-calendar .flatpickr-next-month { display: none; }
.flatpickr-calendar.parking-calendar .flatpickr-months { display: block; padding: 0 0 16px; }
.flatpickr-calendar.parking-calendar .flatpickr-month { height: auto; overflow: visible; }
.flatpickr-calendar.parking-calendar .flatpickr-current-month {
  position: static; left: auto; width: 100%; height: auto; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px;
  align-items: start; text-align: left;
}
.parking-calendar .calendar-period-field { min-width: 0; display: grid; gap: 6px; margin: 0; }
.parking-calendar .calendar-period-field > span { color: var(--ink-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.flatpickr-calendar.parking-calendar .flatpickr-monthDropdown-months,
.flatpickr-calendar.parking-calendar .numInputWrapper {
  width: 100%; min-width: 0; height: 46px; margin: 0;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background-color: #f7f9fb; color: var(--ink-deep); font-size: 14px; font-weight: 600;
}
.flatpickr-calendar.parking-calendar .flatpickr-monthDropdown-months {
  appearance: none; padding: 0 36px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m2 3 5 5 5-5' fill='none' stroke='%2364768a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.flatpickr-calendar.parking-calendar .numInputWrapper { padding: 0; }
.flatpickr-calendar.parking-calendar input.cur-year {
  width: 100%; height: 44px; padding: 0 28px 0 14px; margin: 0;
  color: var(--ink-deep); font-size: 14px; font-weight: 600; line-height: normal;
}
.flatpickr-calendar.parking-calendar .numInputWrapper > span {
  right: 0; width: 24px; opacity: 1; border: 0; border-left: 1px solid var(--line);
}
.flatpickr-calendar.parking-calendar .numInputWrapper > span::after { left: 8px; }
.flatpickr-calendar.parking-calendar .flatpickr-monthDropdown-months:hover,
.flatpickr-calendar.parking-calendar .numInputWrapper:hover { background-color: #eef3f7; }
.flatpickr-calendar.parking-calendar .flatpickr-weekdays { height: 32px; }
.flatpickr-calendar.parking-calendar .flatpickr-weekday { color: var(--ink-muted); font-size: 12px; font-weight: 600; }
.flatpickr-calendar.parking-calendar .flatpickr-weekday:last-child { color: var(--red-deep); }
.flatpickr-calendar.parking-calendar .flatpickr-day {
  height: 44px; line-height: 42px; border-radius: 10px;
  color: var(--ink-deep); font-size: 14px; font-weight: 500;
}
.flatpickr-calendar.parking-calendar .flatpickr-day.prevMonthDay,
.flatpickr-calendar.parking-calendar .flatpickr-day.nextMonthDay { color: #8493a1; }
.flatpickr-calendar.parking-calendar .flatpickr-day.flatpickr-disabled { color: #c1cad3; cursor: not-allowed; }
.flatpickr-calendar.parking-calendar .flatpickr-day.today { border-color: var(--red); }
.flatpickr-calendar.parking-calendar .flatpickr-day:hover:not(.flatpickr-disabled):not(.selected):not(.startRange):not(.endRange) { border-color: #ffe2e5; background: #fff0f1; color: var(--red-deep); }
.flatpickr-calendar.parking-calendar .flatpickr-day.inRange { border-color: #fff0f1; border-radius: 0; background: #fff0f1; color: var(--red-deep); box-shadow: none; }
.flatpickr-calendar.parking-calendar .flatpickr-day.selected,
.flatpickr-calendar.parking-calendar .flatpickr-day.startRange,
.flatpickr-calendar.parking-calendar .flatpickr-day.endRange { border-color: var(--red); background: var(--red); color: #fff; box-shadow: none; font-weight: 700; }
.flatpickr-calendar.parking-calendar .flatpickr-day.startRange { border-radius: 10px 0 0 10px; }
.flatpickr-calendar.parking-calendar .flatpickr-day.endRange { border-radius: 0 10px 10px 0; }
.flatpickr-calendar.parking-calendar .flatpickr-day.startRange.endRange { border-radius: 10px; }
.parking-calendar .student-range-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.parking-calendar .student-range-confirm { width: 100%; min-width: 0; min-height: 46px; box-shadow: none; font-size: 14px; }
.parking-calendar :is(button, select, input, .flatpickr-day):focus-visible { outline: 3px solid rgba(47,118,199,.35); outline-offset: 2px; }
@media (max-width: 400px) {
  .flatpickr-calendar.parking-calendar { padding: 16px; }
  .flatpickr-calendar.parking-calendar .flatpickr-current-month { grid-template-columns: minmax(0, 1fr) 96px; }
}

/* Shared dropdown treatment for form fields, filters, dialogs, and calendars. */
:root {
  --dropdown-caret: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m2 3 5 5 5-5' fill='none' stroke='%23647788' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field select,
.filter-select select,
.swal2-popup .swal2-select,
.flatpickr-calendar.parking-calendar .flatpickr-monthDropdown-months {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink-deep);
  background-color: #fff;
  background-image: var(--dropdown-caret);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 9px;
  box-shadow: 0 1px 2px rgba(24, 50, 75, .035);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.field select { padding-right: 42px; }
.filter-select select {
  width: 100%; min-height: 46px; padding: 10px 42px 10px 13px;
  font-size: 14px; font-weight: 400;
}
.swal2-popup .swal2-select {
  min-height: 46px; padding: 10px 42px 10px 13px;
  color: var(--ink-deep); font-size: 14px;
}
.flatpickr-calendar.parking-calendar .flatpickr-monthDropdown-months {
  padding: 0 38px 0 14px;
  background-color: #fff;
  font-size: 14px;
}
.field select:hover:not(:disabled),
.filter-select select:hover:not(:disabled),
.swal2-popup .swal2-select:hover:not(:disabled),
.flatpickr-calendar.parking-calendar .flatpickr-monthDropdown-months:hover {
  border-color: #aebfd0;
  background-color: #fbfdff;
}
.field select:focus-visible,
.filter-select select:focus-visible,
.swal2-popup .swal2-select:focus-visible,
.flatpickr-calendar.parking-calendar .flatpickr-monthDropdown-months:focus-visible {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 118, 199, .22);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(47, 118, 199, .08);
}
.field select:disabled,
.filter-select select:disabled,
.swal2-popup .swal2-select:disabled {
  color: #8493a1;
  border-color: #e1e7ed;
  background-color: #f1f4f7;
  cursor: not-allowed;
  box-shadow: none;
}
.field select:invalid { color: #8291a0; }
.field select option,
.filter-select select option,
.swal2-popup .swal2-select option { color: var(--ink-deep); background: #fff; }
.field select option:disabled { color: #8a98a4; }

/* Review-status picker: render the expanded menu as an app surface, not a browser-native select. */
.swal2-popup .review-status-context { margin: -2px 0 0; color: #718396; font-size: 13px; }
.swal2-popup .review-status-picker { width: min(100%, 430px); margin: 20px auto 0; text-align: left; }
.swal2-popup .review-status-picker-label { display: block; margin: 0 0 7px; color: #506477; font-size: 13px; font-weight: 600; }
.swal2-popup .review-status-trigger {
  width: 100%; min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px 14px; border: 1px solid #cbd8e4; border-radius: 12px; color: var(--ink-deep); background: #fff;
  box-shadow: 0 1px 2px rgba(24,50,75,.04); font: inherit; font-size: 14px; text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.swal2-popup .review-status-trigger:hover { border-color: #a9bacb; background: #fbfdff; }
.swal2-popup .review-status-trigger:focus-visible,
.swal2-popup .review-status-option:focus-visible { outline: 3px solid rgba(47,118,199,.24); outline-offset: 2px; }
.swal2-popup .review-status-trigger[aria-expanded="true"] { border-color: #78a8d9; box-shadow: 0 0 0 3px rgba(47,118,199,.12); }
.review-status-trigger-value { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.review-status-trigger-value [data-review-status-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swal2-popup .review-status-trigger-chevron { width: 18px; height: 18px; flex: 0 0 18px; color: #667b8e; transition: transform .16s ease; }
.swal2-popup .review-status-trigger[aria-expanded="true"] .review-status-trigger-chevron { transform: rotate(180deg); }
.review-status-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }
.review-status-dot--pending { background: #d28a15; box-shadow: 0 0 0 4px #fff2d7; }
.review-status-dot--approved { background: #13855f; box-shadow: 0 0 0 4px #e2f5ed; }
.review-status-dot--rejected { background: #dc3948; box-shadow: 0 0 0 4px #ffeaec; }
.swal2-popup .review-status-menu { display: grid; gap: 5px; margin-top: 8px; padding: 6px; border: 1px solid #dce5ed; border-radius: 13px; background: #fff; box-shadow: 0 12px 26px rgba(24,50,75,.11); }
.swal2-popup .review-status-menu[hidden] { display: none; }
.swal2-popup .review-status-option {
  width: 100%; min-height: 62px; display: flex; align-items: center; gap: 11px; padding: 9px 10px;
  border: 1px solid transparent; border-radius: 9px; color: var(--ink-deep); background: transparent; font: inherit; text-align: left;
  transition: border-color .14s ease, background-color .14s ease;
}
.swal2-popup .review-status-option:hover { border-color: #e4ebf1; background: #f5f8fb; }
.swal2-popup .review-status-option[aria-selected="true"] { border-color: #d6e4f1; background: #f1f7fc; }
.review-status-option-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; }
.review-status-option-icon svg { width: 19px; height: 19px; }
.review-status-option-icon--pending { color: #a76500; background: #fff1d1; }
.review-status-option-icon--approved { color: #08734e; background: #e4f5ed; }
.review-status-option-icon--rejected { color: #c52c3b; background: #ffeaec; }
.review-status-option-copy { display: grid; min-width: 0; gap: 3px; }
.review-status-option-copy strong { color: #233d55; font-size: 13px; font-weight: 650; line-height: 1.35; }
.review-status-option-copy small { color: #718396; font-size: 11px; font-weight: 400; line-height: 1.45; }
.swal2-popup .review-status-option-check { width: 17px; height: 17px; flex: 0 0 17px; margin-left: auto; color: #286caa; opacity: 0; }
.swal2-popup .review-status-option[aria-selected="true"] .review-status-option-check { opacity: 1; }
@media (max-width: 540px) {
  .swal2-popup .review-status-picker { margin-top: 16px; }
  .swal2-popup .review-status-option { min-height: 58px; gap: 9px; padding: 8px; }
  .review-status-option-copy small { font-size: 10px; }
}

/* Floating action menus follow the same surface and use red only for removal. */
.dropdown-menu {
  --bs-dropdown-bg: #fff;
  --bs-dropdown-color: var(--ink-deep);
  --bs-dropdown-border-color: #dce5ed;
  --bs-dropdown-border-radius: 12px;
  --bs-dropdown-box-shadow: 0 14px 32px rgba(24, 50, 75, .16);
  --bs-dropdown-link-color: var(--ink-deep);
  --bs-dropdown-link-hover-color: #225f9a;
  --bs-dropdown-link-hover-bg: #edf5fb;
  --bs-dropdown-link-active-color: #225f9a;
  --bs-dropdown-link-active-bg: #e5f0f9;
  --bs-dropdown-padding-x: 6px;
  --bs-dropdown-padding-y: 6px;
  min-width: 176px;
  margin-top: 6px;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(24, 50, 75, .16);
}
.dropdown-menu .dropdown-item {
  min-height: 40px; display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px;
  color: var(--ink-deep); font-size: 14px; font-weight: 500;
  transition: color .14s ease, background-color .14s ease;
}
.dropdown-menu .dropdown-item .icon { width: 16px; height: 16px; color: var(--ink-muted); }
.dropdown-menu .dropdown-item.text-danger { color: var(--red-deep); }
.dropdown-menu .dropdown-item.text-danger .icon { color: inherit; }
.dropdown-menu .dropdown-item.text-danger:hover,
.dropdown-menu .dropdown-item.text-danger:focus { color: var(--red-deep); background: #fff0f1; }
.dropdown-menu .dropdown-divider { margin: 5px 4px; border-color: var(--line); opacity: 1; }

.flatpickr-calendar.parking-calendar .numInputWrapper {
  border-color: var(--line-strong);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 50, 75, .035);
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.flatpickr-calendar.parking-calendar .numInputWrapper:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 118, 199, .12);
}

/* Student form dropdowns use the same deliberate menu treatment as admin status choices. */
#studentView .request-form { overflow: visible; }
#studentView .request-form > .form-footer { border-radius: 0 0 14px 14px; }
#studentView .field-label { display: block; color: #344b60; font-size: 14px; font-weight: 600; line-height: 1.45; }
#studentView .student-select { position: relative; z-index: 1; min-width: 0; }
#studentView .student-select.is-open { z-index: 1200; }
#studentView .field .student-select-source {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 1px !important;
  margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
}
#studentView .student-select-trigger,
#studentView .student-select-combobox {
  width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid #cbd8e4; border-radius: 10px; color: var(--ink-deep); background: #fff;
  box-shadow: 0 1px 2px rgba(24,50,75,.035); transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
#studentView .student-select-trigger { padding: 11px 14px; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
#studentView .student-select-trigger:hover:not(:disabled),
#studentView .student-select-combobox:hover { border-color: #aebfd0; background: #fbfdff; }
#studentView .student-select-trigger:focus-visible,
#studentView .student-select-combobox:focus-within { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(47,118,199,.17); }
#studentView .student-select-trigger[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,118,199,.12); }
#studentView .student-select-trigger:disabled,
#studentView .student-select-toggle:disabled { color: #8493a1; background: #f1f4f7; cursor: not-allowed; box-shadow: none; }
#studentView .student-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#studentView .student-select-chevron { width: 18px; height: 18px; flex: 0 0 18px; color: #667b8e; transition: transform .16s ease; }
#studentView .student-select.is-open .student-select-chevron { transform: rotate(180deg); }
#studentView .student-select-search {
  min-width: 0; flex: 1; width: 100%; min-height: 50px !important; margin: 0 !important; padding: 11px 14px !important;
  border: 0 !important; border-radius: 10px 0 0 10px !important; outline: 0 !important; color: var(--ink-deep);
  background: transparent !important; box-shadow: none !important; font-size: 16px !important; line-height: 1.4;
}
#studentView .student-select-search::placeholder { color: #8b9aaa; opacity: 1; }
#studentView .student-select-toggle { width: 48px; min-height: 50px; display: grid; flex: 0 0 48px; place-items: center; padding: 0; border: 0; border-radius: 0 10px 10px 0; color: #667b8e; background: transparent; cursor: pointer; }
#studentView .student-select-toggle:focus-visible { outline: 2px solid rgba(47,118,199,.35); outline-offset: -4px; }
#studentView .student-select-menu {
  position: absolute; top: calc(100% + 7px); right: 0; left: 0; z-index: 1201;
  display: grid; gap: 4px; max-height: min(320px, 45vh); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border: 1px solid #dce5ed; border-radius: 12px; background: #fff; box-shadow: 0 14px 32px rgba(24,50,75,.17);
  scrollbar-width: thin; scrollbar-color: #bdcbd7 transparent;
}
#studentView .student-select-menu[hidden] { display: none; }
#studentView .student-select-option {
  width: 100%; min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 8px 10px;
  border: 1px solid transparent; border-radius: 9px; color: #263e55; background: transparent; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease;
}
#studentView .student-select-option:hover { border-color: #e4ebf1; background: #f5f8fb; }
#studentView .student-select-option[aria-selected="true"] { border-color: #d6e4f1; background: #f1f7fc; }
#studentView .student-select-option:focus-visible { outline: 3px solid rgba(47,118,199,.24); outline-offset: 1px; }
#studentView .student-select-option-icon { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border-radius: 9px; color: #286caa; background: #eaf3fb; }
#studentView .student-select-option-icon svg { width: 18px; height: 18px; }
#studentView .student-select-option-icon--motorcycle { color: #8a5e06; background: #fff3d8; }
#studentView .student-select-option-icon--car { color: #246aa5; background: #eaf3fb; }
#studentView .student-select-option-icon--other { color: #586b7e; background: #eef2f6; }
#studentView .student-select-option-icon--province { width: 30px; height: 30px; flex-basis: 30px; color: #286caa; background: #f0f6fb; }
#studentView .student-select-option-copy { display: grid; min-width: 0; gap: 2px; }
#studentView .student-select-option-copy strong { color: #233d55; font-size: 14px; font-weight: 600; line-height: 1.4; }
#studentView .student-select-option-copy small { color: #718396; font-size: 11px; font-weight: 400; line-height: 1.4; }
#studentView .student-select-option-check { width: 17px; height: 17px; flex: 0 0 17px; margin-left: auto; color: #286caa; opacity: 0; }
#studentView .student-select-option[aria-selected="true"] .student-select-option-check { opacity: 1; }
#studentView .student-select-empty { padding: 15px 12px; color: #75879a; font-size: 13px; font-weight: 400; text-align: center; }
#studentView .student-select-empty[hidden] { display: none; }
@media (max-width: 700px) {
  #studentView .field-label { font-size: 14px; }
  #studentView .student-select-menu { max-height: min(300px, 40vh); }
  #studentView .student-select-option { min-height: 44px; }
}
