@font-face {
  font-family: "OnestRegular";
  src: url("/static/fonts/Onest-Regular.ttf");
}

:root {
  --gp-bg: #000;
  --gp-text: #fff;
  --gp-muted: #9dffc2;
  --gp-brand: #d4ffe6;
  --gp-primary: #459352;
  --gp-primary-hover: #52ab61;
  --gp-secondary: #14331d;
  --gp-secondary-hover: #1c4628;
  --gp-input: #001c0e;
  --gp-input-border: #006e37;
  --gp-line: #005a2d;
  --gp-thead: #1a4d2e;
  --gp-card-solid: #0c2012;
  --gp-border: rgba(69, 147, 82, 0.38);
  --gp-radius: 8px;
  --gp-radius-lg: 16px;
  --gp-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 48px rgba(69, 147, 82, 0.12);
  --gp-focus: 0 0 0 3px rgba(69, 147, 82, 0.22);
  --gp-font: "OnestRegular", sans-serif;
}


* {
  padding: 0px;
  margin: 0px;
  border: none;
}

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

a,
a:link,
a:visited {
  text-decoration: none;
  color: white;
}

a:hover {
  text-decoration: none;
}

::-webkit-scrollbar {
  width: 6px;
}

html {
  scrollbar-width: thin;
}

aside,
nav,
footer,
header,
section,
main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button,
input[type="submit"] {
  display: inline-block;
  box-shadow: none;
  background-color: transparent;
  background: none;
  cursor: pointer;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input:focus,
input:active,
button:focus,
button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

html {
  background: var(--gp-bg);
}

body {
  min-height: 100vh;
  color: var(--gp-text);
  font-family: var(--gp-font);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(69, 147, 82, 0.16), transparent 58%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(20, 51, 29, 0.5), transparent 70%),
    var(--gp-bg);
  padding: 12px 16px 28px;
}

th {
  white-space: nowrap;
}

textarea {
  font-size: 14px;
  border: 1px solid var(--gp-primary);
  border-radius: 5px;
  background-color: var(--gp-secondary);
  color: white;
}

.invisible {
  display: none !important;
}

.btn-red {
  background: #a30606 !important;
}

.main-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'OnestRegular';
  color: white;
}

.main-table thead {
  background-color: var(--gp-thead);
}

.main-table th,
.main-table td {
  padding: 5px;
  text-align: center;
  border: 1px solid var(--gp-primary);
}

.main-table .col-name {
  width: 1%;
  max-width: 9.5rem;
  white-space: nowrap;
  text-align: left;
  padding-left: 8px;
  padding-right: 8px;
}

.main-table .col-name a {
  display: inline-block;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.main-table td.cell-net-loss,
.main-table td.cell-net-loss strong {
  color: #ff4d4d;
  font-weight: 700;
}

.main-table td.cell-net-loss,
.main-table td.cell-channel-loss {
  background-color: rgba(163, 6, 6, 0.5);
}

.main-table td.cell-channel-loss a,
.main-table td.cell-channel-loss strong {
  color: #ff6b6b;
}

.main-table td.cell-net-gain,
.main-table td.cell-net-gain strong {
  color: #3dff6a;
  font-weight: 700;
}

.main-table td.cell-cr-low {
  background-color: rgba(163, 6, 6, 0.5);
  color: #ff6b6b;
  font-weight: 700;
}

.main-table td.cell-cr-mid {
  background-color: rgba(196, 150, 20, 0.48);
  color: #ffd54a;
  font-weight: 700;
}

.main-table tbody tr.row-unprofitable td.cell-cr-mid,
.main-table tbody tr:hover td.cell-cr-mid {
  background-color: rgba(196, 150, 20, 0.58);
}

.main-table tbody tr.row-unprofitable td.cell-cr-low,
.main-table tbody tr:hover td.cell-cr-low {
  background-color: rgba(163, 6, 6, 0.62);
}

.filter-form {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  row-gap: 12px;
  color: white;
  margin-left: 10px;
  font-family: 'OnestRegular';
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.filter-form__primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  row-gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  /* дочерние блоки не сжимаем — иначе <select> визуально наезжает на соседей */
  align-content: flex-start;
  order: 1;
}

.filter-form label {
  font-weight: bold;
  flex-shrink: 0;
}

.filter-form__preset-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
  box-sizing: border-box;
}

