/* EDHD SSKRU Budget — colours sampled from the original system's screens */
.edhd-root {
  --edhd-blue: #1a62a8; --edhd-head-a: #2666aa; --edhd-head-b: #524da0; --edhd-violet: #7b57c6; --edhd-teal: #16a085;
  --edhd-amber: #d99a1e; --edhd-gold: #f2c14e; --edhd-bg: #f0f4f9; --edhd-ink: #1d2433; --edhd-quiet: #5e6478; --edhd-line: #dfe4ee;
  --edhd-ok: #1b7f4b; --edhd-warn: #a86400; --edhd-bad: #b3261e;
  font-family: "Sarabun", "Noto Sans Thai", system-ui, sans-serif; color: var(--edhd-ink); background: var(--edhd-bg);
  border-radius: 12px; line-height: 1.55; overflow: hidden;
}
.edhd-root *, .edhd-root *::before, .edhd-root *::after { box-sizing: border-box; }
.edhd-note { color: var(--edhd-quiet); font-size: .875rem; }
.edhd-center { text-align: center; }
.edhd-gold { color: var(--edhd-gold); }
.edhd-teal { color: var(--edhd-teal); }
.edhd-amber { color: var(--edhd-amber); }
.edhd-alert { background: #fdecea; color: var(--edhd-bad); border-left: 4px solid var(--edhd-bad); padding: 10px 12px; border-radius: 6px; }

/* header bar */
.edhd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: linear-gradient(90deg, var(--edhd-head-a), var(--edhd-head-b)); color: #fff; padding: 10px 16px; }
.edhd-logos { display: flex; gap: 6px; }
.edhd-logo-sm { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; padding: 2px; border: 2px solid var(--edhd-gold); }
.edhd-logo-ph { display: grid; place-items: center; font-size: .65rem; font-weight: 700; color: var(--edhd-blue); }
.edhd-brand { display: grid; line-height: 1.3; flex: 1 1 260px; min-width: 0; }
.edhd-brand strong, .edhd-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edhd-brand strong { font-size: 1.05rem; }
.edhd-brand span { font-size: .78rem; opacity: .92; }
.edhd-fy-head { width: auto !important; min-height: 38px; padding: 4px 10px; border-radius: 8px; border: 0; font-weight: 600; }
.edhd-navs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.edhd-nav { background: transparent; color: #fff; border: 0; padding: 8px 10px; white-space: nowrap; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; list-style: none; }
.edhd-nav::-webkit-details-marker { display: none; }
.edhd-nav.is-active, .edhd-nav:hover { background: rgba(255,255,255,.16); border-bottom-color: var(--edhd-gold); }
.edhd-menu { position: relative; }
.edhd-menu-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; background: #fff; color: var(--edhd-ink); border-radius: 10px; min-width: 330px; max-height: 70vh; overflow: auto; box-shadow: 0 10px 30px rgba(20,30,70,.22); padding: 6px; }
.edhd-menu-group + .edhd-menu-group { border-top: 1px solid var(--edhd-line); margin-top: 4px; padding-top: 4px; }
.edhd-menu-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; font: inherit; cursor: pointer; color: var(--edhd-ink); }
.edhd-menu-pop button:hover { background: #eef3fb; }
.edhd-account { position: relative; }
.edhd-account summary { white-space: nowrap; cursor: pointer; list-style: none; padding: 6px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,255,255,.1); }
.edhd-account summary::-webkit-details-marker { display: none; }
.edhd-avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--edhd-blue); font-size: .75rem; }
.edhd-account-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--edhd-ink); border-radius: 10px; padding: 12px; min-width: 250px; z-index: 30; box-shadow: 0 10px 30px rgba(20,30,70,.22); display: grid; gap: 6px; }
.edhd-account-menu a { color: var(--edhd-blue); font-weight: 600; text-decoration: none; padding: 6px 0; border-top: 1px solid var(--edhd-line); }

