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

.page-head-copy h2 {
  margin-top: 5px;
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.page-head-copy p:last-child {
  max-width: 640px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.page-kicker {
  color: var(--aqua-deep);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.page-actions .btn {
  min-height: 42px;
  padding: 0 15px;
  font-size: 12.5px;
}

.dash-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  min-height: 318px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 16%, rgba(79, 224, 210, 0.22), transparent 23%),
    radial-gradient(circle at 20% 110%, rgba(15, 169, 161, 0.22), transparent 42%),
    linear-gradient(128deg, #061c2b, #0a3143 60%, #0b4050);
  color: var(--white);
  box-shadow: 0 26px 60px rgba(4, 32, 45, 0.2);
}

.dash-hero::before {
  position: absolute;
  right: -100px;
  bottom: -190px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(126, 240, 226, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(126, 240, 226, 0.035), 0 0 0 96px rgba(126, 240, 226, 0.025), 0 0 0 144px rgba(126, 240, 226, 0.015);
  content: "";
  pointer-events: none;
}

.dash-hero::after {
  position: absolute;
  right: 18%;
  bottom: -86px;
  width: 580px;
  height: 150px;
  border-radius: 50%;
  border-top: 1px solid rgba(79, 224, 210, 0.2);
  transform: rotate(-4deg);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 3.5vw, 46px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(79, 224, 210, 0.18);
  border-radius: 99px;
  background: rgba(79, 224, 210, 0.07);
  color: var(--aqua-bright);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-kicker .live-dot {
  width: 6px;
  height: 6px;
  background: var(--aqua-bright);
  box-shadow: none;
}

.hero-copy h2 {
  max-width: 660px;
  margin: 16px 0 9px;
  font-size: clamp(33px, 3.8vw, 49px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-copy h2 span {
  color: var(--aqua-bright);
}

.hero-copy > p {
  max-width: 540px;
  color: rgba(227, 247, 248, 0.67);
  font-size: 12.5px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
}

.hero-actions .btn {
  min-height: 42px;
  font-size: 12px;
}

.btn-hero {
  background: var(--aqua-bright);
  color: var(--deep);
  box-shadow: 0 12px 28px rgba(79, 224, 210, 0.22);
}

.btn-hero:hover {
  background: #7aece1;
}

.btn-hero-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(240, 252, 252, 0.88);
}

.btn-hero-ghost:hover {
  border-color: rgba(79, 224, 210, 0.4);
  background: rgba(79, 224, 210, 0.08);
}

.hero-water {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 18px;
  padding: 22px;
  border: 1px solid rgba(175, 245, 236, 0.13);
  border-radius: 22px;
  background: rgba(4, 28, 40, 0.38);
  backdrop-filter: blur(14px);
}

.hero-water-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-water-head span {
  color: rgba(211, 242, 240, 0.52);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-water-head .badge {
  border: 1px solid rgba(79, 224, 210, 0.18);
  background: rgba(79, 224, 210, 0.13);
  color: var(--aqua-bright);
}

.hero-water-head .badge-warn {
  border-color: rgba(255, 192, 90, 0.2);
  background: rgba(239, 155, 36, 0.14);
  color: #ffd18a;
}

.hero-water-head .badge-danger {
  border-color: rgba(255, 140, 130, 0.2);
  background: rgba(217, 74, 74, 0.16);
  color: #ffb0a8;
}

.hero-water-head .badge-neutral {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(227, 247, 248, 0.7);
}

.hero-temperature {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin: 14px 0 4px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 65px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-temperature small {
  margin-top: 7px;
  color: rgba(219, 247, 244, 0.48);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(219, 247, 244, 0.58);
  font-size: 10.5px;
}

.hero-location .icon {
  width: 13px;
  height: 13px;
}

.hero-water-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.hero-mini-metric {
  padding: 11px 12px;
  border: 1px solid rgba(175, 245, 236, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-mini-metric span {
  display: block;
  color: rgba(211, 242, 240, 0.45);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-mini-metric strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-mini-metric strong small {
  color: rgba(219, 247, 244, 0.42);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
}

.hero-water-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: rgba(211, 242, 240, 0.42);
  font-size: 9.5px;
}

.hero-water-foot .icon {
  width: 12px;
  height: 12px;
}

.dash-section {
  margin-top: 18px;
}

.dash-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 10px;
}

.dash-section-head h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dash-section-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

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

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stat-card:hover {
  border-color: #c0ddda;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card::after {
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--aqua-wash);
  content: "";
  opacity: 0.65;
}

.stat-card[data-accent="danger"]::after {
  background: var(--danger-soft);
}

.stat-card[data-accent="amber"]::after {
  background: var(--amber-soft);
}

.stat-card[data-accent="blue"]::after {
  background: var(--blue-soft);
}

.stat-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stat-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--aqua-wash);
  color: var(--aqua-deep);
}

.stat-card[data-accent="danger"] .stat-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.stat-card[data-accent="amber"] .stat-icon {
  background: var(--amber-soft);
  color: #b37113;
}

.stat-card[data-accent="blue"] .stat-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.stat-icon .icon {
  width: 18px;
  height: 18px;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 8.5px;
  font-weight: 700;
}

.stat-trend.is-warn {
  background: var(--amber-soft);
  color: #b37113;
}

.stat-trend .icon {
  width: 10px;
  height: 10px;
}

.stat-value {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-value.is-money {
  padding-top: 4px;
  font-size: clamp(19px, 1.8vw, 23px);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.stat-label {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.stat-link {
  position: absolute;
  right: 15px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  transition: all var(--transition);
}

.stat-link .icon {
  width: 12px;
  height: 12px;
}

.stat-link:hover {
  border-color: var(--aqua);
  background: var(--aqua-wash);
  color: var(--aqua-deep);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.chart-panel {
  display: flex;
  min-height: 312px;
  flex-direction: column;
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 21px 0;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9.5px;
}

.legend-swatch {
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--aqua);
}

.legend-swatch.alt {
  background: var(--coral);
}

.chart-range {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.chart-range span {
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 700;
}

.chart-range .is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.chart-canvas {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 14px 14px;
}

.chart-svg {
  width: 100%;
  height: 174px;
  overflow: visible;
}

.chart-grid-line {
  stroke: #e7efee;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #93a8aa;
  font-family: var(--font-sans);
  font-size: 8.5px;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.chart-area {
  opacity: 0.14;
}

.chart-dot {
  stroke: var(--surface);
  stroke-width: 2;
}

.chart-empty {
  display: grid;
  height: 190px;
  place-items: center;
  color: var(--muted-2);
  font-size: 11px;
}

.chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 21px 18px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.chart-foot strong {
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0;
}

.focus-panel {
  min-height: 312px;
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 19px 19px;
}

.focus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  transition: all var(--transition);
}

.focus-item:hover {
  border-color: #b9dbd7;
  background: var(--surface);
}

.focus-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
}

.focus-icon.is-warn {
  background: var(--amber-soft);
  color: #b37113;
}

.focus-icon.is-info {
  background: var(--blue-soft);
  color: var(--blue);
}

.focus-icon .icon {
  width: 15px;
  height: 15px;
}

.focus-copy {
  min-width: 0;
  flex: 1;
}

.focus-copy strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-copy span {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-item .badge {
  min-height: 21px;
  font-size: 8.5px;
}

.focus-clear {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.focus-clear .focus-clear-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--success-soft);
  color: var(--success);
}

.focus-clear strong {
  color: var(--ink);
  font-size: 13px;
}

.focus-clear span {
  max-width: 240px;
  font-size: 10.5px;
}

.mini-list {
  display: flex;
  flex-direction: column;
  padding: 10px 19px 17px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 51px;
  padding: 7px 0;
  border-bottom: 1px solid #edf3f2;
}

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

.mini-row-date {
  display: grid;
  width: 34px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
}

.mini-row-date strong {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: -0.03em;
}

.mini-row-copy {
  min-width: 0;
  flex: 1;
}

.mini-row-copy strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-row-copy span {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-row .badge {
  min-height: 21px;
  font-size: 8.5px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  padding: 4px 20px 20px;
}

.activity-item {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 10px 0;
}

.activity-item:not(:last-child)::before {
  position: absolute;
  top: 36px;
  bottom: -2px;
  left: 14px;
  width: 1px;
  background: var(--line);
  content: "";
}

.activity-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 29px;
  height: 29px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--aqua-wash);
  color: var(--aqua-deep);
}

.activity-icon .icon {
  width: 13px;
  height: 13px;
}

.activity-copy {
  min-width: 0;
  flex: 1;
}

.activity-copy strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.activity-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.activity-time {
  flex: none;
  color: var(--muted-2);
  font-size: 8.5px;
  white-space: nowrap;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.quick-action:hover {
  border-color: var(--aqua);
  background: var(--aqua-wash);
  transform: translateY(-1px);
}

.quick-action-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--aqua-wash);
  color: var(--aqua-deep);
}

.quick-action-icon .icon {
  width: 15px;
  height: 15px;
}

.quick-action span {
  display: block;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
}

.quick-action small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8.5px;
}

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

.kpi-card {
  display: flex;
  min-height: 102px;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.kpi-top span {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kpi-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  background: var(--aqua-wash);
  color: var(--aqua-deep);
}

.kpi-icon .icon {
  width: 14px;
  height: 14px;
}

.kpi-value {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.kpi-value small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.kpi-card.is-warn {
  border-color: #f0ddbb;
  background: linear-gradient(150deg, #fffdf8, var(--surface));
}

.kpi-card.is-danger {
  border-color: #f3d1d1;
  background: linear-gradient(150deg, #fffafa, var(--surface));
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.toolbar-label {
  color: var(--muted);
  font-size: 10.5px;
}

.search-field {
  position: relative;
  flex: 1 1 210px;
  max-width: 340px;
}

.search-field .icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field .input {
  height: 39px;
  padding-left: 35px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 12px;
}

.toolbar .select {
  width: auto;
  min-width: 142px;
  height: 39px;
  border-radius: 10px;
  background-color: var(--surface);
  font-size: 10.5px;
}

.toolbar .chip {
  min-height: 35px;
  background: var(--surface);
}

.toolbar-spacer {
  flex: 1;
}

.result-count {
  color: var(--muted-2);
  font-size: 9.5px;
  white-space: nowrap;
}

.table-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.table-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.table-panel-head h3 {
  font-size: 14px;
  font-weight: 600;
}

.table-panel-head span {
  color: var(--muted);
  font-size: 10px;
}

.table-wrap {
  overflow-x: auto;
}

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

.data-table th {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfb;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #edf3f2;
  color: var(--ink-soft);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition);
}

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

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-main {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.cell-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.value-strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.row-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 7px;
  place-items: center;
  border-radius: 8px;
  background: var(--aqua-wash);
  color: var(--aqua-deep);
  vertical-align: middle;
}

.row-icon .icon {
  width: 13px;
  height: 13px;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
}

.mini-button {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  transition: all var(--transition);
}

.mini-button:hover {
  border-color: var(--aqua);
  color: var(--aqua-deep);
}

.mini-button .icon {
  width: 13px;
  height: 13px;
}

.mini-button.is-labeled {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.service-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.table-note {
  display: block;
  max-width: 210px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: #c0ddda;
  box-shadow: var(--shadow-sm);
}

.service-date {
  display: grid;
  width: 42px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.service-date strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.service-main {
  min-width: 0;
}

.service-main strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-main span {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-side {
  display: flex;
  min-width: 74px;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.service-side .badge {
  min-height: 22px;
  font-size: 8.5px;
}

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

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

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

.stock-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stock-card.is-low {
  border-color: #f0d4b2;
  background: linear-gradient(150deg, #fffdf8, var(--surface));
}

.stock-card.is-empty {
  border-color: #f2cccc;
  background: linear-gradient(150deg, #fffafa, var(--surface));
}

.stock-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.stock-card-top strong {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.stock-card-top .badge {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 8px;
}

.stock-numbers {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 12px;
}

.stock-numbers strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stock-numbers span {
  color: var(--muted);
  font-size: 9px;
}

.stock-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.stock-bar {
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9f0ef;
}

.stock-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--aqua-bright));
}

.stock-card.is-low .stock-bar span {
  background: linear-gradient(90deg, #e99222, #ffc05a);
}

.stock-card.is-empty .stock-bar span {
  background: linear-gradient(90deg, #d94a4a, #f0786d);
}

.stock-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #edf3f2;
}

.stock-card-foot span {
  color: var(--muted-2);
  font-size: 8.5px;
}

.stock-adjust {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--aqua-deep);
  font-size: 8.5px;
  font-weight: 600;
}

.stock-adjust .icon {
  width: 11px;
  height: 11px;
}

.chemical-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-card .stat-icon {
  width: 35px;
  height: 35px;
}

.summary-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.summary-copy span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.kanban-col {
  min-height: 260px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #edf4f3;
}

.kanban-col[data-status="U tijeku"] {
  background: #fbf5e9;
}

.kanban-col[data-status="Otklonjen"] {
  background: #eef7f3;
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 6px 9px;
}

.kanban-head h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
}

.kanban-head h3::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.kanban-col[data-status="U tijeku"] .kanban-head h3::before {
  background: var(--amber);
}

.kanban-col[data-status="Otklonjen"] .kanban-head h3::before {
  background: var(--success);
}

.kanban-count {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.kanban-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--aqua);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.kanban-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.kanban-card[data-priority="Visok"],
.kanban-card[data-priority="Kritičan"] {
  border-left-color: var(--coral);
}

.kanban-card[data-priority="Nizak"] {
  border-left-color: #a7c9c5;
}

.kanban-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.kanban-card-top strong {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.kanban-card-top .badge {
  min-height: 19px;
  padding: 2px 6px;
  font-size: 7.5px;
}

.kanban-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 7px 0 9px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kanban-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  color: var(--muted);
  font-size: 8.5px;
}

.kanban-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.kanban-meta .icon {
  width: 10px;
  height: 10px;
}

.kanban-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #edf3f2;
}

.kanban-note {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-size: 8px;
}

.kanban-status-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--aqua-deep);
  font-size: 8.5px;
  font-weight: 700;
}

.kanban-status-button .icon {
  width: 11px;
  height: 11px;
}

.kanban-empty {
  display: grid;
  min-height: 95px;
  place-items: center;
  padding: 18px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted-2);
  font-size: 9.5px;
  text-align: center;
}

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

.detail-block {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.detail-block span {
  display: block;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-block strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.detail-block.is-wide {
  grid-column: 1 / -1;
}

.detail-block p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.radio-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.radio-option:has(input:checked) {
  border-color: var(--aqua);
  background: var(--aqua-wash);
  color: var(--aqua-deep);
}

.radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-dot {
  width: 11px;
  height: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.radio-option:has(input:checked) .radio-dot {
  border: 3px solid var(--aqua);
  background: var(--white);
}

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

.help-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.help-card.is-featured {
  background:
    radial-gradient(circle at 100% 0, rgba(79, 224, 210, 0.16), transparent 44%),
    linear-gradient(145deg, #082b3d, #061d2d);
  color: var(--white);
}

.help-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--aqua-wash);
  color: var(--aqua-deep);
}

.help-card.is-featured .help-icon {
  background: rgba(79, 224, 210, 0.12);
  color: var(--aqua-bright);
}

.help-icon .icon {
  width: 17px;
  height: 17px;
}

.help-card h3 {
  margin-top: 13px;
  font-size: 14px;
  font-weight: 600;
}

.help-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.help-card.is-featured p {
  color: rgba(227, 247, 248, 0.6);
}

.help-card:not(.help-wide) .threshold-grid {
  grid-template-columns: 1fr;
}

.help-card ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.help-card li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.help-card.is-featured li {
  color: rgba(227, 247, 248, 0.65);
}

.help-card li::before {
  width: 4px;
  height: 4px;
  flex: none;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
}

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

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

.threshold-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.threshold-row strong {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.threshold-row span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.threshold-row .panel-link {
  flex: none;
  font-size: 9.5px;
}

.threshold-row > div {
  min-width: 0;
}

.modal-inline-form {
  margin-top: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.faq-item summary {
  padding: 11px 13px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.faq-item p {
  padding: 0 13px 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #cfe6e2;
  border-radius: 12px;
  background: var(--aqua-wash);
  color: var(--aqua-deep);
  font-size: 10.5px;
  line-height: 1.5;
}

.info-banner .icon {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
}

.badge-muted {
  background: var(--surface-soft);
  color: var(--muted);
}

.btn-small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 9.5px;
}

.mini-row.is-urgent,
.focus-item.is-urgent,
.service-card.is-urgent {
  border-color: #efb9b2;
  background: linear-gradient(135deg, #fff7f5, var(--surface));
  animation: urgent-blink 1.5s ease-in-out infinite;
}

.mini-row.is-urgent .badge,
.service-card.is-urgent .badge {
  border-color: transparent !important;
  background: var(--danger) !important;
  color: var(--white) !important;
}

@keyframes urgent-blink {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(214, 69, 53, 0);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(214, 69, 53, 0.12);
  }
}

.alarm-panel {
  border-color: #efc4be;
}

.alarm-panel .panel-title {
  color: var(--danger);
}

.alarm-panel .focus-list {
  gap: 8px;
}

.focus-item.alarm-item {
  border-color: #e7a9a1;
  background: linear-gradient(135deg, #fff8f6, #fff0ed);
  animation: alarm-blink 1.15s ease-in-out infinite;
}

.focus-item.alarm-item:hover {
  border-color: var(--danger);
  background: #ffe9e5;
}

.focus-item.alarm-item .focus-icon {
  background: #fde2df;
  color: var(--danger);
}

.focus-item.alarm-item .focus-copy strong {
  color: #9f211a;
}

.alarm-badge {
  border-color: transparent !important;
  background: var(--danger) !important;
  color: var(--white) !important;
}

@keyframes alarm-blink {
  0%, 45% {
    border-color: #e7a9a1;
    background: linear-gradient(135deg, #fff8f6, #fff0ed);
    box-shadow: 0 0 0 0 rgba(217, 74, 74, 0);
  }
  50%, 100% {
    border-color: var(--danger);
    background: #ffe4df;
    box-shadow: 0 0 0 4px rgba(217, 74, 74, 0.14);
  }
}

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

.pool-chart-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pool-chart-card.is-watch {
  border-color: #efd7b4;
}

.pool-chart-card.is-alert {
  border-color: #efb9b2;
  background: linear-gradient(145deg, #fff8f6, var(--surface));
}

.pool-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pool-chart-kicker {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pool-chart-head h4 {
  margin-top: 3px;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pool-chart-head .badge {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 7.5px;
}

.pool-chart-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.pool-chart-metrics span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  padding: 6px 7px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.pool-chart-metrics small {
  color: var(--muted-2);
  font-size: 8px;
}

.pool-chart-metrics strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pool-chart-canvas {
  display: flex;
  min-height: 96px;
  flex: 1;
  align-items: flex-end;
  margin-top: 7px;
}

.pool-chart-canvas .chart-svg,
.chart-svg.is-compact {
  height: 96px;
}

.pool-chart-empty {
  display: flex;
  min-height: 88px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 9px;
  text-align: center;
}

.pool-chart-empty .icon {
  width: 18px;
  height: 18px;
  color: var(--aqua);
}

.pool-chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #edf3f2;
  color: var(--muted-2);
  font-size: 8.5px;
}

.pool-chart-foot .is-warn {
  color: #b37113;
  font-weight: 600;
}

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

.user-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.user-card.is-inactive {
  background: var(--surface-soft);
  opacity: 0.78;
}

.user-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: var(--aqua-wash);
  color: var(--aqua-deep);
  font-size: 11px;
  font-weight: 700;
}

.user-card-name {
  min-width: 0;
  flex: 1;
}

.user-card-name strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-name .badge {
  margin-top: 3px;
  min-height: 19px;
  padding: 2px 6px;
  font-size: 7.5px;
}

.user-card-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.user-card-status span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.user-card-status .is-ok {
  background: var(--success-soft);
  color: var(--success);
}

.user-card-status .is-off {
  background: var(--danger-soft);
  color: var(--danger);
}

.right-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.right-chip {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 600;
}

.right-chip.is-finance {
  border-color: #c8e3df;
  background: var(--aqua-wash);
  color: var(--aqua-deep);
}

.right-chip.is-muted {
  color: var(--muted-2);
  font-weight: 500;
}

.user-card-foot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #edf3f2;
  color: var(--muted-2);
  font-size: 8.5px;
}

.user-card-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.user-card-foot .icon {
  width: 11px;
  height: 11px;
}

.user-note {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.right-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  cursor: pointer;
}

.right-option:has(input:checked) {
  border-color: #b9dbd7;
  background: var(--aqua-wash);
}

.right-option input {
  margin-top: 2px;
  accent-color: var(--aqua);
}

.right-option span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.right-option strong {
  font-size: 9.5px;
  font-weight: 600;
}

.right-option small {
  color: var(--muted);
  font-size: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: var(--ink-soft);
  font-size: 10px;
}

.toggle-row input {
  accent-color: var(--aqua);
}

.help-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
}

.help-card-head h3 {
  margin-top: 0;
}

.help-empty {
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

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

  .dash-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  }

  .span-7,
  .span-5,
  .span-8,
  .span-4 {
    grid-column: span 6;
  }

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

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

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

@media (max-width: 960px) {
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }

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

  .hero-water {
    margin-top: 0;
  }

  .chart-panel,
  .focus-panel {
    min-height: auto;
  }

  .dash-grid {
    gap: 11px;
  }

  .span-7,
  .span-5,
  .span-8,
  .span-4,
  .span-6,
  .span-12 {
    grid-column: span 12;
  }

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

  .kanban-col {
    min-height: auto;
  }

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

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

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

  .data-table {
    min-width: 680px;
  }
}

@media (max-width: 680px) {
  .page-head {
    margin-bottom: 14px;
  }

  .page-head-copy h2 {
    font-size: 27px;
  }

  .page-head-copy p:last-child {
    font-size: 11.5px;
  }

  .dash-hero {
    min-height: auto;
    border-radius: 24px;
  }

  .hero-copy {
    padding: 23px 20px 16px;
  }

  .hero-copy h2 {
    margin-top: 13px;
    font-size: 34px;
  }

  .hero-copy > p {
    font-size: 11.5px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-actions .btn {
    flex: 1;
    padding: 0 11px;
    font-size: 10.5px;
  }

  .hero-water {
    margin: 0 10px 10px;
    padding: 17px;
    border-radius: 18px;
  }

  .hero-temperature {
    font-size: 50px;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-card {
    min-height: 126px;
    padding: 13px;
    border-radius: 15px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
  }

  .stat-value {
    margin-top: 10px;
    font-size: 26px;
  }

  .stat-label {
    font-size: 9.5px;
  }

  .quick-strip {
    grid-template-columns: 1fr 1fr;
  }

  .quick-action {
    min-height: 54px;
    padding: 8px 9px;
  }

  .quick-action span {
    font-size: 9.5px;
  }

  .chart-head {
    padding: 16px 15px 0;
  }

  .chart-canvas {
    padding: 5px 7px 9px;
  }

  .chart-svg {
    height: 145px;
  }

  .chart-foot {
    padding: 0 15px 14px;
  }

  .focus-list,
  .mini-list,
  .activity-list {
    padding-right: 14px;
    padding-left: 14px;
  }

  .kpi-grid {
    gap: 7px;
    margin-bottom: 11px;
  }

  .kpi-card {
    min-height: 94px;
    padding: 12px;
  }

  .kpi-value {
    font-size: 23px;
  }

  .toolbar {
    gap: 7px;
  }

  .search-field {
    max-width: none;
    flex-basis: 100%;
  }

  .toolbar .select {
    flex: 1;
    min-width: 0;
  }

  .toolbar-spacer {
    display: none;
  }

  .result-count {
    width: 100%;
  }

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

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

  .kanban-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
  }

  .service-date {
    width: 38px;
    height: 42px;
  }

  .service-side {
    grid-column: 2;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

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

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

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

  .detail-block.is-wide {
    grid-column: auto;
  }

  .table-panel-head {
    padding: 13px 14px;
  }

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

  .data-table thead {
    display: none;
  }

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

  .data-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
  }

  .data-table tr:last-child {
    border-bottom: 0;
  }

  .data-table td {
    padding: 0;
    border: 0;
  }

  .data-table td::before {
    display: block;
    margin-bottom: 2px;
    color: var(--muted-2);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .data-table td.is-main-cell {
    grid-column: 1 / -1;
  }

  .data-table td.is-main-cell::before {
    display: none;
  }

  .table-actions {
    justify-content: flex-start;
  }

  .table-note {
    max-width: none;
    white-space: normal;
  }

  .empty-row {
    display: block !important;
    padding: 30px 16px !important;
  }

  .empty-row::before {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quick-strip {
    grid-template-columns: 1fr;
  }

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

  .stat-card {
    min-height: 112px;
  }

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

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

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

@media (max-width: 680px) {
  .pool-chart-grid {
    grid-template-columns: 1fr;
  }

  .pool-chart-canvas .chart-svg,
  .chart-svg.is-compact {
    height: 104px;
  }

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

  .user-card {
    padding: 13px;
  }

  .help-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mini-row.is-urgent,
  .focus-item.is-urgent,
  .service-card.is-urgent {
    animation: none;
  }
}

@media print {
  .sidebar,
  .topbar,
  .bottom-nav,
  .drawer-backdrop,
  .page-head .page-actions,
  .toolbar,
  .toast-root,
  .loading-overlay {
    display: none !important;
  }

  body,
  .app-shell,
  .app-main,
  .page-root {
    display: block !important;
    background: #fff !important;
  }

  .page-root {
    padding: 0 !important;
  }

  .table-panel,
  .panel {
    border: 0 !important;
    box-shadow: none !important;
  }

  .data-table th,
  .data-table td {
    font-size: 10px !important;
  }
}
