/* Page composition rules. Primitives live in tokens/base/components/shell. */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-heading h2 {
  margin-bottom: 0;
}

.attention-count {
  min-width: var(--control-height);
  min-height: var(--control-height);
  display: inline-grid;
  place-items: center;
  border: var(--border-width) solid var(--color-warning-border);
  border-radius: var(--radius-round);
  padding: var(--space-1);
  background: var(--color-warning-background-subtle);
  color: var(--color-warning-text);
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.checklist,
.help-list {
  margin: var(--space-3) 0 0;
  padding-left: var(--space-5);
}

.checklist {
  display: grid;
  gap: var(--space-2);
}

.help-list li {
  margin: var(--space-1) 0;
}

.form-details {
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  padding: var(--space-4);
  background: var(--color-surface);
}

.form-details > summary {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

.form-details form {
  margin-top: var(--space-4);
}

.manual-event-details .help-list {
  margin-bottom: var(--space-4);
}

.manual-event-suggestion,
.manual-event-confirmation {
  display: grid;
  gap: var(--space-2);
  border: var(--border-width) solid var(--color-info-border);
  border-left-width: 5px;
  border-radius: var(--radius-large);
  padding: var(--space-4);
  background: var(--color-info-background-subtle);
  color: var(--color-info-text);
}

.correction-source-panel {
  padding: var(--space-4);
}

.case-history-empty,
.case-review-unavailable {
  min-height: 0;
}

.manual-event-confirmation {
  border-color: var(--color-warning-border);
  background: var(--color-warning-background-subtle);
  color: var(--color-warning-text);
}

.manual-event-suggestion p,
.manual-event-confirmation p {
  margin: 0;
}

.manual-event-suggestion .ghost-button {
  justify-self: start;
}

.compact-filters {
  margin-bottom: var(--space-5);
}

.employees-filters {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  align-items: end;
}

.employees-filters #pageSize {
  max-width: 140px;
}

.compact-filter-form {
  grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr) auto;
  align-items: end;
}

.compact-filter-actions {
  align-self: end;
  padding-bottom: var(--space-1);
}

.case-statuses {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.overtime-decision-options {
  min-width: 0;
  display: grid;
  gap: var(--space-3);
  border: 0;
  margin: 0;
  padding: 0;
}

.overtime-decision-options legend {
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
}

.overtime-decision-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  margin: 0;
  padding: var(--space-4);
  background: var(--color-surface);
  color: var(--color-text-primary);
  cursor: pointer;
}

.overtime-decision-card:hover {
  border-color: var(--color-brand-border);
  background: var(--color-brand-background-subtle);
}

.overtime-decision-card:has(input:checked),
.overtime-decision-card.is-selected {
  border-color: var(--color-brand);
  background: var(--color-brand-background-subtle);
  box-shadow: inset 0 0 0 1px var(--color-brand);
}

.overtime-decision-card:focus-within {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.overtime-decision-card input[type="radio"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 1px;
}

.decision-card-copy {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

.decision-card-copy strong,
.decision-card-copy span {
  overflow-wrap: anywhere;
}

.decision-card-copy span {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-regular);
}

.overtime-partial-fields {
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius-medium);
  padding: var(--space-4);
  background: var(--color-brand-background-subtle);
}

.overtime-decision-result {
  border: var(--border-width) solid var(--color-brand-border);
  border-radius: var(--radius-large);
  padding: var(--space-3);
  background: var(--color-brand-background-subtle);
  color: var(--color-brand-text);
}

.overtime-decision-result[hidden],
.overtime-partial-fields[hidden] {
  display: none;
}

.exports-table th,
.exports-table td {
  padding: var(--space-2);
}

.exports-table {
  min-width: 860px;
}

.export-history-card h3 {
  margin: 0;
}

.export-history-heading,
.export-snapshot-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.export-history-heading > div {
  min-width: 0;
}

.draft-badge {
  min-height: 26px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-round);
  padding: var(--space-1) var(--space-2);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-bold);
}

.draft-badge {
  border-color: var(--color-warning-border);
  background: var(--color-warning-background-subtle);
  color: var(--color-warning-text);
}

.export-metadata-grid,
.export-count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-3) var(--space-4);
  margin: var(--space-4) 0 0;
}

.export-metadata-grid > div,
.export-count-grid > div {
  min-width: 0;
}

.export-metadata-grid dt,
.export-count-grid dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-semibold);
}

