:root {
  --green: #003311;
  --green-dark: #00240b;
  --gold: #c9a227;
  --ink: #172019;
  --muted: #5f6b63;
  --line: #d9ded9;
  --paper: #fbfbf8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
}

h1,
h2,
.card-title,
.hub-card strong,
.resource-card strong,
.info-panel strong,
.self-help-summary strong,
.support-band strong {
  font-family: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: 0;
}

.site-header {
  background: linear-gradient(180deg, #003311 0%, #00260c 100%);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand-suite {
  display: grid;
  gap: 6px;
  justify-items: start;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 50px;
  width: auto;
  max-width: min(420px, 62vw);
}

.portal-mark {
  display: grid;
  gap: 2px;
  color: #fff;
}

.portal-mark span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-mark strong {
  color: #fff;
  font-family: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1;
}

.top-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.top-nav a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover {
  color: #f3d77b;
}

.nav-group {
  position: relative;
}

.nav-group > button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-group > button:hover,
.nav-group:focus-within > button,
.nav-group:hover > button {
  color: #f3d77b;
}

.self-service-menu > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.self-service-menu > button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transform: translateY(1px);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  display: none;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: #050806;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.self-service-menu .nav-submenu {
  right: auto;
  left: 0;
  min-width: 230px;
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
  display: grid;
  gap: 4px;
}

.nav-submenu a {
  display: block;
  padding: 9px 10px;
  border-radius: 4px;
  color: #fff;
  white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a:focus {
  background: rgba(7, 63, 32, 0.82);
  color: #f3d77b;
}

.admin-nav {
  gap: 8px;
  justify-content: flex-end;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(7, 63, 32, 0.88);
  color: var(--white);
  font-size: 0.8rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.admin-nav a.secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.admin-nav a:hover {
  border-color: rgba(199, 164, 74, 0.85);
  background: var(--green);
  color: var(--white);
}

.admin-nav a.secondary:hover {
  border-color: rgba(199, 164, 74, 0.85);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 24px 56px;
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 32px;
  align-items: start;
}

.request-panel {
  padding-top: 12px;
}

.helpdesk-hero {
  padding: 4px 0 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.helpdesk-hero h1 {
  max-width: 840px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  white-space: normal;
}

.helpdesk-hero .lead {
  max-width: 760px;
  margin-top: 14px;
}

.helpdesk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.hub-card {
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(7, 63, 32, 0.06);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 65, 31, 0.38);
  background: var(--white);
  box-shadow: 0 18px 38px rgba(7, 63, 32, 0.12);
}

.hub-card.accent {
  border-top-color: var(--gold);
}

.hub-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-card strong {
  color: #07130d;
  font-size: 1.55rem;
  line-height: 1.12;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.52;
}

.self-help-summary,
.password-layout {
  display: grid;
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.self-help-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 6px;
  background: var(--white);
}

.self-help-summary p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.56;
}

.password-layout {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.password-sync-panel p {
  max-width: 680px;
}

.compact-resources {
  margin-top: 24px;
}

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

.resource-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.resource-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resource-card strong {
  color: #07130d;
  font-size: 1.08rem;
  line-height: 1.22;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(7, 63, 32, 0.06);
}

.intro-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.intro-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.intro-callouts {
  display: grid;
  gap: 12px;
}

.intro-callouts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf7;
}

.intro-callouts span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro-callouts strong {
  display: block;
  color: #07130d;
  line-height: 1.35;
}

.docs-heading {
  margin-top: 28px;
}

.support-band,
.ticket-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 6px;
  background: var(--white);
}

.support-band p,
.ticket-panel p,
.program-section p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.ticket-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(340px, 1.3fr);
  align-items: start;
  border-left-color: var(--green);
}

.request-section {
  margin-top: 36px;
  scroll-margin-top: 120px;
}

.request-section .section-heading {
  max-width: 820px;
}

.request-section .lead {
  max-width: 820px;
}

.support-hours,
.self-help-banner {
  padding: 14px 16px;
  border: 1px solid rgba(6, 65, 31, 0.22);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: #f7faf7;
  color: var(--ink);
  line-height: 1.5;
}

.section-heading .support-hours {
  margin-top: 14px;
  max-width: 820px;
}

.page-header .support-hours {
  margin-top: 14px;
  max-width: 760px;
}

.self-help-banner {
  border-left-color: var(--green);
}

.request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.request-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  background: var(--white);
}

.request-card.accent {
  border-top-color: var(--gold);
}

.request-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.request-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.request-card form {
  display: grid;
  gap: 14px;
}

.request-card label {
  margin-bottom: 0;
}

.request-card button {
  justify-self: start;
  min-width: 190px;
}

.gold-button {
  background: var(--gold);
  color: #111;
}

.gold-button:hover {
  background: #b18d28;
  color: #111;
}

.password-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf7;
}

.password-note p {
  margin-top: 6px;
  color: var(--muted);
}

.ticket-inline-form {
  display: grid;
  gap: 14px;
}

.ticket-inline-form label {
  margin: 0;
}

.form-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.resource-section,
.program-section {
  margin-top: 36px;
}

.first-section {
  margin-top: 0;
}

.section-heading {
  margin-bottom: 16px;
}

.program-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 420px;
}

.program-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.program-strip .eyebrow {
  margin: 0;
}

.program-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f8f5;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.page-header.compact h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.page-header.compact .lead {
  margin-top: 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.form-card,
.credential-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(7, 63, 32, 0.08);
}

.form-card {
  padding: 24px;
}

.form-card.narrow {
  max-width: 430px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b9c2ba;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
}

select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9c2ba;
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

select {
  min-height: 46px;
}

textarea {
  resize: vertical;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

input[type="radio"] {
  width: 18px;
  min-height: 18px;
}

input:focus {
  outline: 3px solid rgba(199, 164, 74, 0.35);
  border-color: var(--green);
}

select:focus,
textarea:focus {
  outline: 3px solid rgba(199, 164, 74, 0.35);
  border-color: var(--green);
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
.button-link.secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green);
}

button.danger {
  background: #8f1d1d;
}

button.secondary:hover,
.button-link.secondary:hover {
  border-color: var(--green);
  background: #f4f8f5;
}

button:hover,
.button-link:hover {
  background: var(--green-dark);
}

button.danger:hover {
  background: #6f1414;
}

.support {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

a {
  color: var(--green);
  font-weight: 700;
}

.notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 5px solid var(--gold);
  background: #fff8df;
  color: #4b3a07;
}

.notice p {
  margin: 0;
}

.credential-card {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.credential-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.credential-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.1rem;
}

