.usage-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(24, 39, 75, 0.2), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(88, 73, 130, 0.18), transparent 40%),
    rgba(10, 14, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  padding: 16px;
  box-sizing: border-box;
}

#usageOverlayRoot{
  display: flex;
  justify-content: center;
  width: 90%;
}

.usage-panel {
  width: 90%;
  max-width: 980px;
  background: linear-gradient(145deg, #f7f8fb 0%, #f0f3f8 100%);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(14, 22, 40, 0.25);
  padding: 20px 22px;
  box-sizing: border-box;
  font-family: "Sora", "Trebuchet MS", "Tahoma", sans-serif;
  border: 1px solid rgba(90, 100, 125, 0.15);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.usage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.usage-scroll {
  overflow-y: auto;
  padding-right: 6px;
}

.usage-title {
  font-size: 22px;
  font-weight: 700;
  color: #161b2b;
  letter-spacing: 0.2px;
}

.usage-subtitle {
  font-size: 12px;
  color: #5b667d;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.usage-close-btn {
  border: none;
  background: #e7ebf4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: #2a3143;
  padding: 0px;
}

.usage-filters {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(90, 100, 125, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.usage-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.usage-filter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(35, 45, 70, 0.15);
  background: #f4f6fb;
  cursor: pointer;
  font-size: 12px;
  color: #2a3143;
  transition: all 0.2s ease;
}

.usage-filter-btn.active {
  border-color: #2f61d5;
  background: linear-gradient(135deg, #e6eeff 0%, #f4f7ff 100%);
  color: #1e4ecf;
  box-shadow: 0 6px 14px rgba(46, 89, 176, 0.18);
}

.usage-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.usage-input-label {
  font-size: 12px;
  min-width: 40px;
  color: #4a5568;
}

.usage-input {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(35, 45, 70, 0.2);
  font-size: 12px;
  background: #fff;
}

.usage-table-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(90, 100, 125, 0.14);
  padding: 16px;
  box-shadow: 0 14px 34px rgba(14, 22, 40, 0.08);
  margin-bottom: 18px;
}

.usage-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.usage-table-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2538;
}

.usage-table-subtitle {
  font-size: 12px;
  color: #667085;
  margin-top: 2px;
}

.usage-table-note {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7a869a;
}

.usage-table-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.usage-table th,
.usage-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.usage-table th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  background: #f8fafc;
}

.usage-table td {
  color: #2a3143;
}

.usage-row-current {
  background: linear-gradient(90deg, rgba(232, 240, 255, 0.8) 0%, rgba(248, 250, 255, 0.2) 100%);
}

.usage-row-selected {
  background: #f0f5ff;
  box-shadow: inset 0 0 0 1px rgba(49, 98, 221, 0.2);
}

.usage-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.usage-table tbody tr:hover {
  background: rgba(236, 242, 255, 0.6);
}

.usage-row-current {
  cursor: pointer;
}

.usage-floor-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.usage-floor-title {
  font-weight: 600;
}

.usage-chip {
  background: #1f4fd6;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.usage-total {
  font-weight: 700;
  color: #1f4fd6;
}

.usage-table-empty {
  text-align: center;
  padding: 18px;
  color: #6b7280;
}

.usage-error-text {
  color: #b42318;
}

@media (max-width: 768px) {
  .usage-panel {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
  }

  .usage-scroll {
    padding-right: 0;
  }

  .usage-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .usage-table th,
  .usage-table td {
    padding: 10px 10px;
  }

  .usage-table th:nth-child(2),
  .usage-table td:nth-child(2),
  .usage-table th:nth-child(3),
  .usage-table td:nth-child(3) {
    display: none;
  }
}
