/* Admin visitors, reports, tracking links and share stats modals.
 * Extracted from styles.css; keep import order in styles.css stable. */

/* Админ: просмотры раздела (внизу каждого .view) */
.admin-section-views {
  margin-top: 12px;
  padding: 8px 12px 10px;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
}
.admin-section-views--hidden {
  display: none !important;
}
.admin-section-views__text strong {
  color: var(--text);
  font-weight: 600;
}

/* Модалка «Посетители» (админ) */
.visitors-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.visitors-admin-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.share-stats-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.share-stats-admin-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
#adminReportModal {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  z-index: 2147482500;
  background: #05070d;
  isolation: isolate;
}
#adminReportModal[aria-hidden="true"] {
  display: none;
}
#adminReportModal .share-stats-admin-modal__backdrop {
  background: #05070d;
}
.share-stats-admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.share-stats-admin-modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow: auto;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 20px;
}
.share-stats-admin-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.share-stats-admin-modal__close:hover {
  color: var(--text);
  background: var(--bg-elevated);
}
.share-stats-admin-modal__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--text);
}
.share-stats-admin-modal__hint {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.share-stats-admin-modal__hint code {
  font-size: 12px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--block-bg, rgba(148, 163, 184, 0.15));
}
.share-stats-admin-modal__box--wide {
  max-width: 560px;
}
.visitors-admin-modal__admin-tools-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.visitors-admin-modal__admin-tools-row .visitors-admin-modal__share-stats-btn {
  margin-bottom: 0;
}
@media (min-width: 400px) {
  .visitors-admin-modal__admin-tools-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .visitors-admin-modal__admin-tools-row .visitors-admin-modal__share-stats-btn {
    flex: 1;
    min-width: 140px;
  }
}
.admin-chat-push-all__subs-line {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
}
.admin-chat-push-all__subs-btn {
  margin-left: 10px;
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: var(--block-bg, rgba(30, 41, 59, 0.65));
  color: inherit;
  cursor: pointer;
}
.admin-chat-push-all__subs-btn:active {
  opacity: 0.88;
}
.admin-chat-push-all__subs-wrap {
  max-height: min(40vh, 280px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
}
[data-theme="light"] .admin-chat-push-all__subs-wrap {
  background: rgba(241, 245, 249, 0.55);
}
.admin-chat-push-all__subs-wrap--hidden {
  display: none !important;
}
.admin-chat-push-all__subs-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
  line-height: 1.4;
}
.admin-chat-push-all__subs-item:last-child {
  border-bottom: none;
}
.admin-chat-push-all__subs-id {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
}
.admin-chat-push-all__subs-empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.admin-chat-push-all__remain {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.admin-chat-push-all__target-select {
  min-height: 44px;
  cursor: pointer;
}
.auth-debug-modal__actions {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}
.auth-debug-modal__output {
  max-height: min(58vh, 520px);
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.tracking-links-admin__form {
  margin-bottom: 16px;
}
.tracking-links-admin__create-msg {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.tracking-links-admin__create-msg--err {
  color: #f87171;
}
.tracking-links-admin__new-url-wrap {
  margin-top: 12px;
}
.tracking-links-admin__new-url-wrap--hidden {
  display: none !important;
}
.tracking-links-admin__new-url-label {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.tracking-links-admin__new-url-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 420px) {
  .tracking-links-admin__new-url-row {
    flex-direction: row;
    align-items: stretch;
  }
  .tracking-links-admin__new-url-row .visitors-admin-modal__broadcast-input {
    flex: 1;
    min-width: 0;
  }
}
.tracking-links-admin__copy-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.tracking-links-admin__th-hint {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: var(--text-muted);
  white-space: normal;
  max-width: 140px;
  line-height: 1.2;
}
.tracking-links-admin__url-copy-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--accent, #f97316);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  line-height: 1.35;
  word-break: break-all;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
}
.tracking-links-admin__url-copy-btn:hover {
  background: rgba(148, 163, 184, 0.2);
}
.tracking-links-admin__url-copy-btn:active {
  opacity: 0.9;
}
.tracking-links-admin__cell-activity {
  white-space: normal;
  max-width: 220px;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.35;
}
.tracking-links-admin__no-activity {
  color: var(--text-muted);
  font-style: italic;
}
.tracking-links-admin__act-block {
  text-align: left;
}
.tracking-links-admin__act-total {
  margin-bottom: 4px;
  color: var(--text);
}
.tracking-links-admin__act-last {
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-muted);
}
.tracking-links-admin__list-title {
  margin: 16px 0 8px;
  font-size: 15px;
  color: var(--text);
}
.tracking-links-admin__table-wrap {
  overflow-x: auto;
  max-height: 42vh;
  overflow-y: auto;
  border: 1px solid var(--border, #334155);
  border-radius: 10px;
}
.tracking-links-admin__table-wrap--tall {
  max-height: 55vh;
}
.tracking-links-admin__table td.tracking-links-admin__cell-label {
  white-space: normal;
  max-width: 200px;
}
.tracking-links-admin__cell-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
  white-space: normal;
}
.tracking-links-admin__who-btn {
  font-size: 11px;
  padding: 6px 8px;
  white-space: nowrap;
}
.tracking-links-admin__back-btn {
  margin: 0 0 12px;
  align-self: flex-start;
}
.share-stats-admin-modal__table-wrap {
  overflow-x: auto;
}
.share-stats-admin-modal__table-wrap--matrix {
  max-width: 100%;
}
.share-stats-admin-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.share-stats-admin-modal__table--matrix {
  table-layout: fixed;
}
.share-stats-admin-modal__table--matrix thead tr {
  background: rgba(34, 197, 94, 0.2);
}
.share-stats-admin-modal__table--matrix th,
.share-stats-admin-modal__table--matrix td {
  width: 25%;
  padding: 3px 4px;
  text-align: left;
  border: 1px solid var(--border, #334155);
  white-space: nowrap;
}
.share-stats-admin-modal__table--matrix td:nth-child(odd) {
  font-size: 11px;
  color: var(--text-muted);
}
.share-stats-admin-modal__table th,
.share-stats-admin-modal__table td {
  padding: 4px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border, #334155);
  white-space: nowrap;
}
.share-stats-admin-modal__table th {
  font-weight: 600;
  color: var(--text-muted);
}
.share-stats-admin-modal__table td {
  color: var(--text);
}
.share-stats-admin-modal__table tbody tr:last-child td {
  border-bottom: none;
}

.admin-report-input {
  width: 100%;
  max-width: 90px;
  padding: 3px 4px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--input-bg, var(--card-bg));
  color: var(--text);
  font-size: 12px;
  box-sizing: border-box;
}
.admin-report-input[type="number"],
.admin-report-rakeback-input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.admin-report-input[type="number"]::-webkit-outer-spin-button,
.admin-report-input[type="number"]::-webkit-inner-spin-button,
.admin-report-rakeback-input[type="number"]::-webkit-outer-spin-button,
.admin-report-rakeback-input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.share-stats-admin-modal__table--matrix .admin-report-input {
  max-width: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.share-stats-admin-modal__table--matrix .admin-report-input:focus {
  outline: none;
  background: rgba(246, 211, 145, 0.08);
}
.admin-report-input--full {
  max-width: none;
}
.admin-report-date {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.admin-report-modal__box {
  max-width: min(760px, calc(100vw - 24px));
}
#adminReportModal .admin-report-modal__box {
  position: relative;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #05070d;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 14px);
  border-radius: 0;
  box-sizing: border-box;
  isolation: isolate;
}
.admin-report-rakeback-overlay-close {
  display: none;
}
#adminReportModal .admin-report-panel[data-admin-report-panel="rakeback"].admin-report-panel--rakeback-overlay {
  position: absolute;
  z-index: 20;
  inset: calc(env(safe-area-inset-top, 0px) + 8px) 8px calc(env(safe-area-inset-bottom, 0px) + 8px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 54px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(246, 211, 145, 0.42);
  border-radius: 16px;
  background: #05070d;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.72);
}
#adminReportModal .admin-report-panel--rakeback-overlay .admin-report-rakeback-overlay-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(246, 211, 145, 0.42);
  border-radius: 50%;
  background: #111722;
  color: #ffe7b0;
  font-size: 25px;
  font-weight: 900;
  cursor: pointer;
}
#adminReportModal .share-stats-admin-modal__close {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: 14px;
}
#adminReportModal .admin-report-date {
  min-height: 36px;
  padding-right: 52px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
#adminReportModal .admin-report-date:empty {
  display: none;
}
#app:has(#adminReportModal[aria-hidden="false"]) ~ .bottom-nav,
html.admin-report-modal-open .bottom-nav,
body.admin-report-modal-open .bottom-nav {
  display: none !important;
}
.admin-report-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: visible;
  margin-bottom: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 201, 91, 0.52);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(48, 34, 17, 0.78), rgba(10, 12, 18, 0.94));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 225, 165, 0.08);
  box-sizing: border-box;
}
.admin-report-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  font-size: 15px;
  line-height: 1.08;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #ffe6b2;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.admin-report-tab[data-admin-report-tab="cash-history"] {
  flex-grow: 1.35;
}
.admin-report-tab[data-admin-report-tab="sent"] {
  flex-grow: 1.35;
  padding-right: 5px;
  padding-left: 5px;
  font-size: clamp(12px, 1.55vw, 15px);
  letter-spacing: -0.02em;
}
.admin-report-tab[data-admin-report-tab="cash-total"] {
  flex-grow: 1.2;
  padding-right: 6px;
  padding-left: 6px;
}
.admin-report-tab--active,
.admin-report-tab[aria-selected="true"] {
  background: linear-gradient(180deg, #fff0c4 0%, #f1bd52 58%, #c98b27 100%);
  color: #11151c;
  border-color: rgba(255, 231, 176, 0.86);
  text-shadow: none;
  box-shadow:
    inset 0 0 0 2px rgba(255, 245, 214, 0.42),
    inset 0 -4px 0 rgba(17, 21, 28, 0.22),
    0 0 22px rgba(255, 190, 64, 0.42);
}
@media (max-width: 420px) {
  .admin-report-tabs {
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .admin-report-tabs::-webkit-scrollbar {
    display: none;
  }
  .admin-report-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 0 6px;
    font-size: 13px;
  }
  .admin-report-tab[data-admin-report-tab="cash-history"] {
    min-width: 116px;
  }
  .admin-report-tab[data-admin-report-tab="sent"] {
    min-width: 0;
    font-size: 11px;
  }
}
.admin-report-panel {
  display: none;
  margin-top: 4px;
}
.admin-report-panel--active {
  display: block;
}
#adminReportModal .admin-report-panel--active {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  -webkit-overflow-scrolling: touch;
}
#adminReportModal .admin-report-panel[data-admin-report-panel="rakeback"].admin-report-panel--active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
  background: #05070d;
}
#adminReportModal .admin-report-panel[data-admin-report-panel="cash-history"].admin-report-panel--active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}
.admin-report-calculations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.admin-report-calculations__toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.admin-report-calculations__toolbar--inline {
  grid-column: auto;
  flex: 0 0 auto;
}
.admin-report-calculations__action {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(202, 161, 84, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffe7b0;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}
.admin-report-calculations__action:hover {
  background: rgba(246, 211, 145, 0.12);
}
.admin-report-calculations__action--save {
  border-color: rgba(74, 222, 128, 0.34);
  color: #c8ffd9;
}
.admin-report-calculations__action--edit {
  border-color: rgba(246, 211, 145, 0.42);
}
.admin-report-calculations__archive-btn {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(246, 211, 145, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffe7b0;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.admin-report-calculations__archive-btn:hover {
  background: rgba(246, 211, 145, 0.12);
}
.admin-report-calculations__archive-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffe7b0 0%, #d8a94f 100%);
  color: #11151c;
  box-shadow:
    inset 0 0 0 2px rgba(255, 245, 214, 0.36),
    inset 0 -3px 0 rgba(17, 21, 28, 0.2);
}
.admin-report-calculations__status {
  min-width: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-report-calculations__status[data-tone="error"] {
  color: #ffb3b3;
}
.admin-report-calculations__status[data-tone="loading"] {
  color: #ffe7b0;
}
.admin-report-calculations__club-data {
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(125, 211, 252, 0.26);
  border-radius: 8px;
  background: rgba(14, 116, 144, 0.1);
}
.admin-report-calculations__club-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-report-calculations__club-card {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.5);
}
.admin-report-calculations__club-card h4 {
  margin: 0 0 6px;
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.2;
}
.admin-report-calculations__club-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, auto);
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 3px 0;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-report-calculations__club-row:first-of-type {
  border-top: 0;
}
.admin-report-calculations__club-row output {
  color: #ffe7b0;
  text-align: right;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.admin-report-calculations__club-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-report-calculations__side {
  min-width: 0;
}
.admin-report-calculations__side--left {
  display: contents;
}
.admin-report-calculations__side--right {
  display: contents;
}
#adminReportCalcCashCard {
  grid-column: 1;
  grid-row: 4;
}
#adminReportCalcRakeCard {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-items: stretch;
  padding: 6px;
  border-radius: 8px;
}
#adminReportCalcWinLossCard {
  grid-column: 3;
  grid-row: 4;
}
#adminReportCalcCurrentWeekCard {
  grid-column: 1 / -1;
  grid-row: 2;
}
#adminReportCalcRakeCard .admin-report-calculations__section-head {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
#adminReportCalcRakeCard .admin-report-calculations__rake-fields {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 5px;
  align-content: stretch;
}
#adminReportCalcRakeCard .admin-report-calculations__field {
  min-width: 0;
  margin-bottom: 0;
  min-height: 34px;
  padding-block: 4px;
}
#adminReportCalcRakeCard .admin-report-calculations__field--total,
#adminReportCalcRakeCard .admin-report-calculations__field--negative {
  grid-column: 1;
}
#adminReportCalcRakeCard .admin-report-calculations__field--total {
  border-color: rgba(74, 222, 128, 0.48);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}
