*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  background-color: #F5F5F3;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ── Navbar ─────────────────────────────────────────────── */
.eb-navbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 20px 32px;
  position: relative;
}

.eb-navbar-title {
  position: static;
  transform: none;
  color: #1A1A1A;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  text-decoration: none;
  white-space: nowrap;
}

.eb-navbar-title:hover {
  color: #1A1A1A;
}

.eb-navbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.eb-navbar-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.eb-navbar-user {
  color: #9A9A9A;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eb-navbar-user-info {
  font-size: 11px;
  color: #9A9A9A;
  text-align: right;
}

/* ── Page wrapper ────────────────────────────────────────── */
.eb-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ── Cards ───────────────────────────────────────────────── */
.eb-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

/* ── Page heading ────────────────────────────────────────── */
.eb-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

/* ── Buttons ─────────────────────────────────────────────── */
.eb-btn {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.eb-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.eb-btn:active {
  transform: translateY(0);
  opacity: 0.7;
}

.eb-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.eb-btn-primary {
  background-color: #1A1A1A;
  color: #FFFFFF;
}

.eb-btn-export {
  background-color: #B5EAD7;
  color: #1A1A1A;
}

.eb-btn-sync {
  background-color: #1A1A1A;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 16px;
}

.eb-btn-ghost {
  background-color: transparent;
  color: #1A1A1A;
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 16px;
}

.eb-btn-ghost:hover {
  border-color: #999;
  opacity: 1;
}

/* ── Filter card ─────────────────────────────────────────── */
.eb-filter-card {
  margin-bottom: 20px;
}

.eb-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
}

.eb-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eb-filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9A9A9A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eb-select {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  color: #1A1A1A;
  background-color: #F5F5F3;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 7px 12px;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  min-width: 130px;
}

.eb-select:focus {
  border-color: #1A1A1A;
}


.eb-filter-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding-bottom: 1px;
}

/* ── Sync info ───────────────────────────────────────────── */
.eb-sync-info {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #9A9A9A;
}

/* ── Table card ──────────────────────────────────────────── */
.eb-table-card {
  overflow: hidden;
  padding: 0;
}

.eb-table-wrap {
  overflow-x: auto;
}

.eb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.eb-table thead tr {
  background-color: #1A1A1A;
  color: #FFFFFF;
}

.eb-table thead th {
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  white-space: nowrap;
}

.eb-table thead th:not(:first-child) {
  text-align: right;
}

.eb-table tbody tr:nth-child(odd) {
  background-color: #FFFFFF;
}

.eb-table tbody tr:nth-child(even) {
  background-color: #F5F5F3;
}

.eb-table tbody tr:hover {
  background-color: #EEF0F0;
}

.eb-table tbody td {
  padding: 13px 20px;
  border: none;
  border-bottom: 1px solid #E8E8E8;
  white-space: nowrap;
  color: #1A1A1A;
}

.eb-table tbody td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.eb-empty {
  color: #BBBBBB !important;
}

.eb-table tfoot tr {
  background-color: #F5F5F3;
}

.eb-table tfoot td {
  padding: 14px 20px;
  font-weight: 700;
  border: none;
  border-top: 2px solid #E0E0E0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.eb-table tfoot td:not(:first-child) {
  text-align: right;
}

.eb-table .eb-col-num {
  width: 1px;
  white-space: nowrap;
  padding: 13px 2px 13px 20px;
  text-align: center;
  color: #9A9A9A;
}

.eb-table .eb-col-num + td,
.eb-table .eb-col-num + th {
  padding-left: 35px;
}

.eb-table tbody td:first-child + td {
   text-align: left;
 }

.eb-table thead th:first-child + th {
  text-align: left;
}
/* ── Status line ─────────────────────────────────────────── */
.eb-status {
  margin-top: 16px;
  font-size: 0.78rem;
  color: #9A9A9A;
  display: flex;
  justify-content: space-between;
  position: relative;
}

/* ── Sync alert ──────────────────────────────────────────── */
.eb-sync-alert {
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 0 24px;
}

.eb-sync-alert .alert {
  border-radius: 10px;
  font-size: 0.85rem;
}

/* ── Login page ──────────────────────────────────────────── */
.eb-login-bg {
  background-color: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eb-login-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
}

.eb-login-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.eb-login-company {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  color: #9A9A9A;
  text-align: center;
  margin-top: 16px;
}

.eb-login-sub {
  font-size: 0.8rem;
  color: #9A9A9A;
  text-align: center;
  margin-bottom: 28px;
}

.eb-login-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9A9A9A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

.eb-login-input {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  width: 100%;
  background-color: #F5F5F3;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease;
  color: #1A1A1A;
}

.eb-login-input:focus {
  border-color: #1A1A1A;
}

.eb-login-btn {
  width: 100%;
  justify-content: center;
  padding: 11px 16px;
  font-size: 0.9rem;
  margin-top: 8px;
}

.eb-support-link {
  font-size: 0.78rem;
  color: #9A9A9A;
  text-decoration: none;
  transition: color 0.2s;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.eb-support-link:hover {
  color: #8dd0dd;
}

.eb-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9A9A9A;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.eb-pw-toggle:hover {
  color: #1A1A1A;
}

.eb-login-error {
  background-color: #FDECEA;
  color: #B71C1C;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  margin-bottom: 16px;
}
