.superadmin-settings-page:has(.service-costs) { grid-template-columns: minmax(0, 1fr); }
#superadminTabContent:has(> .service-costs) { min-width: 0; width: 100%; max-width: 100%; }
.service-costs {
  width: 100%;
  min-width: 0;
  margin-top: 16px;
  color: var(--text, #202628);
  background: #fff;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0;
}
.service-costs *, .service-costs *::before, .service-costs *::after,
.enterprise-service-costs * { box-sizing: border-box; }
.service-costs-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 12px;
}
.service-costs-heading h3 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.service-costs .service-costs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 16px;
  padding: 8px 12px;
  margin: 0;
  border-bottom: 1px solid #e5e9eb;
}
.service-costs-toolbar label { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; }
.service-costs :is(button, input), .enterprise-service-costs button {
  height: 32px;
  min-height: 32px;
  border: 1px solid #dde3e6;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  box-shadow: none;
  transform: none;
}
.service-costs input[type="date"] { width: 150px; max-width: 100%; }
.service-costs button, .enterprise-service-costs button { width: auto; cursor: pointer; white-space: nowrap; }
.service-costs button:hover, .enterprise-service-costs button:hover { background: var(--brand-hover, #f1faf7); box-shadow: none; transform: none; }
.service-costs button:active, .enterprise-service-costs button:active { background: var(--brand-selected, #ddf3ee); }
.service-costs :is(button, input, [tabindex]):focus-visible, .enterprise-service-costs button:focus-visible { outline: 2px solid var(--brand-primary, #008574); outline-offset: 2px; }
.service-costs button:disabled { background: #f5f6f7; color: #929ba2; cursor: default; }
.service-costs-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.service-costs .service-costs-table { width: 100% !important; min-width: 1040px !important; max-width: none !important; table-layout: fixed; border-collapse: collapse; }
.service-costs-table :is(th, td) { padding: 8px 12px; border-bottom: 1px solid #dde6e3; text-align: right; vertical-align: top; overflow-wrap: anywhere; white-space: normal; }
.service-costs-table :is(th, td):first-child { width: 260px; text-align: left; }
.service-costs-table thead th { background: #f2f8f5; font-weight: 600; }
.service-costs-table tbody th { font-weight: 400; }
.service-costs-table tfoot th, .service-costs-table tfoot td { border-top: 2px solid #cbdcd5; font-weight: 600; }
.service-costs-table .service-costs-expand { display: flex; align-items: center; gap: 8px; width: 100%; height: auto; padding: 0; text-align: left; white-space: normal; border: 0; background: transparent; }
.service-costs-table .service-costs-user-row th { padding-left: 38px; }
.service-costs-table tr[hidden] { display: none; }
.superadmin-enterprises-table:has(.enterprise-service-costs) { min-width: 1080px !important; }
.superadmin-enterprises-table:has(.enterprise-service-costs) col:first-child { width: 350px !important; }
.superadmin-enterprises-table:has(.enterprise-service-costs) tbody td { vertical-align: top !important; }
html body .app #account.view .superadmin-enterprises-table[data-erp-table="register"] tbody td { vertical-align: top !important; }
.superadmin-enterprises-table:has(.enterprise-service-costs) th.admin-actions { text-overflow: clip !important; font-size: 12px !important; }
html body .app #account.view .superadmin-enterprises-table[data-erp-table="register"] th.admin-actions { font-size: 12px !important; padding-left: 4px !important; padding-right: 4px !important; }
.superadmin-enterprises-table:has(.enterprise-service-costs) :is(th, td).admin-actions { width: 90px !important; min-width: 90px !important; max-width: 90px !important; }
.superadmin-enterprises-table:has(.enterprise-service-costs) th:first-child,
.superadmin-enterprises-table .enterprise-service-costs { width: 350px !important; min-width: 350px !important; }
#account .superadmin-enterprises-table .enterprise-service-costs,
.superadmin-enterprises-table .enterprise-service-costs {
  height: auto !important;
  padding: 8px 12px !important;
  text-align: left !important;
  vertical-align: top;
  font-size: 13px;
  line-height: 18px !important;
  overflow-wrap: anywhere;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
  color: inherit;
}
.enterprise-service-costs .service-costs-expand, #account .enterprise-service-costs .service-costs-expand {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px !important;
  height: auto !important;
  padding: 4px !important;
  border-color: transparent !important;
  text-align: left !important;
  white-space: normal !important;
  background: transparent;
}
.service-costs-toggle { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid #c8d6d2; border-radius: 2px; font-size: 16px; line-height: 1; font-weight: 400; }
.service-costs-users[hidden] { display: none; }
.service-costs-users { padding-left: 14px; margin: 8px 0 0 8px; border-left: 1px solid #d9e5e1; }
.service-costs-manager + .service-costs-manager { margin-top: 10px; padding-top: 8px; border-top: 1px solid #e5e9eb; }
.service-costs-breakdown { margin: 2px 0 0; }
.service-costs-breakdown > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 110px); gap: 8px; align-items: center; }
.service-costs-breakdown dt { color: #586367; font-weight: 400; }
.service-costs-breakdown dd { margin: 0; min-width: 0; text-align: right; }
.service-costs-shared, .service-costs-overall { width: min(100%, 350px); padding: 8px 12px; border-bottom: 1px solid #e5e9eb; }
.service-costs-overall { font-weight: 600; }
.service-costs-money { display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.service-costs small, .enterprise-service-costs small { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: #586367; }
.service-costs-money + .service-costs-money { margin-top: 4px; }
.service-costs-total .service-costs-money { font-weight: 600; }
.service-costs-identity { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 110px); align-items: center; gap: 8px; }
.service-costs-identity > * { min-width: 0; }
.service-costs-inline-total { text-align: right; }
.service-costs-muted { color: #586367; }
.service-costs-unpriced { display: block; color: #92520b; }
.service-costs-message { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 16px 12px; }
.service-costs-message.is-error { color: #b42318; }
.service-costs-coverage { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 12px; margin: 0; list-style: none; color: #586367; font-size: 12px; }
.service-costs-coverage span { color: #202628; }
.service-costs .service-costs-amount, #account .service-costs .service-costs-amount,
.enterprise-service-costs .service-costs-amount, #account .enterprise-service-costs .service-costs-amount {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 32px !important;
  padding: 2px 0 !important;
  border: 0 !important;
  text-align: right !important;
  white-space: normal !important;
  background: transparent;
}
.service-costs .service-costs-amount:hover, .enterprise-service-costs .service-costs-amount:hover { background: var(--brand-hover, #f1faf7) !important; }
.service-costs-dialog {
  width: min(1100px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid #dde3e6;
  border-radius: 4px;
  overflow: auto;
  box-shadow: none;
}
.service-costs-dialog::backdrop { background: rgb(32 38 40 / 25%); }
.service-costs-dialog .service-costs-heading { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid #e5e9eb; }
.service-costs-dialog .service-costs-heading > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.service-costs-dialog .service-costs-operations { min-width: 900px; width: 100%; table-layout: fixed; border-collapse: collapse; }
.service-costs-operations :is(th, td) { text-align: left; padding: 8px 12px; border-bottom: 1px solid #e5e9eb; vertical-align: top; overflow-wrap: anywhere; }
.service-costs-operations th { background: #f3f8f6; font-weight: 600; }
.service-costs-operations :is(th, td):last-child { text-align: right; }
.service-costs-operations :is(th, td):nth-child(2) { width: 190px; }
.service-costs-operations :is(th, td):nth-child(5) { width: 200px; }
.service-costs-usage span { display: block; }
.service-costs-dialog footer { padding: 8px 12px; text-align: right; }
@media (max-width: 600px) {
  .superadmin-enterprises-table:has(.enterprise-service-costs) th:first-child,
  #account .superadmin-enterprises-table .enterprise-service-costs,
  .superadmin-enterprises-table .enterprise-service-costs { width: 260px !important; min-width: 260px !important; }
  .superadmin-enterprises-table:has(.enterprise-service-costs) col:first-child { width: 260px !important; }
  .superadmin-enterprises-table:has(.enterprise-service-costs) :is(th, td).admin-actions { position: static !important; }
  .service-costs-identity { grid-template-columns: minmax(0, 1fr) 90px; }
  .service-costs-breakdown > div { grid-template-columns: minmax(0, 1fr) 90px; }
  .service-costs-toolbar label { flex: 0 1 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) 8px; gap: 4px; }
  .service-costs input[type="date"] { width: 100%; min-width: 0; }
}