.filter-form__preset-field select {
  flex-shrink: 0;
  min-width: 9.5em;
  max-width: 16em;
  box-sizing: border-box;
}

.filter-form__date-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-form__date-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-form__sort-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  flex-shrink: 0;
  min-width: 0;
  box-sizing: border-box;
}

.filter-form__sort-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  flex: 0 1 auto;
  min-width: 0;
  box-sizing: border-box;
}

.filter-form__sort-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
  box-sizing: border-box;
}

.filter-form__sort-field select {
  flex-shrink: 0;
  min-width: 10em;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-form input[type="date"],
.filter-form select {
  padding: 5px;
  font-size: 14px;
  border: 1px solid var(--gp-primary);
  border-radius: 5px;
  background-color: var(--gp-secondary);
  color: white;
  box-sizing: border-box;
  max-width: 100%;
}

.filter-form input[type="date"] {
  flex: 0 1 auto;
  min-width: 8.5rem;
  width: auto;
  max-width: 11.5rem;
}

.filter-form select option {
  background-color: var(--gp-secondary);
  color: white;
}

.channel-label {
  margin-left: 0;
}

.channel {
  background-color: var(--gp-secondary);
  border: 1px solid var(--gp-primary);
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 15px;
}

.filter-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 0;
  box-sizing: border-box;
}

