:root {
  --bg: #f3f6f9;
  --card-border: #e6edf3;
  --sidebar-bg: #f8fbfe;
  --sidebar-border: #e6edf3;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #0d6efd;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.topbar {
  height: 44px;
  background: #2f3a46;
  color: #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

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

.topbar__brand {
  font-weight: 600;
  letter-spacing: 0.2px;
  color: inherit;
  text-decoration: none;
}

.topbar__brand:hover {
  color: inherit;
}

.topbar__right {
  font-size: 13px;
  opacity: 0.95;
}

.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: calc(100vh - 44px);
}

.rent-page {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rent-page .topbar {
  flex: 0 0 auto;
  position: relative;
  z-index: 120;
}

.rent-page .layout.layout--full {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rent-page .rent-page-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.layout--full {
  grid-template-columns: 1fr;
  min-width: 0;
}

.rent-page .container-fluid {
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 8px;
}

.rent-page .rent-page-head {
  padding-left: 4px;
  padding-right: 4px;
  flex: 0 0 auto;
  position: relative;
  z-index: 110;
  background: var(--bg);
  margin-bottom: 8px;
}

.rent-page .rent-card {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.rent-page .rent-card > .card-body {
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 44px);
}

.sidebar__search {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar__nav {
  padding: 8px 0 0;
  flex: 0 0 auto;
}

.sidebar__sk-block {
  margin-top: 8px;
  padding: 10px 10px 12px;
  border-top: 1px solid var(--sidebar-border);
  background: linear-gradient(180deg, #eef4fb 0%, #e8f0f8 100%);
}

.sidebar-block {
  border: 1px solid #d5e3f2;
  border-radius: 10px;
  background: #fff;
  padding: 8px 8px 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sidebar-block__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  padding: 2px 6px 6px;
  text-align: center;
}

.sidebar-block__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 7px;
  color: #334155;
  text-decoration: none;
  font-size: 0.9rem;
}

.sidebar-block__link i {
  width: 16px;
  color: #3b82f6;
}

.sidebar-block__link:hover {
  background: #eef6ff;
  color: #1d4ed8;
}

.sidebar-block__link.active {
  background: #e9f2ff;
  color: #1d4ed8;
  font-weight: 600;
}

.sidebar__nav .nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 12px;
  color: #334155;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar__nav .nav-item:hover {
  background: #eef6ff;
  border-left-color: #cfe3ff;
}

.sidebar__nav .nav-item.active {
  background: #e9f2ff;
  border-left-color: var(--primary);
  font-weight: 600;
}

.nav-group[open] > .nav-item {
  background: #e9f2ff;
  border-left-color: var(--primary);
  font-weight: 600;
}

.sidebar__nav i {
  width: 18px;
  color: #3b82f6;
}

.nav-item__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-group {
  border: 0;
}

.nav-group > summary {
  list-style: none;
  cursor: pointer;
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-item__arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.nav-group[open] .nav-item__arrow {
  transform: rotate(-90deg);
}

.nav-submenu {
  background: #f5f9ff;
  border-left: 3px solid #cfe3ff;
  margin-left: 3px;
}

.nav-subitem {
  display: block;
  padding: 7px 12px 7px 38px;
  color: #334155;
  font-size: 13px;
  text-decoration: none;
}

.nav-subitem:hover {
  background: #eaf3ff;
}

.nav-subitem.active {
  color: #0b63c7;
  font-weight: 600;
}

.content {
  padding: 0;
}

.page-title {
  font-size: 28px;
  font-weight: 650;
  margin: 6px 0 14px;
}

.card-soft {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.link-like {
  color: #0b63c7;
  text-decoration: none;
}

.link-like:hover {
  text-decoration: underline;
}

.muted-red {
  color: #d33;
  font-size: 11px;
  white-space: nowrap;
}

.muted-green {
  color: #198754 !important;
  font-size: 11px;
  font-weight: 700 !important;
  white-space: nowrap;
}

.action-del {
  color: #0b63c7;
  text-decoration: none;
}

.action-del:hover {
  text-decoration: underline;
}

/* DataTables tune to match screenshot spacing */
.dataTables_wrapper .dataTables_length select {
  width: 64px;
  display: inline-block;
}

.dataTables_wrapper .dataTables_filter input {
  width: 220px;
  display: inline-block;
}

.dataTables_wrapper .dataTables_info {
  color: var(--muted);
  font-size: 12px;
}

.dataTables_wrapper .pagination {
  margin: 0;
}

@media (max-width: 992px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}

.game-modal .modal-header {
  border-bottom: 1px solid #d9dee5;
}

.game-modal__header {
  background: #f5f6f7;
}

.game-modal__header .modal-title {
  font-weight: 700;
  font-size: 40px;
  color: #222;
  line-height: 1.1;
}

.game-form-page {
  width: 70%;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .game-form-page {
    width: 100%;
  }
}

.game-form-shell {
  border: 1px solid #d3d7dc;
  background: #fff;
}

.game-form-shell__title {
  background: #f2f2f2;
  border-bottom: 1px solid #d3d7dc;
  padding: 6px 10px;
  font-size: 12px;
  color: #333;
}

.game-form-panel {
  padding: 10px 12px;
  border: 1px solid #c5ced8;
  border-radius: 4px;
  background: #e8eef5;
}

.game-form-panel__title {
  font-size: 12px;
  font-weight: 700;
  color: #1f3a56;
  margin-bottom: 8px;
}

.game-form-inline-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.game-form-inline-field:first-of-type {
  margin-top: 0;
}

.game-form-inline-field > .form-label {
  margin: 0;
  flex: 0 0 120px;
  white-space: nowrap;
}

.game-form-inline-field > .date-with-actions,
.game-form-inline-field > .form-select {
  flex: 1 1 auto;
  min-width: 0;
}

.game-form-triple-row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.game-form-five-row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  flex-wrap: nowrap;
}

.game-form-five-row > .col {
  min-width: 0;
}

.game-form-triple-row > [class*="col-"],
.game-form-five-row > [class*="col"] {
  padding-left: 6px;
  padding-right: 6px;
}

@media (max-width: 991px) {
  .game-form-five-row {
    flex-wrap: wrap;
  }
}

.game-form-deact-row {
  display: flex;
  justify-content: center;
  margin: 10px 0 8px;
}

.game-form-deact-panel {
  width: 100%;
  max-width: 420px;
}

.game-form-deact-panel .game-form-inline-field > .form-label,
.game-form-panel .game-form-inline-field > .form-label[for="gf_category"] {
  flex-basis: 140px;
}

.game-form-spoiler {
  margin: 8px 0;
  border: 1px solid #c5ced8;
  border-radius: 4px;
  background: #e8eef5;
  overflow: hidden;
}

.game-form-spoiler__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1f3a56;
}

.game-form-spoiler__summary::-webkit-details-marker {
  display: none;
}

.game-form-spoiler__summary::before {
  content: '▸';
  display: inline-block;
  color: #6b7c8f;
  transition: transform 0.15s ease;
}

.game-form-spoiler[open] > .game-form-spoiler__summary::before {
  transform: rotate(90deg);
}

.game-form-spoiler__hint {
  margin-left: auto;
  font-weight: 500;
  color: #6b7280;
}

.game-form-spoiler__body {
  padding: 0 8px 8px;
}

.game-form-spoiler__body .game-form-panel {
  margin-top: 6px;
}

.game-form-category {
  margin: 14px 0 0;
}

.game-group-combo {
  position: relative;
}

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

.game-group-combo__list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: 260px;
  margin: 0;
  padding: 4px 0;
  overflow: auto;
  list-style: none;
  background: #fff;
  border: 1px solid #c5ced9;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.game-group-combo__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.game-group-combo__item:hover,
.game-group-combo__item.is-active {
  background: #eef6ff;
}

.game-group-combo__item.is-selected {
  font-weight: 600;
}

.game-group-combo__empty {
  padding: 0.45rem 0.65rem;
  color: #6b7280;
  font-size: 12px;
}

@media (max-width: 576px) {
  .game-form-inline-field {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .game-form-inline-field > .form-label {
    flex: none;
  }
}

.game-form-fields {
  padding-top: 2px;
}

.game-form .form-label {
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #222;
}

.game-form .form-control,
.game-form .form-select {
  border-radius: 0;
  border-color: #ced4da;
  font-size: 12px;
}

.game-form .btn-primary {
  border-radius: 2px;
}

.date-with-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-with-actions .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.date-action-btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#categoriesModal .list-group-item {
  font-size: 13px;
  padding: 6px 10px;
}

#categoryAddForm .btn {
  white-space: nowrap;
}

.user-type-select {
  max-width: 110px;
}

.users-panel {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: #fff;
}

.users-tabs.nav-tabs {
  border-bottom: 1px solid #dee2e6;
  padding: 0 10px;
}

.users-tabs .nav-link {
  color: #334155;
  font-size: 13px;
}

.users-tabs .nav-link.active {
  font-weight: 600;
}

/* Sellerkeys — вкладка Playstation */
.sk-ps-form-bar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  border: 1px solid #d3d7dc;
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
}

