.cases-index-main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cases-index-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
}

.cases-index-heading {
  border-left: 4px solid #c08a2b;
  padding-left: 24px;
  flex: 1 1 360px;
}

.cases-index-heading h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cases-index-heading p {
  margin: 6px 0 0;
  font-size: 18px;
  color: #4e5868;
}

.cases-index-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cases-index-btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.cases-index-btn-secondary {
  border: 1px solid #cfc8ba;
  background: #fff;
  color: #0e2240;
}

.cases-index-btn-primary {
  padding: 0 22px;
  border: 0;
  background: #9c6b15;
  color: #fff;
}

.cases-index-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.cases-index-metric-card {
  background: #fff;
  border: 1px solid #e7e2d8;
  border-radius: 12px;
  padding: 20px 22px;
}

.cases-index-metric-teal {
  border-bottom: 4px solid #1f8a91;
}

.cases-index-metric-gold {
  border-bottom: 4px solid #c08a2b;
}

.cases-index-metric-label {
  font-size: 15px;
  font-weight: 600;
  color: #4e5868;
}

.cases-index-metric-value {
  margin-top: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 40px;
  font-weight: 800;
}

.cases-index-overdue {
  color: #b3261e;
}

.cases-index-list-panel {
  background: #fff;
  border: 1px solid #e7e2d8;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cases-index-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cases-index-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cases-index-pill {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #0e2240;
  border: 1px solid #d9d4c9;
}

.cases-index-pill.is-active {
  background: #0e2240;
  color: #fff;
  border-color: #0e2240;
}

.cases-index-filter-selects {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cases-index-filter-selects select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d9d4c9;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: #0e2240;
}

.cases-index-table-wrapper {
  overflow-x: auto;
}

.cases-index-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 15px;
}

.cases-index-table thead tr {
  background: #f1eee7;
}

.cases-index-table th,
.cases-index-table td {
  padding: 14px 16px;
  text-align: left;
}

.cases-index-table tbody tr {
  border-bottom: 1px solid #ece8df;
}

.cases-index-table td {
  color: #3a4455;
  white-space: nowrap;
}

.cases-index-case-link {
  color: #0e2240;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cases-index-case-link span {
  font-size: 14px;
  color: #5a6475;
}

.cases-index-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.cases-index-status-success {
  background: #e5f3ea;
  color: #1e6b3a;
}

.cases-index-status-warning {
  background: #fcefd6;
  color: #7a4e00;
}

.cases-index-status-info {
  background: #e4eefa;
  color: #1d4f91;
}

.cases-index-status-neutral {
  background: #eeedea;
  color: #4e5868;
}

.cases-index-date-overdue {
  color: #b3261e;
  font-weight: 600;
}

.cases-index-action-menu {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4e5868;
  font-size: 20px;
  cursor: pointer;
}

.cases-index-pagination-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #4e5868;
}

.cases-index-pagination-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.cases-index-page-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d9d4c9;
  border-radius: 8px;
  background: #fff;
  color: #0e2240;
  font: inherit;
  cursor: pointer;
}

.cases-index-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
