.live-legacy-hidden {
  display: none !important;
}

.live-data-note {
  color: #64748b;
  font-size: 12px;
}

.live-tool-modal .modal-card {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
}

.live-tool-body {
  display: grid;
  gap: 16px;
  padding: 4px 0 16px;
}

.live-tool-body h3 {
  margin: 0;
  color: #172033;
  font-size: 14px;
}

.live-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #e2e8f0;
}

.live-tool-grid > div {
  min-height: 86px;
  padding: 14px;
  background: #fff;
}

.live-tool-grid span,
.live-tool-grid small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.live-tool-grid strong {
  display: block;
  margin: 8px 0 2px;
  color: #172033;
  font-size: 20px;
}

.live-empty-panel {
  padding: 32px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: #64748b;
  text-align: center;
}

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

.live-form label {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
}

.live-form input,
.live-form select {
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  background: #fff;
  color: #172033;
}

.live-form .wide {
  grid-column: 1 / -1;
}

.live-report-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e2e8f0;
}

.live-report-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.live-report-list span,
.live-report-list small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.live-report-list strong {
  color: #172033;
  font-size: 13px;
}

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

.live-report-dashboard .panel.wide {
  grid-column: 1 / -1;
}

.live-status-summary {
  display: grid;
  gap: 10px;
  padding: 4px 0;
}

.live-status-summary > div {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 3fr auto;
  align-items: center;
  gap: 12px;
}

.live-status-summary i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e2e8f0;
}

.live-status-summary i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.live-print-sheet {
  color: #111827;
}

.live-print-sheet h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

@media (max-width: 760px) {
  .live-form,
  .report-dashboard.live-report-dashboard {
    grid-template-columns: 1fr;
  }

  .live-report-dashboard .panel.wide {
    grid-column: auto;
  }

  .live-status-summary > div {
    grid-template-columns: minmax(86px, 1fr) 2fr auto;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .live-tool-modal,
  .live-tool-modal * {
    visibility: visible !important;
  }

  .live-tool-modal {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    background: #fff !important;
  }

  .live-tool-modal .modal-card {
    width: 100% !important;
    max-height: none !important;
    box-shadow: none !important;
  }

  .live-tool-modal .modal-actions,
  .live-tool-modal .close-live-tool {
    display: none !important;
  }
}