.admin-report-calculations__rake-summary {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}
#adminReportCalcRakeCard .admin-report-calculations__rake-summary > .admin-report-calculations__field--rake-grand,
#adminReportCalcRakeCard .admin-report-calculations__rake-summary > .admin-report-calculations__field--remainder {
  grid-column: 1 / -1;
}
.admin-report-calculations__rake-summary .admin-report-calculations__field {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}
#adminReportCalcRakeCard .admin-report-calculations__rake-summary .admin-report-calculations__field--expenses-highlight {
  border-color: rgba(250, 204, 21, 0.62);
  background: rgba(250, 204, 21, 0.16);
  color: #fde68a;
}
#adminReportCalcRakeCard .admin-report-calculations__rake-summary .admin-report-calculations__field--expenses-highlight output {
  color: #fde047;
}
#adminReportCalcRakeCard .admin-report-calculations__rake-summary .admin-report-calculations__field--returns-total {
  border-color: rgba(74, 222, 128, 0.48);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}
#adminReportCalcRakeCard .admin-report-calculations__rake-summary .admin-report-calculations__field--returns-total output {
  color: #86efac;
}
.admin-report-calculations--cash-total {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-report-calculations--cash-total #adminReportCalcCashCard,
.admin-report-calculations--cash-total #adminReportCalcWinLossCard {
  grid-column: auto;
  grid-row: auto;
}
.admin-report-calculations--cash-total #adminReportCalcCurrentWeekCard,
.admin-report-calculations--cash-total #adminReportCalcGrandCard {
  grid-column: 1 / -1;
  grid-row: auto;
}
.admin-report-calculations__side--left > .admin-report-calculations__field--grand {
  grid-column: 1 / -1;
  grid-row: 5;
  align-self: start;
}
.admin-report-calculations__figures {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(202, 161, 84, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
#adminReportCalcFigures {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: none;
  grid-auto-rows: auto;
  gap: 0;
  align-content: stretch;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#adminReportCalcRakeCard .admin-report-calculations__rake-fields > .admin-report-calculations__field,
#adminReportCalcRakeCard #adminReportCalcFigures > .admin-report-calculations__field {
  box-sizing: border-box;
  align-self: stretch;
}
#adminReportCalcFigures > .admin-report-calculations__field {
  grid-template-columns: minmax(0, 1fr) minmax(108px, 0.42fr);
  min-height: 38px;
  padding: 4px 8px;
}
#adminReportCalcRakeCard #adminReportCalcFigures > label.admin-report-calculations__field {
  min-height: 38px;
}
#adminReportCalcRakeCard #adminReportCalcFigures > label.admin-report-calculations__field .admin-report-calculations__input {
  height: 30px;
  min-height: 30px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-inline: 7px;
}
.admin-report-calculations__figures-lower {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  gap: 5px;
  min-width: 0;
  margin-top: 2px;
}
.admin-report-calculations__figures-lower > .admin-report-calculations__field,
.admin-report-calculations__figures-lower > .admin-report-calculations__add,
.admin-report-calculations__figures-lower > .admin-report-calculations__approx-detail,
.admin-report-calculations__figures-lower > .admin-report-calculations__extras {
  width: 100%;
  box-sizing: border-box;
}
.admin-report-calculations__column {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(202, 161, 84, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.admin-report-calculations__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.admin-report-calculations__section-head .admin-report-calculations__title {
  margin-bottom: 0;
}
.admin-report-calculations__heading-with-date {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.admin-report-calculations__date {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-report-calculations__date-picker {
  position: relative;
  display: block;
}
.admin-report-calculations__date-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 142px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(202, 161, 84, 0.42);
  border-radius: 7px;
  background: rgba(5, 10, 18, 0.88);
  color: #ffe7b0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.admin-report-calculations__date-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.admin-report-calculations__date-button:hover,
.admin-report-calculations__date-button:focus-visible,
.admin-report-calculations__date-button[aria-expanded="true"] {
  border-color: rgba(245, 158, 11, 0.72);
  color: var(--accent);
  outline: none;
}
.admin-report-calculations__date-button:disabled {
  opacity: 0.78;
  cursor: default;
}
.admin-report-calculations__date-calendar {
  top: calc(100% + 6px);
  left: 0;
  right: auto;
}
.admin-report-calculations__title {
  margin: 0 0 6px;
  color: #ffe7b0;
  font-size: 13px;
  line-height: 1.2;
}
.admin-report-calculations__subtitle {
  margin: -2px 0 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-report-calculations__week {
  min-height: 16px;
  margin: -2px 0 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.admin-report-calculations__week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-report-calculations__week-col {
  min-width: 0;
}
.admin-report-calculations__archive {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: grid;
  gap: 8px;
}
.admin-report-calculations__archive-details {
  border: 1px solid rgba(246, 211, 145, 0.24);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.5);
  overflow: hidden;
}
.admin-report-calculations__archive-summary {
  display: flex;
  align-items: center;
  padding: 8px 9px;
  color: #ffe7b0;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.admin-report-calculations__archive-details--root > .admin-report-calculations__archive-summary {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgba(246, 211, 145, 0.2);
  background: #0b0f19;
}
.admin-report-calculations__archive-summary-action {
  margin-left: auto;
  color: #f4c96f;
  font-size: 10px;
  font-weight: 900;
}
.admin-report-calculations__archive-details--root:not([open]) .admin-report-calculations__archive-summary-action {
  font-size: 0;
}
.admin-report-calculations__archive-details--root:not([open]) .admin-report-calculations__archive-summary-action::after {
  content: "Открыть архив";
  font-size: 10px;
}
.admin-report-calculations__archive-summary::-webkit-details-marker {
  display: none;
}
.admin-report-calculations__archive-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
}
.admin-report-calculations__archive-details[open] .admin-report-calculations__archive-summary::before {
  content: "▾";
}
.admin-report-calculations__archive-inner {
  padding: 0 8px 8px;
  display: grid;
  gap: 8px;
}
.admin-report-calculations__archive-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-report-calculations__archive-report {
  border: 1px solid rgba(246, 211, 145, 0.16);
  border-radius: 8px;
  padding: 8px;
  background: rgba(5, 7, 13, 0.48);
}
.admin-report-calculations__archive-report h4 {
  margin: 0 0 7px;
  color: #ffe7b0;
  font-size: 12px;
  font-weight: 900;
}
.admin-report-calculations__archive-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.admin-report-calculations__archive-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, auto);
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  background: rgba(7, 10, 18, 0.66);
}
.admin-report-calculations__archive-row--positive {
  border: 1px solid rgba(50, 182, 112, 0.32);
}
.admin-report-calculations__archive-row--negative {
  border: 1px solid rgba(255, 103, 119, 0.34);
}
.admin-report-calculations__archive-row--neutral {
  border: 1px solid rgba(246, 211, 145, 0.2);
}
.admin-report-calculations__archive-report-row output {
  color: #ffe7b0;
  text-align: right;
  font-size: 12px;
  font-weight: 950;
}
.admin-report-calculations__archive-comment {
  margin-top: 7px;
  padding: 7px;
  border-radius: 7px;
  background: rgba(246, 211, 145, 0.06);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}
.admin-report-calculations__archive-comment p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-weight: 750;
}
.admin-report-calculations__archive-empty {
  margin: 0;
  padding: 8px 0 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-report-calculations__field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, 0.34fr);
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin-bottom: 5px;
  padding: 5px 7px;
  border: 1px solid rgba(202, 161, 84, 0.18);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.62);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}
.admin-report-calculations__field > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
#adminReportCalcCashCard .admin-report-calculations__field,
#adminReportCalcRakeCard .admin-report-calculations__field,
#adminReportCalcWinLossCard .admin-report-calculations__field {
  grid-template-columns: minmax(0, 1fr) minmax(74px, 0.38fr);
  gap: 5px;
  padding: 5px 6px;
  font-size: 12px;
}
#adminReportCalcRakeCard .admin-report-calculations__field--triple {
  grid-template-columns: minmax(0, 0.86fr) minmax(68px, 0.36fr) minmax(52px, 0.28fr);
}
#adminReportCalcCashCard .admin-report-calculations__input,
#adminReportCalcRakeCard .admin-report-calculations__input,
#adminReportCalcWinLossCard .admin-report-calculations__input,
#adminReportCalcRakeCard .admin-report-calculations__field output,
#adminReportCalcWinLossCard .admin-report-calculations__field output {
  font-size: 14px;
}
#adminReportCalcRakeCard [data-admin-report-figures-rake] {
  color: #86efac;
}
.admin-report-calculations__field--triple {
  grid-template-columns: minmax(0, 1fr) minmax(78px, 0.32fr) minmax(70px, 0.28fr);
}
.admin-report-calculations__field--extra {
  grid-template-columns: minmax(118px, 1fr) minmax(82px, 0.34fr) minmax(58px, 0.22fr) minmax(92px, 0.36fr);
}
.admin-report-calculations__field--extra [data-admin-report-figures-extra-name] {
  grid-column: 1;
  grid-row: 1;
}
.admin-report-calculations__field--extra [data-admin-report-figures-extra-rake] {
  grid-column: 2;
  grid-row: 1;
}
.admin-report-calculations__field--extra [data-admin-report-figures-extra-percent] {
  grid-column: 3;
  grid-row: 1;
}
.admin-report-calculations__field--extra [data-admin-report-figures-extra-amount] {
  grid-column: 4;
  grid-row: 1;
}
.admin-report-calculations__field:last-child {
  margin-bottom: 0;
}
.admin-report-calculations__field--total {
  margin-top: 6px;
  border-color: rgba(246, 211, 145, 0.45);
  background: rgba(246, 211, 145, 0.1);
  color: #ffe7b0;
}
.admin-report-calculations__field--grand {
  margin-bottom: 0;
  border-color: rgba(246, 211, 145, 0.58);
  background: rgba(246, 211, 145, 0.14);
  color: #ffe7b0;
}
.admin-report-calculations__field--positive {
  border-color: rgba(74, 222, 128, 0.26);
  background: rgba(74, 222, 128, 0.1);
}

.admin-report-calculations__field--return {
  grid-template-columns: minmax(0, 1fr) auto minmax(82px, 0.34fr);
}

#adminReportCalcRakeCard .admin-report-calculations__field--return {
  grid-template-columns: minmax(0, 1fr) auto minmax(74px, 0.38fr);
}

#adminReportCalcRakeCard .admin-report-calculations__field--return .admin-report-calculations__return-auto {
  margin-left: auto;
  color: #91d8ad;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-report-calculations__input--adjustment {
  width: 88px;
}