.sk-ps-form-bar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  background: #fff;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.sk-ps-block-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}

.sk-ps-row--block-title {
  margin-bottom: 10px;
}

.sk-ps-row--block-title .sk-ps-block-title {
  margin-bottom: 0;
}

.sk-ps-links {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 14px;
}

.sk-ps-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  padding-right: 2px;
}

.sk-ps-row__text {
  min-width: 0;
  flex: 1 1 auto;
}

.sk-ps-copy-btn {
  flex-shrink: 0;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.sk-ps-copy-btn__icon {
  font-size: 14px;
  line-height: 1;
}

.sk-ps-links li.sk-ps-row {
  margin-bottom: 8px;
}

.sk-ps-links a {
  color: var(--text);
  text-decoration: none;
}

.sk-ps-links a:hover {
  text-decoration: underline;
  color: #0b63c7;
}

@media (max-width: 992px) {
  .game-modal__header .modal-title {
    font-size: 28px;
  }
}

/* Digiseller — варианты товаров */
.digiseller-shell {
  background: #fff;
}

.digiseller-shell__body {
  padding: 14px 16px 18px;
}

.digiseller-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #222;
}

.digiseller-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #d3d7dc;
  background: #fff;
}

.digiseller-toolbar__input {
  flex: 1 1 220px;
  min-width: 180px;
  border-radius: 2px;
  border-color: #ced4da;
  font-size: 13px;
}

.digiseller-toolbar__checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.digiseller-check {
  font-size: 13px;
  margin: 0;
  color: #333;
  white-space: nowrap;
}

.digiseller-toolbar__submit {
  margin-left: auto;
  border-radius: 2px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
}

.digiseller-variants {
  margin-top: 4px;
}

.digiseller-variant-row {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  margin-bottom: 8px;
  border: 1px solid #d3d7dc;
  background: #fff;
  font-size: 14px;
  color: #222;
}

.digiseller-variant-row__text {
  min-width: 0;
}

@media (max-width: 576px) {
  .digiseller-toolbar__submit {
    margin-left: 0;
    width: 100%;
  }
}

/* Password generator — карточка по центру контента (шире под несколько колонок кодов) */
.pg-generator-shell {
  max-width: min(920px, 100%);
}

/* Password generator — сетка столбцов без внутреннего скролла */
.pg-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 5px 12px;
  margin-top: 2px;
  align-items: start;
}

.pg-result-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pg-result-row .form-control {
  min-width: 0;
  padding: 0.12rem 0.35rem;
  font-size: 12px;
  line-height: 1.2;
  height: 26px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pg-result-row--copied .form-control {
  background-color: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.pg-copy-one {
  padding: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pg-result-row--copied .pg-copy-one {
  background-color: #d1fae5;
  border-color: #34d399;
  color: #047857;
}

.admin-login-page {
  min-height: 100vh;
  margin: 0;
  background: #f3f4f6;
}

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-login-card {
  width: 100%;
  max-width: 380px;
  border: 1px solid #d1d5db;
}

.admin-login-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.home-shell {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.home-shell__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  background: #fbfdff;
}

.home-shell__body {
  padding: 14px;
}

.home-games-count {
  display: inline-block;
  font-size: 14px;
  color: #334155;
  background: #eef6ff;
  border: 1px solid #cfe3ff;
  border-radius: 6px;
  padding: 6px 10px;
  text-decoration: none;
}

.home-games-count:hover {
  background: #e4f0ff;
  color: #1f2937;
}

.custom-tabs-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-tab-chip {
  border: 1px solid #5aad5d;
  background: #5cb85c;
  color: #fff;
  border-radius: 4px;
  min-height: 42px;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 12px;
}

.custom-tab-chip.is-active {
  background: #2f8f3a;
  border-color: #1f6f2b;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.28);
  transform: translateY(-1px);
}

.custom-tab-chip__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-weight: 600;
}

.custom-tab-chip__close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-tab-chip__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.custom-tabs-editor-wrap textarea {
  min-height: 320px;
  resize: vertical;
}

.games-actions-col {
  width: 1%;
  white-space: nowrap;
  padding-left: 0.3rem !important;
  padding-right: 0.3rem !important;
}

.games-actions-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 1;
}

.planner-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 1fr);
  gap: 14px;
}

.home-planner-spoiler {
  margin: 0 0 14px;
  overflow: hidden;
}

.home-planner-spoiler__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid transparent;
  font-weight: 600;
  color: #1f2937;
}

.home-planner-spoiler__summary::-webkit-details-marker {
  display: none;
}

.home-planner-spoiler__summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.4rem;
  color: #94a3b8;
  transition: transform 0.15s ease;
}

.home-planner-spoiler[open] > .home-planner-spoiler__summary {
  border-bottom-color: var(--card-border);
}

.home-planner-spoiler[open] > .home-planner-spoiler__summary::before {
  transform: rotate(90deg);
}

.home-planner-spoiler__title {
  font-size: 1.05rem;
}

.home-planner-spoiler__body {
  padding: 12px 14px 14px;
}

.home-tools-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.home-block-card {
  margin: 0;
  overflow: hidden;
  height: 100%;
}

.home-block-card__head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--card-border);
  background: #f8fafc;
}

.home-block-card__body {
  padding: 12px 14px 14px;
}

.planner-card--inner {
  margin: 0;
  border: 1px solid #e8eef5;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.planner-tasks-body {
  min-width: 0;
}

.home-issue__input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
}

#homeIssueCopyBtn.is-copied {
  background: #16a34a;
  border-color: #16a34a;
}

.stock-mismatch-card {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.stock-mismatch-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  background: #fff8f8;
}

.stock-mismatch-card__meta {
  color: #64748b;
  font-size: 13px;
}

.stock-mismatch-card__body {
  padding: 12px 16px 16px;
}

.stock-mismatch-card__loading,
.stock-mismatch-card__empty {
  color: #64748b;
  font-size: 14px;
}

.stock-mismatch-card__error {
  color: #b42318;
  font-size: 14px;
}

