/* ========================
   Page chrome
   ======================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Roboto, 'Segoe UI', sans-serif;
  background: #f1f5f9;
  color: #1e293b;
}

.page-header {
  text-align: center;
  padding: 40px 20px 20px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
}

.page-header p {
  color: #64748b;
  margin-top: 8px;
  font-size: 15px;
}

.comparison {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 24px 32px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.panel {
  width: 100%;
}

.panel-label {
  text-align: center;
  margin-bottom: 16px;
}

.panel-label span {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.panel-label .before {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.panel-label .after {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.caption {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  line-height: 1.6;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.caption code {
  font-size: 12px;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 3px;
}

.mockup {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================
   BEFORE — v1 employer-list
   ======================== */

.container-fluid {
  padding: 16px;
}

.container-fluid .card {
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #fff;
}

.container-fluid .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.container-fluid .card-header h1 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.btn-outline-dark {
  padding: 6px 14px;
  border: 1px solid #6c757d;
  border-radius: 4px;
  background: #fff;
  color: #343a40;
  font-size: 12px;
  cursor: pointer;
}

.container-fluid .card-body {
  padding: 16px;
}

.v1-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.v1-search-bar input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 13px;
}

.v1-search-bar .btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table thead th {
  padding: 10px 8px;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  font-size: 12px;
  color: #495057;
  white-space: nowrap;
}

.table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid #dee2e6;
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background: #f8f9fa;
}

.table .text-center {
  text-align: center;
}

.table .actions-td {
  white-space: nowrap;
}

.table .actions-td a {
  color: #495057;
  margin: 0 4px;
  text-decoration: none;
}

.table .actions-td a:hover {
  color: #213a5c;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.table-pagination {
  margin-top: 12px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plain-select select {
  padding: 4px 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 13px;
  margin: 0 6px;
}

.v1-pagination {
  font-size: 13px;
  color: #3b82f6;
  letter-spacing: 6px;
}

/* ========================
   AFTER — v2 employer-list
   Using actual design tokens
   ======================== */

.emp-list.list-page.v2 {
  padding: 24px 28px;
}

/* Header */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.list-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #EDF1F7;
  color: #4a90c4;
  font-size: 0.75rem;
  font-weight: 600;
}

.list-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #213a5c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s;
}

.list-add-btn:hover {
  background: #1a2e4a;
}

/* Filter bar */
.filter-bar {
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 16px;
}

/* Search bar (from employer-search-v2.component.scss) */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.search-bar__input {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.search-bar__input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: #1e293b;
  background: transparent;
  font-family: inherit;
  min-width: 0;
}

.search-bar__input input::placeholder {
  color: #cbd5e1;
}

.search-bar__icon {
  width: 18px;
  height: 18px;
  color: #cbd5e1;
  flex-shrink: 0;
}

.search-bar__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.search-bar__clear:hover {
  background: #cbd5e1;
  color: #1e293b;
}

.search-bar__divider {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
  flex-shrink: 0;
}

.search-bar__checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.1s, background 0.1s;
}

.search-bar__checkbox input {
  display: none;
}

.search-bar__checkbox:hover {
  background: #f8fafc;
  color: #1e293b;
}

.search-bar__checkbox--fav {
  font-size: 0.85rem;
  color: #1e293b;
}

.search-bar__checkbox--fav svg {
  color: #94a3b8;
}

.search-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s;
}

.search-bar__btn:hover {
  background: #f8fafc;
}

.search-bar__btn--ghost {
  border-color: transparent;
  color: #64748b;
}

.search-bar__btn--ghost:hover {
  background: #f8fafc;
  border-color: #e5e7eb;
}

/* Table */
.list-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.list-table {
  width: 100%;
  border-collapse: collapse;
}

.list-th {
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.list-th--sortable {
  cursor: pointer;
  user-select: none;
}

.list-th--center {
  text-align: center;
}

.list-sort-icon {
  vertical-align: middle;
  margin-left: 4px;
  color: #94a3b8;
}

.col-favorite {
  width: 44px;
}

.col-status {
  width: 90px;
}

.col-effective-date {
  width: 130px;
}

.col-days-to-renewal {
  width: 120px;
}

.col-actions {
  width: 52px;
}

.list-row {
  cursor: pointer;
  transition: background 0.08s;
}

.list-row:hover {
  background: #f8fafc;
}

.list-td {
  padding: 10px 16px;
  font-size: 0.82rem;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.list-td--name {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.list-td--center {
  text-align: center;
}

.list-td--actions {
  text-align: center;
}

.emp-name {
  color: #1e293b;
}

.emp-aor-icon {
  color: #15803d;
  flex-shrink: 0;
}

.list-muted {
  color: #94a3b8;
}

/* Favorite button */
.emp-fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #cbd5e1;
  padding: 2px;
  display: flex;
  align-items: center;
}

.emp-fav-btn--active {
  color: #eab308;
}

/* Status badges */
.info-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.info-badge--active {
  background: #f0fdf4;
  color: #15803d;
}

.info-badge--inactive {
  background: #f1f5f9;
  color: #64748b;
}

/* Renewal badges */
.emp-renewal {
  font-size: 0.78rem;
  font-weight: 600;
}

.emp-renewal--ok {
  color: #15803d;
}

.emp-renewal--soon {
  color: #b45309;
}

.emp-renewal--past-due {
  color: #ef4444;
}

.emp-renewal--due-today {
  color: #b45309;
}

/* Kebab menu */
.list-kebab-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 4px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: background 0.1s;
}

.list-kebab-btn:hover {
  background: #f1f5f9;
  border-color: #e5e7eb;
}

/* Kebab dropdown menu */
.kebab-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 170px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 6px;
  z-index: 10;
  list-style: none;
}

.dropdown-menu--open {
  display: block;
}

.dropdown-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.08s;
}

.dropdown-menu li:hover {
  background: #f1f5f9;
}

.dropdown-menu li svg {
  color: #64748b;
  flex-shrink: 0;
}

/* Pagination footer */
.v2-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
}

.v2-pagination-info {
  font-size: 0.78rem;
  color: #64748b;
}

.v2-pagination-controls {
  display: flex;
  gap: 4px;
}

.v2-page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.1s;
}

.v2-page-btn:hover:not(:disabled) {
  background: #f8fafc;
}

.v2-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.v2-page-btn--active {
  background: #213a5c;
  color: #fff;
  border-color: #213a5c;
}

.v2-page-btn--active:hover {
  background: #1a2e4a;
}