.export-metadata-grid dd,
.export-count-grid dd {
  margin: var(--space-1) 0 0;
  overflow-wrap: anywhere;
  font-weight: var(--font-weight-semibold);
}

.export-history-actions {
  margin-top: var(--space-4);
}

.draft-export-warning {
  border: var(--border-width) solid var(--color-warning-border);
  border-radius: var(--radius-large);
  padding: var(--space-4);
  background: var(--color-warning-background-subtle);
  color: var(--color-warning-text);
}

.draft-export-warning > p {
  margin: var(--space-1) 0 var(--space-3);
}

.export-history-list {
  display: grid;
  gap: var(--space-4);
}

.export-history-card,
.history-entry {
  min-width: 0;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  padding: var(--space-5);
  background: var(--color-surface-subtle);
  overflow-wrap: anywhere;
}

.export-history-heading p {
  margin: var(--space-1) 0 0;
  color: var(--color-text-muted);
}

.visually-muted {
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
}

.export-badges {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.export-file-name {
  word-break: break-word;
}

.export-snapshot {
  min-width: 0;
  border-top: var(--border-width) solid var(--color-divider);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
}

.export-snapshot-heading span {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-semibold);
}

.export-snapshot-unknown {
  color: var(--color-text-muted);
}

.export-freshness {
  display: grid;
  gap: var(--space-1);
  border-left: 5px solid var(--color-disabled);
  border-radius: var(--radius-large);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-disabled-background-subtle);
  color: var(--color-disabled-text);
}

.export-freshness-current {
  border-left-color: var(--color-success);
  background: var(--color-success-background-subtle);
  color: var(--color-success-text);
}

.export-freshness-outdated {
  border-left-color: var(--color-warning);
  background: var(--color-warning-background-subtle);
  color: var(--color-warning-text);
}

.export-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.employees-table {
  min-width: 920px;
  table-layout: fixed;
}

.employees-table th:first-child,
.employees-table td:first-child {
  width: 190px;
}

.employees-table th:nth-child(2),
.employees-table td:nth-child(2) {
  width: 80px;
}

.employees-table th:nth-child(3),
.employees-table td:nth-child(3) {
  width: 130px;
}

.employees-table th:nth-child(4),
.employees-table td:nth-child(4),
.employees-table th:nth-child(5),
.employees-table td:nth-child(5),
.employees-table th:nth-child(7),
.employees-table td:nth-child(7) {
  width: 90px;
}

.employees-table th:nth-child(6),
.employees-table td:nth-child(6) {
  width: 130px;
}

.employees-table th:last-child,
.employees-table td:last-child {
  width: 130px;
}

.employee-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  border-block: var(--border-width) solid var(--color-divider);
  margin: 0 0 var(--space-4);
  padding: var(--space-3) 0;
}

.employee-summary > div {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
}

.employee-summary dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-body-small);
}

.employee-summary dd {
  margin: 0;
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}

.employees-mobile-list,
.events-mobile-list,
.master-mobile-list,
.audit-mobile-list,
.import-mobile-list {
  display: none;
}

.master-data-table th:last-child,
.master-data-table td:last-child {
  width: 240px;
}

.master-data-table.terminals-table th:last-child,
.master-data-table.terminals-table td:last-child {
  width: 300px;
}

.master-editor {
  padding: var(--space-4);
}

.master-editor .form-details {
  margin: 0;
}

.master-mobile-heading,
.master-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.master-mobile-heading small {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-muted);
}

.master-impact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
}

.master-impact-list dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
}

.master-impact-list dd {
  margin: var(--space-1) 0 0;
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}

.master-mobile-actions {
  justify-content: flex-start;
}

.import-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.import-steps li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 3px solid var(--color-divider);
  padding: 0 var(--space-2) var(--space-3);
  color: var(--color-text-muted);
}

.import-steps li > span {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-grid;
  place-items: center;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-round);
  background: var(--color-surface-muted);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}

.import-steps li.is-current,
.import-steps li.is-complete {
  border-color: var(--color-brand);
  color: var(--color-text-primary);
}

.import-steps li.is-current > span,
.import-steps li.is-complete > span {
  border-color: var(--color-brand);
  background: var(--color-brand-background-subtle);
  color: var(--color-brand-text);
}

.import-form-heading {
  margin-bottom: var(--space-4);
}

.import-form-heading h2,
.import-form-heading p,
.import-mobile-card p {
  margin-block: 0;
}

