[data-property-name]:not([data-property-name="id"]) {
  white-space: nowrap;
}

[data-css="sidebar-resources"] > div:first-child > label {
  display: none;
}

[data-css="sidebar-resources"] label {
  display: none !important;
}

.costy-stats-link {
  align-items: center;
  color: rgb(12, 30, 41);
  display: flex;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.5;
  min-height: 0;
  padding: 7px 16px;
  text-decoration: none;
}

.costy-stats-link:hover {
  background: rgba(12, 30, 41, 0.2);
}

[data-css$="-show-drawer-content"] .costy-empty-value,
table[data-css$="-table"] td:empty::after {
  color: #172033;
}


.costy-members-overlay {
  align-items: center;
  background: rgb(23 32 51 / 42%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 2000;
}

.costy-members-modal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgb(23 32 51 / 25%);
  max-height: min(80vh, 620px);
  max-width: 800px;
  overflow: auto;
  padding: 22px;
  width: 100%;
}

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

.costy-members-header h2 {
  margin: 0;
}

.costy-members-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.costy-members-modal table {
  border-collapse: collapse;
  width: 100%;
}

.costy-members-modal th,
.costy-members-modal td {
  border-bottom: 1px solid #edf1f5;
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
}

table[data-css$="-table"] {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* AdminJS record show pages */
[data-css$="-show-action-header"] {
  margin-bottom: 12px;
}

[data-css$="-show-action-header"] h2.adminjs_Header {
  color: #172033;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  order: 2;
}

[data-css$="-show-action-header"] [data-css$="-edit-button"] {
  border-radius: 7px;
}

[data-css$="-show-action-header"] [data-css$="-delete-button"] {
  border-radius: 7px;
}

[data-css$="-show-drawer-content"] {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgb(36 52 71 / 6%);
  padding: 14px 20px;
}

[data-css$="-show-drawer-content"] > section {
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  display: block;
  margin-bottom: 0 !important;
  min-height: 0;
  padding: 0 !important;
}

[data-css$="-show-drawer-content"] > section:last-child {
  border-bottom: 0;
  margin-bottom: 0 !important;
}

[data-css$="-show-drawer-content"] > section > section {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0 !important;
  min-height: 0;
  padding: 18px 0;
  width: 100%;
}

[data-css$="-show-drawer-content"] label {
  color: #617994;
  font-size: 14px;
  font-weight: 600;
}

[data-css$="-show-drawer-content"] > section > section {
  color: #172033;
  font-size: 14px;
}

[data-css$="-show-drawer-content"] > section > section > label + * {
  text-align: right;
}

[data-css$="-show-action-header"] [data-css$="-actions-button"] {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  width: auto;
}

.costy-dashboard {
  color: #243447;
  padding: 24px;
}

.costy-dashboard-header h1 {
  margin: 0;
}

.costy-dashboard-header p,
.costy-muted {
  color: #687789;
}

.costy-dashboard-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.costy-range {
  color: #687789;
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.costy-range select {
  background: #fff;
  border: 1px solid #ccd6e0;
  border-radius: 5px;
  padding: 8px 28px 8px 10px;
}

.costy-metrics,
.costy-dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
}

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

.costy-metric,
.costy-card {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(36 52 71 / 6%);
  padding: 20px;
}

.costy-metric span {
  color: #687789;
  display: block;
  font-size: 13px;
}

.costy-metric strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.costy-card h2 {
  font-size: 17px;
  margin: 0 0 18px;
}

.costy-trend-card {
  grid-column: 1 / -1;
}

.costy-line-chart {
  overflow-x: auto;
}

.costy-line-chart svg {
  display: block;
  min-width: 620px;
  width: 100%;
}

.costy-line-chart text {
  fill: #687789;
  font-size: 11px;
}

.costy-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 4px;
}

.costy-chart-legend span {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
}

.costy-chart-legend i {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.costy-bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 150px 1fr 42px;
  margin: 13px 0;
}

.costy-bar-track {
  background: #edf1f5;
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
}

.costy-bar {
  border-radius: 8px;
  height: 100%;
  min-width: 3px;
}

.costy-table-wrap {
  overflow-x: auto;
}

.costy-card table {
  border-collapse: collapse;
  width: 100%;
}

.costy-card th,
.costy-card td {
  border-bottom: 1px solid #edf1f5;
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
}

.costy-card th {
  color: #687789;
  font-size: 12px;
  text-transform: uppercase;
}

.costy-dashboard-error,
.costy-dashboard-loading {
  padding: 32px;
}

@media (max-width: 900px) {
  .costy-metrics,
  .costy-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .costy-dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .costy-metrics,
  .costy-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .costy-bar-row {
    grid-template-columns: 110px 1fr 32px;
  }
}
