:root {
  --ink: #002147;
  --ink-2: #00162f;
  --muted: #617089;
  --line: #eadcc7;
  --panel: #fff7e9;
  --panel-strong: #fffbf4;
  --wash: #f4eadb;
  --gold: #e8970a;
  --gold-dark: #bd7907;
  --green: #25b35a;
  --blue: #002147;
  --purple: #415a7c;
  --orange: #e8970a;
  --red: #e9344f;
  --gray: #8792a6;
  --shadow: 0 14px 35px rgba(0, 33, 71, 0.1);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Project-first dashboard navigation */
.page-intro { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

.portfolio-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 24px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.portfolio-search svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.portfolio-search input { min-width: 0; height: 44px; border: 0; outline: 0; color: var(--ink); font: inherit; }
.portfolio-search .button { min-height: 42px; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-card:hover { transform: translateY(-2px); border-color: rgba(232, 151, 10, 0.5); box-shadow: 0 16px 36px rgba(0, 33, 71, 0.11); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-symbol { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: rgba(0, 83, 133, 0.1); }
.project-symbol svg { width: 23px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.project-card p { margin: 0 0 6px; color: var(--gold-dark); font-size: 11px; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.project-card h2 { margin: 0 0 7px; color: var(--ink); font-size: 20px; }
.project-card > div > span,
.project-card > div > div > span { color: var(--muted); font-size: 13px; }

.project-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-stats div { display: grid; gap: 3px; text-align: center; }
.project-stats div + div { border-left: 1px solid var(--line); }
.project-stats dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.project-stats dd { margin: 0; color: var(--ink); font-size: 18px; font-weight: 850; }
.project-open { display: flex; justify-content: space-between; color: var(--ink); font-size: 13px; font-weight: 850; text-decoration: none; }
.portfolio-empty { grid-column: 1 / -1; text-align: center; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--ink); font-weight: 750; text-decoration: none; }

.project-subnav {
  position: sticky;
  top: 88px;
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: -12px 0 24px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.project-subnav a { flex: 0 0 auto; padding: 9px 13px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-decoration: none; }
.project-subnav a:hover { color: var(--ink); background: rgba(0, 83, 133, 0.08); }
.section-block { margin-top: 24px; scroll-margin-top: 150px; }
.section-heading h2 { margin: 2px 0 0; color: var(--ink); font-size: 20px; }
.section-heading p { margin: 0; color: var(--gold-dark); font-size: 11px; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }

.site-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.site-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.site-card:hover { border-color: rgba(232, 151, 10, 0.55); }
.site-card-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: rgba(232, 151, 10, 0.12); }
.site-card-icon svg { width: 21px; fill: none; stroke: var(--gold-dark); stroke-width: 1.8; }
.site-card-copy,
.site-card-meta { display: grid; gap: 4px; }
.site-card-copy strong { color: var(--ink); }
.site-card-copy span,
.site-card-meta span { color: var(--muted); font-size: 12px; }
.site-card-meta { text-align: right; }
.site-arrow { color: var(--gold-dark); font-size: 20px; }
.compact-empty {
  grid-column: 1 / -1;
  padding: 18px 20px;
  color: var(--muted);
}

.project-dashboard-section-stack {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.project-dashboard-disclosure {
  scroll-margin-top: 150px;
}

.project-dashboard-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 0 20px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.project-dashboard-disclosure > summary::-webkit-details-marker {
  display: none;
}

.project-dashboard-disclosure > summary:hover {
  background: rgba(232, 151, 10, 0.08);
}

.project-dashboard-disclosure > summary:focus-visible {
  outline: 3px solid rgba(232, 151, 10, 0.45);
  outline-offset: -3px;
}

.project-dashboard-disclosure-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-dashboard-disclosure-title strong {
  font-size: 18px;
}

.project-dashboard-disclosure-chevron {
  color: var(--gold-dark);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease;
}

.project-dashboard-disclosure-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.project-dashboard-disclosure[open] > summary {
  border-bottom: 1px solid var(--line);
}

.project-dashboard-disclosure[open] .project-dashboard-disclosure-chevron {
  transform: rotate(90deg);
}

.project-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.project-data-grid > * { min-width: 0; scroll-margin-top: 150px; }

@media (max-width: 1500px) {
  .project-data-grid { grid-template-columns: 1fr; }
}

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

@media (max-width: 860px) {
  .site-card-grid { grid-template-columns: 1fr; }
  .project-subnav { top: 10px; }
}

@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .portfolio-search { grid-template-columns: 20px minmax(0, 1fr); }
  .portfolio-search .button { grid-column: 1 / -1; }
  .site-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-card-meta { grid-column: 2 / -1; text-align: left; }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(232, 151, 10, 0.16), transparent 36%),
    linear-gradient(315deg, rgba(0, 33, 71, 0.12), transparent 42%),
    linear-gradient(180deg, #fff6e7 0%, #edf3fb 100%);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgba(232, 151, 10, 0.24), transparent 34%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
  z-index: 30;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 10px 22px;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 0;
}

.sidebar .brand {
  margin-bottom: 14px;
  padding: 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  background: #d7d9dc;
  box-shadow: 0 10px 24px rgba(4, 20, 40, 0.2);
}

.sidebar .brand-product {
  color: var(--ink);
}

.nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  scrollbar-width: thin;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  flex: 0 0 auto;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(232, 151, 10, 0.98), rgba(189, 121, 7, 0.92));
}

.nav-button.disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.05);
}

.nav-button.disabled small {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.collapse {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  padding: 12px 12px 0;
}

.collapse .circle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr auto auto;
  align-items: center;
  gap: 22px;
  height: 92px;
  padding: 0 32px;
  background: rgba(255, 247, 233, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  place-items: center;
  padding: 10px;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

.search {
  position: relative;
  grid-column: 1;
}

.topbar-spacer {
  grid-column: 2;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  color: #8391ad;
}

.search input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 48px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--panel-strong);
}

.search input:focus {
  border-color: rgba(232, 151, 10, 0.75);
  box-shadow: 0 0 0 3px rgba(232, 151, 10, 0.16);
}

.top-icon {
  display: grid;
  grid-column: 3;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-strong);
}

