.as-page {
  --as-line: #e4e9f0;
  --as-ink: #26364a;
  --as-grey: #65768a;
  --as-accent: #2163ce;
  color: var(--as-ink);
}
.as-page * {
  box-sizing: border-box;
}
.as-page .panel {
  margin-bottom: 16px;
}
.as-page button,
.as-page select,
.as-page input {
  font-family: inherit;
}
.as-list,
.as-section {
  padding: 0 !important;
  overflow: hidden;
}
.as-page button {
  cursor: pointer;
}
.as-page .as-name,
.as-link,
.as-cloud-tabs button,
.as-tabs button {
  border: 0;
  background: transparent;
  font: inherit;
}
.as-page .as-name {
  color: var(--as-ink);
  font-weight: 610;
  text-align: left;
  padding: 0;
  line-height: 1.5;
  word-break: break-word;
}
.as-link {
  color: var(--as-accent);
  text-decoration: none;
  padding: 0;
}
.as-name:hover,
.as-link:hover {
  text-decoration: underline;
}
.as-cloud-tabs,
.as-tabs,
.as-list-top,
.as-panel-title {
  display: flex;
  align-items: center;
}
.as-cloud-tabs {
  gap: 6px;
  margin: -2px 0 16px;
  border-bottom: 1px solid var(--as-line);
}
.as-cloud-tabs button {
  padding: 8px 16px 11px;
  color: var(--as-grey);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 14px;
}
.as-cloud-tabs button.active {
  color: var(--as-accent);
  border-bottom-color: var(--as-accent);
  font-weight: 600;
}
.as-list-top {
  justify-content: space-between;
  gap: 8px;
  padding-right: 16px;
}
.as-tabs {
  gap: 5px;
  margin: 14px 16px 4px;
}
.as-tabs button {
  font-size: 13px;
  color: var(--as-grey);
  border-radius: 5px;
  padding: 6px 10px;
}
.as-tabs button.active {
  color: #205bb5;
  background: #eaf2ff;
  font-weight: 600;
}
.as-filters,
.as-query-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 15px;
  align-items: center;
}
.as-query-line {
  padding: 0;
  margin-bottom: 14px;
}
.as-search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  padding: 0 9px;
  background: white;
  flex: 1 1 195px;
  max-width: 330px;
  height: 34px;
  color: var(--as-grey);
}
.as-search svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.as-search input {
  border: 0 !important;
  outline: none;
  background: transparent;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0;
  width: 100%;
  height: 30px;
  font-size: 13px;
}
.as-search:focus-within {
  outline: 2px solid #b5d0fd;
  outline-offset: 1px;
}
.as-filter {
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  height: 34px;
  padding: 4px 6px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  background: white;
  color: #47586b;
  font-size: 13px;
}
.as-list-top > .as-filter {
  height: 30px;
  margin-top: 8px;
}
.as-scroll {
  overflow-x: auto;
}
.as-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}
.as-table th,
.as-table td {
  white-space: normal;
  vertical-align: middle;
  border-bottom: 1px solid var(--as-line);
  padding: 12px 11px;
  text-align: left;
}
.as-table th {
  background: #f5f7fa;
  color: #637288;
  font-size: 12px;
  font-weight: 550;
  padding-top: 9px;
  padding-bottom: 9px;
  white-space: nowrap;
}
.as-table th:first-child,
.as-table td:first-child {
  padding-left: 18px;
}
.as-table th:last-child,
.as-table td:last-child {
  padding-right: 18px;
}
.as-table tbody tr:last-child td {
  border-bottom: 0;
}
.as-table tbody tr:hover {
  background: #f9fbff;
}
.as-table small,
.as-identity small {
  display: block;
  line-height: 1.5;
  color: var(--as-grey);
  font-size: 11.5px;
  font-weight: 400;
  margin-top: 2px;
}
.as-identity {
  display: flex;
  align-items: center;
  gap: 9px;
}
.as-icon {
  height: 31px;
  width: 31px;
  display: grid;
  place-items: center;
  background: #eef3fa;
  color: #607b9c;
  border-radius: 7px;
  flex-shrink: 0;
}
.as-icon svg {
  width: 17px;
  height: 17px;
}
.as-date,
.as-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap !important;
}
.as-money {
  text-align: right !important;
}
.as-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #627289;
  border: 1px solid #e2e7ed;
  border-radius: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  padding: 2px 7px;
  white-space: nowrap;
}
.as-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.as-tag.as-ok {
  color: #29785c;
  background: #eef8f3;
  border-color: #deefe6;
}
.as-tag.as-idle {
  color: #91641a;
  background: #fff8e6;
  border-color: #f1e6c6;
}
.as-footer {
  border-top: 1px solid var(--as-line);
  padding: 9px 17px;
  color: var(--as-grey);
  font-size: 12px;
}
.as-group,
.as-panel-title h2 {
  font-size: 15px;
  font-weight: 640;
  margin: 0;
}
.as-group {
  padding: 12px 18px;
  border-top: 1px solid var(--as-line);
}
.as-list > .as-group:first-child {
  border: 0;
}
.as-group small {
  color: var(--as-grey);
  font-size: 12px;
  font-weight: 400;
  margin-left: 8px;
}
.as-metrics {
  display: flex;
  gap: 0;
  align-items: stretch;
  padding: 16px 0 !important;
}
.as-metrics > div {
  padding: 0 24px;
  border-right: 1px solid var(--as-line);
  min-width: 120px;
}
.as-metrics > div:last-child {
  border: 0;
  flex: 1;
}
.as-metrics small,
.as-facts dt,
.as-business h3 {
  display: block;
  font-size: 12px;
  font-weight: 450;
  color: var(--as-grey);
}
.as-metrics strong {
  font-size: 25px;
  font-weight: 630;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.as-metrics em {
  font-style: normal;
  color: var(--as-grey);
  font-size: 13px;
  font-weight: 400;
}
.as-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
}
.as-totals b {
  font-size: 19px;
  font-weight: 600;
}
.as-panel-title {
  padding: 12px 18px;
  min-height: 47px;
  border-bottom: 1px solid var(--as-line);
  justify-content: space-between;
}
.as-panel-title .btn {
  font-size: 12px;
  padding: 4px 8px;
  min-height: 28px;
}
.as-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 17px 18px;
}
.as-facts dt {
  margin-bottom: 3px;
}
.as-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.as-business {
  margin: 0 18px 15px;
  padding-top: 10px;
  border-top: 1px solid var(--as-line);
  font-size: 13px;
}
.as-business h3 {
  margin: 0 0 7px;
}
.as-business > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 3px 0;
}
.as-business b {
  font-weight: 570;
}
.as-business span {
  color: var(--as-grey);
}
.as-history {
  margin: 0;
  padding: 4px 18px;
  list-style: none;
}
.as-history li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--as-line);
  font-size: 13px;
}
.as-history li:last-child {
  border: 0;
}
.as-history time,
.as-history p {
  color: var(--as-grey);
  font-variant-numeric: tabular-nums;
}
.as-history p {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.as-note {
  padding: 0 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.as-empty {
  padding: 36px 12px;
  text-align: center;
  color: var(--as-grey);
}
.as-editor {
  padding: 0 !important;
}
.as-fieldset {
  margin: 0;
  padding: 16px 18px;
  border: 0;
  min-width: 0;
}
.as-fieldset + .as-fieldset {
  border-top: 1px solid var(--as-line);
}
.as-fieldset legend {
  float: left;
  font-size: 15px;
  font-weight: 630;
  width: 100%;
  margin: 0 0 10px;
}
.as-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 15px;
  clear: both;
}
.as-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
}
.as-field input,
.as-field select,
.as-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  padding: 7px 8px;
  background: #fff;
  color: var(--as-ink);
  font: inherit;
}
.as-field input[type='file'] {
  height: auto;
}
.as-wide {
  grid-column: 1/-1;
}
.as-contents {
  display: contents;
}
.as-contents[hidden] {
  display: none;
}
.as-business-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.as-business-row > .as-link {
  padding: 7px;
}
.as-rel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.as-rel-list strong {
  width: 100%;
  font-size: 13px;
  font-weight: 500;
}
.as-rel-list label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.as-rel-list input {
  width: auto;
}
.as-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--as-line);
}
.as-error {
  color: #a94336;
  margin-right: auto;
  font-size: 13px;
}
@media (max-width: 820px) {
  .as-metrics > div {
    min-width: 0;
    padding: 0 14px;
  }
  .as-table td,
  .as-table th {
    padding-left: 7px;
    padding-right: 7px;
  }
  .as-icon {
    width: 25px;
    height: 25px;
  }
  .as-identity {
    gap: 6px;
  }
}
@media (max-width: 650px) {
  .as-cloud-tabs {
    margin-bottom: 12px;
  }
  .as-cloud-tabs button {
    padding: 7px 13px;
  }
  .as-search {
    flex-basis: 100%;
    max-width: none;
  }
  .as-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 12px;
  }
  .as-search {
    grid-column: 1/-1;
  }
  .as-filters > .as-filter {
    width: 100% !important;
  }
  .as-list-top {
    padding-right: 12px;
  }
  .as-tabs {
    margin: 12px 10px 3px;
  }
  .as-list-top .as-filter {
    font-size: 12px;
  }
  .as-table,
  .as-table tbody,
  .as-table tr {
    display: block;
  }
  .as-table thead {
    display: none;
  }
  .as-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
    column-gap: 8px;
    border-top: 1px solid var(--as-line);
    padding: 11px 12px;
  }
  .as-table td,
  .as-table td:first-child,
  .as-table td:last-child {
    padding: 0;
    border: 0 !important;
    display: block;
    color: #46576b;
    font-size: 12px;
    text-align: left !important;
    min-width: 0;
  }
  .as-table td:not(.as-main-cell):before {
    content: attr(data-col) ' ';
    color: var(--as-grey);
    font-size: 11px;
  }
  .as-table td.as-main-cell {
    grid-column: 1/-1;
    order: -2;
  }
  .as-table td.as-date {
    order: -1;
    grid-column: 1/-1;
  }
  .as-table td:not(.as-main-cell) small {
    display: inline;
    margin-left: 4px;
  }
  .as-identity {
    gap: 8px;
  }
  .as-identity small {
    display: inline;
    margin-left: 6px;
  }
  .as-table .as-name {
    font-size: 14px;
  }
  .as-table td.as-money {
    white-space: normal !important;
  }
  .as-metrics {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .as-metrics > div {
    min-width: 40%;
  }
  .as-metrics > div:nth-child(2) {
    border: 0;
  }
  .as-metrics > div:last-child {
    flex-basis: 100%;
    border-top: 1px solid var(--as-line);
    padding-top: 9px;
  }
  .as-metrics strong {
    font-size: 21px;
  }
  .as-totals {
    padding-bottom: 0;
  }
  .as-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
    gap: 12px;
  }
  .as-panel-title,
  .as-group,
  .as-fieldset {
    padding: 12px;
  }
  .as-grid {
    grid-template-columns: 1fr;
  }
  .as-business-row {
    grid-template-columns: 1fr auto;
  }
  .as-business-row .as-field:first-child {
    grid-column: 1/-1;
  }
  .as-business {
    margin-left: 12px;
    margin-right: 12px;
  }
  .as-history {
    padding: 0 12px;
  }
  .as-history li {
    grid-template-columns: 82px 1fr;
  }
}

.as-filter-toggle {
  display: none !important;
}
.as-table tbody tr {
  cursor: pointer;
}
@media (max-width: 650px) {
  .as-cloud-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 55px;
  }
  .as-cloud-filters .as-search {
    grid-column: 1/3;
  }
  .as-cloud-filters .as-filter-toggle {
    display: block !important;
    grid-column: 3;
    width: 100%;
    padding: 4px;
    font-size: 12px;
  }
  .as-cloud-filters:not(.expanded) .as-filter {
    display: none;
  }
  .as-cloud-filters.expanded .as-filter:nth-of-type(even) {
    grid-column: 2/4;
  }
}
