:root {
  --page: #e9f5fa;
  --page-soft: #f4fafc;
  --surface: #ffffff;
  --surface-alt: #f7fbfc;
  --line: #d5e7e9;
  --ink: #173a3e;
  --muted: #637d81;
  --blue: #0799d0;
  --blue-deep: #0679ae;
  --teal: #078f87;
  --teal-bright: #13b5a4;
  --green: #28764f;
  --green-soft: #e5f3ec;
  --amber: #a7670d;
  --amber-soft: #fff2dd;
  --red: #b34d48;
  --red-soft: #fbeceb;
  --shadow: 0 10px 26px rgba(20, 78, 93, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background-color: var(--page);
  background-image: linear-gradient(rgba(16, 112, 140, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 112, 140, 0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  font-family: "Manrope", sans-serif;
}

body {
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 142, 160, 0.28);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 24px;
  background: rgba(14, 47, 57, 0.42);
  backdrop-filter: blur(3px);
}

.login-panel {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.login-panel .eyebrow {
  margin-bottom: 7px;
  color: var(--teal);
}

.login-panel h1 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.login-copy {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

.login-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--ink);
}

.login-message {
  min-height: 1.25rem;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.login-message.is-error {
  color: var(--red);
}

.login-button {
  width: 100%;
}

.login-secondary-button {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  width: min(1680px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100vh;
  padding: 24px 15px 18px;
  color: #ffffff;
  background-color: var(--blue);
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: 3px 0 18px rgba(10, 93, 128, 0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 7px 12px;
}

.brand-logo-frame {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.brand h1 {
  margin: 0;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #e4f7fc;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-item:hover,
.nav-item.active {
  border-color: #ffffff;
  color: var(--blue-deep);
  background: #ffffff;
}

.sidebar-account {
  display: grid;
  gap: 6px;
  padding: 0 7px;
}

.sidebar-account span {
  overflow-wrap: anywhere;
  color: #e4f7fc;
  font-size: 0.72rem;
}

.sidebar-account button {
  justify-content: center;
  cursor: pointer;
}

.sidebar-card {
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  background: rgba(0, 91, 144, 0.2);
}

.sidebar-card h3 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 1.15rem;
}

.card-label {
  margin: 0;
  color: #d8f1f8;
  font-size: 0.72rem;
  line-height: 1.5;
}

.main-panel {
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 40px) 32px;
  background: rgba(244, 250, 252, 0.74);
}

.topbar {
  position: relative;
  display: flex;
  min-height: 146px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 23px 26px;
  border-radius: 10px;
  color: #ffffff;
  background-color: var(--teal);
  background-image: linear-gradient(112deg, #087f79 0%, #079d94 56%, #12b7a5 100%),
    radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: auto, 14px 14px;
  box-shadow: 0 11px 24px rgba(0, 127, 117, 0.16);
}

.topbar::after {
  position: absolute;
  top: -80px;
  right: -44px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.035), 0 0 0 42px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.topbar > div:first-child,
.topbar-actions {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 6px;
  color: #d7f4ee;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.58rem;
  font-weight: 800;
  line-height: 1.3;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-button,
.primary-button,
.segment {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #c5dfe3;
  border-radius: 6px;
  color: #25606b;
  background: #ffffff;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.ghost-button:hover {
  border-color: #91c6d4;
  background: #eef9fb;
}

.primary-button {
  border-color: #087f79;
  color: #ffffff;
  background: #078f87;
}

.primary-button:hover {
  border-color: #06756f;
  background: #06756f;
}

.topbar .ghost-button {
  border-color: rgba(255, 255, 255, 0.62);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.topbar .ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.topbar .primary-button {
  border-color: #ffffff;
  color: #087c75;
  background: #ffffff;
}

.topbar .primary-button:hover {
  border-color: #e6f8f3;
  background: #e6f8f3;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 17px;
}

.stat-card {
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card.highlight {
  border-color: #b9e4d8;
  background: #e1f6ef;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.stat-card h3 {
  margin: 14px 0 10px;
  color: #087d76;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.8rem;
  font-weight: 600;
}

.mini-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid #e2eeee;
  color: var(--muted);
  font-size: 0.73rem;
}

.mini-grid strong {
  color: #266b62;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}

.trend {
  padding: 4px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
}

.trend.positive,
.status.success {
  color: #256a45;
  background: #e4f4e9;
}

.trend.neutral {
  color: #086f91;
  background: #e1f3fa;
}

.trend.negative,
.status.pending {
  color: #95600c;
  background: var(--amber-soft);
}

.status.failed {
  color: #a83d3a;
  background: var(--red-soft);
}

.sparkline {
  position: relative;
  width: 100%;
  height: 38px;
  overflow: hidden;
  border-radius: 5px;
  background: #f0f8f8;
}

.sparkline::before {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  content: "";
  opacity: 0.9;
}

.sparkline-a::before {
  background-image: linear-gradient(180deg, transparent 0 80%, rgba(0, 143, 135, 0.1) 80% 100%),
    linear-gradient(135deg, rgba(7, 153, 208, 0.12), rgba(7, 153, 208, 0.86));
  clip-path: polygon(0 70%, 12% 58%, 24% 64%, 35% 32%, 48% 50%, 61% 18%, 74% 26%, 85% 6%, 100% 16%, 100% 100%, 0 100%);
}

.sparkline-b::before {
  background: linear-gradient(130deg, rgba(40, 130, 86, 0.12), rgba(40, 130, 86, 0.86));
  clip-path: polygon(0 80%, 14% 72%, 25% 76%, 36% 50%, 48% 62%, 60% 38%, 74% 41%, 88% 14%, 100% 24%, 100% 100%, 0 100%);
}

.sparkline-c::before {
  background: linear-gradient(130deg, rgba(205, 149, 48, 0.12), rgba(205, 149, 48, 0.88));
  clip-path: polygon(0 70%, 16% 64%, 28% 58%, 40% 44%, 52% 48%, 63% 24%, 78% 28%, 90% 16%, 100% 18%, 100% 100%, 0 100%);
}

.sparkline-d::before {
  background: linear-gradient(130deg, rgba(183, 77, 72, 0.1), rgba(183, 77, 72, 0.82));
  clip-path: polygon(0 78%, 15% 68%, 30% 70%, 46% 62%, 60% 72%, 74% 64%, 88% 74%, 100% 78%, 100% 100%, 0 100%);
}

.content-grid,
.bottom-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.95fr;
  gap: 14px;
  margin-top: 16px;
}

.panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header h3 {
  margin: 0;
  color: #19484b;
  font-size: 1rem;
  font-weight: 800;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #d5e6e8;
  border-radius: 6px;
  background: #f3f9fa;
}

.segment {
  min-height: 29px;
  padding: 5px 9px;
  border-color: transparent;
  border-radius: 4px;
  color: #57777b;
  background: transparent;
  font-size: 0.75rem;
}

.segment.active {
  color: #08778e;
  background: #dff2f9;
}

.chart-area {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 6px;
  background: #f8fcfc;
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(35, 111, 128, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 111, 128, 0.055) 1px, transparent 1px);
  background-size: 20% 25%;
}

.bars {
  position: absolute;
  inset: 18px 18px 10px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.bar {
  flex: 1;
  height: var(--height);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #0b9c94, #61c49d);
}

.goal-list {
  display: grid;
  gap: 16px;
}

.goal-item {
  display: grid;
  gap: 9px;
}

.goal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.goal-meta span {
  line-height: 1.4;
}

.goal-meta strong {
  color: #117767;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
}

.goal-item small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4eef0;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #07948b, #4ab88a);
}

.donut-wrap {
  display: grid;
  place-items: center;
  margin-top: 22px;
}

.donut-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(#07948b 0 58%, #e5eff1 58% 76%, #d4a144 76% 100%);
}

.donut-chart::before {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: #ffffff;
  content: "";
}

.donut-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.donut-center strong {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.8rem;
}

.donut-center span {
  color: var(--muted);
  font-size: 0.78rem;
}

.table-panel table {
  width: 100%;
  border-collapse: collapse;
}

.table-panel th,
.table-panel td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table-panel th {
  color: #417178;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.table-panel tbody tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  min-width: 64px;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
}

.status.success {
  color: #246b47;
  background: #e5f4e9;
}

.status.pending {
  color: #92600d;
  background: #fff2dc;
}

.status.failed {
  color: #ad443f;
  background: #fbeceb;
}

.activity-list {
  display: grid;
  gap: 16px;
}

.activity-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: start;
  gap: 11px;
  padding: 0 2px;
}

.dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
}

.dot.green { background: var(--green); }
.dot.blue { background: var(--blue); }
.dot.purple { background: #9b7154; }
.dot.orange { background: #d49a32; }

.activity-item strong {
  display: block;
  margin-bottom: 4px;
  color: #214d4c;
  font-size: 0.9rem;
}

.activity-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.activity-item span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  white-space: nowrap;
}

.maintenance-view {
  display: grid;
  gap: 14px;
}

.database-notice {
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #b8e3d2;
  border-radius: 6px;
  color: #256a45;
  background: #e6f5ec;
  font-size: 0.77rem;
  line-height: 1.5;
}

.database-notice.database-connected {
  color: #256a45;
  background: #e6f5ec;
  border-color: #b8e3d2;
}

.maintenance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.maintenance-summary .stat-card {
  min-height: 136px;
}

.maintenance-summary .stat-card h3 {
  margin-bottom: 9px;
}

.maintenance-summary .progress-track {
  margin-top: 15px;
}

.maintenance-panel {
  min-width: 0;
  padding: 18px 18px 14px;
}

.maintenance-heading {
  align-items: end;
}

.result-count {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.maintenance-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 250px) minmax(150px, 190px);
  gap: 9px;
  margin-bottom: 15px;
}

.maintenance-filters input,
.maintenance-filters select,
.form-field input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #c9e0e5;
  border-radius: 6px;
  color: var(--ink);
  background: #fbfeff;
  font: inherit;
}

.maintenance-filters input::placeholder,
.form-field input::placeholder {
  color: #7f989d;
}

.maintenance-filters option {
  color: var(--ink);
  background: #ffffff;
}

.maintenance-table-wrap {
  max-height: min(66vh, 720px);
  overflow: auto;
  border: 1px solid #d2e4e8;
  border-radius: 6px;
}

.maintenance-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
}

.maintenance-table th,
.maintenance-table td {
  padding: 10px 11px;
  border-bottom: 1px solid #e3edef;
  text-align: left;
  vertical-align: top;
  font-size: 0.75rem;
}

.maintenance-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #176875;
  background: #e4f4f7;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.maintenance-table tbody tr:nth-child(even) {
  background: #f8fcfd;
}

.maintenance-table tbody tr:hover {
  background: #e8f7f8;
}

.maintenance-table tbody tr:last-child td {
  border-bottom: 0;
}

.maintenance-table .bay-cell {
  min-width: 230px;
  color: #365b60;
}

.maintenance-table .status {
  min-width: 62px;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
}

.delete-row-button {
  padding: 5px 8px;
  border: 1px solid #efcecb;
  border-radius: 5px;
  color: #a8403c;
  background: #fff7f6;
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.delete-row-button:hover {
  background: #fbe9e7;
}

.delete-row-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.database-required {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.table-message {
  padding: 28px !important;
  color: var(--muted);
  text-align: center !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.target-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(90vh, 760px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.target-dialog::backdrop {
  background: rgba(17, 68, 77, 0.34);
  backdrop-filter: blur(2px);
}

.target-dialog .panel-header {
  margin-bottom: 18px;
}

.dialog-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
}

.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  color: #4e6c71;
  font-size: 0.8rem;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note {
  margin: 4px 0 17px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.app-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding: 12px 2px 0;
  border-top: 1px solid var(--line);
  color: #738b8f;
  font-size: 0.7rem;
}

.app-footer strong {
  color: #087f78;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px 14px;
    border-bottom: 1px solid #b8dce7;
    box-shadow: 0 3px 12px rgba(10, 86, 125, 0.12);
  }

  .brand {
    gap: 8px;
    padding: 0 2px 2px;
  }

  .brand-logo-frame {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 6px;
  }

  .brand h1 {
    font-size: 0.85rem;
  }

  .nav {
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav-item {
    min-height: 33px;
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .sidebar-card {
    display: none;
  }

  .main-panel {
    padding: 16px 12px 24px;
    background: rgba(244, 250, 252, 0.8);
  }

  .topbar {
    min-height: 130px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 18px 15px;
  }

  .topbar h2 {
    font-size: 1.17rem;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions button {
    flex: 1;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .maintenance-summary .stat-card {
    min-height: 112px;
    padding: 11px 8px;
  }

  .maintenance-summary .stat-header {
    display: grid;
    justify-content: start;
    gap: 4px;
    font-size: 0.64rem;
  }

  .maintenance-summary .stat-card h3 {
    margin: 8px 0 5px;
    font-size: 1.15rem;
  }

  .maintenance-summary .mini-grid {
    display: none;
  }

  .maintenance-summary .progress-track {
    margin-top: 8px;
  }

  .maintenance-panel {
    padding: 13px 10px 9px;
  }

  .maintenance-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .maintenance-filters {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .maintenance-filters .search-field {
    grid-column: 1 / -1;
  }

  .app-footer {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .maintenance-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
