/* Infrastructure and incident workspace; all rules remain scoped. */
.ops17 {
  --ops17-surface: #1d392f;
  --ops17-soft: #a5be9c0c;
  --ops17-line: #b5c8af28;
  --ops17-text: #e1eadf;
  --ops17-muted: #aabca9;
  --ops17-gold: #d6ba80;
  color: var(--ops17-text);
  font-size: 12px;
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-theme="light"] .ops17 {
  --ops17-surface: #fff;
  --ops17-soft: #31543208;
  --ops17-line: #35553b30;
  --ops17-text: #233d30;
  --ops17-muted: #5b6d5e;
  --ops17-gold: #805d28;
}
#analysisBoard[data-kind="infrastructure17"] > .ops17 {
  padding: 12px 16px 18px;
  overflow: auto;
  min-height: 0;
}
#analysisBoard[data-kind="infrastructure17"] {
  display: flex;
  flex-direction: column;
}
#analysisBoard[data-kind="infrastructure17"][hidden] {
  display: none;
}
.ops17 :is(button, input, select, textarea) {
  font: inherit;
  box-sizing: border-box;
}
.ops17 .icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.ops17 h3 {
  font-size: 13px;
  margin: 16px 0 8px;
  color: var(--ops17-gold);
}
.ops17 p {
  margin: 8px 0;
}
.ops17 :is(input:not([type="checkbox"]), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--ops17-line);
  border-radius: 6px;
  background: var(--ops17-surface);
  color: var(--ops17-text);
}
.ops17 input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #a88d54;
  flex: none;
}
.ops17 textarea {
  min-height: 72px;
  resize: vertical;
}
.ops17 :is(input, select, textarea, button):focus-visible {
  outline: 2px solid var(--ops17-gold);
  outline-offset: 2px;
}
.ops17 input:is([type="date"], [type="datetime-local"]) {
  direction: ltr;
}
.ops17 .btn {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 11px;
  gap: 5px;
  text-align: center;
  justify-content: center;
  white-space: normal;
  line-height: 1.5;
}
.ops17 :is(.btn, .ops17-title) {
  display: inline-flex;
  align-items: center;
}
.ops17-status {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding-bottom: 9px;
  color: var(--ops17-muted);
  font-size: 10px;
}
.ops17-status b {
  color: var(--ops17-gold);
}
.ops17-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b7a274;
}
.ops17-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px;
  background: var(--ops17-soft);
  border: 1px solid var(--ops17-line);
  border-radius: 8px;
}
.ops17-filters > label:not(.ops17-check) {
  flex: 1 1 150px;
}
.ops17 label {
  display: block;
  color: var(--ops17-muted);
  font-size: 10px;
}
.ops17 label :is(input, select, textarea) {
  margin-top: 3px;
}
.ops17 .ops17-check {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  font-size: 11px;
}
.ops17-tabs {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ops17-line);
  margin: 10px 0;
}
.ops17-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--ops17-muted);
  padding: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
}
.ops17-tabs button.active {
  color: var(--ops17-gold);
  border-bottom-color: var(--ops17-gold);
}
.ops17-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 12px;
}
.ops17-kpis > div {
  background: var(--ops17-soft);
  border: 1px solid var(--ops17-line);
  padding: 7px;
  border-radius: 7px;
  text-align: center;
  display: grid;
  align-content: center;
  min-height: 54px;
}
.ops17-kpis small {
  color: var(--ops17-muted);
  font-size: 10px;
}
.ops17-kpis b {
  font-size: 20px;
  line-height: 1.4;
  color: var(--ops17-gold);
  font-variant-numeric: tabular-nums;
}
.ops17-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.ops17-toolbar > input {
  flex: 1 1 180px;
  width: auto;
}
.ops17-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ops17-line);
  border-radius: 7px;
}
.ops17 table {
  border-collapse: collapse;
  width: 100%;
  font-size: 10px;
}
.ops17-table table {
  min-width: 740px;
}
.ops17 :is(th, td) {
  padding: 9px 8px;
  text-align: right;
  vertical-align: top;
  border-bottom: 1px solid var(--ops17-line);
}
.ops17 th {
  font-weight: 500;
  color: var(--ops17-muted);
  background: var(--ops17-soft);
  white-space: nowrap;
}
.ops17 td:first-child {
  min-width: 180px;
  max-width: 300px;
}
.ops17 td small {
  display: block;
  color: var(--ops17-muted);
  font-size: 9px;
  margin-top: 4px;
}
.ops17-title {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ops17-text);
  font-weight: 600;
  gap: 6px;
  line-height: 1.7;
  text-align: right;
  cursor: pointer;
}
.ops17-title:hover {
  color: var(--ops17-gold);
}
.ops17-badge {
  display: inline-block;
  font-size: 8px;
  border: 1px solid var(--ops17-line);
  border-radius: 4px;
  padding: 1px 5px;
  margin: 5px 0 0 4px;
  color: var(--ops17-muted);
}
.ops17-badge.demo {
  color: var(--ops17-gold);
  border-style: dashed;
}
.ops17-badge.authority {
  color: #85bb9c;
}
[data-theme="light"] .ops17-badge.authority {
  color: #2f7854;
}
.ops17-progress {
  width: 74px;
  height: 3px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--ops17-line);
  overflow: hidden;
}
.ops17-progress i {
  height: 100%;
  display: block;
  background: #81b393;
}
.ops17-coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 5px;
  margin-top: 15px;
  color: var(--ops17-muted);
  font-size: 9px;
}
.ops17-coverage span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--ops17-line);
  padding: 5px;
}
.ops17-coverage b {
  color: var(--ops17-text);
  font-weight: 500;
}
.ops17-note,
.ops17-foot {
  color: var(--ops17-muted);
  font-size: 10px;
}
.ops17-foot {
  border-top: 1px solid var(--ops17-line);
  padding-top: 10px;
}
.ops17-warning {
  border: 1px dashed #d1ac6555;
  background: #cb9d5410;
  color: var(--ops17-gold);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 10px;
}
.ops17-error {
  color: #ffb8a9;
  padding: 8px;
  border: 1px solid #dd776d50;
  border-radius: 5px;
}
[data-theme="light"] .ops17-error {
  color: #963327;
}
.ops17-empty {
  padding: 20px 12px;
  text-align: center;
  border: 1px dashed var(--ops17-line);
  color: var(--ops17-muted);
  border-radius: 7px;
}
.ops17-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 10px 0;
}
.ops17-govs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 8px 0;
}
.ops17-govs label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
}
.ops17 summary {
  cursor: pointer;
  color: var(--ops17-gold);
}
.ops17-timeline-labels {
  display: flex;
  justify-content: space-between;
  direction: ltr;
  font-size: 9px;
  color: var(--ops17-muted);
  margin: 12px 0;
}
.ops17-timeline-row {
  margin: 14px 0;
}
.ops17-timeline-row > small {
  display: block;
  color: var(--ops17-muted);
  font-size: 9px;
}
.ops17-track {
  height: 16px;
  margin: 9px 4px;
  position: relative;
  background: var(--ops17-soft);
  border-radius: 4px;
  direction: ltr;
}
.ops17-track i {
  position: absolute;
  top: 5px;
  height: 6px;
  border-radius: 4px;
}
.ops17-track b {
  position: absolute;
  top: -2px;
  font-size: 14px;
  transform: translateX(-50%);
  color: var(--ops17-gold);
}
.ops17-event-marker {
  width: 22px;
  height: 22px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.ops17-event-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1.5px solid var(--event-color);
  background: #1e2e29;
  color: var(--event-color);
  border-radius: 6px;
  box-shadow: 0 2px 5px #0008;
  box-sizing: border-box;
}
.ops17-event-symbol .icon {
  width: 14px;
  height: 14px;
}
.ops17-event-symbol.simulated {
  border-style: dashed;
}
.ops17-event-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.ops17-event-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--ops17-muted);
}
.ops17-event-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--ops17-line);
  background: transparent;
  text-align: right;
  color: var(--ops17-text);
  padding: 11px 0;
}
.ops17-event-row > span:not(.ops17-event-symbol) {
  flex: 1;
  min-width: 0;
}
.ops17-event-row b {
  font-size: 11px;
}
.ops17-event-row small {
  display: block;
  font-size: 9px;
  color: var(--ops17-muted);
}
.ops17-nav {
  position: relative;
}
.ops17-nav sup {
  position: absolute;
  top: 1px;
  right: 0;
  font: 8px/13px sans-serif;
  min-width: 13px;
  padding: 0 2px;
  background: #805f2a;
  color: #fff5df;
  border: 1px solid #b89b5f;
  border-radius: 5px;
}
.ops17-demo-badge {
  position: fixed;
  z-index: 1000;
  top: 166px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border: 1px dashed #c7a86b;
  border-radius: 5px;
  background: #20342ff0;
  color: #e0c995;
  font-size: 9px;
  max-width: calc(100vw - 145px);
  text-align: center;
}
.ops17-sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.ops17-sector-grid article {
  border: 1px solid var(--ops17-line);
  border-radius: 7px;
  padding: 12px;
  display: grid;
  gap: 5px;
  justify-items: center;
  text-align: center;
}
.ops17-sector-grid article .icon {
  color: var(--ops17-gold);
  width: 22px;
  height: 22px;
}
.ops17-sector-grid small {
  font-size: 9px;
  color: var(--ops17-muted);
}
.ops17-plan {
  display: flex;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid var(--ops17-line);
  padding: 9px 0;
}
.ops17-plan > span {
  flex: 1;
}
.ops17-plan small,
.ops17-history small {
  display: block;
  color: var(--ops17-muted);
  font-size: 9px;
}
.ops17-history {
  border-bottom: 1px solid var(--ops17-line);
  padding: 6px 0;
}
.ops17-draw-bar {
  position: fixed;
  z-index: 1600;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: calc(100vw - 130px);
  font-size: 11px;
}
.ops17-draw-bar[hidden],
.ops17-demo-badge[hidden] {
  display: none;
}
.ops17-report {
  background: #fcfcf7;
  color: #243c30;
  padding: 20px;
  border-radius: 5px;
  margin-top: 14px;
  --ops17-line: #35553b30;
  --ops17-muted: #5b6d5e;
  --ops17-soft: #31543208;
  --ops17-text: #233d30;
  --ops17-gold: #805d28;
}
.ops17-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid #b3975d;
  padding-bottom: 15px;
}
.ops17-report-head img {
  width: 220px;
  max-width: 45%;
  height: 70px;
  object-fit: contain;
}
.ops17-report h1 {
  font-size: 20px;
  margin: 4px 0;
}
.ops17-report h2 {
  font-size: 14px;
  margin: 20px 0 8px;
}
.ops17-report small {
  display: block;
  font-size: 9px;
  color: #5b6d5e;
}
.ops17-report a {
  color: #52733e;
}
.ops17-report footer {
  border-top: 1px solid #a8b7a3;
  margin-top: 22px;
  padding-top: 10px;
  font-size: 9px;
}
.location-pin17 {
  color: #ffe0a0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  background: none;
  border: 0;
  filter: drop-shadow(0 2px 2px #111);
}
.location-pin17 .icon {
  width: 28px;
  height: 32px;
  fill: #294b39;
  stroke-width: 2.2px;
}
.location-chip17 {
  position: fixed;
  z-index: 1010;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  max-width: min(420px, calc(100vw - 150px));
  font-size: 11px;
}
.location-chip17[hidden] {
  display: none;
}
.location-chip17 > span {
  min-width: 0;
}
.location-chip17 b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}
.location-chip17 small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.location-chip17 button {
  width: 25px;
  height: 25px;
  padding: 4px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 5px;
  flex: none;
}
.location-chip17 .icon {
  width: 16px;
  height: 16px;
  flex: none;
}
@media (max-width: 760px) {
  .ops17-kpis,
  .ops17-sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops17-tabs button {
    padding: 9px 7px;
    font-size: 10px;
  }
  .ops17-form {
    grid-template-columns: 1fr;
  }
  .ops17-draw-bar {
    flex-wrap: wrap;
    justify-content: center;
    bottom: 80px;
  }
  .ops17-report {
    padding: 12px;
  }
  .ops17-report-head {
    flex-wrap: wrap;
  }
  .location-chip17 {
    bottom: 82px;
  }
  .location-chip17 b {
    max-width: 160px;
  }
}