.file-picker {
  min-height: var(--control-height);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-medium);
  padding: var(--space-2);
  background: var(--color-surface);
}

.file-picker:focus-within {
  border-color: var(--color-focus);
  box-shadow: var(--focus-ring);
}

input.file-picker-input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  border: 0;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.file-picker-name {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.import-actions .section-help {
  flex-basis: 100%;
  margin: 0;
}

.import-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  border-block: var(--border-width) solid var(--color-divider);
  margin: 0 0 var(--space-4);
  padding: var(--space-3) 0;
}

.import-summary > div {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
}

.import-summary dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-body-small);
}

.import-summary dd {
  margin: 0;
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}

.system-backup-notice > div {
  display: grid;
  gap: var(--space-1);
}

.system-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: var(--border-width) solid var(--color-divider);
  margin: var(--space-5) 0;
}

.system-health-grid > div {
  min-width: 0;
  border-left: var(--border-width) solid var(--color-divider);
  padding: var(--space-4);
}

.system-health-grid > div:first-child {
  border-left: 0;
}

.system-health-grid dt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-body-small);
}

.system-health-grid dd {
  margin: var(--space-2) 0 0;
  font-weight: var(--font-weight-bold);
}

.system-business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.system-business-grid section + section {
  border-left: var(--border-width) solid var(--color-divider);
  padding-left: var(--space-6);
}

.system-business-grid h3 {
  margin-top: 0;
}

.system-count-list,
.technical-definition-list,
.environment-definition-list {
  margin: 0;
}

.system-count-list > div,
.technical-definition-list > div,
.environment-definition-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
  gap: var(--space-4);
  border-top: var(--border-width) solid var(--color-divider);
  padding: var(--space-3) 0;
}

.system-count-list > div:first-child,
.technical-definition-list > div:first-child,
.environment-definition-list > div:first-child {
  border-top: 0;
}

.system-count-list dt,
.technical-definition-list dt,
.environment-definition-list dt {
  color: var(--color-text-muted);
}

.system-count-list dd,
.technical-definition-list dd,
.environment-definition-list dd {
  min-width: 0;
  margin: 0;
  text-align: right;
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.technical-definition-list {
  column-count: 2;
  column-gap: var(--space-6);
}

.technical-definition-list > div {
  break-inside: avoid;
}

.environment-definition-list {
  max-width: 920px;
}

.environment-definition-list > div {
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
}

.environment-url {
  font-family: var(--font-family-mono);
}

.audit-table th:nth-child(1) {
  width: 150px;
}

.audit-table th:nth-child(2) {
  width: 150px;
}

.audit-table th:nth-child(3) {
  width: 180px;
}

.audit-table th:nth-child(4) {
  width: 190px;
}

.audit-table th:last-child {
  width: 140px;
}

.audit-mobile-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.audit-mobile-heading time {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
}

.audit-mobile-object,
.audit-mobile-summary {
  margin: 0;
  overflow-wrap: anywhere;
}

.audit-mobile-object {
  font-weight: var(--font-weight-bold);
}

.terminals-table .action-pills {
  flex-wrap: nowrap;
}

.barcode-cell,
.secret-box {
  overflow-wrap: anywhere;
  font-family: var(--font-family-mono);
  font-size: var(--font-size-meta);
}

.barcode-cell {
  max-width: 150px;
}

.actions-cell {
  width: 170px;
  min-width: 170px;
}

.action-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.events-filter-tool {
  margin-top: var(--space-5);
}

.events-table-shell {
  margin-top: var(--space-5);
}

.events-table {
  min-width: 950px;
  table-layout: fixed;
}

.events-table th:first-child {
  width: 110px;
}

.events-table th:nth-child(2) {
  width: 135px;
}

.events-table th:nth-child(3) {
  width: 100px;
}

.events-table th:nth-child(4) {
  width: 110px;
}

.events-table th:nth-child(5) {
  width: 95px;
}

.events-table th:nth-child(6) {
  width: 100px;
}

.events-table th:nth-child(7) {
  width: 145px;
}

.events-table th:last-child {
  width: 100px;
}

.events-table td {
  vertical-align: middle;
}

.event-context,
.event-problem {
  display: grid;
  gap: var(--space-1);
}

.event-context small {
  color: var(--color-text-muted);
}

.event-problem summary {
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  list-style: none;
}

.event-problem summary::-webkit-details-marker {
  display: none;
}

.event-problem p {
  margin: var(--space-2) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-body-small);
  line-height: var(--line-height-compact);
}

