/* Soundview Pulse — client dashboard prototype */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Public Sans', sans-serif;
  color: #3b4552;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; background: none; padding: 0; }

/* ===== APP SHELL ===== */

.app-shell {
  display: grid;
  grid-template-columns: 208px 1fr;
  min-height: 100vh;
  background: #fff;
}

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

.screen[hidden] { display: none; }

/* ===== SIDEBAR ===== */

.sidebar {
  background: #f6f8fb;
  border-right: 1px solid #e9ecf0;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 18px;
  cursor: pointer;
}

.sidebar-logo-mark {
  width: 24px;
  height: 24px;
  background: #2f62c4;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px 'Space Grotesk', sans-serif;
  color: #fff;
}

.sidebar-logo-text {
  font: 700 15px 'Space Grotesk', sans-serif;
  color: #0d1520;
}

/* demo self-identification — the demo is un-gated, so it must always say so */
.sidebar-demo-badge {
  display: block;
  margin: 0 18px 12px;
  padding: 6px 10px;
  border: 1px dashed #c9d4e6;
  border-radius: 6px;
  background: #f4f7fc;
  font: 600 9.5px 'IBM Plex Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #5b6672;
  text-align: center;
  white-space: nowrap;
}

.sidebar-demo-badge:hover {
  border-color: #2f62c4;
  color: #2f62c4;
}

.sidebar-nav-item {
  font: 600 13px 'Public Sans', sans-serif;
  padding: 10px 18px;
  cursor: pointer;
  display: block;
  color: #5b6672;
  background: transparent;
  border-right: 2px solid transparent;
}

.sidebar-nav-item:hover {
  background: #eef1f6;
}

.sidebar-nav-item--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-nav-item--active {
  color: #2f62c4;
  background: #eaf0fb;
  border-right: 2px solid #2f62c4;
}

.sidebar-nav-item--active:hover {
  background: #eaf0fb;
}

.sidebar-nav-badge {
  font: 600 11px 'Public Sans', sans-serif;
  color: #fff;
  background: #2f62c4;
  border-radius: 10px;
  padding: 1px 7px;
}

.sidebar-nav-badge--warn {
  color: #8a5b00;
  background: #fdf1d7;
}

.sidebar-nav-soon {
  font: 500 13px 'Public Sans', sans-serif;
  color: #b3bac2;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-nav-soon-tag {
  font: 500 9px 'IBM Plex Mono', monospace;
  color: #b3bac2;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid #e9ecf0;
}

.sidebar-footer-name {
  font: 600 12.5px 'Public Sans', sans-serif;
  color: #0d1520;
}

.sidebar-footer-org {
  font: 400 11.5px 'Public Sans', sans-serif;
  color: #8a94a1;
}

.sidebar-signout {
  display: inline-block;
  margin-top: 10px;
  font: 400 11.5px 'Public Sans', sans-serif;
  color: #8a94a1;
  cursor: pointer;
}

.sidebar-signout:hover {
  color: #0d1520;
}

/* ===== SHARED PRIMITIVES ===== */

.btn-primary {
  font: 600 13px 'Public Sans', sans-serif;
  color: #fff;
  background: #2f62c4;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
}

.inert-action { cursor: pointer; transition: opacity .12s ease; }
.inert-action:hover { opacity: .78; }

.status-pill {
  font: 600 11px 'Public Sans', sans-serif;
  padding: 3px 10px;
  border-radius: 12px;
}