@media (max-width: 420px) {
  .admin-report-calculations__field--return,
  #adminReportCalcRakeCard .admin-report-calculations__field--return {
    grid-template-columns: minmax(0, 1fr) auto minmax(70px, 0.34fr);
  }
  #adminReportCalcRakeCard .admin-report-calculations__field--return .admin-report-calculations__return-auto {
    font-size: 10px;
  }
}
.admin-report-calculations__field--expenses-total,
.admin-report-calculations__field--remainder {
  margin-top: 3px;
  font-weight: 950;
}
.admin-report-calculations__field--negative {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.1);
}
.admin-report-calculations__field--link {
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.admin-report-calculations__field--link:hover,
.admin-report-calculations__field--link:focus-visible {
  border-color: rgba(248, 113, 113, 0.62);
  background: rgba(248, 113, 113, 0.17);
  outline: none;
}
.admin-report-calculations__field--link:active {
  transform: translateY(1px);
}
.admin-report-calculations__field--visual-minus {
  grid-template-columns: minmax(0, 1fr) minmax(82px, 0.34fr);
}
.admin-report-calculations__field--visual-minus:not(.admin-report-calculations__field--extra) > span:first-child {
  grid-column: 1;
  grid-row: 1;
}
.admin-report-calculations__field--visual-minus:not(.admin-report-calculations__field--extra) .admin-report-calculations__input {
  grid-column: 2;
  grid-row: 1;
}
.admin-report-calculations__field--extra.admin-report-calculations__field--visual-minus {
  grid-template-columns: minmax(118px, 1fr) minmax(82px, 0.34fr) minmax(58px, 0.22fr) minmax(92px, 0.36fr);
}
.admin-report-calculations__field--visual-minus .admin-report-calculations__input {
  padding-left: 16px;
  color: #ffb3b3;
}
.admin-report-calculations__field--visual-minus::after {
  content: "-";
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  z-index: 1;
  margin-left: 8px;
  color: #ffb3b3;
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
}
.admin-report-calculations__field--extra.admin-report-calculations__field--visual-minus::after {
  grid-column: 4;
  grid-row: 1;
}
.admin-report-calculations__field--agents-heading {
  grid-template-columns: minmax(0, 1fr);
}
.admin-report-calculations__field--checkbox-total {
  grid-template-columns: minmax(0, 1fr) 28px minmax(138px, 0.42fr) minmax(82px, 0.24fr);
}
.admin-report-calculations__field--checkbox-total:not(.admin-report-calculations__field--checkbox-total-enabled) {
  grid-template-columns: minmax(0, 1fr) 28px;
}
.admin-report-calculations__checkbox-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.admin-report-calculations__checkbox-wrap input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.admin-report-calculations__checkbox-wrap span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(246, 211, 145, 0.56);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.38);
}
.admin-report-calculations__checkbox-wrap input:checked + span {
  border-color: rgba(246, 211, 145, 0.92);
  background: #f6d391;
}
.admin-report-calculations__checkbox-wrap input:checked + span::after {
  content: "";
  display: block;
  width: 9px;
  height: 5px;
  margin: 3px 0 0 2px;
  border-left: 3px solid #11151c;
  border-bottom: 3px solid #11151c;
  transform: rotate(-45deg);
}
.admin-report-calculations__field--checkbox-total output {
  color: #ffb3b3;
}
.admin-report-calculations__rate-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  min-width: 0;
}
.admin-report-calculations__rate-options[hidden] {
  display: none;
}
.admin-report-calculations__rate-options label {
  position: relative;
  display: block;
  min-width: 0;
}
.admin-report-calculations__rate-options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-report-calculations__rate-options span {
  display: grid;
  place-items: center;
  min-height: 24px;
  border: 1px solid rgba(246, 211, 145, 0.28);
  border-radius: 7px;
  background: rgba(5, 7, 13, 0.52);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
}
.admin-report-calculations__rate-options input:checked + span {
  border-color: rgba(246, 211, 145, 0.78);
  background: rgba(246, 211, 145, 0.18);
  color: #ffe7b0;
}
.admin-report-calculations__approx-detail {
  display: grid;
  gap: 4px;
  margin: -1px 0 6px;
  padding: 6px 7px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.055);
}
.admin-report-calculations__approx-detail[hidden] {
  display: none;
}
.admin-report-calculations__approx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.42fr);
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
}
.admin-report-calculations__approx-row output {
  color: #ffe7b0;
  text-align: right;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.admin-report-calculations__approx-row .admin-report-calculations__input {
  height: 24px;
  color: #ffb3b3;
  font-size: 12px;
}
.admin-report-calculations__approx-row--total {
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px solid rgba(248, 113, 113, 0.18);
  color: #ffe7b0;
}
.admin-report-calculations__approx-row--total output {
  color: #ffb3b3;
}
.admin-report-calculations__percent {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #ffb3b3 !important;
}
.admin-report-calculations__percent::before {
  content: attr(data-rate-label);
  color: #b98f8f;
  font-size: 0.72em;
  font-weight: 800;
}
.admin-report-calculations__field output {
  min-width: 0;
  text-align: right;
  color: #ffe7b0;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: normal;
  white-space: nowrap;
}
.admin-report-calculations__input {
  width: 100%;
  min-width: 0;
  height: 26px;
  box-sizing: border-box;
  border: 1px solid rgba(202, 161, 84, 0.34);
  border-radius: 8px;
  background: #05070d;
  color: #ffe7b0;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}
.admin-report-calculations__input[readonly] {
  opacity: 0.78;
  color: var(--text-muted);
  background: rgba(5, 7, 13, 0.42);
}
.admin-report-calculations__field--extra [data-admin-report-figures-extra-amount][readonly] {
  color: #ffb3b3;
}
.admin-report-calculations__input--name {
  text-align: left;
}
.admin-report-calculations__field--extra .admin-report-calculations__input {
  font-size: 12px;
}
.admin-report-calculations__field--extra .admin-report-calculations__input--name {
  padding-right: 5px;
}
.admin-report-calculations__extras {
  display: grid;
  gap: 5px;
}
.admin-report-calculations__add {
  min-height: 30px;
  margin: 2px 0 6px;
  padding: 0 10px;
  border: 1px solid rgba(202, 161, 84, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #ffe7b0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.admin-report-calculations__add:hover {
  background: rgba(246, 211, 145, 0.11);
}
.admin-report-calculations__add:disabled {
  opacity: 0.45;
  cursor: default;
}
.admin-report-calculations__input:focus {
  outline: none;
  border-color: rgba(246, 211, 145, 0.72);
  box-shadow: 0 0 0 2px rgba(246, 211, 145, 0.12);
}
.admin-report-calculations__input[type="number"]::-webkit-outer-spin-button,
.admin-report-calculations__input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
@media (max-width: 760px) {
  .admin-report-calculations {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  #adminReportCalcCashCard,
  #adminReportCalcWinLossCard {
    grid-row: 4;
    padding: 5px;
  }
  #adminReportCalcCashCard {
    grid-column: 1;
  }
  #adminReportCalcRakeCard {
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  #adminReportCalcWinLossCard {
    grid-column: 3;
  }
  #adminReportCalcCurrentWeekCard {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .admin-report-calculations__side--left > .admin-report-calculations__field--grand {
    grid-column: 1 / -1;
    grid-row: 5;
  }
  .admin-report-calculations__figures {
    grid-column: 1 / -1;
  }
  #adminReportCalcCashCard .admin-report-calculations__field,
  #adminReportCalcRakeCard .admin-report-calculations__field,
  #adminReportCalcWinLossCard .admin-report-calculations__field {
    grid-template-columns: minmax(0, 1fr) minmax(44px, 0.42fr);
    gap: 3px;
    min-height: 24px;
    margin-bottom: 3px;
    padding: 3px 4px;
    font-size: 10px;
  }
  #adminReportCalcCashCard .admin-report-calculations__title,
  #adminReportCalcRakeCard .admin-report-calculations__title,
  #adminReportCalcWinLossCard .admin-report-calculations__title {
    font-size: 11px;
  }
  #adminReportCalcCashCard .admin-report-calculations__section-head,
  #adminReportCalcRakeCard .admin-report-calculations__section-head,
  #adminReportCalcWinLossCard .admin-report-calculations__section-head {
    gap: 4px;
    margin-bottom: 4px;
  }
  #adminReportCalcCashCard .admin-report-calculations__action,
  #adminReportCalcRakeCard .admin-report-calculations__action,
  #adminReportCalcWinLossCard .admin-report-calculations__action {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 13px;
  }
  #adminReportCalcRakeCard .admin-report-calculations__field--triple {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 24px;
    gap: 3px 6px;
    min-height: 52px;
    padding: 5px 6px;
  }
  #adminReportCalcRakeCard .admin-report-calculations__field--triple > span:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  #adminReportCalcRakeCard .admin-report-calculations__field--triple > input {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  #adminReportCalcRakeCard .admin-report-calculations__field--triple > output {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    height: auto;
  }
  #adminReportCalcCashCard .admin-report-calculations__input,
  #adminReportCalcRakeCard .admin-report-calculations__input,
  #adminReportCalcWinLossCard .admin-report-calculations__input,
  #adminReportCalcRakeCard .admin-report-calculations__field output,
  #adminReportCalcWinLossCard .admin-report-calculations__field output {
    height: 24px;
    border-radius: 7px;
    font-size: 12px;
  }
}
@media (max-width: 560px) {
  .admin-report-calculations--cash-total {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-report-calculations__club-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-report-calculations__week-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .admin-report-calculations__archive-totals,
  .admin-report-calculations__archive-report-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 420px) {
  .admin-report-calculations {
    gap: 8px;
  }
  #adminReportCalcFigures {
    grid-column: 1;
    grid-row: auto;
    grid-template-rows: none;
    margin-top: 0;
  }
  #adminReportCalcRakeCard .admin-report-calculations__rake-fields {
    grid-column: 1;
    grid-row: auto;
  }
  .admin-report-calculations__column {
    padding: 6px;
  }
  #adminReportCalcRakeCard {
    grid-template-columns: minmax(0, 1fr);
  }
  #adminReportCalcRakeCard .admin-report-calculations__field--total,
  #adminReportCalcRakeCard .admin-report-calculations__field--negative {
    grid-column: auto;
  }
  .admin-report-calculations__field {
    grid-template-columns: minmax(0, 1fr) minmax(70px, 0.34fr);
    font-size: 10px;
  }
  .admin-report-calculations__field--triple {
    grid-template-columns: minmax(0, 1fr) minmax(62px, 0.32fr) minmax(58px, 0.28fr);
  }
  .admin-report-calculations__field--extra {
    grid-template-columns: minmax(76px, 1fr) minmax(54px, 0.28fr) minmax(42px, 0.2fr) minmax(68px, 0.28fr);
    gap: 4px;
    padding: 5px;
  }
  .admin-report-calculations__field--extra.admin-report-calculations__field--visual-minus {
    grid-template-columns: minmax(76px, 1fr) minmax(54px, 0.28fr) minmax(42px, 0.2fr) minmax(68px, 0.28fr);
  }
  .admin-report-calculations__field--extra .admin-report-calculations__input {
    font-size: 11px;
  }
  .admin-report-calculations__field output {
    font-size: 12px;
  }
  .admin-report-calculations__input {
    font-size: 12px;
  }
}
.admin-report-add-extra-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  margin-right: 8px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.admin-report-add-extra-btn:hover {
  background: var(--accent, #a855f7);
  color: #fff;
  border-color: transparent;
}
.admin-report-rakeback-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(202, 161, 84, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  flex: 0 0 auto;
}
.admin-report-rakeback-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex: 0 0 auto;
}
.admin-report-rakeback-summary__row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
button.admin-report-rakeback-summary__row {
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
button.admin-report-rakeback-summary__row:hover .admin-report-rakeback-summary__label,
button.admin-report-rakeback-summary__row:focus-visible .admin-report-rakeback-summary__label {
  color: var(--text);
}
button.admin-report-rakeback-summary__row:focus-visible {
  outline: 2px solid rgba(255, 231, 176, 0.7);
  outline-offset: 3px;
}
.admin-report-rakeback-summary__row--room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}
.admin-report-rakeback-summary__row--room .admin-report-rakeback-summary__label {
  min-width: 0;
}
.admin-report-rakeback-summary__row--room .admin-report-rakeback-summary__value {
  text-align: right;
}
.admin-report-rakeback-summary__row--grand {
  padding-top: 8px;
  border-top: 1px solid rgba(202, 161, 84, 0.2);
}
.admin-report-rakeback-summary__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.admin-report-rakeback-summary__value {
  font-size: 18px;
  font-weight: 800;
  color: #ffe7b0;
  font-variant-numeric: tabular-nums;
}
.admin-report-rakeback-totals-modal {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.admin-report-rakeback-totals-modal[hidden] {
  display: none;
}
.admin-report-rakeback-totals-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.admin-report-rakeback-totals-modal__box {
  position: relative;
  width: min(420px, 100%);
  max-height: min(72vh, 520px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(202, 161, 84, 0.32);
  border-radius: 10px;
  background: #11141b;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46);
}
.admin-report-rakeback-totals-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.admin-report-rakeback-totals-modal__close:hover,
.admin-report-rakeback-totals-modal__close:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.admin-report-rakeback-totals-modal__title {
  margin: 0 40px 14px 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}
.admin-report-rakeback-totals-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-report-rakeback-totals-modal__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(202, 161, 84, 0.16);
}
.admin-report-rakeback-totals-modal__row:first-child {
  border-top: 0;
}
.admin-report-rakeback-totals-modal__section-title {
  margin: 14px 0 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(202, 161, 84, 0.24);
  color: #ffe7b0;
  font-size: 16px;
  font-weight: 800;
}
.admin-report-rakeback-totals-modal__room {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.admin-report-rakeback-totals-modal__amount {
  color: #ffe7b0;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.admin-report-rakeback-totals-modal__formula {
  grid-column: 1 / -1;
  margin-top: -4px;
  color: var(--text-muted);
  font-size: 12px;
}
.admin-report-rakeback-room-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 38px;
  gap: 0;
  flex: 0 0 auto;
  min-height: 38px;
  margin: 0 0 6px;
  padding: 0;
  border: 1px solid rgba(246, 211, 145, 0.42);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #151923, #090c12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 5px 14px rgba(0, 0, 0, 0.2);
}
.admin-report-rakeback-room-tab {
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-right: 1px solid rgba(246, 211, 145, 0.42);
  border-radius: 0;
  background: transparent;
  color: #ffe7b0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.admin-report-rakeback-room-tab:last-child {
  border-right: 0;
}
.admin-report-rakeback-archive-tab {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffe7b0;
  cursor: pointer;
}
.admin-report-rakeback-archive-tab[aria-pressed="true"] {
  outline: 2px solid rgba(255, 231, 176, 0.86);
  outline-offset: -4px;
  background: linear-gradient(180deg, #ffe7b0 0%, #d8a94f 100%);
  color: #11151c;
  box-shadow:
    inset 0 0 0 2px rgba(255, 245, 214, 0.42),
    inset 0 -4px 0 rgba(17, 21, 28, 0.22),
    0 0 18px rgba(246, 211, 145, 0.24);
}
.admin-report-rakeback-archive-tab[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 7px;
  background: rgba(255, 231, 176, 0.16);
  pointer-events: none;
}
.admin-report-rakeback-archive-tab span {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-sizing: border-box;
}
.admin-report-rakeback-archive-tab span::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -5px;
  height: 4px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  box-sizing: border-box;
}
.admin-report-rakeback-archive-tab span::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 3px;
  border-top: 2px solid currentColor;
}
.admin-report-rakeback-archive-tab--active {
  background: linear-gradient(180deg, #ffe7b0 0%, #d8a94f 100%);
  color: #11151c;
  box-shadow:
    inset 0 0 0 2px rgba(255, 245, 214, 0.42),
    inset 0 -4px 0 rgba(17, 21, 28, 0.22),
    0 0 18px rgba(246, 211, 145, 0.24);
}
.admin-report-rakeback-room-tab--active {
  background: linear-gradient(180deg, #ffe7a8 0%, #e4aa3f 100%);
  color: #11151c;
  text-shadow: none;
  box-shadow:
    inset 0 0 0 2px rgba(255, 245, 214, 0.42),
    inset 0 -4px 0 rgba(17, 21, 28, 0.22),
    0 0 18px rgba(246, 211, 145, 0.24);
}
.admin-report-rakeback-wrap {
  max-height: min(52vh, 440px);
  overflow: auto;
}
.admin-report-rakeback-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin: 5px 0 6px;
}
.admin-report-rakeback-refresh-btn {
  min-height: 36px;
  align-self: end;
  padding: 0 12px;
  border: 1px solid rgba(202, 161, 84, 0.46);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 231, 176, 0.11), rgba(202, 161, 84, 0.08));
  color: #ffe7b0;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.admin-report-rakeback-refresh-btn:hover {
  background: rgba(246, 211, 145, 0.14);
}
.admin-report-rakeback-refresh-btn--attention:not(:disabled) {
  animation: adminReportRakebackRefreshPulse 1.35s ease-in-out infinite;
  border-color: rgba(255, 231, 176, 0.9);
  background: linear-gradient(180deg, rgba(255, 231, 176, 0.2), rgba(202, 161, 84, 0.13));
}
.admin-report-rakeback-refresh-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
@keyframes adminReportRakebackRefreshPulse {
  0%,
  100% {
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.18),
      0 0 0 rgba(246, 211, 145, 0);
    filter: brightness(1);
  }
  45% {
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.22),
      0 0 18px rgba(255, 231, 176, 0.58),
      0 0 0 4px rgba(246, 211, 145, 0.13);
    filter: brightness(1.18);
  }
}
@media (prefers-reduced-motion: reduce) {
  .admin-report-rakeback-refresh-btn--attention:not(:disabled) {
    animation: none;
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.18),
      0 0 16px rgba(255, 231, 176, 0.48);
  }
}
.admin-report-rakeback-search,
.admin-report-rakeback-sort {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-report-rakeback-search__input,
.admin-report-rakeback-sort__select {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--input-bg, var(--card-bg));
  color: var(--text);
  font-size: 13px;
  box-sizing: border-box;
}
.admin-report-rakeback-sort__select {
  appearance: none;
  padding-right: 24px;
  background-image: linear-gradient(45deg, transparent 50%, #f6d391 50%), linear-gradient(135deg, #f6d391 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 9px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}
.admin-report-rakeback-search__input::placeholder {
  color: var(--text-muted);
  opacity: 0.78;
}
.admin-report-rakeback-search__input:focus,
.admin-report-rakeback-sort__select:focus {
  border-color: rgba(246, 211, 145, 0.7);
  outline: none;
  box-shadow: 0 0 0 2px rgba(246, 211, 145, 0.18);
}
.admin-report-rakeback-quickbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
}
.admin-report-rakeback-filters {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}
.admin-report-rakeback-filters button,
.admin-report-rakeback-audit summary {
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid rgba(112, 135, 171, 0.48);
  border-radius: 999px;
  background: #0d1422;
  color: #b8b1a6;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  box-sizing: border-box;
}
.admin-report-rakeback-filters .admin-report-rakeback-filter--active {
  border-color: #ffe6a3;
  background: linear-gradient(180deg, #f9d981, #d8a640);
  color: #111827;
}
.admin-report-rakeback-filters [data-rakeback-filter-count] {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  min-height: 17px;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: currentColor;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}
.admin-report-rakeback-filters .admin-report-rakeback-filter--active [data-rakeback-filter-count] {
  background: rgba(17, 24, 39, 0.16);
}
.admin-report-rakeback-audit {
  position: relative;
  flex: 0 0 auto;
}
.admin-report-rakeback-audit summary {
  display: grid;
  place-items: center;
  list-style: none;
}
.admin-report-rakeback-audit summary::-webkit-details-marker { display: none; }
.admin-report-rakeback-audit__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  width: min(310px, 82vw);
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(246, 211, 145, 0.5);
  border-radius: 10px;
  background: #090d15;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  color: #ddd2bd;
  font-size: 11px;
}
.admin-report-rakeback-audit__item {
  padding: 6px;
  border-bottom: 1px solid rgba(246, 211, 145, 0.13);
}
.admin-report-rakeback-audit__item:last-child { border-bottom: 0; }
.admin-report-rakeback-audit__meta { color: #9fa9ba; font-size: 9px; }
.admin-report-rakeback-row--dirty td,
.admin-report-rakeback-row[data-rakeback-template-default-dirty="1"] td {
  box-shadow: inset 0 1px 0 rgba(250, 204, 21, 0.42), inset 0 -1px 0 rgba(250, 204, 21, 0.42);
}
.admin-report-rakeback-row--dirty .admin-report-rakeback-id-cell::after,
.admin-report-rakeback-row[data-rakeback-template-default-dirty="1"] .admin-report-rakeback-id-cell::after {
  content: "НЕ СОХР.";
  position: absolute;
  right: 4px;
  top: 2px;
  padding: 2px 4px;
  border-radius: 999px;
  background: #f59e0b;
  color: #17120b;
  font-size: 7px;
  font-weight: 950;
  line-height: 1;
}
.admin-report-rakeback-row[data-rakeback-filter-hidden="1"] { display: none !important; }
.admin-report-rakeback-row--duplicate td {
  background: rgba(127, 29, 29, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(248, 113, 113, 0.72), inset 0 -1px 0 rgba(248, 113, 113, 0.72);
}
.admin-report-rakeback-row--duplicate .admin-report-rakeback-input--id {
  border-color: #fb7185 !important;
  color: #fecaca !important;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.18), 0 0 13px rgba(244, 63, 94, 0.22);
}
.admin-report-rakeback-row--duplicate .admin-report-rakeback-id-cell::before {
  content: "ДУБЛИКАТ";
  position: absolute;
  z-index: 5;
  right: 4px;
  bottom: 2px;
  padding: 2px 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff1f2;
  font-size: 7px;
  font-weight: 950;
  line-height: 1;
}
.admin-report-rakeback-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 0;
  padding: 8px 10px;
  border: 1px solid rgba(250, 204, 21, 0.7);
  border-radius: 10px;
  background: #221a0b;
  color: #ffe7b0;
  font-size: 12px;
  font-weight: 850;
}
.admin-report-rakeback-undo[hidden] { display: none; }
.admin-report-rakeback-undo button {
  border: 0;
  background: transparent;
  color: #facc15;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}
#adminReportModal .admin-report-rakeback-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  background: #05070d;
}
.admin-report-rakeback-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #05070d;
}
.admin-report-rakeback-table th,
.admin-report-rakeback-table td {
  padding: 0 6px;
  text-align: left;
  color: var(--text);
  vertical-align: middle;
}
.admin-report-rakeback-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 28px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-top: 1px solid rgba(255, 205, 105, 0.62);
  border-bottom: 1px solid rgba(255, 205, 105, 0.72);
  background-color: #2b1d0d;
  background-image: linear-gradient(180deg, #6f4612 0%, #2b1d0d 100%);
  color: #ffe4aa;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 197, 83, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 235, 191, 0.12), 0 2px 10px rgba(0, 0, 0, 0.3);
}
.admin-report-rakeback-table th:nth-child(6) {
  border-top-color: rgba(74, 222, 128, 0.78);
  border-bottom-color: rgba(74, 222, 128, 0.88);
  background-color: #12351f;
  background-image: linear-gradient(180deg, #1d5a32 0%, #102c1a 100%);
  color: #bbf7d0;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.34);
}
#adminReportModal .admin-report-rakeback-table td {
  background: #05070d;
}
#adminReportModal .admin-report-rakeback-table td:nth-child(6) {
  background: linear-gradient(180deg, rgba(22, 101, 52, 0.34), rgba(10, 50, 28, 0.3)) !important;
  box-shadow: inset 1px 0 0 rgba(74, 222, 128, 0.14), inset -1px 0 0 rgba(74, 222, 128, 0.14);
}
#adminReportModal .admin-report-rakeback-table td:nth-child(6) .admin-report-rakeback-amount {
  color: #86efac;
  text-shadow: 0 0 7px rgba(34, 197, 94, 0.25);
}
#adminReportModal .admin-report-rakeback-table td:nth-child(6) .admin-report-rakeback-amount--negative {
  color: #fecaca;
  text-shadow: 0 0 7px rgba(248, 113, 113, 0.25);
}
.admin-report-rakeback-table th:nth-child(1),
.admin-report-rakeback-table td:nth-child(1) {
  display: none;
}
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(2),
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(2) {
  width: 23%;
}
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(3),
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(3) {
  width: 10%;
}
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(4),
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(4) {
  width: 10%;
}
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(5),
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(5) {
  width: 8%;
}
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(6),
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(6) {
  width: 18%;
}
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(7),
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(7) {
  width: 31%;
}
.admin-report-rakeback-table th:nth-child(2),
.admin-report-rakeback-table td:nth-child(2) {
  width: 128px;
}
.admin-report-rakeback-table th:nth-child(5),
.admin-report-rakeback-table td:nth-child(5) {
  width: 58px;
}
.admin-report-rakeback-table th:nth-child(7),
.admin-report-rakeback-table td:nth-child(7) {
  width: 192px;
}
.admin-report-rakeback-discount-cell {
  position: relative;
  text-align: center;
  vertical-align: middle;
}
.admin-report-rakeback-id-cell {
  position: relative;
}
.admin-report-rakeback-row-number {
  display: inline-flex;
  position: absolute;
  left: 3px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border: 1px solid rgba(246, 211, 145, 0.38);
  border-radius: 999px;
  background: rgba(246, 211, 145, 0.1);
  color: #ffe7b0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.admin-report-rakeback-row-number[hidden] {
  display: none !important;
}
.admin-report-rakeback-date-badge {
  position: absolute;
  left: 29px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 43px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(246, 211, 145, 0.32);
  border-radius: 999px;
  background: rgba(246, 211, 145, 0.1);
  color: #ffe7b0;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.admin-report-rakeback-period {
  margin: 4px 0 6px;
  padding: 6px;
  border: 1px solid rgba(112, 135, 171, 0.4);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 26, 43, 0.84), rgba(8, 12, 21, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-report-rakeback-period__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.admin-report-rakeback-period__tabs button {
  min-height: 29px;
  padding: 4px 7px;
  border: 1px solid rgba(100, 116, 139, 0.55);
  border-radius: 999px;
  color: #aaa49b;
  background: rgba(15, 23, 42, 0.9);
  font: inherit;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  cursor: pointer;
}

.admin-report-rakeback-period__tabs button:hover {
  border-color: rgba(245, 199, 103, 0.7);
}

.admin-report-rakeback-period__tabs .admin-report-rakeback-period__tab--active {
  border-color: #ffe6a3;
  color: #111827;
  background: linear-gradient(180deg, #f9d981, #d8a640);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 0 12px rgba(240, 176, 54, 0.24);
}

.admin-report-rakeback-period__custom {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.admin-report-rakeback-period__custom[hidden] {
  display: none;
}

.admin-report-rakeback-period__custom label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  color: #b8b1a6;
  font-weight: 700;
}

.admin-report-rakeback-period__custom input {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(100, 116, 139, 0.55);
  border-radius: 10px;
  color: #f4ead6;
  background: #0f172a;
  color-scheme: dark;
}

@media (max-width: 680px) {
  .admin-report-rakeback-period {
    padding: 5px;
    border-radius: 10px;
  }

  .admin-report-rakeback-period__tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .admin-report-rakeback-period__tabs button {
    min-height: 27px;
    padding: 4px 3px;
    font-size: 9px;
  }

  .admin-report-rakeback-period__custom {
    flex-direction: column;
  }
}
.admin-report-rakeback-date-badge[hidden] {
  display: none !important;
}
.admin-report-rakeback-date-badge input {
  display: none;
}
.admin-report-rakeback-id-cell .admin-report-rakeback-input--id {
  padding-left: 31px;
}
.admin-report-rakeback-row[data-rakeback-entry-date-visible="1"] .admin-report-rakeback-input--id {
  padding-left: 78px;
}
.admin-report-rakeback-row--addon .admin-report-rakeback-input--id {
  padding-left: 7px;
  visibility: hidden;
}
.admin-report-rakeback-row--addon .admin-report-rakeback-date-badge {
  left: 29px;
}
.admin-report-rakeback-row--addon[data-rakeback-entry-date-visible="1"] .admin-report-rakeback-input--id {
  padding-left: 61px;
}
.admin-report-rakeback-row:not(.admin-report-rakeback-row--addon) .admin-report-rakeback-input--id {
  opacity: 1 !important;
  color: #fff0c7;
  -webkit-text-fill-color: #fff0c7;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(255, 215, 130, 0.2);
}
.admin-report-rakeback-discount-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.admin-report-rakeback-row--addon:not([data-rakeback-row-color]) td {
  background: linear-gradient(90deg, rgba(13, 17, 25, 0.98), rgba(8, 11, 17, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(246, 211, 145, 0.08), inset 0 -1px 0 rgba(246, 211, 145, 0.08);
}
#adminReportModal .admin-report-rakeback-row--addon:not([data-rakeback-row-color]) td {
  background: linear-gradient(90deg, rgba(13, 17, 25, 0.98), rgba(8, 11, 17, 0.98)) !important;
}
#adminReportModal .admin-report-rakeback-row[data-rakeback-shared-row][data-rakeback-kind="base"]:not([data-rakeback-row-color]) td {
  background: linear-gradient(90deg, rgba(173, 111, 26, 0.3), rgba(116, 76, 27, 0.2) 64%, rgba(39, 29, 19, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 218, 143, 0.24), inset 0 -1px 0 rgba(255, 218, 143, 0.2);
}
#adminReportModal .admin-report-rakeback-row[data-rakeback-row-color] > td:not(.admin-report-rakeback-actions) {
  background: var(--rakeback-row-bg, #101016);
}
#adminReportModal .admin-report-rakeback-table td[data-rakeback-cell-selected],
#adminReportModal .admin-report-rakeback-row[data-rakeback-row-color] > td[data-rakeback-cell-selected] {
  position: relative;
  background: rgba(246, 211, 145, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 231, 176, 0.78), inset 0 0 18px rgba(246, 211, 145, 0.12);
}
#adminReportModal .admin-report-rakeback-table td[data-rakeback-cell-copied],
#adminReportModal .admin-report-rakeback-row[data-rakeback-row-color] > td[data-rakeback-cell-copied] {
  background: rgba(66, 200, 132, 0.24);
  box-shadow: inset 0 0 0 2px rgba(102, 255, 178, 0.82), inset 0 0 18px rgba(66, 200, 132, 0.14);
}
.admin-report-rakeback-row--dragging > td {
  position: relative;
  z-index: 3;
  border-top-color: rgba(255, 231, 176, 0.9);
  border-bottom-color: rgba(255, 231, 176, 0.9);
  background: rgba(246, 211, 145, 0.16) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 231, 176, 0.28);
}
.admin-report-rakeback-row--dragging {
  touch-action: none;
}
.admin-report-rakeback-date-separator td {
  display: table-cell !important;
  padding: 10px 6px 6px;
  background: rgba(39, 102, 76, 0.18) !important;
  color: #ffe7b0;
  text-align: center;
}
.admin-report-rakeback-date-separator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffe7b0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.admin-report-rakeback-date-separator--entries td {
  padding: 9px 0 7px;
  background: rgba(4, 6, 12, 0.96) !important;
}
.admin-report-rakeback-date-separator__stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.admin-report-rakeback-date-separator--entries .admin-report-rakeback-date-separator__stack {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  border-top: 1px solid rgba(245, 179, 60, 0.78);
  border-bottom: 1px solid rgba(245, 179, 60, 0.78);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(122, 69, 10, 0.74), rgba(42, 29, 16, 0.76) 50%, rgba(13, 18, 28, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 235, 190, 0.14), 0 0 18px rgba(234, 157, 35, 0.13);
  box-sizing: border-box;
}
.admin-report-rakeback-date-separator--entries span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}
.admin-report-rakeback-date-separator--entries .admin-report-rakeback-date-separator__date {
  padding: 5px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe7a6, #d99c33);
  color: #17120b;
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}
.admin-report-rakeback-date-separator__weekday {
  justify-self: start;
  color: #fff0c7;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}
.admin-report-rakeback-date-separator__total {
  grid-column: auto;
  color: #ffd878;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.admin-report-rakeback-template-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.admin-report-rakeback-template-toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid currentColor;
  transform-origin: 3px 5px;
  transition: transform 0.16s ease;
}
.admin-report-rakeback-template-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}
.admin-report-rakeback-row[data-rakeback-template-collapsed="1"] {
  display: none !important;
}
.admin-report-rakeback-date-separator small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.admin-report-rakeback-archive-week-row td {
  display: table-cell !important;
  padding: 8px 6px 10px;
  background: rgba(4, 6, 12, 0.96) !important;
}
.admin-report-rakeback-archive-week {
  border: 1px solid rgba(246, 211, 145, 0.38);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 11, 18, 0.82);
}
.admin-report-rakeback-archive-week__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  color: #ffe7b0;
  cursor: pointer;
  list-style: none;
}
.admin-report-rakeback-archive-week__summary::-webkit-details-marker {
  display: none;
}
.admin-report-rakeback-archive-week__title {
  min-width: 0;
  font-size: 14px;
  font-weight: 900;
}
.admin-report-rakeback-archive-week__title::before {
  content: "▸";
  display: inline-block;
  margin-right: 7px;
}
.admin-report-rakeback-archive-week[open] .admin-report-rakeback-archive-week__title::before {
  content: "▾";
}
.admin-report-rakeback-archive-week__total {
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.admin-report-rakeback-archive-week__room-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 8px 8px;
}
.admin-report-rakeback-archive-week__room-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 5px 6px;
  border: 1px solid rgba(246, 211, 145, 0.34);
  border-radius: 7px;
  background: rgba(8, 11, 18, 0.74);
  color: #ffe7b0;
  font: inherit;
  cursor: pointer;
}
.admin-report-rakeback-archive-week__room-tab--active,
.admin-report-rakeback-archive-week__room-tab[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(255, 231, 176, 0.24), rgba(216, 169, 79, 0.18));
  border-color: rgba(246, 211, 145, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 245, 214, 0.14);
}
.admin-report-rakeback-archive-week__room-tab--empty {
  opacity: 0.58;
}
.admin-report-rakeback-archive-week__room-tab-label,
.admin-report-rakeback-archive-week__room-tab-total {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-report-rakeback-archive-week__room-tab-label {
  color: #ffe7b0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}
.admin-report-rakeback-archive-week__room-tab-total {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.admin-report-rakeback-archive-week__panels {
  min-width: 0;
}
.admin-report-rakeback-archive-week__room-panel[hidden] {
  display: none !important;
}
.admin-report-rakeback-archive-week__list {
  display: grid;
  gap: 6px;
  padding: 0 8px 10px;
}
.admin-report-rakeback-archive-week__empty {
  margin: 0 8px 10px;
  padding: 10px;
  border: 1px solid rgba(246, 211, 145, 0.16);
  border-radius: 7px;
  background: rgba(16, 16, 22, 0.64);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.admin-report-rakeback-archive-week__item {
  display: grid;
  grid-template-columns: 28px 52px minmax(68px, 0.8fr) minmax(78px, 1fr) minmax(58px, 0.8fr) 52px minmax(72px, 0.8fr);
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid rgba(246, 211, 145, 0.2);
  border-radius: 7px;
  background: rgba(16, 16, 22, 0.82);
  color: #d8d1c1;
  font-size: 12px;
  font-weight: 800;
}
.admin-report-rakeback-archive-week__item--head {
  min-height: 24px;
  padding-top: 3px;
  padding-bottom: 3px;
  border-color: rgba(246, 211, 145, 0.12);
  background: rgba(246, 211, 145, 0.06);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-report-rakeback-archive-week__item--addon {
  border-color: rgba(255, 181, 49, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 181, 49, 0.1), rgba(16, 16, 22, 0.82) 42%);
}
.admin-report-rakeback-archive-week__item--addon .admin-report-rakeback-archive-week__num {
  color: #ffb531;
  font-size: 15px;
}
.admin-report-rakeback-archive-week__num,
.admin-report-rakeback-archive-week__date {
  color: #ffe7b0;
}
.admin-report-rakeback-archive-week__rake,
.admin-report-rakeback-archive-week__percent,
.admin-report-rakeback-archive-week__amount {
  color: #ffe7b0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.admin-report-rakeback-archive-week__rake-main,
.admin-report-rakeback-archive-week__rake-sub {
  display: block;
}
.admin-report-rakeback-archive-week__rake-sub {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}
.admin-report-rakeback-week-separator td {
  display: table-cell !important;
  padding: 10px 6px 6px;
  background: rgba(62, 77, 102, 0.24) !important;
  text-align: center;
}
.admin-report-rakeback-week-separator__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 231, 176, 0.24);
  border-radius: 6px;
  background: rgba(14, 14, 18, 0.24);
  color: #ffe7b0;
  font: inherit;
  cursor: pointer;
}
.admin-report-rakeback-week-separator__button span {
  color: #ffe7b0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.admin-report-rakeback-week-separator__button span::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
}
.admin-report-rakeback-week-separator__button[aria-expanded="true"] span::before {
  content: "▾";
}
.admin-report-rakeback-week-separator__button small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.admin-report-rakeback-week-room-tabs td {
  display: table-cell !important;
  padding: 0 6px 8px;
  background: rgba(62, 77, 102, 0.24) !important;
}
.admin-report-rakeback-week-room-tabs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.admin-report-rakeback-week-room-tabs__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 5px 6px;
  border: 1px solid rgba(246, 211, 145, 0.38);
  border-radius: 7px;
  background: rgba(8, 11, 18, 0.74);
  color: #ffe7b0;
  font: inherit;
  cursor: pointer;
}
.admin-report-rakeback-week-room-tabs__button[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(255, 231, 176, 0.22), rgba(216, 169, 79, 0.18));
  border-color: rgba(246, 211, 145, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 245, 214, 0.16);
}
.admin-report-rakeback-week-room-tabs__button--empty {
  opacity: 0.58;
}
.admin-report-rakeback-week-room-tabs__button span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #ffe7b0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-report-rakeback-week-room-tabs__button span::before {
  content: "▸";
  display: inline-block;
  margin-right: 4px;
}
.admin-report-rakeback-week-room-tabs__button[aria-expanded="true"] span::before {
  content: "▾";
}
.admin-report-rakeback-week-room-tabs__button small {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-report-rakeback-week-total td {
  display: table-cell !important;
  padding: 0 6px 8px;
  background: rgba(62, 77, 102, 0.24) !important;
}
.admin-report-rakeback-week-total__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(246, 211, 145, 0.36);
  border-radius: 7px;
  background: rgba(5, 7, 13, 0.64);
}
.admin-report-rakeback-week-total__label {
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
}
.admin-report-rakeback-week-total__value {
  color: #ffe7b0;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.admin-report-rakeback-drag-active,
.admin-report-rakeback-drag-active * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
.admin-report-rakeback-row--addon td:first-child {
  position: relative;
  padding-left: 18px;
}
.admin-report-rakeback-row--addon td:first-child::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -10px;
  width: 12px;
  height: calc(50% + 10px);
  border-left: 3px solid rgba(255, 202, 99, 0.96);
  border-bottom: 3px solid rgba(255, 202, 99, 0.96);
  border-radius: 0 0 0 7px;
  filter: drop-shadow(0 0 3px rgba(255, 184, 61, 0.5));
  pointer-events: none;
}
.admin-report-rakeback-row--addon td:first-child::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 3px solid rgba(255, 213, 128, 0.96);
  border-bottom: 3px solid rgba(255, 213, 128, 0.96);
  filter: drop-shadow(0 0 3px rgba(255, 184, 61, 0.55));
  transform: translateY(-50%) rotate(-45deg);
  pointer-events: none;
}
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-row--addon td:nth-child(2) {
  position: relative;
  padding-left: 18px;
}
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-row--addon td:nth-child(2)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -10px;
  width: 12px;
  height: calc(50% + 10px);
  border-left: 3px solid rgba(255, 202, 99, 0.96);
  border-bottom: 3px solid rgba(255, 202, 99, 0.96);
  border-radius: 0 0 0 7px;
  filter: drop-shadow(0 0 3px rgba(255, 184, 61, 0.5));
  pointer-events: none;
}
.admin-report-rakeback-wrap--by-room .admin-report-rakeback-row--addon td:nth-child(2)::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 3px solid rgba(255, 213, 128, 0.96);
  border-bottom: 3px solid rgba(255, 213, 128, 0.96);
  filter: drop-shadow(0 0 3px rgba(255, 184, 61, 0.55));
  transform: translateY(-50%) rotate(-45deg);
  pointer-events: none;
}
.admin-report-rakeback-select,
.admin-report-rakeback-input {
  width: 100%;
  min-height: 28px;
  padding: 2px 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--input-bg, var(--card-bg));
  color: var(--text);
  font-size: 13px;
  box-sizing: border-box;
}
.admin-report-rakeback-select:disabled,
.admin-report-rakeback-input[readonly] {
  opacity: 0.76;
  color: var(--text-muted);
}
.admin-report-rakeback-row--saved .admin-report-rakeback-input--id,
.admin-report-rakeback-input--id[readonly] {
  cursor: pointer;
}
.admin-report-rakeback-rake-with-rest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.admin-report-rakeback-rest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 28px;
  padding: 0 5px;
  border: 1px solid rgba(246, 211, 145, 0.36);
  border-radius: 7px;
  background: rgba(246, 211, 145, 0.1);
  color: #ffe7b0;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}