.credential-card .password {
  padding: 14px;
  border: 1px dashed var(--green);
  border-radius: 4px;
  background: #f4f8f5;
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.35rem;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta span {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  text-transform: none;
}

.instructions {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.instructions p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.58;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  text-decoration: none;
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.search-bar label {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f4f6f4;
  color: var(--green-dark);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  max-width: 860px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 6px;
  background: var(--white);
}

.edit-grid label {
  margin: 0;
}

.wide {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  justify-content: flex-start;
}

.button-row,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.stat-card span,
.result-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-card strong,
.result-summary strong {
  font-size: 1.8rem;
}

.admin-actions {
  margin: 0 0 28px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.split-grid h2 {
  font-size: 1.25rem;
}

.status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ee;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.status.sent,
.status.Update,
.status.Merge,
.status.Create,
.status.open,
.status.in_progress {
  background: #e5f4ea;
  color: #115c2d;
}

.status.no_match,
.status.rate_limited,
.status.Skipped,
.status.waiting_parent {
  background: #fff0df;
  color: #7a3f00;
}

.status.closed,
.status.resolved {
  background: #eceff3;
  color: #39424e;
}

.muted {
  color: var(--muted);
  font-size: 0.86rem;
}

.filter-row {
  margin-bottom: 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tabs a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: var(--green);
  text-decoration: none;
}

.tabs a.active {
  border-color: var(--line);
  background: var(--white);
  color: var(--green-dark);
}

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.ticket-thread {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.ticket-message,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.ticket-message {
  padding: 16px;
}

.ticket-message.internal {
  border-left: 5px solid var(--gold);
  background: #fff7e6;
  box-shadow: inset 0 0 0 1px rgba(199, 164, 74, 0.28);
}

.ticket-message p {
  margin: 10px 0 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.attachment-list a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font-size: 0.86rem;
  text-decoration: none;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.message-meta strong {
  color: var(--green-dark);
  text-transform: capitalize;
}

.ticket-message.internal .message-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.reply-card {
  max-width: none;
}

.side-panel {
  padding: 18px;
}

.side-panel label {
  margin-bottom: 14px;
}

.ticket-facts {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.ticket-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ticket-facts dd {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.upload-card {
  max-width: 680px;
  margin-bottom: 24px;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.small-check {
  margin: 0;
}

.mode-options {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mode-options legend {
  padding: 0 6px;
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.mode-options label {
  margin: 0;
  font-weight: 600;
}

.bulk-form {
  display: grid;
  gap: 12px;
}

.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.bulk-ticket-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.bulk-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.bulk-row label,
.bulk-ticket-panel label {
  margin-bottom: 0;
}

.select-actions {
  justify-content: flex-start;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.bottom-pagination {
  margin: 16px 0 0;
}

.page-current,
.page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--green-dark);
  font-weight: 700;
}

.page-current {
  border: 1px solid var(--green);
  border-radius: 4px;
  background: #f4f8f5;
}

.select-col {
  width: 72px;
}

.result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
}

.result-summary div {
  min-width: 130px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.account-table {
  margin-top: 24px;
}

.admin-meta-panel {
  max-width: 520px;
  margin-top: 22px;
}

.export-stats {
  margin-bottom: 26px;
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.export-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(7, 63, 32, 0.06);
}

.export-card:nth-child(even) {
  border-top-color: var(--gold);
}

.export-card h2 {
  margin-bottom: 0;
}

.export-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.export-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-columns span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f8f5;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.export-card .button-link {
  justify-self: start;
}

.resource-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.goguardian-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.video-panel {
  display: grid;
  gap: 16px;
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.info-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.info-panel h2 {
  margin-top: 4px;
}

.info-panel p {
  color: var(--muted);
  line-height: 1.56;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.resource-admin-list {
  display: grid;
  gap: 18px;
}

.resource-admin-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.resource-form {
  margin-bottom: 26px;
}

.resource-file-info {
  color: var(--muted);
  font-size: 0.9rem;
}

.delete-resource-form {
  display: flex;
  justify-content: flex-end;
}

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

.inline-form input {
  min-width: 180px;
}

@media (max-width: 780px) {
  .header-inner,
  .page-header,
  .helpdesk-hero,
  .support-band,
  .ticket-panel,
  .program-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .page {
    padding: 30px 18px 48px;
  }

  .top-nav {
    width: 100%;
  }

  .self-service-menu,
  .self-service-menu > button {
    width: 100%;
  }

  .self-service-menu > button {
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
  }

  .self-service-menu .nav-submenu {
    right: auto;
    left: 0;
    width: min(320px, calc(100vw - 36px));
  }

  .panel,
  .search-bar,
  .edit-grid,
  .stat-grid,
  .split-grid,
  .ticket-layout,
  .bulk-row,
  .goguardian-info-grid,
  .intro-panel,
  .form-two,
  .hub-grid,
  .self-help-summary,
  .password-layout,
  .request-grid,
  .export-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Match enrollment staff-portal polish (added 2026-06-24) ---- */
.stat-card strong {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.stat-card span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.top-nav a {
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color .12s, border-color .12s;
}
.top-nav a:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}
.portal-mark span { color: var(--gold); }
table thead th {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---- Ticket form + CSV pages polish (added 2026-06-24) ---- */
.self-help-banner {
  background: #f4f8f5;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  line-height: 1.6;
}
.ticket-form { display: grid; gap: 18px; }
.form-section-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--green);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.ticket-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}
.ticket-form label, .ticket-field-block {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}
.ticket-field-block { margin-bottom: 14px; }
.ticket-form input, .ticket-form select, .ticket-form textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
}
.field-hint { color: var(--muted); font-weight: 400; }
.ticket-actions { margin-top: 4px; }
.steps-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.step-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px;
}
.step-item p { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 800;
}
.export-feature {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--green); border-radius: 12px;
  padding: 22px 24px; margin-bottom: 24px;
}
.export-feature h2 { margin: 4px 0 6px; }
.export-feature-text { flex: 1; min-width: 260px; }
.section-heading { margin: 8px 0 2px; font-size: 1.1rem; }
.section-sub { margin: 0 0 16px; }
.column-reference { margin-top: 22px; }
.column-reference table td:first-child { font-weight: 700; white-space: nowrap; }

/* ---- Ticket thread color-coding + priority + saved replies (2026-06-24) ---- */
.ticket-message { border-left: 4px solid var(--line); }
.ticket-message.outbound { border-left-color: #15803d; background: #f3faf5; }
.ticket-message.inbound { border-left-color: #1d4ed8; background: #f2f6ff; }
.ticket-message.internal { border-left-color: var(--gold); background: #fffaf0; }
.priority { display:inline-block; padding:2px 10px; border-radius:999px; font-size:0.72rem; font-weight:800; text-transform:uppercase; letter-spacing:0.04em; background:#eef2ee; color:#41514a; }
.priority.low { background:#eef2ee; color:#5f6b63; }
.priority.normal { background:#e2e8f0; color:#334155; }
.priority.high { background:#fef3c7; color:#92400e; }
.priority.urgent { background:#fee2e2; color:#991b1b; }
.ticket-search { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.ticket-search input[type=search] { flex:1; min-width:220px; padding:9px 12px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.reply-list { display:flex; flex-direction:column; gap:12px; }
.reply-item { background:var(--white); border:1px solid var(--line); border-radius:10px; padding:16px 18px; }
.reply-item-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.reply-item-head strong { font-size:0.98rem; }
.reply-item-body { color:var(--muted); font-size:0.86rem; white-space:pre-wrap; margin:8px 0; max-height:90px; overflow:hidden; }
.reply-item-actions { display:flex; gap:8px; align-items:flex-start; flex-wrap:wrap; }
.reply-edit summary { display:inline-flex; cursor:pointer; list-style:none; }
.reply-edit summary::-webkit-details-marker { display:none; }
.reply-edit[open] { display:block; width:100%; margin-top:10px; }

/* ---- Ticket aging + quick views (2026-06-24) ---- */
.flag-pill { display:inline-block; padding:1px 8px; border-radius:999px; font-size:0.66rem; font-weight:800; text-transform:uppercase; letter-spacing:0.04em; vertical-align:middle; }
.flag-pill.awaiting { background:#dbeafe; color:#1d4ed8; }
.flag-pill.unassigned { background:#fef3c7; color:#92400e; }
.stat-card.attention { border-top-color: var(--gold); }
.attention-panel { margin: 8px 0 24px; }
.attention-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.quick-views { align-items:center; gap:8px; margin:-4px 0 16px; flex-wrap:wrap; }
.quick-views-label { font-size:0.8rem; font-weight:700; color:var(--muted); margin-right:4px; }
.quick-views .button-link { font-size:0.82rem; min-height:36px; }

/* ---- Nav buttons, dropdown fix, footer, home, ticket form (2026-06-24 e) ---- */
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Center the public nav and make links pop as pill buttons */
.top-nav:not(.admin-nav) { flex: 1; justify-content: center; gap: 10px; }
.top-nav:not(.admin-nav) > a,
.top-nav:not(.admin-nav) .nav-group > button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.top-nav:not(.admin-nav) > a:hover,
.top-nav:not(.admin-nav) > a:focus-visible,
.top-nav:not(.admin-nav) .nav-group:hover > button,
.top-nav:not(.admin-nav) .nav-group:focus-within > button {
  background: var(--gold);
  border-color: var(--gold);
  color: #00240b;
}

/* Dropdown: close the hover gap so it stays open without clicking */
.nav-submenu { top: 100%; margin-top: 4px; }
.nav-group::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 14px;
}
.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu { display: grid; gap: 4px; }
.nav-submenu a { color: #fff; }
.nav-submenu a:hover, .nav-submenu a:focus { background: var(--green); color: #f3d77b; }

/* Site footer (bottom border bar) */
.site-footer {
  background: linear-gradient(0deg, #00260c 0%, #003311 100%);
  border-top: 3px solid var(--gold);
  color: rgba(255,255,255,.82);
  margin-top: 48px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

/* Full-bleed graphic home page (sits flush under the nav) */
.portal-home {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -34px;
  line-height: 0;
}
.portal-home > img { display: block; width: 100%; height: auto; }
.portal-home .hot {
  position: absolute;
  display: block;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
}
.portal-home .hot:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Ticket form: softer, centered, less blocky */
.ticket-page { max-width: 760px; margin: 0 auto; }
.ticket-intro { text-align: center; margin-bottom: 18px; }
.ticket-intro h1 { margin: 4px 0 8px; }
.ticket-intro .support-hours { margin: 8px auto 0; max-width: 620px; }
.ticket-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(0,0,0,.07);
  display: grid;
  gap: 16px;
}
.ticket-card label, .ticket-card .ticket-field-block {
  display: grid; gap: 6px; font-weight: 700; font-size: 0.9rem;
}
.ticket-card input, .ticket-card select, .ticket-card textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd8d1;
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  background: #fcfdfc;
}
.ticket-card input:focus, .ticket-card select:focus, .ticket-card textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,51,17,.10);
  background: #fff;
}
.ticket-card textarea { min-height: 120px; resize: vertical; }
.ticket-submit { text-align: center; margin-top: 6px; }
.ticket-submit button {
  min-width: 240px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(0,51,17,.18);
}

/* ---- Program page (Raz Kids style) 2026-06-24 f ---- */
.program-page { max-width: 1120px; margin: 0 auto; }
.program-head { margin-bottom: 22px; }
.program-title { display:flex; align-items:center; gap:16px; margin:6px 0 12px; flex-wrap:wrap; }
.program-logo { height:46px; width:auto; display:block; }
.program-title h1 { margin:0; font-size:clamp(1.9rem,4vw,2.6rem); }
.program-head .lead { max-width:840px; color:var(--muted); }

.program-grid { display:grid; grid-template-columns:1.1fr 1fr 1fr; gap:18px; align-items:start; }
.program-card {
  background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:22px 24px; box-shadow:0 10px 28px rgba(0,0,0,.05);
}
.card-head { display:flex; align-items:center; gap:11px; margin-bottom:14px; }
.card-head h2, .card-head h3 { margin:0; font-size:1.08rem; color:var(--ink); font-family:'Poppins','Inter','Segoe UI',sans-serif; }
.card-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  background:#e7f1ea; color:var(--green); flex-shrink:0;
}
.program-card p { color:#48564e; line-height:1.55; margin:0 0 10px; font-size:.92rem; }
.program-card p:last-child { margin-bottom:0; }

.program-form label { display:grid; gap:6px; font-weight:700; font-size:.9rem; margin-bottom:14px; }
.program-form input {
  width:100%; padding:11px 13px; border:1px solid #cfd8d1; border-radius:10px;
  font:inherit; font-weight:400; background:#fcfdfc;
}
.program-form input:focus { outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(0,51,17,.10); background:#fff; }
.program-submit {
  width:100%; min-height:48px; border:0; border-radius:10px; cursor:pointer;
  background:var(--green); color:#fff; font:inherit; font-size:.95rem; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 8px 18px rgba(0,51,17,.16);
}
.program-submit:hover { background:var(--green-dark); }
.program-form .support { font-size:.78rem; color:var(--muted); margin-top:12px; }

.note-list { margin:0; padding-left:18px; color:#48564e; font-size:.92rem; line-height:1.65; }
.note-list li { margin-bottom:6px; }

.program-help-bar {
  display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
  margin-top:18px; padding:18px 24px; background:#fff; border:1px solid var(--line);
  border-radius:16px; box-shadow:0 8px 22px rgba(0,0,0,.05);
}
.program-help-text { display:flex; align-items:center; gap:12px; }
.program-help-text strong { display:block; font-size:1.05rem; }
.program-help-text > div > span { color:var(--muted); font-size:.9rem; }
.program-help-actions { display:flex; gap:10px; flex-wrap:wrap; }

@media (max-width: 880px){ .program-grid { grid-template-columns:1fr; } }

/* ---- Program hero layout (decorative art) 2026-06-24 g ---- */
.program-hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}
.program-hero-layout .program-head { margin-bottom: 0; }
.program-logo-wide { height: 54px; }
.program-hero-art {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
  line-height: 0;
}
.program-hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 880px) {
  .program-hero-layout { grid-template-columns: 1fr; }
  .program-hero-art { order: -1; }
}

/* ---- Unified button hover (gold pop like home page; text stays visible) ---- */
.button-link, button:not([type="button"]), .program-submit {
  transition: background .12s ease, color .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.button-link:hover, .button-link:focus-visible,
button:not([type="button"]):hover, button:not([type="button"]):focus-visible,
.program-submit:hover, .program-submit:focus-visible {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #00240b !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

/* ---- Google Password Recovery page pieces 2026-06-24 h ---- */
.google-g { height: 40px; width: auto; display: block; }
.sync-info-banner {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.sync-info-banner strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 1rem; }
.sync-info-banner p { margin: 0; color: #48564e; font-size: .9rem; line-height: 1.55; }

.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px;
  padding: 10px 0; border-bottom: 1px solid #eef1ee;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  counter-increment: step; content: counter(step);
  grid-row: 1 / 3; align-self: start;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.step-list li strong { font-size: .92rem; color: var(--ink); }
.step-list li span { color: #6b7c72; font-size: .82rem; }

.doc-links { display: flex; flex-direction: column; gap: 8px; }
.doc-link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem;
  transition: border-color .12s ease, background .12s ease;
}
.doc-link-row:hover { border-color: var(--green); background: #f7faf8; }
.doc-arrow { color: var(--green); font-weight: 800; font-size: 1.05rem; }

/* ---- Home portal hotspot hover glow 2026-06-24 i ---- */
.portal-home .hot { transition: background .15s ease, box-shadow .15s ease; }
.portal-home .hot:hover {
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.7), 0 12px 28px rgba(0,0,0,0.22);
}

.program-logo-icon { height: 46px; width: auto; display: block; }

/* ---- Modern admin dashboard refresh (2026-06-26) ---- */
.dash-welcome { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.dash-welcome h1 { margin:2px 0 4px; }

.kpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin-bottom:18px; }
.kpi-card {
  display:flex; align-items:center; gap:14px; padding:18px;
  background:#fff; border:1px solid var(--line); border-radius:14px;
  text-decoration:none; color:inherit; box-shadow:0 6px 18px rgba(0,0,0,.04);
  transition:box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.kpi-card:hover { box-shadow:0 12px 28px rgba(0,0,0,.10); transform:translateY(-2px); }
.kpi-icon { width:46px; height:46px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.kpi-icon-green { background:#e7f1ea; color:var(--green); }
.kpi-icon-gold  { background:#faf0d4; color:#9a7b13; }
.kpi-icon-blue  { background:#e6effd; color:#1d4ed8; }
.kpi-icon-red   { background:#fdeaea; color:#a3271b; }
.kpi-icon-amber { background:#fdf1e0; color:#92400e; }
.kpi-meta { display:flex; flex-direction:column; }
.kpi-meta strong { font-size:1.7rem; font-weight:800; color:var(--ink); line-height:1; letter-spacing:-.01em; }
.kpi-meta span { font-size:.8rem; color:var(--muted); margin-top:4px; }
.kpi-attention { border-color:#e7d28a; }

.quick-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin-bottom:24px; }
.quick-tile {
  display:flex; align-items:center; gap:9px; padding:13px 15px;
  background:#fff; border:1px solid var(--line); border-radius:12px;
  text-decoration:none; color:var(--ink); font-weight:600; font-size:.88rem;
  transition:border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.quick-tile:hover { border-color:var(--green); background:#f7faf8; box-shadow:0 4px 12px rgba(0,0,0,.05); }
.quick-tile svg { color:var(--green); flex-shrink:0; }

.dash-cols { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
.dash-card { background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:0 6px 18px rgba(0,0,0,.04); }
.dash-card-head { display:flex; align-items:center; justify-content:space-between; padding:15px 18px; border-bottom:1px solid #eef1ee; }
.dash-card-head h2 { margin:0; font-size:1.02rem; }
.dash-link { font-size:.8rem; font-weight:700; color:var(--green); text-decoration:none; }
.dash-link:hover { text-decoration:underline; }
.dash-card .table-wrap { border:0; margin:0; box-shadow:none; }
.dash-card table { font-size:.85rem; }
@media (max-width:860px){ .dash-cols { grid-template-columns:1fr; } }

/* ---- Modern admin refresh: shared components (2026-06-26 b) ---- */
.table-wrap { border:1px solid var(--line); border-radius:14px; box-shadow:0 6px 18px rgba(0,0,0,.04); background:#fff; }
table { font-size:.88rem; }
th, td { padding:12px 16px; }
th { background:#f6f8f6; color:#41514a; font-size:.7rem; font-weight:800; letter-spacing:.06em; }
tbody tr { transition:background .1s ease; }
tbody tr:hover td { background:#f8faf8; }
.page-header { margin-bottom:22px; }
.page-header h1 { letter-spacing:-.01em; }
.bulk-ticket-panel { border-radius:14px; box-shadow:0 6px 18px rgba(0,0,0,.04); }
.edit-grid, .form-card { border-radius:14px; box-shadow:0 6px 18px rgba(0,0,0,.05); }
.filter-row, .quick-views { gap:8px; }
.filter-row .button-link, .quick-views .button-link { border-radius:999px; min-height:36px; font-size:.82rem; }
/* keep tables flat inside dashboard cards */
.dash-card .table-wrap { border:0; border-radius:0; box-shadow:none; }

/* ---- Ticket detail modern polish (2026-06-26 c) ---- */
.ticket-message, .side-panel { border-radius:14px; box-shadow:0 6px 18px rgba(0,0,0,.04); }
.ticket-message { padding:16px 18px; }
.message-meta { align-items:center; }
.message-meta strong {
  display:inline-flex; align-items:center; min-height:24px; padding:1px 10px;
  border-radius:999px; font-size:.72rem; font-weight:800; text-transform:uppercase;
  letter-spacing:.04em; color:#41514a; background:#eef2ee;
}
.ticket-message.outbound .message-meta strong { background:#dcfce7; color:#15803d; }
.ticket-message.inbound  .message-meta strong { background:#dbeafe; color:#1d4ed8; }
.ticket-message.internal .message-meta strong { background:#fef3c7; color:#92400e; }
.side-panel { padding:0; overflow:hidden; }
.side-panel > form { padding:18px 18px 4px; }
.side-panel .ticket-facts { margin:0; padding:14px 18px 18px; border-top:1px solid #eef1ee; background:#fafcfa; }
.attachment-list a { border-radius:8px; }

/* ---- Admin left sidebar layout (2026-06-26 d) ---- */
body.admin-portal { background:#eef1ee; }
.admin-sidebar { position:fixed; top:0; left:0; bottom:0; width:230px; z-index:60; background:linear-gradient(170deg,#00240b 0%,#003311 100%); display:flex; flex-direction:column; overflow-y:auto; }
.admin-brand { display:flex; align-items:center; gap:10px; padding:18px 16px 14px; border-bottom:1px solid rgba(255,255,255,.1); text-decoration:none; }
.admin-brand img { width:38px; height:38px; border-radius:50%; flex-shrink:0; background:#fff; object-fit:cover; }
.admin-brand span { display:flex; flex-direction:column; line-height:1.25; }
.admin-brand small { color:var(--gold); font-size:.6rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.admin-brand strong { color:#fff; font-size:.95rem; }
.admin-nav-v { display:flex; flex-direction:column; flex:1; padding:8px 0 14px; }
.admin-nav-section { padding:14px 18px 4px; color:rgba(255,255,255,.35); font-size:.6rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.admin-nav-v a { display:flex; align-items:center; gap:11px; padding:9px 18px; color:rgba(255,255,255,.78); font-size:.86rem; font-weight:600; text-decoration:none; border-left:3px solid transparent; transition:background .1s ease, color .1s ease, border-color .1s ease; }
.admin-nav-v a:hover { background:rgba(255,255,255,.08); color:#fff; border-left-color:var(--gold); }
.admin-nav-v a svg { flex-shrink:0; opacity:.85; }
.admin-signout { margin-top:auto; padding:10px 0 0; border-top:1px solid rgba(255,255,255,.1); }
.admin-signout button { display:flex; align-items:center; gap:11px; width:100%; padding:11px 18px; background:transparent; border:0; border-left:3px solid transparent; color:rgba(255,255,255,.6); font:inherit; font-size:.86rem; font-weight:600; cursor:pointer; text-align:left; min-height:auto; border-radius:0; box-shadow:none; }
.admin-signout button:hover { background:rgba(255,255,255,.07) !important; color:#fff !important; transform:none !important; box-shadow:none !important; }
.admin-nav-toggle { display:none; align-items:center; gap:8px; background:rgba(255,255,255,.14); border:0; color:#fff; font:inherit; font-weight:700; font-size:.86rem; padding:8px 14px; border-radius:9px; cursor:pointer; }
.admin-nav-toggle:hover { background:rgba(255,255,255,.24); }
.page.admin-main { max-width:none; margin:0 0 0 230px; padding:28px 34px 56px; }
@media (max-width:820px){
  /* collapsible hamburger nav so it never dumps the whole menu at the top */
  .admin-sidebar { position:sticky; top:0; width:100%; flex-direction:row; flex-wrap:wrap; align-items:center; padding:6px 12px; overflow:visible; box-shadow:0 2px 10px rgba(0,0,0,.2); }
  .admin-brand { border-bottom:0; padding:6px 4px; flex:1 1 auto; }
  .admin-brand img { width:32px; height:32px; }
  .admin-nav-toggle { display:inline-flex; margin-left:auto; }
  .admin-nav-v { display:none; width:100%; flex-direction:column; flex-basis:100%; padding:6px 0 10px; max-height:74vh; overflow-y:auto; }
  .admin-sidebar.nav-open .admin-nav-v { display:flex; }
  .admin-nav-section { display:block; padding:12px 16px 3px; }
  .admin-nav-v a { padding:11px 16px; border-left:3px solid transparent; border-radius:0; font-size:.92rem; }
  .admin-signout { margin-top:6px; padding:6px 0 0; border-top:1px solid rgba(255,255,255,.1); }
  .admin-signout button { width:100%; padding:11px 16px; }
  .page.admin-main { margin-left:0; padding:16px 15px 40px; }
}

/* ---- Task board + ticket nav (2026-06-26 e) ---- */
.task-tools { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-start; margin-bottom:14px; }
.task-add { margin-bottom:0; }
.task-add > summary { display:inline-flex; cursor:pointer; list-style:none; }
.task-add > summary::-webkit-details-marker { display:none; }
.task-add[open] > summary { margin-bottom:12px; }
.task-add[open] { flex-basis:100%; }
.purchase-button { background:#f9fbf5; border-color:#d9e1c2; color:#5d4c00; }
.task-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin-bottom:12px; }
.task-filter { margin:14px 0 18px; }
.task-board { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; align-items:start; }
.task-col { background:#f1f4f1; border:1px solid var(--line); border-radius:14px; padding:6px; }
.task-col-head { display:flex; align-items:center; justify-content:space-between; padding:10px 12px 8px; }
.task-col-head h2 { margin:0; font-size:.95rem; }
.task-count { background:#fff; border:1px solid var(--line); border-radius:999px; padding:1px 9px; font-size:.75rem; font-weight:800; color:var(--muted); }
.task-col-body { display:flex; flex-direction:column; gap:10px; padding:4px; min-height:40px; }
.task-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:13px 14px; box-shadow:0 2px 6px rgba(0,0,0,.05); }
.task-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.task-cat { font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; padding:2px 8px; border-radius:999px; background:#e3ebe5; color:#2d5c35; }
.task-cat-chromebooks { background:#e6effd; color:#1d4ed8; }
.task-cat-rosters { background:#ede9fe; color:#6d28d9; }
.task-cat-events { background:#fef3c7; color:#92400e; }
.task-cat-summer-work { background:#fde7ef; color:#9d174d; }
.task-cat-classroom-setup { background:#dcfce7; color:#15803d; }
.task-due { font-size:.7rem; color:#9a3412; font-weight:700; white-space:nowrap; }
.task-title { display:block; font-size:.92rem; color:#111; }
.task-desc { margin:5px 0 0; font-size:.8rem; color:#5f6d66; white-space:pre-wrap; }
.task-meta { margin:8px 0 0; }
.task-assignee { font-size:.74rem; font-weight:700; color:#2d5c35; background:#eef5f0; padding:2px 8px; border-radius:999px; }
.task-assignee.task-unassigned { color:#8a9e91; background:#f1f4f1; }
.purchase-status { margin:10px 0 0; display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding:8px 9px; border:1px solid #dfe8df; border-radius:10px; background:#f7faf7; font-size:.72rem; color:#5f6d66; }
.purchase-status a { color:var(--green); font-weight:800; text-decoration:none; }
.purchase-status span { font-weight:800; color:#2d5c35; }
.purchase-status .purchase-requester { color:#5f6d66; background:#eef3ef; padding:2px 6px; border-radius:999px; }
.purchase-status form { margin:0; }
.purchase-status button { min-height:auto; padding:5px 9px; border-radius:7px; font-size:.72rem; }
.task-actions { display:flex; align-items:center; gap:8px; margin-top:10px; flex-wrap:wrap; }
.task-move select { padding:5px 8px; border:1px solid var(--line); border-radius:7px; font:inherit; font-size:.78rem; }
.task-actions .danger { padding:5px 10px; min-height:auto; font-size:.76rem; border-radius:7px; }
.task-edit > summary,
.task-purchase > summary { display:inline-flex; cursor:pointer; list-style:none; font-size:.78rem; font-weight:700; color:var(--green); padding:5px 10px; border:1px solid var(--line); border-radius:7px; }
.task-purchase > summary { background:#f9fbf5; border-color:#d9e1c2; color:#5d4c00; }
.task-edit > summary::-webkit-details-marker,
.task-purchase > summary::-webkit-details-marker { display:none; }
.task-edit[open],
.task-purchase[open] { display:block; width:100%; margin-top:8px; }
.purchase-form { padding:12px; }
.purchase-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin-bottom:10px; }
.purchase-form input,
.purchase-form select { width:100%; }
.purchase-check { margin:2px 0 10px; font-size:.8rem; }
.task-empty { color:#9aa8a0; font-size:.82rem; font-style:italic; padding:10px 12px; }
.ticket-nav { display:flex; gap:8px; flex-wrap:wrap; }
.button-link.is-disabled { opacity:.4; pointer-events:none; }
@media (max-width:900px){ .task-board { grid-template-columns:1fr; } }


/* ============================================================
   IT Self-Service home page redesign (2026-06-29)
   ============================================================ */
.page:has(> .ithome) { max-width: none; padding: 0; }

.ithome {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: #2b3a31;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6f0 100%);
}
.ithome-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ithome-blob { position: absolute; border-radius: 50%; }
.ithome-blob-1 { top: -140px; left: -110px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(0,51,17,.055), transparent 70%); }
.ithome-blob-2 { bottom: -180px; right: -130px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(0,51,17,.045), transparent 70%); }

.ithome-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 46px);
}

/* ---- Hero ---- */
.ithome-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 40px);
  padding-top: clamp(8px, 2vw, 18px);
}
.ithome-band {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; color: #a9c6ad; opacity: .6;
}
.ithome-hero-copy { position: relative; z-index: 1; flex: 1 1 380px; min-width: 280px; padding-top: clamp(40px, 7vw, 86px); }
.ithome-hero-copy h1 {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #003311;
  margin: 0 0 clamp(16px, 2vw, 22px);
  max-width: 14ch;
}
.ithome-hero-copy > p {
  font-size: clamp(17px, 1.95vw, 23px);
  line-height: 1.45;
  font-weight: 400;
  color: #3c4f44;
  margin: 0 0 clamp(24px, 3vw, 34px);
  max-width: 34ch;
}
.ithome-chips { display: flex; flex-wrap: nowrap; gap: clamp(12px, 1.6vw, 22px); }
.ithome-chip { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 11px; }
.ithome-chip-ic {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  border: 2.5px solid #003311; display: flex; align-items: center; justify-content: center; color: #003311;
}
.ithome-chip-txt { min-width: 0; }
.ithome-chip-txt strong { display: block; font-weight: 700; font-size: 16px; color: #003311; line-height: 1.1; }
.ithome-chip-txt span { display: block; font-size: 13px; color: #5b6b61; line-height: 1.25; margin-top: 3px; }
.ithome-hero-art { position: relative; z-index: 1; flex: 1.45 1 440px; min-width: 280px; display: flex; align-items: center; justify-content: center; }
.ithome-hero-art img { display: block; width: 100%; max-width: 780px; height: auto; border-radius: 22px; border: 1.5px solid rgba(0,51,17,.28); box-shadow: 0 22px 44px -22px rgba(0,51,17,.5); }

/* ---- Logo tiles ---- */
.ithome-tile {
  flex: none; width: 48px; height: 48px; border-radius: 13px;
  background: #fff; border: 1px solid #e7ece8;
  display: flex; align-items: center; justify-content: center; padding: 7px;
}
.ithome-tile img { width: 100%; height: 100%; object-fit: contain; }
.ithome-tile.sm { width: 46px; height: 46px; border-radius: 12px; }
.ithome-tile.lg { width: 54px; height: 54px; border-radius: 14px; padding: 8px; }

/* ---- Sync callout ---- */
.ithome-sync {
  border: 1.5px solid rgba(0,51,17,.32); border-radius: 22px; background: #fff;
  padding: clamp(22px, 3vw, 34px);
  display: flex; flex-wrap: wrap; gap: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 14px 34px -26px rgba(0,51,17,.4);
}
.ithome-sync-main { flex: 1 1 460px; display: flex; gap: 18px; align-items: flex-start; }
.ithome-sync-ic { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #003311; color: #fff; display: flex; align-items: center; justify-content: center; }
.ithome-sync-main h2 { font-weight: 600; font-size: clamp(19px, 2vw, 23px); color: #003311; margin: 0 0 8px; line-height: 1.15; }
.ithome-sync-main p { margin: 0; font-size: clamp(15px, 1.5vw, 16.5px); line-height: 1.5; color: #3c4f44; }
.ithome-sync-main strong { color: #003311; }
.ithome-sync-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.ithome-sync-row { display: flex; gap: 14px; align-items: center; }
.ithome-sync-row p { margin: 0; font-size: clamp(15px, 1.5vw, 16.5px); line-height: 1.4; color: #3c4f44; }
.ithome-sync-row strong { color: #003311; }

/* ---- Quick links ---- */
.ithome-links { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.4vw, 26px); align-items: stretch; }

.ithome-featured {
  flex: 1 1 300px; max-width: 400px;
  background: linear-gradient(160deg, #f3f8f4, #e8f1ea);
  border: 1.5px solid #d4e4d9; border-radius: 22px;
  padding: clamp(22px, 2.6vw, 30px);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 14px 34px -26px rgba(0,51,17,.42);
  text-decoration: none; color: #003311;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ithome-featured:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(0,51,17,.5); }
.ithome-featured-head { display: flex; align-items: center; gap: 14px; }
.ithome-featured-head h3 { font-weight: 600; font-size: clamp(19px, 1.8vw, 24px); color: #003311; margin: 0; line-height: 1.1; }
.ithome-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ithome-checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: #33483d; line-height: 1.35; }
.ithome-checklist svg { flex: none; margin-top: 2px; width: 19px; height: 19px; }
.ithome-featured-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; color: #003311; }
.ithome-featured-cta > span:first-child { font-weight: 600; font-size: 16px; line-height: 1.2; }
.ithome-cta-arrow { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #003311; color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .18s ease; }
.ithome-featured:hover .ithome-cta-arrow { transform: translateX(3px); }

.ithome-grid {
  flex: 3 1 540px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 22px);
}
.ithome-card {
  background: #fff; border: 2px solid rgba(0,51,17,.18); border-radius: 18px;
  padding: clamp(17px, 1.9vw, 21px);
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  box-shadow: 0 7px 20px -14px rgba(0,51,17,.5);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.ithome-card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -20px rgba(0,51,17,.5); border-color: #003311; background: #f6faf6; }
.ithome-card-txt { flex: 1; min-width: 0; }
.ithome-card-txt strong { display: block; font-weight: 700; font-size: 17px; color: #003311; line-height: 1.15; }
.ithome-card-txt span { display: block; font-size: 13.5px; color: #5b6b61; line-height: 1.3; margin-top: 3px; }
.ithome-card-arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #c9d6cc; background: #fff; color: #003311; display: flex; align-items: center; justify-content: center; transition: background .18s ease, border-color .18s ease; }
.ithome-card:hover .ithome-card-arrow { background: #003311; border-color: #003311; color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .ithome-band { display: none; }
  .ithome-hero-copy { padding-top: 8px; }
  .ithome-chips { flex-wrap: wrap; }
  .ithome-chip { flex: 1 1 160px; }
  .ithome-hero-art { justify-content: flex-start; }
  .ithome-featured { max-width: none; }
}
@media (max-width: 460px) {
  .ithome-chip { flex: 1 1 100%; }
}

/* ---- Public page harmonization with home design (2026-07-06) ---- */
.page.page-full { max-width: none; padding: 0; }
.program-title h1, .program-head h1, .ticket-intro h1,
.page-header h1, .helpdesk-hero h1, .docs-intro h2 { color: var(--green); }
.card-head h2, .card-head h3 { color: var(--green); font-weight: 600; }
.program-card {
  border: 2px solid rgba(0,51,17,.18);
  border-radius: 18px;
  box-shadow: 0 7px 20px -14px rgba(0,51,17,.5);
}
.sync-info-banner {
  border: 1.5px solid rgba(0,51,17,.32);
  border-left: 1.5px solid rgba(0,51,17,.32);
  border-radius: 18px;
  box-shadow: 0 14px 34px -26px rgba(0,51,17,.4);
}
.ticket-card, .info-panel, .hub-card, .resource-card {
  border-radius: 18px;
}

/* ---- Completeness check + ready chips (2026-07-06 b) ---- */
.ready-chip { display:inline-block; padding:3px 10px; border-radius:999px; font-size:.72rem; font-weight:800; white-space:nowrap; }
.chip-ready { background:#dcfce7; color:#15803d; }
.chip-partial { background:#fef3c7; color:#92400e; }
.chip-missing { background:#fee2e2; color:#b91c1c; }
.completeness-filter { margin:0 0 14px; display:flex; gap:8px; flex-wrap:wrap; }
.completeness-card { background:#fff; border:2px solid rgba(0,51,17,.18); border-radius:18px; padding:18px 20px; margin-bottom:22px; box-shadow:0 7px 20px -14px rgba(0,51,17,.5); }
.completeness-card.not-ready { border-color:#fca5a5; }
.completeness-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.completeness-note { font-size:.82rem; color:var(--muted); }
.completeness-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:8px 18px; }
.completeness-list li { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:9px; align-items:baseline; font-size:.88rem; font-weight:700; }
.completeness-list li small { grid-column:2; color:var(--muted); font-weight:400; font-size:.75rem; }
.completeness-list li .check-ic { font-weight:800; grid-row:1 / span 2; }
.completeness-list li.ok .check-ic { color:#15803d; }
.completeness-list li.miss .check-ic { color:#b91c1c; }
.completeness-list li.miss > span:not(.check-ic) { color:#7f1d1d; }
.cell-sub { display:block; font-size:.78rem; color:var(--muted); }

/* ---- Documentation page + hours notice (2026-07-06 c) ---- */
.docs-hero { display:flex; flex-wrap:wrap; gap:clamp(20px,3vw,36px); align-items:center; margin-bottom:28px; }
.docs-hero-copy { flex:1 1 340px; min-width:280px; }
.docs-hero-art { flex:1 1 300px; min-width:260px; max-width:470px; }
.docs-hero-art img { display:block; width:100%; height:auto; filter:drop-shadow(0 18px 24px rgba(0,51,17,.18)); }
.docs-hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin:16px 0; }
.hours-notice { display:flex; gap:10px; align-items:flex-start; background:#fff; border:1.5px solid rgba(0,51,17,.25); border-radius:14px; padding:12px 16px; font-size:.88rem; line-height:1.5; color:#3c4f44; box-shadow:0 7px 20px -16px rgba(0,51,17,.5); margin:0; }
.hours-notice svg { flex:none; color:var(--green); margin-top:2px; }
.hours-notice strong { color:var(--green); }
.resource-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:clamp(14px,2vw,20px); margin-bottom:30px; }
.resource-card {
  border:2px solid rgba(0,51,17,.18); border-top:2px solid rgba(0,51,17,.18); border-radius:18px;
  padding:20px; background:#fff; box-shadow:0 7px 20px -14px rgba(0,51,17,.5);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.resource-card:hover { transform:translateY(-4px); border-color:var(--green); background:#f6faf6; box-shadow:0 20px 36px -20px rgba(0,51,17,.5); }
.resource-card .resource-label { display:inline-block; justify-self:start; background:#e3ebe5; color:#2d5c35; font-size:.66rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; padding:3px 10px; border-radius:999px; }
.resource-card strong { color:var(--green); font-size:1.02rem; line-height:1.25; }
.resource-card p { margin:0; font-size:.85rem; color:#5b6b61; line-height:1.45; }
.resource-open { display:inline-flex; align-items:center; gap:7px; font-size:.82rem; font-weight:700; color:var(--green); margin-top:2px; }
.resource-card:hover .resource-open svg { transform:translateX(3px); }
.resource-open svg { transition:transform .18s ease; }
@media (max-width:720px){ .docs-hero-art { order:-1; max-width:none; } }

/* ---- Header nav pills (2026-07-06 f) ---- */
.top-nav { gap: 8px; }
.top-nav .nav-pill,
.top-nav .nav-group > button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: .82rem; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.top-nav .nav-pill:hover,
.top-nav .nav-group:hover > button,
.top-nav .nav-group:focus-within > button {
  background: rgba(255,255,255,.14); border-color: #f3d77b; color: #f3d77b;
}
.top-nav .nav-group > button::after {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transform: translateY(1px);
}
.top-nav .nav-cta { background: var(--gold); border-color: var(--gold); color: #00230d; }
.top-nav .nav-cta:hover { background: #f3d77b; border-color: #f3d77b; color: #00230d; }
.top-nav .nav-submenu { left: 0; right: auto; min-width: 230px; border-radius: 12px; }
@media (max-width: 780px) {
  .top-nav { gap: 6px; }
  .top-nav .nav-pill, .top-nav .nav-group > button { padding: 7px 12px; font-size: .78rem; }
  .top-nav .nav-submenu { width: min(300px, calc(100vw - 36px)); }
}

/* ---- Tech Budget dashboard (2026-07-06 g) ---- */
.bud-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; margin:16px 0 22px; }
.bud-kpi { background:#fff; border:1px solid var(--line); border-radius:14px; padding:16px 18px; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.bud-kpi small { display:block; font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-bottom:6px; }
.bud-kpi strong { font-size:1.45rem; color:var(--green); }
.bud-kpi .updown { display:inline-block; margin-left:8px; font-size:.8rem; font-weight:800; padding:2px 9px; border-radius:999px; }
.updown.up { background:#fee2e2; color:#b91c1c; }
.updown.down { background:#dcfce7; color:#15803d; }
.bud-years { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 18px; }
.bud-cols { display:grid; grid-template-columns:1.4fr 1fr; gap:18px; align-items:start; margin-bottom:24px; }
.bud-panel { background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px 20px; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.bud-panel h2 { margin:0 0 12px; font-size:1.05rem; }
.bud-table { width:100%; border-collapse:collapse; font-size:.86rem; }
.bud-table th { text-align:left; font-size:.7rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); padding:6px 8px; border-bottom:1px solid var(--line); }
.bud-table td { padding:8px; border-bottom:1px solid #eef1ee; vertical-align:middle; }
.bud-table td.num, .bud-table th.num { text-align:right; white-space:nowrap; }
.bud-bar { position:relative; height:7px; background:#eef2ee; border-radius:999px; overflow:hidden; min-width:70px; }
.bud-bar > span { position:absolute; inset:0 auto 0 0; background:var(--green); border-radius:999px; }
.bud-bar.gold > span { background:var(--gold); }
.bucket-chip { display:inline-block; font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; padding:2px 8px; border-radius:999px; background:#e3ebe5; color:#2d5c35; }
.bucket-chip.b-software { background:#e6effd; color:#1d4ed8; }
.bucket-chip.b-services { background:#fef3c7; color:#92400e; }
.bud-trend { display:flex; flex-direction:column; gap:9px; }
.bud-trend-row { display:grid; grid-template-columns:90px 1fr auto; gap:10px; align-items:center; font-size:.85rem; }
.bud-trend-row .bud-bar { height:14px; }
.bud-trend-row.current strong { color:var(--green); }
.bud-note { font-size:.78rem; color:var(--muted); margin:10px 0 0; line-height:1.45; }
.bud-cat { background:#fff; border:1px solid var(--line); border-radius:14px; margin-bottom:12px; overflow:hidden; }
.bud-cat > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 18px; cursor:pointer; list-style:none; font-weight:800; color:var(--green); }
.bud-cat > summary::-webkit-details-marker { display:none; }
.bud-cat > summary .cat-sum { font-size:.85rem; color:var(--ink); }
.bud-cat[open] > summary { border-bottom:1px solid var(--line); }
.bud-cat .bud-table { font-size:.84rem; }
.type-chip { display:inline-block; font-size:.62rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; padding:2px 8px; border-radius:999px; }
.type-actual { background:#dcfce7; color:#15803d; }
.type-planned { background:#e6effd; color:#1d4ed8; }
.bud-actions { display:flex; align-items:center; gap:6px; }
.bud-actions .danger { padding:4px 9px; min-height:auto; font-size:.72rem; border-radius:7px; }
.bud-edit > summary { display:inline-flex; cursor:pointer; list-style:none; font-size:.72rem; font-weight:700; color:var(--green); padding:4px 9px; border:1px solid var(--line); border-radius:7px; }
.bud-edit > summary::-webkit-details-marker { display:none; }
.bud-edit[open] { display:block; }
.bud-form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:12px; }
.bud-form-grid .check-row { min-height:42px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; font-weight:800; color:var(--ink); }
.bud-form-grid .check-row input { width:auto; margin:0; }
.bud-toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:16px; }
.bud-add > summary, .bud-import > summary { display:inline-flex; cursor:pointer; list-style:none; }
.bud-add > summary::-webkit-details-marker, .bud-import > summary::-webkit-details-marker { display:none; }
.bud-add[open], .bud-import[open] { display:block; width:100%; }
.bud-add[open] > summary, .bud-import[open] > summary { margin-bottom:12px; }
@media (max-width:980px){ .bud-cols { grid-template-columns:1fr; } }

/* ---- Budget v2 panels (2026-07-06 h) ---- */
.bud-viz { display:grid; grid-template-columns:auto 1fr 1fr; gap:18px; align-items:stretch; margin-bottom:24px; }
.bud-donut-wrap { display:flex; flex-direction:column; gap:12px; align-items:center; }
.bud-donut { width:150px; height:150px; border-radius:50%; position:relative; }
.bud-donut::after { content:""; position:absolute; inset:26px; background:#fff; border-radius:50%; box-shadow:inset 0 1px 4px rgba(0,0,0,.06); }
.bud-legend { display:flex; flex-direction:column; gap:5px; font-size:.78rem; }
.bud-legend span { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:7px; }
.bud-months { display:flex; align-items:flex-end; gap:5px; height:120px; margin-top:8px; }
.bud-month { flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:4px; height:100%; }
.bud-month .mbar { width:100%; background:var(--green); border-radius:4px 4px 0 0; min-height:2px; opacity:.9; }
.bud-month.empty .mbar { background:#e3e9e4; }
.bud-month small { font-size:.6rem; color:var(--muted); }
.bud-renewals li { display:grid; grid-template-columns:1fr auto auto; gap:10px; padding:7px 0; border-bottom:1px solid #eef1ee; font-size:.85rem; align-items:center; }
.bud-renewals { list-style:none; margin:0; padding:0; }
.bud-renewals .rdate { font-weight:800; color:var(--green); white-space:nowrap; }
.bud-renewals .rdate.overdue { color:#b91c1c; }
.bud-target-bar { position:relative; height:10px; background:#eef2ee; border-radius:999px; overflow:hidden; min-width:110px; }
.bud-target-bar > span { position:absolute; inset:0 auto 0 0; background:#15803d; border-radius:999px; }
.bud-target-bar.warn > span { background:var(--gold); }
.bud-target-bar.over > span { background:#dc2626; }
.bud-target-form { display:flex; gap:6px; align-items:center; }
.bud-target-form input { width:100px; padding:5px 8px; border:1px solid var(--line); border-radius:7px; font:inherit; font-size:.8rem; }
.bud-target-form button { padding:5px 10px; min-height:auto; font-size:.74rem; border-radius:7px; }
.bud-search { display:flex; gap:8px; align-items:center; }
.bud-search input { padding:8px 12px; border:1px solid var(--line); border-radius:999px; font:inherit; font-size:.85rem; min-width:210px; }
.price-flag { display:inline-block; font-size:.64rem; font-weight:800; padding:2px 8px; border-radius:999px; background:#fee2e2; color:#b91c1c; margin-left:6px; }
.price-flag.down { background:#dcfce7; color:#15803d; }
.recur-chip { display:inline-block; font-size:.6rem; font-weight:800; text-transform:uppercase; padding:2px 7px; border-radius:999px; background:#ede9fe; color:#6d28d9; margin-left:6px; }
@media (max-width:980px){ .bud-viz { grid-template-columns:1fr; } }

/* ---- Budget domain tabs (2026-07-06 i) ---- */
.bud-tabs { display:flex; gap:0; margin-bottom:18px; border-bottom:2px solid var(--line); }
.bud-tab { padding:10px 22px; font-weight:800; font-size:.92rem; color:var(--muted); text-decoration:none; border:2px solid transparent; border-bottom:none; border-radius:12px 12px 0 0; margin-bottom:-2px; }
.bud-tab:hover { color:var(--green); background:#f3f7f4; }
.bud-tab.active { color:var(--green); background:#fff; border-color:var(--line); border-bottom:2px solid #fff; }

/* ---- Budget sub-views (2026-07-06 j) ---- */
.bud-subnav { display:flex; gap:8px; margin:0 0 18px; }
.bud-subnav a { padding:7px 16px; border-radius:999px; border:1px solid var(--line); font-size:.82rem; font-weight:800; color:var(--muted); text-decoration:none; background:#fff; }
.bud-subnav a:hover { color:var(--green); border-color:var(--green); }
.bud-subnav a.active { background:var(--green); border-color:var(--green); color:#fff; }
.inventory-sheet-sync { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 18px; margin:0 0 16px; border:1px solid var(--line); border-left:5px solid var(--green); border-radius:8px; background:#fff; box-shadow:0 8px 24px rgba(0,51,17,.06); }
.inventory-sheet-sync.issue { border-left-color:#b45309; background:#fffbeb; }
.inventory-sheet-sync strong { display:block; font-size:1.05rem; color:var(--ink); margin-top:2px; }
.inventory-sheet-sync small { display:block; color:var(--muted); font-size:.8rem; margin-top:4px; max-width:860px; }
.sheet-label { display:block; font-size:.68rem; font-weight:900; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.sheet-status { display:inline-flex; align-items:center; margin-top:7px; padding:3px 9px; border-radius:999px; font-size:.7rem; font-weight:900; background:#dcfce7; color:#166534; }
.sheet-status.warn { background:#fef3c7; color:#92400e; }
.sheet-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.sheet-actions form { margin:0; }
.inventory-category-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin:0 0 18px; }
.inventory-cat-card { display:flex; flex-direction:column; min-height:92px; padding:14px 16px; border:1px solid var(--line); border-radius:8px; background:#fff; text-decoration:none; color:var(--ink); box-shadow:0 8px 22px rgba(0,51,17,.06); transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.inventory-cat-card:hover { transform:translateY(-1px); border-color:var(--green); box-shadow:0 12px 28px rgba(0,51,17,.1); }
.inventory-cat-card.active { background:#f3f8f4; border-color:var(--green); box-shadow:inset 0 0 0 1px var(--green), 0 10px 24px rgba(0,51,17,.08); }
.inventory-cat-card span { font-size:.82rem; font-weight:900; color:var(--green); }
.inventory-cat-card strong { margin-top:8px; font-size:1.75rem; line-height:1; color:var(--ink); }
.inventory-cat-card small { margin-top:auto; color:var(--muted); font-size:.72rem; font-weight:800; }
.bud-archive tr.current td { background:#f3f8f4; }
.bud-matrix { overflow-x:auto; }
.stu-summary { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:14px; }
.stu-summary .bud-kpi { flex:1 1 150px; padding:12px 16px; }
.stu-summary .bud-kpi strong { font-size:1.2rem; }

/* ---- Budget polish (2026-07-06 k) ---- */
.bud-years { align-items:center; }
.bud-years-label { font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin-right:2px; }
.bud-panel, .bud-cat { overflow-x:auto; }
.bud-cat > summary:hover { background:#f3f8f4; }
.bud-kpi { transition:box-shadow .15s ease; }
.bud-kpi:hover { box-shadow:0 6px 18px rgba(0,51,17,.1); }
.bud-table td a { color:var(--green); }
@media (max-width:640px){
  .bud-kpi strong { font-size:1.15rem; }
  .bud-subnav { flex-wrap:wrap; }
  .inventory-sheet-sync { flex-direction:column; align-items:stretch; }
  .sheet-actions { justify-content:flex-start; }
  .bud-toolbar { flex-direction:column; align-items:stretch; }
  .bud-search input { min-width:0; width:100%; }
}
@media print {
  .admin-sidebar, .bud-subnav, .bud-tabs, .bud-toolbar, .bud-years,
  .inventory-sheet-sync, .dash-welcome .button-row, .bud-target-form, .bud-actions, .notice { display:none !important; }
  .admin-main, main.page { margin-left:0 !important; max-width:none !important; padding:0 !important; }
  body { background:#fff; }
  .bud-panel, .bud-cat, .bud-kpi { box-shadow:none !important; border-color:#ccc !important; break-inside:avoid; }
  .bud-cat { page-break-inside:avoid; }
  details.bud-cat:not([open]) > *:not(summary) { display:block !important; }
}


/* ================= Professional polish pass (2026-07-08) =================
   Appended so it overrides earlier rules via source order. Spacing, softer
   surfaces, clearer hierarchy, table row hover. Applies to every admin-ops
   page (budgets, device inventory, facility PMP, locations, vendors,
   expenses, purchase requests) for one consistent, uncluttered look. */

/* Page header: clearer separation from content */
.dash-welcome { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); gap: 20px; }
.dash-welcome h1 { font-size: 1.72rem; letter-spacing: -0.015em; margin: 3px 0 5px; }
.dash-welcome .lead { color: var(--muted); max-width: 680px; line-height: 1.5; }

/* KPI cards: more air + gentle depth */
.bud-kpis { gap: 16px; margin: 22px 0 26px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.bud-kpi { padding: 18px 20px; border-radius: 16px; border-color: #e7ece8;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.05); }
.bud-kpi strong { font-size: 1.5rem; letter-spacing: -0.01em; }

/* Panels: roomier, softer, consistent radius */
.bud-panel { padding: 22px 24px; border-radius: 16px; border-color: #e7ece8;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.05); margin-bottom: 4px; }
.bud-panel h2 { font-size: 1.1rem; margin-bottom: 14px; letter-spacing: -0.01em; }

/* Vertical rhythm between major sections */
.bud-viz { gap: 20px; margin-bottom: 26px; }
.bud-cols { gap: 20px; margin-bottom: 26px; }

/* Toolbar: more breathing room + separation from filters below */
.bud-toolbar { gap: 12px; margin-bottom: 20px; padding-bottom: 4px; }

/* Tables: readable, roomier cells, quiet row hover */
.bud-table th { padding: 9px 12px; }
.bud-table td { padding: 11px 12px; }
.bud-table tbody tr:hover td { background: #f6faf7; }

/* Forms: more breathing room in the grids and cards */
.bud-form-grid { gap: 14px 16px; margin-bottom: 16px; }
.form-card { padding: 18px 20px; }
.bud-add[open] > summary, .bud-import[open] > summary { margin-bottom: 14px; }

/* Category cards + subnav: slightly larger, calmer targets */
.inventory-category-grid { gap: 14px; margin-bottom: 22px; }
.bud-subnav { gap: 10px; margin-bottom: 22px; }
.bud-years { margin-bottom: 22px; gap: 9px; }

/* Sub-panel section headings inside detail pages */
.bud-panel h2[style], .bud-cols h2 { letter-spacing: -0.01em; }

/* Keep it comfortable but not sprawling on very wide monitors */
@media (min-width: 1700px) {
  .page.admin-main { max-width: 1560px; }
}

/* ---- Budget fiscal-year dropdown (2026-07-08) ---- */
.bud-year-select {
  padding: 8px 14px; border: 1.5px solid rgba(0,51,17,.28); border-radius: 10px;
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--green);
  background: #fff; cursor: pointer; min-width: 190px;
  box-shadow: 0 4px 12px -8px rgba(0,51,17,.4);
}
.bud-year-select:hover { border-color: var(--green); }

/* Purchase request: multi-item sectioned form (2026-07-08) */
.purchase-form { padding:14px 16px; }
.pr-section { border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:12px; background:#fbfdfb; }
.pr-section-head { font-size:.7rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:#5f6d66; margin-bottom:10px; }
.pr-items .pr-item-row { display:grid; grid-template-columns:minmax(130px,1.3fr) minmax(140px,1.6fr) 62px 92px 30px; gap:8px; align-items:end; margin-bottom:8px; }
.pr-item-row label { margin:0; min-width:0; }
.pr-remove { min-height:auto; height:34px; padding:0 9px; border-radius:8px; background:#fff; border:1px solid var(--line); color:#a33c3c; font-weight:800; font-size:1rem; line-height:1; cursor:pointer; }
.pr-remove:hover { background:#fbf0f0; border-color:#d9b2b2; }
.pr-items-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:2px; flex-wrap:wrap; }
.pr-add-item { min-height:auto; padding:7px 12px; border-radius:8px; background:#fff; border:1px dashed #9db6a2; color:var(--green); font-weight:800; font-size:.78rem; cursor:pointer; }
.pr-add-item:hover { background:#f2f7f2; }
.pr-total { font-size:.8rem; color:#5f6d66; font-weight:700; }
.pr-total strong { color:#003311; font-size:.95rem; margin-left:2px; }
@media (max-width: 720px) { .pr-items .pr-item-row { grid-template-columns:1fr 1fr; } .pr-remove { justify-self:start; } }
.purchase-status { flex-direction:column; align-items:stretch; }
.purchase-status-items { display:flex; flex-direction:column; gap:3px; }
.purchase-status-item { display:flex; justify-content:space-between; gap:8px; }
.purchase-status-item.purchase-status-total { border-top:1px solid #dfe8df; padding-top:4px; margin-top:2px; }
.purchase-status-meta { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }

/* Purchase confirm page + purchased state (2026-07-08) */
.purchase-done { background:#e7f3ea !important; color:#0f6b37 !important; padding:2px 8px; border-radius:999px; }
.purchase-mark { min-height:auto; padding:5px 9px; border-radius:7px; font-size:.72rem; background:#fff; border:1px solid #d7c169; color:#5d4c00; font-weight:800; cursor:pointer; }
.purchase-mark:hover { background:#fdf9ec; }
.pc-card { max-width:640px; margin:0 auto; }
.pc-task { font-weight:800; font-size:1.05rem; color:#003311; margin-bottom:10px; }
.pc-table { width:100%; border-collapse:collapse; margin-bottom:12px; }
.pc-table td { padding:9px 0; border-bottom:1px solid #eef2ee; font-size:.95rem; }
.pc-table a { color:var(--green); font-weight:800; text-decoration:none; }
.pc-qty { color:#5f6d66; font-weight:700; }
.pc-amount { text-align:right; font-weight:800; white-space:nowrap; }
.pc-total-row td { border-bottom:none; font-weight:900; color:#003311; padding-top:12px; }
.pc-meta { font-size:.85rem; color:#5f6d66; line-height:1.7; }
.pc-done { font-weight:800; color:#0f6b37; }
.pc-note { font-size:.8rem; color:#5f6d66; margin-top:10px; }
.pc-confirm { background:#c9a227; color:#1d2a22; font-weight:900; }
.pc-confirm:hover { background:#b8931f; }
.pc-flash { max-width:640px; margin:0 auto 14px; padding:12px 16px; background:#e7f3ea; border:1px solid #bcd9c4; border-radius:10px; color:#0f6b37; font-weight:800; }

/* Device Inventory cleanup (2026-07-08) */
.inv-toolbar { display:flex; gap:10px; align-items:flex-start; flex-wrap:wrap; }
.act-menu { position:relative; }
.act-menu > summary { list-style:none; cursor:pointer; display:inline-flex; }
.act-menu > summary::-webkit-details-marker { display:none; }
.act-menu-list { position:absolute; top:calc(100% + 6px); left:0; z-index:40; min-width:230px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 14px 34px rgba(0,51,17,.16); padding:6px; display:flex; flex-direction:column; }
.act-menu-list a { padding:9px 12px; border-radius:8px; color:#1d2a22; text-decoration:none; font-weight:700; font-size:.85rem; }
.act-menu-list a:hover { background:#f2f7f2; color:var(--green); }
.inv-panel { margin-bottom:16px; }
.inv-panel-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.inv-panel-head strong { font-size:1rem; color:#003311; }
.inv-cats-head { display:flex; align-items:baseline; gap:10px; margin:4px 0 8px; flex-wrap:wrap; }
.inv-cats-head small { color:#5f6d66; font-size:.78rem; }
.inventory-category-grid { grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:8px; }
.inventory-cat-card { min-height:76px; padding:10px 12px; }
.inventory-cat-card strong { font-size:1.35rem; margin-top:4px; }
.inv-filterbar { display:flex; align-items:center; gap:14px; margin:14px 0 12px; flex-wrap:wrap; }
.inv-status-label { display:inline-flex; align-items:center; gap:8px; font-weight:800; font-size:.8rem; color:#5f6d66; margin:0; }
.inv-showing { color:#5f6d66; font-size:.82rem; font-weight:700; }
.sheet-fix { margin-top:8px; font-size:.85rem; color:#1d2a22; max-width:860px; }
.sheet-fix p { margin:0 0 6px; }
.sheet-fix ol { margin:0 0 0 18px; padding:0; display:flex; flex-direction:column; gap:5px; }
.sheet-email { display:inline-block; margin-top:4px; background:#f2f7f2; border:1px solid var(--line); padding:3px 8px; border-radius:6px; font-size:.78rem; word-break:break-all; user-select:all; }

/* Parent login email composer (2026-07-08) */
.pe-composer { max-width:980px; }
.pe-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-bottom:10px; }
.pe-lbl { font-size:.75rem; font-weight:800; color:#5f6d66; margin-right:6px; }
.pe-grades, .pe-extra { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:8px; }
.pe-check { display:inline-flex; align-items:center; gap:5px; font-size:.82rem; font-weight:700; color:#1d2a22; margin:0; cursor:pointer; }
.pe-check input { width:auto; min-height:auto; margin:0; }
.pe-items { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:8px; }
.pe-item { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:10px; padding:9px 11px; background:#fff; cursor:pointer; margin:0; }
.pe-item input { width:auto; min-height:auto; margin:0; }
.pe-item span { font-size:.82rem; font-weight:800; color:#003311; flex:1; }
.pe-item small { font-size:.68rem; color:#5f6d66; font-weight:700; white-space:nowrap; }
.pe-item-empty span { color:#9aa8a0; }
.pe-warn-row { background:#fffbeb; }
.pe-warnings { color:#92400e; font-size:.78rem; font-weight:700; }
.pe-send-bar { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; align-items:center; }
.pe-send-bar .secondary { background:#fff; color:#003311; border:1px solid var(--line); }

/* De-bubbled admin buttons + dashboard sections (2026-07-09) */
.admin-main button, .admin-main .button-link { min-height:36px; padding:0 14px; border-radius:7px; font-size:.85rem; }
.admin-main button.danger { min-height:32px; padding:0 11px; font-size:.78rem; }
.admin-main .kpi-card { border-radius:10px; padding:14px 16px; box-shadow:0 2px 8px rgba(0,51,17,.05); }
.admin-main .kpi-card:hover { transform:none; box-shadow:0 4px 14px rgba(0,51,17,.1); }
.admin-main .kpi-icon { width:40px; height:40px; border-radius:8px; }
.admin-main .kpi-meta strong { font-size:1.5rem; }
.admin-main .quick-tile { border-radius:8px; padding:10px 13px; font-size:.84rem; }
.admin-main .bud-kpi { border-radius:10px; }
.admin-main .form-card, .admin-main .bud-panel, .admin-main .dash-card { border-radius:10px; }
.dash-sec { display:flex; align-items:baseline; gap:12px; margin:28px 0 12px; border-bottom:2px solid #e4ebe4; padding-bottom:8px; }
.dash-sec h2 { margin:0; font-size:1.02rem; color:#003311; letter-spacing:.01em; }
.dash-sec .dash-sec-links { margin-left:auto; display:flex; gap:14px; }
.dash-sec .dash-sec-links a { font-size:.78rem; font-weight:800; color:var(--green); text-decoration:none; }
.dash-sec .dash-sec-links a:hover { color:var(--gold); }
.dash-stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:10px; margin-bottom:6px; }
.dash-stat { display:block; background:#fff; border:1px solid var(--line); border-radius:10px; padding:13px 15px; text-decoration:none; color:inherit; box-shadow:0 2px 8px rgba(0,51,17,.05); transition:border-color .12s ease; }
.dash-stat:hover { border-color:var(--green); }
.dash-stat small { display:block; font-size:.68rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:#5f6d66; }
.dash-stat strong { display:block; font-size:1.4rem; font-weight:800; color:#003311; margin-top:4px; line-height:1.15; }
.dash-stat .sub { display:inline-block; font-size:.72rem; color:#92400e; font-weight:800; margin-top:3px; }
.dash-stat.attn { border-color:#e7d28a; background:#fffdf4; }

/* Facility & IT calendar (2026-07-09) */
.cal-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 12px; }
.cal-toolbar h2 { margin:0; font-size:1.15rem; color:#003311; min-width:180px; }
.cal-grid { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden; table-layout:fixed; }
.cal-grid th { background:#f2f7f2; color:#5f6d66; font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; padding:8px 6px; border-bottom:1px solid var(--line); }
.cal-grid td { vertical-align:top; border:1px solid #eef2ee; height:96px; padding:4px 5px; font-size:.75rem; }
.cal-grid td.other-month { background:#fafcfa; color:#b6c2ba; }
.cal-grid td.today { background:#fdf9ec; box-shadow:inset 0 0 0 2px #d7c169; }
.cal-daynum { font-weight:800; color:#41514a; font-size:.72rem; display:block; margin-bottom:3px; }
.cal-evt { display:block; margin:0 0 2px; padding:2px 6px; border-radius:5px; font-size:.68rem; font-weight:700; color:#fff; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal-evt.school_event { background:#0f6b37; }
.cal-evt.rental { background:#b8931f; }
.cal-evt.maintenance { background:#b45309; }
.cal-evt.it { background:#1d4ed8; }
.cal-evt.meeting { background:#6d28d9; }
.cal-evt.is-requested { opacity:.65; outline:1px dashed rgba(255,255,255,.7); }
.cal-evt.is-cancelled { background:#9aa8a0; text-decoration:line-through; }
.cal-legend { display:flex; gap:12px; flex-wrap:wrap; margin:8px 0 0; font-size:.72rem; color:#5f6d66; font-weight:700; }
.cal-legend span::before { content:""; display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:5px; vertical-align:-1px; background:var(--dot, #999); }
.cal-cols { display:grid; grid-template-columns:2.2fr 1fr; gap:14px; align-items:start; margin-top:14px; }
@media (max-width: 1100px) { .cal-cols { grid-template-columns:1fr; } }
.cal-up-item { display:flex; gap:10px; padding:8px 0; border-bottom:1px solid #eef2ee; font-size:.82rem; align-items:baseline; }
.cal-up-item:last-child { border-bottom:none; }
.cal-up-date { min-width:86px; font-weight:800; color:#003311; font-size:.75rem; }
.cal-up-item a { color:var(--green); font-weight:800; text-decoration:none; }
.cal-up-meta { color:#5f6d66; font-size:.72rem; }
.cal-detail { border-left:4px solid var(--green); }
.cal-fee { color:#5d4c00; font-weight:800; }

/* Inventory category dropdown + chips (2026-07-09) */
.cat-dd { position:relative; }
.cat-dd > summary { list-style:none; cursor:pointer; }
.cat-dd > summary::-webkit-details-marker { display:none; }
.cat-dd-count { background:var(--green); color:#fff; border-radius:999px; min-width:19px; height:19px; display:inline-flex; align-items:center; justify-content:center; font-size:.68rem; font-weight:900; padding:0 6px; margin-left:5px; }
.cat-dd-menu { position:absolute; top:calc(100% + 6px); left:0; z-index:45; width:340px; max-height:430px; overflow-y:auto; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 16px 40px rgba(0,51,17,.18); padding:6px; }
.cat-dd-item { display:grid; grid-template-columns:16px minmax(105px,auto) 1fr 46px; align-items:center; gap:9px; padding:8px 10px; border-radius:8px; text-decoration:none; color:#1d2a22; font-size:.84rem; font-weight:700; }
.cat-dd-item:hover { background:#f2f7f2; }
.cat-dd-check { color:transparent; font-weight:900; font-size:.85rem; }
.cat-dd-item.active { background:#eaf4ec; }
.cat-dd-item.active .cat-dd-check { color:var(--green); }
.cat-dd-item.all { border-bottom:1px solid #eef2ee; margin-bottom:4px; padding-bottom:10px; }
.cat-dd-item.all .cat-dd-name { font-weight:900; color:#003311; }
.cat-dd-bar { height:5px; background:#eef2ee; border-radius:999px; overflow:hidden; }
.cat-dd-bar i { display:block; height:100%; background:linear-gradient(90deg, #0f6b37, #86b592); border-radius:999px; }
.cat-dd-item.active .cat-dd-bar i { background:linear-gradient(90deg, #b8931f, #d7c169); }
.cat-dd-n { text-align:right; font-size:.74rem; color:#5f6d66; font-weight:800; font-variant-numeric:tabular-nums; }
.cat-dd-foot { padding:8px 10px 4px; font-size:.7rem; color:#8a978f; border-top:1px solid #eef2ee; margin-top:4px; }
.cat-chip { display:inline-flex; align-items:center; gap:6px; background:var(--green); color:#fff; text-decoration:none; font-size:.76rem; font-weight:800; padding:5px 11px; border-radius:999px; transition:background .12s ease; }
.cat-chip span { font-size:.95rem; line-height:1; opacity:.75; }
.cat-chip:hover { background:#0f6b37; }
.cat-chip:hover span { opacity:1; }

/* Purchases page + task sharing (2026-07-09) */
.task-share-chip { display:inline-flex; align-items:center; gap:3px; background:#eef3ef; color:#2d5c35; font-size:.66rem; font-weight:800; padding:2px 7px; border-radius:999px; }
.task-share-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:8px 0; }
.room-dd { position:relative; }
.room-dd > button { min-height:34px; padding:0 10px; border-radius:7px; background:#fff; border:1px solid var(--line); color:#003311; font-weight:700; font-size:.78rem; cursor:pointer; }
.room-dd-menu { position:absolute; top:calc(100% + 4px); left:0; z-index:60; width:250px; max-height:280px; overflow-y:auto; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 14px 32px rgba(0,51,17,.18); padding:6px; display:none; }
.room-dd.open .room-dd-menu { display:block; }
.room-dd-menu label { display:flex; align-items:center; gap:7px; padding:5px 8px; border-radius:6px; font-size:.8rem; font-weight:600; cursor:pointer; margin:0; }
.room-dd-menu label:hover { background:#f2f7f2; }
.room-dd-menu input { width:auto; min-height:auto; margin:0; }
.pu-item-row { display:grid; grid-template-columns:minmax(130px,1.4fr) minmax(140px,1.5fr) 62px 92px minmax(120px,auto) 30px; gap:8px; align-items:end; margin-bottom:8px; }
.pu-item-row label { margin:0; min-width:0; }
@media (max-width: 760px) { .pu-item-row { grid-template-columns:1fr 1fr; } }
.pu-status-chip { display:inline-flex; padding:3px 9px; border-radius:999px; font-size:.7rem; font-weight:900; }
.pu-pending { background:#fef3c7; color:#92400e; }
.pu-sent { background:#dcfce7; color:#166534; }
.pu-purchased { background:#e7f1ea; color:#003311; border:1px solid #9db6a2; }
.pu-failed { background:#fdeaea; color:#a3271b; }

/* Purchase queue confirm cards (2026-07-09) */
.pq-card { border-left:4px solid #b8931f; margin-bottom:14px; }
.pq-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; margin-bottom:8px; }
.pq-head strong { color:#003311; font-size:1rem; }
.pq-head .cell-sub { display:block; }
.pq-total { font-size:1.25rem; font-weight:900; color:#003311; white-space:nowrap; }
.pq-items { border-top:1px solid #eef2ee; border-bottom:1px solid #eef2ee; padding:8px 0; margin-bottom:10px; }
.pq-item { display:flex; justify-content:space-between; gap:10px; font-size:.85rem; padding:2px 0; }
.pq-item a { color:var(--green); font-weight:700; text-decoration:none; }
.pq-item span { font-weight:800; color:#41514a; white-space:nowrap; }
.pq-confirm { display:flex; align-items:flex-end; gap:14px; flex-wrap:wrap; }
.pq-confirm > label { margin:0; max-width:170px; }
.pq-split { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.pq-preset { min-height:32px; padding:0 10px; border-radius:7px; background:#fff; border:1px solid var(--line); color:#003311; font-weight:800; font-size:.74rem; cursor:pointer; }
.pq-preset:hover { border-color:#b8931f; background:#fdf9ec; }
.pq-pct { display:inline-flex; align-items:center; gap:6px; font-size:.78rem; font-weight:800; color:#5f6d66; margin:0; }
.pq-pct input { width:72px; }
.pq-church { font-size:.82rem; color:#5d4c00; font-weight:700; }

/* Systems dashboard (2026-07-09) */
.sys-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:10px; margin-bottom:8px; }
.sys-card { display:block; background:#fff; border:1px solid var(--line); border-left:5px solid #9aa8a0; border-radius:10px; padding:12px 14px; text-decoration:none; color:inherit; box-shadow:0 2px 8px rgba(0,51,17,.05); }
.sys-card:hover { border-color:var(--green); }
.sys-card.up { border-left-color:#0f6b37; }
.sys-card.down { border-left-color:#a3271b; background:#fff7f7; }
.sys-card.warn { border-left-color:#b45309; background:#fffdf4; }
.sys-name { font-weight:800; color:#1d2a22; font-size:.88rem; display:flex; justify-content:space-between; gap:8px; align-items:baseline; }
.sys-dot { width:10px; height:10px; border-radius:999px; background:#9aa8a0; flex-shrink:0; }
.up .sys-dot { background:#0f6b37; } .down .sys-dot { background:#a3271b; } .warn .sys-dot { background:#b45309; }
.sys-meta { font-size:.72rem; color:#5f6d66; margin-top:4px; }
.sys-alert-row { display:flex; gap:10px; padding:7px 0; border-bottom:1px solid #eef2ee; font-size:.82rem; align-items:baseline; }
.sys-alert-row:last-child { border-bottom:none; }
.sys-lvl { font-size:.66rem; font-weight:900; padding:2px 7px; border-radius:999px; text-transform:uppercase; }
.sys-lvl.alert { background:#fdeaea; color:#a3271b; } .sys-lvl.warn { background:#fef3c7; color:#92400e; } .sys-lvl.info { background:#eef3ef; color:#2d5c35; }
.sys-status-big { font-size:1.1rem; font-weight:900; padding:6px 14px; border-radius:10px; display:inline-block; }
.sys-status-big.up { background:#dcfce7; color:#166534; } .sys-status-big.down { background:#fdeaea; color:#a3271b; }
.sys-status-big.warn { background:#fef3c7; color:#92400e; } .sys-status-big.unknown { background:#eef2ee; color:#5f6d66; }

/* Systems dashboard v2 - modern hero + sparklines (2026-07-09) */
.sys-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; background:linear-gradient(135deg, #002a0e 0%, #0b3d1e 60%, #14522b 100%); border-radius:14px; padding:22px 26px; margin-bottom:16px; color:#fff; box-shadow:0 10px 30px rgba(0,42,14,.28); }
.sys-hero-status { display:flex; align-items:center; gap:14px; }
.sys-hero-dot { width:16px; height:16px; border-radius:999px; flex-shrink:0; }
.sys-hero.up .sys-hero-dot { background:#4ade80; box-shadow:0 0 0 5px rgba(74,222,128,.22), 0 0 18px rgba(74,222,128,.7); }
.sys-hero.warn .sys-hero-dot { background:#fbbf24; box-shadow:0 0 0 5px rgba(251,191,36,.22), 0 0 18px rgba(251,191,36,.7); }
.sys-hero.down .sys-hero-dot { background:#f87171; box-shadow:0 0 0 5px rgba(248,113,113,.25), 0 0 18px rgba(248,113,113,.8); animation:sysPulse 1.6s infinite; }
@keyframes sysPulse { 50% { box-shadow:0 0 0 9px rgba(248,113,113,.12), 0 0 22px rgba(248,113,113,.9); } }
.sys-hero-title { font-size:1.28rem; font-weight:900; letter-spacing:-.01em; }
.sys-hero-sub { font-size:.76rem; color:rgba(255,255,255,.65); margin-top:3px; }
.sys-hero-nums { display:flex; gap:22px; }
.sys-hero-num { text-align:center; }
.sys-hero-num strong { display:block; font-size:1.5rem; font-weight:900; line-height:1; }
.sys-hero-num small { font-size:.66rem; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.6); }
.sys-hero-num.n-up strong { color:#4ade80; } .sys-hero-num.n-down strong { color:#f87171; }
.sys-hero-num.n-warn strong { color:#fbbf24; } .sys-hero-num.n-unk strong { color:rgba(255,255,255,.75); }
.sys-hero form button { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.28); color:#fff; }
.sys-hero form button:hover { background:var(--gold) !important; color:#1d2a22; }
.sys-card { position:relative; padding:12px 14px 10px; }
.sys-spark { display:block; width:100%; height:28px; margin-top:6px; }
.sys-spark polyline { stroke:#0f6b37; opacity:.85; }
.down .sys-spark polyline { stroke:#a3271b; }
.warn .sys-spark polyline { stroke:#b45309; }
.sys-statline { display:flex; justify-content:space-between; font-size:.68rem; color:#5f6d66; font-weight:700; margin-top:2px; }
.sys-uptime-good { color:#0f6b37; } .sys-uptime-bad { color:#a3271b; }
.sys-bigchart { width:100%; height:90px; background:#fbfdfb; border:1px solid #eef2ee; border-radius:10px; }

/* Utilities section (2026-07-09) */
.util-chart { display:block; width:100%; height:168px; background:#fbfdfb; border:1px solid #eef2ee; border-radius:10px; }
.util-grid { stroke:#e6ece6; stroke-width:1; vector-effect:non-scaling-stroke; }
.util-bar { fill:#1d9e75; }
.util-bar:hover { fill:#0f6e56; }
.util-usage-line { stroke:#185fa5; stroke-width:2; }
.util-axis { display:flex; justify-content:space-between; font-size:.66rem; color:#8a8f8b; font-weight:700; margin-top:4px; flex-wrap:wrap; gap:4px; }
.util-axis .util-ymax { color:#5f6d66; }
.util-svc-row { display:flex; align-items:center; gap:12px; margin:6px 0; }
.util-svc-name { width:90px; font-weight:800; font-size:.82rem; color:#3a463f; }
.util-svc-track { flex:1; height:16px; background:#eef2ee; border-radius:8px; overflow:hidden; }
.util-svc-fill { display:block; height:100%; background:linear-gradient(90deg,#1d9e75,#0f6e56); border-radius:8px; }
.util-svc-amt { width:100px; text-align:right; font-weight:800; font-size:.85rem; }
.util-tag { font-size:.6rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; padding:2px 7px; border-radius:999px; background:#e1f5ee; color:#0f6e56; }
.util-electric { background:#faeeda; color:#854f0b; }
.util-gas { background:#fcebeb; color:#a32d2d; }
.util-water { background:#e6f1fb; color:#185fa5; }
.util-trash { background:#f1efe8; color:#5f5e5a; }
.util-telecom { background:#eeedfe; color:#3c3489; }
.util-hvac { background:#e1f5ee; color:#0f6e56; }
.util-steps { margin:6px 0 0; padding-left:20px; line-height:1.7; font-size:.9rem; }
.util-steps strong { color:#0f6e56; }

/* Electricity trends line chart (2026-07-09) */
.util-linechart { display:block; width:100%; height:auto; background:#fbfdfb; border:1px solid #eef2ee; border-radius:10px; margin-top:8px; }
.util-ylabel { font-size:11px; fill:#8a8f8b; font-weight:700; }
.util-xlabel { font-size:11px; fill:#8a8f8b; font-weight:700; }
.util-legend { display:flex; gap:16px; font-size:.74rem; font-weight:700; color:#5f6d66; }
.util-legend span { display:flex; align-items:center; gap:5px; }
.util-swatch { display:inline-block; width:14px; height:10px; border-radius:2px; }

/* Utilities stat deltas + building drill-down (2026-07-09) */
.util-delta { display:block; font-size:.62rem; font-weight:700; color:#8a8f8b; margin-top:2px; letter-spacing:.01em; }
.util-arrow { color:#b4b2a9; font-size:1.3rem; font-weight:400; line-height:1; }

/* Utility budgets + anomalies (2026-07-10) */
.util-meter { position:relative; height:18px; background:#eef2ee; border-radius:9px; margin-top:6px; }
.util-meter-fill { height:100%; background:linear-gradient(90deg,#1d9e75,#0f6e56); border-radius:9px; min-width:2px; }
.util-meter-fill.over { background:linear-gradient(90deg,#d97706,#a3271b); }
.util-meter-proj { position:absolute; top:-4px; width:2px; height:26px; background:#1d2a22; }
.util-bar-over { fill:#d97706; }
.util-budget-line { stroke:#a3271b; stroke-width:1.5; stroke-dasharray:6 4; vector-effect:non-scaling-stroke; }
.util-anom { background:#fcebeb; color:#a32d2d; }

/* Building map (2026-07-10) */
.map-toolbar { display:flex; align-items:center; gap:14px; flex-wrap:wrap; background:#fff; border:1px solid #eef2ee; border-radius:10px; padding:10px 14px; margin-bottom:12px; }
.map-chk { display:flex; align-items:center; gap:6px; font-size:.82rem; font-weight:700; color:#3a463f; cursor:pointer; }
.map-chk input { width:auto; margin:0; }
.map-spacer { flex:1; }
.map-search { max-width:200px; height:32px; }
.map-edit-toggle { background:#eaf3de; padding:5px 10px; border-radius:8px; }
.map-wrap { position:relative; display:block; }
.map-stage { width:100%; box-sizing:border-box; background:#fbfdfb; border:1px solid #eef2ee; border-radius:12px; padding:10px; }
.map-stage #bmap { width:100%; height:auto; max-height:82vh; display:block; }
#bmap { display:block; width:100%; height:auto; touch-action:none; }
.map-panel { position:absolute; top:16px; right:16px; width:300px; background:#fff; border:1px solid #dfe7e2; border-radius:12px; padding:14px 16px; max-height:calc(100% - 32px); overflow-y:auto; box-shadow:0 8px 30px rgba(16,60,45,.16); z-index:6; }
@media (max-width:900px){ .map-panel{ position:static; width:auto; box-shadow:none; margin-top:12px; } }
.mzone { fill:#eaf3de; stroke:#c0dd97; stroke-width:1.4; stroke-dasharray:7 5; }
.mzone-label { fill:#639922; font-size:16px; font-weight:800; letter-spacing:.02em; }
.mroom { cursor:pointer; }
.mroom-rect { stroke:#0f6e56; stroke-width:1.2; transition:fill-opacity .12s; }
.mroom:hover .mroom-rect { fill-opacity:.85 !important; stroke-width:2; }
.mroom:focus { outline:none; }
.mroom:focus .mroom-rect { stroke-width:2.4; }
.mroom-label { fill:#123; font-size:15px; font-weight:800; pointer-events:none; }
.mroom-sub { fill:#2f6b57; font-size:9.5px; font-weight:700; pointer-events:none; letter-spacing:.01em; }
.mbadge circle { fill:#0f6e56; }
.mbadge text { fill:#fff; font-size:11px; font-weight:800; pointer-events:none; }
.mpin { fill:#d97706; stroke:#fff; stroke-width:1.6; cursor:pointer; }
.mpin:hover { r:7.5; }
.mcam circle { fill:#185fa5; stroke:#fff; stroke-width:1.6; }
.mcam text { fill:#fff; font-size:8.5px; font-weight:800; pointer-events:none; }
.layer-off { display:none; }
#bmap.hide-labels .mroom-label, #bmap.hide-labels .mroom-sub { display:none; }
#bmap.hide-badges .mbadge { display:none; }
.mroom.dim { opacity:.25; }
.mroom.hit .mroom-rect { stroke:#d97706; stroke-width:2.6; }
#bmap.placing { cursor:crosshair; }
#bmap.edit .mroom, #bmap.edit .mcam { cursor:move; }
.map-legend { display:flex; flex-direction:column; gap:6px; font-size:.8rem; color:#3a463f; margin:8px 0 12px; }
.map-legend span { display:flex; align-items:center; gap:8px; }
.msw { width:16px; height:12px; border-radius:3px; display:inline-block; flex-shrink:0; }
.map-sec { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:#8a8f8b; margin:14px 0 6px; border-bottom:1px solid #eef2ee; padding-bottom:4px; }
.map-asset { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid #f4f7f2; font-size:.86rem; }
.map-asset a { font-weight:700; color:var(--green); text-decoration:none; }
.map-asset .cell-sub { display:block; }
.map-pinbtn { flex-shrink:0; font-size:.68rem; font-weight:800; padding:3px 8px; border:1px solid #c0dd97; background:#f4f9ec; color:#3b6d11; border-radius:6px; cursor:pointer; }
.map-pinbtn.arming { background:#d97706; color:#fff; border-color:#d97706; }

/* Building map enhancements (2026-07-10) */
.map-floors { display:inline-flex; gap:4px; }
.map-floor { font-size:.78rem; font-weight:800; padding:5px 12px; border-radius:8px; text-decoration:none; color:#5f6d66; background:#eef2ee; }
.map-floor.active { background:#0f6e56; color:#fff; }
.map-div { width:1px; height:20px; background:#e6ece6; }
.map-mini { width:34px; height:32px; padding:0; font-size:1rem; }
.map-palette { display:none; align-items:center; gap:8px; flex-wrap:wrap; background:#fff; border:1px solid #eef2ee; border-radius:10px; padding:8px 12px; margin-bottom:12px; }
.map-palette-lbl { font-size:.78rem; font-weight:800; color:#3a463f; }
.map-palette-hint { font-size:.72rem; color:#8a8f8b; }
.pal { font-size:.72rem; font-weight:800; padding:4px 10px; border-radius:7px; border:1px solid #d3d1c7; background:#fff; cursor:pointer; color:#3a463f; }
.pal.armed { background:#0f6e56; color:#fff; border-color:#0f6e56; }
.pal-exit { border-left:3px solid #1baf7a; } .pal-alarm { border-left:3px solid #e24b4a; }
.pal-extinguisher { border-left:3px solid #d85a30; } .pal-aed { border-left:3px solid #d4537e; }
.pal-firstaid { border-left:3px solid #7f77dd; } .pal-phone { border-left:3px solid #eda100; }
.pal-camera { border-left:3px solid #185fa5; }
.mk { cursor:pointer; }
.mk-txt { fill:#fff; font-size:9px; font-weight:800; pointer-events:none; }
.mkc-camera { fill:#185fa5; stroke:#fff; stroke-width:1.6; }
.mkc-exit { fill:#1baf7a; stroke:#fff; stroke-width:1.5; }
.mkc-alarm { fill:#e24b4a; stroke:#fff; stroke-width:1.5; }
.mkc-extinguisher { fill:#d85a30; stroke:#fff; stroke-width:1.5; }
.mkc-aed { fill:#d4537e; stroke:#fff; stroke-width:1.5; }
.mkc-firstaid { fill:#7f77dd; stroke:#fff; stroke-width:1.5; }
.mkc-phone { fill:#eda100; stroke:#fff; stroke-width:1.5; }
#bmap.edit .mk { cursor:move; }
.map-legend-2 { display:grid; grid-template-columns:1fr 1fr; gap:4px 10px; }
.map-floor-move { font-size:.78rem; margin:4px 0 10px; color:#5f6d66; }
.map-floor-move button, .map-stage:fullscreen { }
.map-floor-move .mfl { font-size:.7rem; font-weight:800; padding:3px 8px; border:1px solid #c0dd97; background:#f4f9ec; color:#3b6d11; border-radius:6px; cursor:pointer; margin-left:4px; }
.map-stage:fullscreen { background:#fff; display:flex; align-items:center; justify-content:center; padding:2vh; }
.map-stage:fullscreen #bmap { max-height:96vh; }

/* Building map v3 - real layout (2026-07-10) */
.mzone-divider { stroke:#b06a3b; stroke-width:4; stroke-dasharray:10 5; }
.mzone-hint { fill:#8a8f8b; font-size:12px; font-weight:800; letter-spacing:.03em; }

/* map top legend bar */
.map-legendbar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; background:#fff; border:1px solid #eef2ee; border-radius:10px; padding:9px 14px; margin-bottom:12px; font-size:.78rem; color:#3a463f; }
.map-legendbar .mlg { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.map-legendbar .mlg-mut { color:#8a938c; }
.map-legendbar .mlg-hd { font-weight:800; color:#0f6e56; text-transform:uppercase; letter-spacing:.04em; font-size:.72rem; }
.map-legendbar .mlg-sep { width:1px; align-self:stretch; background:#e3ebe6; margin:0 2px; }
.map-legendbar .mlg-hint { color:#0f6e56; font-weight:600; margin-left:auto; }

/* ======================================================================
   Admin sidebar, 2026-08-08.

   Fixes two things that were broken rather than merely plain:
     - the JS has always added .nav-active to the current link, but nothing
       styled it, so the sidebar never showed where you were;
     - <details class="nav-g"> summaries were unstyled, so a collapsible
       group was indistinguishable from a flat section label.
   Plus the filter box that makes a 40-item menu usable.
   ====================================================================== */

/* the brand and the filter stay put while the list scrolls */
.admin-sidebar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.admin-sidebar::-webkit-scrollbar { width: 9px; }
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18); border-radius: 6px;
  border: 3px solid transparent; background-clip: content-box;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.32); background-clip: content-box; }

/* ---- filter ---------------------------------------------------------- */
.admin-navfind {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  margin: 10px 12px 4px;
  padding: 0 9px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.45);
}
.admin-navfind:focus-within {
  border-color: rgba(255,255,255,.34);
  background: rgba(0,0,0,.34);
  color: rgba(255,255,255,.75);
}
.admin-navfind svg { flex: 0 0 auto; }
.admin-navfind input {
  flex: 1 1 auto; min-width: 0;
  padding: 8px 0;
  background: none; border: 0; outline: none;
  color: #fff;
  font: inherit; font-size: .84rem; font-weight: 600;
}
.admin-navfind input::placeholder { color: rgba(255,255,255,.4); font-weight: 500; }
.admin-navfind input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.admin-navfind kbd {
  flex: 0 0 auto;
  padding: 1px 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px;
  font: inherit; font-size: .68rem; font-weight: 700;
  color: rgba(255,255,255,.5);
}
.admin-navfind:focus-within kbd { opacity: 0; }

.admin-nav-empty {
  margin: 10px 18px; padding: 0;
  color: rgba(255,255,255,.42);
  font-size: .82rem; font-style: italic;
}

/* ---- where you are (this rule did not exist) ------------------------- */
.admin-nav-v a.nav-active {
  background: rgba(255,255,255,.13);
  color: #fff;
  border-left-color: var(--gold);
}
.admin-nav-v a.nav-active svg { opacity: 1; }
.admin-nav-v a.nav-active:hover { background: rgba(255,255,255,.17); }

/* ---- collapsible groups look collapsible ----------------------------- */
.admin-nav-v details.nav-g > summary {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.admin-nav-v details.nav-g > summary::-webkit-details-marker { display: none; }
.admin-nav-v details.nav-g > summary::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: auto; margin-right: 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .12s ease;
}
.admin-nav-v details.nav-g[open] > summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.admin-nav-v details.nav-g > summary:hover { color: rgba(255,255,255,.72); }

/* a group holding the current page keeps a marker even when you scroll past */
.admin-nav-v details.nav-g:has(.nav-active) > summary { color: rgba(255,255,255,.66); }

/* ---- filtering ------------------------------------------------------- */
body.navfiltering .admin-nav-v details.nav-g > summary::after { opacity: .3; }
.admin-nav-v a[hidden], .admin-nav-v details[hidden], .admin-nav-v span[hidden] { display: none !important; }

@media (max-width: 820px) {
  .admin-navfind { margin: 6px 4px 4px; width: 100%; flex-basis: 100%; }
  .admin-sidebar:not(.nav-open) .admin-navfind { display: none; }
}

/* ======================================================================
   Admin sidebar scrolling, 2026-08-08.

   Measured before: at a 900px viewport with all groups open the sidebar's
   content ran 1207px and the scroll container was the whole <aside>. So the
   brand and the filter scrolled out of sight, and Sign out (offsetTop 1143)
   could not be reached without scrolling the bar itself - which, on a
   position:fixed element, page scrolling does not do.

   Now: brand + filter pinned top, Sign out pinned bottom, only the link list
   scrolls. min-height:0 on the nav is what actually allows a flex child to
   shrink below its content and scroll - without it the list just overflows.

   Scoped to >=821px; below that the sidebar is a sticky top bar with its own
   nav-open behaviour, which this must not touch.
   ====================================================================== */

@media (min-width: 821px) {
  .admin-sidebar {
    overflow: hidden;            /* the aside no longer scrolls... */
    overscroll-behavior: contain;
  }

  .admin-brand,
  .admin-navfind { flex: 0 0 auto; }

  .admin-nav-v {
    flex: 1 1 auto;
    min-height: 0;               /* ...the list does */
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 10px;
    /* a soft fade at the top and bottom edge so it is obvious there is more */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10px,
                                        #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 10px,
                                        #000 calc(100% - 14px), transparent 100%);
  }

  .admin-nav-v::-webkit-scrollbar { width: 8px; }
  .admin-nav-v::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.16); border-radius: 6px;
    border: 2px solid transparent; background-clip: content-box;
  }
  .admin-nav-v:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); background-clip: content-box; }
  .admin-nav-v { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }

  /* pinned to the bottom, out of the scrolling area */
  .admin-signout {
    flex: 0 0 auto;
    margin-top: 0;
    background: rgba(0,0,0,.22);
    border-top: 1px solid rgba(255,255,255,.12);
  }
}

/* Moving the sign-out form out of <nav> (so it can pin to the bottom on
   desktop) meant it was no longer hidden by .admin-nav-v{display:none} on
   mobile - it appeared in the collapsed top bar next to the Menu button.
   It belongs with the menu it used to live in. */
@media (max-width: 820px) {
  .admin-sidebar:not(.nav-open) .admin-signout { display: none; }
  .admin-sidebar.nav-open .admin-signout { width: 100%; flex-basis: 100%; }
}
/* ======================================================================
   BREATHING ROOM PASS (2026-08-23)
   Appended last so it wins on source order. Scoped to
   body.admin-portal .admin-main -- the CONTENT area only.
   The sidebar / nav is deliberately untouched (.admin-nav*, .nav-g,
   .admin-sidebar, .admin-signout, #navfind are all excluded).
   Remove this whole block to revert.
   ====================================================================== */

/* ---- 1. Type scale: floor the sub-12px text -------------------------- */
/* Measured on /admin: 61 of 143 leaf text nodes (43%) rendered under
   12.5px, 36 of them at 11.2px or smaller. That is the 'cramped' feeling. */
body.admin-portal .admin-main .bud-month small { font-size:0.74rem; }   /* was 0.6rem */
body.admin-portal .admin-main .recur-chip { font-size:0.74rem; }   /* was 0.6rem */
body.admin-portal .admin-main .util-tag { font-size:0.74rem; }   /* was 0.6rem */
body.admin-portal .admin-main .task-cat { font-size:0.74rem; }   /* was 0.62rem */
body.admin-portal .admin-main .bucket-chip { font-size:0.74rem; }   /* was 0.62rem */
body.admin-portal .admin-main .type-chip { font-size:0.74rem; }   /* was 0.62rem */
body.admin-portal .admin-main .util-delta { font-size:0.74rem; }   /* was 0.62rem */
body.admin-portal .admin-main .price-flag { font-size:0.74rem; }   /* was 0.64rem */
body.admin-portal .admin-main .flag-pill { font-size:0.74rem; }   /* was 0.66rem */
body.admin-portal .admin-main .resource-card .resource-label { font-size:0.74rem; }   /* was 0.66rem */
body.admin-portal .admin-main .task-share-chip { font-size:0.74rem; }   /* was 0.66rem */
body.admin-portal .admin-main .sys-lvl { font-size:0.74rem; }   /* was 0.66rem */
body.admin-portal .admin-main .sys-hero-num small { font-size:0.74rem; }   /* was 0.66rem */
body.admin-portal .admin-main .sheet-label { font-size:0.74rem; }   /* was 0.68rem */
body.admin-portal .admin-main .pe-item small { font-size:0.74rem; }   /* was 0.68rem */
body.admin-portal .admin-main .dash-stat small { font-size:0.74rem; }   /* was 0.68rem */
body.admin-portal .admin-main .cat-dd-count { font-size:0.74rem; }   /* was 0.68rem */
body.admin-portal .admin-main .sys-statline { font-size:0.74rem; }   /* was 0.68rem */
body.admin-portal .admin-main table thead th { font-size:0.8rem; }   /* was 0.7rem */
body.admin-portal .admin-main .task-due { font-size:0.8rem; }   /* was 0.7rem */
body.admin-portal .admin-main .bud-table th { font-size:0.8rem; }   /* was 0.7rem */
body.admin-portal .admin-main .sheet-status { font-size:0.8rem; }   /* was 0.7rem */
body.admin-portal .admin-main .pr-section-head { font-size:0.8rem; }   /* was 0.7rem */
body.admin-portal .admin-main .cat-dd-foot { font-size:0.8rem; }   /* was 0.7rem */
body.admin-portal .admin-main .pu-status-chip { font-size:0.8rem; }   /* was 0.7rem */
body.admin-portal .admin-main .stat-card span { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .priority { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .message-meta strong { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .purchase-status { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .purchase-status button { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .ready-chip { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .bud-kpi small { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .bud-actions .danger { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .bud-edit > summary { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .inventory-cat-card small { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .purchase-mark { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .dash-stat .sub { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .cal-up-meta { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .sys-meta { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .pal { font-size:0.8rem; }   /* was 0.72rem */
body.admin-portal .admin-main .task-assignee { font-size:0.8rem; }   /* was 0.74rem */
body.admin-portal .admin-main .bud-target-form button { font-size:0.8rem; }   /* was 0.74rem */
body.admin-portal .admin-main .cat-dd-n { font-size:0.8rem; }   /* was 0.74rem */
body.admin-portal .admin-main .pq-preset { font-size:0.8rem; }   /* was 0.74rem */
body.admin-portal .admin-main .task-count { font-size:0.8rem; }   /* was 0.75rem */
body.admin-portal .admin-main .completeness-list li small { font-size:0.8rem; }   /* was 0.75rem */
body.admin-portal .admin-main .pe-lbl { font-size:0.8rem; }   /* was 0.75rem */
body.admin-portal .admin-main .cal-up-date { font-size:0.8rem; }   /* was 0.75rem */
body.admin-portal .admin-main .task-actions .danger { font-size:0.86rem; }   /* was 0.76rem */
body.admin-portal .admin-main .cat-chip { font-size:0.86rem; }   /* was 0.76rem */
body.admin-portal .admin-main .sys-hero-sub { font-size:0.86rem; }   /* was 0.76rem */
body.admin-portal .admin-main .hub-card span { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .resource-card span { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .intro-callouts span { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main th { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .stat-card span, body.admin-portal .admin-main .result-summary span { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .status { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .ticket-message.internal .message-meta strong { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .ticket-facts dt { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .export-columns span { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .program-form .support { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .task-move select { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .task-edit > summary, body.admin-portal .admin-main .task-purchase > summary { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .cell-sub { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .bud-note { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .bud-legend { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .bud-years-label { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .pr-add-item { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .inv-cats-head small { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .sheet-email { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .pe-warnings { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .admin-main button.danger { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .dash-sec .dash-sec-links a { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .room-dd > button { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .pq-pct { font-size:0.86rem; }   /* was 0.78rem */
body.admin-portal .admin-main .credential-card span { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .quick-views-label { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .kpi-meta span { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .dash-link { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .task-desc { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .purchase-check { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .bud-kpi .updown { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .bud-target-form input { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .inventory-sheet-sync small { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .pr-total { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .pc-note { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .inv-status-label { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .room-dd-menu label { font-size:0.86rem; }   /* was 0.8rem */
body.admin-portal .admin-main .eyebrow { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .quick-views .button-link { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .footer-inner { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .step-list li span { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .filter-row .button-link, body.admin-portal .admin-main .quick-views .button-link { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .task-empty { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .completeness-note { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .resource-open { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .bud-subnav a { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .inventory-cat-card span { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .inv-showing { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .pe-check { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .pe-item span { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .cal-up-item { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .pq-church { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .sys-alert-row { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .util-svc-name { font-size:0.86rem; }   /* was 0.82rem */
body.admin-portal .admin-main .bud-cat .bud-table { font-size:0.9rem; }   /* was 0.84rem */
body.admin-portal .admin-main .admin-main .quick-tile { font-size:0.9rem; }   /* was 0.84rem */
body.admin-portal .admin-main .cat-dd-item { font-size:0.9rem; }   /* was 0.84rem */
body.admin-portal .admin-main .step-list li::before { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .dash-card table { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .resource-card p { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .bud-trend-row { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .bud-cat > summary .cat-sum { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .bud-renewals li { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .bud-search input { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .pc-meta { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .act-menu-list a { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .sheet-fix { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .admin-main button, body.admin-portal .admin-main .admin-main .button-link { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .cat-dd-check { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .pq-item { font-size:0.9rem; }   /* was 0.85rem */
body.admin-portal .admin-main .util-svc-amt { font-size:0.9rem; }   /* was 0.85rem */

/* ---- 2. Spacing & rhythm ------------------------------------------------ */
/* The 2026-07-08 polish pass added air but only ever matched .bud-* selectors,
   so budget pages breathe and nothing else does. Same treatment, whole surface. */

/* Panels / cards: roomier and consistent */
body.admin-portal .admin-main .form-card,
body.admin-portal .admin-main .dash-card,
body.admin-portal .admin-main .bud-panel,
body.admin-portal .admin-main .panel-card,
body.admin-portal .admin-main .sys-card { padding:20px 22px; }

/* Grid gaps: 8/10px reads as crowding at these type sizes */
body.admin-portal .admin-main .dash-stat-grid,
body.admin-portal .admin-main .stat-grid,
body.admin-portal .admin-main .inventory-category-grid,
body.admin-portal .admin-main .pe-items,
body.admin-portal .admin-main .pe-grid { gap:14px; }

/* Cards inside those grids */
body.admin-portal .admin-main .dash-stat { padding:16px 18px; }
body.admin-portal .admin-main .inventory-cat-card { min-height:84px; padding:14px 16px; }

/* Section rhythm: clearer separation between major blocks */
body.admin-portal .admin-main .dash-sec { margin:36px 0 16px; padding-bottom:10px; }
body.admin-portal .admin-main .dash-sec:first-of-type { margin-top:8px; }

/* Tables: roomier cells (the polish pass only did .bud-table) */
body.admin-portal .admin-main table th { padding:10px 12px; }
body.admin-portal .admin-main table td { padding:11px 12px; }

/* Toolbars / filter rows */
body.admin-portal .admin-main .inv-toolbar,
body.admin-portal .admin-main .inv-filterbar,
body.admin-portal .admin-main .filter-row { gap:14px; margin-bottom:18px; }

/* Buttons: taller targets now that the label is bigger */
body.admin-portal .admin-main button,
body.admin-portal .admin-main .button-link { min-height:40px; padding:0 16px; }
body.admin-portal .admin-main button.danger { min-height:34px; padding:0 13px; }

/* Readable measure + line-height for prose */
body.admin-portal .admin-main p,
body.admin-portal .admin-main li,
body.admin-portal .admin-main .lead { line-height:1.55; }

/* Page gutter */
@media (min-width:821px) {
  body.admin-portal .page.admin-main { padding:32px 40px 64px; }
}