.table-note {
  max-width: 100%;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-action-area {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-2);
  justify-content: flex-end;
}

.event-action-area [data-tooltip]::after {
  right: 0;
  left: auto;
  transform: translateY(-4px);
}

.event-action-area [data-tooltip]:hover::after,
.event-action-area [data-tooltip]:focus-visible::after {
  transform: translateY(0);
}

.event-cancel-modal {
  width: min(560px, calc(100% - var(--space-8)));
}

.event-cancel-modal .cancel-event-summary {
  margin-bottom: var(--space-4);
}

.action-link {
  min-height: var(--control-height-small);
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-medium);
  padding: var(--space-1) var(--space-2);
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.pagination-bottom {
  margin-top: var(--space-4);
  margin-bottom: 0;
}

.history-list {
  display: grid;
  gap: var(--space-3);
}

.history-entry-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.history-entry-heading div {
  display: grid;
  gap: var(--space-1);
}

.history-entry-heading time,
.history-employee {
  color: var(--color-text-muted);
  font-size: var(--font-size-body-small);
}

.history-employee {
  margin: var(--space-3) 0 var(--space-1);
}

.history-summary {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
}

.kpi-card-empty {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.case-reopened-note {
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-medium);
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-3);
  background: var(--color-warning-background-subtle);
  color: var(--color-warning-text);
  font-weight: var(--font-weight-semibold);
}

.cancel-event-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2) var(--space-4);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  margin: var(--space-3) 0;
  padding: var(--space-4);
  background: var(--color-surface);
}

.cancel-event-summary dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
}

.cancel-event-summary dd {
  margin: var(--space-1) 0 0;
  overflow-wrap: anywhere;
}

.review-confirmation-form {
  max-width: 760px;
  margin-top: var(--space-5);
}

.technical-details {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.technical-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.technical-details dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
}

.technical-details dd {
  margin: var(--space-1) 0 0;
  overflow-wrap: anywhere;
}

.error-page {
  max-width: 760px;
  margin: var(--space-10) auto;
}

.request-id code {
  overflow-wrap: anywhere;
}

.warning-action {
  color: var(--color-danger-text);
  font-weight: var(--font-weight-bold);
}

.inline-form {
  display: inline;
}

.intent-summary,
.export-scope dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.intent-summary div,
.export-scope dl div {
  display: grid;
  gap: var(--space-1);
}

.intent-summary dt,
.export-scope dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
}

.intent-summary dd,
.export-scope dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: var(--font-weight-semibold);
}

.intent-summary dd small {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-regular);
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.intent-card,
.export-scope {
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  padding: var(--space-4);
  background: var(--color-surface-subtle);
}

.intent-card-after {
  border-color: var(--color-success-border);
  background: var(--color-success-background-subtle);
}

.intent-card h3,
.intent-card p,
.export-scope p {
  margin-top: 0;
}

[data-pending-form][aria-busy="true"] {
  opacity: 0.82;
}

/* Internal sandbox UI Lab */

.ui-lab {
  display: grid;
  gap: var(--space-6);
}

.lab-section-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--color-page-background);
}

.lab-section {
  min-width: 0;
  scroll-margin-top: var(--space-12);
  border-top: var(--border-width) solid var(--color-divider);
  padding-top: var(--space-6);
}

.token-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}

.token-swatch {
  min-width: 0;
  display: grid;
  grid-template-columns: var(--control-height-large) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--space-3);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  padding: var(--space-3);
  background: var(--color-surface);
}

.token-swatch > span {
  width: var(--control-height-large);
  height: var(--control-height-large);
  grid-row: 1 / 3;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-brand);
}

.token-swatch strong,
.token-swatch small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.token-swatch small {
  color: var(--color-text-muted);
}

.token-swatch--success > span {
  background: var(--color-success);
}

.token-swatch--warning > span {
  background: var(--color-warning);
}

.token-swatch--danger > span {
  background: var(--color-danger);
}

.token-swatch--info > span {
  background: var(--color-info);
}

.token-swatch--payroll > span {
  background: var(--color-payroll);
}

.lab-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.typography-sample,
.spacing-sample {
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  padding: var(--space-5);
  background: var(--color-surface);
}

.typography-sample small {
  color: var(--color-text-muted);
}

.type-sample-h1,
.type-sample-h2,
.type-sample-h3 {
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
}

.type-sample-h1 {
  font-size: var(--font-size-h1);
}

.type-sample-h2 {
  font-size: var(--font-size-h2);
}

