:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #6d7873;
  --line: #dfe6e2;
  --surface: #ffffff;
  --canvas: #f3f6f4;
  --forest-950: #0b1b16;
  --forest-900: #11251f;
  --forest-800: #1a382f;
  --green: #18a875;
  --green-soft: #e5f6ef;
  --lime: #a7d65b;
  --amber: #e9a23b;
  --amber-soft: #fff4dc;
  --red: #d65d5d;
  --red-soft: #ffebeb;
  --blue: #4c7f98;
  --shadow: 0 18px 55px rgba(14, 37, 29, 0.07);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 0%, rgba(167, 214, 91, 0.12), transparent 25rem),
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 0 32px;
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 33, 29, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--forest-900);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 20px rgba(17, 37, 31, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #486259;
  font-size: 13px;
  font-weight: 650;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(24, 168, 117, 0.11);
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--forest-800);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: #fff;
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.topbar-link,
.logout-button {
  border: 0;
  color: #51605a;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.topbar-link {
  padding: 9px 4px;
}

.topbar-link:hover {
  color: var(--forest-900);
}

.logout-button {
  padding: 9px 12px;
  border: 1px solid #d8e0dc;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.logout-button:hover {
  color: #8d3434;
  border-color: #eccaca;
  background: #fff7f7;
}

.logout-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

main {
  padding: 46px 0 28px;
}

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

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: #718078;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.heading-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.year-control {
  display: grid;
  gap: 7px;
  min-width: 150px;
}

.quality-range-control {
  min-width: 130px;
}

.year-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.year-control select {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 15px;
  border: 1px solid #d6dfda;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
  cursor: pointer;
}

.notice {
  margin-bottom: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 14px;
}

.error-notice {
  color: #7b2d2d;
  background: var(--red-soft);
  border: 1px solid #f1cccc;
}

.notice strong,
.notice p {
  display: block;
}

.notice p {
  margin: 3px 0 0;
  font-size: 13px;
}

.notice button {
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #a94040;
  font-weight: 700;
  cursor: pointer;
}

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

.kpi-card,
.panel {
  border: 1px solid rgba(23, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.kpi-card {
  position: relative;
  min-height: 224px;
  padding: 22px;
  overflow: hidden;
  border-radius: 18px;
}

.kpi-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--accent, var(--green));
}

.kpi-top,
.kpi-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-label {
  color: #52605a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpi-percent {
  padding: 6px 9px;
  border-radius: 999px;
  color: #11734f;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
}

.kpi-percent.warning {
  color: #966018;
  background: var(--amber-soft);
}

.kpi-percent.danger {
  color: #a64040;
  background: var(--red-soft);
}

.kpi-value {
  display: block;
  margin: 22px 0 7px;
  font-size: clamp(27px, 2.5vw, 37px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.kpi-comparison {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.kpi-comparison span,
.kpi-comparison strong,
.kpi-comparison small {
  display: block;
}

.kpi-comparison span {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kpi-comparison strong {
  color: var(--ink);
  font-size: 15px;
}

.kpi-comparison small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.kpi-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1ef;
}

.kpi-track span {
  display: block;
  height: 100%;
  width: min(var(--progress, 0%), 100%);
  border-radius: inherit;
  background: var(--accent, var(--green));
}

.kpi-bottom {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.kpi-bottom strong {
  color: var(--ink);
}

.closed-indicators {
  margin: 30px 0 22px;
}

.indicator-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
  padding: 0 2px;
}

.indicator-section-heading h2 {
  font-size: 20px;
}

.indicator-section-heading > span {
  padding: 7px 11px;
  border: 1px solid #cedbd5;
  border-radius: 999px;
  color: #4d6259;
  background: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 750;
}

.closed-kpi-grid {
  margin-bottom: 0;
}

.kpi-card.closed-period {
  color: #f5faf7;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 92% 0%, rgba(167, 214, 91, 0.12), transparent 48%),
    linear-gradient(155deg, #10241d, #19362d);
  box-shadow: 0 20px 48px rgba(11, 27, 22, 0.14);
}

.closed-period .kpi-label,
.closed-period .kpi-comparison,
.closed-period .kpi-comparison small,
.closed-period .kpi-bottom {
  color: #adbbb5;
}

.closed-period .kpi-value,
.closed-period .kpi-comparison strong,
.closed-period .kpi-bottom strong {
  color: #ffffff;
}

.closed-period .kpi-percent {
  color: #d8f4e8;
  background: rgba(24, 168, 117, 0.2);
}

.closed-period .kpi-percent.warning {
  color: #ffe1a8;
  background: rgba(233, 162, 59, 0.18);
}

.closed-period .kpi-percent.danger {
  color: #ffc4c4;
  background: rgba(214, 93, 93, 0.18);
}

.closed-period .kpi-track {
  background: rgba(255, 255, 255, 0.1);
}

.is-loading {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent),
    #e9eeeb;
  background-size: 220% 100%;
  animation: loading 1.25s infinite linear;
}

@keyframes loading {
  from { background-position: 180% 0; }
  to { background-position: -40% 0; }
}

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

.panel {
  min-width: 0;
  padding: 22px;
  border-radius: 18px;
}

.panel-wide {
  grid-column: span 2;
}

.panel-header {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-note {
  color: var(--muted);
  font-size: 11px;
}

.metric-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #f0f4f2;
}

.metric-tabs button {
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  color: #66726d;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.metric-tabs button.active {
  color: var(--forest-900);
  background: #fff;
  box-shadow: 0 2px 8px rgba(11, 27, 22, 0.08);
}

.chart-wrap {
  position: relative;
  height: 300px;
}

.chart-large {
  height: 350px;
}

.chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.status-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: #8c631c;
  background: var(--amber-soft);
  font-size: 11px;
  font-weight: 800;
}

.status-pill.closed {
  color: #11734f;
  background: var(--green-soft);
}

.snapshot-value {
  padding: 21px;
  border-radius: 15px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(167, 214, 91, 0.28), transparent 50%),
    var(--forest-900);
}

.snapshot-value span,
.snapshot-value strong {
  display: block;
}

.snapshot-value span {
  margin-bottom: 9px;
  color: #b6c8c0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.snapshot-value strong {
  font-size: 34px;
  letter-spacing: -0.045em;
}

.snapshot-list {
  margin: 18px 0 0;
}

.snapshot-list div {
  padding: 12px 2px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.snapshot-list div:last-child {
  border-bottom: 0;
}

.snapshot-list dt {
  color: var(--muted);
  font-size: 12px;
}

.snapshot-list dd {
  margin: 0;
  font-size: 12px;
  font-weight: 780;
}

.month-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.month-status {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafcfb;
}

.month-status strong,
.month-status span {
  display: block;
}

.month-status strong {
  margin-bottom: 5px;
  font-size: 11px;
  text-transform: uppercase;
}

.month-status span {
  color: var(--muted);
  font-size: 10px;
}

.month-status.closed {
  border-color: #bfe7d7;
  background: var(--green-soft);
}

.month-status.closed span {
  color: #11734f;
}

.month-status.pending {
  border-color: #eedaa9;
  background: var(--amber-soft);
}

.month-status.projected {
  border-color: #cbdde5;
  background: #eef5f8;
}

.month-status.projected span {
  color: #416f83;
}

.month-status.no-data {
  opacity: 0.55;
}

footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid rgba(23, 33, 29, 0.1);
  font-size: 11px;
}

.login-page {
  color: #f5faf7;
  background: var(--forest-950);
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.85fr);
  padding: 0;
}