.filter-form__action-button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: var(--gp-primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

.filter-form__redirect-buttons {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
  order: 0;
}

@media (min-width: 769px) {
  .filter-form__redirect-buttons {
    order: 2;
  }

  /* Сетка вместо flex-wrap: ровные ряды при любой ширине окна */
  .filter-form__primary {
    display: grid;
    align-items: center;
    column-gap: 14px;
    row-gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .filter-form__date-row,
  .filter-form__dropdown-row,
  .filter-form__sort-actions {
    min-width: 0;
  }
}

/* ПК без запаса по ширине: ряды не в одну линию — иначе средняя колонка (канал/гео)
   с flex-shrink: 0 наезжает на сортировку при ~1024–1279px */
@media (min-width: 769px) and (max-width: 1279px) {
  .filter-form__primary {
    grid-template-columns: 1fr 1fr;
  }

  .filter-form__date-row {
    grid-column: 1 / -1;
  }

  .filter-form__dropdown-row {
    grid-column: 1 / -1;
  }

  .filter-form__sort-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
  }
}

/* Достаточно широкий экран: одна строка — даты | канал/гео | сортировка+период+кнопки */
@media (min-width: 1280px) {
  .filter-form__primary {
    grid-template-columns: max-content minmax(0, 1fr) minmax(0, auto);
    grid-template-rows: auto;
  }

  .filter-form__date-row {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .filter-form__dropdown-row {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .filter-form__sort-actions {
    grid-column: 3;
    grid-row: 1;
    flex-wrap: nowrap;
    justify-self: end;
    min-width: 0;
  }
}

.filter-form__redirect-buttons__button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: var(--gp-secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


.gohome__button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: var(--gp-secondary);
  color: white;
  border: 1px solid var(--gp-primary);
  border-radius: 5px;
  cursor: pointer;
  font-family: 'OnestRegular';
  flex-shrink: 0;
  margin-left: auto;
}

.settings-topbar {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.settings-selector {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  color: #fff;
}

.settings-selector>span,
.settings-tab {
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  font-family: 'OnestRegular';
  color: #fff;
}

.settings-tab {
  padding: 5px 12px;
  background-color: var(--gp-secondary);
  border: 1px solid var(--gp-primary);
  border-radius: 5px;
  line-height: 1.2;
}

.settings-tab:hover {
  background-color: var(--gp-secondary-hover);
}

.settings-tab.selected {
  color: #fff;
  text-decoration: none;
  background-color: var(--gp-input-border);
  border-color: #3dff8a;
}

.settings-data {
  color: white;
  font-family: 'OnestRegular';
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.settings-data li {
  margin-bottom: 5px;
  display: flex;
  font-size: 13px;
  align-items: center;
  justify-content: space-between;
}

.settings-data__form {
  white-space: nowrap;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
}

.settings-data__form__input {
  padding: 5px;
  font-size: 14px;
  border: 1px solid var(--gp-primary);
  border-radius: 5px;
  background-color: var(--gp-secondary);
}

.settings-data__header {
  font-size: 20px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-data__add-button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: var(--gp-secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.settings-data__update-button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: var(--gp-secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.settings-data__delete-button {
  margin-left: 5px;
  padding: 2.5px 10px 2.5px 10px;
  font-size: 11px;
  background-color: var(--gp-secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.settings-data,
.settings-percent {
  color: white;
  font-family: 'OnestRegular';
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
  align-content: center;
  flex-wrap: wrap;
}

.settings-percent form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.settings-percent select {
  padding: 2.5px;
  font-size: 14px;
  border: 1px solid var(--gp-primary);
  border-radius: 5px;
  background-color: var(--gp-secondary);
  color: white;
  margin-bottom: 10px;
}

.settings-percent div {
  margin-bottom: 10px;
}

.settings-percent input {
  padding: 2.5px;
  font-size: 14px;
  border: 1px solid var(--gp-primary);
  border-radius: 5px;
  background-color: var(--gp-secondary);
}

.settings-data button,
.settings-percent button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: var(--gp-secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-form {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: 'OnestRegular';
  color: white;
  padding: 24px 16px;
  box-sizing: border-box;
}

.login-form--login {
  background:
    radial-gradient(ellipse 80% 50% at 50% 18%, rgba(69, 147, 82, 0.18), transparent 62%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(20, 51, 29, 0.55), transparent 70%),
    #000;
}

.login-card {
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2rem 1.6rem 1.5rem;
  border: 1px solid rgba(69, 147, 82, 0.38);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 32, 18, 0.92) 0%, rgba(4, 12, 7, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(69, 147, 82, 0.12);
}

.login-form__logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 10px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(69, 147, 82, 0.35));
}

.app-masthead {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 18px;
  padding: 4px 16px 2px;
  background: none;
  border: none;
  box-shadow: none;
  font-size: 1.35rem;
  position: relative;
}

.app-masthead__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.app-logout,
.app-settings {
  display: none;
}

.app-masthead__logo {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(69, 147, 82, 0.4));
}

.app-masthead__name {
  margin: 0;
  font-family: 'OnestRegular';
  font-size: 1em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d4ffe6;
  line-height: 1;
}

.settings-topbar__start {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.login-card__brand {
  margin: 0 0 1.35rem;
  text-align: center;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4ffe6;
}

.login-form__heading {
  margin: 0 0 1rem;
  font-size: 18px;
  font-weight: normal;
  text-align: center;
  color: var(--gp-brand);
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #9dffc2;
}

.login-form input,
.login-field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  color: #fff;
  border: 1px solid var(--gp-input-border);
  border-radius: 8px;
  background-color: var(--gp-input);
}

.login-form input:focus,
.login-field input:focus {
  border-color: #459352;
  box-shadow: 0 0 0 3px rgba(69, 147, 82, 0.22);
}

.login-form__recaptcha {
  margin: 16px 0;
}

.login-form--login .login-form__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'OnestRegular';
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.login-form--login .login-form__btn--enter {
  margin-top: 6px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  background-color: #459352;
  box-shadow: 0 6px 18px rgba(69, 147, 82, 0.28);
}

.login-form--login .login-form__btn--enter:hover {
  background-color: #52ab61;
}

.login-form--login .login-form__alt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.login-form--login .login-form__btn--register,
.login-form--login .login-form__btn--collab {
  margin: 0;
  padding: 10px 16px;
  font-size: 14px;
  background-color: #14331d;
  border: 1px solid rgba(69, 147, 82, 0.28);
}

.login-form--login .login-form__btn--register:hover,
.login-form--login .login-form__btn--collab:hover {
  background-color: #1c4628;
}

.login-form__error,
.login-form__recaptcha-error {
  color: #ff6b6b;
  margin: 0 0 8px;
  font-size: 14px;
  text-align: center;
  max-width: 304px;
}

.login-form button {
  margin-top: 0;
  padding: 5px 10px;
  font-size: 14px;
  background-color: var(--gp-primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-form a,
.login-form .secondary-button {
  margin-top: 15px;
  padding: 3.3px 7.5px;
  font-size: 12px;
  background-color: var(--gp-secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 520px;
  background-color: var(--gp-card-solid);
  border: 1px solid var(--gp-primary);
  border-radius: 8px;
  padding: 28px 24px 20px;
  padding-right: 44px;
  color: white;
  font-family: 'OnestRegular';
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background-color: var(--gp-secondary);
  color: white;
  font-size: 16px;
  line-height: 1;
}

.modal__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.modal__text:first-of-type {
  margin-top: 0;
}

.modal__text a {
  color: white;
  text-decoration: underline;
}

.w-100 {
  width: 100%;
}

.text-bold {
  font-weight: bold;
}

.d-flex {
  display: flex;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.ml-2 {
  margin-left: 2em !important;
}

.mt-2 {
  margin-top: 2em !important;
}

.mt-5 {
  margin-top: 5em !important;
}

.font-11 {
  font-size: 11px !important;
  padding: 2.5px 10px !important;
}

.channel-add-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 24rem;
  margin-bottom: 1rem;
  align-self: center;
}

.channel-add-row input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.stale-channel-row {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.stale-channel-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #c8c8c8;
  line-height: 1.35;
}

.channel-delete-btn {
  font-size: 0.75rem;
  padding: 4px 8px;
  background: #a30606;
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.channel-delete-btn:hover {
  background: #c20a0a;
}

.geo-channel-empty {
  text-align: center;
  opacity: 0.8;
  margin: 1rem 0;
}

.perc-input {
  max-width: 3.2em;
}

.telegram-field {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.telegram-input {
  width: 10.5rem;
  max-width: 42vw;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  font-size: 13px;
  box-sizing: border-box;
}

.telegram-input--ok {
  border-color: #3dff6a;
}

.telegram-input--err {
  border-color: #ff6b6b;
}

.telegram-hint {
  width: 100%;
  max-width: 52rem;
  align-self: center;
  margin: 0 0 0.85rem;
  font-size: 12px;
  line-height: 1.4;
  color: #9dffc2;
}

.telegram-hint strong {
  color: #fff;
}

.telegram-linked {
  color: #3dff6a;
  font-size: 11px;
  line-height: 1;
}

.geo-channel-groups {
  width: 100%;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.geo-channel-group {
  width: 100%;
  border: 1px solid var(--gp-primary);
  border-radius: 8px;
  background-color: var(--gp-card-solid);
  overflow: hidden;
}

.geo-channel-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
}

.geo-channel-group__summary::-webkit-details-marker {
  display: none;
}

.geo-channel-group__label {
  font-size: 1.25rem;
  line-height: 1;
}

.geo-channel-group__count {
  font-size: 0.8rem;
  opacity: 0.8;
}

.geo-channel-group table {
  width: 100%;
  margin: 0;
}

.geo-channel-group[open] .geo-channel-group__summary {
  border-bottom: 1px solid var(--gp-line);
}

.user-list-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.filter-form__dropdown-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-form__dropdown-wrap {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.dropdown {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.filter-form .dropdown {
  display: block;
}

.dropdown button {
  padding: 5px 10px;
  font-size: 14px;
  background-color: var(--gp-primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--gp-card-solid);
  min-width: 120px;
  width: max-content;
  overflow-y: auto;
  max-height: 300px;
  border: 1px solid #ddd;
  z-index: 1;
}

.dropdown-content.dropdown-content--channels {
  display: none;
  flex-direction: column;
  overflow: hidden;
  min-width: 220px;
  max-height: 300px;
  padding: 0;
}

.dropdown-content.dropdown-content--channels.show {
  display: flex;
}

.channel-dropdown-sticky {
  flex-shrink: 0;
  border-bottom: 1px solid #333;
}

.channel-dropdown-search-wrap {
  padding: 8px;
  background-color: var(--gp-card-solid);
}

.channel-dropdown-search {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  background-color: var(--gp-input);
}

.channel-dropdown-search::placeholder {
  color: #888;
}

.channel-options-list {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.dropdown-content label {
  display: block;
  padding: 5px 10px;
  cursor: pointer;
}

.dropdown-content label:hover {
  background-color: var(--gp-card-solid);
}

.show {
  display: block;
}

.selected-items {
  width: 100px;
  margin-top: 5px;
  padding: 5px;
}

.selected-items div {
  margin-bottom: 5px;
}

#user-info-note-content {
  resize: none;
  margin-left: 10px;
}

.selected {
  color: green;
  text-decoration: underline;
}

.settings-admin-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
  box-sizing: border-box;
}

.settings-admin-main,
.settings-admin-aside {
  min-width: 0;
  width: 100%;
}

@media (min-width: 960px) {
  .settings-percent:has(.settings-admin-panel:not(.invisible)) {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 24px;
    flex-wrap: nowrap;
    align-content: stretch;
  }

  .settings-admin-panel:not(.settings-admin-panel--import-only) {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) minmax(22rem, 0.95fr);
    align-items: start;
    gap: 1.25rem 1.5rem;
  }

  .settings-admin-main #user_form,
  .settings-admin-main #currency_form {
    width: 100%;
    align-items: stretch;
  }

  .settings-admin-main .user-channel-assign {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .settings-admin-main #user-info-note-content,
  .settings-admin-main .w-100 {
    width: 100%;
    box-sizing: border-box;
  }

  .settings-admin-aside .ads-import,
  .settings-admin-aside .ads-history {
    max-width: none;
    margin: 0 0 1rem;
  }

  .settings-admin-aside .ads-import h3,
  .settings-admin-aside .ads-history h3 {
    font-size: 1.05rem;
  }

  .settings-admin-aside .ads-history__range {
    flex-wrap: nowrap;
  }

  .settings-admin-aside .ads-history__item {
    grid-template-columns: 1fr;
  }

  .settings-admin-aside .ads-history__delete {
    width: 100%;
  }

  .settings-admin-aside .ads-unmatched-name {
    flex: 1 1 100%;
  }
}

.user-channel-assign {
  width: 100%;
  max-width: 32rem;
  margin: 1.25rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-channel-panel {
  width: 100%;
  border: 1px solid var(--gp-primary);
  border-radius: 8px;
  background-color: var(--gp-card-solid);
  overflow: hidden;
}

.user-channel-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gp-line);
}

.user-channel-panel__list {
  max-height: min(70vh, 28rem);
}

.user-channel-fold {
  width: 100%;
  border: 1px solid var(--gp-primary);
  border-radius: 8px;
  background-color: var(--gp-card-solid);
  overflow: hidden;
}

.user-channel-fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
}

.user-channel-fold__summary::-webkit-details-marker {
  display: none;
}

.user-channel-fold__summary::before {
  content: "▸";
  margin-right: 6px;
  opacity: 0.8;
}

.user-channel-fold[open] .user-channel-fold__summary::before {
  content: "▾";
}

.user-channel-fold[open] .user-channel-fold__summary {
  border-bottom: 1px solid var(--gp-line);
}

.user-channel-fold__hint,
.user-channel-fold__count {
  font-size: 0.8rem;
  opacity: 0.8;
}

.user-channel-fold__body {
  padding: 8px 10px 10px;
}

.user-channel-fold__search {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.user-channel-fold__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 14rem;
  overflow-y: auto;
}

.user-channel-panel .user-channel-fold__list {
  max-height: min(70vh, 28rem);
}

.user-channel-fold__list li {
  margin: 0;
}

.user-channel-item__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 3px 0;
  color: #7dffb0;
}

.user-channel-item--assigned .user_delete_channel {
  width: auto;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 11px;
  background-color: rgb(90, 18, 18);
  color: #fff;
  border-radius: 4px;
}

.user-channel-fold__empty {
  opacity: 0.7;
  padding: 6px 4px;
  font-size: 0.85rem;
}

.user-channel-fold__list button:not(.user_delete_channel),
.user-channel-fold__pick {
  width: 100%;
  text-align: left;
  margin: 0 0 4px;
  color: #d4ffe6;
}

.user-admin-actions,
.user-admin-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.user-admin-toolbar #selected_user {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.user-admin-toolbar button,
.settings-percent .user-admin-toolbar button {
  flex: 0 0 auto;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

body.modal-open {
  overflow: hidden;
}

.delete-users-modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.72);
  -webkit-overflow-scrolling: touch;
}

.delete-users-modal__dialog {
  width: 100%;
  max-width: 28rem;
  max-height: min(90vh, 40rem);
  display: flex;
  flex-direction: column;
  background-color: var(--gp-card-solid);
  color: white;
  border: 1px solid rgb(0, 120, 60);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  font-family: 'OnestRegular', sans-serif;
}

.delete-users-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--gp-line);
  flex-shrink: 0;
}

.delete-users-modal__header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.delete-users-modal__close {
  background: transparent !important;
  border: none;
  color: #aaa;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0 0.25rem !important;
  cursor: pointer;
  flex-shrink: 0;
}

.delete-users-modal__close:hover {
  color: white;
}

.delete-users-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.delete-users-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--gp-line);
  flex-shrink: 0;
}

.delete-users-modal__footer button,
.delete-users__actions button {
  padding: 0.55rem 0.9rem;
  font-size: 14px;
  background-color: var(--gp-secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.delete-users__toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  flex-shrink: 0;
}

.delete-users__search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  font-size: 16px;
  border: 1px solid var(--gp-primary);
  border-radius: 5px;
  background-color: var(--gp-secondary);
  color: white;
}

.delete-users__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.delete-users__actions button {
  flex: 1 1 auto;
  min-width: 7rem;
}

.delete-users__meta {
  font-size: 13px;
  opacity: 0.9;
  flex-shrink: 0;
}

.delete-users__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 8rem;
  max-height: none;
  overflow-y: auto;
  width: 100%;
  border: 1px solid var(--gp-thead);
  border-radius: 5px;
  -webkit-overflow-scrolling: touch;
}

.delete-users__item {
  margin: 0;
  border-bottom: 1px solid rgb(0, 80, 40);
}

.delete-users__item:last-child {
  border-bottom: none;
}

.delete-users__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
  font-size: 14px;
  min-height: 2.75rem;
  box-sizing: border-box;
}

.delete-users__label--locked {
  cursor: default;
  opacity: 0.65;
}

.delete-users__checkbox {
  margin: 0;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}

.delete-users__name {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.delete-users__badge {
  font-size: 11px;
  color: #8fd49a;
  white-space: nowrap;
}

.delete-users__badge--sub {
  color: #c8c070;
}

#delete_users_btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .delete-users-modal {
    padding: 0;
    align-items: stretch;
  }

  .delete-users-modal__dialog {
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    border: none;
  }

  .delete-users-modal__footer {
    justify-content: stretch;
  }

  .delete-users-modal__footer button {
    flex: 1 1 calc(50% - 0.25rem);
  }

  .user-admin-toolbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .filter-form {
    margin-left: 0;
  }

  .filter-form__preset-field,
  .filter-form__sort-field {
    flex-wrap: wrap;
  }

  .filter-form__date-row {
    flex: 1 1 100%;
    width: 100%;
  }

  .filter-form__date-row .filter-form__date-field {
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .filter-form__dropdown-row {
    flex: 1 1 100%;
    width: 100%;
  }

  .filter-form__dropdown-row .filter-form__dropdown-wrap {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  body {
    padding: 6px;
  }

  .app-masthead {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 12px;
    padding: 2px 0;
    gap: 6px;
    font-size: 1.1rem;
  }

  .app-masthead__brand {
    grid-column: 2;
    gap: 6px;
  }

  .app-logout,
  .app-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    height: auto;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    background-color: var(--gp-secondary);
    border: 1px solid var(--gp-border);
    border-radius: 5px;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .app-logout {
    grid-column: 1;
    justify-self: start;
  }

  .app-settings {
    grid-column: 3;
    justify-self: end;
  }

  .filter-form__redirect-buttons {
    display: none;
  }

  .app-masthead__name {
    letter-spacing: 0.18em;
  }

  .main-table {
    font-size: 11px;
    min-width: 600px;
  }

  .main-table th,
  .main-table td {
    padding: 6px 4px;
    font-size: 10px;
  }

  .main-table th {
    font-size: 9px;
    padding: 5px 3px;
  }

  .filter-form {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: stretch;
    gap: 8px;
    margin-left: 0;
    margin-bottom: 10px;
    max-width: 100%;
    width: 100%;
    padding-right: 0;
    font-size: 10px;
  }

  .filter-form__primary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .filter-form__sort-stack {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .filter-form input[type="date"] {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
  }

  .filter-form__preset-field,
  .filter-form__date-row,
  .filter-form__dropdown-row,
  .filter-form__date-field,
  .filter-form__sort-field,
  .filter-form__sort-stack,
  .filter-form__sort-actions,
  .filter-form__actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .filter-form__sort-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filter-form label {
    font-size: 10px;
  }

  .filter-form input[type="date"],
  .filter-form select {
    font-size: 10px;
    padding: 3px 5px;
    border-radius: 4px;
  }

  .filter-form__action-button,
  .filter-form__redirect-buttons__button {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
  }

  .filter-form .dropdown-content label {
    font-size: 10px;
    padding: 4px 8px;
  }

  .filter-form .channel-dropdown-search-wrap {
    padding: 5px;
  }

  .filter-form .channel-dropdown-search {
    padding: 4px 6px;
    font-size: 10px;
  }

  .filter-form__date-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .filter-form__date-row .filter-form__date-field {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .filter-form__dropdown-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
  }

  .filter-form__dropdown-row .filter-form__dropdown-wrap {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  .filter-form__dropdown-row .dropdown {
    width: 100%;
    max-width: 100%;
  }

  .filter-form__sort-field,
  .filter-form__preset-field {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
  }

  .filter-form__preset-field select,
  .filter-form__sort-field select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .filter-form .dropdown button {
    width: 100%;
    box-sizing: border-box;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
  }

  .filter-form__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .filter-form__actions .filter-form__action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
  }

  .filter-form__redirect-buttons__button {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
  }

  .filter-form .dropdown-content:not(.dropdown-content--channels) {
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .filter-form .dropdown-content.dropdown-content--channels {
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
  }
}

.ads-import,
.ads-history {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto 2rem;
  color: #fff;
  font-family: 'OnestRegular';
}

.ads-import h3,
.ads-history h3 {
  margin: 0 0 0.75rem;
}

.ads-import__hint,
.ads-import__summary p {
  margin: 0.4rem 0;
}

.ads-toolbar,
.ads-import__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin: 0.75rem 0;
  width: 100%;
  box-sizing: border-box;
}

.ads-import__file {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 2px 0 0;
  box-sizing: border-box;
}

.ads-import__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ads-import__file-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
  color: #fff;
  background-color: var(--gp-secondary);
  border: 1px solid var(--gp-border);
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.ads-import__file-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #9dffc2;
}

.ads-toolbar__field {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  margin: 0;
  font-size: 12px;
  color: #9dffc2;
  box-sizing: border-box;
}

.ads-toolbar__field span {
  flex: 0 0 auto;
}

.ads-toolbar__btn,
.settings-apply-btn {
  flex: 0 0 auto;
}

.ads-toolbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9.5rem;
  min-width: 9.5rem;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.settings-apply-btn {
  margin-left: auto;
}

#percentage_form {
  align-items: stretch;
}

.settings-apply-btn {
  align-self: flex-end;
}

.settings-admin-main #user_form {
  align-items: stretch;
  width: 100%;
}

#user_info_container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.user-show-web,
.user-password {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.user-show-web .font-11,
.user-password .font-11 {
  padding-left: 0 !important;
  padding-right: 8px !important;
  white-space: nowrap;
}

.user-password__value {
  color: #9dffc2;
  font-size: 13px;
  word-break: break-all;
}

.user-password--edit input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

.user-password--edit button {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
}

.currency-form {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin-top: 0.75rem;
}

.settings-percent .currency-form {
  align-items: stretch;
}

.settings-percent .currency-form select,
.settings-percent .currency-form input {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

.settings-percent .currency-form #currency_btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
}

.settings-percent .ads-import,
.settings-percent .ads-history {
  margin-bottom: 1rem;
}

.settings-percent .ads-toolbar {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

@media (max-width: 640px) {
  .ads-toolbar {
    flex-wrap: wrap;
  }

  .ads-import__file {
    flex: 1 1 100%;
    width: 100%;
  }

  .ads-toolbar__field {
    flex: 1 1 calc(50% - 4px);
  }

  .ads-toolbar__btn {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .currency-form {
    flex-wrap: wrap;
  }

  .settings-percent .currency-form select,
  .settings-percent .currency-form input {
    flex: 1 1 calc(50% - 4px);
  }

  .settings-percent .currency-form #currency_btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

.ads-history__range {
  font-size: 12px;
  color: #9dffc2;
}

.ads-history__range input[type="date"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  font-size: 12px;
  color: #fff;
  background-color: var(--gp-input);
  border: 1px solid var(--gp-line);
  border-radius: 4px;
  box-sizing: border-box;
}

.ads-history__list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ads-history__empty {
  margin: 0;
  padding: 8px 2px;
  font-size: 12px;
  color: #9dffc2;
}

.ads-history__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid var(--gp-primary);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--gp-card-solid);
}

.ads-history__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: #fff;
}

.ads-history__date {
  font-weight: 700;
  color: #9dffc2;
}

.ads-history__who {
  color: #9dffc2;
  opacity: 0.85;
}

.ads-history__delete {
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.2;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.ads-import__error,
.ads-import__warn {
  color: #ffb4b4;
  font-weight: 600;
}

.ads-import__summary,
.ads-import__unmatched,
.ads-import__overlap {
  border: 1px solid var(--gp-primary);
  border-radius: 8px;
  padding: 12px;
  background: var(--gp-card-solid);
  margin: 12px 0;
}

.ads-unmatched-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.ads-unmatched-name {
  flex: 1 1 16rem;
}

body:has(.login-form) {
  padding: 0;
}

.app-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.page-card {
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  background: linear-gradient(180deg, rgba(12, 32, 18, 0.92) 0%, rgba(4, 12, 7, 0.96) 100%);
  box-shadow: var(--gp-shadow);
}

.filter-form.page-card {
  padding: 14px 16px;
  margin: 0 0 16px;
}

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

.table-card .main-table {
  margin: 0;
}

.main-table th,
.main-table td {
  border-color: var(--gp-border);
}

.main-table thead th {
  color: var(--gp-brand);
  font-weight: 600;
}

.main-table tbody tr:hover td {
  background-color: rgba(69, 147, 82, 0.08);
}

.main-table tbody tr:hover td.cell-net-loss,
.main-table tbody tr:hover td.cell-channel-loss {
  background-color: rgba(163, 6, 6, 0.62);
}

.main-table tbody tr:hover td.cell-cr-low,
.main-table tbody tr.row-unprofitable td.cell-cr-low,
.main-table tbody tr.row-unprofitable:hover td.cell-cr-low {
  background-color: rgba(163, 6, 6, 0.62);
}

.main-table tbody tr:hover td.cell-cr-mid,
.main-table tbody tr.row-unprofitable td.cell-cr-mid,
.main-table tbody tr.row-unprofitable:hover td.cell-cr-mid {
  background-color: rgba(196, 150, 20, 0.58);
}

.main-table tfoot td {
  background-color: rgba(69, 147, 82, 0.12);
}

.main-table tfoot td.cell-net-loss,
.main-table tfoot td.cell-channel-loss {
  background-color: rgba(163, 6, 6, 0.5);
}

textarea,
.filter-form input[type="date"],
.filter-form select,
.settings-percent select,
.settings-percent input,
.settings-data__form__input {
  border-radius: var(--gp-radius);
  background-color: var(--gp-input);
  border-color: var(--gp-input-border);
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--gp-primary);
  box-shadow: var(--gp-focus);
}

.filter-form__action-button,
.dropdown button {
  background-color: var(--gp-primary);
  border-radius: var(--gp-radius);
}

.filter-form__action-button:hover,
.dropdown button:hover {
  background-color: var(--gp-primary-hover);
}

.filter-form__redirect-buttons__button,
.gohome__button,
.settings-data__add-button,
.settings-percent button,
.login-form a,
.login-form .secondary-button {
  background-color: var(--gp-secondary);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius);
}

.filter-form__redirect-buttons__button:hover,
.gohome__button:hover,
.settings-tab:hover,
.app-logout:hover,
.app-settings:hover,
.ads-import__file:hover .ads-import__file-btn {
  background-color: var(--gp-secondary-hover);
}

.settings-topbar.page-card {
  margin-bottom: 16px;
  padding: 12px 16px;
}

#percentage_form {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.1rem 1.4rem;
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  background: linear-gradient(180deg, rgba(12, 32, 18, 0.92) 0%, rgba(4, 12, 7, 0.96) 100%);
  box-shadow: var(--gp-shadow);
  box-sizing: border-box;
  align-items: stretch;
}

.settings-admin-main,
.settings-admin-aside {
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-lg);
  background: linear-gradient(180deg, rgba(12, 32, 18, 0.92) 0%, rgba(4, 12, 7, 0.96) 100%);
  box-shadow: var(--gp-shadow);
  padding: 1rem 1.1rem 1.15rem;
  box-sizing: border-box;
}

.ads-import,
.ads-history,
.user-channel-fold,
.geo-channel-group,
.delete-users-modal__dialog,
.modal__content {
  border-color: var(--gp-border);
  border-radius: var(--gp-radius-lg);
  background: var(--gp-card-solid);
}

.dropdown-content {
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius);
  background-color: var(--gp-card-solid);
  box-shadow: var(--gp-shadow);
}

.dropdown-content label:hover {
  background-color: var(--gp-secondary);
}

.channel-dropdown-search {
  border: 1px solid var(--gp-input-border);
  background-color: var(--gp-input);
  border-radius: var(--gp-radius);
}

.login-form--register .login-form__btn--enter {
  margin-top: 8px;
}

.login-form--register .login-form__alt {
  margin-top: 12px;
}