.type-sample-h3 {
  font-size: var(--font-size-h3);
}

.spacing-sample {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.spacing-sample div {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
}

.spacing-sample span {
  height: var(--space-2);
  display: block;
  border-radius: var(--radius-small);
  background: var(--color-brand);
}

.space-bar--4 {
  width: 8px;
}

.space-bar--8 {
  width: 16px;
}

.space-bar--12 {
  width: 24px;
}

.space-bar--16 {
  width: 32px;
}

.space-bar--20 {
  width: 40px;
}

.space-bar--24 {
  width: 48px;
}

.space-bar--32 {
  width: 64px;
}

.space-bar--40 {
  width: 80px;
}

.space-bar--48 {
  width: 96px;
}

.lab-form {
  margin-top: var(--space-5);
  padding: var(--space-5);
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

@media (max-width: 1023px) {
  .grid,
  .form-grid,
  .compact-filter-form,
  .employees-filters,
  .before-after-grid,
  .lab-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-heading,
  .export-history-heading,
  .export-snapshot-heading,
  .history-entry-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .state-grid,
  .cancel-event-summary,
  .technical-details dl {
    grid-template-columns: 1fr;
  }

  .export-badges {
    align-self: flex-start;
    justify-content: flex-start;
  }

  .export-history-actions > * {
    width: 100%;
  }

  .flash-message-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lab-section-nav {
    margin-right: calc(var(--space-4) * -1);
    margin-left: calc(var(--space-4) * -1);
    padding: 0 var(--space-4);
  }
}

/* F6 premium core experience */

.core-kpi-section {
  margin-bottom: var(--space-5);
}

.core-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: var(--space-5);
}

.dashboard-attention-panel,
.dashboard-data-panel,
.dashboard-quick-panel {
  min-width: 0;
}

.dashboard-issue-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-issue-list > li {
  min-width: 0;
  display: grid;
  grid-template-columns: var(--control-height) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  border-top: var(--border-width) solid var(--color-divider);
  padding: var(--space-3) 0;
}

.dashboard-issue-list > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.dashboard-issue-icon {
  width: var(--control-height);
  height: var(--control-height);
  display: grid;
  place-items: center;
  border: var(--border-width) solid currentColor;
  border-radius: var(--radius-round);
}

.dashboard-issue-copy {
  min-width: 0;
}

.dashboard-issue-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-issue-copy p,
.dashboard-issue-meta {
  margin: var(--space-1) 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-body-small);
}

.dashboard-panel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-top: var(--border-width) solid var(--color-divider);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--font-size-body-small);
}

.dashboard-data-panel .state-icon,
.monthly-export-panel .state-icon {
  flex: 0 0 var(--control-height-large);
  margin: 0;
}

.state-icon--success {
  background: var(--color-success-background-subtle);
  color: var(--color-success-icon);
}

.dashboard-data-list {
  margin: 0;
}

.dashboard-data-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  border-top: var(--border-width) solid var(--color-divider);
  padding: var(--space-3) 0;
}

.dashboard-data-list dt {
  color: var(--color-text-muted);
}

.dashboard-data-list dd {
  margin: 0;
  text-align: right;
  font-weight: var(--font-weight-semibold);
}

.dashboard-data-note {
  border-left: 3px solid var(--color-info);
  margin: var(--space-3) 0;
  padding-left: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--font-size-body-small);
}

.dashboard-quick-panel {
  margin-top: var(--space-5);
}

.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  overflow: hidden;
}

.dashboard-quick-actions a {
  min-width: 0;
  min-height: 74px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  align-items: center;
  gap: var(--space-3);
  border-left: var(--border-width) solid var(--color-divider);
  padding: var(--space-3);
  color: var(--color-text-primary);
  text-decoration: none;
}

.dashboard-quick-actions a:first-child {
  border-left: 0;
}

.dashboard-quick-actions a:hover {
  background: var(--color-brand-background-subtle);
  color: var(--color-brand-text);
}

.dashboard-quick-actions span,
.dashboard-quick-actions strong,
.dashboard-quick-actions small {
  min-width: 0;
  display: block;
}

.dashboard-quick-actions small {
  margin-top: var(--space-1);
  color: var(--color-text-muted);
}

.dashboard-empty-state {
  min-height: 250px;
}

.queue-filter-bar,
.workday-filter-bar,
.monthly-filter-bar {
  margin-top: 0;
}