/* login */
.edhd-login-page { min-height: 520px; }
.edhd-card { max-width: 440px; margin: 40px auto; background: #fff; border-radius: 14px; overflow: hidden; border-top: 4px solid var(--edhd-blue); box-shadow: 0 6px 24px rgba(20,30,70,.1); }
.edhd-card-head { padding: 18px 24px 12px; border-bottom: 1px solid var(--edhd-line); background: linear-gradient(180deg, #f6f9fd, #fff); }
.edhd-card-head .edhd-title { margin: 0; font-size: 1.25rem; color: var(--edhd-ink); }
.edhd-card-body { padding: 20px 24px 24px; display: grid; gap: 12px; }
.edhd-google-btn { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; background: linear-gradient(90deg, var(--edhd-blue), #2a7fc4); color: #fff; font-weight: 700; text-decoration: none; min-height: 48px; }
.edhd-google-btn svg { background: #fff; border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
.edhd-google-btn:hover, .edhd-google-btn:focus-visible { box-shadow: 0 0 0 3px rgba(26,98,168,.25); }
.edhd-who { background: #eaf2fc; border: 1px solid #d6e4f5; border-radius: 10px; padding: 10px 12px; margin: 0; }
.edhd-form { display: grid; gap: 12px; }
.edhd-form label, .edhd-panel label { display: grid; gap: 4px; font-size: .9rem; }
.edhd-panel label:has(> input[type=checkbox]:first-child) { display: flex; align-items: center; gap: 6px; }
.edhd-root input:not([type=checkbox]):not([type=file]), .edhd-root select, .edhd-root textarea { width: 100%; padding: 8px 10px; border: 1px solid #cfd6e4; border-radius: 8px; font: inherit; background: #fff; min-height: 40px; color: var(--edhd-ink); }
.edhd-btn { background: var(--edhd-blue); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.edhd-btn:hover { filter: brightness(1.08); }
.edhd-btn:disabled { opacity: .6; cursor: wait; }
.edhd-btn-ghost { background: transparent; color: var(--edhd-bad); border: 1px solid var(--edhd-bad); }
.edhd-btn-ghost2 { background: #fff; color: var(--edhd-blue); border: 1px solid #cfd6e4; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; align-self: end; }
.edhd-btn-sm { background: var(--edhd-blue); color: #fff; border: 0; border-radius: 6px; padding: 6px 12px; font: inherit; cursor: pointer; min-height: 36px; }
.edhd-link { background: none; border: 0; padding: 0; color: var(--edhd-blue); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
.edhd-status { white-space: nowrap; display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid currentColor; }
.edhd-status-ok { color: var(--edhd-ok); background: #e7f5ee; }
.edhd-status-wait { color: var(--edhd-warn); background: #fff4e0; }
.edhd-status-bad { color: var(--edhd-bad); background: #fdecea; }
.edhd-status-anom { color: #9b1c4a; background: #fbe7ef; }
.edhd-status-none { color: var(--edhd-quiet); background: #f1f3f8; }
.edhd-target-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.edhd-target-grid label { font-size: .85rem; }
button.sc { text-align: left; background: #fff; font: inherit; cursor: pointer; }
button.sc:hover { border-color: var(--edhd-blue); }
.sc small { font-size: .8rem; font-weight: 400; color: var(--edhd-quiet); }
.edhd-badge { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #ece8f7; color: var(--edhd-violet); font-size: .8rem; font-weight: 600; }
.edhd-badge-warn { background: #fff4e0; color: var(--edhd-warn); }

/* external-account forms on the login card */
.edhd-ext { border: 1px solid var(--edhd-line); border-radius: 10px; padding: 8px 12px; background: #fafbfe; }
.edhd-ext summary { cursor: pointer; font-weight: 600; color: var(--edhd-blue); list-style: none; }
.edhd-ext summary::-webkit-details-marker { display: none; }
.edhd-ext .edhd-form { margin-top: 10px; }
.edhd-ext .edhd-ext { margin-top: 10px; background: #fff; }

/* layout */
.edhd-body { display: grid; grid-template-columns: 250px 1fr; }
.edhd-side { background: #fff; padding: 14px 10px; border-right: 1px solid var(--edhd-line); min-height: 100%; }
.edhd-side h3 { margin: 0 0 8px 6px; font-size: .8rem; font-weight: 600; color: var(--edhd-quiet); }
.edhd-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.edhd-group { font-size: .92rem; width: 100%; display: flex; justify-content: space-between; gap: 8px; text-align: left; background: transparent; border: 0; padding: 8px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; color: var(--edhd-ink); }
.edhd-group:hover, .edhd-group.is-active { background: #eef3fb; }
.edhd-group-all { font-weight: 500; }
.edhd-caret { color: var(--edhd-quiet); font-size: .8rem; }
.edhd-group-all .edhd-caret { color: var(--edhd-amber); font-size: 1rem; }
.edhd-count { background: #eceff5; color: var(--edhd-quiet); border-radius: 999px; padding: 0 8px; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; align-self: center; }
.edhd-main { min-width: 0; padding: 18px 22px; }
.edhd-pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.edhd-h1 { font-size: 1.45rem; margin: 0; color: var(--edhd-ink); }
.edhd-pagehead .edhd-note { margin: 2px 0 0; }
.edhd-h3 { font-size: 1rem; margin: 14px 0 6px; }
.edhd-asof { background: #fff7df; border: 1px solid #f0d58a; color: #7a5a00; border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.edhd-panel { background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; border: 1px solid var(--edhd-line); }
.edhd-panel h2 { font-size: 1.05rem; margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.edhd-kicker { font-size: .75rem; color: var(--edhd-blue); font-weight: 700; letter-spacing: .02em; }
.edhd-filters { display: grid; grid-template-columns: auto repeat(4, minmax(140px, 1fr)) auto; gap: 12px; align-items: end; }
.edhd-filters > strong { color: var(--edhd-blue); align-self: center; }
.edhd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.edhd-kpi { background: #fff; border: 1px solid var(--edhd-line); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.edhd-kpi-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; flex: none; }
.k-blue { background: #e6effa; color: var(--edhd-blue); } .k-purple { background: #efe9fa; color: var(--edhd-violet); }
.k-teal { background: #e2f5f0; color: var(--edhd-teal); } .k-amber { background: #fdf1d8; color: var(--edhd-amber); }
.edhd-kpi-label { font-size: .85rem; color: var(--edhd-quiet); }
.edhd-kpi-value { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.edhd-grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.edhd-grid2 > .edhd-panel { margin-bottom: 0; }
.edhd-grid2 + * { margin-top: 16px; }
.edhd-chart { width: 100%; height: auto; }
.edhd-legend { font-size: .8rem; color: var(--edhd-quiet); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.b-plan { background: var(--edhd-blue); } .b-paid { background: var(--edhd-teal); }
.edhd-hbar { display: grid; grid-template-columns: 140px 1fr 70px; gap: 10px; align-items: center; padding: 8px 0; }
.edhd-hbar-name { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edhd-hbar-track { display: grid; gap: 3px; }
.edhd-hbar-track span { display: block; height: 8px; border-radius: 4px; min-width: 2px; }
.edhd-hbar-val { text-align: right; font-size: .8rem; font-variant-numeric: tabular-nums; }
.edhd-hbar-val b { color: var(--edhd-teal); }
.edhd-donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.edhd-donut { width: 180px; height: 180px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.edhd-donut > div { width: 110px; height: 110px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; }
.edhd-donut b { font-size: 1.4rem; } .edhd-donut span { font-size: .8rem; color: var(--edhd-quiet); }
.edhd-donut-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; flex: 1; min-width: 180px; }
.edhd-donut-legend li { display: flex; gap: 8px; align-items: center; font-size: .9rem; border-bottom: 1px dashed var(--edhd-line); padding-bottom: 6px; }
.edhd-donut-legend b { margin-left: auto; }
.edhd-donut-legend .lg { border-radius: 3px; }
.edhd-vbars { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; align-items: end; }
.edhd-vbar-cols { display: flex; gap: 6px; justify-content: center; align-items: flex-end; height: 170px; border-bottom: 1px solid var(--edhd-line); }
.edhd-vbar-cols > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.edhd-vbar-cols i { display: block; width: 26px; min-height: 2px; border-radius: 3px 3px 0 0; }
.edhd-vbar-cols .v { font-size: .72rem; font-weight: 700; }
.edhd-vbar-name { text-align: center; font-size: .85rem; margin-top: 6px; }
.edhd-vbar-name b { color: var(--edhd-teal); font-size: .8rem; }
.edhd-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--edhd-line); margin-bottom: 12px; }
.edhd-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--edhd-quiet); cursor: default; }
.edhd-tabs button.is-active { color: var(--edhd-blue); border-bottom-color: var(--edhd-blue); }
.edhd-status-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.sc { border: 1px solid var(--edhd-line); border-radius: 10px; padding: 10px 12px; display: grid; }
.sc b { font-size: .85rem; } .sc span { font-size: 1.4rem; font-weight: 700; }
.sc-ok b { color: var(--edhd-ok); } .sc-watch b { color: var(--edhd-amber); } .sc-rush b { color: var(--edhd-bad); } .sc-bad b { color: #9b1c4a; }
.edhd-issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.edhd-issues li { background: #f6f8fc; border-radius: 8px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.edhd-issues .edhd-link { margin-left: auto; }
.edhd-tag { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.t-wait { background: #fff1c9; color: #7a5a00; } .t-rush { background: #fde0dd; color: var(--edhd-bad); }
.edhd-rank { padding-left: 22px; margin: 0; display: grid; gap: 6px; }
.edhd-rank li > * { vertical-align: top; }
.edhd-rank li { padding: 4px 0; border-bottom: 1px solid var(--edhd-line); }
.edhd-rank li span + span { float: right; }
.edhd-unitrow { border: 1px solid var(--edhd-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.edhd-unitrow-head { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.edhd-unitrow-nums { margin-left: auto; font-size: .88rem; font-variant-numeric: tabular-nums; }
.edhd-progress { position: relative; height: 10px; background: #e3e8f2; border-radius: 6px; margin-top: 8px; overflow: hidden; }
.edhd-progress span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.p-commit { background: #2f80d1; } .p-paid { background: #2e7d32; }
.edhd-report-list { background: #fff; border-radius: 12px; padding: 12px 12px 12px 36px; border: 1px solid var(--edhd-line); }
.edhd-report-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--edhd-line); flex-wrap: wrap; }
.edhd-report-list li button { background: none; border: 0; font: inherit; cursor: pointer; color: var(--edhd-ink); text-align: left; }
.edhd-report-list li.is-active button { color: var(--edhd-blue); font-weight: 700; }
.edhd-fy-grid { display: grid; gap: 8px; margin-top: 12px; }
.edhd-fy { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--edhd-line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
.edhd-fy.is-suggested { border: 2px solid var(--edhd-blue); }
.edhd-fy span, .edhd-fy em { font-size: .85rem; color: var(--edhd-quiet); }
.edhd-req { border: 1px solid var(--edhd-line); border-radius: 10px; padding: 12px; margin-bottom: 12px; display: grid; gap: 8px; }
.edhd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.edhd-units { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 0; }
.edhd-units label { display: inline-flex !important; align-items: center; gap: 4px; }
.edhd-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.edhd-table-wrap { overflow-x: auto; }
.edhd-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.edhd-table th { text-align: left; background: #eef3fb; color: var(--edhd-blue); padding: 8px; white-space: nowrap; }
.edhd-table td { padding: 8px; border-bottom: 1px solid var(--edhd-line); vertical-align: top; }
.edhd-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.edhd-plan-table { font-size: .8rem; }
.edhd-plan-table td, .edhd-plan-table th { padding: 6px; }
.edhd-plan-table td:first-child { min-width: 150px; white-space: normal; }
.edhd-register h2 { color: var(--edhd-blue); }
.edhd-sum td { background: #fafbfe; }
.edhd-toast { position: fixed; bottom: 20px; right: 20px; background: #1a62a8; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 99999; border-left: 4px solid #f2c14e; font-family: "Sarabun", system-ui, sans-serif; max-width: 90vw; }
.edhd-toast-bad { background: #b3261e; }

@media (max-width: 1100px) {
  .edhd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edhd-grid2 { grid-template-columns: 1fr; }
  .edhd-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edhd-filters > strong { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .edhd-body { grid-template-columns: 1fr; }
  .edhd-side { border-right: 0; border-bottom: 1px solid var(--edhd-line); }
  .edhd-main { padding: 14px; }
  .edhd-fy-head { margin-left: 0; }
  .edhd-kpis, .edhd-status-cards { grid-template-columns: 1fr 1fr; }
  .edhd-menu-pop { position: fixed; left: 8px; right: 8px; top: auto; min-width: 0; }
  .edhd-hbar { grid-template-columns: 100px 1fr 60px; }
  .edhd-unitrow-nums { margin-left: 0; width: 100%; }
  .edhd-table thead { display: none; }
  .edhd-table, .edhd-table tbody, .edhd-table tr, .edhd-table td { display: block; width: 100%; }
  .edhd-table tr { border: 1px solid var(--edhd-line); border-radius: 8px; margin-bottom: 10px; padding: 6px; background: #fff; }
  .edhd-table td, .edhd-table td.num { border: 0; display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; text-align: left; white-space: normal; }
  .edhd-table td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--edhd-quiet); font-size: .8rem; }
}
@media (max-width: 820px) { .edhd-target-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .edhd-kpis, .edhd-status-cards, .edhd-filters { grid-template-columns: 1fr; } }

/* Themes often colour every link; keep button text readable. */
.edhd-root a.edhd-google-btn, .edhd-root a.edhd-google-btn span, .edhd-root a.edhd-google-btn:visited, .edhd-root a.edhd-google-btn:hover { color: #fff !important; text-decoration: none !important; }
.edhd-root a.edhd-btn-link, .edhd-root a.edhd-btn-link:visited, .edhd-root a.edhd-btn-link:hover { display: inline-flex; align-items: center; color: #fff !important; text-decoration: none !important; }
.edhd-root button.edhd-btn, .edhd-root .edhd-btn { color: #fff; }
.edhd-alert-info { background: #eef4fc; border-left-color: var(--edhd-blue); color: #1d3557; font-size: 15px; }
.edhd-steps { margin: 6px 0 14px 20px; padding: 0; line-height: 1.7; }
.edhd-steps li.edhd-done { color: #1b7a4b; }

/* 0.5.7 header: university + faculty marks in a white card, then "EDHD SSKRU Budget" */
.edhd-root .edhd-logos { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 6px 12px; box-shadow: 0 2px 8px rgba(10,30,80,.18); flex: 0 0 auto; }
.edhd-root .edhd-logo-img { height: 44px; width: auto; display: block; object-fit: contain; border: 0; padding: 0; background: transparent; box-shadow: none; max-width: none; }
.edhd-root .edhd-logo-div { width: 1px; align-self: stretch; background: #d5dbe7; margin: 2px 0; }
.edhd-root .edhd-logo-ph { display: grid; place-items: center; height: 44px; padding: 0 6px; font-size: .75rem; font-weight: 700; color: var(--edhd-blue); }
.edhd-root .edhd-brand-title { font-size: 1.3rem; font-weight: 800; letter-spacing: .2px; color: #fff; }
.edhd-root .edhd-title-accent { color: var(--edhd-gold, #f2b705); }
.edhd-root .edhd-brand span { color: #f6e7b0; opacity: 1; }
.edhd-root .edhd-top { row-gap: 10px; }
.edhd-root .edhd-brand { flex: 1 1 240px; min-width: 200px; }
/* Some themes style every <nav>/<header>; keep the menu inside the header bar */
.edhd-root .edhd-navs { position: static !important; background: transparent !important; width: auto !important; max-width: 100%; height: auto !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; transform: none !important; z-index: auto !important; }
.edhd-root .edhd-top { position: relative; z-index: 1; }
/* Login page: centred marks and title, as on the faculty's KruCare page */
.edhd-root .edhd-login-hero { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 6px 0 4px; }
.edhd-root .edhd-login-hero .edhd-logos { box-shadow: none; padding: 0; gap: 16px; }
.edhd-root .edhd-login-hero .edhd-logo-img { height: 76px; }
.edhd-root .edhd-login-hero .edhd-logo-div { margin: 8px 0; }
.edhd-root .edhd-hero-title { font-size: 1.6rem; font-weight: 800; color: #12306b; margin: 4px 0 0; line-height: 1.25; }
.edhd-root .edhd-hero-title .edhd-title-accent { color: #d99a00; }
.edhd-root .edhd-hero-sub { color: #55607a; font-size: .9rem; margin: 0; }
@media (max-width: 640px) { .edhd-root .edhd-logo-img { height: 36px; } .edhd-root .edhd-brand-title { font-size: 1.1rem; } }
.edhd-root .edhd-brand .edhd-title-accent { font-size: inherit; font-weight: inherit; color: var(--edhd-gold, #f2c14e); opacity: 1; overflow: visible; white-space: normal; display: inline; }
.edhd-root .edhd-login-hero .edhd-logos { background: transparent; }

/* 0.6.0 report page (layout of the original report screen) */
.edhd-root .edhd-report-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.edhd-root .edhd-report-bar label { display: grid; gap: 6px; font-weight: 700; color: #1d3557; min-width: 240px; }
.edhd-root .edhd-report-bar .edhd-grow { flex: 1 1 360px; }
.edhd-root .edhd-report-bar select { min-height: 46px; border: 2px solid var(--edhd-blue); border-radius: 8px; padding: 6px 10px; font: inherit; background: #fff; }
.edhd-root .edhd-btn-green { background: #1b7a4b; }
.edhd-root .edhd-btn-red { background: #c62828; }
.edhd-root .edhd-btn:disabled { opacity: .55; cursor: not-allowed; }
.edhd-root .edhd-wide { width: 100%; min-height: 50px; font-size: 1.02rem; }
.edhd-root .edhd-export-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 14px 0; }
.edhd-root .edhd-export-cards .edhd-panel { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.edhd-root .edhd-export-cards h3 { margin: 0; font-size: 1.05rem; color: #12306b; }
.edhd-root .edhd-export-cards .edhd-note { flex: 1; }
.edhd-root .edhd-report-title { text-align: center; color: #12306b; margin: 4px 0; }
.edhd-root .edhd-report-sub { text-align: center; color: var(--edhd-quiet); margin: 0 0 12px; }
.edhd-root .edhd-check { border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; border: 1px solid; }
.edhd-root .edhd-check .edhd-note { margin-top: 4px; }
.edhd-root .edhd-check-ok { background: #ecf8ef; border-color: #8fd19e; color: #1b5e20; }
.edhd-root .edhd-check-bad { background: #fdecea; border-color: #f2a39b; color: #a3271b; }
.edhd-root .edhd-check-wait { background: #fff7e6; border-color: #f3cf86; color: #7a4f00; }
.edhd-root .edhd-ok { color: #1b7a4b; font-weight: 700; }
.edhd-root .edhd-bad { color: #c62828; font-weight: 700; }
@media print {
  body * { visibility: hidden; }
  .edhd-root .edhd-report-sheet, .edhd-root .edhd-report-sheet * { visibility: visible; }
  .edhd-root .edhd-report-sheet { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: 0; }
  .edhd-noprint { display: none !important; }
  @page { size: A4 landscape; margin: 12mm; }
}
.edhd-root .edhd-report-sheet .edhd-report-title { text-align: center; display: block; }
