@media screen {
  [data-performance-reviews-ui] {
    container: performance-reviews / inline-size;
    font-variant-numeric: tabular-nums;
  }

  [data-performance-reviews-ui] .professional-page-header {
    align-items: center !important;
    gap: 16px !important;
    margin-block: 0 16px;
  }

  [data-performance-reviews-ui] .professional-page-header h1 {
    font-size: 26px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }

  [data-performance-reviews-ui] .professional-page-header p {
    margin-block-start: 4px !important;
    color: var(--muted);
    font-size: 14px !important;
  }

  [data-performance-reviews-ui] .page-header-actions > button {
    min-block-size: 40px;
  }

  [data-performance-reviews-ui] .performance-scoring-note {
    margin-block-end: 16px;
  }

  [data-performance-reviews-ui] .performance-scoring-note .paya-alert {
    padding: 12px 16px;
    gap: 12px;
    background: var(--surface-secondary);
    border-color: var(--border);
    font-size: 14px;
    line-height: 1.65;
  }

  [data-performance-reviews-ui] .performance-scoring-note .msi {
    color: var(--accent);
  }

  [data-performance-reviews-ui] .performance-scoring-help {
    color: var(--muted);
  }

  [data-performance-reviews-ui] .grid-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-block-end: 16px !important;
  }

  [data-performance-reviews-ui] .grid-cards > .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    min-inline-size: 0;
    padding: 12px 16px !important;
    border-radius: 8px;
    animation: none;
  }

  [data-performance-reviews-ui] .grid-cards > .card > div:first-child {
    font-size: 13px !important;
    font-weight: 400 !important;
  }

  [data-performance-reviews-ui] .grid-cards .num {
    align-self: end;
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-align: end;
  }

  [data-performance-reviews-ui] .paya-ant-table.professional-table {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
  }

  [data-performance-reviews-ui] .paya-ant-table-toolbar {
    margin: 0;
    padding: 12px 16px;
  }

  [data-performance-reviews-ui] .paya-ant-table-title {
    font-size: 17px;
    font-weight: 600;
  }

  [data-performance-reviews-ui] .paya-ant-table-title > span {
    font-size: 14px;
    font-weight: 400;
  }

  [data-performance-reviews-ui] .paya-ant-table-filter {
    inline-size: 220px;
    flex: 0 1 220px;
    min-inline-size: 0;
  }

  [data-performance-reviews-ui] .paya-ant-table-tools button,
  [data-performance-reviews-ui] .paya-ant-table-filter > .paya-input-wrap {
    min-block-size: 40px;
  }

  [data-performance-reviews-ui] .paya-ant-table-region {
    border: 0;
    border-block-start: 1px solid var(--border);
    border-start-start-radius: 0;
    border-start-end-radius: 0;
  }

  [data-performance-reviews-ui] .paya-ant-table-region th {
    font-size: 13px;
  }

  [data-performance-reviews-ui] .paya-ant-empty {
    padding-block: 28px 32px;
    color: var(--foreground);
    font-size: 14px;
  }

  [data-performance-reviews-ui] .paya-ant-empty > div > span {
    font-size: 16px;
    font-weight: 600 !important;
  }

  [data-performance-reviews-ui] .paya-ant-empty > .msi {
    display: inline-grid;
    place-items: center;
    inline-size: 36px;
    min-inline-size: 36px;
    block-size: 36px;
    padding: 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    color: var(--accent);
    font-size: 18px !important;
  }
}

@container performance-reviews (width < 700px) {
  [data-performance-reviews-ui] .professional-page-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  [data-performance-reviews-ui] .professional-page-header h1 {
    font-size: 23px !important;
  }

  [data-performance-reviews-ui] .page-header-actions > button,
  [data-performance-reviews-ui] .paya-ant-table-tools button,
  [data-performance-reviews-ui] .paya-ant-table-filter > .paya-input-wrap {
    min-block-size: 44px;
  }

  [data-performance-reviews-ui] .grid-cards {
    gap: 8px;
  }

  [data-performance-reviews-ui] .grid-cards > .card {
    padding: 8px !important;
  }

  [data-performance-reviews-ui] .grid-cards .num {
    font-size: 20px !important;
  }

  [data-performance-reviews-ui] .paya-ant-table-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
    padding-inline: 12px;
  }

  [data-performance-reviews-ui] .paya-ant-table-title {
    grid-column: 1 / -1;
  }

  [data-performance-reviews-ui] .paya-ant-table-filter {
    inline-size: 100%;
    max-inline-size: none;
  }

  [data-performance-reviews-ui] .paya-ant-table-tools {
    margin-inline-start: 0;
  }
  [data-performance-reviews-ui] .paya-ant-table-region:has(.paya-ant-empty) {
    container-type: inline-size;
    overflow-x: auto;
  }

  [data-performance-reviews-ui] .paya-ant-table-region:has(.paya-ant-empty) .tbl {
    display: table !important;
    inline-size: 736px !important;
    min-inline-size: 736px !important;
    max-inline-size: none !important;
    table-layout: auto !important;
  }

  [data-performance-reviews-ui] .paya-ant-table-region:has(.paya-ant-empty) thead {
    display: table-header-group !important;
    position: static;
    inline-size: auto;
    block-size: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
  }

  [data-performance-reviews-ui] .paya-ant-table-region:has(.paya-ant-empty) tbody {
    display: table-row-group !important;
  }

  [data-performance-reviews-ui] .paya-ant-table-region:has(.paya-ant-empty) tr {
    display: table-row !important;
    border: 0;
  }

  [data-performance-reviews-ui] .paya-ant-table-region:has(.paya-ant-empty) :is(th, td) {
    display: table-cell !important;
  }

  [data-performance-reviews-ui] .paya-ant-table-region:has(.paya-ant-empty) th {
    padding: 10px 12px;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }

  [data-performance-reviews-ui] .paya-ant-table-region tfoot:empty {
    display: none;
  }

  [data-performance-reviews-ui] .paya-ant-table-region:has(.paya-ant-empty) td[colspan] {
    padding: 0;
  }

  [data-performance-reviews-ui] .paya-ant-table-region:has(.paya-ant-empty) .paya-ant-empty {
    position: sticky;
    inset-inline-start: 0;
    inline-size: 100cqi;
    max-inline-size: 100cqi;
    padding-inline: 12px;
  }
}

@media screen and (max-width: 640px) {
  body[data-ant-profile="industrial"] [data-performance-reviews-ui] .paya-ant-table-filter > .paya-input-wrap {
    min-block-size: 56px;
  }
}
