.ct-admin-page {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #181b20;
  background: #f3f4f6;
}

.ct-admin-topbar {
  background: #000;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 28px;
}

.ct-admin-topbar a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.ct-admin-header {
  background: #fff;
  border-bottom: 1px solid #ececed;
  padding: 18px 28px;
}

.ct-admin-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.ct-admin-wrap {
  max-width: 1380px;
  margin: 28px auto 48px;
  padding: 0 20px;
}

.ct-admin-card {
  background: #fff;
  border: 1px solid #e6e7ea;
  border-radius: 12px;
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.35);
  padding: 22px;
}

.ct-admin-auth-form {
  max-width: 420px;
  display: grid;
  gap: 12px;
}

.ct-admin-auth-form label {
  font-size: 14px;
}

.ct-admin-auth-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7d9dd;
  border-radius: 8px;
  padding: 8px 10px;
}

.ct-admin-auth-form button,
.ct-admin-panel-head button,
.ct-admin-toolbar button,
.ct-admin-toolbar input,
.ct-admin-table-wrap button,
.ct-admin-inline-form button,
.ct-admin-discounts button {
  min-height: 40px;
  border-radius: 8px;
}

.ct-admin-auth-form button,
.ct-admin-panel-head button,
.ct-admin-toolbar button,
.ct-admin-discounts button {
  border: 1px solid #181b20;
  background: #181b20;
  color: #fff;
  cursor: pointer;
  padding: 0 14px;
}

.ct-admin-auth-form button:hover,
.ct-admin-panel-head button:hover,
.ct-admin-toolbar button:hover,
.ct-admin-discounts button:hover {
  background: #000;
}

.ct-admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ct-admin-panel-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
}

.ct-admin-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ct-admin-tabs button {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid #d7d9dd;
  background: #fff;
  color: #181b20;
  padding: 0 14px;
  cursor: pointer;
}

.ct-admin-tabs button.is-active {
  border-color: #181b20;
  background: #181b20;
  color: #fff;
}

.ct-admin-tab {
  margin-top: 18px;
}

.ct-admin-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ct-admin-toolbar input {
  min-width: 280px;
  border: 1px solid #d7d9dd;
  padding: 0 10px;
}

.ct-admin-toolbar label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.ct-admin-toolbar select {
  min-width: 280px;
  min-height: 40px;
  border: 1px solid #d7d9dd;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.ct-admin-table-wrap {
  overflow: auto;
  border: 1px solid #ececed;
  border-radius: 10px;
  background: #fff;
}

.ct-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1680px;
}

.ct-admin-table th,
.ct-admin-table td {
  border-bottom: 1px solid #ececed;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.ct-admin-table th {
  background: #f8f9fb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.ct-admin-table .file-col {
  color: #656a70;
  font-size: 12px;
  white-space: nowrap;
}

.ct-admin-table .ct-admin-muted-col {
  color: #656a70;
  white-space: nowrap;
}

.ct-admin-table input,
.ct-admin-table select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d7d9dd;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 13px;
}

.ct-admin-table button {
  border: 1px solid #181b20;
  background: #fff;
  color: #181b20;
  cursor: pointer;
  padding: 0 10px;
}

.ct-admin-table button:hover {
  background: #181b20;
  color: #fff;
}

.ct-admin-password-set {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ct-admin-password-set input {
  min-width: 140px;
}

.ct-admin-inline-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}

.ct-admin-inline-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.ct-admin-inline-form input,
.ct-admin-inline-form select {
  min-width: 320px;
  min-height: 38px;
  border: 1px solid #d7d9dd;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
}

.ct-admin-inline-form button {
  border: 1px solid #181b20;
  background: #181b20;
  color: #fff;
  cursor: pointer;
  padding: 0 14px;
}

.ct-admin-discounts select {
  min-width: 420px;
  min-height: 38px;
  border: 1px solid #d7d9dd;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.ct-admin-discount-grid {
  display: grid;
  gap: 8px;
  max-width: 620px;
}

.ct-discount-row {
  display: grid;
  grid-template-columns: 1fr 120px 20px;
  align-items: center;
  gap: 10px;
}

.ct-discount-row input {
  min-height: 36px;
  border: 1px solid #d7d9dd;
  border-radius: 8px;
  padding: 6px 10px;
}

.ct-admin-message {
  margin-top: 10px;
  min-height: 20px;
  font-size: 13px;
}

.ct-admin-message.is-success {
  color: #186b2d;
}

.ct-admin-message.is-error {
  color: #a12a2a;
}
