:root {
  --text: #08090f;
  --muted: #7b8191;
  --line: #e7e8ec;
  --panel: #ffffff;
  --bg: #fbfbfc;
  --primary: #737cf8;
  --success: #10a856;
  --danger: #ff1f2d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 42px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 23px;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-item {
  padding: 12px 16px;
  border-radius: 8px;
  color: #555867;
  font-weight: 700;
}

.nav-item.active {
  background: #f7f7ff;
  color: var(--primary);
}

.icon-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.page {
  padding: 34px 26px 44px;
}

.hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.hero p {
  margin: 12px 0 0;
  color: #7d8da9;
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.stats-grid.three {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 28px 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.label {
  color: #7a7b86;
  font-size: 18px;
  font-weight: 700;
}

.value {
  margin-top: 13px;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

.hint {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
}

.muted {
  color: #858896;
}

.success {
  color: var(--success);
}

.danger {
  color: var(--danger);
}

.table-panel {
  margin-top: 58px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.number-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #60636e;
  font-size: 16px;
  font-weight: 700;
}

.number-filter input {
  width: 240px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d8dce5;
  border-radius: 8px;
  outline: 0;
  font-size: 15px;
}

.number-filter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(115, 124, 248, 0.14);
}

.filter-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 10px 26px;
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  padding: 10px 14px;
  border: 2px solid var(--primary);
  border-radius: 9px;
  color: #9a9eaa;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 17px;
}

.badge {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #edf0ff;
  color: #7a83e9;
  font-weight: 700;
}

.filter-icon,
.columns-icon {
  color: #777985;
  font-size: 24px;
}

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

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

th,
td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 18px;
}

th {
  font-weight: 800;
}

.recipient {
  font-weight: 800;
}

.checkbox {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #d9dce2;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.operator {
  padding: 4px 8px;
  border: 1px solid #dfe2e8;
  border-radius: 7px;
  background: #fafafa;
  color: #60636e;
  font-size: 15px;
  font-weight: 700;
}

.status {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
}

.status.sent {
  color: #0b9676;
  background: #e8fbf4;
  border: 1px solid #c6f2e3;
}

.status.pending {
  color: #8a6b00;
  background: #fff7dc;
  border: 1px solid #f5e5a9;
}

.status.submitted {
  color: #4b5cd7;
  background: #eef0ff;
  border: 1px solid #d5dafd;
}

.status.failed {
  color: #d91e2b;
  background: #fff0f1;
  border: 1px solid #ffd1d5;
}

.check {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
}

.check.ok {
  background: var(--success);
  color: white;
}

.check.wait {
  color: #999da8;
}

.empty {
  text-align: center;
  color: var(--muted);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 16px 24px;
}

.pager button {
  min-width: 96px;
  height: 36px;
  border: 1px solid #d8dce5;
  border-radius: 8px;
  background: #fff;
  color: #333744;
  font-weight: 700;
  cursor: pointer;
}

.pager button:disabled {
  color: #a2a6b2;
  cursor: not-allowed;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f6f7fb;
}

.login-panel {
  width: min(420px, calc(100vw - 32px));
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(20, 24, 40, 0.08);
}

.brand {
  font-size: 24px;
  font-weight: 800;
}

.login-panel h1 {
  margin: 28px 0 8px;
}

.login-panel p {
  margin: 0 0 24px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.login-form input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d8dce5;
  border-radius: 8px;
  font-size: 16px;
}

.login-form button {
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.form-error {
  min-height: 20px;
  color: var(--danger);
  font-weight: 700;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .search-box {
    width: 100%;
  }
}
.export-btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  background: #08d875;
  color: #064d2f;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