.status-pill--flagged { color: #a13c1f; background: #fbe9e2; }
.status-pill--due { color: #8a5b00; background: #fdf1d7; }
.status-pill--healthy { color: #1d7a4f; background: #e4f2ea; }
.status-pill--watch { color: #8a5b00; background: #fdf1d7; }

.table-showall {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 20px;
  border-top: 1px solid #f0f2f5;
  font: 500 12px 'Public Sans', sans-serif;
  color: #2f62c4;
  cursor: pointer;
}

.breadcrumb-link { cursor: pointer; color: #5b6672; }
.breadcrumb-sep { color: #dfe4ea; }

.condition-bar {
  display: inline-block;
  width: 72px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--bar-color) 0 var(--pct), #f0f2f5 var(--pct) 100%);
}

/* ===== DASHBOARD ===== */

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid #e9ecf0;
}

.dash-search {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 13px 'Public Sans', sans-serif;
  color: #8a94a1;
  border: 1px solid #e9ecf0;
  border-radius: 8px;
  padding: 8px 14px;
  width: 320px;
}

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

.flag-pill {
  font: 600 12.5px 'Public Sans', sans-serif;
  color: #a13c1f;
  background: #fbe9e2;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.flag-pill:hover { background: #f6dfd6; }

.avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf0fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 12px 'Space Grotesk', sans-serif;
  color: #2f62c4;
}

.dash-content { padding: 24px 28px; }

.dash-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.dash-title {
  font: 700 22px 'Space Grotesk', sans-serif;
  color: #0d1520;
  letter-spacing: -.01em;
}

.dash-updated {
  font: 400 12px 'IBM Plex Mono', monospace;
  color: #8a94a1;
}

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

.kpi-card {
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  padding: 16px 18px;
  display: block;
}

.kpi-card--link { cursor: pointer; }
.kpi-card--link:hover { border-color: #2f62c4; }

.kpi-label { font: 400 12px 'Public Sans', sans-serif; color: #8a94a1; }
.kpi-value { font: 700 26px 'Space Grotesk', sans-serif; color: #0d1520; }
.kpi-sub { font: 500 11.5px 'Public Sans', sans-serif; margin-top: 2px; }
.kpi-sub--positive { color: #1d7a4f; }
.kpi-sub--neutral { color: #5b6672; }
.kpi-sub--warn { color: #8a5b00; }

.dash-panels {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.panel {
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  padding: 16px 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.panel-title { font: 600 13.5px 'Public Sans', sans-serif; color: #0d1520; }
.panel-title-standalone { font: 600 13.5px 'Public Sans', sans-serif; color: #0d1520; margin-bottom: 8px; }
.panel-link { font: 600 12px 'Public Sans', sans-serif; color: #2f62c4; cursor: pointer; }

.attn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #f0f2f5;
}

.attn-row--link {
  padding: 10px 8px;
  margin: 0 -8px;
  cursor: pointer;
  border-radius: 6px;
}

.attn-row--link:hover { background: #f6f8fb; }

.attn-title { font: 500 13px 'Public Sans', sans-serif; color: #0d1520; }
.attn-sub { font: 400 11.5px 'Public Sans', sans-serif; color: #8a94a1; }
.attn-badge { font: 600 11px 'Public Sans', sans-serif; padding: 4px 10px; border-radius: 12px; }
.attn-badge--action { color: #a13c1f; background: #fbe9e2; }
.attn-badge--due { color: #8a5b00; background: #fdf1d7; }
.attn-badge--review { color: #fff; background: #2f62c4; }

.week-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f0f2f5;
  align-items: center;
}

.week-row--link {
  padding: 10px 8px;
  margin: 0 -8px;
  cursor: pointer;
  border-radius: 6px;
}

.week-row--link:hover { background: #f6f8fb; }

.week-date { text-align: center; width: 40px; }
.week-day { font: 600 10px 'Public Sans', sans-serif; color: #8a94a1; }
.week-num { font: 700 17px 'Space Grotesk', sans-serif; color: #0d1520; }
.week-info { flex: 1; }
.week-name { font: 500 12.5px 'Public Sans', sans-serif; color: #0d1520; }
.week-loc { font: 400 11px 'Public Sans', sans-serif; color: #8a94a1; }
.week-status { font: 600 10.5px 'Public Sans', sans-serif; padding: 3px 9px; border-radius: 12px; }
.week-status--onsite { color: #1d7a4f; background: #e4f2ea; }
.week-status--time { color: #5b6672; background: #f0f2f5; }

.bldg-table {
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  overflow: hidden;
}

.bldg-table-head,
.bldg-row {
  display: grid;
  grid-template-columns: 2fr .7fr .9fr .8fr 1fr .9fr;
}

.bldg-table-head {
  padding: 10px 20px;
  background: #f6f8fb;
  font: 600 11px 'Public Sans', sans-serif;
  color: #8a94a1;
  letter-spacing: .04em;
}

.bldg-row {
  padding: 12px 20px;
  border-top: 1px solid #f0f2f5;
  font: 400 13px 'Public Sans', sans-serif;
  color: #3b4552;
  align-items: center;
  cursor: pointer;
}

.bldg-row:hover,
.bldg-row--hover:hover { background: #f6f8fb; }

.bldg-name { font-weight: 500; color: #0d1520; }

/* ===== WORK ORDERS ===== */

.wo-screen {
  display: grid;
  grid-template-columns: 1fr 460px;
  min-height: 100vh;
}

.wo-list-col { border-right: 1px solid #e9ecf0; }

.wo-list-header { padding: 20px 24px 0; }

.wo-list-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.wo-list-title { font: 700 20px 'Space Grotesk', sans-serif; color: #0d1520; }

.wo-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  font: 600 12.5px 'Public Sans', sans-serif;
}

.wo-filter { padding: 7px 14px; border-radius: 16px; cursor: pointer; }
.wo-filter--active { color: #fff; background: #0d1520; }
.wo-filter--inactive { color: #5b6672; border: 1px solid #e9ecf0; }

.wo-item { padding: 14px 24px; cursor: pointer; border-top: 1px solid #f0f2f5; }
.wo-item--hover:hover { background: #f6f8fb; }

.wo-item--active {
  background: #eaf0fb;
  border-top: 1px solid #e9ecf0;
  border-left: 3px solid #2f62c4;
}

.wo-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wo-item-id { font: 600 11px 'IBM Plex Mono', monospace; color: #8a94a1; }
.wo-item-id--active { color: #2f62c4; }

.wo-status-chip { font: 600 10.5px 'Public Sans', sans-serif; padding: 3px 9px; border-radius: 12px; }
.wo-status-chip--onsite { color: #1d7a4f; background: #e4f2ea; }
.wo-status-chip--scheduled { color: #5b6672; background: #f0f2f5; }
.wo-status-chip--parts { color: #8a5b00; background: #fdf1d7; }
.wo-status-chip--completed { color: #1d7a4f; background: #e4f2ea; }

.wo-item-title { font: 600 13.5px 'Public Sans', sans-serif; color: #0d1520; margin-top: 4px; }
.wo-item-meta { font: 400 11.5px 'Public Sans', sans-serif; color: #5b6672; }

.wo-detail { background: #f6f8fb; padding: 22px 24px; }

.wo-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.wo-detail-id { font: 600 11px 'IBM Plex Mono', monospace; color: #8a94a1; }
.wo-detail-title { font: 700 19px 'Space Grotesk', sans-serif; color: #0d1520; margin-top: 4px; }
.wo-detail-loc { font: 400 12.5px 'Public Sans', sans-serif; color: #2f62c4; cursor: pointer; display: inline-block; margin-top: 2px; }

.wo-card {
  background: #fff;
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 14px;
}

.timeline-item { display: flex; gap: 12px; align-items: flex-start; }
.timeline-item--first { padding-bottom: 12px; }
.timeline-item--mid {
  padding-bottom: 12px;
  border-left: 2px solid #e4f2ea;
  margin-left: 4px;
  padding-left: 14px;
  margin-top: -8px;
  padding-top: 8px;
}
.timeline-item--last {
  border-left: 2px solid #e4f2ea;
  margin-left: 4px;
  padding-left: 14px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1d7a4f;
  margin-top: 3px;
  flex: none;
  box-shadow: 0 0 0 3px #e4f2ea;
}

.timeline-title { font: 600 12.5px 'Public Sans', sans-serif; color: #0d1520; }
.timeline-sub-title { font: 500 12.5px 'Public Sans', sans-serif; color: #5b6672; }
.timeline-time { font: 400 11px 'IBM Plex Mono', monospace; color: #8a94a1; }

.tech-card {
  background: #fff;
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.tech-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaf0fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 13px 'Space Grotesk', sans-serif;
  color: #2f62c4;
}

.tech-info { flex: 1; }
.tech-name { font: 600 13px 'Public Sans', sans-serif; color: #0d1520; }
.tech-meta { font: 400 11.5px 'Public Sans', sans-serif; color: #8a94a1; }

.btn-message {
  font: 600 12px 'Public Sans', sans-serif;
  color: #2f62c4;
  border: 1px solid #dfe4ea;
  padding: 7px 13px;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.notes-card {
  background: #fff;
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 12px;
}

.notes-title { font: 600 12.5px 'Public Sans', sans-serif; color: #0d1520; margin-bottom: 8px; }
.notes-text { font: 400 12.5px/1.6 'Public Sans', sans-serif; color: #5b6672; }
.notes-photos { display: flex; gap: 8px; margin-top: 12px; }

.photo-placeholder {
  width: 86px;
  height: 60px;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 6px, #e4e8ee 6px, #e4e8ee 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 8.5px 'IBM Plex Mono', monospace;
  color: #8a94a1;
  text-align: center;
}

.billing-card {
  background: #fff;
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 12px;
  cursor: pointer;
  display: block;
}

.billing-card:hover { border-color: #2f62c4; }

.billing-row {
  display: flex;
  justify-content: space-between;
  font: 400 12.5px 'Public Sans', sans-serif;
  color: #5b6672;
}

.billing-amount { font: 600 13px 'Space Grotesk', sans-serif; color: #0d1520; }
.billing-sub { font: 400 11px 'Public Sans', sans-serif; color: #8a94a1; margin-top: 2px; }

/* ===== INVOICE ===== */

.inv-screen {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 100vh;
}

.inv-main { padding: 22px 28px; overflow-x: auto; }

.breadcrumb { font: 400 12px 'Public Sans', sans-serif; color: #8a94a1; margin-bottom: 14px; }
.breadcrumb-current { font-family: 'IBM Plex Mono', monospace; color: #5b6672; }

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

.inv-amount-row { display: flex; align-items: center; gap: 12px; }
.inv-amount { font: 700 26px 'Space Grotesk', sans-serif; color: #0d1520; letter-spacing: -.01em; }

.inv-status-pill { font: 600 11px 'Public Sans', sans-serif; padding: 4px 11px; border-radius: 12px; }
.inv-status-pill--pending { color: #8a5b00; background: #fdf1d7; }
.inv-status-pill--approved { color: #1d7a4f; background: #e4f2ea; }

.inv-meta { font: 400 13px 'Public Sans', sans-serif; color: #5b6672; margin-top: 6px; }
.inv-po { font: 400 11.5px 'IBM Plex Mono', monospace; color: #8a94a1; }

.inv-table {
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  overflow: hidden;
  min-width: 640px;
}

.inv-table-head,
.inv-row {
  display: grid;
  grid-template-columns: 2.2fr .9fr .6fr .7fr .8fr;
}

.inv-table-head {
  padding: 10px 20px;
  background: #f6f8fb;
  font: 600 10.5px 'Public Sans', sans-serif;
  color: #8a94a1;
  letter-spacing: .04em;
}

.align-right { text-align: right; }

.inv-row {
  padding: 13px 20px;
  border-top: 1px solid #f0f2f5;
  font: 400 13px 'Public Sans', sans-serif;
  color: #3b4552;
  align-items: center;
}

.inv-item-name { font-weight: 500; color: #0d1520; }
.inv-wo-link { font: 500 11px 'IBM Plex Mono', monospace; color: #2f62c4; cursor: pointer; }
.inv-wo-plain { font: 500 11px 'IBM Plex Mono', monospace; color: #2f62c4; }
.inv-amount-cell { text-align: right; font-weight: 600; color: #0d1520; }

.verify-row {
  background: #f6f8fb;
  border-top: 1px solid #f0f2f5;
  padding: 12px 20px 14px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.verify-body { flex: 1; }
.verify-label { font: 600 11px 'Public Sans', sans-serif; color: #8a94a1; letter-spacing: .04em; margin-bottom: 6px; }
.verify-text { font: 400 12px/1.55 'Public Sans', sans-serif; color: #5b6672; }
.verify-photos { display: flex; gap: 6px; }

.verify-photo {
  width: 64px;
  height: 46px;
  border-radius: 5px;
  background: repeating-linear-gradient(45deg, #e8ecf2, #e8ecf2 6px, #dde3eb 6px, #dde3eb 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 8px 'IBM Plex Mono', monospace;
  color: #8a94a1;
}

.inv-totals-row {
  border-top: 1px solid #e9ecf0;
  background: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
}

.inv-totals { width: 260px; }

.inv-total-line {
  display: flex;
  justify-content: space-between;
  font: 400 12.5px 'Public Sans', sans-serif;
  color: #5b6672;
  padding: 3px 0;
}

.inv-total-line--grand {
  font: 700 15px 'Space Grotesk', sans-serif;
  color: #0d1520;
  padding: 8px 0 0;
  border-top: 1px solid #e9ecf0;
  margin-top: 6px;
}

.inv-side {
  background: #f6f8fb;
  border-left: 1px solid #e9ecf0;
  padding: 22px;
}

.approve-card,
.approved-card {
  background: #fff;
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  padding: 18px;
}

.approve-title { font: 600 13.5px 'Public Sans', sans-serif; color: #0d1520; margin-bottom: 6px; }
.approve-desc { font: 400 12px/1.55 'Public Sans', sans-serif; color: #5b6672; margin-bottom: 14px; }

.btn-approve {
  display: block;
  width: 100%;
  font: 600 13.5px 'Public Sans', sans-serif;
  color: #fff;
  background: #2f62c4;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

.btn-approve:hover { background: #2a58b0; }

.btn-question {
  display: block;
  width: 100%;
  font: 600 12.5px 'Public Sans', sans-serif;
  color: #5b6672;
  padding: 11px;
  text-align: center;
  border: 1px solid #e9ecf0;
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
}

.export-line {
  font: 500 11.5px 'Public Sans', sans-serif;
  color: #8a94a1;
  text-align: center;
  margin-top: 10px;
}

.approved-card {
  background: #e4f2ea;
  border: 1px solid #bfe0cd;
  text-align: center;
}

.approved-title { font: 700 15px 'Space Grotesk', sans-serif; color: #1d7a4f; margin-bottom: 4px; }
.approved-desc { font: 400 12px/1.55 'Public Sans', sans-serif; color: #3b4552; }
.approved-export { font: 500 11.5px 'Public Sans', sans-serif; color: #1d7a4f; margin-top: 10px; cursor: pointer; }

.audit-section { margin-top: 18px; }
.audit-title { font: 600 12.5px 'Public Sans', sans-serif; color: #0d1520; margin-bottom: 10px; }

.audit-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #e9ecf0;
}

.audit-date { font: 400 10.5px 'IBM Plex Mono', monospace; color: #8a94a1; width: 52px; flex: none; }
.audit-date--now { color: #1d7a4f; }
.audit-text { font: 400 12px/1.5 'Public Sans', sans-serif; color: #5b6672; }
.audit-text--now { color: #0d1520; font-weight: 500; }

.why-card {
  margin-top: 16px;
  background: #eaf0fb;
  border-radius: 10px;
  padding: 14px 16px;
}

.why-title { font: 600 12px 'Public Sans', sans-serif; color: #2f62c4; margin-bottom: 4px; }
.why-text { font: 400 11.5px/1.55 'Public Sans', sans-serif; color: #3b4552; }

/* ===== BUILDING DETAIL ===== */

.bldg-top { padding: 22px 28px 0; }

.bldg-breadcrumb { font: 400 12px 'Public Sans', sans-serif; color: #8a94a1; margin-bottom: 12px; }
.bldg-breadcrumb-current { color: #5b6672; }

.bldg-head-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.bldg-photo-wrap {
  width: 120px;
  height: 84px;
  flex: none;
  border-radius: 10px;
  background: #eef1f5;
  overflow: hidden;
}

.bldg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bldg-info { flex: 1; }
.bldg-name-row { display: flex; align-items: center; gap: 12px; }
.bldg-name-lg { font: 700 24px 'Space Grotesk', sans-serif; color: #0d1520; letter-spacing: -.01em; }
.bldg-flag-pill { font: 600 11px 'Public Sans', sans-serif; color: #a13c1f; background: #fbe9e2; padding: 4px 11px; border-radius: 12px; }
.bldg-addr { font: 400 13px 'Public Sans', sans-serif; color: #5b6672; margin-top: 4px; }

.bldg-stats { display: flex; gap: 24px; text-align: right; }
.bldg-stat-label { font: 400 11px 'Public Sans', sans-serif; color: #8a94a1; }
.bldg-stat-value { font: 700 20px 'Space Grotesk', sans-serif; color: #0d1520; }

.bldg-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #e9ecf0;
  font: 600 13px 'Public Sans', sans-serif;
}

.bldg-tab { color: #5b6672; padding: 10px 16px; cursor: pointer; }
.bldg-tab--active { color: #2f62c4; border-bottom: 2px solid #2f62c4; }

.bldg-body {
  display: grid;
  grid-template-columns: 1fr 330px;
}

.bldg-equip-col { padding: 18px 0 24px 28px; overflow-x: auto; }

.equip-table {
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  overflow: hidden;
  min-width: 560px;
}

.equip-table-head,
.equip-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr .6fr 1.1fr 1fr .9fr;
}

.equip-table-head {
  padding: 10px 18px;
  background: #f6f8fb;
  font: 600 10.5px 'Public Sans', sans-serif;
  color: #8a94a1;
  letter-spacing: .04em;
}

.equip-row {
  padding: 12px 18px;
  border-top: 1px solid #f0f2f5;
  font: 400 12.5px 'Public Sans', sans-serif;
  color: #3b4552;
  align-items: center;
  cursor: pointer;
}

.equip-row--hover:hover { background: #f6f8fb; }

.equip-row--flagged {
  background: #fffbfa;
}

.equip-row--flagged:hover { background: #fdf3ef; }

.equip-id { font: 500 11.5px 'IBM Plex Mono', monospace; color: #0d1520; }

.bldg-side-col { padding: 18px 28px 24px 20px; }

.flag-card {
  background: #fffbfa;
  border: 1px solid #f0c9bc;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.flag-card-title { font: 600 12.5px 'Public Sans', sans-serif; color: #a13c1f; margin-bottom: 6px; }
.flag-card-text { font: 400 12px/1.55 'Public Sans', sans-serif; color: #5b6672; }
.flag-card-link { display: inline-block; font: 600 12px 'Public Sans', sans-serif; color: #2f62c4; margin-top: 10px; cursor: pointer; }

.service-title { font: 600 12.5px 'Public Sans', sans-serif; color: #0d1520; margin-bottom: 10px; }

.service-row {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #f0f2f5;
}

.service-date { font: 400 10.5px 'IBM Plex Mono', monospace; color: #8a94a1; width: 48px; flex: none; }
.service-text { font: 400 12px/1.45 'Public Sans', sans-serif; color: #5b6672; }
.service-text b { color: #0d1520; font-weight: 500; }

.capital-card {
  margin-top: 16px;
  border: 1px solid #e9ecf0;
  border-radius: 10px;
  padding: 14px 16px;
}

.capital-title { font: 600 12px 'Public Sans', sans-serif; color: #0d1520; margin-bottom: 4px; }
.capital-text { font: 400 11.5px/1.55 'Public Sans', sans-serif; color: #5b6672; }
.capital-link { display: inline-block; font: 600 12px 'Public Sans', sans-serif; color: #2f62c4; margin-top: 8px; cursor: pointer; }

/* ===== RESPONSIVE (<=900px) ===== */

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 4px;
    overflow-x: auto;
  }

  .sidebar-logo { padding: 0 12px 0 0; }
  .sidebar-demo-badge { margin: 0 8px 0 0; flex-shrink: 0; }
  .sidebar-nav-item { padding: 8px 12px; border-right: none; border-radius: 6px; }
  .sidebar-nav-item--active { border-right: none; }
  .sidebar-nav-soon,
  .sidebar-footer { display: none; }

  .kpi-grid,
  .dash-panels,
  .bldg-body {
    grid-template-columns: 1fr;
  }

  .wo-screen,
  .inv-screen {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .inv-side {
    border-left: none;
    border-top: 1px solid #e9ecf0;
  }

  .bldg-head-row {
    flex-wrap: wrap;
  }

  .bldg-stats {
    width: 100%;
    justify-content: flex-start;
  }
}

/* hidden attr must beat class display rules (used by state toggles) */
[hidden] { display: none !important; }

/* ---- preview toast (demo affordance for inert actions) ---- */
.preview-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(6px);
  background: #0d1520;
  color: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(13,21,32,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 100;
}

.preview-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