.queue-filter-bar {
  grid-template-columns:
    minmax(220px, 1.4fr)
    repeat(3, minmax(150px, 0.85fr))
    auto;
}

.monthly-advanced-grid {
  grid-template-columns: minmax(180px, 260px);
}

.queue-filter-actions,
.workday-filter-actions,
.monthly-filter-actions {
  align-self: end;
  flex-wrap: nowrap;
}

.queue-advanced-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.core-applied-filters {
  align-items: center;
  margin: var(--space-3) 0 var(--space-5);
}

.applied-filters-label {
  color: var(--color-text-muted);
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-semibold);
}

.core-applied-filters .filter-chip {
  color: var(--color-brand-text);
  text-decoration: none;
}

.queue-results {
  margin-top: var(--space-5);
}

.queue-results-heading {
  margin-bottom: var(--space-3);
}

.queue-results-heading .section-help {
  margin-bottom: 0;
}

.core-issue-card-list {
  margin-top: 0;
}

.core-issue-card {
  grid-template-columns: minmax(220px, 0.85fr) minmax(300px, 1.45fr) minmax(180px, auto);
}

.issue-card-content {
  min-width: 0;
}

.issue-card-badges,
.issue-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.issue-card-meta {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
}

.issue-card-meta > span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.issue-card-actions {
  display: grid;
  gap: var(--space-2);
}

.issue-card-actions .button {
  width: 100%;
}

.issue-card-state {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
  font-weight: var(--font-weight-semibold);
}

.issue-card-state.is-reviewed {
  color: var(--color-success-text);
}

.issue-card-state.is-reopened {
  color: var(--color-warning-text);
}

.core-issue-card .case-reopened-note {
  margin-bottom: 0;
}

.issue-review-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  border-left: 3px solid var(--color-success);
  padding: var(--space-2) var(--space-3);
  background: var(--color-success-background-subtle);
  color: var(--color-success-text);
  font-size: var(--font-size-body-small);
}

.issue-review-note > span,
.issue-review-note strong {
  display: block;
}

.queue-pagination {
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-large);
  margin-top: var(--space-4);
  background: var(--color-surface);
}

.workday-filter-bar {
  grid-template-columns:
    minmax(190px, 1.15fr)
    minmax(270px, 1.35fr)
    minmax(170px, 1fr)
    minmax(160px, 0.85fr)
    auto;
}

.workday-date-range > div,
.month-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
}

.workday-date-range input {
  min-width: 0;
}

.workday-advanced-grid {
  grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(180px, 1fr));
  align-items: end;
}

.workday-table-shell {
  margin-top: var(--space-5);
}

.workday-core-table {
  min-width: 960px;
  table-layout: fixed;
}

.workday-core-table th:first-child {
  width: 95px;
}

.workday-core-table th:nth-child(2) {
  width: 170px;
}

.workday-core-table th:nth-child(3) {
  width: 135px;
}

.workday-core-table th:nth-child(4),
.workday-core-table th:nth-child(5),
.workday-core-table th:nth-child(6) {
  width: 95px;
}

.workday-core-table th:nth-child(7) {
  width: 140px;
}

.workday-core-table th:last-child {
  width: 110px;
}

.workday-core-table th:last-child,
.workday-core-table td:last-child {
  padding-right: var(--space-2);
  padding-left: var(--space-2);
}

.workday-core-table [class~="status-badge"] {
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
}

.workday-core-table td {
  vertical-align: middle;
}

.workday-employee .identity-mark {
  width: var(--control-height);
  height: var(--control-height);
  flex-basis: var(--control-height);
}

.workday-details-cell {
  text-align: right;
}

.workday-mobile-list,
.monthly-mobile-preview {
  display: none;
}

.workday-empty-state,
.monthly-empty-state {
  border: 0;
  border-top: var(--border-width) solid var(--color-divider);
  border-radius: 0;
}

.workday-detail-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.workday-action-callout {
  margin-top: var(--space-4);
}

.workday-action-callout .button {
  margin-top: var(--space-2);
}

.workday-definition-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workday-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
}

.workday-time-grid > div {
  min-width: 0;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-medium);
  padding: var(--space-3);
  background: var(--color-surface-subtle);
}

.workday-time-grid > .is-payroll {
  border-color: var(--color-payroll-border);
  background: var(--color-payroll-background-subtle);
}

.workday-time-grid dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
}

.workday-time-grid dd {
  margin: var(--space-1) 0 0;
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}

.workday-timeline-empty {
  min-height: 130px;
}

