.status-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  flex-wrap: wrap;
}

.cache-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cache-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
}

.cache-dot.loading {
  background: #f59e0b;
}

.cache-dot.error {
  background: #ef4444;
}

.last-update {
  opacity: 0.9;
}

.filters-panel {
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-block label {
  font-size: 13px;
  color: var(--resource-muted);
  white-space: nowrap;
}

.filter-select {
  border: 1px solid var(--resource-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  min-width: 170px;
  background: #ffffff;
  color: #1f2937;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--resource-border);
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.filter-chip input[type='checkbox'] {
  accent-color: var(--resource-primary);
  width: 14px;
  height: 14px;
}

.filter-chip.active {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.equipment-card {
  border: 1px solid var(--resource-border);
  border-left: 4px solid var(--status-other);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--resource-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.equipment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(37, 99, 235, 0.13);
}

.equipment-card.status-prd,
.equipment-card.status-productive {
  border-left-color: var(--status-prd);
}

.equipment-card.status-sby,
.equipment-card.status-standby {
  border-left-color: var(--status-sby);
}

.equipment-card.status-udt,
.equipment-card.status-down {
  border-left-color: var(--status-udt);
}

.equipment-card.status-sdt {
  border-left-color: var(--status-sdt);
}

.equipment-card.status-egt,
.equipment-card.status-engineering {
  border-left-color: var(--status-egt);
}

.equipment-card.status-nst,
.equipment-card.status-not_scheduled {
  border-left-color: var(--status-nst);
}

.eq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.eq-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.eq-info {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
}

.eq-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.eq-info-item .label {
  color: #64748b;
  white-space: nowrap;
}

.eq-info-item .value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.info-trigger {
  border: 1px solid #dbe4ef;
  background: #f8fafc;
  border-radius: 999px;
  color: #1e40af;
  font-size: 12px;
  padding: 3px 8px;
  cursor: pointer;
}

.info-trigger:hover {
  background: #dbeafe;
}

.floating-tooltip {
  position: fixed;
  z-index: 1200;
  width: min(460px, calc(100vw - 20px));
  max-height: min(520px, calc(100vh - 20px));
  overflow: auto;
  border: 1px solid var(--resource-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.23);
}

.floating-tooltip-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  cursor: grab;
  user-select: none;
}

.floating-tooltip-header.dragging {
  cursor: grabbing;
}

.floating-tooltip-title {
  margin: 0;
  font-size: 14px;
  color: #1e3a8a;
}

.floating-tooltip-close {
  border: none;
  background: transparent;
  color: #1e40af;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.floating-tooltip-body {
  padding: 10px 12px;
  display: grid;
  gap: 10px;
}

.tooltip-empty {
  padding: 12px;
  text-align: center;
  color: var(--resource-muted);
}

.lot-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafc;
}

.lot-item-id {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.lot-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-top: 8px;
  margin-bottom: 2px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
}

.lot-detail-loading-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

.lot-grid,
.job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 6px 12px;
}

.tooltip-field {
  display: grid;
  gap: 2px;
}

.tooltip-field-label {
  font-size: 11px;
  color: #64748b;
}

.tooltip-field-value {
  font-size: 12px;
  color: #0f172a;
  word-break: break-word;
}

.tooltip-field-value.highlight {
  color: #1d4ed8;
  font-weight: 700;
}

.equipment-count {
  font-size: 13px;
  color: var(--resource-muted);
}

@media (max-width: 880px) {
  .status-header-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .filters-panel {
    padding: 12px;
  }

  .filter-select {
    min-width: 130px;
  }

  .lot-grid,
  .job-grid {
    grid-template-columns: 1fr;
  }
}