.stock-mismatch-table th {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.stock-mismatch-table td {
  vertical-align: middle;
  font-size: 13px;
}

.stock-mismatch-title {
  font-weight: 600;
  color: #1f2937;
}

.stock-mismatch-ids {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}

.stock-mismatch-diff {
  display: inline-block;
  min-width: 2.2rem;
  text-align: center;
  font-weight: 700;
}

.stock-mismatch-diff.is-plus {
  color: #b42318;
}

.stock-mismatch-diff.is-minus {
  color: #b42318;
}

.sales-compare-card {
  margin: 0;
  overflow: hidden;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sales-compare-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 12px 12px 6px;
  border-bottom: 1px solid var(--card-border);
  background: #f8fafc;
}

.sales-compare-card__head .h5 {
  font-size: 1rem;
}

.sales-compare-card__meta {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.sales-compare-card__body {
  padding: 8px 10px 10px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sales-compare-card__chart-wrap {
  position: relative;
  flex: 1;
  min-height: 160px;
  width: 100%;
}

.sales-compare-hosts {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
}

.sales-compare-hosts__title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.sales-compare-hosts-table {
  font-size: 11px;
  margin-bottom: 0;
}

.sales-compare-hosts-table th,
.sales-compare-hosts-table td {
  padding: 3px 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.sales-compare-hosts-table th:not(:first-child),
.sales-compare-hosts-table td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sales-compare-hosts-table td:first-child {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sales-compare-card__error {
  margin-top: 0.35rem;
  font-size: 12px;
  color: #b91c1c;
}

.ads-partner-pnl-card {
  margin-top: 0;
  overflow: hidden;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ads-partner-pnl-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--card-border);
  background: #f8fafc;
}

.ads-partner-pnl-card__head .h5 {
  font-size: 1rem;
}

.ads-partner-pnl-card__meta {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.ads-partner-pnl-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ads-partner-pnl-card__body {
  padding: 10px 12px 12px;
}

.ads-partner-pnl-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
}

.ads-partner-pnl-strip__item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.ads-partner-pnl-strip__label {
  color: #94a3b8;
}

.ads-partner-pnl-strip__item strong {
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.ads-partner-pnl-strip__item strong.is-plus {
  color: #15803d;
}

.ads-partner-pnl-strip__item strong.is-minus {
  color: #b91c1c;
}

.ads-partner-pnl-tabs {
  display: flex;
  gap: 4px;
}

.ads-partner-pnl-tab {
  border: 1px solid var(--card-border);
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  line-height: 1.2;
}

.ads-partner-pnl-tab.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.ads-partner-pnl-card__chart-wrap {
  position: relative;
  height: 220px;
  width: 100%;
}

.ads-partner-pnl-weeks {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.ads-partner-pnl-weeks__title {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.ads-partner-pnl-weeks__group {
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ads-partner-pnl-weeks__group.is-open {
  border-color: #cbd5e1;
}

.ads-partner-pnl-weeks__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  list-style: none;
  cursor: default;
}

details.ads-partner-pnl-weeks__group > summary.ads-partner-pnl-weeks__group-head {
  cursor: pointer;
  user-select: none;
}

details.ads-partner-pnl-weeks__group > summary.ads-partner-pnl-weeks__group-head::-webkit-details-marker {
  display: none;
}

details.ads-partner-pnl-weeks__group > summary.ads-partner-pnl-weeks__group-head::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  color: #94a3b8;
  transition: transform 0.15s ease;
}

details.ads-partner-pnl-weeks__group[open] > summary.ads-partner-pnl-weeks__group-head::before {
  transform: rotate(90deg);
}

.ads-partner-pnl-weeks__group-meta {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  font-size: 11px;
}

.ads-partner-pnl-weeks__group-meta.is-plus {
  color: #15803d;
}

.ads-partner-pnl-weeks__group-meta.is-minus {
  color: #b91c1c;
}

.ads-partner-pnl-weeks__archive {
  margin-bottom: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.ads-partner-pnl-weeks__archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.ads-partner-pnl-weeks__archive-head::-webkit-details-marker {
  display: none;
}

.ads-partner-pnl-weeks__archive-head::before {
  content: '▸';
  display: inline-block;
  margin-right: 6px;
  color: #94a3b8;
  transition: transform 0.15s ease;
}

.ads-partner-pnl-weeks__archive[open] > .ads-partner-pnl-weeks__archive-head::before {
  transform: rotate(90deg);
}

.ads-partner-pnl-weeks__archive-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ads-partner-pnl-weeks__archive-body .ads-partner-pnl-weeks__group {
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  border-top: 1px solid #e2e8f0;
}

.ads-partner-pnl-weeks__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

.ads-partner-pnl-weeks__table th,
.ads-partner-pnl-weeks__table td {
  padding: 5px 8px;
  border-top: 1px solid #eef2f7;
  vertical-align: middle;
}

.ads-partner-pnl-weeks__table th:nth-child(1),
.ads-partner-pnl-weeks__table td:nth-child(1) {
  width: 32%;
  text-align: left;
}

.ads-partner-pnl-weeks__table th:nth-child(n + 2),
.ads-partner-pnl-weeks__table td:nth-child(n + 2) {
  width: 22.666%;
  text-align: right;
}

.ads-partner-pnl-weeks__table th {
  font-weight: 600;
  color: #94a3b8;
  background: #fafbfc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ads-partner-pnl-weeks__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #334155;
}

.ads-partner-pnl-weeks__num.is-cost {
  color: #b91c1c;
}

.ads-partner-pnl-weeks__num.is-earned {
  color: #15803d;
}

.ads-partner-pnl-weeks__num.is-plus {
  color: #15803d;
}

.ads-partner-pnl-weeks__num.is-minus {
  color: #b91c1c;
}

.ads-partner-pnl-weeks__month-total td {
  font-weight: 600;
  background: #f8fafc;
  border-top: 1px solid #cbd5e1;
}

.ads-partner-pnl-card__loading,
.ads-partner-pnl-card__empty {
  font-size: 13px;
  color: #64748b;
}

.ads-partner-pnl-card__error {
  margin-top: 0.35rem;
  font-size: 12px;
  color: #b91c1c;
}

.home-partner-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 12px;
  margin-top: 14px;
  align-items: stretch;
}

.home-partner-row > .ggsel-sales-card,
.home-partner-row > .ads-partner-pnl-card {
  margin-top: 0;
  height: 100%;
  min-width: 0;
}

.home-partner-row #digiPartnerSalesCard .ggsel-sales-card__body {
  max-height: 420px;
  overflow: auto;
}

.home-partner-row .digi-partner-days {
  max-height: none;
}

@media (max-width: 960px) {
  .home-partner-row {
    grid-template-columns: 1fr;
  }

  .home-partner-row #digiPartnerSalesCard .ggsel-sales-card__body {
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .ads-partner-pnl-card__head {
    flex-direction: column;
    align-items: stretch;
  }

  .ads-partner-pnl-card__actions {
    justify-content: space-between;
  }

  .ads-partner-pnl-card__chart-wrap {
    height: 200px;
  }
}

.home-feed-section {
  margin-top: 22px;
  padding: 14px 14px 16px;
  border-radius: 10px;
  border: 1px solid #e5eaf0;
}

.home-feed-section--chats {
  background: #fff8f6;
  border-color: #f0d7d0;
}

.home-feed-section--sales {
  background: #f6f9fc;
  border-color: #d9e4f0;
}

.home-feed-section__head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.home-feed-section__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.home-feed-section__hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.home-feed-section--chats .home-feed-section__title {
  color: #9a3412;
}

.home-feed-section--sales .home-feed-section__title {
  color: #1e3a5f;
}

.home-feed-section .ggsel-sales-card {
  margin-top: 12px;
}

.home-feed-section .ggsel-sales-card:first-of-type,
.home-feed-section .home-chats-row {
  margin-top: 0;
}

.home-chats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
  align-items: stretch;
}

.home-chats-row > .ggsel-sales-card {
  margin-top: 0;
  height: 100%;
}

.home-feed-section--chats .ggsel-chats-card {
  border-color: #efd5ce;
}

.home-feed-section--chats .ggsel-sales-card__head {
  background: #fff1ee;
}

.ggsel-sales-card {
  margin-top: 14px;
  border-radius: 8px;
  overflow: hidden;
}

.ggsel-chats-table tr.ggsel-chats-row {
  cursor: pointer;
}

.ggsel-chats-table tr.ggsel-chats-row:hover {
  background: #f8fafc;
}

.ggsel-chats-new {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ggsel-sales-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  background: #f7fafc;
}

.ggsel-sales-card__meta {
  color: #64748b;
  font-size: 13px;
}

.ggsel-sales-card__body {
  padding: 12px 16px 16px;
}

.ggsel-sales-card__loading,
.ggsel-sales-card__empty {
  color: #64748b;
  font-size: 14px;
}

.ggsel-sales-card__error {
  color: #b42318;
  font-size: 14px;
}

.ggsel-sales-table th {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.ggsel-sales-table td {
  vertical-align: middle;
  font-size: 13px;
}

.ggsel-sales-table tr.ggsel-sales-row {
  cursor: pointer;
}

.ggsel-sales-table tr.ggsel-sales-row:hover {
  background: #f1f5f9;
}

.ggsel-sales-table tr.ggsel-sales-row .ggsel-sales-check {
  cursor: default;
}

.ggsel-sales-table tr.is-hiding {
  opacity: 0.45;
}

.digi-partner-days {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.digi-partner-day {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.digi-partner-day__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: #0f172a;
  color: #f8fafc;
}

.digi-partner-day__title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.digi-partner-day__count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}

.digi-partner-day__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.55rem 0.85rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.86rem;
  color: #475569;
}

.digi-partner-day__foot strong {
  color: #0f172a;
  font-weight: 700;
}

.digi-partner-day__sk,
.digi-partner-day__sk strong {
  color: #6d28d9;
}

.ggsel-sales-table tr.digi-partner-sales-row.is-sellerkeys > td {
  --bs-table-bg: #f5f3ff;
  background-color: #f5f3ff;
}

.ggsel-sales-table tr.digi-partner-sales-row.is-sellerkeys > td:first-child {
  box-shadow: inset 3px 0 0 #7c3aed;
}

.ggsel-sales-table tr.digi-partner-sales-row.is-sellerkeys:hover > td {
  --bs-table-bg: #ede9fe;
  background-color: #ede9fe;
}

.digi-partner-sk-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ggsel-sales-check {
  width: 2rem;
}

.ggsel-sales-cabinet {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.35;
}

.ggsel-sales-cabinet.is-main {
  color: #166534;
  background: #dcfce7;
}

.ggsel-sales-cabinet.is-second {
  color: #9a3412;
  background: #ffedd5;
}

.ggsel-sales-referer {
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.digi-sales-referer-link {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
}

.digi-sales-referer-link:hover {
  text-decoration: underline;
}

.ggsel-sales-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 600;
  color: #1f2937;
}

.ggsel-sales-title__text {
  min-width: 0;
}

.ggsel-sales-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

.ggsel-sales-stock.is-ok {
  color: #166534;
  background: #dcfce7;
}

.ggsel-sales-stock.is-empty {
  color: #9a3412;
  background: #ffedd5;
}

.ggsel-sales-stock.is-unknown {
  color: #64748b;
  background: #e2e8f0;
}

.ggsel-sales-stock:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

.ggsel-sales-account-btn {
  display: inline-block;
  margin: 0;
  padding: 0.15rem 0.5rem;
  border: 0;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ggsel-sales-account-btn:hover {
  background: #e2e8f0;
}

.ggsel-sales-data {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

.ggsel-sales-account-modal__body {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 60vh;
  overflow: auto;
}

.ggsel-sales-email {
  word-break: break-all;
  max-width: 220px;
}

.ggsel-sales-email__text {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  word-break: break-all;
}

.ggsel-sales-email__text:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.ggsel-sales-email__text.is-copied {
  color: #166534;
  text-decoration: none;
}

.ggsel-sales-email-copy:not(.ggsel-sales-email__text) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.ggsel-sales-email-copy:not(.ggsel-sales-email__text):hover {
  background: #f1f5f9;
  color: #334155;
}

.ggsel-sales-email-copy:not(.ggsel-sales-email__text).is-copied {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.ggsel-sales-meta {
  max-width: 160px;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
}

.ggsel-sales-rent-until {
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.ggsel-sales-rent-until.is-synced {
  color: #15803d;
  font-weight: 700;
}

.ggsel-sales-rent-until.is-missed {
  color: #dc2626;
  font-weight: 700;
}

.ggsel-sales-link-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 1px solid #fed7aa;
  border-radius: 4px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.ggsel-sales-link-copy:hover {
  background: #ffedd5;
  color: #9a3412;
}

.ggsel-sales-link-copy.is-copied {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.ggsel-sales-time {
  white-space: nowrap;
  color: #475569;
  font-size: 12px;
}

.ggsel-sales-sale {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

.ggsel-sales-fulfill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.35;
}

.ggsel-sales-fulfill.is-ok {
  color: #166534;
  background: #dcfce7;
}

.ggsel-sales-fulfill.is-muted {
  color: #9a3412;
  background: #ffedd5;
}

.ggsel-sales-fulfill.is-bad {
  color: #991b1b;
  background: #fee2e2;
}

.ggsel-sales-more-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.ggsel-sales-more-btn::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.35rem;
  color: #94a3b8;
  transition: transform 0.15s ease;
}

.ggsel-sales-more-btn[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.ggsel-sales-more-btn:hover {
  background: #f1f5f9;
}

.planner-card {
  border-radius: 8px;
}

.planner-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid var(--card-border);
}

.planner-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px 6px;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
}

.planner-weekdays span {
  text-align: center;
}

.planner-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.planner-day {
  height: 38px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 600;
}

.planner-day:hover {
  background: #f5f9ff;
  border-color: #b9d6ff;
}

.planner-day--today {
  border-color: #3b82f6;
}

.planner-day--has-tasks {
  position: relative;
  border-color: #ffd08a;
  background: #fff7eb;
}

.planner-day--has-tasks::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.planner-day--active {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.planner-day--active::after {
  background: #fbbf24;
}

.planner-day--empty {
  border-color: transparent;
  background: transparent;
}

.planner-task-list {
  max-height: 420px;
  overflow: auto;
}

.planner-task-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.planner-task-form textarea.form-control {
  min-height: 84px;
  resize: vertical;
}

.planner-task-range {
  grid-column: 1 / 2;
}

.planner-task-text {
  word-break: break-word;
  white-space: pre-wrap;
}

.planner-task-preview,
.planner-task-hidden {
  white-space: pre-wrap;
}

.planner-task-toggle {
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  padding: 0.2rem 0.55rem;
}

.planner-task-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.rent-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rent-page-head .page-title {
  margin: 0;
  flex: 0 0 auto;
}

.rent-color-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.rent-swap-color-quick {
  display: none;
  align-items: center;
  gap: 6px;
}

body.rent-swap-mode .rent-swap-color-quick {
  display: inline-flex;
}

.rent-swap-orange {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d97706;
  border-radius: 6px;
  background: #fed7aa;
  cursor: pointer;
}

.rent-swap-orange:hover {
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.35);
}

.rent-swap-clear-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  cursor: pointer;
}

.rent-swap-clear-bg:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.rent-swap-tools {
  margin-left: auto;
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  flex: 0 0 auto;
  z-index: 20;
}

.rent-mail-tools {
  display: none;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

body.rent-swap-mode.rent-show-pass .rent-mail-tools {
  display: flex;
}

.rent-mail-scan-btn,
.rent-mail-purge-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.rent-mail-scan-btn.is-busy,
.rent-mail-purge-btn.is-busy {
  opacity: 0.65;
  cursor: wait;
}

.rent-page-head .rent-swap-mode-btn,
.rent-page-head .rent-deactiv-mode-btn {
  margin-left: 0;
  flex: 0 0 auto;
}

.rent-deactiv-tools {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

body.rent-deactiv-mode .rent-deactiv-tools {
  display: inline-flex;
}

.rent-deactiv-done-count {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.rent-deactiv-done-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 1px solid #86efac;
  border-radius: 4px;
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.rent-deactiv-done-btn:hover {
  background: #bbf7d0;
  border-color: #4ade80;
}

body.rent-deactiv-mode .rent-deactiv-mark-col {
  background: #f0fdf4;
}

.rent-cat-filter {
  display: none;
  align-items: center;
  flex: 0 0 auto;
  min-width: 140px;
  max-width: 220px;
}

body.rent-swap-mode.rent-show-category .rent-cat-filter {
  display: inline-flex;
}

.rent-cat-filter .form-select {
  height: 31px;
  padding: 2px 28px 2px 8px;
  font-size: 13px;
  line-height: 1.2;
}

.rent-stock-push-slider {
  position: relative;
  display: none;
  width: 0;
  overflow: visible;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: width 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

body.rent-swap-mode .rent-stock-push-slider:not([hidden]) {
  display: block;
  width: 168px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.rent-stock-push-slider__handle {
  display: block;
  width: 100%;
  height: 31px;
  padding: 0 10px;
  border: 1px solid #fb923c;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 600;
  line-height: 29px;
  white-space: nowrap;
  cursor: pointer;
}

.rent-stock-push-slider.is-open .rent-stock-push-slider__handle,
.rent-stock-push-slider__handle[aria-expanded="true"] {
  background: #fed7aa;
  border-color: #f97316;
}

.rent-stock-push-slider__panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 30;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid #fdba74;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.rent-fields-slider {
  position: relative;
  display: block;
  width: 132px;
  flex: 0 0 auto;
}

body.rent-swap-mode .rent-fields-slider {
  display: none;
}

.rent-fields-slider.is-open .rent-stock-push-slider__handle,
.rent-fields-slider .rent-stock-push-slider__handle[aria-expanded="true"] {
  background: #fed7aa;
  border-color: #f97316;
}

.rent-stock-push-slider.is-open .rent-stock-push-slider__panel:not([hidden]),
.rent-fields-slider.is-open .rent-stock-push-slider__panel:not([hidden]) {
  display: flex;
}

.rent-stock-push-slider__item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #9a3412;
  cursor: pointer;
  white-space: nowrap;
}

.rent-stock-push-slider__item input {
  margin: 0;
  flex: 0 0 auto;
}

#rentSwapModeBtn.is-active {
  background: #fed7aa;
  color: #9a3412;
  border-color: #fb923c;
}

#rentDeactivModeBtn.is-active {
  background: #bbf7d0;
  color: #166534;
  border-color: #4ade80;
}

.rent-html-cell {
  position: relative;
  display: block;
  width: 100%;
  min-height: 1em;
}

.rent-game-line {
  display: block;
  min-width: 0;
  padding-right: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rent-game-title {
  display: inline;
}

.rent-swap-badge {
  display: none;
  position: absolute;
  top: 1px;
  right: 0;
  z-index: 3;
  min-width: 14px;
  padding: 0 3px;
  border-radius: 3px;
  background: #1e293b;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

body.rent-swap-mode.rent-show-sv-codes .rent-swap-badge--codes,
body.rent-swap-mode.rent-show-stock .rent-swap-badge--stock {
  display: inline-block;
}

.rent-swap-badge--stock-fake {
  background: #d97706;
}

.rent-swap-badge--low {
  background: #dc2626;
}

.rent-grid-wrap .tabulator-cell.rent-game-col,
.rent-grid-wrap .tabulator-cell.rent-most-col,
.rent-grid-wrap .tabulator-cell.rent-email-col {
  overflow: visible !important;
}

.rent-grid-wrap .tabulator-cell.rent-game-col .rent-html-cell {
  overflow: visible;
}

.rent-color-palette {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.rent-color-palette.is-active .rent-color-palette__toggle {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.rent-color-palette__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.rent-color-palette__toggle:hover {
  border-color: #cbd5e1;
  color: #334155;
}

.rent-color-palette__chevron {
  font-size: 10px;
  color: #94a3b8;
}

.rent-color-palette.is-open .rent-color-palette__chevron {
  transform: rotate(180deg);
}

.rent-color-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: 232px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.rent-color-pop[hidden] {
  display: none !important;
}

.rent-color-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.rent-color-pop__close {
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 1;
  color: #94a3b8;
}

.rent-color-pop__grid {
  display: grid;
  grid-template-columns: repeat(6, 28px);
  gap: 6px;
  justify-content: start;
}

.rent-color-pop__foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
}

.rent-color-clear {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #64748b;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.rent-color-clear:hover {
  color: #334155;
  background: #f1f5f9;
}

.rent-color-swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  cursor: pointer;
  flex: 0 0 auto;
}

.rent-color-swatch--bordered {
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.rent-color-swatch--dark {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.45);
}

.rent-strike-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.rent-strike-btn:hover {
  border-color: #cbd5e1;
  color: #334155;
}

.rent-strike-btn.is-active {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.rent-grid-wrap .tabulator-cell.rent-cell-strike,
.rent-grid-wrap .tabulator-cell.rent-cell-strike a,
.rent-grid-wrap .tabulator-cell.rent-cell-strike .rent-shop-link,
.rent-grid-wrap .tabulator-cell.rent-cell-strike .rent-shop-copy,
.rent-grid-wrap .tabulator-cell.rent-cell-strike .rent-shop-copy__name {
  text-decoration: line-through !important;
}

.rent-grid-wrap .tabulator-cell.rent-has-fg a,
.rent-grid-wrap .tabulator-cell.rent-has-fg .rent-shop-link,
.rent-grid-wrap .tabulator-cell.rent-has-fg .rent-shop-copy,
.rent-grid-wrap .tabulator-cell.rent-has-fg .rent-shop-copy__name {
  color: var(--rent-fg) !important;
}

.rent-color-swatch:hover,
.rent-color-swatch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.rent-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
}

.rent-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(280px, 100%);
  height: 36px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: #94a3b8;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.rent-search i {
  font-size: 12px;
}

.rent-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.rent-search input::placeholder {
  color: #94a3b8;
}

.rent-search:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  color: #64748b;
}

.rent-search-paste {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.rent-search-paste:hover {
  border-color: #93c5fd;
  color: #2563eb;
}

.rent-search-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 4px 0 6px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.rent-search-nav[hidden] {
  display: none;
}

.rent-search-nav-count {
  min-width: 44px;
  padding: 0 4px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.rent-search-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
}

.rent-search-nav-btn:hover:not(:disabled) {
  background: #eff6ff;
  color: #2563eb;
}

.rent-search-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.rent-card {
  overflow: hidden;
}

.rent-table-wrap {
  max-height: calc(100vh - 148px);
  overflow: auto;
}

.rent-accounts-table {
  font-size: 13px;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: #f8fbff;
  border-color: transparent;
}

.rent-accounts-table > :not(caption) > * > * {
  background: transparent;
  border-bottom-color: #edf2f7;
  box-shadow: none;
}

.rent-accounts-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  white-space: nowrap;
  background: #f7fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #e6edf3 !important;
  padding-top: 10px;
  padding-bottom: 10px;
}

.rent-accounts-table tbody tr {
  transition: background-color 0.12s ease;
}

.rent-accounts-table tbody tr:hover > * {
  background: #f8fbff;
}

.rent-accounts-table tbody tr.table-warning {
  --bs-table-bg: #fff8eb;
  --bs-table-accent-bg: #fff8eb;
  --bs-table-hover-bg: #fff3d6;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.rent-accounts-table tbody tr.table-warning > * {
  background: #fff8eb;
  color: inherit;
}

.rent-accounts-table tbody tr.table-warning:hover > * {
  background: #fff3d6;
}

.rent-game-th,
.rent-date-th,
.rent-pass-th {
  vertical-align: middle;
}

.rent-pass-th {
  white-space: normal;
}

.rent-email-th,
.rent-email-cell,
.rent-game-th,
.rent-game-cell,
.rent-date-th,
.rent-date-cell {
  width: 1%;
  white-space: nowrap;
}

.rent-pass-th,
.rent-pass-cell {
  width: calc(13ch + 42px);
  min-width: calc(13ch + 42px);
  max-width: calc(13ch + 42px);
  text-align: center;
}

.rent-date-th,
.rent-date-cell {
  text-align: center;
}

.rent-accounts-table.table-sm > :not(caption) > * > * {
  padding-top: 8px;
  padding-bottom: 8px;
}

.rent-accounts-table.table-sm > :not(caption) > * > .rent-email-th,
.rent-accounts-table.table-sm > :not(caption) > * > .rent-email-cell,
.rent-accounts-table.table-sm > :not(caption) > * > .rent-game-th,
.rent-accounts-table.table-sm > :not(caption) > * > .rent-game-cell {
  padding-right: 30px;
}

.rent-accounts-table.table-sm > :not(caption) > * > .rent-date-th,
.rent-accounts-table.table-sm > :not(caption) > * > .rent-date-cell {
  padding-left: 15px;
  padding-right: 15px;
}

.rent-email-cell {
  color: #64748b;
  font-size: 12.5px;
}

.rent-game-text {
  font-weight: 600;
  color: #1e293b;
}

.rent-user-cell,
.rent-dop-cell {
  color: #64748b;
}

.rent-user-cell:empty::before,
.rent-dop-cell:empty::before,
.rent-date-text:empty::before,
.rent-extra-text:empty::before {
  content: "—";
  color: #cbd5e1;
  font-weight: 400;
}

.rent-shop-th,
.rent-extra-cell {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.rent-extra-cell {
  cursor: default;
}

.rent-extra-cell.is-editing .rent-extra-text {
  display: none;
}

.rent-extra-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 1.2em;
  min-width: 1.2em;
}

.rent-shop-link {
  color: #0b63c7;
  text-decoration: none;
  font-weight: 600;
}

.rent-shop-link:hover {
  text-decoration: underline;
}

.rent-shop-id {
  font-weight: 600;
  color: #334155;
}

.rent-shop-copy {
  width: auto;
  min-width: 0;
  height: 22px;
  padding: 0 6px;
  gap: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b63c7;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.rent-shop-copy__name {
  line-height: 1;
}

.rent-shop-copy:hover,
.rent-shop-copy:focus {
  color: #1f2937;
  background: #eef1f4;
}

.rent-shop-copy.is-copied {
  color: #15803d;
}

.rent-extra-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
}

.rent-accounts-table .rent-extra-input.form-control {
  width: 7ch;
  min-width: 7ch;
  max-width: 10ch;
  height: 24px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid #c5ccd3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  text-align: center;
}

.rent-accounts-table .rent-extra-input.form-control:focus {
  border-color: transparent;
  border-bottom-color: #8a94a0;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.rent-extra-save {
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: transparent;
  border: 0;
}

.rent-extra-save:hover,
.rent-extra-save:focus {
  color: #1f2937;
  background: #eef1f4;
}

.rent-th-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.rent-date-th .rent-th-sort {
  justify-content: center;
}

.rent-th-sort span {
  line-height: 1.2;
}

.rent-sort-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.rent-sort-btn:hover,
.rent-sort-btn.is-active {
  color: #2563eb;
}

.rent-sort-menu {
  position: fixed;
  z-index: 40;
  min-width: 118px;
  padding: 4px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.rent-sort-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  font-size: 12px;
  line-height: 1.3;
  color: inherit;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.rent-sort-option:hover,
.rent-sort-option.is-current {
  background: #eef5fb;
  color: #2563eb;
}

.rent-num-col,
.rent-num {
  width: 42px;
  text-align: right;
  white-space: nowrap;
}

.rent-num {
  font-size: 11px;
  color: #94a3b8 !important;
}

.rent-pass-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  cursor: text;
}

.rent-pass-cell.is-editing .rent-pass-text,
.rent-date-cell.is-editing .rent-date-text {
  display: none;
}

.rent-game-cell {
  cursor: pointer;
}

.rent-game-cell.is-editing {
  background: #eef5fb;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.rent-sv-pop {
  position: fixed;
  z-index: 50;
  width: 340px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.rent-sv-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #d5dbe3;
  border-top: 1px solid #d5dbe3;
  transform: rotate(45deg);
}

.rent-sv-pop.is-above::before {
  top: auto;
  bottom: -6px;
  border: 0;
  border-right: 1px solid #d5dbe3;
  border-bottom: 1px solid #d5dbe3;
}

.rent-sv-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.rent-sv-pop__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rent-sv-input.form-control {
  min-height: 110px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid #c5ccd3;
  border-radius: 6px;
  box-shadow: none;
  resize: vertical;
}

.rent-sv-input.form-control:focus {
  border-color: #64748b;
  outline: none;
  box-shadow: none;
}

.rent-sv-cash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.rent-sv-cash-input.form-control {
  min-height: 96px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid #c5ccd3;
  border-radius: 6px;
  box-shadow: none;
  resize: vertical;
}

.rent-sv-cash-input.form-control:focus {
  border-color: #64748b;
  outline: none;
  box-shadow: none;
}

.rent-sv-cash-copy {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.rent-sv-cash-copy:hover,
.rent-sv-cash-copy:focus {
  color: #1f2937;
  background: #eef1f4;
}

.rent-sv-cash-copy.is-copied {
  color: #15803d;
}

.rent-sv-totp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.rent-sv-totp[hidden] {
  display: none;
}

.rent-sv-totp-bar-wrap {
  flex: 1;
  min-width: 0;
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.rent-sv-totp-bar {
  height: 100%;
  width: 100%;
  transform: scaleX(1);
  transform-origin: left center;
  background: #2563eb;
  border-radius: 99px;
}

.rent-sv-totp-bar.is-ending {
  background: #dc2626;
}

.rent-sv-totp-code {
  flex: 0 0 auto;
  min-width: 7.2ch;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  text-align: center;
}

.rent-sv-totp-copy {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.rent-sv-totp-copy:hover,
.rent-sv-totp-copy:focus {
  color: #1f2937;
  background: #eef1f4;
}

.rent-sv-totp-copy.is-copied {
  color: #15803d;
}

.rent-sv-save,
.rent-sv-close,
.rent-sv-tidy {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.rent-sv-save:hover,
.rent-sv-save:focus,
.rent-sv-close:hover,
.rent-sv-close:focus,
.rent-sv-tidy:hover,
.rent-sv-tidy:focus {
  color: #1f2937;
  background: #eef1f4;
}

.rent-date-pop {
  position: fixed;
  z-index: 50;
  width: 320px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.rent-date-pop::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #d5dbe3;
  border-top: 1px solid #d5dbe3;
  transform: rotate(45deg);
}

.rent-date-pop.is-above::before {
  top: auto;
  bottom: -6px;
  border: 0;
  border-right: 1px solid #d5dbe3;
  border-bottom: 1px solid #d5dbe3;
}

.rent-date-pop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.rent-date-pop__body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.rent-date-pop__picker {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rent-date-pop__label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rent-date-pop-input.form-control {
  height: 34px;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #c5ccd3;
  border-radius: 6px;
  box-shadow: none;
}

.rent-date-pop-input.form-control:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.rent-date-pop-text.form-control {
  height: 34px;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #c5ccd3;
  border-radius: 6px;
  box-shadow: none;
}

.rent-date-pop-text.form-control:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.rent-date-pop-clear {
  padding: 2px 8px;
  font-size: 11px;
  color: #64748b;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.rent-date-pop-clear:hover {
  color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.rent-date-pop__presets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 86px;
}

.rent-date-preset-btn {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
}

.rent-date-preset-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.rent-date-preset-btn:focus,
.rent-date-preset-btn:focus-visible {
  outline: none;
  box-shadow: none;
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.rent-date-pop__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
}

.rent-date-pop-save {
  padding: 4px 14px;
  font-size: 12px;
}

.rent-date-pop-close {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.rent-date-pop-close:hover,
.rent-date-pop-close:focus {
  color: #1f2937;
  background: #eef1f4;
}

.rent-pass-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
}

.rent-pass-text {
  display: block;
  min-height: 1.2em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rent-accounts-table .rent-pass-input.form-control {
  width: 13ch;
  min-width: 13ch;
  max-width: 13ch;
  height: 24px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid #c5ccd3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  text-align: center;
}

.rent-accounts-table .rent-pass-input.form-control:focus {
  border-color: transparent;
  border-bottom-color: #8a94a0;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.rent-pass-save {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: transparent;
  border: 0;
}

.rent-pass-save:hover,
.rent-pass-save:focus {
  color: #1f2937;
  background: #eef1f4;
}

.rent-term-select {
  width: auto;
  min-width: 92px;
  max-width: 110px;
  height: 24px;
  padding: 0 20px 0 4px;
  font-size: 12px;
  line-height: 22px;
  border: 0;
  border-bottom: 1px solid #c5ccd3;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.rent-term-select:focus {
  border-color: transparent;
  border-bottom-color: #8a94a0;
  outline: none;
  box-shadow: none;
}

.date-with-actions .rent-term-select {
  height: 30px;
  line-height: 28px;
  min-width: 100px;
}

.rent-date-cell {
  text-align: center;
  cursor: text;
}

.rent-date-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
}

.rent-date-text {
  display: inline-block;
  min-height: 1.2em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef4fb;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.rent-date-text:empty {
  padding: 0;
  background: transparent;
}

.rent-accounts-table tbody tr.table-warning .rent-date-text:not(:empty) {
  background: #fde68a;
  color: #92400e;
}

.rent-accounts-table .rent-date-input.form-control {
  width: 110px;
  height: 24px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid #c5ccd3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  text-align: center;
}

.rent-accounts-table .rent-date-input.form-control:focus {
  border-color: transparent;
  border-bottom-color: #8a94a0;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.rent-date-save {
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: transparent;
  border: 0;
}

.rent-until-preview {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

/* Tabulator grid — аренда аккаунтов (компактный) */
.rent-grid-wrap {
  font-size: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
}

.rent-grid-wrap .tabulator {
  border: 0;
  background: transparent;
  font-size: 12px;
  width: 100% !important;
  max-width: 100%;
}

.rent-grid-wrap .tabulator-tableholder {
  overflow: auto !important;
}

.rent-grid-wrap .tabulator-header {
  border-bottom: 1px solid #e6edf3;
  background: #f7fafc;
}

.rent-grid-wrap .tabulator-col {
  background: #f7fafc;
}

.rent-grid-wrap .tabulator-col-content {
  padding: 4px 6px !important;
  text-align: center;
}

.rent-grid-wrap .tabulator-col-title-holder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.rent-grid-wrap .tabulator-col-title {
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}

.rent-grid-wrap .tabulator-row {
  border-bottom: 1px solid #f1f5f9;
  min-height: 26px;
}

.rent-grid-wrap .tabulator-row:nth-child(even) {
  background: #fafbfc;
}

.rent-grid-wrap .tabulator-row:hover {
  background: #f8fbff !important;
}

.rent-grid-wrap.is-searching .tabulator-row:not(.rent-search-hit) .tabulator-cell {
  opacity: 0.38;
}

.rent-grid-wrap .tabulator-row.rent-search-hit .tabulator-cell {
  background: #fef9c3 !important;
}

.rent-grid-wrap .tabulator-row.rent-search-hit .tabulator-cell.rent-search-cell {
  background: #fde047 !important;
  box-shadow: inset 0 0 0 1px #f59e0b;
  font-weight: 600;
}

.rent-grid-wrap .tabulator-row.rent-search-current .tabulator-cell {
  background: #fde68a !important;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.rent-grid-wrap .tabulator-cell {
  padding: 4px 6px;
  border-right: 0;
  line-height: 1.3;
}

.rent-grid-wrap .rent-num-col {
  color: #94a3b8;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.rent-grid-wrap .tabulator-row .rent-num-col {
  cursor: pointer;
}

.rent-grid-wrap .tabulator-row .rent-num-col.is-copied {
  color: #2563eb;
  font-weight: 700;
}

.rent-grid-wrap .tabulator-row-header .tabulator-cell {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.rent-grid-wrap .rent-email-col {
  color: #64748b;
  font-size: 11.5px;
}

.rent-grid-wrap .tabulator-header .tabulator-col.tabulator-row-header,
.rent-grid-wrap .tabulator-row .tabulator-cell.tabulator-row-header {
  position: sticky !important;
  left: 0 !important;
  z-index: 8;
  background: #f7fafc;
}

.rent-grid-wrap .tabulator-col.rent-email-col,
.rent-grid-wrap .tabulator-cell.rent-email-col {
  position: sticky !important;
  left: var(--rent-left-email, 52px) !important;
  z-index: 7;
  background: #fff;
}

.rent-grid-wrap .tabulator-col.rent-pass-col,
.rent-grid-wrap .tabulator-cell.rent-pass-col {
  position: sticky !important;
  left: var(--rent-left-pass, 202px) !important;
  z-index: 6;
  background: #fff;
}

.rent-grid-wrap .tabulator-col.rent-game-col,
.rent-grid-wrap .tabulator-cell.rent-game-col {
  position: sticky !important;
  left: var(--rent-left-game, 274px) !important;
  z-index: 5;
  background: #fff;
  box-shadow: 2px 0 0 #e6edf3;
}

.rent-grid-wrap .tabulator-header .tabulator-col.rent-email-col,
.rent-grid-wrap .tabulator-header .tabulator-col.rent-pass-col,
.rent-grid-wrap .tabulator-header .tabulator-col.rent-game-col {
  background: #f7fafc;
}

.rent-grid-wrap .tabulator-row:nth-child(even) .tabulator-cell.rent-email-col,
.rent-grid-wrap .tabulator-row:nth-child(even) .tabulator-cell.rent-pass-col,
.rent-grid-wrap .tabulator-row:nth-child(even) .tabulator-cell.rent-game-col {
  background: #fafbfc;
}

.rent-grid-wrap .tabulator-row:hover .tabulator-cell.rent-email-col,
.rent-grid-wrap .tabulator-row:hover .tabulator-cell.rent-pass-col,
.rent-grid-wrap .tabulator-row:hover .tabulator-cell.rent-game-col {
  background: #f8fbff;
}

.rent-grid-wrap .rent-game-col {
  cursor: pointer;
  font-weight: 500;
  color: #1e293b;
  font-size: 12px;
}

.rent-grid-wrap .rent-date-col {
  cursor: pointer;
}

.rent-grid-wrap .rent-date-col.is-date-open {
  background: #eff6ff !important;
}

.rent-grid-wrap .tabulator-cell.rent-pass-col.is-pass-clip-open {
  background: #eff6ff !important;
}

.rent-pass-clip {
  position: fixed;
  z-index: 70;
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.rent-pass-clip[hidden] {
  display: none !important;
}

.rent-pass-clip__btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.rent-pass-clip__btn:active,
.rent-pass-clip__btn:hover {
  background: #e2e8f0;
}

.rent-grid-wrap .tabulator-cell.rent-date-col.is-date-clear-open {
  background: #eff6ff !important;
}

.rent-date-clear {
  position: fixed;
  z-index: 70;
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.rent-date-clear[hidden] {
  display: none !important;
}

.rent-date-clear__btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.rent-date-clear__btn:active,
.rent-date-clear__btn:hover {
  background: #e2e8f0;
}

.rent-grid-wrap .tabulator-cell.rent-email-col.is-email-clip-open {
  background: #eff6ff !important;
}

.rent-email-clip {
  position: fixed;
  z-index: 70;
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #fff;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.rent-email-clip[hidden] {
  display: none !important;
}

.rent-email-clip__btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

.rent-email-clip__btn:active,
.rent-email-clip__btn:hover {
  background: #e2e8f0;
}

.rent-grid-wrap .rent-pass-col,
.rent-grid-wrap .rent-date-col,
.rent-grid-wrap .rent-shop-col {
  font-size: 11.5px;
}

.rent-grid-wrap .tabulator-col.rent-group-arenda {
  background: #e8f1fb !important;
  border-bottom: 1px solid #bfd3ea !important;
}

.rent-grid-wrap .tabulator-col.rent-group-arenda > .tabulator-col-content {
  padding: 3px 6px !important;
}

.rent-grid-wrap .tabulator-col.rent-group-arenda > .tabulator-col-content .tabulator-col-title {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rent-grid-wrap .tabulator-col.rent-arenda-col {
  background: #eef5fc !important;
}

.rent-grid-wrap .tabulator-cell.rent-arenda-col {
  background: #f5f9fd;
  border-left: 1px solid #e2ebf5;
  border-right: 1px solid #e2ebf5;
}

.rent-grid-wrap .tabulator-row:nth-child(even) .tabulator-cell.rent-arenda-col {
  background: #eef4fb;
}

.rent-grid-wrap .tabulator-row:hover .tabulator-cell.rent-arenda-col {
  background: #e4eef9 !important;
}

.rent-grid-wrap .tabulator-col.rent-arenda-col--first,
.rent-grid-wrap .tabulator-cell.rent-arenda-col--first {
  border-left: 2px solid #93c5fd;
}

.rent-grid-wrap .tabulator-col.rent-arenda-col--last,
.rent-grid-wrap .tabulator-cell.rent-arenda-col--last {
  border-right: 2px solid #93c5fd;
}

.rent-grid-wrap .tabulator-col.rent-col-split,
.rent-grid-wrap .tabulator-cell.rent-col-split,
.rent-grid-wrap .tabulator-col.rent-arenda-col--split,
.rent-grid-wrap .tabulator-cell.rent-arenda-col--split,
.rent-grid-wrap .tabulator-col.rent-activ-col--split,
.rent-grid-wrap .tabulator-cell.rent-activ-col--split {
  border-right: 10px solid #e2e8f0 !important;
  box-shadow: inset -2px 0 0 #111827;
}

.rent-grid-wrap .tabulator-col.rent-col-after-split,
.rent-grid-wrap .tabulator-cell.rent-col-after-split,
.rent-grid-wrap .tabulator-col.rent-arenda-col--after-split,
.rent-grid-wrap .tabulator-cell.rent-arenda-col--after-split {
  box-shadow: inset 2px 0 0 #111827;
}

.rent-grid-wrap .tabulator-col.rent-group-activ {
  background: #e8f7ef !important;
  border-bottom: 1px solid #b7dfc8 !important;
}

.rent-grid-wrap .tabulator-col.rent-group-activ > .tabulator-col-content {
  padding: 3px 6px !important;
}

.rent-grid-wrap .tabulator-col.rent-group-activ > .tabulator-col-content .tabulator-col-title {
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rent-grid-wrap .tabulator-col.rent-activ-col {
  background: #eefaf3 !important;
}

.rent-grid-wrap .tabulator-cell.rent-activ-col {
  background: #f4fbf7;
  border-left: 1px solid #ddeee4;
  border-right: 1px solid #ddeee4;
}

.rent-grid-wrap .tabulator-row:nth-child(even) .tabulator-cell.rent-activ-col {
  background: #eaf6ef;
}

.rent-grid-wrap .tabulator-row:hover .tabulator-cell.rent-activ-col {
  background: #dff3e8 !important;
}

.rent-grid-wrap .tabulator-col.rent-activ-col--first,
.rent-grid-wrap .tabulator-cell.rent-activ-col--first {
  border-left: 2px solid #6ee7b7;
}

.rent-grid-wrap .tabulator-col.rent-activ-col--last,
.rent-grid-wrap .tabulator-cell.rent-activ-col--last {
  border-right: 2px solid #6ee7b7;
}

.rent-grid-wrap .rent-mark-col,
.rent-grid-wrap .rent-tail-col {
  font-family: inherit, "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", sans-serif;
  font-size: 13px;
  min-width: 48px;
}

.rent-grid-wrap .rent-game-col .rent-game-cash-empty {
  color: #dc2626;
  font-weight: 800;
}

.rent-grid-wrap .rent-game-col.is-sv-open {
  background: #eff6ff !important;
}

.rent-grid-wrap .rent-empty-dash {
  color: #cbd5e1;
}

.rent-most-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
}

.rent-stock-push {
  display: none;
  position: absolute;
  top: 1px;
  left: auto;
  right: 18px;
  z-index: 4;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 54px;
  height: 16px;
  padding: 0 5px;
  border: 0;
  border-radius: 3px;
  background-color: #16a34a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='16'%3E%3Ctext x='27' y='12' text-anchor='middle' fill='%23fff' font-size='10' font-weight='800' font-family='system-ui,-apple-system,sans-serif'%3E%D0%9D%D0%B0%20%D1%81%D0%BA%D0%BB%D0%B0%D0%B4%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 54px 16px;
  color: transparent;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rent-stock-push,
.rent-acc-reset,
.rent-mail-reset {
  user-select: none;
  -webkit-user-select: none;
}

body.rent-swap-mode.rent-push-on--rent_most .rent-stock-push {
  display: inline-flex !important;
}

body.rent-swap-mode.rent-push-on--rent_most:not(.rent-show-sv-codes) .rent-stock-push {
  right: 2px;
}

body.rent-swap-mode.rent-push-on--rent_most .rent-game-line {
  padding-right: 84px;
}

.rent-stock-push:hover {
  background-color: #15803d;
}

.rent-stock-push:disabled {
  opacity: 0.5;
  cursor: wait;
}

.rent-stock-push.is-used {
  background-color: #94a3b8;
  color: transparent;
}

.rent-stock-push.is-used:hover {
  background-color: #64748b;
  color: transparent;
}

.rent-email-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.rent-mail-reset {
  display: none;
  position: absolute;
  top: 1px;
  right: 18px;
  z-index: 4;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 44px;
  height: 16px;
  padding: 0 5px;
  border: 0;
  border-radius: 3px;
  background-color: #f59e0b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='16'%3E%3Ctext x='22' y='12' text-anchor='middle' fill='%23111' font-size='10' font-weight='800' font-family='system-ui,-apple-system,sans-serif'%3EUpdate%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 44px 16px;
  color: transparent;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.rent-swap-mode.rent-show-pass .rent-mail-reset {
  display: inline-flex !important;
}

body.rent-swap-mode.rent-show-pass:not(.rent-show-sv-codes) .rent-mail-reset {
  right: 2px;
}

body.rent-swap-mode.rent-show-pass.rent-push-on--rent_most .rent-mail-reset {
  right: 80px;
}

body.rent-swap-mode.rent-show-pass.rent-push-on--rent_most:not(.rent-show-sv-codes) .rent-mail-reset {
  right: 64px;
}

.rent-acc-reset {
  display: none;
  position: absolute;
  top: 1px;
  right: 18px;
  z-index: 4;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 38px;
  height: 16px;
  padding: 0 5px;
  border: 0;
  border-radius: 3px;
  background-color: #38bdf8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='16'%3E%3Ctext x='19' y='12' text-anchor='middle' fill='%230f172a' font-size='10' font-weight='800' font-family='system-ui,-apple-system,sans-serif'%3EReset%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 38px 16px;
  color: transparent;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.rent-swap-mode.rent-show-reset-pass .rent-acc-reset {
  display: inline-flex !important;
}

body.rent-swap-mode.rent-show-reset-pass:not(.rent-show-sv-codes) .rent-acc-reset {
  right: 2px;
}

body.rent-swap-mode.rent-show-pass.rent-show-reset-pass .rent-acc-reset {
  right: 68px;
}

body.rent-swap-mode.rent-show-pass.rent-show-reset-pass:not(.rent-show-sv-codes) .rent-acc-reset {
  right: 52px;
}

body.rent-swap-mode.rent-show-reset-pass.rent-push-on--rent_most .rent-acc-reset {
  right: 80px;
}

body.rent-swap-mode.rent-show-reset-pass.rent-push-on--rent_most:not(.rent-show-sv-codes) .rent-acc-reset {
  right: 64px;
}

body.rent-swap-mode.rent-show-pass.rent-show-reset-pass.rent-push-on--rent_most .rent-acc-reset {
  right: 130px;
}

body.rent-swap-mode.rent-show-pass.rent-show-reset-pass.rent-push-on--rent_most:not(.rent-show-sv-codes) .rent-acc-reset {
  right: 114px;
}

body.rent-swap-mode.rent-show-reset-pass .rent-game-line {
  padding-right: 100px;
}

body.rent-swap-mode.rent-show-pass.rent-show-reset-pass .rent-game-line {
  padding-right: 148px;
}

body.rent-swap-mode.rent-push-on--rent_most.rent-show-pass .rent-game-line,
body.rent-swap-mode.rent-push-on--rent_most.rent-show-reset-pass .rent-game-line {
  padding-right: 160px;
}

body.rent-swap-mode.rent-push-on--rent_most.rent-show-pass.rent-show-reset-pass .rent-game-line {
  padding-right: 210px;
}

.rent-acc-reset.is-used {
  background-color: #94a3b8;
  color: transparent;
}

.rent-acc-reset:hover {
  background-color: #0ea5e9;
  color: transparent;
}

.rent-acc-reset.is-used:hover {
  background-color: #64748b;
  color: transparent;
}

.rent-mail-reset.is-used {
  background-color: #94a3b8;
  color: transparent;
}

.rent-mail-reset:hover {
  background-color: #d97706;
  color: transparent;
}

.rent-mail-reset.is-used:hover {
  background-color: #64748b;
  color: transparent;
}

.rent-grid-wrap .rent-shop-copy {
  height: 18px;
  padding: 0 4px;
  font-size: 11px;
}

.rent-grid-wrap .rent-shop-copy i {
  font-size: 10px;
}

.rent-grid-wrap .tabulator-editing input,
.rent-grid-wrap .tabulator-editing textarea {
  font-size: 12px;
  padding: 2px 4px;
  border: 1px solid #93c5fd;
  border-radius: 3px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.rent-date-edit-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 220px;
}

.rent-date-edit-tab .rent-date-input {
  width: 96px;
  min-width: 96px;
  font-size: 12px;
  padding: 4px 6px;
}

.rent-date-edit-tab .rent-term-select {
  width: auto;
  min-width: 88px;
  font-size: 12px;
  padding: 4px 6px;
}

.rent-grid-error {
  padding: 24px;
  text-align: center;
  color: #64748b;
}

/* Tabulator range selection — не ломать встроенную логику partial-range */
.rent-grid-wrap .tabulator-range-overlay {
  z-index: 20;
}

.rent-grid-wrap .range-header-col {
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.rent-grid-wrap .tabulator-row-header .tabulator-cell {
  background: #f7fafc;
  border-right: 1px solid #e6edf3;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.rent-grid-wrap .tabulator-row-header .tabulator-cell:hover {
  background: #eff6ff;
}

/* Полная строка / столбец (клик по # или заголовку) */
.rent-grid-wrap .tabulator-row .tabulator-cell.tabulator-range-selected:not(.tabulator-range-only-cell-selected):not(.tabulator-range-row-header) {
  background: #dbeafe;
}

.rent-grid-wrap .tabulator-header .tabulator-col.tabulator-range-selected {
  background: #3b82f6;
  color: #fff;
}

.rent-grid-wrap .tabulator-row .tabulator-cell.tabulator-range-row-header.tabulator-range-selected {
  background: #3b82f6;
  color: #fff;
}

/* Прямоугольник диапазона (partial selection) — рисуется overlay, не фон строки */
.rent-grid-wrap .tabulator-range-overlay .tabulator-range {
  border: 2px solid #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.rent-grid-wrap .tabulator-range-overlay .tabulator-range.tabulator-range-active:after {
  background-color: #3b82f6;
}

.rent-grid-wrap .tabulator-range-overlay .tabulator-range-cell-active {
  border: 2px solid #3b82f6;
}

@media (max-width: 1024px) {
  .home-tools-row {
    grid-template-columns: 1fr;
  }

  .planner-grid {
    grid-template-columns: 1fr;
  }

  .planner-task-form {
    grid-template-columns: 1fr;
  }
}