.workday-reason-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.workday-reason-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--space-2);
  border-bottom: var(--border-width) solid var(--color-divider);
  padding-bottom: var(--space-2);
}

.workday-reason-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.workday-reason-list strong {
  display: block;
}

.workday-reason-list strong::after {
  content: ".";
}

.workday-decision-section {
  scroll-margin-top: var(--space-5);
}

.monthly-readiness {
  align-items: center;
  margin: 0 0 var(--space-3);
}

.readiness-icon {
  width: var(--control-height-large);
  height: var(--control-height-large);
  flex: 0 0 var(--control-height-large);
  display: grid;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--color-surface);
}

.readiness-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.readiness-copy h2,
.readiness-copy p {
  margin-bottom: var(--space-1);
}

.readiness-copy small {
  color: var(--color-text-muted);
}

.monthly-period-note {
  margin-bottom: var(--space-4);
}

.monthly-filter-bar {
  grid-template-columns:
    minmax(270px, 1.25fr)
    repeat(3, minmax(160px, 1fr))
    auto;
}

.month-fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.month-fieldset legend {
  margin-bottom: var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-semibold);
}

.month-controls {
  grid-template-columns: minmax(150px, 1fr) minmax(92px, 0.55fr);
}

.month-controls select,
.month-controls input {
  min-width: 0;
}

.monthly-scope-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  border: var(--border-width) solid var(--color-border);
  border-top: 0;
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  margin: calc(var(--radius-large) * -1) 0 var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-subtle);
}

.monthly-scope-strip dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-meta);
}

.monthly-scope-strip dd {
  margin: var(--space-1) 0 0;
  overflow-wrap: anywhere;
  font-weight: var(--font-weight-semibold);
}

.monthly-kpi-section {
  margin-top: var(--space-5);
}

.monthly-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
  align-items: start;
  gap: var(--space-5);
}

.monthly-preview-shell {
  min-width: 0;
  margin-top: 0;
}

.monthly-table-heading {
  align-items: end;
}

.monthly-search {
  display: flex;
  align-items: end;
  gap: var(--space-2);
}

.monthly-search .search-input {
  min-width: 220px;
}

.monthly-employee-table {
  min-width: 860px;
}

.monthly-employee-table td {
  vertical-align: middle;
}

.monthly-employee-table th:first-child {
  width: 220px;
}

.monthly-export-panel {
  position: sticky;
  top: var(--space-5);
}

.monthly-export-form {
  display: grid;
  gap: var(--space-3);
}

.monthly-export-action {
  width: 100%;
}

