:root {
  color-scheme: light;
  --canvas: #f4f6fb;
  --surface: #fff;
  --text: #182033;
  --muted: #64718a;
  --line: #e2e7f0;
  --soft: #f7f8fc;
  --primary: #6c3ce1;
  --primary-ink: #6033ce;
  --primary-soft: #f0eafd;
  --green: #087952;
  --green-soft: #e3f6ed;
  --amber: #945c09;
  --amber-soft: #fff3dc;
  --red: #af344d;
  --red-soft: #fce9ee;
  --blue: #275fc2;
  --blue-soft: #e9f0fe;
  --shadow: 0 5px 22px rgba(28, 38, 71, .055);
  --sidebar: 240px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0e1320;
  --surface: #161e2f;
  --text: #edf1fa;
  --muted: #a6b2c9;
  --line: #2a354d;
  --soft: #1b2539;
  --primary: #6f42df;
  --primary-ink: #c8b4ff;
  --primary-soft: #2a214a;
  --green: #84e0ba;
  --green-soft: #183a32;
  --amber: #ffd08a;
  --amber-soft: #3c3020;
  --red: #ffa6ba;
  --red-soft: #432535;
  --blue: #a2bfff;
  --blue-soft: #202f50;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--text); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: var(--primary-ink); text-decoration: none; }
button:disabled { cursor: wait; opacity: .65; }
button, a, input, select, textarea, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid #9773fa; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(24px, 3vw, 31px); line-height: 1.18; letter-spacing: -.035em; }
h2 { font-size: 16px; line-height: 1.3; }
small { font-size: 12px; }
svg { flex: none; vertical-align: middle; }
.muted, .help { color: var(--muted); }
.help { margin-top: 9px; font-size: 12px; }
.help code { padding: 2px 4px; border-radius: 4px; background: var(--soft); color: var(--primary-ink); }
.error-text { color: var(--red); }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

.shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  color: #f3efff;
  background: radial-gradient(ellipse at 10% 0%, #31224f 0%, transparent 56%),
    linear-gradient(180deg, #17172f, #101426 56%, #0d1220);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 67px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(125deg, #6c3ce1 0%, #8556e8 63%, #a85cd3 100%);
}
.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  color: #fff;
  background: #ffffff29;
}
.brand strong, .brand small, .account-name strong, .account-name small,
.login-brand strong, .login-brand small { display: block; }
.brand strong { font-size: 15px; line-height: 1.25; }
.brand small { font-size: 10px; opacity: .85; margin-top: 3px; }
.nav { display: grid; gap: 4px; margin-top: 21px; overflow: auto; }
.nav-link {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  color: #c4c8dc;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 550;
}
.nav-link:hover { background: #ffffff0c; color: #fff; }
.nav-link[aria-current] { color: #fff; background: #8556e830; border-color: #ad89fa50; }
.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex: none;
  background: #ffffff0d;
}
.nav-link[aria-current] .nav-icon { color: #e0d0ff; background: #b691fc32; }
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px 4px 0;
  border-top: 1px solid #ffffff16;
}
.account-name { flex: 1; min-width: 0; }
.account-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-name small { color: #a7afcb; }
.account .avatar { color: #e6dcff; background: #7655b83d; }
.account .icon-btn { color: #d9cffa; background: transparent; border-color: #ffffff21; }
.workspace { margin-left: var(--sidebar); min-width: 0; }
.topbar {
  min-height: 63px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 11px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb span { margin: 0 5px; opacity: .55; }
.crumb strong { color: var(--text); }
.topbar time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.topbar time svg { width: 15px; height: 15px; margin-right: 4px; }
.quick-search, .search-field span { display: flex; align-items: center; position: relative; }
.quick-search { width: min(23vw, 260px); }
.quick-search svg, .search-field svg { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.menu-toggle { display: none !important; }
.scrim { display: none; }
.content { max-width: 1660px; margin: 0 auto; padding: 23px 22px 34px; }
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 22px 0;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--primary-soft);
  font-size: 12px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 18px;
}
.page-head p, .profile-title p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.actions, .row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.actions { justify-content: flex-end; }
.row-actions { gap: 5px; }
.btn, .icon-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text);
  background: var(--surface);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}
.btn:hover, .icon-btn:hover { background: var(--soft); border-color: #bcaaf1; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #5c2ecf; }
.btn.danger { color: var(--red); background: var(--red-soft); border-color: transparent; }
.btn.small { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.btn.plain { background: transparent; border-color: transparent; color: var(--primary-ink); padding-left: 0; }
.icon-btn { width: 37px; height: 37px; padding: 0; min-height: 0; flex: none; }
.back-line { margin: -6px 0 7px; }

.panel, .stat {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.panel { margin-bottom: 16px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}
.panel-body { padding: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { display: block; padding: 14px; color: var(--text); }
a.stat:hover { border-color: #c5b4f5; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 12px; font-weight: 650; color: var(--muted); }
.stat-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--primary-ink);
  background: var(--primary-soft);
}
.stat.blue .stat-icon { color: var(--blue); background: var(--blue-soft); }
.stat.green .stat-icon { color: var(--green); background: var(--green-soft); }
.stat.amber .stat-icon { color: var(--amber); background: var(--amber-soft); }
.stat > strong { display: block; font-size: 26px; letter-spacing: -.04em; line-height: 1.25; margin: 4px 0 2px; }
.stat > small { display: block; color: var(--muted); font-size: 11px; }
.dashboard-grid, .two-col, .pay-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 15px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pay-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); align-items: start; }

.table-wrap { max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: var(--soft); }
th { padding: 10px 12px; color: var(--muted); font-size: 11px; white-space: nowrap; font-weight: 720; }
td { padding: 10px 12px; font-size: 13px; border-top: 1px solid var(--line); vertical-align: middle; }
td small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
tbody tr:hover { background: var(--soft); }
.student-link { display: inline-flex; align-items: center; gap: 8px; min-width: 110px; color: var(--text); }
.student-link strong { font-size: 13px; font-weight: 680; }
.student-link:hover strong { color: var(--primary-ink); }
.avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; flex: none;
  background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 750; }
.avatar.rose { background: var(--primary-soft); color: var(--primary-ink); }
.avatar.big { width: 56px; height: 56px; border-radius: 13px; font-size: 18px; }
.amount { font-weight: 700; white-space: nowrap; }
.amount.due { color: var(--red); }
.pill {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--muted);
  background: var(--soft);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.row-menu summary {
  display: grid;
  place-items: center;
  list-style: none;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu > div { display: grid; gap: 4px; margin-top: 5px; }
.row-menu > div button { justify-content: flex-start; }
.empty { padding: 23px 15px; text-align: center; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 5px; flex-wrap: wrap; padding: 9px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs a { padding: 6px 11px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.tabs a:hover { background: var(--soft); color: var(--primary-ink); }
.tabs a[aria-current] { background: var(--primary-soft); color: var(--primary-ink); }
.content > .tabs { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 9px; }
.filters { display: flex; gap: 11px; align-items: end; flex-wrap: wrap; padding: 12px 15px; }
.filters .search-field { flex: 1 1 240px; max-width: 360px; }
.filters .result-count { padding: 0 0 8px; color: var(--muted); font-size: 12px; }
.filters > .pill { margin-bottom: 7px; }
.filters select { min-width: 140px; }

label { display: grid; gap: 5px; color: var(--text); font-weight: 620; font-size: 13px; min-width: 0; }
input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  font-weight: 450;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .86; }
.quick-search input, .search-field input { padding-left: 37px; }
input:read-only:not([type="checkbox"]) { background: var(--soft); }
textarea { resize: vertical; }
input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); vertical-align: middle; }
.check-field { display: flex; align-items: center; gap: 9px; }
.form-grid { display: grid; gap: 13px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-all { grid-column: 1 / -1; }
.settings-form { display: grid; gap: 13px; }
.form-bottom { display: grid; gap: 8px; margin-bottom: 15px; }
.form-error, .notice.red { padding: 9px 12px; border-radius: 7px; background: var(--red-soft); color: var(--red); font-size: 13px; }
.expand { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.expand > summary { font-weight: 650; }
.expand > * + * { margin-top: 10px; }
.audit-detail { min-width: 190px; max-width: 650px; overflow-wrap: anywhere; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 15px; margin: 0; padding: 15px; }
.details dt { color: var(--muted); font-size: 12px; }
.details dd { margin: 3px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.profile-head { display: flex; align-items: center; gap: 13px; padding: 16px; }
.profile-title { flex: 1; min-width: 0; }
.profile-title h1 { overflow-wrap: anywhere; }
.profile-title .pill { margin-left: 5px; }
.student-profile-photo { width: 58px; height: 58px; flex: none; object-fit: cover; border: 1px solid var(--line); border-radius: 11px; }

.admission-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr); gap: 16px; align-items: start; }
.admission-layout > div { min-width: 0; }
.admission-document-fields { display: grid; gap: 8px; }
.admission-document-fields .help { margin: 0; }
.admission-photo-preview {
  display: grid;
  place-items: center;
  width: min(156px, 100%);
  aspect-ratio: 4 / 5;
  margin: 2px auto 8px;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--muted);
  font-size: 12px;
}
.admission-photo-preview > span { display: grid; gap: 10px; text-align: center; justify-items: center; }
.admission-photo-preview > span::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, var(--primary-ink) 7px, transparent 7.5px),
    radial-gradient(ellipse at 50% 83%, var(--primary-ink) 14px, transparent 14.5px);
  opacity: .52;
}
.admission-photo-preview img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.admission-photo-preview [hidden] { display: none; }
.admission-id-upload { display: grid; gap: 8px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 13px; }
.file-optional { font-weight: 450; font-size: 11px; color: var(--muted); }
.admission-document-fields input[type="file"] { padding: 5px 7px; font-size: 12px; }
.admission-document-fields input::file-selector-button {
  margin-right: 7px;
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  cursor: pointer;
}
.student-documents { max-width: 620px; }

.seat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.seat {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-height: 88px;
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  background: var(--soft);
}
.seat:hover { border-color: #a78bea; }
.seat.full { background: var(--primary-soft); color: var(--primary-ink); }
.seat.shift { background: var(--amber-soft); color: var(--amber); }
.seat strong { font-size: 16px; }
.seat small { font-size: 10px; font-weight: 650; }
.seat > span { max-width: 100%; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-grid.compact .seat { min-height: 36px; padding: 3px; }
.seat-grid.compact .seat strong { font-size: 13px; }
.seat-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.seat-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border: 1px solid var(--line);
  border-radius: 2px; margin-right: 4px; vertical-align: -1px; background: var(--soft); }
.seat-legend .full::before { background: var(--primary-soft); border-color: #cbb7f5; }
.seat-legend .shift::before { background: var(--amber-soft); border-color: #e9c78e; }

.note-list { padding: 4px 12px; }
.note-row { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; border: 0;
  border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 10px 3px; }
.note-row:last-child { border-bottom: 0; }
.note-row:hover { color: var(--primary-ink); }
.note-row > span:nth-child(2) { flex: 1; }
.note-row small { display: block; color: var(--muted); margin-top: 2px; }
.note-row .nav-icon { background: var(--primary-soft); color: var(--primary-ink); }
.receipt { max-width: 840px; margin: 0 auto; padding: 17px; }
.receipt-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.receipt-head .brand-icon, .login .brand-icon { background: var(--primary); }
.receipt-head > div:nth-child(2) { flex: 1; }
.receipt-head p { color: var(--muted); font-size: 12px; }
.receipt-head > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.receipt-amount { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px;
  border-radius: 8px; background: var(--soft); }
.receipt-amount span { display: block; color: var(--muted); font-size: 12px; }
.receipt-amount strong { font-size: 21px; }

.dialog {
  width: min(500px, calc(100% - 24px));
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 90px #11162939;
}
.dialog::backdrop { background: #11172b78; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.dialog-body { padding: 15px; }
.dialog-body > p { margin-bottom: 10px; }
.message-preview { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.message { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.toast { position: fixed; z-index: 30; bottom: 16px; right: 16px; max-width: min(440px, calc(100vw - 32px)); padding: 9px 13px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: var(--green-soft); box-shadow: var(--shadow); }
.toast.error { color: var(--red); background: var(--red-soft); }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at top left, var(--primary-soft), transparent 70%); }
.login-card { width: min(410px, 100%); padding: 23px; display: grid; gap: 16px; }
.login-brand { display: flex; align-items: center; gap: 9px; }
.login-brand small { color: var(--muted); }
.login-card h1 { font-size: 23px; }

@media (max-width: 1160px) {
  :root { --sidebar: 214px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .stat { padding: 10px; }
  .stat-icon { width: 28px; height: 28px; }
  .topbar, .content { padding-left: 15px; padding-right: 15px; }
  .demo-bar { margin-left: 15px; margin-right: 15px; }
}
@media (max-width: 940px) {
  .dashboard-grid, .pay-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-grid.three, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-head { flex-wrap: wrap; }
  .profile-head .actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .admission-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 760px) {
  .workspace { margin-left: 0; }
  .sidebar { visibility: hidden; transform: translateX(-100%); transition: transform .18s ease; width: 240px; }
  .menu-open .sidebar { visibility: visible; transform: translateX(0); }
  .menu-toggle { display: inline-flex !important; }
  .scrim { display: block; z-index: 19; position: fixed; inset: 0; border: 0; background: #11172b72; }
  .topbar { gap: 8px; }
  .topbar-left, .topbar-right { gap: 7px; }
  .topbar time { display: none; }
  .quick-search { width: min(36vw, 235px); }
  .content { padding-top: 16px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .page-head .actions { justify-content: flex-start; }
}
@media (max-width: 460px) {
  .crumb { font-size: 11px; }
  .quick-search { display: none; }
  .two-col, .form-grid.two, .form-grid.three { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .stats, .stats.two { gap: 7px; }
  .stat > strong { font-size: 21px; }
  .stat-icon { display: none; }
  .content { padding-left: 9px; padding-right: 9px; }
  .seat-grid { gap: 4px; }
  .seat { min-height: 72px; }
  .seat small { font-size: 9px; }
  .receipt-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; --surface: white; --text: #172033; --line: #c6ccd8; --soft: #f4f6fa; --muted: #536179; }
  body { background: white; }
  .sidebar, .topbar, .demo-bar, .receipt-tools, .toast, .scrim { display: none !important; }
  .workspace { margin: 0; }
  .content { padding: 0; }
  .receipt { margin: 0; max-width: none; box-shadow: none; break-inside: avoid; }
}

/* Shared layout for the separate PHP pages. */
.nav { display: block; flex: 1; margin-top: 12px; }
.nav-group { color: #aeb2cd; font-size: 11px; font-weight: 700; margin: 15px 10px 4px; }
.nav-link { min-height: 35px; margin: 2px 0; padding: 7px 10px; font-size: 13px; }
.nav-link[aria-current] { border-left: 3px solid #a78bfa; padding-left: 8px; }
.brand img { background: #332061; padding: 5px; }
.logout-button { background: transparent; color: #e5ddfa; border-color: #ffffff28; }
.logout-button:hover { background: #ffffff13; }
.stat.violet { border-top: 3px solid var(--primary); }
.stat.blue { border-top: 3px solid var(--blue); }
.stat.green { border-top: 3px solid var(--green); }
.stat.amber { border-top: 3px solid var(--amber); }
.workspace { min-height: 100vh; }
.topbar-left > strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-left > a { white-space: nowrap; }
.quick-search input { padding-left: 10px; }
.filters .search-field input { padding-left: 10px; }
.filters > form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.feedback { background: var(--green-soft); color: var(--green); border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; margin-bottom: 15px; }
.feedback.error { color: var(--red); background: var(--red-soft); }
.field-readonly { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.field-readonly strong { padding: 7px 10px; min-height: 38px; background: var(--soft); color: var(--text); border: 1px solid var(--line); border-radius: 7px; }
.scroll-summary { width: 100%; max-width: 840px; }
.receipt-head img { border-radius: 7px; }
.receipt .feedback { margin: 12px 0 0; }
.profile-section { margin-top: 14px; }
.filters > .search-field { min-width: 200px; }
.message-actions { margin-top: 12px; }
.activity-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.stamp { white-space: nowrap; }
.assigned-list { margin: 0; padding: 0; list-style: none; }
.assigned-list li + li { margin-top: 4px; }
.actions--left { justify-content: flex-start; }
@media (max-width: 530px) {
  .topbar-left > a, .topbar-left > .muted { display: none; }
  .topbar-left > strong { font-size: 12px; }
  .filters > .search-field { min-width: 0; }
}
@media print {
  .feedback, .print-hide, .shell .topbar, .shell .sidebar { display: none !important; }
  .content { max-width: none; }
}
@media print {
  .receipt .feedback { display: block !important; }
}
