:root {
  color-scheme: light;
  --ink: #101114;
  --muted: #6b7280;
  --line: rgba(16, 17, 20, 0.12);
  --accent: #05234f;
  --accent-rgb: 5, 35, 79;
  --accent-deep: #001f45;
  --secondary: #fc5705;
  --secondary-rgb: 252, 87, 5;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --currency-symbol: "R";
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 247, 251, 0.86)),
    radial-gradient(circle at 72% 8%, rgba(var(--secondary-rgb), 0.14), transparent 34%),
    linear-gradient(145deg, #eef2f7, #f9fafc 48%, #e3e9f1);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
}

body.is-portal-open,
body.is-root-open {
  overflow: hidden;
}

body.is-combined-standalone,
body.is-current-budget-standalone,
body.is-combined-standalone.is-portal-open {
  overflow: auto;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

a:hover {
  color: var(--secondary);
}

.portal-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  width: min(1180px, calc(100% - 40px));
  min-height: min(760px, calc(100vh - 40px));
  margin: 20px auto;
  overflow: hidden;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 14%, rgba(var(--secondary-rgb), 0.18), transparent 32%),
    linear-gradient(145deg, #eef3f8 0%, #f8f9fb 45%, #e7edf5 100%);
  box-shadow:
    0 34px 70px rgba(18, 31, 48, 0.18),
    0 10px 24px rgba(18, 31, 48, 0.12);
  backdrop-filter: blur(22px);
}

.portal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.42)),
    url("/assets/plans.jpg");
  background-position: 0 0, center;
  background-size: auto, cover;
  opacity: 0.48;
  pointer-events: none;
}

.brand-panel {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.22)),
    radial-gradient(circle at 18% 20%, rgba(var(--secondary-rgb), 0.16), transparent 34%);
  color: var(--accent);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 84% 18%, rgba(8, 40, 80, 0.1), transparent 30%);
  pointer-events: none;
}

.brand-copy,
.flow-hero {
  position: relative;
  z-index: 1;
}

.flow-hero {
  display: grid;
  justify-items: center;
  width: min(520px, 100%);
  margin: 0 auto;
}

.flow-hero img {
  display: block;
  width: min(430px, 88%);
  height: auto;
  filter:
    drop-shadow(0 18px 24px rgba(8, 40, 80, 0.12))
    drop-shadow(0 6px 12px rgba(var(--secondary-rgb), 0.1));
}

.brand-copy {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 14px 30px rgba(8, 40, 80, 0.12);
}

.brand-copy p {
  max-width: 480px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.5;
}

.login-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.16);
}

.login-card {
  width: min(430px, 100%);
  padding: 30px 34px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 24px;
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 48px rgba(31, 45, 61, 0.12);
  backdrop-filter: blur(18px);
}

.login-heading {
  margin-bottom: 24px;
  text-align: left;
}

.login-heading p {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-heading h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
}

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

.login-message {
  min-height: 18px;
  margin: -4px 0 0;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 850;
}

.shared-data-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 5px 7px 5px 10px;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  box-shadow:
    0 10px 18px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.login-form .shared-data-status {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 2px;
}

.root-content-header > .shared-data-status {
  margin-left: auto;
}

.root-content-header > .system-notification-button {
  margin-left: auto;
}

.workspace-header > .shared-data-status {
  grid-column: 3;
  justify-self: end;
}

.shared-data-status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8a94a3;
  box-shadow: 0 0 0 3px rgba(138, 148, 163, 0.14);
}

.shared-data-status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-data-sync-button {
  min-height: 24px;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.shared-data-sync-button:hover,
.shared-data-sync-button:focus-visible {
  background: var(--secondary);
  outline: none;
}

.shared-data-sync-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.shared-data-status.is-shared,
.shared-data-status.is-synced {
  border-color: rgba(17, 124, 76, 0.28);
  background: #edfdf5;
  color: #0a5c38;
}

.shared-data-status.is-shared .shared-data-status-dot,
.shared-data-status.is-synced .shared-data-status-dot {
  background: #14a66b;
  box-shadow: 0 0 0 3px rgba(20, 166, 107, 0.15);
}

.shared-data-status.is-fallback,
.shared-data-status.is-error {
  border-color: rgba(220, 74, 28, 0.6);
  background: #fff1df;
  color: #8f2d11;
  box-shadow:
    0 14px 26px rgba(220, 74, 28, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.shared-data-status.is-fallback .shared-data-status-dot,
.shared-data-status.is-error .shared-data-status-dot {
  background: #e9501f;
  box-shadow: 0 0 0 4px rgba(233, 80, 31, 0.2);
}

.shared-data-status.is-fallback .shared-data-sync-button,
.shared-data-status.is-error .shared-data-sync-button {
  background: #e9501f;
}

.shared-data-status.is-syncing .shared-data-status-dot,
.shared-data-status.is-checking .shared-data-status-dot {
  background: var(--secondary);
  box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.16);
}

.system-notification-button {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #7d8794;
  cursor: pointer;
  box-shadow:
    0 12px 22px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.system-notification-button:hover,
.system-notification-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.system-notification-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.system-notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(18, 31, 48, 0.06);
}

.system-notification-button.is-good {
  border-color: rgba(20, 166, 107, 0.28);
  color: #14a66b;
}

.system-notification-button.is-good:hover,
.system-notification-button.is-good:focus-visible {
  box-shadow:
    0 14px 24px rgba(20, 166, 107, 0.14),
    0 0 0 4px rgba(20, 166, 107, 0.1);
}

.system-notification-button.is-warning {
  border-color: rgba(225, 157, 38, 0.36);
  color: #d38a12;
}

.system-notification-button.is-warning:hover,
.system-notification-button.is-warning:focus-visible {
  box-shadow:
    0 14px 24px rgba(225, 157, 38, 0.14),
    0 0 0 4px rgba(225, 157, 38, 0.11);
}

.system-notification-button.is-error {
  border-color: rgba(220, 74, 28, 0.42);
  color: #e9501f;
}

.system-notification-button.is-error:hover,
.system-notification-button.is-error:focus-visible {
  box-shadow:
    0 14px 24px rgba(220, 74, 28, 0.16),
    0 0 0 4px rgba(220, 74, 28, 0.11);
}

.system-notifications-modal-card {
  width: min(560px, calc(100vw - 32px));
}

.system-notifications-list {
  display: grid;
  gap: 12px;
}

.system-notification-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.system-notification-row-icon {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
}

.system-notification-row.is-good {
  color: #14a66b;
}

.system-notification-row.is-warning {
  color: #d38a12;
}

.system-notification-row.is-error {
  color: #e9501f;
}

.system-notification-row-content {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #536174;
}

.system-notification-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.system-notification-row-header strong {
  color: var(--accent);
  font-size: 15px;
  line-height: 1.2;
}

.system-notification-row p,
.system-notification-empty {
  margin: 0;
  color: #667386;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.system-notification-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.system-notification-sync {
  justify-self: start;
  margin-top: 2px;
}

.text-link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  padding: 0;
  text-align: right;
}

.text-link-button:hover {
  color: var(--secondary);
}

.field {
  display: grid;
  gap: 8px;
}

.field > span:first-child {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.field input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(8, 40, 80, 0.16);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
  padding: 0 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 18px rgba(31, 45, 61, 0.06);
}

.field input:focus {
  border-color: rgba(var(--secondary-rgb), 0.72);
  box-shadow:
    0 0 0 4px rgba(var(--secondary-rgb), 0.12),
    0 12px 22px rgba(31, 45, 61, 0.08);
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: rgba(8, 40, 80, 0.07);
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.password-toggle .eye-closed,
.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-closed {
  display: block;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}

.check-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.check-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}

.submit-button {
  display: grid;
  width: 100%;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 28px rgba(8, 40, 80, 0.26);
  cursor: pointer;
  font-weight: 900;
}

.submit-button:hover {
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 248, 251, 0.88)),
    url("/assets/plans.jpg");
  background-position: center;
  background-size: cover;
  color: var(--ink);
}

.root-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  gap: 16px;
  overflow: hidden;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 248, 251, 0.88)),
    url("/assets/plans.jpg");
  background-position: center;
  background-size: cover;
}

.root-sidebar,
.root-content-header,
.root-card {
  border: 1px solid rgba(8, 40, 80, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 253, 0.82)),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    0 28px 56px rgba(18, 31, 48, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.root-sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  padding: 18px 16px;
  border-radius: 22px;
}

.root-brand {
  display: block;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.12);
}

.root-brand img {
  display: block;
  width: 100%;
  aspect-ratio: 519 / 229;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 12px 22px rgba(18, 31, 48, 0.12);
}

.root-menu {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 20px;
}

.root-menu-item {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.root-menu-item:hover,
.root-menu-item.is-active {
  border-color: rgba(var(--secondary-rgb), 0.5);
  color: var(--secondary);
  box-shadow: 0 12px 22px rgba(var(--secondary-rgb), 0.08);
}

.root-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  min-height: 0;
}

.root-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 78px;
  padding: 14px 18px;
  border-radius: 22px;
}

.root-content-header p,
.root-content-header h1 {
  margin: 0;
}

.root-content-header p {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.root-content-header h1 {
  margin-top: 4px;
  color: var(--accent);
  font-size: 30px;
  line-height: 1.1;
}

.root-content-header > div:first-child {
  min-width: 0;
}

.root-profile-chip {
  flex: 0 1 auto;
  max-width: 230px;
}

.root-profile-chip #root-profile-button-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.root-card {
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  border-radius: 22px;
}

.root-list-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, auto);
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.root-list-actions {
  width: 100%;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.root-list-actions .list-search {
  width: clamp(240px, 34vw, 360px);
  min-width: 0;
}

.root-table-wrap {
  max-height: calc(100vh - 142px);
}

#root-clients-page .root-table-wrap,
#root-archived-clients-page .root-table-wrap,
#root-client-types-page .root-table-wrap,
#root-root-users-page .root-table-wrap,
#root-consultants-page .root-table-wrap,
#root-component-types-page .root-table-wrap {
  max-height: calc(100vh - 198px);
}

.root-clients-table {
  min-width: 1060px;
}

#root-clients-page .root-clients-table thead th:last-child,
#root-clients-page .root-clients-table tbody td.root-row-actions {
  display: none;
}

#root-root-users-page .root-users-table thead th:last-child,
#root-root-users-page .root-users-table tbody td.user-actions-cell {
  display: none;
}

.root-archived-clients-table {
  min-width: 1060px;
}

.root-component-types-table {
  min-width: 1760px;
}

.root-client-types-table {
  min-width: 520px;
}

.root-consultants-table {
  min-width: 980px;
}

.root-users-table {
  min-width: 1160px;
}

.users-table {
  min-width: 1160px;
}

.root-users-table th,
.root-users-table td,
.users-table th,
.users-table td {
  text-align: center;
  vertical-align: middle;
}

.root-users-table tbody tr,
.users-table tbody tr {
  min-height: 64px;
}

.root-users-table .user-photo-cell,
.users-table .user-photo-cell,
.root-users-table .user-type-cell,
.users-table .user-type-cell,
.root-users-table .user-actions-cell,
.users-table .user-actions-cell {
  width: 1%;
  white-space: nowrap;
}

.root-users-table .user-table-text-cell,
.users-table .user-table-text-cell {
  max-width: 190px;
  overflow: hidden;
  color: #4f5d6f;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-type-badge {
  display: inline-flex;
  min-width: 88px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid rgba(5, 35, 79, 0.14);
  border-radius: 999px;
  background: rgba(5, 35, 79, 0.06);
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.user-type-badge.is-root {
  border-color: rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.user-type-badge.is-client {
  border-color: rgba(var(--secondary-rgb), 0.22);
  background: rgba(var(--secondary-rgb), 0.08);
  color: var(--secondary);
}

.user-type-badge.is-master {
  border-color: rgba(5, 35, 79, 0.18);
  background: rgba(5, 35, 79, 0.08);
  color: var(--primary);
}

.user-type-badge.is-system,
.user-type-badge.is-root-admin {
  border-color: rgba(118, 128, 140, 0.22);
  background: rgba(118, 128, 140, 0.13);
  color: #6a7482;
}

.user-actions-cell {
  padding-inline: 12px;
}

.user-row-actions {
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.root-client-logo-chip {
  display: grid;
  width: 76px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.root-client-logo-chip:hover,
.root-client-logo-chip:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.58);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
  outline: none;
  transform: translateY(-1px);
}

.root-client-logo-chip.is-read-only {
  cursor: default;
}

.root-client-logo-chip.is-read-only:hover {
  border-color: rgba(8, 40, 80, 0.12);
  box-shadow: none;
  transform: none;
}

.root-client-logo-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.root-consultant-photo-chip {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.root-user-photo-chip {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.root-user-photo-chip:hover,
.root-user-photo-chip:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.58);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
  outline: none;
  transform: translateY(-1px);
}

.root-user-photo-chip.is-read-only {
  cursor: default;
}

.root-user-photo-chip.is-read-only:hover {
  border-color: rgba(8, 40, 80, 0.12);
  box-shadow: none;
  transform: none;
}

.root-user-photo-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.root-consultant-photo-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.root-client-logo-placeholder {
  display: grid;
  width: 36px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.root-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  white-space: nowrap;
}

.root-row-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px 0 8px;
  border: 1px solid #cdd5db;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 7px 18px rgba(23, 55, 83, 0.14);
  color: #4d5a66;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.root-row-button::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--template-blue, #2764d8);
  content: "";
  box-shadow: 0 0 0 3px rgba(39, 100, 216, 0.12);
}

.root-row-button.is-icon {
  display: inline-flex;
  width: auto;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding-inline: 8px;
  justify-content: center;
}

.root-row-button.is-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.root-row-button:hover {
  border-color: #8eb6df;
  background: #f7fbff;
  box-shadow: 0 10px 24px rgba(23, 55, 83, 0.18);
  color: #174d86;
  transform: translateY(-1px);
}

.root-row-button.is-login {
  border-color: #b8cfe5;
  background: #edf5ff;
  color: #174d86;
}

.root-row-button.is-login:hover {
  border-color: #8eb6df;
  color: #123f6d;
}

.root-row-button.is-delete {
  border-color: #f0b9b5;
  background: #fff0ef;
  color: var(--template-red, #b3261e);
}

.root-row-button.is-delete::before {
  background: var(--template-red, #b3261e);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.root-row-button:disabled {
  border-color: rgba(118, 128, 140, 0.22);
  box-shadow: none;
  color: #98a1ad;
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.root-row-button:disabled::before {
  background: #a8b2bd;
  box-shadow: 0 0 0 3px rgba(118, 128, 140, 0.12);
}

.users-table tr.is-system-user {
  background: rgba(228, 232, 238, 0.42);
  color: #8a94a3;
}

.users-table tr.is-system-user td {
  color: #8a94a3;
}

.sidebar-organisation-logo {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: grid;
  width: 242px;
  height: 78px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 253, 0.76)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 18px 34px rgba(18, 31, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar-organisation-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.sidebar-logo-placeholder {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 18px rgba(8, 40, 80, 0.16);
}

.sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  width: 242px;
  height: calc(100vh - 129px);
  min-height: 0;
  flex-direction: column;
  margin: 113px 0 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 253, 0.82)),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    0 34px 70px rgba(18, 31, 48, 0.18),
    0 10px 24px rgba(18, 31, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.menu-list {
  display: grid;
  flex: 1;
  gap: 21px;
  align-content: start;
  min-height: 0;
  padding: 20px 16px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.menu-home,
.menu-group h2 {
  margin: 0;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.12);
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.menu-home {
  display: block;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.menu-group h2 {
  margin-bottom: 7px;
}

.menu-group.is-active h2 {
  color: var(--secondary);
}

.menu-group ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-group li {
  min-height: 25px;
  padding: 5px 6px;
  border-radius: 8px;
  color: #3f4650;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.menu-group li.menu-subheading {
  min-height: auto;
  margin-top: 6px;
  padding: 8px 6px 4px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 900;
}

.menu-group li.menu-subitem {
  padding-left: 16px;
  font-style: italic;
  font-weight: 500;
}

.menu-group li.menu-nested-group {
  display: grid;
  gap: 2px;
  padding: 5px 0;
}

.menu-nested-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
}

.menu-nested-toggle:hover,
.menu-nested-toggle:focus-visible,
.menu-nested-group.is-open > .menu-nested-toggle {
  color: var(--secondary);
  outline: none;
}

.menu-nested-toggle svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform 150ms ease;
}

.menu-nested-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.menu-nested-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.menu-nested-list[hidden] {
  display: none;
}

.menu-nested-list li {
  min-height: 24px;
  padding: 4px 6px;
}

.menu-nested-list .menu-item {
  font-style: italic;
  font-weight: 500;
}

.menu-item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
  text-align: left;
}

.menu-inline-action {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
  text-align: left;
}

.menu-inline-action:hover,
.menu-inline-action:focus-visible {
  color: var(--secondary);
  outline: none;
}

.menu-action-item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  padding: 0;
  text-align: left;
}

.menu-action-item:hover {
  color: var(--secondary);
}

.menu-action-item:disabled {
  cursor: wait;
  opacity: 0.58;
}

.sidebar-recalculate-button {
  min-height: 38px;
  margin: 8px 0 0;
  padding: 9px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 18px rgba(18, 31, 48, 0.08);
}

.sidebar-recalculate-button:hover,
.sidebar-recalculate-button:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.52);
  color: var(--secondary);
  outline: none;
}

.menu-home.menu-item {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.12);
  border-radius: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.menu-item:hover,
.menu-item.is-active {
  color: var(--secondary);
}

.logout-link {
  width: 100%;
  margin: 2px 0 0;
  min-height: 38px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--secondary);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 26px rgba(var(--secondary-rgb), 0.24);
}

.root-access-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 0;
}

.root-return-link {
  display: inline-grid;
  width: 42px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 22px rgba(18, 31, 48, 0.08);
}

.root-return-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.root-return-link:hover,
.root-return-link:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.52);
  color: var(--secondary);
  outline: none;
}

.a2o-credit {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 16px 8px 2px;
  border-top: 1px solid rgba(5, 35, 79, 0.12);
  color: #3f4650;
  text-align: center;
}

.a2o-credit img {
  display: block;
  width: min(108px, 78%);
  height: auto;
  mix-blend-mode: multiply;
}

.a2o-credit p {
  margin: 0;
  color: #4d5662;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.a2o-credit a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.a2o-credit a:hover {
  color: var(--secondary);
}

.a2o-credit svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.a2o-credit img.website-icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  mix-blend-mode: normal;
  object-fit: contain;
}

.workspace {
  display: flex;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 16px 30px 0;
  background: rgba(255, 255, 255, 0.08);
}

.workspace-header {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 0;
  row-gap: 12px;
  min-height: 78px;
  padding: 8px 18px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 253, 0.78)),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    0 26px 54px rgba(18, 31, 48, 0.14),
    0 8px 20px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.toolbar-title {
  display: contents;
}

.toolbar-title img {
  grid-column: 1;
  display: block;
  width: clamp(260px, 30vw, 420px);
  height: 60px;
  object-fit: contain;
  object-position: left center;
}

.toolbar-title h1 {
  grid-column: 2;
  justify-self: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0 20px;
  border-left: 0;
  text-align: center;
}

.workspace-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 16px;
}

body.is-current-budget-view .workspace-content {
  overflow-x: hidden;
  overflow-y: auto;
}

body.is-combined-standalone #login-screen,
body.is-combined-standalone #root-screen,
body.is-combined-standalone .sidebar-organisation-logo,
body.is-combined-standalone .sidebar,
body.is-combined-standalone .workspace-header,
body.is-combined-standalone #components-combined-page > .list-panel-header,
body.is-combined-standalone #components-combined-page > .combined-summary-strip {
  display: none !important;
}

body.is-current-budget-standalone #login-screen,
body.is-current-budget-standalone #root-screen,
body.is-current-budget-standalone .sidebar-organisation-logo,
body.is-current-budget-standalone .sidebar,
body.is-current-budget-standalone .workspace-header,
body.is-current-budget-standalone #reserve-current-budget-page > .list-panel-header,
body.is-current-budget-standalone #reserve-current-budget-page > .current-budget-summary,
body.is-current-budget-standalone #reserve-current-budget-page > .current-budget-graph-card {
  display: none !important;
}

body.is-combined-standalone .app-shell,
body.is-current-budget-standalone .app-shell {
  display: block;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  padding: 18px;
}

body.is-combined-standalone .workspace,
body.is-current-budget-standalone .workspace {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 0;
  background: transparent;
}

body.is-combined-standalone .workspace-content,
body.is-current-budget-standalone .workspace-content {
  overflow: visible;
  padding: 0;
}

body.is-combined-standalone #components-combined-page {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-combined-standalone #components-combined-page .combined-report-panel {
  max-height: none;
  overflow: visible;
  background: transparent;
}

body.is-combined-standalone #components-combined-page .combined-report-list {
  padding: 0;
}

body.is-current-budget-standalone #reserve-current-budget-page {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-current-budget-standalone .current-budget-table-wrap {
  max-height: none;
}

body.is-reserve-standalone .menu-home,
body.is-reserve-standalone .menu-group:not([aria-labelledby="menu-reserve-study"]),
body.is-reserve-standalone .logout-link,
body.is-reserve-standalone .root-access-actions,
body.is-reserve-standalone .a2o-credit {
  display: none !important;
}

body.is-reserve-standalone [aria-labelledby="menu-reserve-study"] {
  display: block;
}

body.is-reserve-standalone .sidebar {
  grid-column: 1;
  z-index: 20;
}

body.is-reserve-standalone .workspace {
  grid-column: 2;
  z-index: 1;
}

.info-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 253, 0.82)),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    0 26px 54px rgba(18, 31, 48, 0.14),
    0 8px 20px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

#general-info-page,
#financial-info-page {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  width: 100%;
}

.info-section-heading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.info-section-header {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#general-info-page > .info-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  max-width: none;
  min-width: 0;
}

#general-info-page .general-client-cards {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
}

#general-info-page .info-client-card {
  min-height: 104px;
  background: rgba(255, 255, 255, 0.76);
}

#general-info-page .info-client-card small {
  color: #66717f;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.1;
}

#general-info-page .root-managed-note {
  color: #66717f;
  font-size: 12px;
  font-weight: 700;
}

#general-info-page .root-managed-heading-note {
  margin: 5px 0 0;
}

#general-info-page .info-setup-link {
  max-width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#general-info-page .info-setup-heading-link {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#general-info-page .dashboard-organisation-line.info-setup-link {
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}

#general-info-page .info-setup-link:hover,
#general-info-page .info-setup-link:focus-visible {
  color: var(--secondary);
  outline: none;
  text-decoration: underline;
}

#general-info-page .info-contact-line {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

#general-info-page .info-contact-line > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#general-info-page .info-contact-icon-link {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 83, 3, 0.42);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 6px 12px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

#general-info-page .info-contact-icon-link:hover,
#general-info-page .info-contact-icon-link:focus-visible {
  border-color: var(--secondary);
  color: var(--secondary);
  outline: none;
}

#general-info-page .info-contact-icon-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

#general-info-page .info-contact-icon-link img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

#general-info-page .info-meta {
  display: none;
  grid-column: 1 / 4;
  grid-row: 2;
  align-items: center;
  min-height: 118px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#general-info-page .logo-editor {
  position: static;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

#general-info-page .logo-preview {
  min-height: 0;
  height: 100%;
  aspect-ratio: 242 / 78;
  border-radius: 16px;
}

#general-info-page .logo-placeholder {
  gap: 0;
}

#general-info-page .logo-placeholder > span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 15px;
}

#general-info-page .logo-placeholder strong {
  display: none;
}

#general-info-page .general-details-card {
  display: none;
  grid-column: 4 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px 18px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#general-info-page .name-logo-row {
  display: flex;
  grid-column: 1 / -1;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 0 2px;
}

#general-info-page .name-field {
  width: 50%;
  max-width: 50%;
}

#general-info-page .name-type-field {
  display: grid;
  align-content: end;
  justify-items: end;
  min-height: 100%;
  margin-left: auto;
}

#general-info-page .info-field {
  text-align: left;
}

#general-info-page .general-details-card > .info-field {
  min-height: 86px;
  padding: 0;
}

#general-info-page .general-details-card > .info-field:last-child {
  grid-column: 1 / -1;
}

#general-info-page .info-field input,
#general-info-page .link-input {
  text-align: left;
}