.draft-export-warning {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.draft-export-warning > div {
  min-width: 0;
}

.draft-export-warning p {
  margin-bottom: 0;
}

.monthly-draft-confirmation {
  align-items: flex-start;
}

.monthly-history-link {
  min-height: 64px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  align-items: center;
  gap: var(--space-2);
  border-top: var(--border-width) solid var(--color-divider);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  color: var(--color-text-primary);
  text-decoration: none;
}

.monthly-history-link strong,
.monthly-history-link small {
  display: block;
}

.monthly-history-link small {
  color: var(--color-text-muted);
}

.monthly-employee-totals {
  margin-top: var(--space-4);
}

.monthly-days-table {
  min-width: 620px;
}

@media (max-width: 1440px) {
  .workday-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1280px) {
  .core-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .queue-filter-bar,
  .workday-filter-bar,
  .monthly-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .queue-filter-actions,
  .workday-filter-actions,
  .monthly-filter-actions {
    grid-column: 1 / -1;
  }

  .queue-advanced-grid,
  .workday-advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-workspace {
    grid-template-columns: 1fr;
  }

  .monthly-export-panel {
    position: static;
  }
}

@media (max-width: 1024px) {
  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

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

  .dashboard-quick-actions a:nth-child(3) {
    border-left: 0;
    border-top: var(--border-width) solid var(--color-divider);
  }

  .dashboard-quick-actions a:nth-child(4) {
    border-top: var(--border-width) solid var(--color-divider);
  }

  .core-issue-card {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .issue-card-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .workday-desktop-list,
  .monthly-desktop-preview,
  .employees-table-wrap,
  .events-table-shell > .table-wrap,
  .master-desktop-list,
  .audit-desktop-list,
  .import-desktop-list {
    display: none;
  }

  .workday-mobile-list,
  .monthly-mobile-preview,
  .employees-mobile-list,
  .events-mobile-list,
  .master-mobile-list,
  .audit-mobile-list,
  .import-mobile-list {
    display: grid;
    gap: var(--space-3);
    border-top: var(--border-width) solid var(--color-divider);
    padding: var(--space-4);
  }

  .workday-mobile-card,
  .monthly-mobile-card,
  .employee-mobile-card,
  .event-mobile-card,
  .master-mobile-card,
  .audit-mobile-card,
  .import-mobile-card {
    min-width: 0;
    display: grid;
    gap: var(--space-3);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-large);
    padding: var(--space-4);
    background: var(--color-surface);
  }

  .workday-mobile-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
  }

  .workday-mobile-values,
  .monthly-mobile-card dl,
  .employee-mobile-values,
  .event-mobile-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    margin: 0;
  }

  .workday-mobile-values dt,
  .monthly-mobile-card dt,
  .employee-mobile-values dt,
  .event-mobile-values dt {
    color: var(--color-text-muted);
    font-size: var(--font-size-meta);
  }

  .workday-mobile-values dd,
  .monthly-mobile-card dd,
  .employee-mobile-values dd,
  .event-mobile-values dd {
    margin: var(--space-1) 0 0;
    font-weight: var(--font-weight-bold);
    font-variant-numeric: tabular-nums;
  }

  .monthly-mobile-status {
    justify-self: start;
  }

  .employee-mobile-heading,
  .event-mobile-heading,
  .employee-mobile-actions,
  .event-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
  }

  .employee-mobile-actions,
  .event-mobile-actions {
    justify-content: flex-start;
  }

  .event-mobile-note {
    margin: 0;
    overflow-wrap: anywhere;
  }

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

  .system-health-grid > div:nth-child(3) {
    border-left: 0;
  }

  .system-business-grid {
    grid-template-columns: 1fr;
  }

  .system-business-grid section + section {
    border-top: var(--border-width) solid var(--color-divider);
    border-left: 0;
    padding-top: var(--space-5);
    padding-left: 0;
  }

  .technical-definition-list {
    column-count: 1;
  }
}

@media (max-width: 560px) {
  .core-kpi-grid,
  .queue-filter-bar,
  .workday-filter-bar,
  .monthly-filter-bar,
  .queue-advanced-grid,
  .workday-advanced-grid,
  .monthly-scope-strip,
  .workday-definition-list,
  .workday-time-grid {
    grid-template-columns: 1fr;
  }

  .core-kpi-grid .kpi-card {
    min-height: 116px;
  }

  .dashboard-issue-list > li {
    grid-template-columns: var(--control-height) minmax(0, 1fr);
  }

  .dashboard-issue-list > li > .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-data-list > div {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .dashboard-data-list dd {
    text-align: left;
  }

  .dashboard-quick-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-actions a {
    border-top: var(--border-width) solid var(--color-divider);
    border-left: 0;
  }

  .dashboard-quick-actions a:first-child {
    border-top: 0;
  }

  .issue-card-actions {
    grid-template-columns: 1fr;
  }

  .issue-card-actions .button--secondary {
    display: none;
  }

  .workday-date-range > div {
    grid-template-columns: 1fr;
  }

  .workday-date-range > div > span {
    display: none;
  }

  .workday-mobile-list,
  .monthly-mobile-preview {
    padding: var(--space-3);
  }

  .workday-mobile-values,
  .monthly-mobile-card dl,
  .employee-mobile-values,
  .event-mobile-values,
  .master-impact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .monthly-readiness {
    align-items: flex-start;
  }

  .monthly-readiness > .button {
    width: 100%;
  }

  .month-controls {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .monthly-table-heading {
    align-items: stretch;
  }

  .monthly-search {
    align-items: stretch;
    flex-direction: column;
  }

  .monthly-search .search-input {
    min-width: 0;
  }

  .drawer-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .import-steps li {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: var(--space-1);
  }

  .import-steps li strong {
    font-size: var(--font-size-meta);
  }

  .system-health-grid {
    grid-template-columns: 1fr;
  }

  .system-health-grid > div,
  .system-health-grid > div:nth-child(3) {
    border-top: var(--border-width) solid var(--color-divider);
    border-left: 0;
  }

  .system-health-grid > div:first-child {
    border-top: 0;
  }

  .system-count-list > div,
  .technical-definition-list > div,
  .environment-definition-list > div {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .system-count-list dd,
  .technical-definition-list dd,
  .environment-definition-list dd {
    text-align: left;
  }
}