.top-icon:hover {
  color: var(--gold-dark);
  border-color: rgba(232, 151, 10, 0.5);
}

.profile {
  display: flex;
  grid-column: 4;
  justify-self: end;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: var(--ink);
}

.profile-name {
  max-width: 190px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.link-button:hover {
  color: var(--gold-dark);
}

.content {
  padding: 30px 32px 42px;
}

.message-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.message {
  padding: 13px 16px;
  border: 1px solid rgba(0, 33, 71, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-strong);
  font-weight: 750;
}

.message.success {
  color: #126b33;
  border-color: rgba(37, 179, 90, 0.32);
  background: rgba(37, 179, 90, 0.1);
}

.message.error {
  color: #c8203d;
  border-color: rgba(233, 52, 79, 0.32);
  background: rgba(233, 52, 79, 0.1);
}

.page-notice {
  margin-bottom: 22px;
  color: var(--navy);
  border-color: rgba(42, 109, 181, 0.28);
  background: rgba(42, 109, 181, 0.08);
}

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

.page-heading p {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
}

.heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(232, 151, 10, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: var(--panel-strong);
  border-color: var(--line);
  box-shadow: none;
}

.button.danger {
  color: #ffffff;
  background: #c8203d;
  box-shadow: none;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.metric-card,
.panel {
  border: 1px solid rgba(234, 220, 199, 0.92);
  border-radius: 8px;
  background: rgba(255, 251, 244, 0.9);
  box-shadow: var(--shadow);
}

.metric-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 128px;
  padding: 18px;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #ffffff;
}

.tone-teal,
.tone-orange {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.tone-green {
  background: linear-gradient(135deg, #25b35a, #16823d);
}

.tone-blue {
  background: linear-gradient(135deg, #002147, #17416f);
}

.tone-purple {
  background: linear-gradient(135deg, #415a7c, #253a58);
}

.tone-red {
  background: linear-gradient(135deg, #e9344f, #b91f38);
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.metric-value {
  margin-top: 5px;
  font-size: 32px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.metric-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.workspace-main-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.panel-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.table-filter-clear {
  display: inline-block;
  margin-top: 5px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.table-filter-clear:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-scroll-hint {
  margin: 8px 20px;
  font-size: 0.875rem;
}

.table-scroll-hint[hidden] {
  display: none;
}

.table-wrap:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

@media (min-width: 861px) {
  .data-table-documents,
  .data-table-payroll,
  .data-table-reports {
    min-width: 0;
  }
}

th,
td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(234, 220, 199, 0.78);
}

th {
  color: var(--muted);
  background: rgba(244, 234, 219, 0.55);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.28);
}

tbody tr:hover td {
  background: rgba(232, 151, 10, 0.07);
}

.status-table-heading > th {
  padding: 10px 16px;
  border-top: 8px solid #ffffff;
  border-bottom: 1px solid rgba(0, 33, 71, 0.12);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

.status-group-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.status-group-toggle:focus-visible {
  outline: 3px solid rgba(44, 125, 168, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}

.status-group-heading-copy {
  display: flex;
  min-width: 0;
  align-items: center;
}

.status-group-chevron {
  display: inline-block;
  margin-right: 8px;
  font-size: 24px;
  line-height: 0.7;
  transition: transform 160ms ease;
}

.status-group-toggle[aria-expanded="true"] .status-group-chevron {
  transform: rotate(90deg);
}

.status-table-heading .status-group-label {
  font-size: 14px;
  font-weight: 900;
}

.status-table-heading small {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.status-table-heading strong {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
}

.status-table-group.orange .status-table-heading > th {
  color: #865000;
  background: #fff6e6;
}

.status-table-group.orange .status-table-heading strong {
  background: #f7dcae;
}

.status-table-group.red .status-table-heading > th {
  color: #a51f35;
  background: #fff0f2;
}

.status-table-group.red .status-table-heading strong {
  background: #f5cfd6;
}

.status-table-group.green .status-table-heading > th {
  color: #216b38;
  background: #edf8ef;
}

.status-table-group.green .status-table-heading strong {
  background: #cfe8d4;
}

.status-table-group.blue .status-table-heading > th {
  color: #1d5f84;
  background: #edf7fc;
}

.status-table-group.blue .status-table-heading strong {
  background: #cfe7f4;
}

.status-table-group.purple .status-table-heading > th {
  color: #415a7c;
  background: #f0f3f8;
}

.status-table-group.purple .status-table-heading strong {
  background: #d9e0ea;
}

.status-table-group.gray .status-table-heading > th {
  color: #596579;
  background: #f3f5f7;
}

.status-table-group.gray .status-table-heading strong {
  background: #dde2e8;
}

.status-table-group.orange .status-table-record > td:first-child {
  border-left: 4px solid #d79018;
}

.status-table-group.red .status-table-record > td:first-child {
  border-left: 4px solid #c8203d;
}

.status-table-group.green .status-table-record > td:first-child {
  border-left: 4px solid #35874b;
}

.status-table-group.blue .status-table-record > td:first-child {
  border-left: 4px solid #2c7da8;
}

.status-table-group.purple .status-table-record > td:first-child {
  border-left: 4px solid #60789b;
}

.status-table-group.gray .status-table-record > td:first-child {
  border-left: 4px solid #7d8798;
}

@media (max-width: 680px) {
  .status-table-heading small {
    display: block;
    margin-top: 3px;
    margin-left: 0;
  }
}

.cell-primary,
.cell-secondary {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-primary {
  font-weight: 800;
}

.table-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(232, 151, 10, 0.55);
  text-underline-offset: 3px;
}

.table-link:hover {
  color: var(--gold-dark);
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 245px;
  height: auto;
  object-fit: contain;
}

.brand-product {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.attendance-register-response-row > td {
  padding: 10px 12px 16px;
  background: rgba(244, 234, 219, 0.28);
}

.attendance-register-count {
  display: inline-grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  padding: 4px 9px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 900;
}

.attendance-register-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.attendance-register-metric > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.attendance-register-count.total {
  color: var(--navy);
  background: #e7eef6;
}

.attendance-register-count.pending {
  color: #865000;
  background: #fff0d5;
}

.attendance-register-count.declined {
  color: #a51f35;
  background: #fbe3e7;
}

.attendance-register-count.submitted {
  color: #216b38;
  background: #e4f3e6;
}

.attendance-register-email-error {
  display: inline-block;
  margin-top: 8px;
  color: #a51f35;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.attendance-register-response-row:hover > td {
  background: rgba(244, 234, 219, 0.28);
}

.attendance-register-disclosure {
  overflow: hidden;
  border: 1px solid rgba(0, 33, 71, 0.2);
  border-radius: 10px;
  background: #ffffff;
}

.attendance-register-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px 16px;
  border-left: 5px solid var(--gold);
  color: #ffffff;
  background: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.attendance-register-disclosure > summary::-webkit-details-marker {
  display: none;
}

.attendance-register-disclosure > summary:hover {
  background: #07376c;
  box-shadow: inset 0 0 0 1px rgba(232, 151, 10, 0.55);
}

.attendance-register-disclosure > summary:focus-visible {
  outline: 3px solid rgba(232, 151, 10, 0.65);
  outline-offset: 3px;
}

.attendance-register-disclosure-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.attendance-register-disclosure-action > span:last-child {
  display: grid;
  gap: 2px;
}

.attendance-register-disclosure-action strong {
  font-size: 15px;
}

.attendance-register-disclosure-action small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.attendance-register-disclosure-chevron {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease;
}

.attendance-register-disclosure-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.disclosure-open-label {
  display: none;
}

.attendance-register-disclosure[open] > summary {
  border-bottom: 1px solid rgba(0, 33, 71, 0.2);
  color: var(--ink);
  background: #e8f0f8;
}

.attendance-register-disclosure[open] > summary:hover {
  background: #dce9f5;
}

.attendance-register-disclosure[open] .attendance-register-disclosure-chevron {
  transform: rotate(90deg);
}

.attendance-register-disclosure[open] .attendance-register-disclosure-action small {
  color: var(--muted);
}

.attendance-register-disclosure[open] .attendance-register-disclosure-count {
  color: var(--ink);
  border-color: rgba(0, 33, 71, 0.16);
  background: rgba(0, 33, 71, 0.08);
}

.attendance-register-disclosure[open] .disclosure-closed-label {
  display: none;
}

.attendance-register-disclosure[open] .disclosure-open-label {
  display: inline;
}

.attendance-register-response-table table {
  margin: 0;
}

.attendance-register-status-heading > th {
  padding: 10px 16px;
  border-top: 8px solid #ffffff;
  border-bottom: 1px solid rgba(0, 33, 71, 0.12);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

.attendance-register-status-heading .status-group-label {
  font-size: 14px;
  font-weight: 900;
}

.attendance-register-status-heading small {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.attendance-register-status-heading strong {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
}

.attendance-register-status-group.pending .attendance-register-status-heading > th {
  color: #865000;
  background: #fff6e6;
}

.attendance-register-status-group.pending .attendance-register-status-heading strong {
  background: #f7dcae;
}

.attendance-register-status-group.declined .attendance-register-status-heading > th {
  color: #a51f35;
  background: #fff0f2;
}

.attendance-register-status-group.declined .attendance-register-status-heading strong {
  background: #f5cfd6;
}

.attendance-register-status-group.submitted .attendance-register-status-heading > th {
  color: #216b38;
  background: #edf8ef;
}

.attendance-register-status-group.submitted .attendance-register-status-heading strong {
  background: #cfe8d4;
}

.attendance-register-status-group.superseded .attendance-register-status-heading > th {
  color: #526477;
  background: #f0f3f6;
}

.attendance-register-status-group.superseded .attendance-register-status-heading strong {
  background: #dce3e9;
}

.attendance-register-status-group.pending .attendance-register-status-record > td:first-child {
  border-left: 4px solid #d79018;
}

.attendance-register-status-group.declined .attendance-register-status-record > td:first-child {
  border-left: 4px solid #c8203d;
}

.attendance-register-status-group.submitted .attendance-register-status-record > td:first-child {
  border-left: 4px solid #35874b;
}

.attendance-register-status-group.superseded .attendance-register-status-record > td:first-child {
  border-left: 4px solid #7b8b9b;
}

@media (max-width: 680px) {
  .status-group-heading-copy {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .attendance-register-disclosure > summary {
    align-items: flex-start;
    padding: 12px;
  }

  .attendance-register-disclosure-action small {
    display: none;
  }

  .attendance-register-disclosure-count {
    white-space: nowrap;
  }
}

.cell-secondary {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
}

.learner-filter-panel {
  margin-bottom: 20px;
}

.learner-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
}

.learner-filter-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.learner-filter-form select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  text-transform: none;
}

.staff-filter-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.learner-filter-form.register-history-filter {
  grid-template-columns: minmax(180px, 320px) auto;
  justify-content: start;
}

@media (max-width: 600px) {
  .learner-filter-form.register-history-filter {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }
}

.learner-hours-filter {
  grid-template-columns: repeat(2, minmax(180px, 240px)) auto;
  padding: 0 22px 18px;
}

.learner-hours-filter-error {
  grid-column: 1 / -1;
  margin: 0;
}

.learner-hours-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 22px;
}

.learner-hours-summary article {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.learner-hours-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.learner-hours-summary strong {
  font-size: 1.45rem;
}

.learner-filter-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 850px) {
  .learner-hours-filter,
  .learner-hours-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .learner-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .learner-filter-form {
    grid-template-columns: 1fr;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.pill.green,
.text-green {
  color: #16823d;
}

.pill.green {
  background: rgba(37, 179, 90, 0.13);
}

.pill.blue,
.text-blue {
  color: #002147;
}

.pill.blue {
  background: rgba(0, 33, 71, 0.12);
}

.pill.orange,
.text-orange {
  color: #bd7907;
}

.pill.orange {
  background: rgba(232, 151, 10, 0.14);
}

.pill.red,
.text-red {
  color: #c8203d;
}

.pill.red {
  background: rgba(233, 52, 79, 0.13);
}

.pill.purple,
.text-purple {
  color: #415a7c;
}

.pill.purple {
  background: rgba(65, 90, 124, 0.14);
}

.pill.gray,
.text-gray {
  color: #687386;
}

.pill.gray {
  background: rgba(97, 112, 137, 0.13);
}

.side-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

@media (min-width: 861px) {
  .table-wrap {
    overflow-x: visible;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    padding-right: 12px;
    padding-left: 12px;
    overflow-wrap: anywhere;
  }

  .cell-primary,
  .cell-secondary {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .pill {
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
    text-align: center;
    white-space: normal;
  }
}

.detail-list {
  display: grid;
  gap: 0;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(234, 220, 199, 0.75);
}

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

.detail-row span {
  color: var(--muted);
  font-weight: 700;
}

.detail-row strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.detail-row-link {
  color: inherit;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.detail-row-link:hover,
.detail-row-link.active {
  background: rgba(232, 151, 10, 0.11);
  box-shadow: inset 4px 0 var(--orange);
}

.detail-row-link:focus-visible {
  outline: 3px solid rgba(232, 151, 10, 0.45);
  outline-offset: -3px;
}

/* Reserve the arrow column even on non-clickable project setup rows. */
.project-setup-list > .detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 14px;
}

.project-setup-list > .detail-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-setup-list > .detail-row > strong {
  grid-column: 2;
}

.project-setup-list > .detail-row-link::after {
  grid-column: 3;
  justify-self: end;
}

.table-pagination {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  padding: 16px 20px;
}

.table-pagination span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-right: auto;
}

.detail-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.detail-row-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

/* Keep summary counts aligned regardless of label length or missing links. */
.side-panel-details > .detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4ch, 6ch) 14px;
}

.side-panel-details .detail-row-copy {
  overflow-wrap: anywhere;
}

.side-panel-details > .detail-row > strong {
  grid-column: 2;
  font-variant-numeric: tabular-nums;
}

.side-panel-details > .detail-row-link::after {
  grid-column: 3;
  justify-self: end;
}

.detail-row-link::after {
  content: "›";
  color: var(--gold-dark);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}

.activity-list {
  display: grid;
  gap: 0;
}

.activity-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(234, 220, 199, 0.75);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--gray);
}

.activity-dot.green {
  background: var(--green);
}

.activity-dot.orange {
  background: var(--orange);
}

.activity-dot.red {
  background: var(--red);
}

.activity-dot.blue {
  background: var(--blue);
}

.activity-dot.purple {
  background: var(--purple);
}

.activity-item strong,
.activity-item span,
.activity-item em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.activity-item strong {
  font-size: 14px;
}

.activity-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.activity-item em {
  margin-top: 5px;
  color: var(--gold-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.login-shell {
  width: min(100%, 460px);
}

.login-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 251, 244, 0.94);
  box-shadow: var(--shadow);
}

.login-brand {
  justify-items: start;
  padding: 0 0 24px;
  color: var(--ink);
}

.login-brand .brand-logo {
  max-width: 340px;
}

.login-brand .brand-product {
  color: var(--ink);
  font-size: 15px;
}

.login-panel h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0;
}

.login-panel p {
  margin: 10px 0 28px;
  color: var(--muted);
}

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

.login-form label {
  color: var(--ink);
  font-weight: 850;
}

.login-form input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  outline: 0;
}

.login-form input:focus {
  border-color: rgba(232, 151, 10, 0.78);
  box-shadow: 0 0 0 3px rgba(232, 151, 10, 0.16);
}

.login-form .button {
  width: 100%;
  margin-top: 8px;
}

.form-errors,
.errorlist {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #c8203d;
  background: rgba(233, 52, 79, 0.1);
  list-style: none;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.single-form-layout {
  grid-template-columns: minmax(0, 920px);
}

.form-panel {
  max-width: 920px;
}

.dashboard-form {
  padding: 22px;
}

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

.form-field {
  min-width: 0;
}

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

.form-section-heading {
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-section-heading h3,
.form-section-heading p {
  margin: 0;
}

.form-section-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.contact-formset {
  margin-top: 24px;
}

.contact-formset-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.contact-formset-heading h3,
.contact-formset-heading .help-text {
  margin: 0;
}

.contact-formset-heading .help-text {
  margin-top: 5px;
}

.document-defaults-notice {
  max-width: 680px;
  margin-top: 12px;
  padding: 11px 13px;
  color: var(--navy);
  border: 1px solid rgba(42, 109, 181, 0.3);
  border-radius: 9px;
  background: rgba(42, 109, 181, 0.09);
  font-size: 13px;
  line-height: 1.45;
}

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

.contact-form-row {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
}

.contact-form-row[hidden] {
  display: none;
}

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

.compact-button {
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
}

.contact-form-row > .compact-button {
  margin-top: 12px;
}

.contact-form-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold-dark);
}

.form-field > label,
.danger-zone label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.form-field input:not([type="checkbox"]),
.form-field select,
.form-field textarea,
.danger-zone input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  outline: 0;
}

.form-field textarea {
  min-height: 96px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.danger-zone input:focus {
  border-color: rgba(232, 151, 10, 0.78);
  box-shadow: 0 0 0 3px rgba(232, 151, 10, 0.16);
}

.checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.checkbox-control input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold-dark);
}

#id_assigned_projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

#id_assigned_projects label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

[data-learner-project-sites-form] #id_sites,
[data-registration-approval-form] #id_sites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

[data-learner-project-sites-form] #id_sites > div[hidden],
[data-registration-approval-form] #id_sites > div[hidden] {
  display: none;
}

[data-learner-project-sites-form] #id_sites label,
[data-registration-approval-form] #id_sites label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

[data-learner-project-sites-form] #id_sites input[type="checkbox"],
[data-registration-approval-form] #id_sites input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--gold-dark);
}

.learner-sites-message {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

#id_assigned_projects input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-dark);
}

#id_assigned_supervisors {
  min-height: 148px;
}

.help-text {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.help-text ul {
  margin: 5px 0 0;
  padding-left: 20px;
}

.fallback-learner-search {
  position: relative;
}

.learner-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% - 18px);
  right: 0;
  left: 0;
  max-height: 310px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(39, 32, 22, 0.16);
}

.learner-search-results[hidden] {
  display: none;
}

.learner-search-result {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(234, 220, 199, 0.72);
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.learner-search-result:last-child {
  border-bottom: 0;
}

.learner-search-result:hover,
.learner-search-result:focus {
  background: rgba(232, 151, 10, 0.1);
  outline: 0;
}

.learner-search-empty {
  padding: 14px;
  color: var(--muted);
}

[data-register-selector] {
  min-width: 0;
}

[data-register-selector] > label {
  display: block;
  margin-bottom: 6px;
}

[data-register-search] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

[data-register-results] {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 10px;
}

.register-recipient-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.register-recipient-result input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.google-maps-attribution {
  display: block;
  margin-top: 4px;
  color: #5e5e5e;
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.3;
  white-space: nowrap;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.account-summary {
  min-width: 0;
}

.linked-action {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.linked-action .button {
  width: 100%;
}

.danger-zone {
  padding: 20px;
  border-top: 1px solid rgba(233, 52, 79, 0.2);
  background: rgba(233, 52, 79, 0.05);
}

.danger-zone h3 {
  margin: 0;
  color: #c8203d;
  font-size: 16px;
}

.danger-zone p {
  margin: 7px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.danger-zone input {
  margin-bottom: 12px;
}

.activation-zone {
  border-top-color: rgba(22, 154, 106, 0.2);
  background: rgba(22, 154, 106, 0.06);
}

.activation-zone h3 {
  color: #10734f;
}

[data-geometry-group][hidden] {
  display: none;
}

.secondary-table-panel {
  margin-top: 0;
}

/* Attendance register and timesheet demo workspace */
.register-filter-panel { margin-bottom: 20px; }
.panel-kicker { margin: 0 0 4px; color: var(--gold-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.register-filter-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; align-items: end; gap: 12px; padding: 18px; }
.register-filter-form label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.register-filter-form input,
.register-filter-form select { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 13px; text-transform: none; }
.register-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.register-template-card { display: grid; gap: 20px; padding: 22px; }
.register-template-card h2 { margin: 0 0 8px; color: var(--ink); font-size: 21px; }
.register-template-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.template-card-top { display: flex; align-items: center; justify-content: space-between; }
.template-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; color: var(--ink); background: rgba(0, 33, 71, .1); }
.template-icon.gold { color: var(--gold-dark); background: rgba(232, 151, 10, .14); }
.template-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.template-meta div { min-width: 0; padding: 11px; background: #fff; }
.template-meta div + div { border-left: 1px solid var(--line); }
.template-meta dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.template-meta dd { margin: 4px 0 0; color: var(--ink); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.disabled-button { opacity: .55; cursor: not-allowed; text-align: center; }
.timesheet-generation-panel { margin-bottom: 20px; }
.timesheet-generation-panel > p { margin: 0 18px; color: var(--muted); font-size: 13px; }
.attendance-register-recipient { display: grid; gap: 4px; margin: 14px 18px 0; padding: 13px 15px; border: 1px solid rgba(232, 151, 10, .35); border-radius: 9px; background: rgba(232, 151, 10, .08); }
.attendance-register-recipient span { color: var(--ink); overflow-wrap: anywhere; }
.attendance-register-recipient small { color: var(--muted); }
.timesheet-batch-form { padding: 0 18px 18px; }
.timesheet-batch-form fieldset { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.supervisor-selector { display: grid; gap: 6px; max-width: 430px; margin-top: 18px; }
.supervisor-selector select { height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.supervisor-selector small { color: var(--muted); }
.compact-button { width: auto; padding: 7px 12px; }
.timesheet-batch-form ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 9px 18px; margin: 12px 0 0; padding: 0; list-style: none; }
.form-errors { margin: 10px 0; color: #9b1c1c; }

@media (max-width: 1240px) {
  .register-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .register-template-grid { grid-template-columns: 1fr; }
  .register-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .register-filter-form { grid-template-columns: 1fr; }
  .template-meta { grid-template-columns: 1fr; }
  .template-meta div + div { border-top: 1px solid var(--line); border-left: 0; }
}

.leave-calendar-panel {
  margin-bottom: 22px;
}

.leave-calendar-heading {
  flex-wrap: wrap;
}

.leave-calendar-title {
  display: grid;
  gap: 5px;
}

.leave-calendar-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.leave-calendar-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leave-calendar-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.leave-calendar-navigation a:hover {
  color: var(--gold-dark);
  border-color: rgba(232, 151, 10, 0.5);
}

.leave-calendar-filter {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.leave-calendar-filter > label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.leave-calendar-filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 9px;
}

.leave-calendar-filter-controls input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #ffffff;
}

.leave-calendar-filter-controls input:focus {
  outline: 2px solid rgba(232, 151, 10, 0.25);
  border-color: var(--gold);
}

.leave-calendar-filter-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.leave-calendar-filter-status.error {
  color: var(--red);
}

.leave-learner-results {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.leave-learner-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255, 251, 244, 0.92);
  text-decoration: none;
}

.leave-learner-result:hover {
  border-color: rgba(232, 151, 10, 0.58);
  background: rgba(232, 151, 10, 0.08);
}

.leave-learner-result > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.leave-learner-result > span:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.leave-learner-result small,
.leave-learner-result > span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.leave-learner-result > span:last-child strong {
  color: var(--gold-dark);
}

.leave-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.leave-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.leave-calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.leave-calendar-legend .pending {
  background: #687386;
}

.leave-calendar-legend .approved {
  background: #16823d;
}

.leave-calendar-legend .rejected {
  background: #c8203d;
}

.leave-calendar-scroll {
  overflow-x: auto;
  padding: 16px;
}

.leave-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 1px;
  min-width: 896px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.leave-calendar-weekday {
  padding: 10px 8px;
  color: var(--muted);
  background: rgba(244, 234, 219, 0.9);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.leave-calendar-day {
  min-height: 142px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.84);
}

.leave-calendar-day.outside-month {
  background: rgba(244, 238, 228, 0.72);
}

.leave-calendar-day > time {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-bottom: 7px;
  border-radius: 50%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.leave-calendar-day.outside-month > time {
  color: #9aa1ae;
}

.leave-calendar-day.today > time {
  color: #ffffff;
  background: var(--ink);
}

.leave-calendar-events {
  display: grid;
  gap: 5px;
}

.leave-calendar-event {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-left: 3px solid currentColor;
  border-radius: 5px;
  text-decoration: none;
}

.leave-calendar-event strong,
.leave-calendar-event span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leave-calendar-event strong {
  color: inherit;
  font-size: 12px;
}

.leave-calendar-event span {
  color: inherit;
  font-size: 10px;
  opacity: 0.86;
}

.leave-calendar-event.pending {
  color: #596579;
  background: rgba(97, 112, 137, 0.13);
}

.leave-calendar-event.approved {
  color: #10713a;
  background: rgba(37, 179, 90, 0.13);
}

.leave-calendar-event.rejected {
  color: #a91931;
  background: rgba(233, 52, 79, 0.12);
}

.leave-calendar-event:hover {
  filter: brightness(0.94);
}

@media (max-width: 680px) {
  .leave-calendar-filter-controls {
    grid-template-columns: 1fr 1fr;
  }

  .leave-calendar-filter-controls input {
    grid-column: 1 / -1;
  }

  .leave-learner-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .leave-learner-result > span:last-child {
    text-align: left;
  }
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.review-record,
.review-actions {
  min-width: 0;
}

.attendance-record-picker {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
  margin-bottom: 22px;
}

.attendance-record-picker > div {
  display: grid;
  gap: 7px;
  min-width: min(100%, 420px);
}

.attendance-record-picker label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.attendance-record-picker select {
  width: 100%;
}

.attendance-record-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.attendance-action-disclosure {
  overflow: hidden;
}

.attendance-action-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.attendance-action-disclosure > summary::-webkit-details-marker {
  display: none;
}

.attendance-action-disclosure > summary span:first-child {
  display: grid;
  gap: 4px;
}

.attendance-action-disclosure > summary small {
  color: var(--muted);
  font-weight: 500;
}

.attendance-action-disclosure[open] > summary {
  border-bottom: 1px solid var(--line);
}

.attendance-disclosure-icon {
  font-size: 0;
  transition: transform 160ms ease;
}

.attendance-disclosure-icon::before {
  content: "\2304";
  font-size: 24px;
}

.attendance-action-disclosure[open] .attendance-disclosure-icon {
  transform: rotate(180deg);
}

.attendance-disclosure-content {
  padding: 22px;
}

.attendance-location-summary,
.attendance-audit-disclosure {
  margin-top: 22px;
}

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

.attendance-summary-grid article {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  min-height: 105px;
  padding: 20px 24px;
}

.attendance-summary-grid article + article {
  border-left: 1px solid var(--line);
}

.attendance-summary-grid article > span:first-child,
.attendance-summary-grid small {
  color: var(--muted);
  font-size: 13px;
}

.attendance-summary-grid strong:not(.pill) {
  color: var(--ink);
  font-size: 25px;
}

.attendance-disclosure-count {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(47, 128, 201, 0.12);
  font-weight: 850;
}

@media (max-width: 680px) {
  .attendance-record-picker {
    align-items: stretch;
    flex-direction: column;
  }

  .attendance-summary-grid {
    grid-template-columns: 1fr;
  }

  .attendance-summary-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

.review-section {
  padding: 22px;
  border-top: 1px solid var(--line);
}

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

.record-grid div {
  min-width: 0;
}

.record-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.record-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.section-heading h3,
.rejection-summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.document-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.document-list a {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 15px;
  color: var(--ink);
  text-decoration: none;
  background: #ffffff;
}

.document-list a + a {
  border-top: 1px solid var(--line);
}

.document-list a:hover {
  background: rgba(232, 151, 10, 0.08);
}

.document-list span {
  color: var(--muted);
}

.document-list strong {
  overflow-wrap: anywhere;
}

.empty-inline {
  margin: 0;
  padding: 16px;
  color: var(--muted);
}

.decision-form {
  display: grid;
  gap: 15px;
  padding: 20px;
}

.decision-form + .decision-form {
  border-top: 1px solid var(--line);
}

.decision-form .button {
  width: 100%;
}

.rejection-form {
  background: rgba(233, 52, 79, 0.05);
}

.decision-complete {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.decision-complete strong {
  color: var(--ink);
  font-size: 20px;
}

.decision-complete span {
  color: var(--muted);
}

.rejection-summary {
  color: #8f2437;
  background: rgba(233, 52, 79, 0.06);
}

.rejection-summary p {
  margin: 8px 0 0;
}

.pill.submitted {
  color: #9a5b00;
  background: rgba(232, 151, 10, 0.14);
}

.pill.approved {
  color: #10734f;
  background: rgba(22, 154, 106, 0.13);
}

.pill.rejected {
  color: #c8203d;
  background: rgba(233, 52, 79, 0.12);
}

.pill.draft {
  color: #667085;
  background: rgba(102, 112, 133, 0.12);
}

.errorlist {
  padding: 8px 0 0;
  background: transparent;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-button {
    gap: 12px;
    padding: 0 12px;
  }

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

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

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

  .review-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 310px);
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 20px 0 40px rgba(0, 33, 71, 0.18);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    height: auto;
    min-height: 78px;
    padding: 14px 18px;
  }

  .search,
  .profile {
    grid-column: auto;
  }

  .menu-button {
    display: block;
  }

  .topbar-spacer,
  .top-icon {
    display: none;
  }

  .profile {
    min-width: 0;
  }

  .profile-name {
    display: none;
  }

  .content {
    padding: 24px 18px 34px;
  }

  .page-heading {
    display: grid;
    align-items: start;
  }

  .heading-actions {
    justify-content: start;
  }

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

  .form-grid,
  #id_assigned_projects,
  [data-learner-project-sites-form] #id_sites,
  [data-registration-approval-form] #id_sites {
    grid-template-columns: 1fr;
  }

  .record-grid,
  .document-list a {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 800px) {
  .sidebar {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .brand {
    padding-bottom: 14px;
  }

  .nav-button {
    min-height: 44px;
  }

  .collapse {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile {
    display: none;
  }

  .search input {
    height: 48px;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .metric-card {
    min-height: 112px;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .metric-icon {
    width: 48px;
    height: 48px;
  }

  .metric-value {
    font-size: 28px;
  }

  .button {
    width: 100%;
  }

  .form-actions {
    display: grid;
  }

  .heading-actions {
    width: 100%;
  }

  .login-panel {
    padding: 26px 20px;
  }
}
.page-heading-actions,
.attendance-template-title-row,
.attendance-template-save-bar,
.attendance-template-save-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill.superseded {
  background: #ece8df;
  color: #625c52;
}

.dashboard-dialog {
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid var(--border-color, #e3d8c5);
  border-radius: 20px;
  padding: 1.5rem;
  color: #071f44;
  background: #fffcf7;
  box-shadow: 0 24px 80px rgba(7, 31, 68, 0.28);
}

.dashboard-dialog::backdrop {
  background: rgba(7, 31, 68, 0.55);
}

.dashboard-dialog-heading,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 1rem;
}

.document-history-list {
  display: grid;
  gap: 0.75rem;
}

.document-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid #eadfce;
  border-radius: 14px;
  background: #fff;
}

.document-history-item small,
.document-history-item p {
  grid-column: 1 / -1;
  margin: 0;
}

.attendance-register-template-choice {
  display: grid;
  max-width: 620px;
  gap: 6px;
  margin-bottom: 20px;
}

.attendance-register-template-choice label,
.attendance-template-label-fields label,
.attendance-template-settings label {
  color: #20324c;
  font-weight: 800;
}

.attendance-register-template-choice select,
.attendance-template-label-fields input,
.attendance-template-settings input,
.attendance-template-settings select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b8c2cf;
  border-radius: 7px;
  background: #fff;
  color: #142238;
}

.attendance-template-list {
  display: grid;
  gap: 14px;
}

.attendance-template-list-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  background: #fbfcfe;
}

.attendance-template-list-item h3,
.attendance-template-list-item p {
  margin: 0 0 7px;
}

.attendance-template-label-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.attendance-template-label-sample span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf0f8;
  color: #2d4668;
  font-size: 12px;
}

.attendance-template-list-actions {
  min-width: 250px;
  text-align: right;
}

.attendance-template-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.attendance-template-action-buttons form {
  margin: 0;
}

.attendance-template-list-actions details {
  margin-top: 12px;
  font-size: 12px;
}

.attendance-template-list-actions ol {
  text-align: left;
}

.attendance-template-editor-grid {
  display: grid;
  grid-template-columns: minmax(340px, .85fr) minmax(500px, 1.15fr);
  gap: 20px;
  align-items: start;
}

.attendance-template-label-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.attendance-template-label-fields label,
.attendance-template-settings label {
  display: grid;
  gap: 6px;
}

.attendance-template-live-preview {
  position: sticky;
  top: 18px;
}

.attendance-template-live-preview table {
  font-size: 12px;
}

.attendance-template-live-preview th {
  width: 22%;
  color: #fff;
  background: #002147;
}

.attendance-template-live-preview td {
  width: 28%;
  background: #f7f9fc;
}

.attendance-template-save-bar {
  position: sticky;
  bottom: 0;
  justify-content: space-between;
  z-index: 4;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid #d7dde5;
  border-radius: 10px 10px 0 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -8px 24px rgba(20, 34, 56, .08);
}

.attendance-template-save-bar p {
  margin: 0;
  color: #52647c;
}

@media (max-width: 1000px) {
  .attendance-template-editor-grid { grid-template-columns: 1fr; }
  .attendance-template-live-preview { position: static; }
}

@media (max-width: 700px) {
  .attendance-template-list-item,
  .attendance-template-save-bar { align-items: stretch; flex-direction: column; }
  .attendance-template-list-actions { min-width: 0; text-align: left; }
  .attendance-template-action-buttons { justify-content: flex-start; }
  .attendance-template-label-fields { grid-template-columns: 1fr; }
}
.learner-assignment-search {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}

.search-row {
  align-items: stretch;
  display: flex;
  gap: 0.75rem;
}

.search-row input {
  flex: 1;
  min-width: 0;
}

.site-location-panel {
  margin-top: 20px;
  padding: 24px;
}

.site-location-map-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  width: 100%;
}

.site-location-map-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.site-location-map-heading h3,
.site-location-map-heading p {
  margin: 0;
}

.site-location-map-heading p {
  margin-top: 5px;
  color: var(--muted);
}

.site-location-search {
  display: grid;
  gap: 8px;
}

.site-address-details {
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.site-address-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.site-address-details > summary::-webkit-details-marker {
  display: none;
}

.site-address-details > summary > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.site-address-details > summary strong {
  color: var(--ink);
}

.site-address-details > summary small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 14px;
}

.site-address-details-action {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.site-address-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.site-address-fields {
  padding: 18px;
}

.site-radius-field {
  margin-bottom: 20px;
}

.site-location-map {
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #e8edf2;
}

.site-location-map-unavailable,
.site-location-map-error {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #e8d4ac;
  border-radius: 12px;
  background: #fff7e8;
  color: #80570f;
}

.site-location-map-error {
  border-color: #ebc4c4;
  background: #fff0f0;
  color: #9a2525;
}

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

.site-location-coordinate-grid > div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.site-location-coordinate-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-location-coordinate-grid strong {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .search-row {
    flex-direction: column;
  }

  .site-location-map-heading {
    flex-direction: column;
  }

  .site-address-details > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-location-map {
    min-height: 320px;
  }

  .site-location-coordinate-grid {
    grid-template-columns: 1fr;
  }
}
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 10000; padding: 12px 18px; background: white; color: #002147; }
.skip-link:focus { top: 12px; }