.login-story {
  position: relative;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(8, 24, 19, 0.96), rgba(14, 50, 39, 0.82)),
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 42px
    );
}

.login-story::before,
.login-story::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.login-story::before {
  width: 38vw;
  height: 38vw;
  right: -10vw;
  bottom: -15vw;
  border: 1px solid rgba(167, 214, 91, 0.25);
  box-shadow:
    0 0 0 80px rgba(167, 214, 91, 0.035),
    0 0 0 160px rgba(167, 214, 91, 0.025);
}

.login-story::after {
  width: 190px;
  height: 190px;
  right: 12%;
  top: 20%;
  background: radial-gradient(circle, rgba(24, 168, 117, 0.22), transparent 67%);
}

.login-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  align-self: flex-start;
  color: #fff;
  text-decoration: none;
}

.login-brand .brand-mark {
  color: var(--forest-900);
  background: var(--lime);
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  font-size: 18px;
  letter-spacing: 0.14em;
}

.login-brand small {
  margin-top: 3px;
  color: #aebfb8;
  font-size: 11px;
}

.login-story-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: auto 0;
}

.login-story-copy .eyebrow {
  color: var(--lime);
}

.login-story-copy h1 {
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.login-story-copy > p:last-child {
  max-width: 500px;
  margin-bottom: 0;
  color: #b5c5bf;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
}

.login-story-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8fa59c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-story-meta span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.login-story-meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(167, 214, 91, 0.1);
}

.login-panel {
  min-height: 100vh;
  padding: 38px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 214, 91, 0.14), transparent 23rem),
    #f4f7f5;
}

.login-card {
  width: min(420px, 100%);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 90px rgba(11, 27, 22, 0.12);
}

.login-card-heading {
  margin-bottom: 30px;
}

.login-card-heading h2 {
  margin-bottom: 9px;
  font-size: 28px;
}

.login-card-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.login-lock {
  width: 48px;
  height: 48px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--forest-900);
  box-shadow: 0 12px 24px rgba(17, 37, 31, 0.16);
}

.login-lock svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

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

.login-field > span:first-child {
  color: #45534d;
  font-size: 12px;
  font-weight: 780;
}

.password-input {
  height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid #d4ddd8;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.password-input:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(24, 168, 117, 0.1);
}

.password-input input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 15px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.password-input button {
  height: 100%;
  padding: 0 14px;
  border: 0;
  color: #537066;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.remember-field {
  margin: 16px 0 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.remember-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.login-error {
  margin: 0 0 15px;
  padding: 11px 13px;
  border: 1px solid #efcccc;
  border-radius: 10px;
  color: #8f3333;
  background: var(--red-soft);
  font-size: 12px;
}

.login-submit {
  width: 100%;
  height: 52px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--forest-900);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 37, 31, 0.16);
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.login-submit b {
  font-size: 19px;
}

.login-support {
  margin: 20px 0 0;
  color: #7b8782;
  font-size: 11px;
}