.reserve-budget-page {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
}

.reserve-budget-form {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

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

.reserve-budget-side-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reserve-budget-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reserve-budget-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reserve-budget-card h3 {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 850;
}

.reserve-budget-card.is-compact-budget-card {
  gap: 6px;
  padding: 10px 14px;
}

.reserve-budget-card.is-compact-budget-card h3 {
  font-size: 15px;
}

.reserve-budget-card.is-compact-budget-card .reserve-budget-field {
  min-height: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 132px);
  align-items: center;
}

.reserve-budget-card.is-compact-budget-card .reserve-budget-field > span {
  grid-column: auto;
}

.reserve-budget-card.is-section-editing,
.reserve-budget-section.is-section-editing {
  border-color: rgba(var(--secondary-rgb), 0.34);
  box-shadow:
    0 14px 30px rgba(var(--secondary-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reserve-budget-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.reserve-budget-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  min-height: 80px;
  padding: 0;
  text-align: left;
}

.reserve-budget-field > span {
  grid-column: 1 / -1;
}

.reserve-budget-field input {
  text-align: right;
}

.reserve-budget-field input[readonly],
.reserve-budget-row input[readonly] {
  color: #3f4d5c;
}

.reserve-budget-page.is-editing .reserve-budget-editable.is-active-edit,
.reserve-budget-row input.is-active-edit {
  border-color: rgba(var(--secondary-rgb), 0.46);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.reserve-budget-result {
  display: grid;
  align-content: center;
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 241, 0.78)),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    0 14px 28px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.reserve-budget-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.reserve-budget-result strong {
  margin-top: 6px;
  color: var(--accent);
  font-size: clamp(25px, 3.1vw, 38px);
  line-height: 1;
}

.reserve-budget-result p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.reserve-fix-filter-page {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 16px;
}

.reserve-study-tools-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reserve-study-tools-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-eyebrow {
  margin: 0 0 4px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reserve-study-tools-section h3 {
  margin: 0;
  color: var(--accent);
  font-size: 20px;
}

.reserve-filter-note {
  padding: 8px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.reserve-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.reserve-filter-expanded-list {
  display: grid;
  gap: 12px;
}

.reserve-filter-expanded-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.reserve-filter-expanded-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reserve-filter-expanded-group > header > div {
  display: grid;
  gap: 3px;
}

.reserve-filter-expanded-group > header strong {
  color: var(--accent);
  font-size: 16px;
}

.reserve-filter-expanded-group > header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.reserve-filter-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reserve-filter-inline-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.reserve-filter-inline-cost-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
  align-items: center;
  gap: 10px;
  max-width: 440px;
}

.reserve-filter-inline-cost-field input {
  text-align: right;
}

.reserve-filter-inline-cost-field input[readonly] {
  color: #3f4d5c;
}

.reserve-study-filters-page.is-editing .reserve-filter-inline-cost-field input.is-active-edit {
  border-color: rgba(var(--secondary-rgb), 0.46);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.reserve-filter-card {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent);
  text-align: left;
  box-shadow: 0 8px 18px rgba(18, 31, 48, 0.06);
  cursor: pointer;
}

.reserve-filter-card:hover,
.reserve-filter-card:focus-visible,
.reserve-filter-card.has-filter {
  border-color: rgba(var(--secondary-rgb), 0.7);
  box-shadow:
    0 10px 22px rgba(var(--secondary-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.reserve-filter-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reserve-filter-card strong {
  color: var(--accent);
  font-size: 15px;
}

.reserve-fix-list,
.reserve-fix-modal-list,
.reserve-filter-option-list {
  display: grid;
  gap: 8px;
}

.reserve-fix-group {
  display: grid;
  gap: 8px;
}

.reserve-fix-row,
.reserve-fix-modal-row,
.reserve-fix-record-row,
.reserve-filter-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.reserve-fix-toggle {
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  text-align: left;
  cursor: pointer;
}

.reserve-fix-toggle-icon {
  width: 30px;
  height: 30px;
}

.reserve-fix-record-list {
  display: grid;
  gap: 8px;
  padding-left: 42px;
}

.reserve-fix-record-row {
  grid-template-columns: minmax(0, 1fr) auto;
  background: rgba(255, 255, 255, 0.92);
}

.reserve-fix-row > div,
.reserve-fix-modal-row > div,
.reserve-fix-record-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.reserve-fix-row strong,
.reserve-fix-modal-row strong,
.reserve-fix-record-row strong {
  color: var(--accent);
}

.reserve-fix-row span,
.reserve-fix-modal-row span,
.reserve-fix-modal-row small,
.reserve-fix-record-row span,
.reserve-fix-record-row small {
  color: var(--muted);
  font-size: 13px;
}

.reserve-fix-row.has-warning {
  border-color: rgba(var(--secondary-rgb), 0.28);
  background: rgba(255, 247, 241, 0.72);
}

.reserve-fix-row.is-clear {
  background: rgba(248, 250, 252, 0.86);
}

.reserve-fix-count {
  min-width: 58px;
  padding: 6px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.reserve-fix-view:disabled {
  opacity: 0.4;
  cursor: default;
}

.reserve-filter-modal-card,
.reserve-fix-modal-card {
  width: min(760px, calc(100vw - 40px));
}

.reserve-filter-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.reserve-filter-option {
  grid-template-columns: auto minmax(0, 1fr);
  cursor: pointer;
}

.reserve-filter-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}

.reserve-cost-filter-field input {
  text-align: right;
}

.reserve-fix-modal-list {
  max-height: min(58vh, 520px);
  overflow: auto;
}

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

@media (max-width: 720px) {
  .reserve-filter-grid,
  .reserve-fix-row,
  .reserve-fix-modal-row,
  .reserve-fix-record-row {
    grid-template-columns: 1fr;
  }

  .reserve-filter-expanded-group > header,
  .reserve-filter-inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reserve-filter-inline-cost-field {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .reserve-fix-toggle {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .reserve-fix-toggle .reserve-fix-count {
    grid-column: 2;
    justify-self: start;
  }

  .reserve-fix-record-list {
    padding-left: 0;
  }
}

.reserve-budget-section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 253, 0.74);
}

.reserve-budget-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reserve-budget-section h3 {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 850;
}

.reserve-budget-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.reserve-budget-linked-note {
  margin: 0;
  color: #66717f;
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

.reserve-budget-row-list {
  display: grid;
  gap: 8px;
}

.reserve-budget-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.45fr) 40px;
  gap: 10px;
  align-items: center;
}

.reserve-budget-row.is-contribution {
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.4fr) minmax(130px, 0.4fr) 40px;
}

.reserve-budget-row.is-levy {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.34fr) minmax(120px, 0.34fr) minmax(130px, 0.34fr) 40px;
}

.reserve-budget-row.is-levy.is-read-only {
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.34fr) minmax(120px, 0.34fr) minmax(130px, 0.34fr);
}

.reserve-budget-row-header {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.reserve-budget-row.is-read-only:not(.reserve-budget-row-header) {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary);
}

.reserve-budget-row.is-read-only span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reserve-budget-row.is-read-only .is-number-cell {
  text-align: right;
}

.reserve-budget-row input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  font: inherit;
  outline: none;
}

.reserve-budget-row input[data-reserve-budget-field="amount"],
.reserve-budget-row input[data-reserve-budget-field="yearlyEscalation"],
.reserve-budget-row input[data-reserve-budget-field="contributionMembers"] {
  text-align: right;
}

.reserve-budget-row-remove {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.reserve-budget-row-remove:hover,
.reserve-budget-row-remove:focus-visible {
  background: rgba(var(--accent-rgb), 0.08);
  outline: none;
}

.reserve-budget-section-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 18px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.reserve-budget-section-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.reserve-budget-section-total strong {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
  text-align: right;
  white-space: normal;
}

.reserve-current-budget-page {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.current-budget-table-wrap {
  width: 100%;
  min-width: 100%;
  min-height: 0;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 14px 28px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.is-current-budget-standalone .current-budget-table-wrap {
  max-height: none;
  overflow: auto;
}

.current-budget-summary {
  display: grid;
  grid-template-columns:
    minmax(170px, 1.25fr)
    minmax(92px, 0.52fr)
    minmax(170px, 1.25fr)
    minmax(92px, 0.52fr)
    minmax(190px, 1.45fr);
  gap: 10px;
}

.current-budget-summary article {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 8px 18px rgba(18, 31, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.current-budget-summary article.is-compact-value {
  justify-items: center;
  padding-inline: 8px;
  text-align: center;
}

.current-budget-summary article.is-wide-value {
  padding-inline: 12px;
}

.current-budget-summary span {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.current-budget-summary strong {
  min-width: 0;
  color: var(--accent);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 900;
  line-height: 1.08;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-budget-summary article.is-compact-value strong {
  font-size: clamp(15px, 1.15vw, 17px);
}

.current-budget-summary article.is-wide-value strong {
  font-size: clamp(13px, 1.22vw, 17px);
}

.target-funded-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.target-funded-card {
  display: grid;
  gap: 3px;
  min-width: 132px;
  padding: 9px 12px;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 8px 18px rgba(18, 31, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.target-funded-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.target-funded-card strong {
  color: var(--accent);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.target-funded-card.is-active {
  border-color: rgba(var(--secondary-rgb), 0.55);
  background: rgba(var(--secondary-rgb), 0.08);
}

.target-funded-card.is-static-target {
  cursor: default;
}

.reserve-findings-summary-page {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
}

.findings-summary-assumptions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.findings-summary-card,
.findings-scenario-card {
  min-width: 0;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.findings-summary-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.findings-summary-card header,
.findings-scenario-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.findings-summary-card header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.findings-summary-card header strong {
  color: var(--accent);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
}

.findings-summary-mini-list,
.findings-summary-metrics {
  display: grid;
  gap: 7px;
}

.findings-summary-mini-list article,
.findings-summary-metrics > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 11px;
  background: rgba(248, 250, 253, 0.8);
}

.findings-summary-mini-list strong,
.findings-summary-metrics strong {
  min-width: 0;
  overflow: hidden;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.findings-summary-mini-list span,
.findings-summary-metrics span span,
.findings-summary-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.findings-summary-empty {
  margin: 0;
  padding: 10px;
  border: 1px dashed rgba(8, 40, 80, 0.14);
  border-radius: 11px;
  background: rgba(248, 250, 253, 0.72);
}

.findings-scenario-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
}

.findings-scenario-card h3 {
  margin: 0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 850;
}

.findings-scenario-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.findings-scenario-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.findings-scenario-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.findings-scenario-table th,
.findings-scenario-table td {
  padding: 10px 12px;
  border-right: 1px solid rgba(8, 40, 80, 0.09);
  border-bottom: 1px solid rgba(8, 40, 80, 0.09);
  color: #3f4d5c;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}

.findings-scenario-table thead th {
  background: rgba(248, 250, 253, 0.95);
  color: var(--accent);
  text-align: center;
}

.findings-scenario-table thead th:first-child,
.findings-scenario-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 260px;
  background: rgba(255, 247, 241, 0.96);
  color: var(--accent);
  text-align: left;
}

.findings-scenario-table thead th:first-child {
  z-index: 2;
  background: rgba(255, 145, 77, 0.2);
}

.findings-scenario-table thead th strong {
  display: inline-grid;
  min-width: 118px;
  min-height: 38px;
  place-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.findings-scenario-table thead th span {
  display: inline-grid;
  min-width: 92px;
  min-height: 30px;
  place-items: center;
  margin-top: 6px;
  padding: 4px 10px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.findings-scenario-table td {
  text-align: center;
}

.findings-scenario-table td.is-number-cell {
  color: var(--accent);
  font-weight: 900;
}

.findings-scenario-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 253, 0.72);
}

.findings-scenario-table tr:last-child > * {
  border-bottom: 0;
}

.findings-scenario-table th:last-child,
.findings-scenario-table td:last-child {
  border-right: 0;
}

@media (max-width: 1100px) {
  .findings-summary-assumptions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .findings-summary-assumptions {
    grid-template-columns: 1fr;
  }
}

.target-funded-levy-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.target-funded-levy-card {
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) 72px repeat(4, minmax(118px, 1fr));
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 6px 14px rgba(18, 31, 48, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.target-funded-levy-card > strong {
  overflow: hidden;
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-funded-levy-card > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 34px;
  align-content: center;
  padding: 4px 8px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.target-funded-levy-card > span span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.target-funded-levy-card b {
  overflow: hidden;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-budget-graph-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 14px 28px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.current-budget-graph-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.current-budget-graph-card h3 {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.current-budget-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.current-budget-legend label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.current-budget-legend input {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}

.current-budget-legend .is-income input {
  accent-color: #004e7a;
}

.current-budget-legend .is-expenditure input {
  accent-color: var(--secondary);
}

.current-budget-legend .is-finance input {
  accent-color: #eab308;
}

.current-budget-legend .is-balance input {
  accent-color: #d6452f;
}

.current-budget-legend .is-reserve-spent input {
  accent-color: #004e7a;
}

.current-budget-legend .is-total-spent input {
  accent-color: var(--secondary);
}

.current-budget-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.current-budget-legend span::before {
  width: 26px;
  height: 7px;
  border-radius: 999px;
  content: "";
}

.current-budget-legend .is-income span::before {
  background: linear-gradient(90deg, #dceefa, #004e7a);
}

.current-budget-legend .is-expenditure span::before {
  background: linear-gradient(90deg, #ffe0cf, #fc5705);
}

.current-budget-legend .is-finance span::before {
  background: linear-gradient(90deg, #fff7cc, #eab308);
}

.current-budget-legend .is-balance span::before {
  height: 4px;
  background: #d6452f;
  box-shadow: 0 0 0 1px rgba(214, 69, 47, 0.18);
}

.current-budget-legend .is-reserve-spent span::before {
  background: linear-gradient(90deg, #dceefa, #004e7a);
}

.current-budget-legend .is-total-spent span::before {
  background: linear-gradient(90deg, #ffe0cf, #fc5705);
}

.graph-new-tab-button {
  flex: 0 0 auto;
  border-color: rgba(8, 40, 80, 0.28);
  color: var(--primary);
}

.graph-new-tab-button:hover,
.graph-new-tab-button:focus-visible {
  border-color: rgba(8, 40, 80, 0.45);
  background: rgba(8, 40, 80, 0.06);
}

#current-budget-graph {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 49 / 17;
  min-height: 220px;
}

.current-budget-gridline {
  stroke: rgba(8, 40, 80, 0.11);
  stroke-width: 1;
}

.current-budget-axis-label {
  fill: #697382;
  font-size: 10px;
  font-weight: 750;
}

.current-budget-bar {
  cursor: pointer;
  transition:
    opacity 160ms ease,
    stroke-width 160ms ease;
}

.current-budget-bar:hover,
.current-budget-bar:focus {
  opacity: 0.86;
  outline: none;
  stroke-width: 2;
}

.current-budget-line {
  pointer-events: none;
}

.current-budget-marker {
  cursor: pointer;
  transition:
    r 160ms ease,
    stroke-width 160ms ease;
}

.current-budget-marker:hover,
.current-budget-marker:focus {
  r: 4.2;
  stroke-width: 2;
  outline: none;
}

.current-budget-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--primary);
  font-size: 13px;
}

.current-budget-table th,
.current-budget-table td {
  min-width: 132px;
  padding: 11px 12px;
  border-right: 1px solid rgba(8, 40, 80, 0.08);
  border-bottom: 1px solid rgba(8, 40, 80, 0.08);
  background: rgba(255, 255, 255, 0.96);
  white-space: nowrap;
}

.current-budget-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: var(--primary);
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.current-budget-table thead th span,
.current-budget-table thead th small {
  display: block;
}

.current-budget-table thead th small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.current-budget-table th:first-child,
.current-budget-table td:first-child,
.current-budget-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 260px;
  text-align: left;
  box-shadow: 8px 0 12px rgba(18, 31, 48, 0.05);
}

.current-budget-table thead th:first-child {
  z-index: 3;
}

.current-budget-open-cell-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.current-budget-open-cell-inner > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-budget-open-button {
  width: 30px;
  height: 30px;
  justify-self: end;
}

.current-budget-table .is-currency-cell {
  color: #3f4650;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.current-budget-table .is-total-row th,
.current-budget-table .is-total-row td {
  background: rgba(248, 250, 253, 0.98);
  color: var(--primary);
  font-weight: 900;
}

.current-budget-table .is-subtotal-row th,
.current-budget-table .is-subtotal-row td {
  background: transparent;
  color: var(--primary);
  font-weight: 850;
}

.current-budget-table .is-detail-row th {
  padding-left: 28px;
  color: #3f4650;
  font-weight: 650;
}

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

  .target-funded-switch {
    justify-content: flex-start;
  }

  .target-funded-levy-card {
    grid-template-columns: 1fr;
  }

  .target-funded-levy-card > span {
    text-align: left;
  }

  .current-budget-graph-card header {
    display: grid;
  }

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

  .reserve-budget-top-grid {
    grid-template-columns: 1fr;
  }

  .reserve-budget-side-stack {
    gap: 16px;
  }

  .reserve-budget-card.is-compact-budget-card {
    gap: 14px;
    padding: 18px;
  }

  .reserve-budget-card.is-compact-budget-card .reserve-budget-field {
    min-height: 80px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .reserve-budget-card.is-compact-budget-card .reserve-budget-field > span {
    grid-column: 1 / -1;
  }

  .reserve-budget-section header,
  .reserve-budget-row,
  .reserve-budget-row.is-levy,
  .reserve-budget-row.is-contribution {
    grid-template-columns: 1fr;
  }

  .reserve-budget-section header {
    display: grid;
  }

  .reserve-budget-row-header {
    display: none;
  }
}

@media (max-width: 560px) {
  .current-budget-summary {
    grid-template-columns: 1fr;
  }
}

.financial-panel {
  grid-template-columns: 1fr;
}

.financial-info-embedded {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  width: 100%;
}

.list-panel {
  position: relative;
  display: grid;
  grid-auto-rows: max-content;
  gap: 18px;
  width: 100%;
  min-height: 0;
  padding: 28px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 253, 0.82)),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    0 26px 54px rgba(18, 31, 48, 0.14),
    0 8px 20px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.dashboard-panel {
  position: relative;
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 253, 0.82)),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    0 26px 54px rgba(18, 31, 48, 0.14),
    0 8px 20px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.dashboard-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 35;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -28px -28px 0;
  padding: 28px 28px 18px;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.96)),
    #fff;
  box-shadow:
    0 12px 22px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  isolation: isolate;
}

.dashboard-header::after {
  position: absolute;
  right: 28px;
  bottom: 0;
  left: 28px;
  height: 1px;
  background: rgba(8, 40, 80, 0.1);
  content: "";
}

.dashboard-header h2,
.dashboard-section h3 {
  margin: 0;
  color: var(--accent);
}

.dashboard-header h2 {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.dashboard-header p {
  margin: 6px 0 0;
  color: #5c6673;
  font-size: 14px;
  font-weight: 500;
}

.home-shortcuts-page {
  align-content: start;
}

.home-shortcuts-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 35;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -28px -28px 0;
  padding: 28px 28px 18px;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.96)),
    #fff;
  box-shadow:
    0 12px 22px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  isolation: isolate;
}

.home-shortcuts-header::after {
  position: absolute;
  right: 28px;
  bottom: 0;
  left: 28px;
  height: 1px;
  background: rgba(8, 40, 80, 0.1);
  content: "";
}

.home-shortcuts-header h2 {
  margin: 0;
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.home-shortcuts-header p {
  margin: 6px 0 0;
  color: #5c6673;
  font-size: 14px;
  font-weight: 500;
}

.home-shortcut-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.home-shortcut-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-shortcut-group h3 {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 12px;
}

.home-shortcut-tile {
  display: grid;
  min-height: 118px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid rgba(var(--secondary-rgb), 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.9)),
    #fff;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  box-shadow:
    0 14px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.home-shortcut-tile:hover,
.home-shortcut-tile:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.42);
  color: var(--secondary);
  outline: none;
  transform: translateY(-2px);
  box-shadow:
    0 18px 30px rgba(18, 31, 48, 0.12),
    0 0 0 4px rgba(var(--secondary-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.home-shortcut-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--secondary);
}

.home-shortcut-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-card,
.dashboard-section {
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-card {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 18px;
}

.dashboard-card span,
.dashboard-organisation span,
.dashboard-data-list dt {
  color: #5c6673;
  font-size: 13px;
  font-weight: 500;
}

.dashboard-card strong {
  color: var(--secondary);
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

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

.facility-dashboard-page {
  gap: 18px;
}

.facility-dashboard-heading {
  align-items: center;
}

.facility-dashboard-link {
  min-width: 148px;
}

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

.facility-overview-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(240px, 0.85fr);
  gap: 14px;
}

.facility-overview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 254, 0.92)),
    #fff;
  box-shadow:
    0 14px 30px rgba(18, 31, 48, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.facility-overview-card-hero {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 18px;
  border-color: rgba(var(--accent-rgb), 0.2);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.96) 52%, rgba(var(--secondary-rgb), 0.05)),
    #fff;
}

.facility-overview-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.facility-overview-card small {
  color: #66717f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.facility-overview-card strong {
  color: var(--secondary);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.facility-overview-card-hero > strong {
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.facility-overview-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(var(--secondary-rgb), 0.16);
  border-radius: 14px;
  background: rgba(var(--secondary-rgb), 0.07);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 900;
}

.facility-overview-icon.is-orange {
  border-color: rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--accent);
}

.facility-overview-icon.is-teal {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
}

.facility-overview-split {
  display: grid;
  grid-template-columns: minmax(0, 240px);
  gap: 9px;
}

.facility-overview-split span,
.facility-combined-counts span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.facility-overview-split b,
.facility-combined-counts b {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.15;
}

.facility-overview-count-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.facility-overview-count-card > .facility-overview-bullet-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.facility-overview-bullet-list span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(var(--secondary-rgb), 0.12);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(var(--secondary-rgb), 0.045), rgba(255, 255, 255, 0.95)),
    #fff;
  box-shadow:
    0 10px 18px rgba(18, 31, 48, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.facility-overview-bullet-list span::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.facility-overview-bullet-list small {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
}

.facility-overview-bullet-list small::before {
  display: none;
}

.facility-overview-bullet-list strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.facility-command-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(360px, 1.42fr) minmax(230px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.92)),
    #fff;
  box-shadow:
    0 18px 38px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.facility-dashboard-command {
  grid-template-columns: minmax(380px, 1.2fr) minmax(300px, 0.9fr) minmax(240px, 0.72fr);
}

.facility-command-main,
.facility-illustration-card,
.facility-combined-card {
  min-width: 0;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.facility-record-card {
  min-height: auto;
  padding: 16px;
}

.facility-combined-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
}

.facility-combined-counts {
  display: grid;
  gap: 10px;
}

.facility-command-main {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
}

.facility-command-eyebrow {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(var(--secondary-rgb), 0.09);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.facility-command-main > strong {
  color: var(--accent);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 920;
  line-height: 1;
}

.facility-command-main p {
  max-width: 28ch;
  margin: 0;
  color: #5f6a78;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}

.facility-command-stats,
.facility-illustration-stats {
  display: grid;
  gap: 10px;
}

.facility-command-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4px;
}

.facility-command-stats span,
.facility-illustration-stats span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.facility-command-stats small,
.facility-illustration-stats small {
  color: #66717f;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facility-command-stats b,
.facility-illustration-stats b {
  color: var(--secondary);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.facility-command-card > .facility-value-mix {
  grid-template-columns: minmax(170px, 0.72fr) minmax(230px, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 4px 0;
}

.facility-card-header-plain {
  padding-bottom: 10px;
  border-bottom: 0;
}

.facility-illustration-card {
  display: grid;
  gap: 13px;
  padding: 14px;
}

.facility-illustration {
  display: grid;
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(5, 35, 79, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(5, 35, 79, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.07), rgba(var(--secondary-rgb), 0.06));
  background-size: 26px 26px, 26px 26px, auto;
}

.facility-building-shape,
.facility-road-shape,
.facility-node {
  position: absolute;
  display: block;
}

.facility-building-shape {
  right: 18px;
  bottom: 24px;
  width: 45%;
  height: 52%;
  border: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 9px 9px 3px 3px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 -18px 0 rgba(var(--accent-rgb), 0.06);
}

.facility-building-shape::before,
.facility-building-shape::after {
  position: absolute;
  top: 18px;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: rgba(var(--accent-rgb), 0.2);
  content: "";
}

.facility-building-shape::before {
  left: 18px;
  box-shadow: 24px 0 0 rgba(var(--accent-rgb), 0.2), 0 24px 0 rgba(var(--accent-rgb), 0.2), 24px 24px 0 rgba(var(--accent-rgb), 0.2);
}

.facility-building-shape::after {
  right: 16px;
  height: 36px;
  background: rgba(var(--secondary-rgb), 0.22);
}

.facility-road-shape {
  left: 18px;
  bottom: 25px;
  width: 58%;
  height: 34px;
  border: 2px solid rgba(var(--secondary-rgb), 0.28);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  transform: rotate(-18deg);
}

.facility-node {
  width: 13px;
  height: 13px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.26);
}

.facility-node-one {
  top: 28px;
  left: 28px;
}

.facility-node-two {
  right: 44px;
  top: 34px;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.22);
}

.facility-node-three {
  left: 44%;
  bottom: 35px;
  background: #0f766e;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.facility-dashboard-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.facility-dashboard-layout-redesign {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facility-visual-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  min-height: 250px;
  padding: 18px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 254, 0.9)),
    #fff;
  box-shadow:
    0 16px 34px rgba(18, 31, 48, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.facility-visual-card-large {
  grid-column: span 2;
}

.facility-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.08);
}

.facility-card-header h3 {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.facility-card-header p {
  margin: 5px 0 0;
  color: #66717f;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
}

.facility-card-header > strong {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.facility-value-mix {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(220px, 1fr);
  gap: 22px;
  align-items: center;
}

.facility-donut {
  --item-share: 0deg;
  display: grid;
  position: relative;
  width: min(230px, 100%);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 55%, transparent 56%),
    conic-gradient(var(--secondary) 0 var(--item-share), var(--accent) var(--item-share) 360deg);
  box-shadow:
    inset 0 0 0 1px rgba(5, 35, 79, 0.08),
    0 15px 30px rgba(18, 31, 48, 0.08);
}

.facility-donut::after {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: inherit;
  content: "";
}

.facility-donut-center {
  display: grid;
  place-items: center;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  z-index: 1;
}

.facility-donut-center strong {
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.facility-donut-center small {
  color: #687482;
  font-size: 11px;
  font-weight: 650;
}

.facility-legend,
.facility-bar-list,
.facility-plan-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.facility-legend-row,
.facility-bar-row,
.facility-plan-row {
  --row-color: var(--accent);
  --row-rgb: var(--accent-rgb);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(var(--row-rgb), 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--row-rgb), 0.055), rgba(255, 255, 255, 0.96));
}

.facility-legend-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.facility-legend-name,
.facility-bar-name,
.facility-plan-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.facility-legend-name::before,
.facility-bar-name::before {
  display: inline-block;
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--row-color);
  content: "";
}

.facility-bar-name span,
.facility-legend-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facility-legend-value,
.facility-bar-value {
  color: #4d5967;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.facility-bar-value {
  display: grid;
  gap: 2px;
}

.facility-bar-value small {
  color: #788391;
  font-size: 11px;
  font-weight: 550;
}

.facility-bar-row {
  grid-template-columns: minmax(148px, 0.9fr) minmax(140px, 1.25fr) minmax(132px, auto);
  align-items: center;
}

.facility-bar-row.is-clickable {
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.facility-bar-row.is-clickable:hover,
.facility-bar-row.is-clickable:focus-visible {
  border-color: rgba(var(--row-rgb), 0.34);
  outline: none;
  box-shadow:
    0 12px 24px rgba(18, 31, 48, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.facility-bar-row.is-clickable .facility-bar-name span {
  text-decoration: underline;
  text-decoration-color: rgba(var(--row-rgb), 0.36);
  text-underline-offset: 3px;
}

.facility-bar-track,
.facility-plan-track {
  height: 10px;
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(5, 35, 79, 0.07);
}

.facility-bar-fill,
.facility-plan-fill {
  display: block;
  width: var(--bar-width, 0%);
  min-width: 5px;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--row-rgb), 0.58), var(--row-color));
}

.facility-record-mix .facility-bar-row {
  grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 1fr) minmax(74px, auto);
}

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

.facility-plan-row {
  --row-color: var(--secondary);
  --row-rgb: var(--secondary-rgb);
  gap: 10px;
}

.facility-plan-row.is-clear {
  --row-color: #0f766e;
  --row-rgb: 15, 118, 110;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(255, 255, 255, 0.96));
}

.facility-plan-row.is-critical {
  border-color: rgba(var(--secondary-rgb), 0.24);
  background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.09), rgba(255, 255, 255, 0.96));
}

.facility-plan-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.facility-plan-name {
  color: #485361;
  font-weight: 700;
}

.facility-plan-count {
  color: var(--row-color);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.facility-plan-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(var(--row-rgb), 0.1);
  color: var(--row-color);
  font-size: 11px;
  font-weight: 800;
}

.facility-empty-state {
  padding: 18px;
  border: 1px dashed rgba(5, 35, 79, 0.18);
  border-radius: 14px;
  color: #66717f;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.dashboard-section {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.dashboard-section h3 {
  font-size: 18px;
  font-weight: 850;
}

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

.dashboard-data-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.dashboard-data-list div,
.dashboard-organisation {
  display: grid;
  gap: 10px;
}

.dashboard-data-list div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(5, 35, 79, 0.08);
}

.dashboard-data-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.dashboard-data-list dd {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
  text-align: right;
}

.dashboard-organisation {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-organisation-block {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.dashboard-organisation strong {
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
}

.dashboard-organisation-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dashboard-organisation-line {
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.dashboard-organisation-line {
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}

a.dashboard-organisation-line:hover,
a.dashboard-organisation-line:focus-visible {
  color: var(--secondary);
  outline: none;
  text-decoration: underline;
}

.dashboard-info-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.dashboard-logo-mark {
  display: grid;
  width: 126px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.dashboard-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dashboard-consultant-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 16px rgba(18, 31, 48, 0.14);
}

.dashboard-consultant-photo {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.dashboard-type-block {
  align-content: center;
}

.dashboard-summary-stack {
  display: grid;
  gap: 10px;
}

.dashboard-type-pill {
  justify-self: start;
  width: fit-content;
}

.dashboard-summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #5c6673;
  font-size: 13px;
  font-weight: 500;
}

.dashboard-summary-line strong {
  text-align: right;
}

.dashboard-insights-section {
  display: grid;
  gap: 18px;
}

.dashboard-insights-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 2px;
}

.dashboard-insights-header h3 {
  margin: 0;
  color: var(--accent);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
}

.dashboard-insights-header p {
  margin: 5px 0 0;
  color: #66717f;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9)),
    #fff;
  box-shadow:
    0 14px 28px rgba(18, 31, 48, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-kpi-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(18, 31, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-kpi-card.is-insight-clickable {
  cursor: pointer;
}

.dashboard-kpi-card.is-selected {
  border-color: rgba(var(--secondary-rgb), 0.54);
  box-shadow:
    0 18px 34px rgba(var(--secondary-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.dashboard-kpi-card.is-warning {
  border-color: rgba(var(--secondary-rgb), 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 241, 0.92)),
    #fff;
}

.dashboard-kpi-icon {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.dashboard-kpi-icon.is-warning {
  background: rgba(var(--secondary-rgb), 0.1);
  color: var(--secondary);
}

.dashboard-kpi-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dashboard-kpi-card > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dashboard-kpi-card strong {
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-kpi-card span span {
  color: #4f5965;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.dashboard-kpi-card em {
  min-width: 0;
  color: #7a8491;
  font-size: 11px;
  font-style: normal;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-insight-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-insight-search {
  display: grid;
  flex: 1 1 280px;
  gap: 5px;
  min-width: 220px;
}

.dashboard-insight-search span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-insight-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  padding: 0 12px;
  outline: none;
}

.dashboard-insight-search input:focus {
  border-color: rgba(var(--secondary-rgb), 0.54);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.dashboard-active-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  padding: 7px 9px 7px 12px;
  border: 1px solid rgba(var(--secondary-rgb), 0.26);
  border-radius: 999px;
  background: rgba(var(--secondary-rgb), 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-active-selection button {
  min-height: 26px;
  border: 1px solid rgba(var(--secondary-rgb), 0.38);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  padding: 0 9px;
}

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

.insight-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  min-height: 268px;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(249, 251, 254, 0.88)),
    #fff;
  box-shadow:
    0 15px 32px rgba(18, 31, 48, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.insight-card-executive {
  position: relative;
  overflow: visible;
}

.insight-card-executive::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.16), var(--secondary));
  content: "";
}

.insight-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 5px 0 12px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.08);
}

.insight-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.insight-card h4 {
  margin: 0;
  color: var(--accent);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
}

.insight-card-total {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.insight-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #66717f;
  font-size: 11px;
  font-weight: 750;
}

.insight-sort-control select {
  min-height: 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 9px;
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-size: 11px;
  padding: 0 8px;
}

.insight-bars {
  display: grid;
  gap: 12px;
}

.insight-bar-row {
  --row-color: var(--accent);
  --row-rgb: var(--accent-rgb);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(128px, 1.15fr) minmax(148px, auto);
  gap: 13px;
  align-items: center;
  min-width: 0;
  min-height: 30px;
}

.insight-bar-row.is-insight-clickable,
.insight-legend-row.is-insight-clickable,
.insight-donut.is-insight-clickable,
.insight-empty-state.is-insight-clickable {
  cursor: pointer;
}

.insight-bar-row.is-insight-clickable {
  margin: 0 -6px;
  padding: 5px 6px;
  border-radius: 12px;
}

.insight-bar-row.is-insight-clickable:hover,
.insight-bar-row.is-insight-clickable:focus-visible,
.insight-bar-row.is-selected {
  background: rgba(var(--secondary-rgb), 0.07);
  outline: none;
}

.insight-bar-row.is-selected .insight-bar-track {
  box-shadow: 0 0 0 3px rgba(var(--secondary-rgb), 0.1);
}

.insight-bar-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #485361;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-row-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.insight-row-badge.is-warning {
  border-color: rgba(var(--secondary-rgb), 0.24);
  background: rgba(var(--secondary-rgb), 0.08);
  color: var(--secondary);
}

.insight-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(5, 35, 79, 0.075);
}

.insight-bar-fill {
  display: block;
  height: 100%;
  min-width: 5px;
  border-radius: inherit;
  background: var(--row-color);
  box-shadow: 0 4px 10px rgba(var(--row-rgb), 0.16);
  transform-origin: left center;
  animation: insightBarGrow 0.46s ease both;
}

.insight-bar-value {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

.insight-bar-value small {
  color: #7a8491;
  font-size: 10px;
  font-weight: 650;
}

.insight-empty-state {
  display: grid;
  min-height: 158px;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 22px;
  border: 1px dashed rgba(5, 35, 79, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(248, 250, 253, 0.86), rgba(255, 255, 255, 0.78)),
    #fff;
  text-align: center;
}

.insight-empty-state.is-insight-clickable:hover,
.insight-empty-state.is-insight-clickable:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.36);
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.07);
}

.insight-empty-state .dashboard-kpi-icon {
  margin-bottom: 4px;
}

.insight-empty-state strong {
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
}

.insight-empty-state span {
  max-width: 270px;
  color: #66717f;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
}

.insight-donut-layout {
  display: grid;
  grid-template-columns: minmax(132px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: center;
}

.insight-donut-wrap {
  display: grid;
  place-items: center;
  min-width: 0;
}

.insight-donut {
  display: grid;
  width: 148px;
  height: 148px;
  place-items: center;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(5, 35, 79, 0.08),
    0 14px 28px rgba(18, 31, 48, 0.08);
}

.insight-donut.is-insight-clickable:hover,
.insight-donut.is-insight-clickable:focus-visible {
  outline: 4px solid rgba(var(--secondary-rgb), 0.12);
  outline-offset: 4px;
}

.insight-donut-center {
  display: grid;
  width: 92px;
  height: 92px;
  place-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(5, 35, 79, 0.08);
  text-align: center;
}

.insight-donut-center strong {
  color: var(--accent);
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.insight-donut-center span {
  color: #66717f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.insight-legend {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.insight-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 4px 6px;
  border-radius: 11px;
  margin: 0 -6px;
}

.insight-legend-row:hover,
.insight-legend-row:focus-visible,
.insight-legend-row.is-selected {
  background: rgba(var(--secondary-rgb), 0.07);
  outline: none;
}

.insight-legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.insight-legend-row span {
  min-width: 0;
  color: #485361;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-legend-row strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.insight-legend-note {
  color: #7a8491;
  font-size: 11px;
  font-weight: 650;
}

.insight-show-toggle {
  justify-self: end;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(var(--secondary-rgb), 0.38);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.insight-show-toggle:hover,
.insight-show-toggle:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.72);
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  position: absolute;
  z-index: 50;
  bottom: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: min(320px, 82vw);
  padding: 10px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(5, 35, 79, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  color: #485361;
  box-shadow: 0 18px 36px rgba(18, 31, 48, 0.16);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
  text-align: left;
  white-space: pre-line;
}

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

.insight-plan-grid span {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 11px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 253, 0.78);
}

.insight-plan-grid em {
  color: #5c6673;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}

.insight-plan-grid strong {
  color: var(--accent);
  font-size: 19px;
  font-weight: 850;
  line-height: 1;
}

.insight-plan-card {
  grid-column: 1 / -1;
}

.insight-plan-total-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
  border-radius: 999px;
  background: rgba(var(--secondary-rgb), 0.09);
  color: var(--secondary);
}

.insight-plan-body {
  display: grid;
  gap: 16px;
}

.insight-plan-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.insight-plan-kpi {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 13px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 10px 20px rgba(18, 31, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.insight-plan-kpi em {
  color: #66717f;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.insight-plan-kpi strong {
  color: var(--accent);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.insight-plan-kpi.is-total,
.insight-plan-kpi.is-critical {
  border-color: rgba(var(--secondary-rgb), 0.22);
  background: rgba(var(--secondary-rgb), 0.07);
}

.insight-plan-kpi.is-total strong,
.insight-plan-kpi.is-critical strong {
  color: var(--secondary);
}

.insight-plan-kpi.is-attention {
  border-color: rgba(217, 119, 6, 0.22);
  background: rgba(217, 119, 6, 0.07);
}

.insight-plan-kpi.is-attention strong {
  color: #b45309;
}

.insight-plan-kpi.is-clear {
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.06);
}

.insight-plan-kpi.is-clear strong {
  color: #0f766e;
}

.insight-plan-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.insight-plan-section {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 253, 0.66);
}

.insight-plan-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.08);
}

.insight-plan-section h5 {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.insight-plan-section header span {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.insight-plan-rows {
  display: grid;
  gap: 9px;
}

.insight-plan-row {
  --plan-row-color: var(--secondary);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  overflow: visible;
  padding: 10px 11px 12px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
}

.insight-plan-row > span {
  min-width: 0;
  color: #485361;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-plan-row > strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.insight-plan-row > em {
  min-width: 74px;
  padding: 4px 8px;
  border: 1px solid rgba(var(--secondary-rgb), 0.28);
  border-radius: 999px;
  background: rgba(var(--secondary-rgb), 0.08);
  color: var(--secondary);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.insight-plan-row > i {
  position: absolute;
  right: 11px;
  bottom: 6px;
  left: 11px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(5, 35, 79, 0.06);
}

.insight-plan-row > i::before {
  display: block;
  width: var(--plan-risk-width);
  height: 100%;
  border-radius: inherit;
  background: var(--plan-row-color);
  content: "";
}

.insight-plan-row.is-critical {
  --plan-row-color: var(--secondary);
  border-color: rgba(var(--secondary-rgb), 0.26);
  background: rgba(var(--secondary-rgb), 0.07);
}

.insight-plan-row.is-critical > strong,
.insight-plan-row.is-critical > em {
  color: var(--secondary);
}

.insight-plan-row.is-attention {
  --plan-row-color: #d97706;
  border-color: rgba(217, 119, 6, 0.22);
  background: rgba(217, 119, 6, 0.07);
}

.insight-plan-row.is-attention > strong,
.insight-plan-row.is-attention > em {
  color: #b45309;
}

.insight-plan-row.is-attention > em {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(217, 119, 6, 0.08);
}

.insight-plan-row.is-clear {
  --plan-row-color: #0f766e;
  background: rgba(255, 255, 255, 0.62);
}

.insight-plan-row.is-clear > strong {
  color: #0f766e;
}

.insight-plan-row.is-clear > em {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.06);
  color: #0f766e;
}

@keyframes insightBarGrow {
  from {
    transform: scaleX(0.08);
  }

  to {
    transform: scaleX(1);
  }
}

.list-panel-header {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.list-panel-header > div:first-child {
  min-width: 0;
}

.list-panel-header h2 {
  margin: 0;
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.list-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  flex-wrap: nowrap;
}

.list-panel-actions > * {
  flex: 0 0 auto;
}

.list-panel-action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid rgba(5, 35, 79, 0.12);
}

.list-panel-action-group:last-of-type {
  padding-right: 0;
  border-right: 0;
}

.page-summary-strip {
  position: relative;
  z-index: 11;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.summary-chip {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 9px;
  row-gap: 3px;
  align-items: baseline;
  min-height: 46px;
  min-width: 154px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent);
  box-shadow:
    0 10px 20px rgba(18, 31, 48, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.summary-chip span {
  color: #5c6673;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.summary-chip .summary-chip-title {
  grid-column: 1 / -1;
  max-width: 230px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-chip strong {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

.summary-chip.is-wide {
  min-width: 250px;
}

.summary-chip.is-warning {
  border-color: rgba(var(--secondary-rgb), 0.28);
}

.grouped-view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(var(--secondary-rgb), 0.58);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(var(--secondary-rgb), 0.08);
}

.grouped-view-button:hover,
.grouped-view-button.is-active {
  background: rgba(var(--secondary-rgb), 0.08);
  box-shadow: 0 14px 26px rgba(var(--secondary-rgb), 0.14);
}

.list-search {
  display: flex;
  align-items: center;
  width: clamp(220px, 28vw, 320px);
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.58);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.list-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 12px 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.list-search input::placeholder {
  color: #7a8491;
  font-weight: 700;
}

.list-search button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(5, 35, 79, 0.18);
  background: rgba(var(--secondary-rgb), 0.04);
  color: var(--secondary);
  cursor: pointer;
}

.list-search button:hover {
  background: rgba(var(--secondary-rgb), 0.1);
  color: var(--secondary);
}

.list-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.list-filter-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.list-column-selector-wrap {
  position: relative;
  flex: 0 0 auto;
}

.list-filter-toggle {
  color: var(--accent);
}

.list-filter-toggle.is-active,
.column-selector-button.is-active {
  border-color: rgba(var(--secondary-rgb), 0.58);
  color: var(--secondary);
  box-shadow:
    0 12px 22px rgba(var(--secondary-rgb), 0.1),
    0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.column-selector-button {
  color: var(--accent);
}

.column-selector-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.list-filter-menu,
.column-selector-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: min(360px, calc(100vw - 36px));
  max-height: min(620px, calc(100vh - 160px));
  overflow: hidden;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.94)),
    #ffffff;
  box-shadow:
    0 24px 48px rgba(18, 31, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.column-selector-menu {
  left: auto;
  right: 0;
  width: min(300px, calc(100vw - 36px));
}

.list-filter-menu-groups {
  display: grid;
  max-height: min(510px, calc(100vh - 260px));
  overflow: auto;
  padding: 8px;
  gap: 6px;
}

.list-filter-menu-group {
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.list-filter-menu-heading {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(5, 35, 79, 0.08);
  background: rgba(5, 35, 79, 0.04);
  color: var(--accent);
  cursor: default;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.list-filter-menu-options {
  display: grid;
  gap: 2px;
  padding: 6px;
}

.column-selector-menu-options {
  display: grid;
  gap: 2px;
  max-height: min(430px, calc(100vh - 220px));
  overflow: auto;
  padding: 8px;
}

.list-filter-menu-option,
.column-selector-menu-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 5px 6px;
  border-radius: 9px;
  color: #4d5968;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.list-filter-menu-option:hover,
.column-selector-menu-option:hover {
  background: rgba(var(--secondary-rgb), 0.07);
}

.list-filter-menu-option input,
.column-selector-menu-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--secondary);
}

.list-filter-menu-option span,
.column-selector-menu-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-filter-menu-empty {
  margin: 0;
  padding: 7px;
  color: #7a8491;
  font-size: 12px;
  font-weight: 650;
}

.list-filter-menu-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(5, 35, 79, 0.1);
  background: rgba(248, 250, 253, 0.92);
}

.list-filter-menu-actions .modal-outline-button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.list-filter-strip {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.combined-filter-strip {
  display: none;
}

.list-filter-strip label {
  display: grid;
  gap: 3px;
  min-width: 96px;
  max-width: 138px;
  flex: 1 1 112px;
}

.list-filter-strip span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.list-filter-strip select {
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  color: #3f4650;
  font: inherit;
  font-size: 12px;
  line-height: 1;
}

.list-filter-strip select:focus {
  outline: 2px solid rgba(var(--secondary-rgb), 0.18);
  outline-offset: 1px;
}

.actions-filters {
  position: relative;
  z-index: 10;
  display: none;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 253, 0.84)),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    0 12px 24px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.actions-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.actions-filters label > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.actions-filters select,
.actions-filters input[type="date"] {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #3f4650;
  font: inherit;
  font-size: 13px;
}

.actions-page {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: calc(100vh - 129px);
  min-height: 0;
  overflow: hidden;
}

.actions-list-view,
.actions-calendar-view,
.actions-kanban-view,
.plan-graph-view {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.actions-event-list-wrap {
  height: 100%;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 16px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.actions-event-list {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.thirty-year-plan-page .actions-event-list {
  gap: 12px;
  padding: 10px;
}

.plan-scope-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.action-event-group {
  display: grid;
  gap: 10px;
}

.action-event-group h3 {
  margin: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  box-shadow: none;
}

.action-event-group.is-month-group {
  gap: 8px;
}

.action-event-group h3.action-month-heading {
  padding: 0;
}

.action-month-toggle {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  text-align: left;
  box-shadow:
    0 9px 18px rgba(18, 31, 48, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.action-month-toggle:hover,
.action-month-toggle:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.35);
  outline: none;
}

.action-month-toggle-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(var(--secondary-rgb), 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  box-shadow: 0 6px 14px rgba(18, 31, 48, 0.065);
}

.action-month-toggle-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.action-month-count {
  padding: 5px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.action-event-group h3.plan-year-heading {
  display: block;
  padding: 0;
}

.plan-year-heading strong {
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
}

.plan-year-sort-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  box-shadow:
    0 7px 13px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.plan-year-sort-button:hover,
.plan-year-sort-button:focus-visible {
  background: rgba(var(--accent-rgb), 0.08);
  outline: none;
}

.action-event-group.is-overdue h3 {
  color: var(--secondary);
}

.action-event-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.thirty-year-plan-page .action-event-cards {
  gap: 6px;
}

.thirty-year-plan-page .action-event-group.is-plan-year-group {
  position: relative;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 22px rgba(18, 31, 48, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.thirty-year-plan-page .action-event-group.is-plan-year-group::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--accent);
  content: "";
}

.plan-nested-toggle {
  display: grid;
  grid-template-columns: auto minmax(190px, 0.8fr) minmax(460px, 1.4fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 12px 16px 12px 20px;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.plan-year-toggle {
  padding-left: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.88)),
    rgba(255, 255, 255, 0.94);
}

.plan-nested-toggle:hover,
.plan-nested-toggle:focus-visible {
  background: rgba(5, 35, 79, 0.035);
  outline: none;
}

.plan-nested-toggle-icon {
  flex: 0 0 auto;
}

.plan-nested-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.plan-nested-title strong {
  min-width: 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.16;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-nested-title small {
  min-width: 0;
  color: #687482;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-nested-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.plan-nested-metric {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 11px;
  background: rgba(248, 250, 253, 0.76);
}

.plan-nested-metric small {
  color: #6a7481;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-nested-metric strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-event-card {
  --event-action-color: var(--accent);
  --event-action-rgb: var(--accent-rgb);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.88)),
    rgba(255, 255, 255, 0.92);
  color: #3f4650;
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 16px 28px rgba(18, 31, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.action-event-card:hover,
.action-event-card:focus-visible {
  border-color: rgba(var(--event-action-rgb), 0.42);
  border-left-color: var(--event-action-color);
  outline: none;
  box-shadow:
    0 18px 34px rgba(var(--event-action-rgb), 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.action-event-card.is-replacement {
  --event-action-color: var(--secondary);
  --event-action-rgb: var(--secondary-rgb);
  border-left-color: var(--secondary);
}

.action-event-card.is-maintenance {
  --event-action-color: var(--accent);
  --event-action-rgb: var(--accent-rgb);
}

.action-event-card.is-plan-compact {
  --event-action-color: var(--secondary);
  --event-action-rgb: var(--secondary-rgb);
  gap: 6px;
  padding: 8px 10px 8px 12px;
  border-left-color: var(--secondary);
  box-shadow:
    0 8px 16px rgba(18, 31, 48, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.action-event-card.is-plan-compact:hover,
.action-event-card.is-plan-compact:focus-visible {
  border-color: rgba(5, 35, 79, 0.12);
  border-left-color: var(--event-action-color);
  box-shadow:
    0 9px 18px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.action-event-card.is-plan-compact.is-plan-reserve-included {
  --event-action-color: var(--secondary);
  --event-action-rgb: var(--secondary-rgb);
  border-left-color: var(--secondary);
}

.action-event-card.is-plan-compact.is-plan-reserve-excluded {
  --event-action-color: #9ca3af;
  --event-action-rgb: 156, 163, 175;
  border-left-color: #9ca3af;
}

.action-event-card.is-read-only {
  cursor: default;
}

.action-event-card.is-read-only:hover {
  border-color: rgba(8, 40, 80, 0.1);
  border-left-color: var(--event-action-color);
}

.action-event-card.is-plan-future {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 244, 247, 0.82)),
    rgba(248, 250, 253, 0.82);
  color: #6b7280;
}

.action-event-card.is-plan-future .action-card-field strong,
.action-event-card.is-plan-future .action-card-label {
  color: #6b7280;
}

.action-event-card.is-overdue {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 243, 0.9)),
    rgba(255, 255, 255, 0.92);
}

.action-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #3f4650;
  font-size: 12px;
  font-weight: 800;
  box-shadow:
    0 8px 14px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.action-pill.is-replacement,
.action-pill.is-overdue,
.action-pill.is-variance,
.action-pill.is-status {
  border-color: rgba(8, 40, 80, 0.12);
  color: #3f4650;
}

.action-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.action-card-grid.is-compact-plan {
  grid-template-columns: minmax(240px, 1fr) max-content max-content;
  align-items: center;
  column-gap: 10px;
}

.plan-card-description,
.plan-card-scheduling,
.plan-card-costing {
  min-width: 0;
}

.plan-card-description {
  display: grid;
  gap: 3px;
}

.plan-card-description-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.plan-card-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(var(--secondary-rgb), 0.28);
  border-radius: 999px;
  background: rgba(var(--secondary-rgb), 0.08);
  color: var(--secondary);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-card-type-badge.is-maintenance {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.plan-card-description strong,
.plan-card-description span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-card-description strong {
  color: #3f4650;
  font-size: 13px;
  font-weight: 750;
}

.plan-card-description span {
  color: #5f6976;
  font-size: 11px;
  font-weight: 500;
}

.plan-card-scheduling {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  gap: 5px;
}

.plan-card-costing {
  display: grid;
  justify-self: end;
}

.plan-card-metric {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.plan-card-metric em {
  color: #697386;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-card-metric strong {
  color: #3f4650;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.plan-card-costing .plan-card-metric strong {
  color: var(--accent);
  text-align: right;
}

.action-event-card.is-plan-future .plan-card-description strong,
.action-event-card.is-plan-future .plan-card-description span,
.action-event-card.is-plan-future .plan-card-metric em,
.action-event-card.is-plan-future .plan-card-metric strong,
.action-event-card.is-plan-future .plan-card-costing .plan-card-metric strong {
  color: #6b7280;
}

.action-event-card.is-plan-future .plan-card-type-badge.is-replacement {
  color: var(--secondary);
}

.action-event-card.is-plan-future .plan-card-type-badge.is-maintenance {
  color: var(--accent);
}

.plan-event-subsection {
  display: grid;
  gap: 7px;
}

.plan-event-subsection + .plan-event-subsection {
  margin-top: 0;
}

.plan-event-subheading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.plan-event-subsection.is-nested {
  position: relative;
  margin: 0 14px 10px 34px;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 13px;
  background: rgba(250, 252, 255, 0.88);
  box-shadow:
    0 8px 16px rgba(18, 31, 48, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.plan-event-subsection.is-nested::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(var(--accent-rgb), 0.46);
  content: "";
}

.plan-event-subsection .plan-nested-toggle {
  min-height: 54px;
  padding: 10px 12px 10px 16px;
  grid-template-columns: auto minmax(180px, 0.8fr) minmax(420px, 1.35fr);
}

.plan-event-subsection .plan-nested-title strong {
  font-size: 14px;
  font-weight: 820;
}

.plan-event-sort-button {
  width: 34px;
  height: 34px;
  margin-right: 12px;
}

.plan-event-sort-button.is-active {
  border-color: rgba(var(--accent-rgb), 0.48);
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--accent);
}

.plan-event-subsection .action-event-cards {
  padding: 0 12px 12px 44px;
}

.plan-event-empty {
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed rgba(8, 40, 80, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: #7a8491;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .plan-nested-toggle,
  .plan-event-subsection .plan-nested-toggle {
    grid-template-columns: auto minmax(0, 1fr);
  }

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

.action-card-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.action-card-label {
  color: #697386;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.action-card-value-row {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  justify-content: flex-start;
  overflow: visible;
}

.action-card-field strong {
  min-width: 0;
  overflow: hidden;
  color: #3f4650;
  font-size: 14px;
  font-weight: 650;
  flex: 0 1 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-field-edit-button {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(var(--event-action-rgb), 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--event-action-color);
  cursor: pointer;
  box-shadow:
    0 7px 13px rgba(var(--event-action-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.action-field-edit-button:hover,
.action-field-edit-button:focus-visible {
  background: rgba(var(--event-action-rgb), 0.08);
  outline: none;
}

.action-field-edit-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.action-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
}

.action-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(var(--event-action-rgb), 0.52);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--event-action-color);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow:
    0 9px 16px rgba(var(--event-action-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.action-card-button:hover,
.action-card-button:focus-visible {
  background: rgba(var(--event-action-rgb), 0.08);
  outline: none;
}

.maintenance-dashboard-page {
  gap: 18px;
}

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

.maintenance-insight-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 254, 0.9)),
    #fff;
  box-shadow:
    0 16px 34px rgba(18, 31, 48, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.maintenance-insight-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.08);
}

.maintenance-insight-card h3 {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.maintenance-insight-card p {
  margin: 5px 0 0;
  color: #66717f;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
}

.maintenance-insight-card header > strong {
  color: var(--secondary);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.maintenance-insight-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.maintenance-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(5, 35, 79, 0.09);
  border-left: 4px solid var(--event-action-color, var(--secondary));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 16px rgba(18, 31, 48, 0.055);
}

.maintenance-preview-row.is-replacement,
.maintenance-action-row.is-replacement {
  --event-action-color: #c2410c;
  --event-action-rgb: 194, 65, 12;
}

.maintenance-preview-row.is-maintenance,
.maintenance-action-row.is-maintenance {
  --event-action-color: var(--secondary);
  --event-action-rgb: var(--secondary-rgb);
}

.maintenance-preview-row:hover,
.maintenance-preview-row:focus-visible {
  border-color: rgba(var(--event-action-rgb), 0.24);
  border-left-color: var(--event-action-color);
  background: rgba(var(--event-action-rgb), 0.055);
  outline: none;
}

.maintenance-preview-row strong,
.maintenance-preview-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maintenance-preview-row strong {
  color: #3f4650;
  font-size: 13px;
  font-weight: 750;
}

.maintenance-preview-row span {
  grid-column: 1;
  color: #66717f;
  font-size: 11px;
  font-weight: 550;
}

.maintenance-preview-row b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.maintenance-insight-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(5, 35, 79, 0.14);
  border-radius: 12px;
  color: #788391;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.maintenance-insight-open {
  justify-self: end;
  min-width: 124px;
}

.maintenance-variance-card {
  grid-column: span 2;
}

.maintenance-variance-chart {
  display: grid;
  gap: 9px;
}

.maintenance-variance-bar {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #3f4650;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}

.maintenance-variance-bar:disabled {
  cursor: default;
  opacity: 0.62;
}

.maintenance-variance-bar:not(:disabled):hover,
.maintenance-variance-bar:not(:disabled):focus-visible {
  border-color: rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.055);
  outline: none;
}

.maintenance-variance-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(5, 35, 79, 0.07);
}

.maintenance-variance-fill {
  display: block;
  width: var(--bar-width, 0%);
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.45), var(--accent));
}

.maintenance-variance-bar strong {
  color: var(--secondary);
  text-align: right;
}

.maintenance-action-modal-card {
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 56px);
}

.maintenance-bulk-edit-bar {
  display: grid;
  grid-template-columns: max-content minmax(180px, 240px) max-content minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 14px;
  background: rgba(248, 250, 253, 0.92);
}

.maintenance-bulk-edit-bar label {
  display: grid;
  gap: 5px;
  color: #697386;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.maintenance-select-all {
  grid-template-columns: auto auto;
  align-items: center;
  align-self: center;
  color: #3f4650;
  text-transform: none;
}

.maintenance-bulk-edit-bar input[type="date"] {
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(5, 35, 79, 0.16);
  border-radius: 10px;
  color: #3f4650;
  font: inherit;
}

.maintenance-action-modal-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.maintenance-action-row {
  display: grid;
  grid-template-columns: 32px minmax(260px, 1fr) 156px max-content max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(5, 35, 79, 0.09);
  border-left: 4px solid var(--event-action-color, var(--secondary));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.maintenance-action-check {
  display: grid;
  place-items: center;
}

.maintenance-action-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.maintenance-action-detail {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.maintenance-action-detail strong,
.maintenance-action-detail span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maintenance-action-detail strong {
  color: #3f4650;
  font-size: 13px;
  font-weight: 750;
}

.maintenance-action-detail span {
  color: #66717f;
  font-size: 11px;
  font-weight: 550;
}

.maintenance-action-date input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(5, 35, 79, 0.15);
  border-radius: 10px;
  color: #3f4650;
  font: inherit;
  text-align: center;
}

.maintenance-row-save,
.maintenance-row-view {
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.action-status-control {
  display: inline-flex;
  position: relative;
}

.action-status-change-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 25;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 12px;
  border: 1px solid rgba(var(--event-action-rgb), 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 16px 30px rgba(18, 31, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.action-status-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 8px;
  border: 1px solid rgba(var(--event-action-rgb), 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 16px 30px rgba(18, 31, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.action-status-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #3f4650;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.action-status-option:hover,
.action-status-option:focus-visible {
  background: rgba(var(--event-action-rgb), 0.08);
  outline: none;
}

.action-status-tick {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(var(--event-action-rgb), 0.72);
  border-radius: 4px;
  background: #fff;
}

.action-status-tick::before {
  content: "";
  width: 8px;
  height: 5px;
  border-bottom: 2.5px solid var(--event-action-color);
  border-left: 2.5px solid var(--event-action-color);
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.action-status-option.is-selected .action-status-tick::before {
  opacity: 1;
}

.action-date-change-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(240px, 1fr);
  gap: 12px;
  min-width: 300px;
  padding: 12px;
  border: 1px solid rgba(var(--event-action-rgb), 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 16px 30px rgba(18, 31, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.action-date-input-wrap {
  display: flex;
  min-width: 0;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
}

.action-date-input-wrap input {
  min-width: 0;
  width: 100%;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: #3f4650;
  font: inherit;
  font-size: 13px;
}

.action-date-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
}

.action-date-picker-button {
  display: grid;
  width: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(8, 40, 80, 0.1);
  background: rgba(var(--event-action-rgb), 0.05);
  color: var(--event-action-color);
  cursor: pointer;
}

.action-date-picker-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.action-date-change-panel input[type="text"] {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  color: #3f4650;
  font: inherit;
}

.action-inline-message {
  grid-column: 1 / -1;
  color: var(--event-action-color);
  font-size: 12px;
  font-weight: 750;
}

.action-date-change-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 8px;
}

.actions-overdue-filter {
  display: flex !important;
  align-items: end;
  gap: 9px;
  padding-bottom: 8px;
}

.actions-overdue-filter input {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary);
}

.actions-calendar-view {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.actions-list-view[hidden],
.actions-calendar-view[hidden],
.actions-kanban-view[hidden],
.plan-graph-view[hidden],
.plan-budget-view[hidden] {
  display: none;
}

.actions-kanban-view {
  min-height: 0;
  overflow: hidden;
}

.actions-kanban-board {
  display: grid;
  grid-auto-columns: minmax(300px, 340px);
  grid-auto-flow: column;
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.actions-kanban-lane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(248, 250, 253, 0.9);
  box-shadow:
    0 10px 20px rgba(18, 31, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.actions-kanban-lane.is-drop-target {
  border-color: rgba(var(--secondary-rgb), 0.48);
  background: rgba(var(--secondary-rgb), 0.06);
  box-shadow:
    0 16px 28px rgba(var(--secondary-rgb), 0.12),
    inset 0 0 0 1px rgba(var(--secondary-rgb), 0.18);
}

.actions-kanban-lane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(8, 40, 80, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.actions-kanban-lane-heading h3 {
  margin: 0;
  overflow: hidden;
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions-kanban-lane-heading span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.actions-kanban-cards {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 120px;
  overflow-y: auto;
  padding: 12px;
}

.actions-kanban-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #3f4650;
  cursor: grab;
  box-shadow:
    0 8px 16px rgba(18, 31, 48, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.actions-kanban-card:active {
  cursor: grabbing;
}

.actions-kanban-card.is-replacement {
  border-left-color: var(--secondary);
}

.actions-kanban-card.is-overdue {
  background: rgba(var(--secondary-rgb), 0.07);
}

.actions-kanban-card.is-selected {
  border-color: rgba(var(--secondary-rgb), 0.44);
  box-shadow:
    0 10px 22px rgba(var(--secondary-rgb), 0.12),
    inset 0 0 0 1px rgba(var(--secondary-rgb), 0.16);
}

.actions-kanban-card.is-dragging {
  opacity: 0.46;
}

.actions-kanban-card:hover,
.actions-kanban-card:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.38);
  outline: none;
}

.actions-kanban-select {
  display: grid;
  place-items: start center;
  padding-top: 1px;
}

.actions-kanban-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--secondary);
}

.actions-kanban-card-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.actions-kanban-card-content strong,
.actions-kanban-card-content span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions-kanban-card-content strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.actions-kanban-card-content span {
  color: #697382;
  font-size: 12px;
  font-weight: 650;
}

.actions-kanban-card-content span:last-child {
  color: var(--secondary);
  font-weight: 850;
}

.actions-kanban-empty {
  align-self: start;
  min-width: 280px;
}

.plan-graph-view,
.plan-budget-view {
  display: grid;
  min-height: 0;
}

.reserve-spent-budget-page {
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  min-height: calc(100vh - 129px);
}

.reserve-spent-budget-page .plan-graph-view {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.reserve-spent-budget-page .plan-chart-wrap {
  grid-template-rows: auto auto auto auto;
  min-height: 0;
  padding: 10px;
}

.reserve-spent-budget-page .plan-budget-view {
  min-height: 0;
}

.plan-budget-view {
  position: relative;
}

.plan-budget-export-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
}

.plan-budget-export-button:hover,
.plan-budget-export-button:focus-visible {
  color: var(--secondary);
}

.plan-chart-wrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.spent-budget-chart-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.spent-budget-chart-header h3 {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.spent-budget-chart {
  display: block;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.spent-budget-chart svg {
  display: block;
  width: max(100%, 1120px);
  height: auto;
  aspect-ratio: 14 / 3.4;
  min-height: 0;
  max-height: min(31vh, 280px);
}

.plan-chart {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 4px 0 2px;
}

.plan-chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 2px 0 23px;
  color: #6c7480;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.plan-chart-plot {
  position: relative;
  min-width: 0;
  min-height: 240px;
  overflow: hidden;
}

.plan-chart-gridlines {
  position: absolute;
  inset: 0 0 23px;
  z-index: 0;
  pointer-events: none;
}

.plan-chart-gridlines span {
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px solid rgba(8, 40, 80, 0.1);
}

.plan-chart-bars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(2px, 0.28vw, 6px);
  height: 100%;
  min-height: 240px;
}

.plan-chart-bar {
  display: grid;
  grid-template-rows: minmax(170px, 1fr) 18px;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.plan-chart-fill-slot {
  display: flex;
  align-items: end;
  min-height: 0;
  padding: 0 1px;
}

.plan-chart-fill {
  display: block;
  width: 100%;
  border: 1px solid var(--plan-chart-heat-border, rgba(var(--accent-rgb), 0.22));
  border-radius: 9px 9px 3px 3px;
  background:
    linear-gradient(180deg, var(--plan-chart-heat, #fff), var(--plan-chart-heat-soft, #fff)),
    #fff;
  box-shadow:
    0 10px 18px rgba(var(--secondary-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
  transition:
    border-color 0.16s ease,
    transform 0.16s ease;
}

.plan-chart-bar:hover .plan-chart-fill,
.plan-chart-bar:focus-visible .plan-chart-fill {
  border-color: rgba(var(--accent-rgb), 0.54);
  transform: translateY(-2px);
}

.plan-chart-bar:focus-visible {
  outline: 2px solid rgba(var(--secondary-rgb), 0.55);
  outline-offset: 4px;
}

.plan-chart-label {
  color: #5f6976;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.plan-chart-detail {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.86)),
    rgba(255, 255, 255, 0.9);
  color: #3f4650;
  font-size: 13px;
  font-weight: 750;
  box-shadow:
    0 10px 18px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.plan-budget-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-budget-column {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.plan-budget-column.is-single-list {
  gap: 5px;
}

.plan-budget-column h3 {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
}

.plan-budget-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--plan-budget-heat-border, rgba(var(--accent-rgb), 0.2));
  border-left: 5px solid var(--plan-budget-heat-border, rgba(var(--secondary-rgb), 0.5));
  border-radius: 12px;
  background:
    linear-gradient(90deg, var(--plan-budget-heat-soft, #fff), rgba(255, 255, 255, 0.94) 58%),
    #fff;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow:
    0 8px 18px rgba(18, 31, 48, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(var(--accent-rgb), 0.06);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.plan-budget-card:hover,
.plan-budget-card:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.24);
  border-left-color: var(--plan-budget-heat, var(--secondary));
  outline: none;
  box-shadow:
    0 12px 24px rgba(18, 31, 48, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.plan-budget-card-header {
  display: grid;
  align-content: center;
  min-width: 0;
}

.plan-budget-card-header strong {
  color: var(--secondary);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.plan-budget-card-header span {
  overflow: hidden;
  color: #5f6976;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-budget-metrics {
  display: grid;
  grid-template-columns: minmax(82px, 0.9fr) minmax(104px, 1fr) minmax(54px, 0.56fr);
  gap: 4px;
  min-width: 0;
}

.plan-budget-metrics > span {
  display: grid;
  align-content: center;
  gap: 1px;
  min-width: 0;
  padding: 4px 5px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.plan-budget-metrics span span {
  overflow: hidden;
  color: #697382;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-budget-metrics strong {
  overflow: hidden;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-budget-metrics .is-budget-percent {
  align-content: center;
  justify-items: center;
  text-align: center;
}

.plan-budget-metrics .is-budget-percent strong {
  color: var(--secondary);
  font-size: 18px;
  line-height: 1;
}

.plan-budget-card.is-spent-budget-card {
  grid-template-columns: 70px minmax(0, 1fr);
  min-height: 56px;
}

.spent-budget-metrics {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 6px;
}

.spent-budget-metric-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(58px, 0.5fr);
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.spent-budget-metric-main {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  padding: 3px 4px;
}

.spent-budget-metric-main span {
  overflow: hidden;
  color: #697382;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.spent-budget-metric-main strong {
  overflow: hidden;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spent-budget-metric-section.is-reserve-spent .spent-budget-metric-main strong {
  color: var(--primary);
}

.spent-budget-metric-percent {
  display: grid;
  min-width: 0;
  min-height: 100%;
  place-items: center;
  padding: 4px;
  border: 1px solid var(--spent-metric-border, rgba(var(--accent-rgb), 0.18));
  border-radius: 8px;
  background: var(--spent-metric-heat, rgba(255, 255, 255, 0.88));
}

.spent-budget-metric-percent strong {
  overflow: hidden;
  color: var(--spent-metric-percent-color, var(--accent));
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-budget-image-modal-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(780px, calc(100vw - 36px));
  max-height: min(92vh, 940px);
}

.plan-budget-image-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.plan-budget-image-actions .icon-button {
  width: 42px;
  height: 42px;
}

.plan-budget-image-preview {
  display: grid;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.86)),
    rgba(255, 255, 255, 0.92);
}

.plan-budget-image-preview img {
  display: block;
  width: min(100%, 520px);
  max-height: calc(92vh - 150px);
  margin: 0 auto;
  border: 1px solid rgba(8, 40, 80, 0.16);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 18px 38px rgba(18, 31, 48, 0.14);
}

.actions-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 12px 24px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.actions-calendar-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions-calendar-nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.actions-calendar-nav .icon-action-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.actions-calendar-nav .grouped-view-button {
  min-height: 40px;
}

.actions-calendar-nav .grouped-view-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.actions-calendar-title {
  min-width: 120px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 850;
  text-align: right;
}

.actions-calendar-grid {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 12px 24px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.actions-week-grid {
  display: grid;
  grid-template-columns: 76px repeat(7, minmax(150px, 1fr));
}

.actions-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
}

.actions-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  padding: 12px;
}

.calendar-day-heading,
.calendar-time-cell,
.calendar-slot,
.calendar-month-cell {
  min-height: 58px;
  padding: 8px;
  border-right: 1px solid rgba(5, 35, 79, 0.08);
  border-bottom: 1px solid rgba(5, 35, 79, 0.08);
}

.calendar-day-heading,
.calendar-time-cell {
  background: rgba(5, 35, 79, 0.04);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.calendar-slot,
.calendar-month-cell {
  display: grid;
  align-content: start;
  gap: 6px;
}

.calendar-day-heading.is-weekend,
.calendar-slot.is-weekend,
.calendar-month-cell.is-weekend,
.calendar-day-heading.is-public-holiday,
.calendar-slot.is-public-holiday,
.calendar-month-cell.is-public-holiday {
  background: rgba(5, 35, 79, 0.055);
}

.calendar-day-heading.is-public-holiday,
.calendar-month-cell.is-public-holiday strong {
  color: var(--secondary);
}

.calendar-month-cell {
  min-height: 122px;
}

.calendar-month-cell.is-muted {
  background: rgba(5, 35, 79, 0.025);
}

.calendar-month-cell strong {
  color: var(--accent);
  font-size: 12px;
}

.calendar-action-chip {
  display: block;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #3f4650;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-action-chip.is-maintenance {
  border-color: rgba(5, 35, 79, 0.26);
  border-left: 4px solid var(--accent);
}

.calendar-action-chip.is-replacement {
  border-color: rgba(var(--secondary-rgb), 0.3);
  border-left: 4px solid var(--secondary);
}

.calendar-action-chip.is-overdue {
  background: rgba(var(--secondary-rgb), 0.09);
}

.calendar-action-chip.is-completed {
  opacity: 0.62;
}

.calendar-year-month {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 20px rgba(18, 31, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.calendar-year-month-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.08);
  background: rgba(5, 35, 79, 0.04);
}

.calendar-year-month-heading strong {
  color: var(--accent);
  font-size: 14px;
}

.calendar-year-month-heading span,
.calendar-year-empty,
.calendar-year-more {
  color: #667180;
  font-size: 12px;
  font-weight: 700;
}

.calendar-year-month-body {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.calendar-year-empty {
  margin: 8px 0 0;
  text-align: center;
}

.calendar-year-action {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #3f4650;
  cursor: pointer;
  text-align: left;
}

.calendar-year-action span,
.calendar-year-action strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-year-action span {
  color: #667180;
  font-weight: 700;
}

.calendar-year-action strong {
  font-weight: 750;
}

.calendar-year-action.is-maintenance {
  border-left: 4px solid var(--accent);
}

.calendar-year-action.is-replacement {
  border-left: 4px solid var(--secondary);
}

.calendar-year-action.is-overdue {
  background: rgba(var(--secondary-rgb), 0.08);
}

.calendar-year-action.is-completed {
  opacity: 0.62;
}

.calendar-year-more {
  padding: 2px 4px;
  text-align: right;
}

.icon-action-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(var(--secondary-rgb), 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(var(--secondary-rgb), 0.1);
}

.icon-action-button:hover {
  background: rgba(var(--secondary-rgb), 0.08);
  box-shadow: 0 14px 26px rgba(var(--secondary-rgb), 0.14);
}

.icon-action-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.pdf-letter-icon {
  display: inline-grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: currentColor;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.data-table-wrap {
  position: relative;
  contain: paint;
  isolation: isolate;
  z-index: 1;
  min-height: 0;
  max-height: calc(100vh - 240px);
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 14px;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  color: #3f4650;
  font-size: 14px;
  table-layout: fixed;
}

.component-types-table {
  min-width: 1180px;
}

.suppliers-table {
  min-width: 1780px;
}

.assets-table {
  min-width: 2700px;
}

.assets-table.is-grouped-item-view {
  min-width: 2520px;
}

.components-table {
  min-width: 5600px;
}

.components-table.is-grouped-asset-view {
  min-width: 5400px;
}

.combined-view-page .list-panel-header p {
  margin: 5px 0 0;
  color: #66717f;
  font-size: 13px;
  font-weight: 550;
}

.combined-page-actions {
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
}

.combined-view-page .list-panel-header {
  align-items: stretch;
  justify-content: flex-end;
}

.combined-summary-strip {
  display: none;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 12px;
  overflow: visible;
  padding-bottom: 0;
}

.combined-summary-values,
.combined-summary-counts {
  min-width: 0;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.88)),
    #fff;
  box-shadow:
    0 10px 22px rgba(18, 31, 48, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.combined-summary-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 10px;
  padding: 12px;
}

.combined-summary-value {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(5, 35, 79, 0.035);
}

.combined-summary-value.is-highlight {
  background: rgba(var(--secondary-rgb), 0.08);
}

.combined-summary-value span,
.combined-summary-count span {
  color: #66717f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.combined-summary-value strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combined-summary-value.is-highlight strong {
  color: var(--secondary);
}

.combined-summary-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.combined-summary-count {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 10px;
  border-right: 1px solid rgba(5, 35, 79, 0.08);
  text-align: center;
}

.combined-summary-count:last-child {
  border-right: 0;
}

.combined-summary-count strong {
  color: var(--accent);
  font-size: 28px;
  font-weight: 920;
  line-height: 1;
}

.combined-filter-strip {
  display: none;
  flex: 1 1 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.88)),
    #fff;
  box-shadow:
    0 10px 22px rgba(18, 31, 48, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.combined-filter-strip label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.combined-filter-strip span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.combined-filter-strip select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  color: #3f4650;
  font: inherit;
  font-size: 13px;
  padding: 0 10px;
}

.combined-report-panel {
  min-height: 0;
  max-height: calc(100vh - 232px);
  overflow: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

.combined-report-list {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 2px;
}

.combined-client-card,
.combined-category-card,
.combined-item-row,
.combined-component-row {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(5, 35, 79, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 22px rgba(18, 31, 48, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.combined-client-card,
.combined-category-card {
  display: grid;
  gap: 12px;
  overflow: hidden;
  border-radius: 16px;
}

.combined-client-card::before,
.combined-category-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--secondary);
  content: "";
}

.combined-client-card::before {
  width: 6px;
  background: var(--accent);
}

.combined-client-header,
.combined-category-header {
  display: grid;
  grid-template-columns: auto minmax(180px, 0.85fr) minmax(430px, 1.5fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 17px 18px 15px 22px;
}

.combined-client-header {
  grid-template-columns: auto minmax(190px, 0.65fr) minmax(620px, 1.8fr);
  padding-left: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.88)),
    rgba(255, 255, 255, 0.94);
}

.combined-category-title,
.combined-row-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.combined-category-title h3 {
  margin: 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.16;
}

.combined-category-title p,
.combined-row-title span {
  min-width: 0;
  margin: 0;
  color: #687482;
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combined-client-metrics,
.combined-category-metrics,
.combined-row-metrics {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

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

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

.combined-metric {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 11px;
  background: rgba(248, 250, 253, 0.76);
}

.combined-metric small {
  color: #6a7481;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.combined-metric strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combined-actions {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.combined-action-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(var(--secondary-rgb), 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(18, 31, 48, 0.065);
}

.combined-action-button:hover,
.combined-action-button:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.78);
  background: rgba(var(--secondary-rgb), 0.08);
  outline: none;
}

.combined-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.combined-action-button.is-danger {
  border-color: rgba(180, 35, 24, 0.32);
  color: #b42318;
}

.combined-action-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.combined-item-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px 34px;
}

.combined-client-children {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px 34px;
}

.combined-item-row {
  display: grid;
  gap: 8px;
  border-radius: 13px;
}

.combined-item-row::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(var(--accent-rgb), 0.46);
  content: "";
}

.combined-item-header {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr) minmax(330px, 1.2fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px 12px 16px;
}

.combined-row-title strong {
  min-width: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combined-component-list {
  display: grid;
  gap: 7px;
  padding: 0 12px 12px 44px;
}

.combined-component-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(460px, 1.45fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(250, 252, 255, 0.88);
  box-shadow: none;
}

.combined-component-row::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: rgba(15, 118, 110, 0.46);
  content: "";
}

.combined-report-view-page .combined-client-header,
.combined-report-view-page .combined-category-header,
.combined-report-view-page .combined-item-header {
  grid-template-columns: minmax(220px, 0.8fr) minmax(430px, 1.4fr);
}

.combined-report-view-page .combined-report-panel {
  max-height: calc(100vh - 220px);
}

.reserve-study-report-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100vh - 120px);
}

.reserve-placeholder-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100vh - 120px);
}

.reserve-placeholder-card {
  min-height: 240px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reserve-study-pdf-shell {
  position: relative;
  display: block;
  min-height: 0;
  height: auto;
  overflow: visible;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.92)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 32px rgba(18, 31, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.reserve-study-pdf-status {
  align-self: center;
  justify-self: center;
  margin: 0;
  color: var(--primary);
  font-size: 15px;
  font-weight: 750;
}

#reserve-study-pdf-frame {
  width: 100%;
  height: auto;
  border: 0;
  background: transparent;
}

.reserve-study-report-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reserve-study-report-card {
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 20px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 14px 28px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.reserve-study-report-card header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.reserve-study-report-card h3 {
  margin: 0;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.18;
}

.reserve-study-report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.reserve-study-report-card-status {
  min-height: 18px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reserve-study-report-card.is-busy {
  opacity: 0.78;
}

.reserve-study-pdf-ready-panel {
  align-self: center;
  justify-self: center;
  width: min(640px, calc(100% - 48px));
  height: auto;
  min-height: 0;
  padding: 28px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 18px 34px rgba(18, 31, 48, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  text-align: center;
}

.reserve-study-pdf-ready-panel h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 22px;
  line-height: 1.2;
}

.reserve-study-pdf-ready-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.reserve-study-pdf-ready-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.reserve-study-pdf-ready-actions a,
.reserve-study-pdf-ready-actions button {
  min-width: 140px;
  border: 1px solid #fb5705;
  border-radius: 10px;
  background: #fff;
  color: #fb5705;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  padding: 12px 16px;
  box-shadow:
    0 8px 16px rgba(251, 87, 5, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.reserve-study-pdf-ready-actions a:hover,
.reserve-study-pdf-ready-actions a:focus-visible,
.reserve-study-pdf-ready-actions button:hover,
.reserve-study-pdf-ready-actions button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 12px 18px rgba(251, 87, 5, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.reserve-study-pdf-ready-actions button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

@media (max-width: 1050px) {
  .reserve-study-report-cards {
    grid-template-columns: 1fr;
  }
}

.combined-client-header.is-clickable-row,
.combined-category-header.is-clickable-row,
.combined-item-header.is-clickable-row,
.combined-component-row.is-clickable-row,
.child-card.is-clickable-row {
  cursor: pointer;
}

.combined-client-header.is-clickable-row:hover,
.combined-category-header.is-clickable-row:hover,
.combined-item-header.is-clickable-row:hover,
.combined-component-row.is-clickable-row:hover,
.child-card.is-clickable-row:hover {
  background: rgba(5, 35, 79, 0.035);
}

.combined-client-header.is-clickable-row.is-row-selected,
.combined-category-header.is-clickable-row.is-row-selected,
.combined-item-header.is-clickable-row.is-row-selected,
.combined-component-row.is-clickable-row.is-row-selected,
.child-card.is-clickable-row.is-row-selected {
  background: rgba(var(--secondary-rgb), 0.11);
}

.combined-client-header.is-clickable-row:focus-visible,
.combined-category-header.is-clickable-row:focus-visible,
.combined-item-header.is-clickable-row:focus-visible,
.combined-component-row.is-clickable-row:focus-visible,
.child-card.is-clickable-row:focus-visible {
  outline: 3px solid rgba(var(--secondary-rgb), 0.16);
  outline-offset: -3px;
}

.combined-event-summary {
  display: grid;
  grid-template-columns: minmax(58px, 0.68fr) repeat(5, minmax(70px, 1fr));
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.combined-event-row {
  display: contents;
}

.combined-event-heading,
.combined-event-label,
.combined-event-cell {
  min-width: 0;
  min-height: 22px;
  padding: 3px 5px;
  border-right: 1px solid rgba(5, 35, 79, 0.12);
  border-bottom: 1px solid rgba(5, 35, 79, 0.12);
  color: #3f4650;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combined-event-heading:nth-child(6),
.combined-event-row > :last-child {
  border-right: 0;
}

.combined-event-row:last-child > * {
  border-bottom: 0;
}

.combined-event-heading {
  background: rgba(5, 35, 79, 0.035);
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
}

.combined-event-label {
  background: rgba(5, 35, 79, 0.035);
  color: #3f4650;
  font-weight: 850;
}

.combined-event-cell {
  background: rgba(255, 255, 255, 0.58);
}

.combined-empty-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed rgba(5, 35, 79, 0.14);
  border-radius: 12px;
  color: #6c7582;
  font-size: 12px;
  font-weight: 650;
}

.actions-table {
  min-width: 3200px;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 80;
  filter: drop-shadow(0 12px 22px rgba(18, 31, 48, 0.1));
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 82;
  min-width: 128px;
  padding: 11px 14px;
  border-top: 1px solid rgba(8, 40, 80, 0.1);
  border-right: 1px solid rgba(5, 35, 79, 0.1);
  border-bottom: 1px solid rgba(8, 40, 80, 0.12);
  background:
    linear-gradient(180deg, #fff, #f8fafd),
    #fff;
  background-clip: padding-box;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-transform: none;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 14px rgba(18, 31, 48, 0.07);
}

.data-table .column-section-row th {
  padding: 9px 14px;
  background:
    linear-gradient(180deg, #fff, #f9fbfe),
    #fff;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
}

.data-table .column-section-row + tr th {
  top: 42px;
  z-index: 83;
}

.data-table th:first-child {
  border-left: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 14px 0 0 14px;
}

.data-table thead th:first-child,
.data-table tbody td:first-child {
  position: sticky;
  left: 0;
}

.data-table thead th:first-child {
  z-index: 90;
}

.data-table tbody td:first-child {
  z-index: 8;
  background: #fff;
  background-clip: padding-box;
  box-shadow:
    10px 0 12px -12px rgba(18, 31, 48, 0.28),
    inset -1px 0 0 rgba(5, 35, 79, 0.08);
}

.data-table tbody tr.is-clickable-row:hover td:first-child {
  background: #f6f8fb;
}

.data-table tbody tr.is-clickable-row.is-row-selected td:first-child,
.data-table tbody tr.is-clickable-row.is-row-selected:hover td:first-child {
  background: #fff1e9;
}

.data-table thead th:first-child {
  box-shadow:
    10px 0 12px -12px rgba(18, 31, 48, 0.32),
    0 8px 14px rgba(18, 31, 48, 0.07),
    inset -1px 0 0 rgba(5, 35, 79, 0.08);
}

.data-table th:last-child {
  border-right: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 0 14px 14px 0;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: center;
  text-transform: inherit;
  white-space: normal;
  cursor: pointer;
}

.column-header-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding-right: 10px;
  text-align: center;
  white-space: normal;
}

.column-resize-handle {
  position: absolute;
  top: 0;
  right: -5px;
  bottom: 0;
  z-index: 6;
  display: block;
  width: 10px;
  cursor: col-resize;
  touch-action: none;
}

.column-resize-handle::after {
  position: absolute;
  top: 7px;
  right: 4px;
  bottom: 7px;
  width: 1px;
  border-radius: 999px;
  background: rgba(5, 35, 79, 0.16);
  content: "";
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.column-resize-handle:hover::after,
.column-resize-handle:focus-visible::after,
body.is-resizing-table-column .column-resize-handle::after {
  background: var(--secondary);
  box-shadow: 0 0 0 2px rgba(var(--secondary-rgb), 0.12);
}

.column-resize-handle:focus-visible {
  outline: none;
}

body.is-resizing-table-column {
  cursor: col-resize;
  user-select: none;
}

.column-label-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sort-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  opacity: 0.82;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.sort-button.is-active svg {
  stroke: var(--accent);
  opacity: 1;
}

.sort-icon-slot {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
}

.data-table td {
  max-width: 260px;
  padding: 14px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.08);
  background: #fff;
  color: #3f4650;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: top;
  white-space: nowrap;
}

.data-table td.is-text-cell {
  text-align: left;
}

.data-table td.is-center-cell,
.data-table td.is-date-cell {
  text-align: center;
}

.data-table td.is-decimal-cell {
  text-align: right;
}

.data-table td a {
  display: block;
  overflow: hidden;
  color: inherit;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table th.actions-column,
.data-table td.action-cell {
  width: 1%;
  min-width: 86px;
  white-space: nowrap;
}

.data-table td.primary-cell,
.data-table td:first-child:not(.action-cell) {
  color: #3f4650;
  font-weight: 500;
}

.data-table tr.is-clickable-row {
  cursor: pointer;
}

.data-table tr.is-clickable-row:hover td {
  background: rgba(5, 35, 79, 0.035);
}

.data-table tr.is-clickable-row.is-row-selected td,
.data-table tr.is-clickable-row.is-row-selected:hover td {
  background: rgba(var(--secondary-rgb), 0.12);
}

.data-table tr.is-clickable-row:focus-visible {
  outline: 3px solid rgba(5, 35, 79, 0.16);
  outline-offset: -3px;
}

.data-table tr.component-group-row td {
  padding: 12px 16px;
  border-top: 1px solid rgba(5, 35, 79, 0.1);
  border-bottom: 1px solid rgba(5, 35, 79, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.92)),
    rgba(255, 255, 255, 0.96);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 16px rgba(18, 31, 48, 0.06);
}

.data-table tr.component-group-row td:first-child {
  z-index: 8;
}

.component-group-add {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  place-items: center;
  border: 1px solid rgba(var(--secondary-rgb), 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  cursor: pointer;
  vertical-align: middle;
}

.component-group-add:hover {
  background: rgba(var(--secondary-rgb), 0.08);
}

.component-group-add svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

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

.row-action-menu {
  position: fixed;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: max-content;
  min-width: 236px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 12px;
  overflow: visible;
  border: 1px solid rgba(142, 182, 223, 0.36);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.98)),
    #ffffff;
  box-shadow:
    0 22px 46px rgba(23, 55, 83, 0.2),
    0 7px 18px rgba(23, 55, 83, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.row-action-menu[hidden] {
  display: none;
}

.row-action-menu button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--primary, #05234f);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.row-action-menu button[hidden] {
  display: none;
}

.row-action-menu button:last-child {
  border-color: transparent;
  background: transparent;
  color: var(--primary, #05234f);
}

.row-action-menu button::before {
  display: none;
}

.row-action-menu button:last-child::before {
  display: none;
}

.row-action-menu svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--secondary, #fc5705);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.row-action-menu button:hover {
  border-color: rgba(142, 182, 223, 0.34);
  background: rgba(237, 245, 255, 0.84);
  box-shadow: none;
  color: #174d86;
  transform: translateX(2px);
}

.row-action-menu button:last-child:hover {
  border-color: rgba(252, 87, 5, 0.22);
  background: rgba(255, 246, 240, 0.9);
  color: #8a2e07;
}

.row-action-menu.is-combined-menu {
  border-color: rgba(142, 182, 223, 0.36);
}

.data-table tr.is-inline-editing td {
  background: rgba(var(--secondary-rgb), 0.08);
}

.data-table tr.is-inline-add-row td {
  background: rgba(var(--secondary-rgb), 0.06);
}

.data-table tr.inline-add-actions-row td {
  padding: 8px 14px 12px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.08);
  background: rgba(var(--secondary-rgb), 0.035);
  box-shadow: none;
  text-align: left;
}

.data-table tr.inline-add-actions-row td:first-child {
  z-index: 8;
}

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

.inline-save-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(var(--secondary-rgb), 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(var(--secondary-rgb), 0.12);
}

.inline-cancel-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(92, 102, 115, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #5c6673;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(18, 31, 48, 0.08);
}

.inline-save-button:hover,
.inline-cancel-button:hover {
  background: rgba(var(--secondary-rgb), 0.08);
}

.inline-save-button svg,
.inline-cancel-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.inline-edit-control {
  box-sizing: border-box;
  width: 100%;
  min-width: 120px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  border: 1px solid rgba(var(--secondary-rgb), 0.48);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.98);
  color: #3f4650;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  outline: none;
  padding: 6px 9px;
}

textarea.inline-edit-control {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  overflow: hidden;
  resize: none;
  white-space: nowrap;
}

.inline-edit-control.is-invalid {
  border-color: rgba(210, 54, 38, 0.72);
  box-shadow: 0 0 0 3px rgba(210, 54, 38, 0.1);
}

.linked-count-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3f4650;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.linked-count-button:hover,
.linked-count-button:focus-visible {
  color: var(--secondary);
  outline: none;
}

.table-action-button {
  display: inline-flex;
  width: auto;
  min-width: 34px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #cdd5db;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 7px 18px rgba(23, 55, 83, 0.14);
  color: #4d5a66;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.table-action-button::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--template-blue, #2764d8);
  content: "";
  box-shadow: 0 0 0 3px rgba(39, 100, 216, 0.12);
}

.table-action-button.is-danger {
  border-color: #f0b9b5;
  background: #fff0ef;
  color: var(--template-red, #b3261e);
}

.table-action-button.is-danger::before {
  background: var(--template-red, #b3261e);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.table-action-button:hover {
  border-color: #8eb6df;
  background: #f7fbff;
  box-shadow: 0 10px 24px rgba(23, 55, 83, 0.18);
  color: #174d86;
  transform: translateY(-1px);
}

.table-action-button.is-danger:hover {
  border-color: #e08a83;
  background: #fff6f5;
  color: var(--template-red, #b3261e);
}

.table-action-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.empty-table-message {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.financial-section {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.overview-section,
.members-section {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.members-section {
  overflow-x: auto;
}

.members-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.members-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.members-section-header h2 {
  margin: 0;
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.members-section-header p {
  margin: 4px 0 0;
  color: #66717f;
  font-size: 13px;
  font-weight: 650;
}

.overview-rich-text {
  min-height: 190px;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  outline: none;
}

.overview-rich-text:empty::before {
  color: #8993a0;
  content: attr(data-placeholder);
}

.overview-rich-text.is-active-edit {
  border-color: rgba(var(--secondary-rgb), 0.46);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.overview-rich-text p,
.overview-rich-text ul,
.overview-rich-text ol {
  margin: 0 0 10px;
}

.overview-rich-text p:last-child,
.overview-rich-text ul:last-child,
.overview-rich-text ol:last-child {
  margin-bottom: 0;
}

.members-add-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
}

.member-types-list {
  display: grid;
  gap: 6px;
  min-width: 1040px;
}

.member-types-table-header {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 78px repeat(4, minmax(118px, 1fr)) minmax(116px, 0.9fr) 42px;
  gap: 8px;
  padding: 0 12px 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.member-type-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 78px repeat(4, minmax(118px, 1fr)) minmax(116px, 0.9fr) 42px;
  align-items: end;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.member-type-field {
  display: grid;
  gap: 7px;
}

.member-type-field span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.member-type-field input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 0 10px;
  outline: none;
}

.member-type-field input[readonly] {
  color: #3f4d5c;
}

.members-section.is-editing .member-type-field input {
  border-color: rgba(var(--secondary-rgb), 0.46);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.member-type-amount input,
.member-type-money input,
.member-type-escalation input {
  text-align: center;
}

.member-type-total-levy input {
  background: rgba(5, 35, 79, 0.04);
  color: var(--accent);
  font-weight: 800;
}

.member-type-remove {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(var(--secondary-rgb), 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--secondary);
  cursor: pointer;
}

.member-type-remove svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.member-types-total {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  align-items: center;
  gap: 10px;
  min-width: 1040px;
  padding-top: 4px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
}

.member-types-total-item {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--secondary-rgb), 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(18, 31, 48, 0.06);
}

.member-types-total-item span {
  color: #66717f;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.member-types-total-item strong {
  display: inline-grid;
  min-height: 26px;
  place-items: start;
  color: var(--secondary);
  font-size: 18px;
  font-weight: 900;
}

.financial-fields {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(230px, 0.74fr) minmax(128px, 0.38fr);
  gap: 12px;
  align-content: start;
  justify-content: start;
  max-width: none;
}

.financial-field {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  align-content: start;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.financial-field-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}

.financial-field-heading > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.financial-field-current {
  order: 1;
}

.financial-field-next {
  order: 2;
}

.financial-currency-block {
  order: 3;
  grid-column: auto;
  grid-template-rows: auto;
}

.financial-currency-block > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.financial-field input {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.9)),
    rgba(255, 255, 255, 0.94);
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
  box-shadow:
    0 12px 22px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.financial-input-row {
  display: grid;
  grid-template-columns: minmax(0, 178px);
  align-items: end;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.financial-date-currency-row {
  grid-template-columns: minmax(0, 178px);
}

.financial-currency-block select {
  width: 132px;
  min-height: 40px;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.9)),
    rgba(255, 255, 255, 0.94);
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  box-shadow:
    0 12px 22px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.financial-currency-block select:disabled {
  color: var(--accent);
  opacity: 1;
}

.date-input {
  position: relative;
  display: block;
  width: 178px;
  max-width: 100%;
}

.today-date-row {
  grid-template-columns: minmax(0, 178px) auto;
  align-items: center;
  column-gap: 12px;
}

.date-input input {
  min-height: 44px;
  padding-right: 44px;
  padding-left: 16px;
}

.financial-field-next .date-input {
  width: 178px;
}

.date-input .date-picker-button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.date-input.is-today-selected .date-picker-button {
  display: none;
}

.today-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 32px;
  justify-content: flex-end;
  justify-self: start;
  color: var(--secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}

.today-checkbox input {
  appearance: none;
  display: grid;
  width: 18px;
  height: 18px;
  margin: 0;
  place-items: center;
  border: 1.5px solid rgba(var(--secondary-rgb), 0.62);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
}

.today-checkbox input::after {
  content: "";
  width: 12px;
  height: 7px;
  border-bottom: 3px solid var(--secondary);
  border-left: 3px solid var(--secondary);
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.today-checkbox input:checked::after {
  opacity: 1;
}

.today-checkbox input:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(var(--secondary-rgb), 0.18);
  outline-offset: 3px;
}

.today-checkbox span {
  color: var(--accent);
  pointer-events: none;
}

.financial-panel.is-editing .today-checkbox.is-active-edit input {
  border-color: rgba(var(--secondary-rgb), 0.72);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.date-picker-button {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(var(--secondary-rgb), 0.12);
  color: var(--secondary);
  cursor: pointer;
}

.date-picker-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.financial-panel.is-editing .date-input.is-active-edit .date-picker-button {
  display: grid;
}

.financial-panel.is-editing .date-input.is-today-selected .date-picker-button {
  display: none;
}

.financial-panel.is-editing .date-input {
  display: block;
}

.financial-panel.is-editing .today-date-row {
  display: grid;
}

.financial-field input[readonly] {
  color: var(--accent);
}

.financial-field input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

.financial-field input[type="number"] {
  appearance: textfield;
}

.financial-field input[type="number"]::-webkit-inner-spin-button,
.financial-field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.profile-panel {
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
}

.profile-photo-editor {
  display: grid;
  align-content: start;
  justify-items: center;
}

.profile-photo {
  display: grid;
  width: min(190px, 100%);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 242, 247, 0.72)),
    rgba(255, 255, 255, 0.82);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(18, 31, 48, 0.12);
}

.profile-photo:hover,
.profile-photo:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.46);
  box-shadow:
    0 0 0 5px rgba(var(--secondary-rgb), 0.1),
    0 18px 36px rgba(18, 31, 48, 0.12);
  outline: none;
}

.profile-photo.is-read-only,
.profile-photo:disabled {
  cursor: default;
  opacity: 0.92;
}

.profile-photo.is-read-only:hover,
.profile-photo.is-read-only:focus-visible,
.profile-photo:disabled:hover,
.profile-photo:disabled:focus-visible {
  border-color: rgba(8, 40, 80, 0.12);
  box-shadow: 0 18px 36px rgba(18, 31, 48, 0.12);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-photo span {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.profile-fields {
  align-content: start;
}

.icon-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  cursor: pointer;
  box-shadow:
    0 10px 20px rgba(31, 45, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.logo-editor {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.logo-preview {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 190px;
  aspect-ratio: 1.2;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 242, 247, 0.72)),
    rgba(255, 255, 255, 0.8);
  color: var(--accent);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.logo-preview:hover,
.logo-preview:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.46);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
  outline: none;
}

.logo-preview.is-root-managed {
  cursor: default;
}

.logo-preview.is-root-managed:hover,
.logo-preview.is-root-managed:focus-visible {
  border-color: rgba(8, 40, 80, 0.12);
  box-shadow: none;
}

.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: center;
}

.logo-placeholder {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.logo-placeholder > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 24px rgba(8, 40, 80, 0.16);
}

.logo-placeholder strong {
  color: var(--accent);
  font-size: 22px;
}

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

.control-field,
.info-field {
  display: grid;
  gap: 7px;
}

.control-field > span,
.info-field > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.control-field.is-required > span::after {
  content: " *";
  color: var(--secondary);
}

.control-field.is-validation-error input,
.control-field.is-validation-error textarea,
.control-field.is-validation-error select {
  border-color: rgba(198, 40, 40, 0.72);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.08);
}

.control-field.currency-field input {
  grid-row: 2;
  grid-column: 1;
  padding-left: 38px;
}

.control-field.currency-field::after {
  content: var(--currency-symbol, "R");
  /* Explicitly shares the input's grid cell (row 2) instead of computing an
     absolute offset from an assumed fixed input height — that assumption
     broke wherever the input's actual height differs, e.g. inside
     .list-form-modal-card (42px instead of 44px). Both the input and this
     pseudo-element must be placed on the same explicit grid line for the
     overlap to happen; otherwise grid auto-placement pushes the input out of
     the cell this element already claimed. */
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  justify-self: start;
  margin-left: 14px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  pointer-events: none;
}

.control-field input,
.control-field select,
.control-field textarea,
.info-field input,
.info-field select,
.link-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 0 13px;
  outline: none;
}

.control-field input.is-initial-value,
.control-field select.is-initial-value,
.control-field textarea.is-initial-value,
.info-field input.is-initial-value,
.info-field select.is-initial-value,
.link-input input.is-initial-value,
.link-input select.is-initial-value {
  color: #8a94a3;
}

.inline-edit-control.is-initial-value {
  color: #8a94a3;
}

.control-field textarea {
  min-height: 108px;
  padding: 12px 13px;
  resize: vertical;
}

.searchable-select-field {
  position: relative;
}

.searchable-select-native {
  position: absolute;
  inset: auto auto 0 0;
  width: 1px !important;
  height: 1px;
  min-height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.searchable-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 7px 13px;
  text-align: left;
  cursor: pointer;
}

.searchable-select-value {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.15;
}

.searchable-select-value.is-placeholder {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select-primary,
.searchable-select-secondary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select-primary {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.searchable-select-secondary {
  color: #6c7684;
  font-size: 11px;
  font-weight: 650;
}

.searchable-select-trigger svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.searchable-select-trigger:focus-visible,
.searchable-select-trigger:hover {
  border-color: rgba(var(--secondary-rgb), 0.42);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.searchable-select-trigger:disabled {
  cursor: default;
  opacity: 0.76;
}

.searchable-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(18, 31, 48, 0.16);
}

.searchable-select-search {
  width: calc(100% - 20px) !important;
  min-height: 38px !important;
  margin: 10px;
  border-radius: 12px !important;
  font-size: 14px !important;
}

.searchable-select-options {
  max-height: 252px;
  overflow: auto;
  padding: 0 8px 10px;
}

.searchable-select-group {
  padding: 10px 10px 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.searchable-select-option {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #48576a;
  font-size: 14px;
  font-style: italic;
  font-weight: 600;
  padding: 7px 10px 7px 24px;
  text-align: left;
  cursor: pointer;
}

.searchable-select-option:hover,
.searchable-select-option.is-selected {
  background: rgba(var(--secondary-rgb), 0.1);
  color: var(--ink);
}

.searchable-select-empty {
  margin: 8px 10px 12px;
  color: #7a8796;
  font-size: 13px;
}

.component-type-category-field {
  position: relative;
}

.component-make-field {
  position: relative;
}

.category-suggestion-menu {
  position: absolute;
  z-index: 28;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 230px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(18, 31, 48, 0.14);
}

.category-suggestion-option {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
}

.category-suggestion-option:hover,
.category-suggestion-option:focus-visible {
  background: rgba(var(--secondary-rgb), 0.1);
  color: var(--secondary);
  outline: none;
}

.info-field input[readonly] {
  color: #3f4d5c;
}

.info-field.is-root-managed input[readonly] {
  cursor: default;
  background: rgba(255, 255, 255, 0.86);
}

.info-field select {
  color: #3f4d5c;
}

.financial-panel .financial-field input[readonly] {
  color: var(--accent);
}

.info-panel.is-editing .general-editable.is-active-edit {
  border-color: rgba(var(--secondary-rgb), 0.46);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.financial-panel.is-editing .financial-editable.is-active-edit {
  border-color: rgba(var(--secondary-rgb), 0.46);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 4px rgba(var(--secondary-rgb), 0.08),
    0 12px 22px rgba(18, 31, 48, 0.08);
}

.financial-panel.is-editing .financial-currency-block select.is-active-edit {
  border-color: rgba(var(--secondary-rgb), 0.46);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 4px rgba(var(--secondary-rgb), 0.08),
    0 12px 22px rgba(18, 31, 48, 0.08);
}

.profile-panel.is-editing .profile-editable {
  border-color: rgba(var(--secondary-rgb), 0.46);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.edit-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.primary-button,
.secondary-button {
  display: inline-grid;
  min-width: 96px;
  min-height: 42px;
  place-items: center;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
}

.primary-button {
  border: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 22px rgba(8, 40, 80, 0.2);
}

.secondary-button {
  border: 1px solid rgba(8, 40, 80, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
}

#general-info-actions,
#financial-info-actions,
.general-info-actions,
.reserve-budget-actions {
  grid-column: auto;
  padding-top: 0;
}

#general-info-actions .primary-button,
#general-info-actions .secondary-button,
#financial-info-actions .primary-button,
#financial-info-actions .secondary-button,
.general-info-actions .primary-button,
.general-info-actions .secondary-button,
.reserve-budget-actions .primary-button,
.reserve-budget-actions .secondary-button {
  min-width: 88px;
  min-height: 38px;
  border: 1px solid rgba(var(--secondary-rgb), 0.72);
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  font-weight: 500;
  box-shadow: 0 10px 18px rgba(var(--secondary-rgb), 0.08);
}

#general-info-actions .primary-button:hover,
#general-info-actions .secondary-button:hover,
#financial-info-actions .primary-button:hover,
#financial-info-actions .secondary-button:hover,
.general-info-actions .primary-button:hover,
.general-info-actions .secondary-button:hover,
.reserve-budget-actions .primary-button:hover,
.reserve-budget-actions .secondary-button:hover {
  background: rgba(var(--secondary-rgb), 0.08);
}

.control-field select {
  cursor: pointer;
}

.link-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 7px;
}

.link-input input {
  min-height: 40px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 0;
}

.link-input select {
  min-height: 40px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  padding: 0 28px 0 0;
  outline: none;
}

.link-input a,
.link-icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(8, 40, 80, 0.08);
  color: var(--accent);
  cursor: pointer;
}

.link-input a svg,
.link-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.link-input a img,
.link-icon-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.info-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 16px;
  align-content: start;
  min-width: 0;
}

.info-field:first-child {
  grid-column: 1 / -1;
}

.info-fields.financial-fields {
  grid-template-columns: minmax(330px, 1fr) minmax(230px, 0.74fr) minmax(128px, 0.38fr);
  max-width: none;
}

.financial-fields .info-field,
.financial-fields .info-field:first-child {
  grid-column: auto;
}

.compact-field {
  align-content: start;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  padding: 4px 16px 4px 13px;
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.08);
}

.type-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 5px rgba(var(--secondary-rgb), 0.12);
}

.consultant-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 48px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
  cursor: default;
  font-size: 14px;
  font-weight: 850;
  padding: 4px 16px 4px 5px;
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.08);
}

.consultant-button img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 50%;
  object-fit: cover;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 18, 32, 0.28);
  backdrop-filter: blur(8px);
}

.modal-backdrop.is-on-top {
  z-index: 30;
}

.modal-backdrop.data-loading-modal {
  z-index: 42;
  background: rgba(8, 18, 32, 0.34);
}

.modal-card {
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid rgba(8, 40, 80, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 253, 0.9)),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    0 34px 70px rgba(18, 31, 48, 0.22),
    0 10px 24px rgba(18, 31, 48, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.logo-crop-modal-card {
  width: min(920px, calc(100vw - 36px));
}

.logo-crop-modal-card .single-modal-title {
  color: var(--accent);
}

.asset-modal-card {
  width: min(1040px, calc(100vw - 36px));
  max-height: min(92vh, 980px);
  overflow-y: auto;
}

.component-modal-card {
  width: min(1040px, calc(100vw - 36px));
}

.list-form-modal-card {
  border-color: rgba(5, 35, 79, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 253, 0.9)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 28px 56px rgba(18, 31, 48, 0.18),
    0 10px 22px rgba(18, 31, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.list-form-modal-card:not(.asset-modal-card) {
  width: min(620px, calc(100vw - 36px));
}

.action-modal-card {
  width: min(920px, calc(100vw - 36px));
  max-height: min(92vh, 980px);
  overflow-y: auto;
}

.dashboard-insight-modal-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  width: min(1040px, calc(100vw - 36px));
  max-height: min(92vh, 920px);
}

.dashboard-insight-modal-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-insight-modal-summary span {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 10px 20px rgba(18, 31, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.attachment-viewer-modal-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(920px, calc(100vw - 36px));
  max-height: min(88vh, 860px);
  overflow: hidden;
}

.attachment-viewer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 2px 4px 6px;
}

.attachment-viewer-card {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 10px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(18, 31, 48, 0.08);
}

.attachment-viewer-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(8, 40, 80, 0.06);
}

.attachment-viewer-card strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-viewer-card span {
  color: #667085;
  font-size: 12px;
}

.attachment-viewer-card.is-file {
  min-height: 140px;
  align-content: center;
}

.attachment-viewer-file-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0;
}

.dashboard-insight-modal-summary em {
  color: #66717f;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
}

.dashboard-insight-modal-summary strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
}

.dashboard-insight-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-insight-detail-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-insight-detail-table {
  min-width: 860px;
}

.dashboard-insight-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.root-client-modal-card {
  width: min(980px, calc(100vw - 36px));
  max-height: min(92vh, 980px);
  overflow-y: auto;
}

.root-lookup-modal-card {
  width: min(560px, calc(100vw - 36px));
  max-height: min(92vh, 720px);
  overflow-y: auto;
}

.root-consultant-modal-card {
  width: min(860px, calc(100vw - 36px));
  max-height: min(92vh, 900px);
  overflow-y: auto;
}

.root-user-modal-card {
  width: min(920px, calc(100vw - 36px));
  max-height: min(92vh, 900px);
  overflow-y: auto;
}

.client-user-modal-card {
  width: min(720px, calc(100vw - 36px));
  max-height: min(92vh, 980px);
  overflow-y: auto;
}

.system-profile-modal-card {
  width: min(620px, calc(100vw - 36px));
}

.data-loading-modal-card {
  display: grid;
  gap: 14px;
  width: min(520px, calc(100vw - 36px));
  cursor: progress;
}

.data-loading-modal-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.data-loading-modal-card p {
  margin: 0 0 3px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.data-loading-modal-card h2 {
  margin: 0 0 7px;
  color: var(--primary);
}

.data-loading-modal-card span {
  color: #566170;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.data-loading-modal-copy {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.data-loading-modal-copy strong {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.24;
}

.data-loading-modal-copy span {
  color: #5f6a78;
  font-size: 12px;
  font-weight: 650;
}

.data-loading-modal-card .shared-data-status {
  width: 100%;
  justify-content: flex-start;
  min-height: 40px;
  padding: 7px 9px 7px 12px;
}

.data-loading-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(8, 40, 80, 0.12);
  border-top-color: var(--secondary);
  border-radius: 999px;
  animation: data-loading-spin 0.85s linear infinite;
}

body.is-data-loading {
  cursor: progress;
}

@keyframes data-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.recalculate-modal-card {
  width: min(620px, calc(100vw - 36px));
}

.recalculate-progress {
  display: grid;
  max-height: min(48vh, 360px);
  gap: 9px;
  overflow-y: auto;
  padding: 4px 2px;
}

.recalculate-progress-row {
  position: relative;
  margin: 0;
  padding: 10px 12px 10px 38px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: #3f4650;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 10px 18px rgba(18, 31, 48, 0.06);
}

.recalculate-progress-row::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--secondary);
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}

.recalculate-progress-row.is-active::before {
  border-top-color: transparent;
  animation: data-loading-spin 0.85s linear infinite;
}

.recalculate-progress-row.is-complete::before {
  border-color: #1b8f63;
  background: #1b8f63;
  box-shadow: inset 0 0 0 3px #fff;
}

.recalculate-progress-row.is-error::before {
  border-color: #c94c3d;
  background: #c94c3d;
  box-shadow: inset 0 0 0 3px #fff;
}

.recalculate-progress-row.is-warning::before {
  border-color: var(--secondary);
  background: var(--secondary);
  box-shadow: inset 0 0 0 3px #fff;
}

.recalculate-warning-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(var(--secondary-rgb), 0.24);
  border-radius: 14px;
  background: rgba(var(--secondary-rgb), 0.055);
  color: #3f4650;
  font-size: 13px;
  line-height: 1.4;
}

.recalculate-warning-list strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.recalculate-warning-list ul {
  display: grid;
  gap: 6px;
  max-height: 180px;
  margin: 0;
  overflow: auto;
  padding-left: 18px;
}

.system-profile-options {
  display: grid;
  gap: 12px;
}

.system-profile-option {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--secondary-rgb), 0.32);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.9)),
    #fff;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 12px 24px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.system-profile-option:hover,
.system-profile-option:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.72);
  outline: none;
  box-shadow:
    0 16px 30px rgba(var(--secondary-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.system-profile-option strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 850;
}

.system-profile-option span {
  color: #66717f;
  font-size: 13px;
  font-weight: 600;
}

.root-client-form,
.root-client-type-form,
.root-consultant-form,
.root-user-form,
.client-user-form {
  display: grid;
  gap: 18px;
  align-items: start;
}

.root-client-type-form {
  grid-template-columns: 1fr;
}

.root-consultant-form {
  grid-template-columns: 190px repeat(2, minmax(0, 1fr));
}

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

.root-consultant-photo-upload {
  grid-row: span 3;
  min-width: 0;
}

.root-consultant-photo-preview {
  display: grid;
  width: 100%;
  min-height: 184px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(var(--secondary-rgb), 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  cursor: pointer;
  box-shadow:
    0 10px 18px rgba(18, 31, 48, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.root-consultant-photo-preview:hover,
.root-consultant-photo-preview:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.68);
  outline: none;
}

.root-consultant-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.root-consultant-photo-preview span {
  color: #697386;
  font-size: 13px;
  font-weight: 850;
}

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

.root-client-form-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 12px 22px rgba(18, 31, 48, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.root-client-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.root-client-overview-grid .control-field:first-child,
.root-client-overview-grid .control-field:nth-child(n + 4) {
  grid-column: 1 / -1;
}

.root-logo-upload {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.root-logo-upload-heading,
.root-logo-upload-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.root-logo-upload-heading {
  justify-content: space-between;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.root-logo-upload-heading small {
  color: #697386;
  font-size: 11px;
  font-weight: 700;
}

.root-logo-upload-actions {
  justify-content: flex-end;
}

.root-logo-upload-actions .modal-outline-button {
  min-height: 36px;
}

.root-logo-upload .form-message {
  margin: 0;
}

.root-logo-preview {
  display: grid;
  width: 100%;
  aspect-ratio: 242 / 78;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(var(--secondary-rgb), 0.42);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.9)),
    rgba(255, 255, 255, 0.94);
  color: var(--accent);
  cursor: pointer;
  box-shadow:
    0 12px 24px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.list-form-modal-card .root-logo-preview {
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 18px rgba(18, 31, 48, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.root-logo-preview:hover,
.root-logo-preview:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.68);
  outline: none;
}

.root-logo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.root-logo-preview span {
  color: #697386;
  font-size: 13px;
  font-weight: 850;
}

.root-client-form .form-message,
.root-client-form .modal-form-actions,
.root-client-type-form .form-message,
.root-consultant-form .form-message,
.root-user-form .form-message,
.client-user-form .form-message,
.client-user-form .modal-form-actions {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .root-client-overview-grid,
  .root-consultant-form,
  .root-user-form,
  .client-user-form {
    grid-template-columns: 1fr;
  }

  .root-logo-preview {
    min-height: 132px;
  }
}

.plan-year-modal-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(80vw, 1320px);
  max-height: min(88vh, 980px);
  gap: 14px;
  overflow: hidden;
}

.plan-year-modal-card .modal-header {
  margin-bottom: 0;
}

.plan-year-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 12px 24px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.plan-year-modal-toolbar strong {
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
}

.plan-year-modal-list-wrap {
  min-height: 0;
  max-height: none;
}

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

.list-form-modal-card .action-form {
  gap: 18px;
}

.action-form .field-wide,
.action-form .form-message,
.action-form .action-form-actions {
  grid-column: 1 / -1;
}

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

.action-summary-grid > span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 20px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.action-summary-field {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 20px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.list-form-modal-card .action-summary-field {
  padding: 10px;
  border-color: rgba(5, 35, 79, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 10px 18px rgba(18, 31, 48, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.action-summary-grid span span,
.action-summary-field span {
  color: #697386;
  font-size: 12px;
  font-weight: 650;
}

.list-form-modal-card .action-summary-field span {
  color: var(--accent);
  font-weight: 800;
}

.action-summary-grid strong,
.action-summary-field strong {
  color: var(--accent);
  font-size: 15px;
}

.action-planned-date-field input {
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  outline: none;
}

.form-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(var(--secondary-rgb), 0.22);
  border-radius: 12px;
  background: rgba(var(--secondary-rgb), 0.07);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}

.form-message.is-error {
  border-color: rgba(var(--accent-rgb), 0.32);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.linked-assets-modal-card {
  display: grid;
  width: min(80vw, 1560px);
  max-height: min(88vh, 980px);
  gap: 18px;
  overflow: hidden;
  padding: 20px;
  border-radius: 18px;
}

.linked-assets-table {
  min-width: 2700px;
}

#linked-components-table.linked-assets-table {
  min-width: 5600px;
}

.linked-assets-modal-card .modal-header {
  margin-bottom: 0;
  padding: 16px 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.linked-assets-modal-card .modal-header > div:first-child {
  flex: 0 0 auto;
  min-width: 210px;
}

.linked-assets-modal-card .data-table-wrap {
  max-height: calc(88vh - 190px);
  border: 1px solid rgba(8, 40, 80, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 12px 26px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.linked-assets-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1 1 auto;
  gap: 10px;
  margin-left: auto;
  max-width: min(820px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.linked-assets-summary > span {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.9)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 20px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.linked-assets-summary > span > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linked-assets-summary strong {
  color: var(--accent);
  font-weight: 850;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wide-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.form-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(5, 35, 79, 0.12);
  border-radius: 16px;
  background: rgba(5, 35, 79, 0.04);
}

#asset-form .form-tabs,
.asset-type-form .form-tabs {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 10px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#asset-form .form-tabs::before,
.asset-type-form .form-tabs::before {
  content: "";
  position: absolute;
  right: 36px;
  left: 36px;
  top: 50%;
  height: 2px;
  background: rgba(5, 35, 79, 0.16);
  transform: translateY(-50%);
}

#asset-form .form-tab,
.asset-type-form .form-tab {
  position: relative;
  z-index: 1;
  min-height: 46px;
  border: 1px solid rgba(5, 35, 79, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.94)),
    rgba(255, 255, 255, 0.94);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  box-shadow:
    0 10px 20px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#asset-form .form-tab:hover,
#asset-form .form-tab.is-active,
.asset-type-form .form-tab:hover,
.asset-type-form .form-tab.is-active {
  border-color: rgba(var(--secondary-rgb), 0.68);
  background: rgba(255, 255, 255, 1);
  color: var(--secondary);
  box-shadow:
    0 13px 24px rgba(var(--secondary-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

#asset-form {
  gap: 18px;
}

.asset-type-form .form-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asset-type-modal-card {
  width: min(1120px, calc(100vw - 36px));
}

.child-list-section {
  grid-column: 1 / -1;
  grid-template-columns: 1fr !important;
}

.child-list-header {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 14px;
  background: rgba(248, 250, 253, 0.8);
}

.child-list-header > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.child-list-header strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.child-list-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.child-card-list-wrap {
  grid-column: 1 / -1;
  max-height: min(470px, calc(100vh - 260px));
  overflow: auto;
  padding: 2px 4px 2px 2px;
}

.child-card-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.child-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px 12px 17px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 12px;
  background: rgba(250, 252, 255, 0.92);
  box-shadow:
    0 8px 18px rgba(18, 31, 48, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.child-card::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(var(--accent-rgb), 0.46);
  content: "";
}

.child-component-card::before {
  background: rgba(var(--secondary-rgb), 0.46);
}

.child-card-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.2fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.child-card-title strong {
  font-size: 14px;
}

.child-card-description {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.child-component-events {
  align-self: stretch;
  grid-template-columns: minmax(62px, 0.58fr) repeat(5, minmax(88px, 1fr));
}

.child-list-section .empty-table-message {
  margin: 12px 0 0;
  padding: 16px;
  border: 1px dashed rgba(5, 35, 79, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.child-list-section .empty-table-message[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .child-card-header {
    grid-template-columns: 1fr;
  }

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

  .child-component-events {
    overflow-x: auto;
  }
}

.asset-tab-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -6px;
  padding: 0 10px 2px;
}

#asset-form .form-section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 22px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 253, 0.78)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    0 14px 28px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#asset-form .control-field {
  min-width: 0;
}

#asset-form .control-field > span {
  min-height: 18px;
}

#asset-form .field-wide,
#asset-form .attachment-upload-field,
#asset-form .form-section-actions {
  grid-column: 1 / -1;
}

.component-form .attachment-upload-field {
  grid-column: 1 / -1;
}

.component-form .component-notes-editor {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.component-notes-attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.component-form .component-notes-attachments .attachment-upload-field {
  grid-column: auto;
}

.component-notes-list {
  display: grid;
  gap: 8px;
}

.component-notes-empty {
  display: block;
  padding: 10px 12px;
  border: 1px dashed rgba(8, 40, 80, 0.14);
  border-radius: 12px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 600;
}

.component-note-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.component-note-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.component-note-item textarea {
  width: 100%;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #344251;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.component-note-item textarea:focus {
  outline: 0;
}

.component-note-item.is-complete textarea {
  color: #aeb7c2;
}

#asset-form .form-section-actions {
  align-self: end;
  padding-top: 2px;
}

#asset-form .asset-form-page-actions {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(5, 35, 79, 0.1);
}

.attachment-upload-field {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.attachment-upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.attachment-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.asset-form.is-view-mode .attachment-upload-button {
  display: none;
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-empty-state {
  padding: 7px 9px;
  border: 1px dashed rgba(8, 40, 80, 0.14);
  border-radius: 10px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 600;
}

.attachment-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.attachment-list-item > span {
  display: grid;
  min-width: 0;
}

.attachment-list-item strong {
  overflow: hidden;
  color: var(--primary);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-list-item small {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.attachment-list-item button,
.attachment-indicator-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--accent);
  cursor: pointer;
}

.attachment-list-item button {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.attachment-list-item button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.attachment-indicator-button {
  grid-auto-flow: column;
  gap: 4px;
  min-width: 38px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.attachment-indicator-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.form-tab {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.form-tab:hover,
.form-tab.is-active {
  border-color: rgba(var(--secondary-rgb), 0.42);
  background: rgba(255, 255, 255, 0.94);
  color: var(--secondary);
  box-shadow: 0 8px 18px rgba(18, 31, 48, 0.08);
}

.component-form {
  gap: 18px;
}

.component-form .component-timeline-tabs {
  position: relative;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.component-form .component-timeline-tabs::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 8px;
  left: 4px;
  height: 1px;
  background: rgba(5, 35, 79, 0.16);
}

.component-form .component-timeline-tabs .form-tab {
  position: relative;
  min-height: 38px;
  padding: 7px 8px;
  border-color: rgba(5, 35, 79, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow:
    0 10px 18px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.component-form .component-timeline-tabs .form-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.component-maintenance-tab-wrap {
  position: relative;
  display: block;
}

.component-maintenance-tab-wrap .component-maintenance-tab {
  width: 100%;
  padding-right: 38px;
}

.component-maintenance-tab-wrap.is-maintenance-disabled .component-maintenance-tab {
  color: #7f8b98;
  opacity: 0.78;
}

.component-tab-maintenance-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;
  transform: translateY(-50%);
}

.component-tab-maintenance-toggle span {
  width: 20px;
  height: 20px;
  border-color: rgba(var(--secondary-rgb), 0.46);
  background: #fff;
}

.component-tab-maintenance-toggle span::before {
  width: 11px;
  height: 7px;
}

.component-form .component-timeline-tabs .form-tab::after {
  content: "";
  position: absolute;
  bottom: -19px;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  border-top: 8px solid var(--secondary);
  opacity: 0;
  transform: translateX(-50%);
}

.component-form .component-timeline-tabs .form-tab:hover,
.component-form .component-timeline-tabs .form-tab.is-active {
  border-color: rgba(var(--secondary-rgb), 0.68);
  background: rgba(255, 255, 255, 1);
  color: var(--secondary);
}

.component-form .component-timeline-tabs .form-tab.is-active::after {
  opacity: 1;
}

.component-tab-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
}

.form-section {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(5, 35, 79, 0.12);
}

.tabbed-form .form-section {
  padding-top: 0;
  border-top: 0;
}

.component-form .form-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  align-items: start;
  padding: 14px 0 0;
}

.component-form .form-section .field-wide,
.component-form .component-maintenance-plan-toggle,
.component-form .component-maintenance-fields {
  grid-column: 1 / -1;
}

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

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.form-section h3 {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-section-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.form-section-actions .section-nav-button,
.form-section-actions .primary-button,
.asset-tab-navigation .section-nav-button,
.component-tab-navigation .section-nav-button,
.component-form-savebar .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  width: auto;
  padding-inline: 18px;
  border: 1px solid rgba(var(--secondary-rgb), 0.58);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 10px 18px rgba(var(--secondary-rgb), 0.1);
}

.form-section-actions .section-nav-button:hover,
.form-section-actions .primary-button:hover,
.asset-tab-navigation .section-nav-button:hover,
.component-tab-navigation .section-nav-button:hover,
.component-form-savebar .primary-button:hover {
  background: rgba(var(--secondary-rgb), 0.08);
}

.asset-tab-navigation .section-nav-button:disabled,
.component-tab-navigation .section-nav-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.component-form-savebar {
  display: flex;
  justify-content: flex-start;
  padding-top: 6px;
}

.component-form-savebar .primary-button {
  min-width: 118px;
  border-color: rgba(var(--secondary-rgb), 0.72);
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  font-weight: 500;
}

.form-section-actions svg,
.asset-tab-navigation svg,
.component-tab-navigation svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

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

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

.control-field select[multiple] {
  min-height: 108px;
  padding: 8px 13px;
}

.switch-field {
  align-content: start;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.switch-control input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.switch-slider {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(8, 40, 80, 0.18);
  box-shadow: inset 0 1px 4px rgba(8, 40, 80, 0.18);
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(8, 40, 80, 0.18);
  transition: transform 0.16s ease;
}

.switch-control input:checked + .switch-slider {
  background: var(--secondary);
}

.switch-control input:checked + .switch-slider::after {
  transform: translateX(24px);
}

.switch-control input:focus-visible + .switch-slider {
  outline: 3px solid rgba(var(--secondary-rgb), 0.24);
  outline-offset: 3px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-header-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.modal-header p,
.modal-header h2 {
  margin: 0;
}

.modal-header p {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-header h2 {
  margin-top: 4px;
  color: var(--accent);
  font-size: 28px;
  line-height: 1.1;
}

.modal-header .single-modal-title {
  margin-top: 0;
  color: var(--accent);
  font-size: 34px;
  font-weight: 500;
  text-transform: uppercase;
}

.list-form-modal-card .modal-header {
  align-items: flex-start;
  margin: -4px 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(5, 35, 79, 0.1);
}

.list-form-modal-card .modal-header h2,
.list-form-modal-card .modal-header .single-modal-title {
  color: var(--accent);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.list-form-modal-card .modal-header p {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.list-form-modal-card .icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--secondary-rgb), 0.58);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  box-shadow: 0 10px 18px rgba(var(--secondary-rgb), 0.08);
}

.list-form-modal-card .icon-button:hover {
  background: rgba(var(--secondary-rgb), 0.08);
}

.asset-type-form,
.component-type-form,
.tag-form,
.supplier-form {
  display: grid;
  gap: 18px;
}

.list-form-modal-card .control-field {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(5, 35, 79, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 10px 18px rgba(18, 31, 48, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.list-form-modal-card .control-field > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.list-form-modal-card .control-field input,
.list-form-modal-card .control-field select,
.list-form-modal-card .control-field textarea {
  min-height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 500;
}

.list-form-modal-card .control-field input:focus,
.list-form-modal-card .control-field select:focus,
.list-form-modal-card .control-field textarea:focus {
  border-color: rgba(var(--secondary-rgb), 0.5);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.list-form-modal-card .paired-fields {
  gap: 12px;
}

.list-form-modal-card .modal-form-actions,
.list-form-modal-card .component-form-savebar,
.list-form-modal-card .form-section-actions {
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(5, 35, 79, 0.08);
}

.form-subsection-heading {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.form-subsection-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(5, 35, 79, 0.12);
}

.form-subsection-heading-row .form-subsection-heading {
  margin: 0;
}

.section-toggle {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  cursor: pointer;
}

.section-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.section-toggle span {
  display: grid;
  width: 24px;
  height: 24px;
  place-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.72);
  background: rgba(255, 255, 255, 0.96);
}

.section-toggle span::before {
  content: "";
  width: 12px;
  height: 7px;
  border-bottom: 4px solid var(--secondary);
  border-left: 4px solid var(--secondary);
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.section-toggle input:checked + span::before {
  opacity: 1;
}

.component-type-maintenance-fields {
  display: grid;
  gap: 18px;
}

.component-maintenance-fields {
  display: grid;
  gap: 14px;
}

.component-type-maintenance-fields[hidden],
.component-maintenance-fields[hidden] {
  display: none;
}

.component-type-form.is-maintenance-disabled .component-type-maintenance-fields input,
.component-form.is-maintenance-disabled .component-maintenance-fields input,
.component-type-maintenance-fields input:disabled {
  background: rgba(228, 232, 238, 0.64);
  color: #8a94a3;
  cursor: not-allowed;
}

.logo-crop-workspace {
  display: grid;
  gap: 16px;
}

.logo-upload-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.logo-upload-dropzone {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px dashed rgba(var(--accent-rgb), 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.logo-upload-dropzone:hover,
.logo-upload-dropzone.is-dragging {
  border-color: rgba(var(--secondary-rgb), 0.74);
  color: var(--secondary);
  background: rgba(var(--secondary-rgb), 0.07);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.logo-upload-dropzone svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.logo-crop-stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 242 / 78;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 242, 247, 0.72)),
    rgba(255, 255, 255, 0.8);
  color: var(--accent);
  cursor: grab;
  text-align: center;
  touch-action: none;
}

.logo-crop-stage:hover,
.logo-crop-stage:focus-within,
.logo-crop-stage.is-dragging {
  border-color: rgba(var(--secondary-rgb), 0.5);
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.08);
}

.logo-crop-stage:active {
  cursor: grabbing;
}

.logo-crop-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.logo-crop-stage .logo-placeholder {
  pointer-events: none;
}

.logo-stage-help {
  position: absolute;
  right: 16px;
  bottom: 12px;
  max-width: min(320px, calc(100% - 32px));
  padding: 7px 10px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #697386;
  font-size: 12px;
  font-weight: 650;
  pointer-events: none;
  box-shadow:
    0 10px 20px rgba(18, 31, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.logo-crop-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(var(--secondary-rgb), 0.72);
  border-radius: 14px;
  pointer-events: none;
  box-shadow:
    0 0 0 999px rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.upload-control {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon-button {
  width: 38px;
  height: 38px;
}

.modal-done-button {
  margin-top: 18px;
}

.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(112px, 26%);
  min-width: 88px;
  min-height: 40px;
  border: 1px solid rgba(var(--secondary-rgb), 0.72);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 18px rgba(var(--secondary-rgb), 0.08);
}

.modal-outline-button:hover {
  background: rgba(var(--secondary-rgb), 0.08);
}

.password-reset-card {
  width: min(520px, calc(100vw - 36px));
}

.password-reset-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.password-reset-form .modal-outline-button {
  justify-self: end;
  width: auto;
  min-width: 128px;
}

.password-reset-message {
  margin-top: 14px;
}

.password-reset-message.is-error {
  color: #b42318;
}

.password-reset-local-code {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(var(--secondary-rgb), 0.16);
  border-radius: 14px;
  background: rgba(var(--secondary-rgb), 0.05);
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.45;
}

.asset-modal-header-actions .modal-outline-button {
  width: auto;
}

.modal-header-save-button {
  width: auto;
  min-width: 92px;
}

.asset-modal-close-button {
  min-width: 42px;
  width: 42px;
  padding: 0;
}

.asset-modal-close-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.warning-modal-card {
  width: min(420px, 100%);
}

.warning-message {
  margin: 0;
  color: #3f4650;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.danger-button {
  display: inline-grid;
  min-width: 96px;
  min-height: 42px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #c9302c;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(201, 48, 44, 0.18);
}

.date-modal-card {
  width: min(390px, 100%);
}

.date-modal-header {
  display: grid;
  grid-template-columns: 38px 1fr 38px 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.date-modal-header h2 {
  margin: 0;
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.logo-controls input[type="range"],
.logo-controls select {
  width: 100%;
  min-height: 40px;
}

.logo-controls select {
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  padding: 0 12px;
}

.date-weekdays,
.date-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.date-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.date-day,
.date-spacer {
  width: 100%;
  aspect-ratio: 1;
}

.date-day {
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 40, 80, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.date-day:hover,
.date-day.is-selected {
  border-color: rgba(var(--secondary-rgb), 0.42);
  background: rgba(var(--secondary-rgb), 0.12);
  color: var(--secondary);
}

.map-modal-card {
  width: min(980px, calc(100vw - 36px));
}

.map-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}

.map-search-row .modal-outline-button {
  min-height: 44px;
}

.area-location-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
}

.area-location-button svg {
  width: 18px;
  height: 18px;
}

.location-summary-block {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.location-summary {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(5, 35, 79, 0.12);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.root-client-area-field {
  grid-column: 1 / -1;
}

.area-location-results {
  display: grid;
  gap: 8px;
  margin: -2px 0 14px;
}

.area-location-result {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: var(--primary);
  border: 1px solid rgba(5, 35, 79, 0.14);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.area-location-result:hover,
.area-location-result:focus-visible {
  border-color: rgba(var(--secondary-rgb), 0.45);
  box-shadow: 0 10px 22px rgba(18, 31, 48, 0.1);
}

.area-location-result span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.map-picker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
}

.map-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(5, 35, 79, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(5, 35, 79, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(5, 35, 79, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #eef5f0, #f8fafc 48%, #edf4f8);
  background-size: 38px 38px, 38px 38px, auto;
  cursor: crosshair;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 24px rgba(18, 31, 48, 0.1);
}

.leaflet-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  background: #edf2f6;
}

.map-stage.has-live-map {
  background: #edf2f6;
}

.map-stage.has-live-map .leaflet-map-canvas {
  display: block;
}

.map-stage.has-live-map .map-axis,
.map-stage.has-live-map .map-road,
.map-stage.has-live-map .map-zone,
.map-stage.has-live-map > .map-pin,
.map-stage.has-live-map > .map-boundary-pins {
  display: none;
}

.leaflet-boundary-point span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(8, 40, 80, 0.22);
}

.leaflet-container {
  font: inherit;
}

.leaflet-control-attribution {
  color: #5d6b7a;
  font-size: 10px;
  font-weight: 650;
}

.map-stage:focus-visible {
  outline: 3px solid rgba(var(--secondary-rgb), 0.24);
  outline-offset: 3px;
}

.map-axis,
.map-road,
.map-zone {
  position: absolute;
  pointer-events: none;
}

.map-axis-horizontal {
  top: 48%;
  left: -8%;
  width: 116%;
  height: 22px;
  transform: rotate(-8deg);
  border-radius: 999px;
  background: rgba(5, 35, 79, 0.1);
}

.map-axis-vertical {
  top: -5%;
  left: 56%;
  width: 24px;
  height: 112%;
  transform: rotate(13deg);
  border-radius: 999px;
  background: rgba(var(--secondary-rgb), 0.1);
}

.map-road-a {
  top: 26%;
  left: -10%;
  width: 122%;
  height: 10px;
  transform: rotate(18deg);
  border-radius: 999px;
  background: rgba(5, 35, 79, 0.12);
}

.map-road-b {
  top: 68%;
  left: 8%;
  width: 82%;
  height: 9px;
  transform: rotate(-26deg);
  border-radius: 999px;
  background: rgba(5, 35, 79, 0.1);
}

.map-zone-a {
  top: 12%;
  left: 12%;
  width: 140px;
  height: 110px;
  transform: rotate(-8deg);
  border: 1px solid rgba(5, 35, 79, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
}

.map-zone-b {
  right: 14%;
  bottom: 12%;
  width: 170px;
  height: 120px;
  transform: rotate(11deg);
  border: 1px solid rgba(var(--secondary-rgb), 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--secondary);
  cursor: grab;
  filter: drop-shadow(0 8px 12px rgba(18, 31, 48, 0.22));
  transform: translate(-50%, -100%);
  z-index: 2;
}

.map-pin:active {
  cursor: grabbing;
}

.map-pin svg {
  width: 42px;
  height: 42px;
  fill: rgba(255, 255, 255, 0.96);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.map-boundary-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.map-boundary-pin {
  position: absolute;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(8, 40, 80, 0.22);
  transform: translate(-50%, -50%);
}

.map-selection-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(5, 35, 79, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.map-external-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}

.area-boundary-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-boundary-toolbar .modal-outline-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
}

.area-boundary-points {
  display: grid;
  max-height: 120px;
  overflow: auto;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(5, 35, 79, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 820px) {
  .map-search-row,
  .map-picker-layout {
    grid-template-columns: 1fr;
  }

  .map-stage {
    min-height: 320px;
  }
}

.workspace-header h1 {
  margin: 0;
}

.workspace-header h1 {
  color: var(--accent);
  font-size: 30px;
  line-height: 1.1;
}

.header-profile-actions {
  grid-column: 4;
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 14px 5px 5px;
  border: 1px solid rgba(8, 40, 80, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  box-shadow:
    0 12px 24px rgba(18, 31, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.user-chip:hover,
.user-chip:focus-visible,
.user-chip.is-active {
  border-color: rgba(var(--secondary-rgb), 0.42);
  color: var(--secondary);
  outline: none;
}

.user-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 14px rgba(8, 40, 80, 0.18);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 900px) {
  .portal-shell {
    grid-template-columns: 1fr;
    width: min(560px, calc(100% - 24px));
    margin: 12px auto;
  }

  .brand-panel {
    min-height: 300px;
    padding: 24px;
  }

  .flow-hero {
    margin-bottom: 30px;
  }

  .brand-copy {
    padding: 38px 0 24px;
  }

  .brand-copy h1 {
    font-size: 42px;
  }

  .brand-copy p {
    font-size: 16px;
  }

  .login-panel {
    min-height: auto;
    padding: 22px;
  }

  .app-shell {
    grid-template-columns: 258px minmax(0, 1fr);
  }

  .sidebar-organisation-logo {
    width: 242px;
  }

  .workspace {
    padding: 24px;
  }

  .home-shortcut-groups {
    grid-template-columns: 1fr;
  }

  .info-panel {
    grid-template-columns: 1fr;
  }

  #general-info-page,
  #financial-info-page {
    grid-template-columns: 1fr;
  }

  #general-info-page > .info-fields {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  #general-info-page .general-client-cards {
    grid-template-columns: 1fr;
  }

  #general-info-page .info-meta {
    grid-column: 1;
    grid-row: auto;
    align-items: center;
    justify-content: flex-start;
  }

  #general-info-page .logo-editor {
    position: relative;
    top: auto;
    right: auto;
    width: min(296px, 100%);
    margin-left: auto;
  }

  #general-info-page .general-details-card {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  #general-info-page .name-logo-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  #general-info-page .name-field {
    width: 100%;
    max-width: none;
  }

  #general-info-page .name-type-field {
    justify-items: start;
    margin-left: 0;
  }

  #general-info-page .general-details-card > .info-field,
  #general-info-page .general-details-card > .info-field:last-child {
    grid-column: 1;
  }

  .financial-fields,
  .info-fields.financial-fields {
    grid-template-columns: 1fr;
  }

  .member-types-table-header,
  .member-type-row {
    grid-template-columns: minmax(180px, 1.2fr) 78px repeat(4, minmax(118px, 1fr)) minmax(116px, 0.9fr) 42px;
  }

  .member-type-remove {
    justify-self: end;
  }

  .financial-date-currency-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .dashboard-metrics,
  .dashboard-grid,
  .dashboard-insights-grid,
  .maintenance-dashboard-grid,
  .facility-overview-grid,
  .facility-dashboard-layout,
  .facility-command-card,
  .dashboard-organisation {
    grid-template-columns: 1fr;
  }

  .maintenance-variance-card {
    grid-column: auto;
  }

  .maintenance-bulk-edit-bar,
  .maintenance-action-row {
    grid-template-columns: 1fr;
  }

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

  .facility-visual-card-large {
    grid-column: auto;
  }

  .facility-value-mix {
    grid-template-columns: 1fr;
  }

  .facility-command-card > .facility-value-mix {
    grid-template-columns: minmax(170px, 0.58fr) minmax(230px, 1fr);
  }

  .facility-plan-grid {
    grid-template-columns: 1fr;
  }

  .facility-bar-row,
  .facility-record-mix .facility-bar-row {
    grid-template-columns: minmax(120px, 0.85fr) minmax(120px, 1fr) minmax(110px, auto);
  }

  .combined-client-header,
  .combined-category-header,
  .combined-item-header,
  .combined-component-row,
  .combined-summary-strip,
  .combined-summary-values,
  .combined-summary-counts,
  .combined-filter-strip {
    grid-template-columns: 1fr;
  }

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

  .combined-event-summary {
    grid-template-columns: minmax(54px, 0.7fr) repeat(5, minmax(58px, 1fr));
  }

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

  .combined-client-children,
  .combined-item-list,
  .combined-component-list {
    padding-left: 20px;
  }

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

  .dashboard-insight-modal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-plan-kpis,
  .insight-plan-sections {
    grid-template-columns: 1fr;
  }

  .insight-donut-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .actions-filters,
  .action-form,
  .action-summary-grid {
    grid-template-columns: 1fr;
  }

  .actions-page {
    height: auto;
    min-height: calc(100vh - 170px);
  }

  .actions-event-list-wrap,
  .actions-calendar-grid,
  .plan-chart-wrap,
  .plan-budget-columns {
    max-height: calc(100vh - 420px);
  }

  .actions-year-grid {
    grid-template-columns: 1fr;
  }

  .actions-kanban-board {
    grid-auto-columns: minmax(260px, 84vw);
  }

  .plan-budget-columns {
    grid-template-columns: 1fr;
  }

  .actions-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .actions-calendar-title {
    text-align: left;
  }

  .action-card-grid {
    grid-template-columns: 1fr;
  }

  .action-card-grid.is-compact-plan {
    grid-template-columns: 1fr;
  }

  .plan-card-scheduling {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-card-costing {
    justify-self: stretch;
  }

  .plan-card-costing .plan-card-metric strong {
    text-align: left;
  }

  .component-modal-card {
    width: min(720px, calc(100vw - 28px));
  }

  .asset-modal-card {
    width: min(720px, calc(100vw - 28px));
  }

  #asset-form .form-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .component-form .form-section,
  .component-form .component-maintenance-fields {
    grid-template-columns: 1fr;
  }

  .component-form .component-timeline-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .portal-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .brand-panel {
    min-height: 250px;
    padding: 20px;
  }

  .flow-hero {
    margin-bottom: 24px;
  }

  .flow-hero img {
    width: min(330px, 92%);
  }

  .plan-budget-card,
  .plan-budget-metrics {
    grid-template-columns: 1fr;
  }

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

  .home-shortcut-tile {
    min-height: 108px;
    border-radius: 18px;
  }

  .brand-copy h1 {
    font-size: 32px;
  }

  .login-panel {
    padding: 18px;
  }

  .login-card {
    padding: 24px;
    border-radius: 22px;
  }

  .login-heading h2 {
    font-size: 32px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-organisation-logo {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: 78px;
    margin: 12px 12px 0;
  }

  .sidebar {
    width: 226px;
    height: auto;
    min-height: auto;
    margin: 12px;
    border-right: 1px solid rgba(8, 40, 80, 0.12);
    border-bottom: 1px solid rgba(8, 40, 80, 0.12);
  }

  .menu-list {
    gap: 16px;
  }

  .workspace-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 18px;
  }

  .workspace-header > .shared-data-status,
  .header-profile-actions {
    align-self: stretch;
    justify-self: auto;
  }

  .workspace-header > .shared-data-status {
    width: 100%;
  }

  .toolbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .toolbar-title h1 {
    justify-self: auto;
  }

  .dashboard-insights-header h3 {
    font-size: 21px;
  }

  .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-card {
    padding: 13px;
  }

  .facility-dashboard-metrics,
  .facility-overview-grid,
  .facility-command-card > .facility-value-mix,
  .facility-command-stats,
  .combined-category-metrics,
  .combined-row-metrics,
  .facility-bar-row,
  .facility-record-mix .facility-bar-row {
    grid-template-columns: 1fr;
  }

  .combined-event-summary {
    grid-template-columns: minmax(52px, 0.7fr) repeat(5, minmax(54px, 1fr));
  }

  .facility-bar-value {
    text-align: left;
  }

  .facility-card-header {
    display: grid;
  }

  .dashboard-insight-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-insight-search {
    min-width: 0;
  }

  .dashboard-insight-modal-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .dashboard-insight-modal-summary {
    grid-template-columns: 1fr;
  }

  .insight-card {
    min-height: auto;
    padding: 16px;
  }

  .insight-card header {
    display: grid;
    gap: 6px;
  }

  .insight-card-total {
    text-align: left;
    white-space: normal;
  }

  .insight-donut {
    width: 132px;
    height: 132px;
  }

  .insight-donut-center {
    width: 82px;
    height: 82px;
  }

  .insight-legend-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .insight-legend-row strong {
    grid-column: 2;
  }

  .insight-bar-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }

  .insight-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .insight-bar-value {
    grid-column: 2;
    grid-row: 1;
  }

  .insight-plan-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .insight-plan-row > em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .info-fields {
    grid-template-columns: 1fr;
  }

  #asset-form .form-tabs,
  #asset-form .form-section,
  .asset-type-form .form-tabs,
  .asset-type-form .form-section {
    grid-template-columns: 1fr;
  }

  .component-tab-navigation {
    align-items: stretch;
    flex-direction: column;
  }

  .component-tab-navigation .section-nav-button {
    width: 100%;
  }

  .logo-controls {
    grid-template-columns: 1fr;
  }
}
/* Enterprise template alignment layer
   Mirrors the newer codex-system base template visual standards without
   changing FMA data, storage, calculations or page structure. */
:root {
  --ink: #17212b;
  --muted: #687582;
  --line: #dce2e7;
  --accent: #004e7a;
  --accent-rgb: 0, 78, 122;
  --accent-deep: #173c5c;
  --secondary: #fc661b;
  --secondary-rgb: 252, 102, 27;
  --template-blue: #2764d8;
  --template-blue-dark: #1749a7;
  --template-nav: #17212b;
  --template-nav-soft: #202d39;
  --template-green: #16734a;
  --template-red: #b3261e;
  --template-amber: #9a5b08;
  --template-page-bg: #f3f5f7;
  --template-soft: #f7f9fa;
  --template-surface: #ffffff;
  --template-radius: 8px;
  --template-panel-radius: 14px;
  --template-shell-radius: 16px;
  --template-shadow: 0 8px 24px rgba(23, 33, 43, 0.08);
  --template-shadow-soft: 0 2px 7px rgba(23, 33, 43, 0.025);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
}

body {
  background: var(--template-page-bg);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Calibri, Arial, sans-serif;
  font-synthesis: none;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

:focus-visible {
  outline: 3px solid rgba(39, 100, 216, 0.28);
  outline-offset: 2px;
}

.portal-shell {
  border-color: #9db9d5;
  border-radius: var(--template-shell-radius);
  background:
    linear-gradient(145deg, rgba(244, 248, 255, 0.94), rgba(234, 242, 252, 0.9)),
    url("/assets/plans.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(6, 20, 34, 0.22);
}

.brand-panel {
  background: linear-gradient(145deg, rgba(244, 248, 255, 0.9), rgba(223, 238, 250, 0.82));
}

.login-panel {
  background: rgba(255, 255, 255, 0.72);
}

.login-card,
.modal-card,
.password-reset-card {
  border-color: var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--template-shadow);
  backdrop-filter: none;
}

.login-heading p,
.modal-header p,
.root-content-header p,
.home-shortcut-group h3,
.eyebrow {
  color: var(--secondary);
  letter-spacing: 0.08em;
}

.login-heading h2,
.root-content-header h1,
.list-panel-header h2,
.dashboard-header h2,
.home-shortcuts-header h2,
.portal-section-heading > span,
.toolbar-title h1 {
  color: var(--ink);
  letter-spacing: -0.025em;
}

.field > span:first-child,
.info-field > span:first-child,
.reserve-budget-field > span,
.actions-filters label > span,
.list-filter-strip span,
.dashboard-insight-search span {
  color: #364552;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.info-field input,
.info-field select,
.info-field textarea,
.reserve-budget-field input,
.reserve-filter-inline-cost-field input,
.actions-filters select,
.actions-filters input[type="date"],
.list-filter-strip select,
.dashboard-insight-search input {
  border-color: #cdd5db;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.info-field input:focus,
.info-field select:focus,
.info-field textarea:focus,
.reserve-budget-field input:focus,
.reserve-filter-inline-cost-field input:focus,
.actions-filters select:focus,
.actions-filters input[type="date"]:focus,
.list-filter-strip select:focus,
.dashboard-insight-search input:focus {
  border-color: var(--template-blue);
  box-shadow: 0 0 0 3px rgba(39, 100, 216, 0.12);
  outline: none;
}

.submit-button,
.modal-primary-button,
.modal-save-button,
.primary-action-button,
.grouped-view-button.is-primary,
.sidebar-recalculate-button,
.logout-link {
  border-radius: 6px;
  box-shadow: var(--template-shadow-soft);
}

.submit-button,
.modal-primary-button,
.modal-save-button,
.primary-action-button {
  background: var(--template-blue);
}

.submit-button:hover,
.modal-primary-button:hover,
.modal-save-button:hover,
.primary-action-button:hover {
  background: var(--template-blue-dark);
}

.icon-button,
.system-notification-button,
.root-return-link,
.column-selector-button,
.list-filter-toggle,
.grouped-view-button,
.modal-outline-button,
.modal-danger-button,
.modal-close-button,
.section-nav-button,
.reserve-view-button,
.action-view-toggle,
.graph-open-button,
.pdf-report-button {
  border-radius: 6px;
  box-shadow: none;
}

.app-shell,
.root-shell {
  background-color: #eef3f6;
  background-image:
    linear-gradient(rgba(8, 25, 43, 0.38), rgba(15, 39, 60, 0.5)),
    url("/assets/plans.jpg");
  background-position: center;
  background-size: cover;
}

.root-shell {
  gap: 18px;
  padding: 18px;
}

.sidebar,
.root-sidebar,
.workspace-header,
.root-content-header,
.list-panel,
.dashboard-panel,
.dashboard-card,
.dashboard-section,
.facility-visual-card,
.facility-overview-card,
.home-shortcut-group,
.insight-card,
.reserve-budget-card,
.reserve-filter-expanded-group,
.findings-summary-card,
.findings-scenario-card,
.current-budget-graph-card,
.plan-budget-card {
  border: 1px solid var(--line);
  border-radius: var(--template-panel-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--template-shadow-soft);
  backdrop-filter: none;
}

.sidebar,
.root-sidebar {
  border-radius: var(--template-shell-radius);
}

.workspace-header,
.root-content-header {
  min-height: 68px;
  padding: 0 18px;
  border-radius: var(--template-shell-radius);
  box-shadow: var(--template-shadow);
}

.workspace {
  padding: 16px 18px 28px 0;
}

.workspace-content {
  padding-top: 14px;
}

.sidebar {
  width: 238px;
  height: calc(100vh - 126px);
  margin: 108px 0 18px 18px;
}

.menu-list {
  gap: 18px;
  padding: 18px 12px 12px;
}

.menu-home,
.menu-group h2,
.menu-home.menu-item {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.menu-group.is-active h2,
.menu-item:hover,
.menu-item.is-active,
.menu-nested-toggle:hover,
.menu-nested-toggle:focus-visible,
.menu-nested-group.is-open > .menu-nested-toggle,
.menu-inline-action:hover,
.menu-inline-action:focus-visible,
.menu-action-item:hover {
  color: var(--template-blue);
}

.menu-group li {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #52616e;
  font-size: 12px;
  font-weight: 650;
}

.menu-group li:hover,
.menu-group li:has(.menu-item.is-active) {
  background: #f1f4f6;
}

.menu-group li.menu-nested-group:hover {
  background: transparent;
}

.menu-nested-toggle {
  border-radius: 6px;
}

.menu-nested-list {
  padding-left: 18px;
}

.menu-nested-list li {
  font-weight: 500;
}

.menu-nested-list .menu-item {
  font-style: italic;
  font-weight: 500;
}

.list-panel,
.dashboard-panel {
  gap: 16px;
  padding: 22px;
}

.dashboard-header,
.home-shortcuts-header {
  margin: -22px -22px 0;
  padding: 20px 22px 14px;
  border-radius: var(--template-panel-radius) var(--template-panel-radius) 0 0;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(23, 33, 43, 0.05);
}

.dashboard-header::after,
.home-shortcuts-header::after {
  right: 22px;
  left: 22px;
  background: var(--line);
}

.list-panel-header {
  gap: 12px;
}

.list-panel-header h2,
.dashboard-header h2,
.home-shortcuts-header h2 {
  font-size: 25px;
  line-height: 1.15;
}

.list-panel-actions {
  gap: 8px;
}

.list-panel-action-group {
  gap: 6px;
  padding-right: 8px;
}

.list-search {
  height: 34px;
  width: clamp(220px, 26vw, 340px);
  border-color: #ccd5db;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.list-search input {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.list-search button {
  width: 34px;
  height: 34px;
  border-left-color: var(--line);
  background: transparent;
  color: #7e8b95;
}

.list-search button:hover {
  background: #f1f4f6;
  color: var(--template-blue);
}

.list-filter-menu,
.column-selector-menu {
  border-color: var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--template-shadow);
}

.list-filter-menu-group,
.reserve-filter-expanded-group {
  border-color: var(--line);
  border-radius: 6px;
}

.list-filter-menu-heading {
  background: #f4f6f8;
  color: #4d5b67;
}

.list-filter-menu-option,
.column-selector-menu-option {
  border-radius: 5px;
}

.summary-chip,
.dashboard-kpi-card,
.facility-legend-row,
.facility-bar-row,
.facility-plan-row,
.combined-client-row,
.combined-category-row,
.combined-item-row,
.combined-component-row,
.action-event-card,
.plan-event-card,
.plan-year-card,
.plan-budget-card {
  border-color: var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--template-shadow-soft);
}

.summary-chip {
  min-height: 42px;
  padding: 8px 10px;
}

.dashboard-kpi-card {
  padding: 13px;
}

.dashboard-kpi-icon,
.home-shortcut-icon {
  border-radius: 8px;
}

.home-shortcut-tile {
  min-height: 110px;
  border-radius: 8px;
  box-shadow: var(--template-shadow-soft);
}

.root-table-wrap,
.table-wrap,
.list-table-wrap,
.current-budget-table-wrap,
.combined-report-panel,
.actions-list-scroll,
.actions-kanban-board,
.plan-list-scroll {
  border-radius: 8px;
  background: #ffffff;
}

table,
.root-clients-table,
.root-archived-clients-table,
.root-component-types-table,
.root-client-types-table,
.root-consultants-table,
.root-users-table,
.users-table,
.list-table,
.data-table,
.current-budget-table {
  border-collapse: separate;
  border-spacing: 0;
}

th,
td,
.list-table th,
.list-table td,
.root-table-wrap th,
.root-table-wrap td,
.current-budget-table th,
.current-budget-table td {
  border-bottom-color: #e8ecef;
  color: #344251;
  font-size: 11px;
}

th,
.list-table th,
.root-table-wrap th,
.current-budget-table th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f4f6f8;
  color: #4d5b67;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: inset 0 -1px 0 #e2e7ea;
}

tbody tr:hover td,
.list-table tbody tr:hover td,
.root-table-wrap tbody tr:hover td {
  background: #f7faff;
}

tbody tr.is-selected td,
tbody tr.selected td,
.list-table tbody tr.is-selected td,
.root-table-wrap tbody tr.is-selected td {
  background: #e8f1ff;
}

.column-resizer::after,
.column-resize-handle::after {
  background: transparent;
}

.column-resizer:hover::after,
.column-resizer:focus-visible::after,
.column-resize-handle:hover::after,
.column-resize-handle:focus-visible::after {
  background: var(--template-blue);
  box-shadow: 0 0 0 2px rgba(39, 100, 216, 0.14);
}

.row-actions-anchor .context-bar,
.list-row-actions,
.row-action-popover,
.combined-row-action-popover {
  border-color: #8eb6df;
  border-radius: 8px;
  background: rgba(240, 247, 255, 0.98);
  box-shadow: 0 12px 28px rgba(23, 55, 83, 0.18);
}

.modal-backdrop {
  background: rgba(15, 25, 35, 0.52);
}

.modal-card {
  max-height: 92vh;
  overflow: auto;
}

.modal-header {
  border-bottom-color: var(--line);
}

.modal-header h2,
.modal-card h2 {
  color: var(--ink);
}

.modal-outline-button,
.modal-close-button,
.secondary-action-button,
.grouped-view-button,
.reserve-view-button,
.section-nav-button,
.action-view-toggle {
  border-color: #cdd5db;
  background: #ffffff;
  color: #263745;
}

.modal-outline-button:hover,
.modal-close-button:hover,
.secondary-action-button:hover,
.grouped-view-button:hover,
.reserve-view-button:hover,
.section-nav-button:hover,
.action-view-toggle:hover {
  background: #f5f7f8;
  color: var(--template-blue);
}

.modal-danger-button,
.danger-action-button {
  border-color: #f0b9b5;
  background: #fff0ef;
  color: var(--template-red);
}

.shared-data-status,
.system-notification-button {
  box-shadow: var(--template-shadow-soft);
}

.shared-data-status.is-shared,
.shared-data-status.is-synced {
  border-color: rgba(22, 115, 74, 0.28);
  background: #edfdf5;
  color: var(--template-green);
}

.shared-data-status.is-fallback,
.shared-data-status.is-error {
  border-color: rgba(179, 38, 30, 0.32);
  background: #fff1f0;
  color: var(--template-red);
}

@media (max-width: 900px) {
  .root-shell {
    gap: 14px;
    padding: 14px;
  }

  .workspace {
    padding: 14px 14px 28px 0;
  }

  .list-panel,
  .dashboard-panel {
    padding: 18px;
  }

  .dashboard-header,
  .home-shortcuts-header {
    margin: -18px -18px 0;
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .workspace {
    padding: 12px;
  }

  .list-panel,
  .dashboard-panel {
    padding: 16px;
    border-radius: 12px;
  }

  .dashboard-header,
  .home-shortcuts-header {
    margin: -16px -16px 0;
    padding: 16px;
    border-radius: 12px 12px 0 0;
  }
}
/* EPF specification refinements: compact density, semantic states and shared list rhythm. */
:root {
  --epf-space-1: 4px;
  --epf-space-2: 8px;
  --epf-space-3: 12px;
  --epf-space-4: 16px;
  --epf-space-5: 20px;
  --epf-control-height: 34px;
  --epf-row-height: 36px;
  --epf-touch-height: 40px;
  --epf-focus-ring: 0 0 0 3px rgba(39, 100, 216, 0.18);
}

.workspace-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.workspace-header,
.root-content-header,
.list-panel-header,
.dashboard-header,
.home-shortcuts-header {
  position: relative;
  isolation: isolate;
}

.workspace-header::after,
.root-content-header::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 1px;
  background: var(--line);
}

.list-panel-actions,
.root-list-actions,
.combined-page-actions,
.facility-dashboard-heading,
.reserve-budget-section-actions {
  align-items: center;
  justify-content: flex-end;
  gap: var(--epf-space-2);
}

.list-panel-header,
.root-list-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, auto);
  align-items: center;
  gap: var(--epf-space-4);
}

.list-panel-header > div:first-child,
.list-section-title {
  min-width: 0;
}

.list-panel-header h2,
.list-section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.list-panel-header p,
.list-section-title p {
  margin: 4px 0 0;
  color: #627080;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.list-panel-actions,
.root-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--epf-space-2);
  min-width: 0;
  margin-left: auto;
  flex-wrap: nowrap;
}

.list-panel-actions > .list-search,
.root-list-actions > .list-search {
  order: 1;
}

.list-panel-actions > .list-filter-menu-wrap,
.root-list-actions > .list-filter-menu-wrap {
  order: 2;
}

.list-panel-actions > .list-column-selector-wrap,
.root-list-actions > .list-column-selector-wrap {
  order: 3;
}

/* Clients keeps Add immediately beside Filter; column visibility follows it. */
#root-clients-page .root-list-inline-add {
  order: 3;
}

#root-clients-page .root-list-inline-add + .list-column-selector-wrap {
  order: 4;
}

.list-panel-actions > .root-add-button,
.root-list-actions > .root-add-button,
.list-panel-actions > .icon-action-button:not(.csv-export-button),
.root-list-actions > .icon-action-button:not(.csv-export-button) {
  order: 4;
}

.list-panel-actions > .csv-export-button,
.root-list-actions > .csv-export-button,
.root-list-actions > .root-export-button,
.root-list-actions > .icon-action-button.root-export-button {
  order: 5;
}

.list-panel-actions > .grouped-view-button,
.list-panel-actions > .action-view-toggle,
.list-panel-actions > .reserve-view-button {
  order: 6;
}

.root-content-header .root-export-button,
.root-content-header .root-add-button {
  display: none;
}

.list-filter-menu-wrap + .list-column-selector-wrap,
.list-column-selector-wrap + .list-filter-menu-wrap {
  margin-left: 0;
}

.icon-action-button,
.list-filter-toggle,
.column-selector-button,
.modal-outline-button,
.modal-primary-button,
.modal-save-button,
.modal-danger-button,
.section-nav-button,
.reserve-view-button,
.action-view-toggle,
.graph-open-button,
.pdf-report-button,
.grouped-view-button {
  min-height: var(--epf-control-height);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
}

.icon-action-button,
.list-filter-toggle,
.column-selector-button,
.graph-open-button {
  width: var(--epf-control-height);
  height: var(--epf-control-height);
  min-width: var(--epf-control-height);
  padding: 0;
}

.list-filter-toggle.is-active::after {
  content: attr(data-active-count);
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--template-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 13px;
}

.data-table-wrap,
.root-table-wrap,
.table-scroll,
.current-budget-table-wrap {
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.data-table th,
.data-table td,
.root-table-wrap th,
.root-table-wrap td,
.list-table th,
.list-table td {
  height: var(--epf-row-height);
  padding: 0 11px;
  vertical-align: middle;
}

.data-table th,
.root-table-wrap th,
.list-table th {
  height: auto;
  min-height: 37px;
  cursor: pointer;
}

.data-table th:first-child,
.data-table td:first-child,
.root-table-wrap th:first-child,
.root-table-wrap td:first-child {
  position: sticky;
  left: 0;
}

.data-table td:first-child,
.root-table-wrap td:first-child {
  z-index: 3;
  background: inherit;
}

.data-table th:first-child,
.root-table-wrap th:first-child {
  z-index: 8;
}

.data-table tbody tr:focus-visible td,
.root-table-wrap tbody tr:focus-visible td,
.list-table tbody tr:focus-visible td {
  box-shadow: inset 0 0 0 2px rgba(39, 100, 216, 0.24);
}

.context-bar,
.row-actions-anchor .context-bar,
.combined-row-action-popover,
.row-action-popover {
  min-height: 44px;
  align-items: center;
  gap: var(--epf-space-3);
  padding: var(--epf-space-2) var(--epf-space-3);
}

.context-bar b,
.context-bar span {
  line-height: 1.2;
}

.empty-table-message,
.empty-state,
.empty,
.attachment-empty-state,
.list-filter-menu-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.empty-table-message,
.empty-state,
.attachment-empty-state {
  border-color: var(--line);
  border-radius: 8px;
  background: #f7f9fa;
}

.form-message,
.login-message,
.field-error,
.modal-error,
.alert.error {
  color: var(--template-red);
}

.is-loading,
.loading,
body.is-data-loading .data-loading-modal {
  color: var(--muted);
}

.status-pill,
.status-badge,
.user-type-badge,
.summary-chip,
.dashboard-active-selection,
.insight-row-badge {
  border-radius: 999px;
}

.info-value,
.dashboard-summary-line strong,
.facility-stat strong,
.reserve-budget-field output,
.summary-chip strong {
  font-variant-numeric: tabular-nums;
}

button:focus-visible,
.menu-item:focus-visible,
.menu-inline-action:focus-visible,
.menu-action-item:focus-visible,
.list-search input:focus-visible,
.data-table tbody tr:focus-visible {
  outline: none;
  box-shadow: var(--epf-focus-ring);
}

/* Shared compact table standard. Keep this late so older table-specific padding and borders do not drift. */
.data-table-wrap,
.root-table-wrap,
.list-table-wrap,
.table-wrap,
.table-scroll,
.current-budget-table-wrap,
.findings-scenario-table-wrap,
.dashboard-insight-detail-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(18, 31, 48, 0.05);
}

.data-table,
.root-clients-table,
.root-archived-clients-table,
.root-component-types-table,
.root-client-types-table,
.root-consultants-table,
.root-users-table,
.users-table,
.list-table,
.current-budget-table,
.findings-scenario-table,
.dashboard-insight-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  color: #344251;
  font-size: 11px;
  line-height: 1.22;
}

.data-table.has-fixed-columns,
.root-clients-table.has-fixed-columns,
.root-archived-clients-table.has-fixed-columns,
.root-component-types-table.has-fixed-columns,
.root-client-types-table.has-fixed-columns,
.root-consultants-table.has-fixed-columns,
.root-users-table.has-fixed-columns,
.users-table.has-fixed-columns,
.list-table.has-fixed-columns {
  table-layout: fixed;
}

.data-table th,
.root-table-wrap th,
.list-table th,
.current-budget-table th,
.findings-scenario-table th,
.dashboard-insight-detail-table th {
  min-height: 34px;
  padding: 5px 9px;
  border-right: 1px solid #e2e7ea;
  border-bottom: 1px solid #dfe5e9;
  background: #f4f6f8;
  color: #4d5b67;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 -1px 0 #e2e7ea;
}

.data-table td,
.root-table-wrap td,
.list-table td,
.current-budget-table td,
.findings-scenario-table td,
.dashboard-insight-detail-table td {
  height: 34px;
  padding: 5px 9px;
  border-right: 1px solid #eef2f4;
  border-bottom: 1px solid #e8ecef;
  background: #ffffff;
  color: #344251;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.22;
  vertical-align: middle;
}

.data-table th:last-child,
.root-table-wrap th:last-child,
.list-table th:last-child,
.current-budget-table th:last-child,
.findings-scenario-table th:last-child,
.dashboard-insight-detail-table th:last-child,
.data-table td:last-child,
.root-table-wrap td:last-child,
.list-table td:last-child,
.current-budget-table td:last-child,
.findings-scenario-table td:last-child,
.dashboard-insight-detail-table td:last-child {
  border-right: 0;
}

.data-table tbody tr:hover td,
.root-table-wrap tbody tr:hover td,
.list-table tbody tr:hover td,
.current-budget-table tbody tr:hover td,
.findings-scenario-table tbody tr:hover td,
.dashboard-insight-detail-table tbody tr:hover td {
  background: #f7faff;
}

.data-table tbody tr.is-row-selected td,
.data-table tbody tr.is-selected td,
.data-table tbody tr.selected td,
.root-table-wrap tbody tr.is-row-selected td,
.root-table-wrap tbody tr.is-selected td,
.root-table-wrap tbody tr.selected td,
.list-table tbody tr.is-row-selected td,
.list-table tbody tr.is-selected td,
.list-table tbody tr.selected td {
  background: #e8f1ff;
}

.data-table td.is-text-cell,
.data-table td.primary-cell,
.root-table-wrap td.is-text-cell,
.list-table td.is-text-cell {
  text-align: left;
}

.data-table td.is-center-cell,
.data-table td.is-date-cell,
.root-table-wrap td.is-center-cell,
.list-table td.is-center-cell,
.current-budget-table th,
.current-budget-table td {
  text-align: center;
}

.data-table td.is-decimal-cell,
.data-table td.is-currency-cell,
.current-budget-table .is-currency-cell,
.findings-scenario-table td.is-number-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table tbody td,
.data-table tbody td *,
.root-table-wrap tbody td,
.root-table-wrap tbody td *,
.list-table tbody td,
.list-table tbody td *,
.current-budget-table tbody td,
.current-budget-table tbody td *,
.findings-scenario-table tbody td,
.findings-scenario-table tbody td *,
.dashboard-insight-detail-table tbody td,
.dashboard-insight-detail-table tbody td * {
  font-weight: 400 !important;
}

.sort-button,
.column-header-controls,
.column-label-text {
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.sort-button,
.column-header-controls {
  min-width: 0;
  overflow: hidden;
}

.column-label-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sort-button svg {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.sort-icon-slot {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

@media (max-width: 760px) {
  .root-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: auto;
    min-height: 100vh;
    overflow: auto;
    padding: 10px;
  }

  .root-sidebar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .root-brand {
    width: 104px;
    padding: 0;
    border-bottom: 0;
  }

  .root-menu {
    display: flex;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 2px;
  }

  .root-menu-item {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 10px;
  }

  .root-content-header,
  .root-card {
    min-width: 0;
  }

  .component-notes-attachments {
    grid-template-columns: 1fr;
  }

  .list-panel-header,
  .root-list-toolbar,
  .dashboard-header,
  .home-shortcuts-header {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .list-panel-actions,
  .root-list-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .list-search {
    flex: 1 1 220px;
    min-width: 220px;
  }

  #root-clients-page .root-list-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, var(--epf-control-height));
    overflow: visible;
  }

  #root-clients-page .root-list-actions > .list-search {
    width: 100%;
    min-width: 0;
  }
}