.admin-report-rakeback-rest--negative {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}
.admin-report-rakeback-discount {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.admin-report-rakeback-discount-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(246, 211, 145, 0.56);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}
.admin-report-rakeback-discount:checked + .admin-report-rakeback-discount-box {
  border-color: #4ade80;
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.36), 0 0 8px rgba(34, 197, 94, 0.3);
}
.admin-report-rakeback-discount:checked + .admin-report-rakeback-discount-box::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 3px solid #11151c;
  border-bottom: 3px solid #11151c;
  transform: translateY(-1px) rotate(-45deg);
}
.admin-report-rakeback-discount:disabled {
  opacity: 0.55;
  cursor: default;
}
.admin-report-rakeback-discount:disabled + .admin-report-rakeback-discount-box {
  opacity: 0.55;
}
.admin-report-rakeback-discount:checked:disabled + .admin-report-rakeback-discount-box {
  opacity: 0.9;
}
.admin-report-rakeback-amount {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 13px;
  font-weight: 700;
  color: #ffe7b0;
  font-variant-numeric: tabular-nums;
}
.admin-report-rakeback-amount--negative {
  color: #fecaca;
}
.admin-report-rakeback-actions {
  position: relative;
  display: table-cell;
  text-align: right !important;
  white-space: nowrap;
  overflow: visible;
}
.admin-report-rakeback-actions .admin-report-rakeback-icon-btn {
  display: inline-flex;
  margin-left: 4px;
  vertical-align: middle;
}
.admin-report-rakeback-actions .admin-report-rakeback-icon-btn[hidden] {
  display: none !important;
}
.admin-report-rakeback-icon-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-report-rakeback-icon-btn[hidden] {
  display: none !important;
}
.admin-report-rakeback-icon-btn:hover {
  background: rgba(246, 211, 145, 0.2);
  border-color: rgba(246, 211, 145, 0.44);
}
.admin-report-rakeback-icon-btn:disabled {
  opacity: 0.38;
  cursor: default;
}
.admin-report-rakeback-icon-btn--muted {
  color: var(--text-muted);
}
.admin-report-rakeback-icon-btn--save,
.admin-report-rakeback-icon-btn[data-rakeback-save] {
  border-color: #22c55e !important;
  background: #22c55e !important;
  color: #07130b !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28) !important;
}
.admin-report-rakeback-icon-btn--save:hover,
.admin-report-rakeback-icon-btn[data-rakeback-save]:hover {
  background: #16a34a !important;
  border-color: #22c55e !important;
}
.admin-report-rakeback-icon-btn--delete,
.admin-report-rakeback-icon-btn[data-rakeback-remove] {
  border-color: #ef4444;
  background: #ef4444;
  color: #fff7f7;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}
.admin-report-rakeback-icon-btn--delete:hover,
.admin-report-rakeback-icon-btn[data-rakeback-remove]:hover {
  background: #dc2626;
  border-color: #ef4444;
}
.admin-report-rakeback-icon-btn--color {
  border-color: rgba(246, 211, 145, 0.56);
  background: rgba(255, 255, 255, 0.06);
  color: #ffe7b0;
}
.admin-report-rakeback-icon-btn--color:hover {
  background: rgba(246, 211, 145, 0.2);
  border-color: rgba(246, 211, 145, 0.8);
}
.admin-report-rakeback-color-dot {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 231, 176, 0.72);
  border-radius: 50%;
  background:
    var(--rakeback-row-button-color, conic-gradient(from 90deg, #fbbf24, #22c55e, #38bdf8, #f43f5e, #fbbf24));
  box-shadow: inset 0 0 0 1px rgba(5, 7, 13, 0.5);
}
.admin-report-rakeback-color-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(6, 28px);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(246, 211, 145, 0.34);
  border-radius: 10px;
  background: #080b12;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.admin-report-rakeback-color-menu[hidden] {
  display: none !important;
}
.admin-report-rakeback-color-swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(246, 211, 145, 0.34);
  border-radius: 8px;
  background: var(--rakeback-swatch, transparent) !important;
  color: #ffe7b0;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(5, 7, 13, 0.42),
    0 0 10px rgba(246, 211, 145, 0.12);
}
.admin-report-rakeback-color-swatch[data-rakeback-color-selected] {
  border-color: #ffe7b0;
  box-shadow:
    inset 0 0 0 2px rgba(5, 7, 13, 0.55),
    0 0 0 2px rgba(246, 211, 145, 0.3),
    0 0 14px rgba(246, 211, 145, 0.22);
}
.admin-report-rakeback-color-swatch--clear {
  background: rgba(255, 255, 255, 0.06) !important;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.admin-report-rakeback-icon-btn--add {
  border-color: #f6d391;
  background: #f6d391;
  color: #11151c;
  box-shadow: 0 0 0 2px rgba(246, 211, 145, 0.2);
}
.admin-report-rakeback-icon-btn--add:hover {
  background: #ffe7b0;
  border-color: #f6d391;
}
.admin-report-rakeback-icon-btn--edit {
  border-color: #f6d391;
  background: #f6d391;
  color: #11151c;
  box-shadow: 0 0 0 2px rgba(246, 211, 145, 0.2);
}
.admin-report-rakeback-icon-btn--edit:hover {
  background: #ffe7b0;
  border-color: #f6d391;
}
.admin-report-rakeback-status {
  margin: 8px 0 0;
  color: #86efac;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
}
.admin-report-rakeback-row--saved .admin-report-rakeback-select,
.admin-report-rakeback-row--saved .admin-report-rakeback-input {
  border-color: transparent;
  background: rgba(246, 211, 145, 0.05);
}
.admin-report-rakeback-row[data-rakeback-template-default-saved="1"]:not([data-rakeback-template-default-dirty="1"]) [data-rakeback-percent] {
  border-color: transparent;
  background: rgba(246, 211, 145, 0.05);
  color: var(--text-muted);
}
.admin-report-rakeback-row[data-rakeback-template-default-saved="1"]:not([data-rakeback-template-default-dirty="1"]) .admin-report-rakeback-discount-box {
  opacity: 0.72;
}
.admin-report-rakeback-week-total-row td {
  background: rgba(246, 211, 145, 0.1);
  border-bottom-color: rgba(246, 211, 145, 0.24);
}
.admin-report-rakeback-week-total-row__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.admin-report-rakeback-week-total-row__value {
  font-size: 13px;
  font-weight: 800;
  color: #ffe7b0;
  font-variant-numeric: tabular-nums;
}
.admin-report-rakeback-add-row-btn {
  margin: 0;
  flex: 0 0 auto;
  align-self: end;
}
@media (max-width: 560px) {
  .share-stats-admin-modal {
    padding: 10px;
  }
  #adminReportModal {
    padding: 0;
  }
  .admin-report-modal__box {
    max-width: calc(100vw - 20px);
    padding-left: 12px;
    padding-right: 12px;
  }
  .admin-report-rakeback-room-tabs {
    gap: 4px;
    min-height: 32px;
  }
  .admin-report-rakeback-room-tab {
    min-height: 32px;
    padding: 5px 3px;
    font-size: 10px;
  }
  .admin-report-rakeback-archive-tab {
    min-width: 32px;
    min-height: 32px;
  }
  .admin-report-rakeback-toolbar {
    grid-template-columns: minmax(84px, auto) auto minmax(0, 1fr) minmax(0, 1fr);
    margin: 4px 0 5px;
    gap: 6px;
  }
  .admin-report-rakeback-refresh-btn {
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }
  .admin-report-rakeback-search,
  .admin-report-rakeback-sort {
    font-size: 11px;
  }
  .admin-report-rakeback-search__input,
  .admin-report-rakeback-sort__select {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
  }
  .admin-report-rakeback-sort__select {
    padding-right: 20px;
    background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%;
    background-size: 5px 5px, 5px 5px;
  }
  .admin-report-rakeback-wrap {
    overflow-x: hidden;
  }
  .admin-report-rakeback-table {
    min-width: 0;
    width: 100%;
  }
  .admin-report-rakeback-table th,
  .admin-report-rakeback-table td {
    padding: 0 2px;
  }
  .admin-report-rakeback-table th {
    font-size: 10px;
    white-space: nowrap;
  }
  .admin-report-rakeback-table th:nth-child(4),
  .admin-report-rakeback-table th:nth-child(6) {
    font-size: 0;
  }
  .admin-report-rakeback-table th:nth-child(4)::after {
    content: "%";
    font-size: 10px;
  }
  .admin-report-rakeback-table th:nth-child(6)::after {
    content: "РБ";
    font-size: 10px;
  }
  .admin-report-rakeback-table th:nth-child(1),
  .admin-report-rakeback-table td:nth-child(1) {
    width: 10%;
  }
  .admin-report-rakeback-table th:nth-child(2),
  .admin-report-rakeback-table td:nth-child(2) {
    width: 17%;
  }
  .admin-report-rakeback-table th:nth-child(3),
  .admin-report-rakeback-table td:nth-child(3) {
    width: 22%;
  }
  .admin-report-rakeback-table th:nth-child(4),
  .admin-report-rakeback-table td:nth-child(4) {
    width: 10%;
  }
  .admin-report-rakeback-table th:nth-child(5),
  .admin-report-rakeback-table td:nth-child(5) {
    width: 6%;
  }
  .admin-report-rakeback-table th:nth-child(6),
  .admin-report-rakeback-table td:nth-child(6) {
    width: 8%;
  }
  .admin-report-rakeback-table th:nth-child(7),
  .admin-report-rakeback-table td:nth-child(7) {
    width: 27%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(1),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(1) {
    display: none;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(2),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(2) {
    width: 24%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(3),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(3) {
    width: 25%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(4),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(4) {
    width: 8%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(5),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(5) {
    width: 6%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(6),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(6) {
    width: 14%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(7),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(7) {
    width: 23%;
  }
  .admin-report-rakeback-select,
  .admin-report-rakeback-input {
    min-height: 28px;
    padding: 2px 4px;
    border-radius: 7px;
    font-size: 12px;
  }
  .admin-report-rakeback-input--id {
    font-size: 10px;
  }
  .admin-report-rakeback-id-cell {
    position: relative;
  }
  .admin-report-rakeback-row-number {
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .admin-report-rakeback-date-badge {
    left: 21px;
    min-width: 34px;
    height: 16px;
    padding: 0 4px;
    font-size: 8px;
  }
  .admin-report-rakeback-id-cell .admin-report-rakeback-input--id {
    padding-left: 22px;
  }
  .admin-report-rakeback-row[data-rakeback-entry-date-visible="1"] .admin-report-rakeback-input--id {
    padding-left: 58px;
  }
  .admin-report-rakeback-row--addon .admin-report-rakeback-input--id {
    padding-left: 4px;
  }
  .admin-report-rakeback-row--addon .admin-report-rakeback-date-badge {
    left: 21px;
  }
  .admin-report-rakeback-row--addon[data-rakeback-entry-date-visible="1"] .admin-report-rakeback-input--id {
    padding-left: 41px;
  }
  .admin-report-rakeback-discount {
    width: 100%;
    height: 100%;
  }
  .admin-report-rakeback-discount-control {
    width: 20px;
    height: 20px;
  }
  .admin-report-rakeback-discount-box {
    width: 16px;
    height: 16px;
  }
  .admin-report-rakeback-amount {
    min-height: 28px;
    font-size: 12px;
  }
  .admin-report-rakeback-rake-with-rest {
    grid-template-columns: minmax(0, 1fr) minmax(42px, auto);
    gap: 2px;
  }
  .admin-report-rakeback-rake-with-rest .admin-report-rakeback-input {
    min-width: 0;
    padding-left: 3px;
    padding-right: 3px;
    font-size: 12px;
  }
  .admin-report-rakeback-rest {
    min-width: 42px;
    min-height: 24px;
    padding: 0 2px;
    border-radius: 6px;
    font-size: 9px;
  }
  .admin-report-rakeback-actions {
    text-align: right !important;
  }
  .admin-report-rakeback-actions .admin-report-rakeback-icon-btn { margin-left: 2px; }
  .admin-report-rakeback-icon-btn {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 15px;
  }
  .admin-report-rakeback-color-dot {
    width: 13px;
    height: 13px;
    border-width: 1px;
  }
  .admin-report-rakeback-color-menu {
    grid-template-columns: repeat(6, 24px);
    gap: 5px;
    padding: 6px;
  }
  .admin-report-rakeback-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .admin-report-rakeback-archive-week-row td {
    padding: 6px 2px 8px;
  }
  .admin-report-rakeback-archive-week__summary {
    min-height: 44px;
    gap: 6px;
    padding: 8px 8px;
  }
  .admin-report-rakeback-archive-week__title {
    font-size: 13px;
  }
  .admin-report-rakeback-archive-week__total {
    font-size: 14px;
  }
  .admin-report-rakeback-archive-week__room-tabs {
    gap: 5px;
    padding: 0 6px 7px;
  }
  .admin-report-rakeback-archive-week__room-tab {
    min-height: 38px;
    padding: 4px 5px;
  }
  .admin-report-rakeback-archive-week__item {
    grid-template-columns: 20px 38px minmax(48px, 0.75fr) minmax(54px, 0.95fr) minmax(45px, 0.8fr) 34px minmax(50px, 0.85fr);
    gap: 4px;
    min-height: 34px;
    padding: 6px 5px;
    font-size: 10px;
  }
}
@media (max-width: 430px) {
  .admin-report-rakeback-table th,
  .admin-report-rakeback-table td {
    padding-left: 1px;
    padding-right: 1px;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(2),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(2) {
    width: 32%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(3),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(3) {
    width: 16%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(4),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(4) {
    width: 8%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(5),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(5) {
    width: 6%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(6),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(6) {
    width: 13%;
  }
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table th:nth-child(7),
  .admin-report-rakeback-wrap--by-room .admin-report-rakeback-table td:nth-child(7) {
    width: 25%;
  }
  .admin-report-rakeback-select,
  .admin-report-rakeback-input {
    min-height: 28px;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 3px;
    padding-right: 3px;
    font-size: 12px;
  }
  .admin-report-rakeback-rake-with-rest {
    grid-template-columns: minmax(0, 1fr) minmax(34px, auto);
    gap: 1px;
  }
  .admin-report-rakeback-rake-with-rest .admin-report-rakeback-input {
    padding-left: 2px;
    padding-right: 2px;
    font-size: 11px;
  }
  .admin-report-rakeback-rest {
    min-width: 34px;
    padding-left: 1px;
    padding-right: 1px;
    font-size: 10px;
  }
  .admin-report-rakeback-amount {
    min-height: 30px;
    font-size: 13px;
  }
  .admin-report-rakeback-actions {
    box-sizing: border-box;
    padding-right: 8px !important;
    text-align: right !important;
  }
  .admin-report-rakeback-actions .admin-report-rakeback-icon-btn {
    margin-left: 1px;
  }
  .admin-report-rakeback-icon-btn {
    width: 21px !important;
    min-width: 21px !important;
    height: 24px !important;
    border-radius: 8px;
    font-size: 14px;
  }
  .admin-report-rakeback-color-menu {
    right: -4px;
  }
}
.admin-report-submit-btn {
  margin-top: 10px;
}
.admin-report-preview-wrap {
  margin-top: 12px;
}
.admin-report-preview-wrap--hidden {
  display: none !important;
}
.admin-report-preview-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.admin-report-preview-content {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  max-height: 200px;
  overflow-y: auto;
}
.admin-report-preview-content .admin-report-preview-line { margin: 4px 0; }
.admin-report-preview-content .admin-report-preview-total { font-weight: 700; margin-top: 8px; }
.admin-report-preview-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-report-preview-back-btn {
  min-height: var(--app-back-btn-min-height);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.admin-report-preview-back-btn:hover {
  background: rgba(255,255,255,0.08);
}

/* Отправленные отчёты: по дням недели, развернуть детали */
.admin-report-sent-wrap {
  max-height: 60vh;
  overflow-y: auto;
}
#adminReportModal .admin-report-sent-wrap {
  max-height: none;
  overflow: visible;
}
.admin-report-cash-history {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.admin-report-cash-history__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
}
.admin-report-cash-history__refresh {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(246, 211, 145, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.admin-report-cash-history__refresh:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}
.admin-report-cash-history__refresh:disabled {
  opacity: 0.58;
  cursor: default;
}
.admin-report-cash-history__status {
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}
.admin-report-cash-history__status[data-tone="error"] {
  color: #ff9a82;
}
.admin-report-cash-history__status[data-tone="loading"] {
  color: #f6d391;
}
.admin-report-cash-history__filters {
  display: grid;
  grid-template-columns: minmax(132px, 1.1fr) minmax(92px, 0.75fr) minmax(112px, 0.9fr) minmax(118px, 0.85fr) minmax(118px, 0.85fr) auto;
  gap: 8px;
  align-items: end;
}
.admin-report-cash-history__filter {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.admin-report-cash-history__filter span {
  color: rgba(246, 232, 197, 0.68);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.admin-report-cash-history__filter select,
.admin-report-cash-history__filter input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  box-sizing: border-box;
  padding: 0 9px;
  border: 1px solid rgba(246, 211, 145, 0.28);
  border-radius: 8px;
  background: #070b13;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.admin-report-cash-history__filter input:disabled {
  opacity: 0.56;
}
.admin-report-cash-history__reset {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(246, 211, 145, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.admin-report-cash-history__reset:hover {
  background: rgba(255, 255, 255, 0.1);
}
.admin-report-cash-history__wrap {
  flex: 1 1 auto;
  min-height: 0;
}
#adminReportModal .admin-report-cash-history__wrap {
  max-height: none;
  overflow: auto;
}
.admin-report-cash-history__empty {
  margin: 0;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.admin-report-cash-history-table {
  min-width: 760px;
}
.admin-report-cash-history-table th,
.admin-report-cash-history-table td {
  white-space: nowrap;
}
.admin-report-cash-history-table__amount {
  text-align: right;
  font-weight: 800;
}
.admin-report-cash-history-table__amount--positive {
  color: #7ddc93;
}
.admin-report-cash-history-table__amount--negative {
  color: #ff907a;
}
@media (max-width: 760px) {
  .admin-report-cash-history__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-report-cash-history__reset {
    grid-column: 1 / -1;
  }
}
.admin-report-sent-current {
  margin-bottom: 4px;
}
.admin-report-sent-actions {
  margin: 8px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-report-copy-summary-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.admin-report-copy-summary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.admin-report-sent-period-hint {
  margin: 0 0 12px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.admin-report-sent-view {
  display: grid;
  gap: 12px;
}
.admin-report-sent-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(246, 211, 145, 0.28);
  border-radius: 10px;
  background: rgba(3, 6, 12, 0.62);
}
.admin-report-sent-tab {
  min-height: 38px;
  padding: 8px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.admin-report-sent-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.admin-report-sent-tab--active,
.admin-report-sent-tab[aria-selected="true"] {
  border-color: rgba(45, 212, 191, 0.62);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.34), rgba(8, 47, 73, 0.42));
  color: #e6fffb;
  box-shadow:
    inset 0 0 0 1px rgba(45, 212, 191, 0.16),
    0 0 18px rgba(20, 184, 166, 0.18);
}
.admin-report-sent-tab-panels {
  min-width: 0;
}
.admin-report-sent-tab-panel {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(3, 6, 12, 0.42);
}
.admin-report-sent-tab-panel[hidden] {
  display: none !important;
}
.admin-report-sent-tab-panel--months {
  border-color: rgba(45, 212, 191, 0.42);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.12), rgba(14, 165, 233, 0.06));
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.08);
}
.admin-report-sent-tab-panel .admin-report-sent-current {
  margin-bottom: 0;
}
.admin-report-sent-tab-panel .admin-report-sent-archive__inner,
.admin-report-sent-tab-panel .admin-report-sent-months__inner {
  border-top: 0;
}
.admin-report-week-copy-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 auto;
}
.admin-report-week-copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.admin-report-sent-archive {
  margin-top: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
}
.admin-report-sent-months {
  margin-top: 12px;
  border: 1px solid rgba(45, 212, 191, 0.42);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.12), rgba(14, 165, 233, 0.06));
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.08);
}
.admin-report-sent-months__summary {
  color: #b7f7ef;
}
.admin-report-sent-archive__summary {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
}
.admin-report-sent-archive__summary::-webkit-details-marker {
  display: none;
}
.admin-report-sent-archive__inner {
  padding: 12px 12px 4px;
  border-top: 1px solid var(--border-subtle);
}
.admin-report-sent-months__inner {
  padding: 12px;
  border-top: 1px solid rgba(45, 212, 191, 0.28);
}
.admin-report-sent-month {
  border: 1px solid rgba(45, 212, 191, 0.32);
  border-radius: 8px;
  background: rgba(6, 95, 70, 0.18);
  overflow: hidden;
  margin-bottom: 12px;
}
.admin-report-sent-month:last-child {
  margin-bottom: 0;
}
.admin-report-sent-month__summary {
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  color: #d6fff8;
  font-size: 14px;
  font-weight: 800;
}
.admin-report-sent-month__summary::-webkit-details-marker,
.admin-report-sent-month-total__summary::-webkit-details-marker,
.admin-report-sent-month-days__summary::-webkit-details-marker,
.admin-report-sent-month-weeks__summary::-webkit-details-marker,
.admin-report-sent-month-day__summary::-webkit-details-marker,
.admin-report-sent-month-week__summary::-webkit-details-marker {
  display: none;
}
.admin-report-sent-month__inner {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}
.admin-report-sent-month-total,
.admin-report-sent-month-days,
.admin-report-sent-month-weeks {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.admin-report-sent-month-total {
  background: rgba(20, 184, 166, 0.18);
  border-color: rgba(45, 212, 191, 0.34);
}
.admin-report-sent-month-days {
  background: rgba(14, 165, 233, 0.13);
  border-color: rgba(125, 211, 252, 0.28);
}
.admin-report-sent-month-weeks {
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(246, 211, 145, 0.22);
}
.admin-report-sent-month-total__summary,
.admin-report-sent-month-days__summary,
.admin-report-sent-month-weeks__summary {
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
}
.admin-report-sent-month-total__summary {
  color: #bbfff3;
}
.admin-report-sent-month-days__summary {
  color: #d6f3ff;
}
.admin-report-sent-month-weeks__summary {
  color: #ffe7b0;
}
.admin-report-sent-month-total__inner,
.admin-report-sent-month-days__inner,
.admin-report-sent-month-weeks__inner {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-report-sent-month-day,
.admin-report-sent-month-week {
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}
.admin-report-sent-month-day:last-child,
.admin-report-sent-month-week:last-child {
  margin-bottom: 0;
}
.admin-report-sent-month-day__summary,
.admin-report-sent-month-week__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.admin-report-sent-month-day__label {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-report-sent-month-day__count {
  flex: 0 0 auto;
  min-width: 26px;
  padding: 2px 7px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  color: #d6f3ff;
  text-align: center;
  font-size: 12px;
}
.admin-report-sent-month-day__inner,
.admin-report-sent-month-week__inner {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-report-sent-empty {
  margin: 0;
  padding: 12px 0;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.admin-report-sent-day {
  margin-bottom: 16px;
}
.admin-report-sent-day:last-child {
  margin-bottom: 0;
}
.admin-report-sent-day-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-report-sent-item {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.admin-report-sent-item:last-child {
  margin-bottom: 0;
}
.admin-report-sent-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--card-bg);
  color: var(--text);
  font-size: 13px;
  flex-wrap: wrap;
}
.admin-report-sent-item__head:hover {
  background: rgba(255,255,255,0.05);
}
.admin-report-sent-item__date {
  flex: 0 0 auto;
  color: var(--text-muted);
}
.admin-report-sent-item__who {
  flex: 1 1 auto;
  min-width: 0;
}
.admin-report-sent-item__total {
  font-weight: 600;
  flex: 0 0 auto;
}
.admin-report-sent-item__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.admin-report-sent-edit-btn,
.admin-report-sent-delete-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-report-sent-edit-btn:hover,
.admin-report-sent-delete-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text);
}
.admin-report-sent-delete-btn:hover {
  background: rgba(220, 53, 69, 0.3);
  color: #dc3545;
}
.admin-report-sent-item__toggle {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 10px;
  transition: transform 0.2s;
}
.admin-report-sent-detail {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 12px;
}
.admin-report-sent-detail__inner {
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  font-size: 12px;
  max-width: 320px;
}
.admin-report-sent-detail__row {
  display: contents;
}
.admin-report-sent-detail__field-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 0;
  margin: 4px 0;
  padding: 6px 8px;
  border-radius: 8px;
}
.admin-report-sent-detail__field-block--danger {
  background: rgba(248, 113, 113, 0.12);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.18);
}
.admin-report-sent-detail__field-block--other {
  background: rgba(246, 211, 145, 0.07);
  box-shadow: inset 0 0 0 1px rgba(246, 211, 145, 0.12);
}
.admin-report-sent-detail__field-block--calc {
  background: rgba(56, 189, 248, 0.09);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.16);
}
.admin-report-sent-detail__field-block-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 26px;
  padding: 4px 2px;
}
.admin-report-sent-detail__field-block--danger .admin-report-sent-detail__label,
.admin-report-sent-detail__field-block--danger .admin-report-sent-detail__value {
  color: #ffd3d3;
  font-weight: 800;
}
.admin-report-sent-detail__field-block--calc .admin-report-sent-detail__label,
.admin-report-sent-detail__field-block--calc .admin-report-sent-detail__value {
  color: #cdefff;
  font-weight: 800;
}
.admin-report-sent-detail__field-block--calc .admin-report-sent-detail__field-block-row {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
}
.admin-report-sent-detail__field-block--calc .admin-report-sent-detail__value {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.admin-report-sent-detail__deposit-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 8px 0 6px;
}
.admin-report-sent-detail__deposit-main {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(246, 211, 145, 0.24);
  border-radius: 8px;
  background: rgba(246, 211, 145, 0.08);
}
.admin-report-sent-detail__deposit-main .admin-report-sent-detail__label {
  color: #ffe7b0;
  font-weight: 800;
}
.admin-report-sent-detail__deposit-main .admin-report-sent-detail__value {
  color: #fff2c9;
  font-size: 14px;
  font-weight: 900;
}
.admin-report-sent-detail__deposit-subcolumn {
  display: grid;
  gap: 0;
  margin-left: 14px;
  padding: 6px 8px;
  border-left: 3px solid rgba(246, 211, 145, 0.52);
  border-radius: 8px;
  background: rgba(246, 211, 145, 0.11);
  box-shadow: inset 0 0 0 1px rgba(246, 211, 145, 0.18);
}
.admin-report-sent-detail__deposit-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.admin-report-sent-detail__deposit-child-label {
  color: rgba(255, 255, 255, 0.72);
  min-width: 0;
}
.admin-report-sent-detail__deposit-child-value {
  color: var(--text);
  font-weight: 800;
  text-align: right;
}
.admin-report-sent-detail__deposit-child--summary {
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(246, 211, 145, 0.24);
}
.admin-report-sent-detail__deposit-child--summary + .admin-report-sent-detail__deposit-child--summary {
  margin-top: 0;
  padding-top: 5px;
  border-top: 0;
}
.admin-report-sent-detail__deposit-child--summary .admin-report-sent-detail__deposit-child-label,
.admin-report-sent-detail__deposit-child--summary .admin-report-sent-detail__deposit-child-value {
  color: #ffe7b0;
  font-weight: 900;
}
.admin-report-sent-detail__label {
  color: var(--text-muted);
}
.admin-report-sent-detail__value {
  text-align: right;
  color: var(--text);
}
.admin-report-sent-detail__row.admin-report-sent-detail__total .admin-report-sent-detail__value {
  font-weight: 700;
}

.visitors-admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.visitors-admin-modal__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 20px;
}
.visitors-admin-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.visitors-admin-modal__close:hover {
  color: var(--text);
  background: var(--bg-elevated);
}
.visitors-admin-modal__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--text);
}
.visitors-admin-modal__stats {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.visitors-admin-modal__stats strong {
  color: var(--text);
}
.visitors-admin-modal__filter-wrap {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.visitors-admin-modal__filter-label {
  font-size: 14px;
  color: var(--text-muted);
}
.visitors-admin-modal__filter-select {
  padding: 6px 10px;
  font-size: 14px;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  color: var(--text);
  min-width: 140px;
}
.visitors-admin-modal__stats-wrap {
  margin: 0 0 12px;
}
.visitors-admin-modal__stats-label {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.visitors-admin-modal__groups-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.visitors-admin-modal__group-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.visitors-admin-modal__group-btn:hover {
  border-color: var(--accent, #4fc3f7);
  background: rgba(79, 195, 247, 0.08);
}
.visitors-admin-modal__group-btn[aria-pressed="true"] {
  border-color: var(--accent, #4fc3f7);
  background: rgba(79, 195, 247, 0.15);
}
.visitors-admin-modal__group-btn[aria-pressed="true"] .visitors-admin-modal__group-check {
  opacity: 1;
}
.visitors-admin-modal__group-check {
  font-size: 16px;
  opacity: 0.7;
}
.visitors-admin-modal__group-btn strong {
  color: var(--text);
}
.visitors-admin-modal__stats-row {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.visitors-admin-modal__stats-row strong {
  color: var(--text);
}
.visitors-admin-modal__show-btn {
  margin-bottom: 8px;
}
.visitors-admin-modal__broadcast-btn {
  margin-bottom: 8px;
}
.visitors-admin-modal__share-stats-btn {
  margin-bottom: 16px;
}
.visitors-admin-modal__broadcast-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.visitors-admin-modal__broadcast-label {
  display: block;
  margin-bottom: 12px;
}
.visitors-admin-modal__broadcast-label-text {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--text-muted);
}
.visitors-admin-modal__broadcast-text {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  color: var(--text);
  resize: vertical;
  box-sizing: border-box;
}
.visitors-admin-modal__broadcast-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  background: var(--card-bg, #1e293b);
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  color: var(--text);
  box-sizing: border-box;
}
.visitors-admin-modal__broadcast-file {
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.visitors-admin-modal__broadcast-file-name {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.visitors-admin-modal__box--broadcast .visitors-admin-modal__show-btn {
  margin-top: 8px;
}
.visitors-admin-modal__list-wrap {
  min-height: 120px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  background: var(--block-bg);
}
.visitors-admin-modal__list-wrap--hidden {
  display: none !important;
}
.visitors-admin-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.visitors-admin-item {
  padding: 12px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}
.visitors-admin-item__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.visitors-admin-item__id {
  font-family: monospace;
  font-weight: 600;
  color: var(--text);
}
.visitors-admin-item__meta {
  color: var(--text-muted);
  font-size: 12px;
}
.visitors-admin-item__badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.visitors-admin-item__badge--yes { color: var(--success, #22c55e); }
.visitors-admin-item__badge--no { color: var(--danger, #ef4444); }
.visitors-admin-item__send {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.visitors-admin-item__send input {
  flex: 1;
  min-width: 120px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--block-bg);
  color: var(--text);
}
.visitors-admin-item__send button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.visitors-admin-item__send button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