.menu-page {
  background:
    radial-gradient(circle at 92% 6%, rgba(167, 214, 91, 0.16), transparent 27rem),
    linear-gradient(180deg, #eef3f0 0%, #f7f9f8 100%);
}

.menu-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.menu-main {
  flex: 1;
  padding-top: clamp(46px, 7vw, 88px);
}

.menu-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.menu-hero h1 {
  margin-bottom: 13px;
  font-size: clamp(38px, 5vw, 62px);
}

.menu-hero > div:first-child > p:last-child {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.menu-date {
  min-width: 145px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.menu-date strong {
  font-size: 30px;
  line-height: 1;
}

.menu-date span {
  max-width: 70px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: capitalize;
}

.dashboard-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 22px;
}

.menu-card {
  position: relative;
  height: 100%;
  min-height: 360px;
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(14, 37, 29, 0.08);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.menu-card::after {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  bottom: -120px;
  border-radius: 50%;
  content: "";
  background: var(--card-glow);
  transition: transform 220ms ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(14, 37, 29, 0.12);
}

.menu-card:hover::after {
  transform: scale(1.12);
}

.operations-card {
  --card-glow: rgba(24, 168, 117, 0.13);
}

.quality-card {
  --card-glow: rgba(128, 98, 164, 0.13);
}

.risk-card {
  --card-glow: rgba(169, 76, 76, 0.13);
}

.sgc-card {
  --card-glow: rgba(76, 127, 152, 0.14);
}

.sgi-card {
  --card-glow: rgba(200, 151, 58, 0.14);
}

.policy-card {
  --card-glow: rgba(35, 117, 91, 0.14);
}

.cost-card {
  --card-glow: rgba(68, 104, 133, 0.14);
}

.menu-card-index {
  position: absolute;
  top: 27px;
  right: 31px;
  color: #c4cdc9;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.menu-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: var(--forest-900);
}

.quality-card .menu-card-icon {
  background: #5f467c;
}

.risk-card .menu-card-icon {
  background: #a94c4c;
}

.sgc-card .menu-card-icon {
  background: #356b80;
}

.sgi-card .menu-card-icon {
  background: #9a7025;
}

.policy-card .menu-card-icon {
  background: #23755b;
}

.cost-card .menu-card-icon {
  background: #446885;
}

.menu-card-icon-glyph {
  font-size: 26px;
  font-weight: 900;
}

.menu-card-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-card-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.menu-card-copy p {
  margin-bottom: 10px;
  color: #738079;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.menu-card-copy h2 {
  max-width: 430px;
  margin-bottom: 13px;
  font-size: clamp(25px, 3vw, 38px);
}

.menu-card-copy span {
  max-width: 470px;
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.menu-card-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #405049;
  font-size: 12px;
  font-weight: 800;
}

.menu-card-action b {
  font-size: 21px;
}

.menu-help {
  margin-top: 25px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(23, 33, 29, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.menu-help strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.menu-help p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.quality-heading {
  align-items: flex-end;
}

.quality-filters {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.quality-view-switch {
  padding: 4px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  gap: 4px;
  border: 1px solid #d6dfda;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.quality-view-switch button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #68756f;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.quality-view-switch button.active {
  color: #fff;
  background: var(--forest-900);
  box-shadow: 0 6px 14px rgba(17, 37, 31, 0.16);
}

.quality-view-switch button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.period-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

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

.quality-kpi {
  position: relative;
  min-height: 222px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.quality-kpi::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--accent, var(--green));
}

.quality-kpi-label {
  display: block;
  margin-bottom: 20px;
  color: #52605a;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quality-kpi > strong {
  display: block;
  margin-bottom: 5px;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.quality-kpi > p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 11px;
}

.quality-kpi dl {
  margin: 0;
}

.quality-kpi dl div {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.quality-kpi dt,
.quality-kpi dd {
  font-size: 10px;
}

.quality-kpi dt {
  color: var(--muted);
}

.quality-kpi dd {
  margin: 0;
  font-weight: 800;
}

.granulometry-summary {
  display: grid;
  gap: 12px;
}

.granulometry-summary div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 9px;
}

.granulometry-summary i {
  width: 8px;
  height: 34px;
  border-radius: 5px;
  background: var(--segment);
}

.granulometry-summary span {
  color: var(--muted);
  font-size: 11px;
}

.granulometry-summary strong {
  font-size: 16px;
}

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

.quality-grid > .panel:last-child {
  grid-column: span 2;
}

.metric-unit {
  padding: 6px 9px;
  border-radius: 8px;
  color: #5b6c64;
  background: #edf2ef;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.quality-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

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

.quality-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--legend);
}

.panel-footnote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.insight-heading {
  margin-bottom: 22px;
}

.insight-filter-surface {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 45px rgba(14, 37, 29, 0.05);
}

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

.insight-filter-heading strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.insight-filter-heading span:not(.filter-badge) {
  color: var(--muted);
  font-size: 11px;
}

.filter-badge {
  padding: 6px 9px;
  border-radius: 8px;
  color: #4b6258;
  background: #e7f0eb;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

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

.sgi-filter-grid .company-control {
  min-width: 0;
}

.company-control {
  min-width: 220px;
}

.sgc-view-switch,
.sgi-view-switch {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.insight-kpi {
  min-height: 170px;
}

.insight-kpi > strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.insight-kpi > strong.compact-value {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
}

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

.chart-bars {
  height: 300px;
}

.chart-bars-wide {
  height: 350px;
}

.satisfaction-grid .chart-wrap {
  height: 350px;
}

.sgi-detail-section {
  margin-top: 30px;
}

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

.objective-chart-card {
  min-width: 0;
}

.objective-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.objective-chart-heading h3 {
  margin-top: 5px;
  font-size: 17px;
  line-height: 1.35;
}

.objective-frequency {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #4b6258;
  background: #e7f0eb;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.objective-chart-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}

.objective-chart-summary span {
  padding: 11px 12px;
  border: 1px solid #e4ebe7;
  border-radius: 12px;
  color: #44534c;
  background: #f7faf8;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.objective-chart-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.objective-chart-legend {
  justify-content: flex-start;
  margin-bottom: 4px;
}

.objective-chart-wrap {
  height: 285px;
}

.empty-detail {
  grid-column: 1 / -1;
  padding: 36px 24px;
  border: 1px dashed #cedbd5;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 12px;
}

.data-table-panel {
  padding: 0;
  overflow: hidden;
}

.data-table-panel .panel-header {
  padding: 22px 24px 16px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-top: 1px solid #e7ece9;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #69766f;
  background: #f5f8f6;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  color: #526059;
  line-height: 1.45;
}

.data-table td strong {
  color: #26332e;
  font-weight: 750;
}

.data-table tbody tr:hover {
  background: #fbfdfc;
}

.table-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #40564c;
  background: #e7f0eb;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.table-pill.is-complete {
  color: #0a704d;
  background: #dff5ea;
}

.table-pill.is-progress {
  color: #9a5327;
  background: #faeadf;
}

.table-pill.is-pending {
  color: #6b5c76;
  background: #eee8f3;
}

.empty-table-cell {
  padding: 28px !important;
  color: var(--muted) !important;
  text-align: center !important;
}

.policy-main {
  padding-top: 54px;
}

.policy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: stretch;
  gap: 24px;
  margin-bottom: 28px;
}

.policy-hero-copy,
.policy-document-card {
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: 0 24px 70px rgba(14, 37, 29, 0.07);
}

.policy-hero-copy {
  padding: clamp(34px, 5vw, 64px);
  background:
    radial-gradient(circle at 90% 15%, rgba(24, 168, 117, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.86);
}

.policy-hero-copy h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.policy-hero-copy > p:last-of-type {
  max-width: 720px;
  margin: 0;
  color: #526059;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.6;
}

.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.policy-primary-action,
.policy-secondary-action {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.policy-primary-action {
  color: #fff;
  border: 1px solid var(--forest-900);
  background: var(--forest-900);
  cursor: pointer;
}

.policy-primary-action span {
  font-size: 18px;
}

.policy-secondary-action {
  color: #29463a;
  border: 1px solid #c7d6cf;
  background: rgba(255, 255, 255, 0.7);
}

.policy-primary-action:hover,
.policy-secondary-action:hover {
  transform: translateY(-1px);
}

.policy-document-card {
  position: relative;
  min-height: 310px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #f6faf8;
  background:
    linear-gradient(145deg, rgba(17, 37, 31, 0.98), rgba(32, 88, 69, 0.96));
}

.policy-document-card::after {
  position: absolute;
  width: 240px;
  height: 240px;
  top: -100px;
  right: -90px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.policy-document-mark {
  position: absolute;
  top: 25px;
  left: 30px;
  color: rgba(255, 255, 255, 0.1);
  font-size: 150px;
  font-weight: 900;
  line-height: 1;
}

.policy-document-card > div,
.policy-current-badge {
  position: relative;
  z-index: 1;
}

.policy-document-card p {
  margin: 0 0 8px;
  color: #a8c7ba;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.policy-document-card strong {
  display: block;
  font-size: 38px;
}

.policy-document-card div > span {
  display: block;
  margin-top: 5px;
  color: #c8d8d1;
  font-size: 12px;
}

.policy-current-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #d9f4e8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-scope {
  padding: clamp(28px, 4vw, 46px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.policy-section-number {
  color: #cad5d0;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.policy-scope h2 {
  margin: 6px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.policy-scope p:last-child {
  max-width: 820px;
  margin: 0;
  color: #526059;
  font-size: 14px;
  line-height: 1.65;
}

.policy-scope-flow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.policy-scope-flow span {
  padding: 9px 11px;
  border-radius: 9px;
  color: #365247;
  background: #edf4f0;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.policy-scope-flow i {
  color: #91a29a;
  font-size: 13px;
  font-style: normal;
}

.policy-commitments {
  margin-top: 38px;
}

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

.policy-commitment-card {
  position: relative;
  min-height: 315px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(14, 37, 29, 0.05);
}

.policy-commitment-number {
  position: absolute;
  top: 24px;
  right: 25px;
  color: #c4cfca;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.policy-commitment-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #23755b;
  font-size: 18px;
  font-weight: 900;
}

.policy-commitment-card h3 {
  margin: 24px 0 12px;
  font-size: 21px;
  line-height: 1.18;
}

.policy-commitment-card p {
  margin: 0 0 22px;
  color: #5c6963;
  font-size: 12px;
  line-height: 1.65;
}

.policy-commitment-tag {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  color: #3a5d4e;
  background: #e8f2ed;
  font-size: 9px;
  font-weight: 800;
}

.policy-communication {
  margin-top: 28px;
  padding: clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  border-radius: 22px;
  color: #f5faf7;
  background:
    radial-gradient(circle at 85% 20%, rgba(76, 127, 152, 0.35), transparent 34%),
    var(--forest-900);
}

.policy-communication-mark {
  align-self: start;
  color: #5f8e7b;
  font-family: Georgia, serif;
  font-size: 70px;
  line-height: 0.85;
}

.policy-communication h2 {
  margin: 5px 0 9px;
  color: #fff;
  font-size: clamp(23px, 3vw, 34px);
}

.policy-communication p:last-child {
  max-width: 760px;
  margin: 0;
  color: #c4d5ce;
  font-size: 13px;
  line-height: 1.65;
}

.policy-signature {
  min-width: 180px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.policy-signature strong,
.policy-signature span {
  display: block;
}

.policy-signature strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.policy-signature span {
  color: #a9c2b8;
  font-size: 10px;
}

.policy-dialog {
  width: min(1180px, 96vw);
  height: min(92vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #eef2f0;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
}

.policy-dialog::backdrop {
  background: rgba(7, 17, 14, 0.72);
  backdrop-filter: blur(5px);
}

.policy-dialog-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.policy-dialog-header {
  min-height: 72px;
  padding: 14px 18px 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #f7faf8;
  background: var(--forest-900);
}

.policy-dialog-header p {
  margin: 0 0 4px;
  color: #9db9ad;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.policy-dialog-header strong {
  display: block;
  font-size: 13px;
}

.policy-dialog-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.policy-dialog-actions a,
.policy-dialog-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #eef7f3;
  background: rgba(255, 255, 255, 0.07);
}

.policy-dialog-actions a {
  padding: 0 12px;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.policy-dialog-actions button {
  width: 38px;
  font-size: 23px;
  cursor: pointer;
}

.policy-dialog iframe {
  width: 100%;
  flex: 1;
  border: 0;
  background: #dfe5e2;
}

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

.cost-filter-grid .company-control {
  min-width: 0;
}

.cost-insight-grid {
  grid-template-columns: 1fr;
}

.cost-chart-panel {
  grid-column: 1;
}

.cost-chart-wrap {
  height: 470px;
}

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

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

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

  .snapshot-panel {
    grid-column: span 1;
  }

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

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

  .policy-hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.48fr);
  }

  .policy-scope {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .policy-scope-flow {
    grid-column: 2;
    justify-content: flex-start;
  }

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

@media (max-width: 760px) {
  .app-shell {
    padding: 0 18px;
  }

  .connection-status {
    display: none;
  }

  .topbar-link {
    display: none;
  }

  main {
    padding-top: 30px;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .year-control {
    width: 100%;
  }

  .period-controls {
    width: 100%;
  }

  .quality-filters {
    width: 100%;
    justify-items: stretch;
  }

  .quality-view-switch {
    width: 100%;
  }

  .indicator-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .panel-wide,
  .snapshot-panel {
    grid-column: span 1;
  }

  .panel-header {
    flex-direction: column;
  }

  .metric-tabs {
    justify-content: flex-start;
  }

  .chart-wrap {
    height: 280px;
  }

  .chart-large {
    height: 330px;
  }

  .login-layout {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .login-story {
    min-height: 260px;
    padding: 28px;
  }

  .login-story-copy {
    margin: 55px 0 15px;
  }

  .login-story-copy h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .login-story-copy > p:last-child,
  .login-story-meta {
    display: none;
  }

  .login-panel {
    min-height: calc(100vh - 260px);
    padding: 28px 18px 42px;
    align-content: start;
  }

  .login-card {
    margin-top: -40px;
  }

  .menu-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-date {
    display: none;
  }

  .dashboard-menu,
  .quality-grid,
  .insight-grid,
  .objective-detail-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 330px;
  }

  .quality-grid .panel-wide,
  .quality-grid > .panel:last-child,
  .insight-grid .panel-wide {
    grid-column: span 1;
  }

  .risk-filter-grid,
  .sgc-filter-grid,
  .sgi-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-hero {
    grid-template-columns: 1fr;
  }

  .policy-document-card {
    min-height: 260px;
  }

  .policy-scope {
    grid-template-columns: 1fr;
  }

  .policy-section-number {
    display: none;
  }

  .policy-scope-flow {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .policy-communication {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .policy-signature {
    grid-column: 2;
    padding: 15px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 0;
  }

  .policy-dialog {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 10px 16px;
    border-top: 1px solid #e7ece9;
  }

  .data-table td {
    display: grid;
    grid-template-columns: minmax(90px, 0.35fr) 1fr;
    gap: 12px;
    padding: 7px 0;
    border: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: #78837e;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .data-table .empty-table-cell {
    display: block;
  }
}

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

  .quality-kpi-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    gap: 7px;
  }

  .logout-button {
    padding: 8px 9px;
    font-size: 10px;
  }

  .period-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .insight-filter-heading {
    align-items: flex-start;
  }

  .insight-filter-grid,
  .risk-filter-grid,
  .sgc-filter-grid,
  .satisfaction-filter-grid {
    grid-template-columns: 1fr;
  }

  .company-control {
    min-width: 0;
  }

  .sgc-view-switch,
  .sgi-view-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .policy-main {
    padding-top: 30px;
  }

  .policy-hero-copy {
    padding: 30px 24px;
  }

  .policy-hero-copy h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .policy-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .policy-commitment-grid {
    grid-template-columns: 1fr;
  }

  .policy-commitment-card {
    min-height: 0;
  }

  .policy-communication {
    grid-template-columns: 1fr;
  }

  .policy-communication-mark {
    display: none;
  }

  .policy-signature {
    grid-column: auto;
  }

  .policy-dialog-header strong {
    max-width: 210px;
  }

  .policy-dialog-actions a {
    display: none;
  }

  .cost-chart-wrap {
    height: 390px;
  }

  .objective-chart-heading {
    flex-direction: column;
  }

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

  .data-table td {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  footer {
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Portada ejecutiva SGI: estilos limitados exclusivamente al menú principal. */
.executive-menu {
  --executive-black: #0f0f0f;
  --executive-black-soft: #181713;
  --executive-gold: #d4af37;
  --executive-gold-soft: #b99532;
  --executive-ivory: #f5efe0;
  --executive-muted: #c8bfaa;
  color: var(--executive-ivory);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(212, 175, 55, 0.035) 50%, transparent 50.1%),
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 34rem),
    var(--executive-black);
  color-scheme: dark;
}

.executive-menu .menu-shell {
  position: relative;
  width: min(1580px, 100%);
  min-height: 100vh;
  padding-right: 42px;
  padding-left: 42px;
  background: rgba(15, 15, 15, 0.9);
}

.executive-menu .menu-shell::before {
  position: absolute;
  z-index: 0;
  inset: 18px 12px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  content: "";
  pointer-events: none;
}

.executive-menu .executive-topbar,
.executive-menu .menu-main,
.executive-menu footer {
  position: relative;
  z-index: 1;
}

.executive-menu .executive-topbar {
  min-height: 100px;
  border-bottom-color: rgba(212, 175, 55, 0.48);
}

.executive-brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.executive-logo {
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.58);
  background: var(--executive-ivory);
}

.executive-logo-vima {
  width: 128px;
  padding: 5px 12px;
}

.executive-logo-transportes {
  width: 150px;
  padding: 4px 11px;
}

.executive-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: grayscale(1) sepia(0.48) saturate(0.65) contrast(1.16);
}

.executive-brand-divider {
  width: 1px;
  height: 38px;
  background: rgba(212, 175, 55, 0.58);
}

.executive-brand-caption strong,
.executive-brand-caption small {
  display: block;
}

.executive-brand-caption strong {
  color: var(--executive-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.executive-brand-caption small {
  margin-top: 5px;
  color: var(--executive-muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.executive-menu .connection-status {
  color: var(--executive-ivory);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.executive-menu .status-dot {
  background: var(--executive-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.executive-menu .logout-button {
  padding: 10px 14px;
  border-color: rgba(212, 175, 55, 0.62);
  border-radius: 0;
  color: var(--executive-ivory);
  background: transparent;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.executive-menu .logout-button:hover {
  border-color: var(--executive-gold);
  color: var(--executive-gold);
  background: rgba(212, 175, 55, 0.07);
}

.executive-menu .menu-main {
  padding-top: 30px;
  padding-bottom: 34px;
}

.executive-menu .executive-hero {
  position: relative;
  min-height: clamp(440px, 42vw, 610px);
  margin-bottom: 42px;
  padding: clamp(48px, 7vw, 94px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.72);
  border-radius: 0;
  background-image:
    linear-gradient(90deg, rgba(15, 15, 15, 0.86) 0%, rgba(15, 15, 15, 0.58) 52%, rgba(15, 15, 15, 0.76) 100%),
    linear-gradient(180deg, rgba(15, 15, 15, 0.12) 0%, rgba(15, 15, 15, 0.74) 100%),
    url("/images/executive/planta-vima-aerea.jpg");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.executive-menu .executive-hero::before {
  position: absolute;
  z-index: -1;
  inset: 13px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  content: "";
  pointer-events: none;
}

.executive-menu .executive-hero::after {
  position: absolute;
  z-index: -1;
  width: min(780px, 78%);
  height: 62%;
  border: 1px solid rgba(212, 175, 55, 0.22);
  content: "";
  background: rgba(15, 15, 15, 0.3);
  pointer-events: none;
}

.executive-corner {
  position: absolute;
  z-index: 1;
  top: 31px;
  width: 70px;
  height: 70px;
  border-top: 2px solid var(--executive-gold);
}

.executive-corner::before,
.executive-corner::after {
  position: absolute;
  content: "";
  background: var(--executive-gold);
}

.executive-corner::before {
  top: 10px;
  width: 53px;
  height: 1px;
}

.executive-corner::after {
  top: 0;
  width: 1px;
  height: 53px;
}

.executive-corner-left {
  left: 31px;
  border-left: 2px solid var(--executive-gold);
}

.executive-corner-left::before,
.executive-corner-left::after {
  left: 10px;
}

.executive-corner-right {
  right: 31px;
  border-right: 2px solid var(--executive-gold);
}

.executive-corner-right::before {
  right: 10px;
}

.executive-corner-right::after {
  right: 10px;
}

.executive-hero-content {
  width: min(820px, 92%);
  padding: 35px 32px 31px;
  text-align: center;
}

.executive-menu .executive-hero .eyebrow {
  margin-bottom: 17px;
  color: var(--executive-gold);
  font-size: 10px;
  letter-spacing: 0.34em;
}

.executive-hero-rule {
  width: min(470px, 82%);
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  color: var(--executive-gold);
}

.executive-hero-rule span {
  height: 1px;
  background: var(--executive-gold);
}

.executive-hero-rule b {
  font-size: 8px;
}

.executive-menu .executive-hero h1 {
  margin: 0;
  color: var(--executive-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.executive-period {
  width: min(610px, 95%);
  margin: 23px auto 0;
  padding: 16px 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.72);
  border-bottom: 1px solid rgba(212, 175, 55, 0.72);
  color: var(--executive-gold);
  font-size: clamp(11px, 1.3vw, 16px);
  font-weight: 700;
  letter-spacing: 0.28em;
}

.executive-menu .executive-hero .executive-intro {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--executive-ivory);
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0.1em;
  line-height: 1.75;
  text-transform: uppercase;
}

.executive-messages {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 22px;
  color: var(--executive-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.executive-messages span + span::before {
  margin-right: 22px;
  color: var(--executive-gold);
  content: "◆";
  font-size: 6px;
}

.executive-menu .menu-date {
  position: absolute;
  right: 35px;
  bottom: 31px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--executive-gold);
  background: transparent;
}

.executive-menu .menu-date strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.executive-menu .menu-date span {
  max-width: 82px;
  color: var(--executive-ivory);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.executive-menu-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.42);
}

.executive-menu-heading .eyebrow {
  color: var(--executive-gold);
  letter-spacing: 0.25em;
}

.executive-menu-heading h2 {
  margin: 0 0 18px;
  color: var(--executive-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.executive-menu-heading > p {
  max-width: 430px;
  margin: 0 0 22px;
  color: var(--executive-muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-align: right;
  text-transform: uppercase;
}

.executive-menu .dashboard-menu {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.executive-menu .menu-card {
  grid-column: span 3;
  min-height: 320px;
  padding: 29px 27px 26px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 0;
  color: var(--executive-ivory);
  background:
    linear-gradient(145deg, rgba(245, 239, 224, 0.045), transparent 54%),
    rgba(15, 15, 15, 0.86);
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.executive-menu .menu-card:nth-child(n + 5) {
  grid-column: span 4;
}

.executive-menu .menu-card::before {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 25px;
  height: 25px;
  border-top: 1px solid var(--executive-gold);
  border-left: 1px solid var(--executive-gold);
  content: "";
}

.executive-menu .menu-card::after {
  width: 62px;
  height: 62px;
  right: -36px;
  bottom: -36px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg);
}

.executive-menu .menu-card:hover {
  transform: translateY(-3px);
  border-color: var(--executive-gold);
  background-color: rgba(212, 175, 55, 0.055);
  box-shadow: none;
}

.executive-menu .menu-card:hover::after {
  transform: rotate(45deg) scale(1.08);
}

.executive-menu .menu-card:focus-visible {
  outline: 2px solid var(--executive-gold);
  outline-offset: 4px;
}

.executive-menu .menu-card-index {
  top: 25px;
  right: 27px;
  color: var(--executive-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.executive-menu .menu-card-icon,
.executive-menu .quality-card .menu-card-icon,
.executive-menu .risk-card .menu-card-icon,
.executive-menu .sgc-card .menu-card-icon,
.executive-menu .sgi-card .menu-card-icon,
.executive-menu .policy-card .menu-card-icon,
.executive-menu .cost-card .menu-card-icon {
  width: 54px;
  height: 54px;
  border: 1px solid var(--executive-gold);
  border-radius: 50%;
  color: var(--executive-gold);
  background: rgba(15, 15, 15, 0.62);
}

.executive-menu .menu-card-icon-glyph {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.executive-menu .menu-card-copy {
  margin: 40px 0 30px;
}

.executive-menu .menu-card-copy p {
  margin-bottom: 12px;
  color: var(--executive-gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.55;
}

.executive-menu .menu-card-copy h2 {
  max-width: none;
  margin-bottom: 15px;
  color: var(--executive-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 1.7vw, 29px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.17;
  text-wrap: balance;
}

.executive-menu .sgc-card .menu-card-copy h2 {
  font-size: clamp(19px, 1.55vw, 25px);
}

.executive-menu .menu-card-copy span {
  max-width: 390px;
  color: var(--executive-muted);
  font-size: 10px;
  font-weight: 570;
  letter-spacing: 0.09em;
  line-height: 1.7;
  text-transform: uppercase;
}

.executive-menu .menu-card-action {
  padding-top: 15px;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--executive-gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.executive-menu .menu-card-action b {
  color: var(--executive-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
}

.executive-menu .menu-help {
  margin-top: 24px;
  padding: 19px 22px;
  border: 1px solid rgba(212, 175, 55, 0.36);
  border-radius: 0;
  background: rgba(15, 15, 15, 0.76);
}

.executive-help-mark {
  color: var(--executive-gold);
  font-size: 9px;
}

.executive-menu .menu-help strong {
  color: var(--executive-gold);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.executive-menu .menu-help p {
  color: var(--executive-muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-transform: uppercase;
}

.executive-menu footer {
  border-top-color: rgba(212, 175, 55, 0.4);
  color: var(--executive-muted);
  font-size: 8px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

@media (max-width: 1240px) {
  .executive-brand-caption {
    display: none;
  }

  .executive-menu .menu-card,
  .executive-menu .menu-card:nth-child(n + 5) {
    grid-column: span 4;
  }
}

@media (max-width: 920px) {
  .executive-menu .menu-shell {
    padding-right: 30px;
    padding-left: 30px;
  }

  .executive-logo-vima {
    width: 105px;
  }

  .executive-logo-transportes {
    width: 124px;
  }

  .executive-menu .executive-hero {
    min-height: 500px;
  }

  .executive-menu .menu-card,
  .executive-menu .menu-card:nth-child(n + 5) {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .executive-menu .menu-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .executive-menu .menu-shell::before {
    inset: 9px 7px;
  }

  .executive-menu .executive-topbar {
    min-height: 84px;
  }

  .executive-brand-lockup {
    gap: 7px;
  }

  .executive-logo {
    height: 42px;
  }

  .executive-logo-vima {
    width: 82px;
    padding: 5px 7px;
  }

  .executive-logo-transportes {
    width: 96px;
    padding: 4px 7px;
  }

  .executive-brand-divider,
  .executive-menu .connection-status {
    display: none;
  }

  .executive-menu .logout-button {
    padding: 9px 8px;
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .executive-menu .menu-main {
    padding-top: 20px;
  }

  .executive-menu .executive-hero {
    min-height: 470px;
    padding: 48px 24px;
  }

  .executive-menu .executive-hero::after {
    width: 88%;
    height: 68%;
  }

  .executive-corner {
    top: 24px;
    width: 46px;
    height: 46px;
  }

  .executive-corner-left {
    left: 24px;
  }

  .executive-corner-right {
    right: 24px;
  }

  .executive-corner::before {
    width: 34px;
  }

  .executive-corner::after {
    height: 34px;
  }

  .executive-hero-content {
    width: 100%;
    padding: 26px 10px;
  }

  .executive-menu .executive-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: 0.05em;
  }

  .executive-period {
    padding: 13px 5px;
    letter-spacing: 0.15em;
  }

  .executive-menu .executive-hero .executive-intro {
    font-size: 9px;
  }

  .executive-messages {
    gap: 8px;
  }

  .executive-messages span {
    width: 100%;
  }

  .executive-messages span + span::before {
    display: none;
  }

  .executive-menu-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .executive-menu-heading > p {
    margin-top: -7px;
    text-align: left;
  }

  .executive-menu .dashboard-menu {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .executive-menu .menu-card,
  .executive-menu .menu-card:nth-child(n + 5) {
    grid-column: span 12;
    min-height: 275px;
  }

  .executive-menu .menu-card-copy {
    margin: 32px 0 25px;
  }
}

@media (max-width: 390px) {
  .executive-logo-transportes {
    display: none;
  }

  .executive-menu .executive-hero {
    min-height: 450px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Gestión Flota Transportes Rinconada */
.fleet-card .menu-card-icon {
  color: #fff;
  background: linear-gradient(145deg, #1b5263, #2c7d77);
  font-size: 13px;
  letter-spacing: -0.03em;
}

.executive-menu .fleet-card .menu-card-icon {
  color: #17332d;
  background: rgba(35, 117, 91, 0.12);
}

.fleet-page {
  background:
    radial-gradient(circle at 92% 0%, rgba(76, 127, 152, 0.14), transparent 28rem),
    radial-gradient(circle at 5% 32%, rgba(24, 168, 117, 0.08), transparent 24rem),
    var(--canvas);
}

.fleet-brand .brand-mark {
  background: linear-gradient(145deg, #11251f, #2f6f77);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.fleet-heading {
  align-items: center;
}

.fleet-heading h1 {
  max-width: 900px;
}

.export-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #cbd9d3;
  border-radius: 11px;
  color: #1d4d40;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(17, 37, 31, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.export-button:hover {
  transform: translateY(-1px);
  border-color: #8fb9a8;
  background: #f8fffc;
}

.export-button:disabled {
  cursor: wait;
  opacity: 0.52;
  transform: none;
}

.export-button-primary {
  min-height: 48px;
  padding: 0 20px;
  border-color: var(--forest-900);
  color: #fff;
  background: var(--forest-900);
}

.export-button-primary:hover {
  color: #fff;
  border-color: var(--forest-800);
  background: var(--forest-800);
}

.fleet-filter-surface {
  margin-bottom: 18px;
}

.fleet-filter-grid {
  grid-template-columns: minmax(140px, 190px) minmax(170px, 220px) minmax(280px, 1fr);
}

.fleet-filter-note {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  text-align: right;
}

.fleet-filter-note strong,
.fleet-filter-note span {
  display: block;
}

.fleet-filter-note strong {
  color: var(--ink);
  font-size: 13px;
}

.fleet-filter-note span {
  max-width: 280px;
  font-size: 11px;
  line-height: 1.45;
}

.fleet-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.fleet-section-nav a {
  padding: 9px 13px;
  border: 1px solid #dce5e1;
  border-radius: 999px;
  color: #52625b;
  background: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.fleet-section-nav a:hover {
  color: #174b3d;
  border-color: #9cc8b7;
  background: #fff;
}

.fleet-kpi-grid {
  margin-bottom: 42px;
}

.fleet-report-section {
  scroll-margin-top: 18px;
  margin: 0 0 54px;
  padding-top: 4px;
}

.fleet-report-section + .fleet-report-section {
  padding-top: 42px;
  border-top: 1px solid rgba(23, 33, 29, 0.1);
}

.fleet-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.fleet-section-heading > div:first-child {
  max-width: 820px;
}

.fleet-section-heading h2 {
  margin-bottom: 7px;
  font-size: 27px;
}

.fleet-section-heading p:not(.panel-kicker) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.fleet-section-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.fleet-unit-control {
  min-width: 220px;
}

.fleet-factor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.fleet-dual-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.fleet-chart-panel,
.fleet-definition-panel {
  min-width: 0;
}

.fleet-factor-chart-wrap {
  height: 310px;
}

.fleet-ranking-chart-wrap {
  height: 360px;
}

.fleet-definition-panel {
  padding: 26px;
}

.fleet-definition-panel h2 {
  margin-bottom: 24px;
}

.fleet-summary-value {
  display: block;
  margin-bottom: 22px;
  color: var(--forest-800);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.fleet-summary-list {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
}

.fleet-summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #e8eeeb;
}

.fleet-summary-list dt {
  color: var(--muted);
  font-size: 12px;
}

.fleet-summary-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.fleet-empty-summary {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.fleet-table-panel {
  margin-top: 18px;
}

.fleet-table-panel .panel-header {
  align-items: center;
}

.table-count {
  padding: 7px 10px;
  border-radius: 999px;
  color: #52625b;
  background: #edf3f0;
  font-size: 11px;
  font-weight: 750;
}

.fleet-data-table {
  min-width: 940px;
}

.fleet-data-table th,
.fleet-data-table td {
  white-space: nowrap;
}

.fleet-rank {
  min-width: 33px;
  display: inline-flex;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 8px;
  color: #52625b;
  background: #edf2ef;
  font-size: 11px;
  font-weight: 850;
}

.fleet-rank.is-first {
  color: #765200;
  background: #fff0bc;
}

.fleet-rank.is-second {
  color: #52616b;
  background: #e8eef2;
}

.fleet-rank.is-third {
  color: #86532f;
  background: #f6dfcf;
}

.compact-ranking-panel {
  margin-top: 0;
}

.compact-ranking-panel .fleet-data-table {
  min-width: 660px;
}

.fleet-event-panel {
  margin-top: 18px;
}

.fleet-event-table {
  min-width: 1320px;
}

.fleet-event-table td {
  vertical-align: top;
}

.fleet-location-cell {
  min-width: 360px;
  max-width: 520px;
  white-space: normal !important;
  line-height: 1.45;
}

.speed-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 8px;
  color: #a23f3f;
  background: #ffebeb;
  font-size: 11px;
  font-weight: 850;
}

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

  .fleet-filter-note {
    grid-column: 1 / -1;
    justify-content: flex-start;
    text-align: left;
  }

  .fleet-factor-grid,
  .fleet-dual-chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .fleet-heading,
  .fleet-section-heading,
  .fleet-section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fleet-heading .export-button,
  .fleet-section-actions .export-button,
  .fleet-unit-control {
    width: 100%;
  }

  .fleet-filter-grid {
    grid-template-columns: 1fr;
  }

  .fleet-filter-note {
    grid-column: auto;
    display: block;
  }

  .fleet-filter-note span {
    margin-top: 5px;
  }

  .fleet-section-nav {
    flex-wrap: nowrap;
    padding-bottom: 5px;
    overflow-x: auto;
  }

  .fleet-section-nav a {
    flex: 0 0 auto;
  }

  .fleet-section-heading h2 {
    font-size: 24px;
  }

  .fleet-definition-panel {
    padding: 22px;
  }

  .fleet-factor-chart-wrap,
  .fleet-ranking-chart-wrap {
    height: 300px;
  }

  .fleet-data-table {
    min-width: 0;
  }

  .fleet-data-table td {
    white-space: normal;
  }

  .fleet-location-cell {
    min-width: 0;
    max-width: none;
  }
}

.menu-card.is-pending {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  filter: saturate(0.55);
}

.menu-card.is-pending .menu-card-action {
  opacity: 0.75;
}
