/* Shared Fire Monitor visual language; keep status meanings separate from accent. */
:root {
  --bg: #f4f5f7;
  --panel: #fff;
  --panel2: #edf0f4;
  --text: #17202d;
  --muted: #556171;
  --line: #c7ced8;
  --accent: #a93d0c;
  --accent2: #8e3209;
  --danger: #b51c30;
  --warn: #805200;
  --ok: #146b42;
  --on-accent: #fff;
}
:root.dark {
  --bg: #101317;
  --panel: #191d23;
  --panel2: #212730;
  --text: #edf0f4;
  --muted: #adb6c3;
  --line: #39414d;
  --accent: #ffad66;
  --accent2: #ffbf87;
  --danger: #ff7780;
  --warn: #ffc266;
  --ok: #6edba4;
  --on-accent: #201107;
}
a {
  color: var(--accent);
}
.primary {
  color: var(--on-accent);
}
button,
input,
select {
  min-height: 44px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
textarea:focus-visible,
.store-section:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 12px;
}
.store-tabs [aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.store-section[hidden] {
  display: none;
}
.store-section.panel {
  margin-top: 0;
}
.store-section .list {
  margin-top: 16px;
}
.metric {
  min-width: 0;
}
.metric b {
  overflow-wrap: anywhere;
}
.metric.value-text b {
  font-size: 21px;
  line-height: 1.35;
}
.panel + .panel {
  margin-top: 16px;
}
.logo .brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  border-radius: 10px;
}
.logo .brand-frame {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 10px;
}
.logo .brand-frame .brand-mark {
  border-radius: 0;
  transform: scale(1.35);
}
.badge.fault {
  color: var(--warn);
}
.badge.ok {
  color: var(--ok);
}
.badge.fire {
  color: var(--danger);
}
.modal-head button {
  min-width: 44px;
}
.list-item strong {
  overflow-wrap: anywhere;
}
@media (min-width: 721px) and (max-width: 1050px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar .logo div {
    font-size: 16px;
  }
  .sidebar nav button,
  .side-links a {
    font-size: 13px;
  }
  .sidebar nav button::first-letter,
  .side-links a::first-letter {
    font-size: inherit;
  }
  .topbar {
    height: auto;
    min-height: 100px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
  }
  .top-actions {
    flex-wrap: wrap;
  }
  .top-actions .user {
    display: none;
  }
}
@media (max-width: 720px) {
  .topbar {
    height: auto;
    min-height: 110px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
  }
  .top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .top-actions button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .sidebar nav button::first-letter {
    font-size: inherit;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contractor-card .stats {
    flex-wrap: wrap;
  }
  .metric {
    padding: 14px;
  }
  .metric.value-text b {
    font-size: 18px;
  }
}
/* Store service history; retain readable actions at exhibition/mobile widths. */
.visits-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.visit-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.visit-card h3 {
  margin: 0;
}
.visit-status {
  font-weight: 700;
}
.visit-act {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.visit-act small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 5px;
}
@media (max-width: 650px) {
  .visit-card {
    padding: 14px;
  }
  .visit-act {
    align-items: stretch;
    flex-direction: column;
  }
}
