:root {
  color-scheme: light;
  --bg: #f4f7ff;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --ink: #071439;
  --muted: #66708f;
  --line: #e2e8f7;
  --line-strong: #c9d6f4;
  --blue: #2458ff;
  --blue-strong: #1747e8;
  --blue-soft: #edf3ff;
  --navy: #020d35;
  --navy-2: #071747;
  --success: #14a679;
  --warning: #76531b;
  --warning-bg: #fff8e8;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(16, 40, 120, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(36, 88, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}

.boot-loader.is-visible {
  opacity: 1;
}

.boot-loader span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(36, 88, 255, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: boot-spin 0.8s linear infinite;
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  justify-items: center;
}

.login-panel {
  width: min(500px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(201, 214, 244, 0.9);
  border-radius: 8px;
  padding: 40px 38px;
  box-shadow: var(--shadow);
}

.brand-block {
  display: grid;
  justify-items: center;
  margin-bottom: 26px;
}

.login-logo {
  width: min(270px, 72vw);
  height: auto;
  display: block;
}

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

.invitation-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.invitation-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.invitation-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.login-form label,
.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-tooltip {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  cursor: help;
}

.info-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 5;
  width: min(290px, 72vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #000000;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(13, 24, 65, 0.14);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s, transform 0.16s;
}

.info-tooltip:hover::after,
.info-tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.login-form input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.login-form input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 88, 255, 0.11);
}

.login-form input[readonly] {
  color: var(--ink);
  background: #eef4ff;
}

.input-with-unit {
  position: relative;
  display: block;
}

.field .input-with-unit input {
  padding-right: 58px;
}

.input-unit {
  position: absolute;
  right: 13px;
  top: 50%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.login-form button,
.primary-button {
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
  background: var(--blue);
  color: white;
  font-weight: 750;
  transition: background 0.18s, transform 0.18s;
}

.login-form .login-secondary-button {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
}

.login-form button:hover,
.primary-button:hover {
  background: var(--blue-strong);
  transform: translateY(-1px);
}

.login-form .login-secondary-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.login-form button:disabled,
.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
}

.login-form .form-message:empty {
  display: none;
}

#loginForm button[type="submit"] {
  margin-top: 12px;
}

.social-login {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.social-button[data-provider="facebook"] {
  display: none !important;
}

.social-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  color: #000000;
  background: #ffffff;
  font-weight: 750;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.social-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.social-button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.social-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.google-icon {
  background: transparent;
}

.google-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.facebook-icon {
  background: #1877f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
}

.pwa-install-button {
  width: min(500px, 100%);
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--blue);
  background: #ffffff;
  font-weight: 800;
}

.account-connection-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.connected-account-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.connected-account-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.connected-account-copy strong {
  color: var(--navy);
  font-size: 15px;
}

.connected-account-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-connection-message {
  min-height: 18px;
  margin: 10px 0 0;
}

.account-connection-message:empty {
  display: none;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  align-items: start;
}

.mobile-menu-button,
.mobile-app-bar,
.mobile-menu-backdrop {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  gap: 18px;
  overflow-y: auto;
}

.sidebar-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-logo {
  width: 195px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.14));
}

.sidebar-brand span {
  color: #aebbf2;
  font-size: 13px;
  font-weight: 650;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-list button,
.sidebar-action-button,
.logout-button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 13px;
  color: #bfcaef;
  background: transparent;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.nav-list button,
.sidebar-action-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  line-height: 1;
}

.nav-icon ion-icon {
  width: 16px;
  height: 16px;
}

.nav-list button.active {
  background: rgba(36, 88, 255, 0.2);
  border-color: rgba(88, 124, 255, 0.35);
  color: white;
}

.nav-list button.active .nav-icon {
  background: var(--blue);
}

.nav-list button:hover,
.sidebar-action-button:hover,
.logout-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.sidebar-action-button {
  display: block;
  text-align: left;
  border-color: rgba(255, 255, 255, 0.12);
}

.logout-button {
  border-color: rgba(255, 255, 255, 0.12);
  text-align: left;
}

.workspace {
  min-width: 0;
  padding: max(30px, env(safe-area-inset-top)) max(30px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(30px, env(safe-area-inset-left));
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.page-title-with-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.title-back-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #ffffff;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.title-back-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.title-back-button ion-icon {
  width: 22px;
  height: 22px;
}

.topbar-actions {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.topbar-actions:empty {
  display: none;
}

.topbar-actions-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-actions-inner .secondary-button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-actions-inner .icon-action-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
}

.topbar-actions-inner .expense-action-menu {
  align-items: center;
}

.operation-date-range {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.operation-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.operation-date-filter input {
  min-width: 160px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
  outline: 0;
}

.operation-date-filter input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 91, 255, 0.12);
}

.payment-notice,
.notice {
  margin: 0;
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid #f2dfb4;
  border-radius: 8px;
  padding: 11px 13px;
  max-width: 460px;
  line-height: 1.45;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.three-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric,
.panel,
.action-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric {
  padding: 18px;
  box-shadow: 0 8px 22px rgba(16, 40, 120, 0.04);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 9px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.1;
}

.panel {
  padding: 19px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(16, 40, 120, 0.035);
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-header h3 {
  margin: 0;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
}

.segmented-control button {
  border: 0;
  border-radius: 0;
  padding: 13px 16px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.segmented-control button.active {
  color: white;
  background: var(--blue);
}

.panel p {
  color: var(--muted);
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.expenses-table-wrap {
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.panel-title-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-title-inline h3 {
  margin: 0;
}

.panel-title-add-button {
  width: 34px;
  height: 34px;
}

.panel-title-add-button ion-icon {
  width: 19px;
  height: 19px;
  transition: transform 0.18s ease;
}

.panel-title-add-button ion-icon.is-rotated {
  transform: rotate(45deg);
}

.expense-create-panel {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(360px, 1fr) minmax(170px, 210px) max-content 48px 48px;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.document-create-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 48px 48px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.expense-create-panel .field,
.document-create-panel .field {
  min-width: 0;
}

.expense-create-panel .field input,
.expense-create-panel .status-inline,
.document-create-panel input {
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
}

.document-create-panel input[name="title"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.document-create-panel input[name="title"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 88, 255, 0.11);
}

.expense-create-panel .icon-action-button,
.document-create-panel .icon-action-button {
  width: 48px;
  height: 48px;
  border-color: var(--line);
  border-radius: 8px;
  box-sizing: border-box;
}

.expense-create-panel .input-with-unit {
  width: 100%;
  height: 48px;
}

.expense-create-panel .input-with-unit input {
  padding-right: 34px;
}

.expense-create-tool,
.expense-create-status,
.expense-create-actions {
  display: grid;
  grid-template-rows: 18px 48px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.document-create-tool,
.document-create-actions {
  display: grid;
  gap: 0;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.expense-create-tool,
.expense-create-status,
.document-create-tool {
  justify-items: start;
}

.expense-create-actions,
.document-create-actions {
  justify-items: end;
}

.expense-create-actions::before {
  content: "";
  display: block;
  height: 18px;
}

.expense-create-tool::before {
  content: "";
  display: block;
  height: 18px;
}

.expense-create-panel .field-label,
.document-create-panel .field-label {
  min-height: 18px;
  line-height: 18px;
}

.expense-create-panel .status-inline {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.expenses-table,
.creator-documents-table {
  table-layout: fixed;
}

.expenses-table {
  border: 1px solid var(--line);
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
}

.expenses-table thead th:first-child {
  border-top-left-radius: 8px;
}

.expenses-table thead th:last-child {
  border-top-right-radius: 8px;
}

.expenses-table th:nth-child(1),
.expenses-table td:nth-child(1) {
  width: 16%;
}

.expenses-table th:nth-child(2),
.expenses-table td:nth-child(2) {
  width: 30%;
}

.expenses-table th:nth-child(3),
.expenses-table td:nth-child(3) {
  width: 18%;
}

.expenses-table th:nth-child(4),
.expenses-table td:nth-child(4) {
  width: 14%;
  text-align: center;
}

.expenses-table th:nth-child(5),
.expenses-table td:nth-child(5) {
  width: 14%;
}

.expenses-table th:nth-child(6),
.expenses-table td:nth-child(6) {
  width: 70px;
  text-align: center;
}

.talent-revenues-table {
  table-layout: fixed;
}

.talent-revenues-table th:nth-child(1),
.talent-revenues-table td:nth-child(1) {
  width: 12%;
}

.talent-revenues-table th:nth-child(2),
.talent-revenues-table td:nth-child(2) {
  width: 18%;
}

.talent-revenues-table th:nth-child(3),
.talent-revenues-table td:nth-child(3) {
  width: 26%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.talent-revenues-table th:nth-child(4),
.talent-revenues-table td:nth-child(4),
.talent-revenues-table th:nth-child(6),
.talent-revenues-table td:nth-child(6),
.talent-revenues-table th:nth-child(7),
.talent-revenues-table td:nth-child(7) {
  width: 12%;
}

.talent-revenues-table th:nth-child(5),
.talent-revenues-table td:nth-child(5) {
  width: 8%;
}

.talent-revenues-table th:nth-child(n + 4),
.talent-revenues-table td:nth-child(n + 4) {
  text-align: center;
  vertical-align: middle;
}

.talent-revenues-table th:nth-child(4),
.talent-revenues-table td:nth-child(4),
.talent-revenues-table th:nth-child(6),
.talent-revenues-table td:nth-child(6) {
  white-space: nowrap;
}

.talent-revenues-table .revenue-status-button {
  margin: 0 auto;
}

.creator-documents-table th:nth-child(3),
.creator-documents-table td:nth-child(3),
.creator-documents-table th:nth-child(4),
.creator-documents-table td:nth-child(4) {
  width: 90px;
  text-align: center;
}

.creator-documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 150px));
  gap: 14px;
  align-items: start;
}

.creator-document-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f7f8fc;
  box-shadow: none;
}

.creator-document-preview {
  aspect-ratio: 210 / 297;
  height: auto;
  border-radius: 0;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.creator-document-preview-media {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: #ffffff;
  box-shadow: none;
  pointer-events: none;
}

.creator-document-preview-media.is-pdf-page-preview {
  object-fit: cover;
  transform: scale(1.045);
}

.creator-document-preview-placeholder {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--blue);
  background: #ffffff;
}

.creator-document-preview-placeholder ion-icon {
  font-size: 72px;
}

.creator-document-preview-placeholder span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.creator-document-card-footer {
  display: grid;
  gap: 10px;
}

.creator-document-card-footer h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.creator-document-card-footer p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.manager-documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 150px));
  gap: 14px;
}

.manager-document-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f7f8fc;
}

.manager-document-preview {
  aspect-ratio: 210 / 297;
  height: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.manager-document-card-body {
  display: grid;
  gap: 10px;
}

.manager-document-card-body h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.manager-document-card-body p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.manager-document-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.document-download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.document-download-link ion-icon {
  width: 16px;
  height: 16px;
}

.manager-document-card .icon-action-button {
  width: 34px;
  height: 34px;
}

.manager-document-card .icon-action-button ion-icon {
  width: 18px;
  height: 18px;
}

.creator-document-download {
  flex: 0 0 auto;
}

.document-file-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.expense-create-row td,
.creator-document-create-row td {
  background: #ffffff;
}

.expense-create-row input,
.creator-document-create-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.expense-create-row .input-with-unit input {
  padding-right: 34px;
}

.expense-create-row input:focus,
.creator-document-create-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 88, 255, 0.11);
}

.expense-upload-button,
.document-upload-button,
.expense-download-button {
  vertical-align: middle;
}

.expense-document-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.expense-download-button {
  text-decoration: none;
}

.document-download-button {
  text-decoration: none;
}

.expense-upload-button.is-filled,
.document-upload-button.is-filled {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.expense-action-menu {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.expense-action-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(10, 24, 70, 0.15);
  display: none;
}

.expense-action-menu.is-drop-up .expense-action-dropdown {
  top: auto;
  bottom: calc(100% + 8px);
}

.expense-action-menu.is-open .expense-action-dropdown {
  display: grid;
  gap: 3px;
}

.expense-action-dropdown button,
.expense-action-dropdown a {
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  text-decoration: none;
}

.expense-action-dropdown button:hover,
.expense-action-dropdown a:hover {
  background: var(--blue-soft);
}

.expense-action-dropdown .danger-menu-item {
  color: var(--danger);
}

.expense-edit-actions {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.icon-action-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
  background: #ffffff;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.icon-action-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.icon-action-button ion-icon {
  width: 22px;
  height: 22px;
}

.creator-dashboard-revenues-table,
.creator-revenues-table {
  table-layout: fixed;
  min-width: 980px;
}

.creator-dashboard-revenues-table th:nth-child(1),
.creator-dashboard-revenues-table td:nth-child(1),
.creator-revenues-table th:nth-child(1),
.creator-revenues-table td:nth-child(1),
.creator-expenses-table th:nth-child(1),
.creator-expenses-table td:nth-child(1) {
  width: 9%;
}

.creator-dashboard-revenues-table th:nth-child(2),
.creator-dashboard-revenues-table td:nth-child(2) {
  width: 18%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.creator-dashboard-revenues-table th:nth-child(3),
.creator-dashboard-revenues-table td:nth-child(3) {
  width: 16%;
}

.creator-dashboard-revenues-table th:nth-child(4),
.creator-dashboard-revenues-table td:nth-child(4),
.creator-dashboard-revenues-table th:nth-child(6),
.creator-dashboard-revenues-table td:nth-child(6) {
  width: 14%;
}

.creator-dashboard-revenues-table th:nth-child(5),
.creator-dashboard-revenues-table td:nth-child(5) {
  width: 10%;
}

.creator-dashboard-revenues-table th:nth-child(7),
.creator-dashboard-revenues-table td:nth-child(7) {
  width: 19%;
}

.creator-revenues-table th:nth-child(2),
.creator-revenues-table td:nth-child(2) {
  width: 18%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.creator-revenues-table th:nth-child(3),
.creator-revenues-table td:nth-child(3) {
  width: 16%;
}

.creator-revenues-table th:nth-child(4),
.creator-revenues-table td:nth-child(4),
.creator-revenues-table th:nth-child(6),
.creator-revenues-table td:nth-child(6) {
  width: 14%;
}

.creator-revenues-table th:nth-child(5),
.creator-revenues-table td:nth-child(5) {
  width: 10%;
}

.creator-revenues-table th:nth-child(7),
.creator-revenues-table td:nth-child(7) {
  width: 19%;
}

.creator-dashboard-revenues-table.has-custom-field,
.creator-revenues-table.has-custom-field {
  min-width: 1120px;
}

.creator-dashboard-revenues-table.has-custom-field th:nth-child(1),
.creator-dashboard-revenues-table.has-custom-field td:nth-child(1),
.creator-revenues-table.has-custom-field th:nth-child(1),
.creator-revenues-table.has-custom-field td:nth-child(1) {
  width: 9%;
}

.creator-dashboard-revenues-table.has-custom-field th:nth-child(2),
.creator-dashboard-revenues-table.has-custom-field td:nth-child(2),
.creator-revenues-table.has-custom-field th:nth-child(2),
.creator-revenues-table.has-custom-field td:nth-child(2) {
  width: 16%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.creator-dashboard-revenues-table.has-custom-field th:nth-child(3),
.creator-dashboard-revenues-table.has-custom-field td:nth-child(3),
.creator-dashboard-revenues-table.has-custom-field th:nth-child(4),
.creator-dashboard-revenues-table.has-custom-field td:nth-child(4),
.creator-revenues-table.has-custom-field th:nth-child(3),
.creator-revenues-table.has-custom-field td:nth-child(3),
.creator-revenues-table.has-custom-field th:nth-child(4),
.creator-revenues-table.has-custom-field td:nth-child(4) {
  width: 12%;
}

.creator-dashboard-revenues-table.has-custom-field th:nth-child(5),
.creator-dashboard-revenues-table.has-custom-field td:nth-child(5),
.creator-dashboard-revenues-table.has-custom-field th:nth-child(7),
.creator-dashboard-revenues-table.has-custom-field td:nth-child(7),
.creator-revenues-table.has-custom-field th:nth-child(5),
.creator-revenues-table.has-custom-field td:nth-child(5),
.creator-revenues-table.has-custom-field th:nth-child(7),
.creator-revenues-table.has-custom-field td:nth-child(7) {
  width: 12%;
}

.creator-dashboard-revenues-table th:nth-child(4),
.creator-dashboard-revenues-table td:nth-child(4),
.creator-dashboard-revenues-table th:nth-child(6),
.creator-dashboard-revenues-table td:nth-child(6),
.creator-revenues-table th:nth-child(4),
.creator-revenues-table td:nth-child(4),
.creator-revenues-table th:nth-child(6),
.creator-revenues-table td:nth-child(6),
.creator-dashboard-revenues-table.has-custom-field th:nth-child(5),
.creator-dashboard-revenues-table.has-custom-field td:nth-child(5),
.creator-dashboard-revenues-table.has-custom-field th:nth-child(7),
.creator-dashboard-revenues-table.has-custom-field td:nth-child(7),
.creator-revenues-table.has-custom-field th:nth-child(5),
.creator-revenues-table.has-custom-field td:nth-child(5),
.creator-revenues-table.has-custom-field th:nth-child(7),
.creator-revenues-table.has-custom-field td:nth-child(7) {
  white-space: nowrap;
}

.creator-dashboard-revenues-table.has-custom-field th:nth-child(6),
.creator-dashboard-revenues-table.has-custom-field td:nth-child(6),
.creator-revenues-table.has-custom-field th:nth-child(6),
.creator-revenues-table.has-custom-field td:nth-child(6) {
  width: 8%;
}

.creator-dashboard-revenues-table.has-custom-field th:nth-child(8),
.creator-dashboard-revenues-table.has-custom-field td:nth-child(8),
.creator-revenues-table.has-custom-field th:nth-child(8),
.creator-revenues-table.has-custom-field td:nth-child(8) {
  width: 19%;
}

.creator-dashboard-revenues-table th:last-child,
.creator-dashboard-revenues-table td:last-child,
.creator-revenues-table th:last-child,
.creator-revenues-table td:last-child,
.creator-expenses-table th:last-child,
.creator-expenses-table td:last-child {
  padding-right: 20px;
}

.creator-expenses-table {
  min-width: 980px;
}

.creator-expenses-table th:nth-child(2),
.creator-expenses-table td:nth-child(2) {
  width: 38%;
}

.creator-expenses-table th:nth-child(3),
.creator-expenses-table td:nth-child(3) {
  width: 20%;
}

.creator-expenses-table th:nth-child(4),
.creator-expenses-table td:nth-child(4) {
  width: 16%;
}

.creator-expenses-table th:nth-child(5),
.creator-expenses-table td:nth-child(5) {
  width: 17%;
}

.invoice-cell,
.status-cell {
  white-space: nowrap;
  vertical-align: middle;
}

.invoice-cell strong,
.invoice-cell span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.invoice-cell span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.invoice-cell-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 36px;
  vertical-align: middle;
}

.invoice-cell-actions strong,
.invoice-cell-actions .invoice-cell-name {
  min-width: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-cell-actions-compact {
  gap: 8px;
}

.invoice-cell-actions > div {
  display: grid;
  gap: 2px;
}

.status-cell {
  height: 100%;
  line-height: 1;
  vertical-align: middle;
}

.status-cell .revenue-status-button {
  flex: 0 0 auto;
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.withdrawal-choice-panel {
  width: 100%;
  margin-bottom: 18px;
}

.creator-withdrawal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manual-withdrawal-form {
  display: contents;
}

.withdrawal-choice-button {
  min-height: 72px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 14px;
  color: #000000;
  background: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.withdrawal-choice-button span {
  display: block;
}

.withdrawal-choice-button:not(:disabled):hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.withdrawal-choice-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.withdrawal-choice-button:disabled {
  color: #000000;
  background: #ffffff;
  opacity: 1;
  cursor: default;
  box-shadow: none;
}

.withdrawal-choice-button:disabled .withdrawal-choice-icon {
  opacity: 1;
}

.withdrawal-choice-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.creator-withdrawals-list {
  display: grid;
  gap: 12px;
}

.creator-withdrawals-table {
  min-width: 0;
  table-layout: fixed;
}

.creator-withdrawals-table th:nth-child(1),
.creator-withdrawals-table td:nth-child(1) {
  width: 12%;
}

.creator-withdrawals-table th:nth-child(2),
.creator-withdrawals-table td:nth-child(2),
.creator-withdrawals-table th:nth-child(3),
.creator-withdrawals-table td:nth-child(3) {
  width: 12%;
  white-space: nowrap;
}

.creator-withdrawals-table th:nth-child(4),
.creator-withdrawals-table td:nth-child(4) {
  width: 12%;
  white-space: nowrap;
}

.creator-withdrawals-table th:nth-child(5),
.creator-withdrawals-table td:nth-child(5) {
  width: 26%;
}

.creator-withdrawals-table th:nth-child(6),
.creator-withdrawals-table td:nth-child(6) {
  width: 16%;
}

.creator-withdrawals-table th:nth-child(7),
.creator-withdrawals-table td:nth-child(7) {
  width: 10%;
}

.creator-withdrawals-list-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 850;
}

.invoice-preview-page {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.invoice-preview-header {
  width: min(794px, 100%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.invoice-preview-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
}

.invoice-preview-header .helper-text {
  margin: 0 0 4px;
}

.invoice-preview-document {
  position: relative;
  width: min(794px, 100%);
  min-height: 1123px;
  padding: 66px 72px 88px;
  border: 1px solid #dce5ff;
  border-top: 9px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(7, 18, 57, 0.12);
  color: var(--navy);
  display: flex;
  flex-direction: column;
}

.invoice-preview-brand {
  width: max-content;
  margin-bottom: 30px;
  padding: 8px 12px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  color: var(--blue);
  background: #f6f8ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.invoice-preview-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
  justify-content: space-between;
  gap: 42px;
  align-items: start;
  margin-bottom: 48px;
}

.invoice-preview-identity h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0;
}

.invoice-preview-identity p,
.invoice-preview-supplier p,
.invoice-preview-client p {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.invoice-preview-supplier strong,
.invoice-preview-client strong {
  font-weight: 650;
}

.invoice-preview-client {
  text-align: right;
  padding: 18px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  background: #f8faff;
}

.invoice-preview-client h4 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.invoice-preview-supplier {
  max-width: 340px;
  padding-left: 16px;
  border-left: 4px solid var(--blue);
  margin-bottom: 48px;
}

.invoice-preview-section-title {
  margin: 0;
  padding: 9px 13px;
  color: #ffffff;
  background: var(--navy);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
  border-radius: 8px 8px 0 0;
}

.invoice-preview-lines {
  border: 1px solid #e4ebff;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.invoice-preview-lines + .invoice-preview-section-title {
  margin-top: 16px;
}

.invoice-preview-lines table {
  min-width: 0;
  table-layout: fixed;
  color: var(--navy);
  font-size: 12px;
}

.invoice-preview-lines td:first-child {
  width: auto;
}

.invoice-preview-lines td:first-child span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.invoice-preview-lines th,
.invoice-preview-lines td {
  padding: 11px 12px;
  border: 1px solid #e4ebff;
  color: var(--navy);
  background: #ffffff;
  font-size: 12px;
}

.invoice-preview-lines th {
  border-color: #e4ebff;
  color: var(--muted);
  background: #f6f8ff;
  font-weight: 850;
}

.invoice-preview-lines td:nth-child(n + 3),
.invoice-preview-lines th:nth-child(n + 3) {
  text-align: right;
}

.invoice-preview-lines th:nth-child(2),
.invoice-preview-lines td:nth-child(2) {
  width: 110px;
}

.invoice-preview-lines th:nth-child(3),
.invoice-preview-lines td:nth-child(3) {
  width: 132px;
  white-space: nowrap;
}

.invoice-preview-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 18px;
  align-items: start;
  margin-top: 28px;
}

.invoice-preview-summary-content {
  display: grid;
  gap: 14px;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(260px, 100%);
}

.invoice-preview-totals {
  width: 100%;
  margin-left: 0;
  padding: 10px 14px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  background: #f8faff;
  margin-top: 0;
  color: var(--navy);
}

.invoice-preview-totals span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  width: 100%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.invoice-preview-totals span + span {
  border-top: 1px solid #dce5ff;
}

.invoice-preview-totals strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.invoice-preview-legal {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  line-height: 1.45;
  text-align: justify;
  text-align-last: left;
}

.invoice-preview-legal span {
  display: block;
}

.invoice-preview-legal span + span {
  margin-top: 7px;
}

.invoice-preview-footer {
  position: absolute;
  right: 72px;
  bottom: 44px;
  left: 72px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.invoice-preview-page > .form-actions {
  width: min(794px, 100%);
}

.invoice-print-body {
  margin: 0;
  background: #eef3ff;
}

.invoice-print-page {
  padding: 24px 0;
}

.invoice-export-render {
  position: fixed;
  top: 0;
  left: 0;
  width: 794px;
  display: block;
  padding: 0;
  background: #ffffff;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

.invoice-export-render .invoice-preview-document {
  width: 794px;
  min-height: 1123px;
  margin: 0;
  box-sizing: border-box;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
}

.invoice-export-render .invoice-preview-document::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  background: var(--blue);
}

.invoice-export-render .invoice-preview-document + .invoice-preview-document {
  margin-top: 0;
}

.operation-report-export-render {
  position: fixed;
  top: 0;
  left: 0;
  width: 794px;
  display: block;
  padding: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

.operation-report-document {
  position: relative;
  width: 794px;
  min-height: 1123px;
  box-sizing: border-box;
  padding: 64px 58px 72px;
  border-top: 9px solid var(--blue);
  background: #ffffff;
  color: var(--navy);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.operation-report-header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.operation-report-brand {
  width: max-content;
  padding: 7px 12px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  color: var(--blue);
  background: #f6f8ff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-report-header h1 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.05;
}

.operation-report-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.operation-report-status {
  margin-bottom: 22px;
}

.operation-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.operation-report-summary article {
  display: grid;
  gap: 6px;
  min-height: 70px;
  padding: 13px 14px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  background: #f8faff;
  align-content: center;
}

.operation-report-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.operation-report-summary strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.operation-report-fees {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  background: #ffffff;
}

.operation-report-fees h3 {
  margin: 0;
  font-size: 16px;
}

.operation-report-fees p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.operation-report-fees strong {
  color: var(--navy);
  white-space: nowrap;
}

.operation-report-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  color: var(--navy);
  font-size: 12px;
}

.operation-report-table th,
.operation-report-table td {
  padding: 12px 10px;
  border-right: 1px solid #dce5ff;
  border-bottom: 1px solid #dce5ff;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.operation-report-table th:last-child,
.operation-report-table td:last-child {
  border-right: 0;
}

.operation-report-table tbody tr:last-child td {
  border-bottom: 0;
}

.operation-report-table th {
  color: var(--muted);
  background: #f6f8ff;
  font-size: 11px;
  font-weight: 850;
}

.operation-report-table strong {
  color: var(--navy);
  font-weight: 900;
}

.operation-report-table th:nth-child(1),
.operation-report-table td:nth-child(1) {
  width: 16%;
}

.operation-report-table th:nth-child(2),
.operation-report-table td:nth-child(2) {
  width: 13%;
}

.operation-report-table th:nth-child(3),
.operation-report-table td:nth-child(3) {
  width: 24%;
}

.operation-report-table th:nth-child(4),
.operation-report-table td:nth-child(4) {
  width: 22%;
}

.operation-report-table th:nth-child(5),
.operation-report-table td:nth-child(5) {
  width: 11%;
}

.operation-report-table th:nth-child(6),
.operation-report-table td:nth-child(6) {
  width: 14%;
}

.operation-report-document.has-custom-field .operation-report-table th:nth-child(3),
.operation-report-document.has-custom-field .operation-report-table td:nth-child(3) {
  width: 11%;
}

.operation-report-document.has-custom-field .operation-report-table th:nth-child(4),
.operation-report-document.has-custom-field .operation-report-table td:nth-child(4) {
  width: 18%;
}

.operation-report-document.has-custom-field .operation-report-table th:nth-child(5),
.operation-report-document.has-custom-field .operation-report-table td:nth-child(5) {
  width: 18%;
}

.operation-report-document.has-custom-field .operation-report-table th:nth-child(6),
.operation-report-document.has-custom-field .operation-report-table td:nth-child(6) {
  width: 10%;
}

.operation-report-document.has-custom-field .operation-report-table th:nth-child(7),
.operation-report-document.has-custom-field .operation-report-table td:nth-child(7) {
  width: 13%;
}

.operation-report-table .status-inline {
  gap: 7px;
}

.operation-report-table .revenue-status-button {
  width: 24px;
  height: 24px;
}

.operation-report-section-row td {
  color: var(--navy);
  background: #f6f8ff;
  font-weight: 900;
}

.operation-report-document footer {
  position: absolute;
  right: 58px;
  bottom: 38px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html,
  body {
    width: 794px;
    min-height: 1123px;
    margin: 0;
    background: #ffffff;
  }

  .invoice-print-page {
    display: block;
    padding: 0;
  }

  .invoice-print-page .invoice-preview-document {
    width: 794px;
    min-height: 1123px;
    margin: 0;
    box-shadow: none;
    break-after: page;
    page-break-after: always;
  }

  .invoice-print-page .invoice-preview-document:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}

.manual-withdrawal-page {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.manual-withdrawal-page-header,
.manual-withdrawal-page-card {
  width: min(980px, 100%);
}

.manual-withdrawal-page-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 30px;
  border: 1px solid #dce5ff;
  border-top: 8px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.manual-withdrawal-recipient-card,
.manual-withdrawal-entry-panel {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.manual-withdrawal-recipient-card {
  align-self: stretch;
  padding: 22px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  background: #f8faff;
  align-content: start;
}

.manual-withdrawal-recipient-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.manual-withdrawal-recipient-grid {
  display: grid;
  gap: 14px;
}

.manual-withdrawal-recipient-field {
  display: grid;
  gap: 6px;
}

.manual-withdrawal-recipient-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.manual-withdrawal-recipient-field strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.manual-withdrawal-balance-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  background: #f6f8ff;
}

.manual-withdrawal-balance-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.manual-withdrawal-balance-card strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.1;
}

.manual-withdrawal-balance-card small {
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
}

.manual-withdrawal-upload-block {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7, 20, 57, 0.32);
}

#withdrawalPaymentDateModal {
  left: 282px;
  width: calc(100% - 282px);
}

.manual-withdrawal-modal {
  width: min(980px, 100%);
  background: #ffffff;
  border-radius: 8px;
  padding: 36px 38px 34px;
  box-shadow: 0 28px 70px rgba(2, 13, 53, 0.24);
  display: grid;
  gap: 28px;
}

.organization-choice-modal {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 28px 70px rgba(2, 13, 53, 0.24);
  display: grid;
  gap: 18px;
}

.organization-choice-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.organization-choice-modal-header h3,
.organization-choice-modal p {
  margin: 0;
}

.organization-choice-modal-header h3 {
  color: var(--navy);
  font-size: 24px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: #ffffff;
}

.icon-button ion-icon {
  width: 22px;
  height: 22px;
}

.organization-choice-modal p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.withdrawal-date-modal {
  max-width: 430px;
  padding: 24px;
  gap: 18px;
}

.withdrawal-date-modal .organization-choice-modal-header {
  align-items: flex-start;
}

.withdrawal-date-modal .organization-choice-modal-header h3 {
  padding-top: 4px;
  font-size: 24px;
}

.withdrawal-date-modal .modal-back-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--navy);
  background: #ffffff;
  box-shadow: none;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.withdrawal-date-modal .modal-back-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.withdrawal-date-modal .modal-back-button ion-icon {
  width: 24px;
  height: 24px;
}

.withdrawal-date-modal .field {
  gap: 8px;
}

.withdrawal-date-modal input[type="date"] {
  min-height: 50px;
}

.withdrawal-date-modal .manual-withdrawal-modal-actions {
  gap: 10px;
  padding-top: 4px;
}

.withdrawal-date-modal .manual-withdrawal-modal-actions .secondary-button,
.withdrawal-date-modal .manual-withdrawal-modal-actions .primary-button {
  min-width: 104px;
  min-height: 48px;
  padding: 12px 18px;
}

.organization-choice-list {
  display: grid;
  gap: 10px;
}

.organization-choice-button {
  width: 100%;
  min-height: 68px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.organization-choice-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.organization-choice-button span,
.organization-choice-button strong {
  min-width: 0;
}

.organization-choice-button span {
  font-weight: 850;
}

.organization-choice-button strong {
  flex: 0 0 auto;
}

.manual-withdrawal-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.manual-withdrawal-modal-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
}

.modal-back-button {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: var(--navy);
}

.modal-back-button ion-icon {
  width: 34px;
  height: 34px;
}

.manual-withdrawal-balance {
  margin: 22px 0 4px;
  color: #000000;
  font-size: 22px;
  font-weight: 850;
}

.manual-upload-button {
  width: fit-content;
  min-width: 300px;
  min-height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #000000;
  background: #ffffff;
  font-size: 18px;
  font-weight: 850;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.manual-upload-button:hover,
.manual-upload-button:focus-visible {
  border-color: var(--blue);
  background: var(--blue-soft);
  outline: 0;
  transform: translateY(-1px);
}

.manual-upload-button ion-icon {
  width: 30px;
  height: 30px;
}

.manual-upload-file {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.manual-amount-field {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #dce5ff;
  border-radius: 8px;
  background: #f8faff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
}

.manual-amount-field > span:first-child {
  white-space: nowrap;
}

.manual-amount-input-wrap {
  position: relative;
  display: block;
}

.manual-amount-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(7, 20, 57, 0.12);
  border-radius: 8px;
  padding: 10px 74px 10px 12px;
  color: var(--ink);
  background: #ffffff;
  font-size: 18px;
  font-weight: 750;
}

.manual-amount-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  pointer-events: none;
}

.manual-withdrawal-tax-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}

.manual-withdrawal-tax-grid .field {
  margin: 0;
  grid-template-rows: 22px 58px;
  align-content: start;
}

.manual-withdrawal-tax-grid .field select,
.manual-total-ttc-field .manual-amount-input-wrap,
.manual-total-ttc-field input {
  min-height: 58px;
}

.manual-total-ttc-field {
  gap: 8px;
  grid-template-rows: 22px 58px;
  align-content: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.manual-total-ttc-field input {
  color: var(--ink);
  background: #f6f8ff;
}

.manual-withdrawal-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.manual-withdrawal-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.withdrawal-submit-button {
  min-width: 180px;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 14px 34px;
  color: #ffffff;
  background: var(--navy);
  font-size: 22px;
  font-weight: 850;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: white;
}

.table-inline-select {
  width: 100%;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
  outline: none;
}

.table-inline-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 88, 255, 0.11);
}

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

th + th,
td + td {
  border-left: 1px solid var(--line);
}

th {
  color: var(--muted);
  background: var(--panel-soft);
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.sub-row td {
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 13px;
}

.helper-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.talent-list-section {
  margin-bottom: 18px;
}

.channel-list-section {
  margin-bottom: 18px;
}

.operation-list-section {
  margin-bottom: 18px;
}

.operation-list-section h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.talent-list {
  display: grid;
  gap: 8px;
}

.channel-list {
  display: grid;
  gap: 8px;
}

.operation-list,
.operation-detail-lines {
  display: grid;
  gap: 8px;
}

.operation-list {
  position: relative;
  overflow: visible;
}

.operation-list-more {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.talent-list-header,
.talent-list-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.4fr) minmax(150px, 0.8fr) minmax(170px, 0.9fr);
  gap: 14px;
  align-items: center;
}

.operation-list-header,
.operation-list-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(230px, 1.35fr) minmax(150px, 0.8fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: center;
}

.operation-list-item {
  display: grid;
  grid-column: 1 / 4;
  grid-template-columns: minmax(130px, 0.7fr) minmax(230px, 1.35fr) minmax(150px, 0.8fr);
  gap: 14px;
  align-items: center;
}

.channel-list-header,
.channel-list-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  gap: 14px;
  align-items: center;
}

.talent-list-header {
  padding: 0 14px 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.channel-list-header {
  padding: 0 14px 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.operation-list-header,
.operation-detail-header {
  padding: 0 14px 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.talent-list-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.channel-list-item {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.operation-list-row,
.operation-detail-line {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.operation-list-row {
  position: relative;
  overflow: visible;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.operation-list-row.is-status-open {
  z-index: 40;
}

.operation-list-item {
  cursor: pointer;
}

.talent-list-item:hover,
.talent-list-item:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(36, 88, 255, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.channel-list-item:hover,
.channel-list-item:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(36, 88, 255, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.operation-list-row:hover,
.operation-list-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(36, 88, 255, 0.08);
  outline: 0;
  transform: translateY(-1px);
}

.talent-list-item span {
  color: var(--muted);
  font-size: 14px;
}

.channel-list-item span {
  color: var(--muted);
  font-size: 14px;
}

.operation-list-item span,
.operation-detail-line span {
  color: var(--muted);
  font-size: 14px;
}

.operation-status-control {
  position: relative;
  min-width: 260px;
  justify-self: start;
  align-self: stretch;
  display: flex;
  align-items: center;
  z-index: 1;
}

.operation-status-control.is-static {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 6px;
}

.operation-status-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.operation-status-button:hover,
.operation-status-button:focus-visible {
  background: #f3f6ff;
  color: var(--navy);
  outline: 0;
}

.operation-status-button ion-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.18s;
}

.operation-status-control.is-open .operation-status-button ion-icon {
  transform: rotate(180deg);
}

.operation-status-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  min-width: 330px;
  display: none;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(7, 18, 57, 0.14);
}

.operation-status-control.is-open .operation-status-menu {
  display: grid;
  gap: 2px;
}

.operation-status-menu button {
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
}

.operation-status-menu button:hover,
.operation-status-menu button:focus-visible {
  background: #f3f6ff;
  outline: 0;
}

.operation-status-menu .operation-status-inline {
  white-space: nowrap;
}

.talent-name {
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
}

.channel-name {
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
}

.operation-name {
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
}

.operation-balance,
.operation-detail-line strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}

.operation-detail-header,
.operation-detail-line {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(150px, 0.8fr) minmax(220px, 1.25fr) minmax(210px, 1.15fr) minmax(105px, 0.62fr) minmax(140px, 0.8fr);
  gap: 14px;
  align-items: center;
}

.operation-detail-header.has-custom-field,
.operation-detail-line.has-custom-field {
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.75fr) minmax(95px, 0.55fr) minmax(220px, 1.25fr) minmax(220px, 1.25fr) minmax(105px, 0.62fr) minmax(140px, 0.85fr);
}

.talent-balance {
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}

.talent-name-button {
  border: 0;
  padding: 0;
  color: var(--navy);
  background: transparent;
  font-weight: 850;
  text-align: left;
}

.talent-name-button:hover {
  color: var(--blue);
}

.talent-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.talent-detail-header h3 {
  margin-bottom: 6px;
}

.talent-detail-header p {
  margin: 0;
}

.talent-detail-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.channel-detail-heading h3 {
  margin-bottom: 6px;
}

.channel-detail-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.channel-detail-section {
  margin-top: 18px;
}

.channel-detail-section h3 {
  margin-bottom: 12px;
}

.channel-detail-form-grid {
  grid-template-columns: minmax(170px, 1fr) minmax(190px, 1fr) minmax(170px, 1fr) minmax(260px, 1.35fr) minmax(150px, 0.75fr);
  max-width: none;
  align-items: end;
}

.channel-detail-primary-share {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.75fr);
  gap: 14px;
  align-items: end;
  grid-column: 1 / span 2;
}

.field-label-with-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.field-label-with-action .inline-add-button {
  flex: 0 0 auto;
}

.talent-info-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.talent-info-form .field input:disabled,
.talent-info-form .field select:disabled {
  color: var(--navy);
  background: var(--panel-soft);
  opacity: 1;
  cursor: default;
}

.talent-info-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.talent-delete-rule {
  max-width: 720px;
  margin: 10px 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  text-align: right;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.operation-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--panel-soft);
}

.operation-summary-grid article {
  padding: 9px 13px;
}

.summary-amount-delta {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-amount-old {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.operation-fee-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.operation-fee-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
}

.operation-fee-row strong {
  color: #b42318;
  font-size: 15px;
  white-space: nowrap;
}

.operation-fee-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.4fr) auto;
  gap: 12px;
  align-items: end;
  width: 100%;
}

.operation-fee-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-grid strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.operation-detail-status-control {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  overflow: visible;
}

.operation-detail-status-control .operation-status-control {
  min-width: 0;
  align-self: auto;
}

.operation-detail-status-control .operation-status-button,
.operation-detail-status-control .operation-status-control.is-static {
  padding-left: 0;
}

.operation-detail-status-control .operation-status-menu {
  min-width: 300px;
  right: 0;
  left: auto;
}

.channel-detail-heading .operation-detail-status-control .operation-status-menu {
  right: auto;
  left: 0;
}

.talent-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}

.operation-lines-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 18px 0 12px;
}

.operation-lines-header h4 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.channel-detail-lines-header {
  margin: 18px 0 12px;
}

.channel-detail-lines-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
}

.inline-add-button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: white;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.inline-add-button ion-icon {
  width: 20px;
  height: 20px;
}

.inline-add-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.operation-lines {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.operation-submit-row {
  display: flex;
  justify-content: flex-end;
}

.revenue-submit-row {
  margin-top: 16px;
}

.channel-submit-row {
  margin-top: 4px;
}

.operation-line {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(170px, 0.8fr)) auto;
  gap: 12px;
  align-items: end;
}

.operation-line.has-custom-field {
  grid-template-columns: minmax(210px, 1.1fr) minmax(170px, 0.85fr) repeat(3, minmax(170px, 0.85fr)) auto;
}

.operation-line-secondary .field {
  gap: 0;
  font-size: 0;
}

.operation-line-secondary .field select,
.operation-line-secondary .field input {
  font-size: 13px;
}

.operation-line-secondary .input-unit {
  font-size: 13px;
}

.icon-danger-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--danger);
  background: white;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.icon-danger-button:hover {
  border-color: var(--danger);
  background: #fff4f2;
  transform: translateY(-1px);
}

.icon-danger-button ion-icon {
  width: 19px;
  height: 19px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.action-tile {
  padding: 19px;
  text-align: left;
  color: var(--ink);
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}

.action-tile:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.action-tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.action-tile span {
  color: var(--muted);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.talent-profile-form {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.section-heading h3 {
  margin: 0;
}

.billing-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.billing-form-grid .full-span {
  grid-column: 1 / -1;
}

.billing-form-grid .half-span {
  grid-column: span 2;
}

.checkbox-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.billing-toggle-field {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.billing-toggle-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-toggle {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #dce4f8;
  border: 1px solid #c9d5f1;
  position: relative;
  flex: 0 0 auto;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.billing-toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 1px;
  left: 1px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(7, 20, 57, 0.18);
  transition: transform 0.18s ease;
}

.billing-toggle-field input:checked + .billing-toggle {
  background: var(--blue);
  border-color: var(--blue);
}

.billing-toggle-field input:checked + .billing-toggle::after {
  transform: translateX(14px);
}

.billing-toggle-field input:focus-visible + .billing-toggle {
  outline: 3px solid rgba(52, 87, 244, 0.22);
  outline-offset: 2px;
}

.personalization-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.personalization-heading h3 {
  margin: 0;
}

.personalization-toggle-field {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
}

.notification-preferences {
  display: grid;
  gap: 10px;
}

.notification-toggle-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.notification-toggle-row strong,
.notification-toggle-row small {
  display: block;
}

.notification-toggle-row strong {
  color: var(--navy);
  font-size: 15px;
}

.notification-toggle-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.notification-preference-message {
  min-height: 18px;
}

.notification-preference-message:empty {
  display: none;
}

.personalization-panel.is-closed .personalization-heading {
  margin-bottom: 0;
}

.personalization-options {
  display: grid;
  gap: 12px;
}

.personalization-options .helper-text {
  margin: 0;
}

.personalization-options .primary-button {
  justify-self: start;
}

.compact-field {
  min-width: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.full-span {
  grid-column: 1 / -1;
}

.compact-panel {
  max-width: 640px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.settings-column {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.compact-settings-table table {
  min-width: 0;
  table-layout: fixed;
}

.compact-settings-table {
  margin-top: 18px;
}

.compact-settings-table th,
.compact-settings-table td {
  word-break: break-word;
}

.creator-settings-stack {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.creator-account-form,
.creator-billing-form {
  align-items: end;
}

.creator-settings-stack .panel {
  height: 100%;
}

.account-deletion-panel {
  align-content: start;
}

.account-deletion-balances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.account-deletion-balances span,
.account-deletion-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 800;
}

.account-deletion-balances strong,
.account-deletion-countdown strong {
  color: var(--navy);
  font-weight: 900;
}

.account-deletion-countdown {
  margin: 16px 0 18px;
}

.full-span-panel {
  grid-column: 1 / -1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.current-plan-summary {
  margin: -4px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.current-plan-summary strong {
  color: var(--navy);
}

.plan-usage-list {
  display: grid;
  gap: 18px;
}

.plan-usage-inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 22px;
}

.plan-usage-item {
  display: grid;
  gap: 10px;
}

.plan-usage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
}

.plan-usage-header strong {
  color: var(--navy);
  font-size: 18px;
}

.plan-usage-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.plan-usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.pricing-card {
  position: relative;
  min-height: 300px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 28px 24px;
  background: white;
  color: var(--ink);
}

.pricing-card.current {
  border-color: var(--navy);
  background: #090d12;
  color: white;
}

.pricing-name {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-card.current .pricing-name,
.pricing-card.current p {
  color: rgba(255, 255, 255, 0.62);
}

.pricing-card strong {
  display: block;
  margin-top: 28px;
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
}

.pricing-card p {
  margin: 12px 0 28px;
}

.pricing-card ul {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.pricing-card.current ul {
  color: rgba(255, 255, 255, 0.72);
}

.pricing-card li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pricing-card li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #5d5bd2;
  color: white;
  font-size: 12px;
  font-weight: 900;
  flex: 0 0 auto;
}

.current-plan-pill {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.primary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 16px;
  background: var(--blue);
  color: white;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}

.primary-link-button:hover {
  background: var(--blue-strong);
  transform: translateY(-1px);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-share-panel {
  margin: 4px 0 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.channel-share-panel h4 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 15px;
}

.channel-create-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(180px, 0.75fr) minmax(220px, 1fr) 180px;
  gap: 14px;
  align-items: end;
}

.channel-add-row {
  min-height: 42px;
  margin-top: 4px;
}

.channel-line-action {
  justify-self: end;
}

.channel-line-action .inline-add-button {
  width: 42px;
  height: 42px;
}

.channel-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.channel-share-lines {
  display: grid;
  gap: 4px;
}

.channel-share-line {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(180px, 0.75fr) minmax(220px, 1fr) 180px;
  gap: 14px;
  align-items: end;
}

.channel-detail-share-line {
  grid-template-columns: minmax(320px, 520px) minmax(160px, 220px) 42px;
  max-width: 880px;
}

.channel-detail-extra-shares {
  display: grid;
  gap: 14px;
  margin-top: 0;
  grid-column: 1 / span 2;
  width: 100%;
}

.channel-detail-extra-share-line {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.75fr);
  gap: 14px;
  align-items: end;
}

.channel-detail-extra-share-line .field {
  gap: 0;
  font-size: 0;
}

.channel-detail-extra-share-line .field select,
.channel-detail-extra-share-line .field input {
  height: 42px;
  font-size: 13px;
}

.channel-detail-extra-share-spacer {
  display: none;
}

.channel-detail-extra-share-line .channel-line-action {
  position: absolute;
  left: calc(100% + 12px);
  bottom: 0;
}

.channel-detail-share-line .channel-line-placeholder {
  min-height: 42px;
}

.channel-share-line .field {
  gap: 0;
  font-size: 0;
}

.channel-share-line .field select,
.channel-share-line .field input {
  height: 42px;
  font-size: 13px;
}

.channel-create-grid .field select,
.channel-create-grid .field input {
  height: 42px;
}

.channel-line-placeholder {
  min-height: 42px;
}

.channel-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.channel-share-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: white;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--navy);
  background: #ffffff;
  font-weight: 750;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.secondary-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-text-button ion-icon {
  font-size: 18px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.mini-form {
  display: inline-grid;
  grid-template-columns: 92px auto;
  gap: 6px;
  align-items: center;
  margin: 2px;
}

.mini-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--ink);
  background: white;
}

.small-button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 10px;
  margin: 2px;
  color: var(--navy);
  background: white;
  font-weight: 750;
}

.small-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.danger-button {
  border-color: rgba(180, 35, 24, 0.22);
  color: var(--danger);
}

.danger-button:hover {
  border-color: var(--danger);
  background: #fff4f2;
}

.danger-button:disabled,
.danger-button:disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(180, 35, 24, 0.22);
  background: white;
}

.status-pill,
.muted-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill {
  color: var(--success);
  background: rgba(20, 166, 121, 0.1);
}

.revenue-status-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: transparent;
  vertical-align: middle;
}

.withdrawals-table-wrap {
  border-radius: 8px;
  overflow: visible;
}

.withdrawals-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
}

.withdrawals-table thead th:first-child {
  border-top-left-radius: 8px;
}

.withdrawals-table thead th:last-child {
  border-top-right-radius: 8px;
}

.withdrawals-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.withdrawals-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.withdrawal-status-control {
  min-width: 0;
  align-self: center;
}

.withdrawal-status-control .operation-status-button,
.withdrawal-status-control.is-static {
  padding: 4px 6px;
  min-height: 36px;
}

.withdrawal-status-menu {
  min-width: 230px;
}

.withdrawal-status-control small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  opacity: 0.78;
}

.invoice-download-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.invoice-download-button:hover {
  border-color: var(--blue);
  background: #1f4ee8;
  box-shadow: 0 8px 18px rgba(36, 88, 255, 0.18);
  transform: translateY(-1px);
}

.invoice-download-button ion-icon {
  width: 19px;
  height: 19px;
}

.creator-withdrawals-table .creator-invoice-icon-link {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.creator-withdrawals-table .creator-invoice-icon-link:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.creator-withdrawals-table .creator-invoice-icon-link img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.withdrawals-table .manager-withdrawal-invoice-icon-link {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.withdrawals-table .manager-withdrawal-invoice-icon-link:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.withdrawals-table .manager-withdrawal-invoice-icon-link img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.withdrawal-payment-date-button {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-weight: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.18s, text-decoration-color 0.18s;
}

.withdrawal-payment-date-button:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.revenue-status-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.operation-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  white-space: nowrap;
}

.operation-status-icon {
  width: 26px;
  height: 26px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.muted-pill {
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

@media (min-width: 901px) and (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 14px;
  }

  .sidebar-logo {
    width: 164px;
  }

  .nav-list button,
  .sidebar-action-button,
  .logout-button {
    padding: 10px 11px;
    font-size: 14px;
  }

  .workspace {
    padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-grid,
  .three-metrics,
  .pricing-grid,
  .settings-grid,
  .creator-settings-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-form-grid,
  .talent-info-form,
  .detail-grid,
  .operation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 17px;
  }
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    background:
      linear-gradient(180deg, rgba(2, 13, 53, 0.05) 0, rgba(246, 248, 255, 0) 260px),
      #f6f8ff;
  }

  .login-view {
    min-height: 100vh;
    min-height: 100dvh;
    place-items: start stretch;
    padding: max(22px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
  }

  .login-panel {
    width: min(100%, 440px);
    max-width: calc(100vw - 44px);
    justify-self: center;
    align-self: start;
    margin-top: clamp(12px, 7vh, 54px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .brand-block {
    margin-bottom: 28px;
  }

  .login-logo {
    width: min(286px, 78vw);
  }

  .login-form {
    gap: 18px;
    min-width: 0;
  }

  .login-form label,
  .field {
    font-size: 15px;
  }

  .login-form input,
  .field input,
  .field select,
  .field textarea {
    max-width: 100%;
    min-height: 54px;
    font-size: 16px;
  }

  #loginForm button[type="submit"],
  .login-form button,
  .primary-button,
  .social-button,
  .pwa-install-button {
    min-height: 56px;
    font-size: 17px;
  }

  .social-login {
    margin-top: 26px;
  }

  .pwa-install-button:not(.is-hidden) {
    display: block;
  }

  .login-view > .pwa-install-button {
    width: min(440px, calc(100vw - 44px));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .mobile-app-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 82;
    height: calc(64px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: 48px minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    color: #ffffff;
    background: linear-gradient(180deg, #020d35 0%, #06174a 100%);
    box-shadow: 0 12px 28px rgba(2, 13, 53, 0.18);
  }

  .mobile-menu-button {
    position: relative;
    z-index: 84;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  .mobile-app-logo {
    width: 132px;
    max-width: 36vw;
    height: auto;
    display: block;
  }

  .mobile-app-bar span {
    min-width: 0;
    overflow: hidden;
    color: #aebbf2;
    font-size: 12px;
    font-weight: 800;
    justify-self: end;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.18s, opacity 0.18s;
  }

  .app-shell.is-mobile-menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .app-shell.is-mobile-menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .app-shell.is-mobile-menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(4, 12, 32, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .app-shell.is-mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 70;
    width: min(330px, 88vw);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: calc(84px + env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(-104%);
    transition: transform 0.24s ease;
    box-shadow: 22px 0 44px rgba(2, 13, 53, 0.22);
  }

  .app-shell.is-mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .workspace {
    padding: calc(86px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-logo {
    width: 178px;
  }

  .nav-list {
    gap: 8px;
  }

  .nav-list button,
  .sidebar-action-button,
  .logout-button {
    min-height: 54px;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 16px;
  }

  .nav-list button,
  .sidebar-action-button {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
  }

  .nav-icon {
    width: 30px;
    height: 30px;
  }

  .nav-icon ion-icon {
    width: 19px;
    height: 19px;
  }

  .sidebar-actions {
    gap: 10px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }

  .topbar h2 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.02;
  }

  .page-title-with-back {
    width: 100%;
    gap: 12px;
  }

  .title-back-button {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
  }

  .topbar-actions {
    min-height: 0;
    width: 100%;
    justify-content: stretch;
  }

  .topbar-actions-inner,
  .operation-date-range {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .operation-date-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .operation-actions-bar {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .operation-actions-bar .operation-date-range {
    width: 100%;
  }

  .topbar-actions-inner .secondary-button,
  .topbar-actions-inner .primary-button,
  .operation-date-filter,
  .operation-date-filter input {
    width: 100%;
  }

  .operation-date-filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: stretch;
    min-width: 0;
  }

  .operation-date-filter input {
    min-width: 0;
    height: 50px;
    padding: 0 9px;
    font-size: clamp(13px, 3.7vw, 15px);
  }

  #withdrawalPaymentDateModal {
    left: 0;
    width: 100%;
  }

  .metric,
  .panel,
  .action-tile,
  .talent-list-item,
  .channel-list-item,
  .operation-list-row,
  .operation-detail-line,
  .creator-document-card,
  .manager-document-card {
    border-color: rgba(201, 214, 244, 0.88);
    box-shadow: 0 10px 30px rgba(12, 28, 84, 0.06);
  }

  .panel {
    margin-bottom: 14px;
    padding: 16px;
  }

  .panel h3,
  .operation-list-section h3 {
    font-size: 19px;
  }

  .metrics-grid,
  .three-metrics {
    gap: 10px;
    margin-bottom: 14px;
  }

  .metric {
    padding: 15px;
  }

  .metric span {
    font-size: 12px;
  }

  .metric strong {
    font-size: clamp(22px, 7vw, 30px);
  }

  .table-wrap {
    margin-inline: -2px;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .table-wrap table {
    min-width: 720px;
  }

  .withdrawals-table-wrap,
  .creator-withdrawals-list .table-wrap {
    border: 0;
    overflow: visible;
  }

  .withdrawals-table,
  .creator-withdrawals-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }

  .withdrawals-table thead,
  .creator-withdrawals-table thead {
    display: none;
  }

  .withdrawals-table tbody,
  .creator-withdrawals-table tbody {
    display: grid;
    gap: 12px;
  }

  .withdrawals-table tr,
  .creator-withdrawals-table tr {
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(201, 214, 244, 0.88);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(12, 28, 84, 0.06);
  }

  .withdrawals-table tr.empty-table-row,
  .creator-withdrawals-table tr.empty-table-row {
    padding: 16px;
  }

  .withdrawals-table td,
  .creator-withdrawals-table td {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: right;
    font-size: 14px;
    font-weight: 800;
  }

  .withdrawals-table td:last-child,
  .creator-withdrawals-table td:last-child {
    border-bottom: 0;
  }

  .withdrawals-table td::before,
  .creator-withdrawals-table td::before {
    content: attr(data-label);
    flex: 0 0 min(46%, 170px);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-align: left;
  }

  .withdrawals-table .empty-table-row td,
  .creator-withdrawals-table .empty-table-row td {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    color: var(--muted);
    text-align: left;
  }

  .withdrawals-table .empty-table-row td::before,
  .creator-withdrawals-table .empty-table-row td::before {
    content: none;
  }

  .withdrawals-table .invoice-cell,
  .creator-withdrawals-table .invoice-cell,
  .withdrawals-table .status-cell,
  .creator-withdrawals-table .status-cell {
    align-items: flex-start;
  }

  .withdrawals-table .invoice-cell-actions,
  .creator-withdrawals-table .invoice-cell-actions,
  .withdrawals-table .status-inline,
  .creator-withdrawals-table .status-inline {
    min-width: 0;
    justify-content: flex-end;
    text-align: right;
  }

  .withdrawals-table .withdrawal-status-control {
    min-width: 0;
    width: min(190px, 100%);
    justify-content: flex-end;
  }

  .withdrawals-table .withdrawal-status-button {
    width: 100%;
    justify-content: space-between;
  }

  .table-wrap.mobile-card-wrap {
    border: 0;
    overflow: visible;
  }

  .table-wrap.mobile-card-wrap table.mobile-card-table {
    width: 100%;
    min-width: 0;
  }

  .mobile-card-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }

  .mobile-card-table thead {
    display: none;
  }

  .mobile-card-table tbody {
    display: grid;
    gap: 12px;
  }

  .mobile-card-table tr {
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(201, 214, 244, 0.88);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 10px 30px rgba(12, 28, 84, 0.06);
  }

  .mobile-card-table tr.empty-table-row {
    display: block;
    padding: 16px;
  }

  .mobile-card-table td {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: right;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
  }

  .mobile-card-table td:last-child {
    border-bottom: 0;
  }

  .mobile-card-table td::before {
    content: attr(data-label);
    flex: 0 0 min(46%, 170px);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-align: left;
    overflow-wrap: normal;
  }

  .mobile-card-table .empty-table-row td {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    color: var(--muted);
    text-align: left;
    white-space: normal;
  }

  .mobile-card-table .empty-table-row td::before {
    content: none;
  }

  .mobile-card-table .invoice-cell,
  .mobile-card-table .status-cell {
    align-items: flex-start;
  }

  .mobile-card-table .invoice-cell-actions,
  .mobile-card-table .status-inline,
  .mobile-card-table .expense-document-actions,
  .mobile-card-table .expense-edit-actions {
    min-width: 0;
    justify-content: flex-end;
    text-align: right;
  }

  .mobile-card-table .table-inline-select,
  .mobile-card-table input,
  .mobile-card-table select {
    min-width: 0;
    max-width: 100%;
  }

  .creator-dashboard-revenues-table,
  .creator-revenues-table,
  .creator-dashboard-revenues-table.has-custom-field,
  .creator-revenues-table.has-custom-field {
    min-width: 880px;
  }

  .metrics-grid,
  .three-metrics,
  .actions-grid,
  .settings-grid,
  .creator-settings-stack,
  .pricing-grid,
  .plan-usage-inline,
  .billing-form-grid,
  .channel-share-grid,
  .detail-grid,
  .expense-create-panel,
	  .talent-info-form,
	  .talent-list-header,
	  .talent-list-item,
	  .channel-list-header,
	  .channel-list-item,
	  .operation-list-header,
	  .operation-list-row,
	  .operation-list-item,
	  .operation-detail-header,
	  .operation-detail-line,
	  .operation-line,
	  .recurring-payroll-card,
	  .recurring-payroll-run-form,
	  .creator-withdrawal-actions,
	  .manual-withdrawal-form,
	  .invoice-preview-summary,
	  .invoice-parties-grid,
    .admin-form {
      grid-template-columns: 1fr;
    }

	  .invoice-preview-summary-spacer {
	    display: none;
	  }

	  .invoice-preview-summary-content {
	    grid-column: 1;
	    grid-row: 1;
	  }

	  .invoice-preview-legal {
	    grid-column: 1;
	    grid-row: 2;
	  }

	  .talent-list-header,
	  .channel-list-header,
	  .operation-list-header,
	  .operation-detail-header {
	    display: none;
	  }

  .talent-list,
  .channel-list,
  .operation-list,
  .operation-detail-lines {
    gap: 10px;
  }

  .talent-list-item,
  .channel-list-item,
  .operation-list-row,
  .operation-detail-line {
    padding: 15px;
  }

  .talent-list-item,
  .channel-list-item,
  .operation-list-item,
  .operation-detail-line {
    gap: 10px;
  }

  .operation-list-row {
    gap: 12px;
  }

  .operation-list-item {
    grid-column: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .talent-name,
  .channel-name,
  .operation-name {
    font-size: 16px;
  }

  .operation-status-control {
    min-width: 0;
    width: 100%;
  }

  .operation-status-button {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
  }

  .operation-status-menu {
    min-width: min(330px, calc(100vw - 44px));
  }

  .operation-status-control {
    justify-self: stretch;
  }

  .operation-status-menu {
    left: auto;
    right: 0;
  }

  .withdrawal-choice-button {
    min-height: 74px;
    padding: 18px 24px;
    gap: 18px;
    font-size: 17px;
  }

  .document-create-panel,
  .expense-create-panel,
  .operation-line,
  .operation-line.has-custom-field,
  .operation-fee-form,
  .channel-detail-primary-share {
    grid-template-columns: 1fr;
  }

  .operation-lines,
  .operation-line,
  .operation-line .field,
  .operation-line .input-with-unit {
    min-width: 0;
    width: 100%;
  }

  .operation-line .field select,
  .operation-line .field input {
    max-width: 100%;
  }

  .operation-line .icon-danger-button {
    width: 100%;
    min-height: 50px;
  }

  .document-create-panel {
    padding: 12px;
  }

  .document-create-actions,
  .expense-create-actions,
  .operation-submit-row,
  .form-actions,
  .talent-info-actions {
    justify-content: stretch;
  }

  .document-create-actions,
  .expense-create-actions {
    grid-template-columns: repeat(2, 1fr);
    justify-items: stretch;
    gap: 10px;
  }

  .document-create-actions::before,
  .expense-create-actions::before,
  .expense-create-tool::before {
    display: none;
  }

  .document-create-panel .icon-action-button,
  .expense-create-panel .icon-action-button,
  .form-actions button,
  .talent-info-actions button,
  .operation-submit-row button,
  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 50px;
  }

  .creator-documents-grid,
  .manager-documents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .creator-document-card,
  .manager-document-card {
    padding: 12px;
  }

  .creator-document-card-footer h3,
  .manager-document-card-body h4 {
    font-size: 14px;
  }

  .invoice-preview-page {
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .invoice-preview-header {
    width: 100%;
    align-items: flex-start;
  }

  .invoice-preview-header h3 {
    font-size: 24px;
  }

  .invoice-preview-document {
    width: 794px;
    max-width: none;
    transform: scale(min(1, calc((100vw - 28px) / 794)));
    transform-origin: top left;
  }

  .withdrawal-choice-icon {
    width: 30px;
    height: 30px;
  }

  .manual-withdrawal-modal {
    padding: 24px 20px;
    gap: 22px;
  }

  .manual-withdrawal-page-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .manual-withdrawal-tax-grid {
    grid-template-columns: 1fr;
  }

  .manual-withdrawal-modal-header h3 {
    font-size: 24px;
  }

  .modal-back-button {
    width: 48px;
    height: 48px;
  }

  .manual-withdrawal-balance,
  .manual-amount-field,
  .manual-upload-button,
  .withdrawal-submit-button {
    font-size: 18px;
  }

  .manual-upload-button {
    width: 100%;
    min-width: 0;
  }

  .manual-withdrawal-balance-card strong {
    font-size: 24px;
  }

  .manual-withdrawal-page-actions {
    display: grid;
  }

  .manual-withdrawal-modal-actions {
    justify-content: stretch;
  }

  .withdrawal-submit-button {
    width: 100%;
  }

  .channel-share-row {
    grid-template-columns: 1fr;
  }

  .channel-share-line {
    grid-template-columns: 1fr;
  }

  .channel-detail-primary-share,
  .channel-detail-extra-share-line {
    grid-template-columns: 1fr;
  }

  .channel-detail-primary-share,
  .channel-detail-extra-shares {
    grid-column: auto;
  }

  .channel-detail-extra-share-line .channel-line-action {
    position: static;
  }

  .channel-detail-extra-share-spacer {
    display: none;
  }

  .channel-create-grid {
    grid-template-columns: 1fr;
  }

  .channel-add-row {
    grid-template-columns: 1fr;
  }

  .channel-line-action {
    justify-self: start;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-header,
  .panel-header-actions,
  .topbar-actions,
  .topbar-actions-inner {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .mobile-app-bar {
    grid-template-columns: 50px 150px minmax(0, 1fr);
    padding-inline: max(22px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-right));
  }

  .mobile-app-logo {
    max-width: none;
  }

  .workspace {
    padding-inline: max(28px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-right));
  }

  .sidebar {
    width: min(380px, 64vw);
  }

  .metrics-grid,
  .three-metrics,
  .actions-grid,
  .pricing-grid,
  .detail-grid,
  .operation-summary-grid,
  .billing-form-grid,
  .talent-info-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-grid,
  .creator-settings-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 18px;
  }

  .topbar-actions-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-actions-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .operation-date-range {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .creator-documents-grid,
  .manager-documents-grid {
    grid-template-columns: repeat(3, minmax(0, 150px));
  }

  .document-create-panel {
    grid-template-columns: minmax(260px, 1fr) 112px;
  }

  .document-create-actions {
    grid-template-columns: repeat(2, 50px);
    justify-content: end;
  }
}

@media (max-width: 340px) {
  .operation-date-range {
    grid-template-columns: 1fr;
  }

  .operation-date-filter input {
    font-size: 15px;
  }
}

.invoice-export-render .invoice-preview-summary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.invoice-export-render .invoice-preview-summary-content {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(260px, 100%);
}

.invoice-export-render .invoice-preview-legal {
  grid-column: 1;
  grid-row: 2;
}

.theme-settings-panel {
  display: grid;
  gap: 10px;
}

.theme-settings-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.theme-settings-row span {
  display: grid;
  gap: 4px;
}

.theme-settings-row h3 {
  margin: 0;
}

.theme-settings-row small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.theme-preference-message {
  min-height: 18px;
  margin: 0;
}

.theme-preference-message:empty {
  display: none;
}

.language-settings-panel {
  display: grid;
  gap: 14px;
}

.language-settings-panel h3 {
  margin-bottom: 0;
}

.language-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.language-choice-option {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.language-choice-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.language-choice-option.is-selected {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-soft);
}

.language-choice-option:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(36, 88, 255, 0.11);
}

.language-preference-message {
  min-height: 18px;
  margin: 0;
}

.language-preference-message:empty {
  display: none;
}

.recurring-payroll-form {
  align-items: end;
}

.recurring-payroll-list {
  display: grid;
  gap: 12px;
}

.recurring-payroll-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.1fr) minmax(420px, 1.4fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(16, 40, 120, 0.035);
}

.recurring-payroll-main,
.recurring-payroll-meta {
  display: grid;
  gap: 5px;
}

.recurring-payroll-main strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
}

.recurring-payroll-main span,
.recurring-payroll-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.recurring-payroll-run-form {
  display: grid;
  grid-template-columns: minmax(88px, 0.7fr) minmax(142px, 1fr) minmax(130px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.recurring-payroll-run-form .primary-button {
  min-height: 45px;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07101e;
  --panel: #101a2b;
  --panel-soft: #0b1525;
  --ink: #e8eefc;
  --muted: #9cabc8;
  --line: #22304a;
  --line-strong: #31415f;
  --blue: #6f91ff;
  --blue-strong: #8aa6ff;
  --blue-soft: rgba(111, 145, 255, 0.14);
  --navy: #eef4ff;
  --navy-2: #dbe6ff;
  --success: #3fc89f;
  --warning: #f1c268;
  --warning-bg: #2b2414;
  --danger: #ff8a7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  background:
    radial-gradient(circle at 12% 0%, rgba(80, 118, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #08111f 0%, var(--bg) 100%);
}

body[data-theme="dark"] .login-panel,
body[data-theme="dark"] .metric,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .action-tile,
body[data-theme="dark"] .segmented-control,
body[data-theme="dark"] .expense-create-panel,
body[data-theme="dark"] .document-create-panel,
body[data-theme="dark"] .expense-action-dropdown,
body[data-theme="dark"] .manual-withdrawal-modal,
body[data-theme="dark"] .manual-withdrawal-page-card,
body[data-theme="dark"] .manual-withdrawal-balance-card,
body[data-theme="dark"] .withdrawal-payment-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #050b18 0%, #081328 100%);
  border-right: 1px solid rgba(111, 145, 255, 0.16);
}

body[data-theme="dark"] .sidebar-brand {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .sidebar-brand span,
body[data-theme="dark"] .nav-list button,
body[data-theme="dark"] .sidebar-action-button,
body[data-theme="dark"] .logout-button {
  color: #aebce0;
}

body[data-theme="dark"] .nav-icon {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .nav-list button.active {
  background: rgba(111, 145, 255, 0.22);
  border-color: rgba(111, 145, 255, 0.48);
  color: #ffffff;
}

body[data-theme="dark"] .login-form input,
body[data-theme="dark"] .field input,
body[data-theme="dark"] .field select,
body[data-theme="dark"] .field textarea,
body[data-theme="dark"] .operation-date-filter input,
body[data-theme="dark"] .document-create-panel input[name="title"],
body[data-theme="dark"] .expense-create-row input,
body[data-theme="dark"] .creator-document-create-row input,
body[data-theme="dark"] .operation-line input,
body[data-theme="dark"] .operation-line select,
body[data-theme="dark"] .manual-withdrawal-modal input,
body[data-theme="dark"] .manual-withdrawal-modal select,
body[data-theme="dark"] .table-inline-select {
  color: var(--ink);
  background: #0b1424;
  border-color: var(--line-strong);
}

body[data-theme="dark"] .table-inline-select option {
  color: var(--ink);
  background: #0b1424;
}

body[data-theme="dark"] .login-form input[readonly],
body[data-theme="dark"] input:disabled,
body[data-theme="dark"] select:disabled,
body[data-theme="dark"] textarea:disabled {
  color: #b8c5df;
  background: #10192a;
  opacity: 1;
}

body[data-theme="dark"] .secondary-button,
body[data-theme="dark"] .small-button,
body[data-theme="dark"] .title-back-button,
body[data-theme="dark"] .icon-action-button,
body[data-theme="dark"] .inline-add-button,
body[data-theme="dark"] .login-form .login-secondary-button,
body[data-theme="dark"] .social-button,
body[data-theme="dark"] .withdrawal-choice-button {
  color: var(--ink);
  background: #111d31;
  border-color: var(--line-strong);
}

body[data-theme="dark"] .secondary-button:hover,
body[data-theme="dark"] .small-button:hover,
body[data-theme="dark"] .title-back-button:hover,
body[data-theme="dark"] .icon-action-button:hover,
body[data-theme="dark"] .inline-add-button:hover,
body[data-theme="dark"] .login-form .login-secondary-button:hover,
body[data-theme="dark"] .social-button:hover,
body[data-theme="dark"] .withdrawal-choice-button:not(:disabled):hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

body[data-theme="dark"] .primary-button,
body[data-theme="dark"] .login-form button:not(.login-secondary-button) {
  color: #ffffff;
  background: #416cff;
}

body[data-theme="dark"] .primary-button:hover,
body[data-theme="dark"] .login-form button:not(.login-secondary-button):hover {
  background: #5f84ff;
}

body[data-theme="dark"] .table-wrap,
body[data-theme="dark"] table,
body[data-theme="dark"] .expenses-table,
body[data-theme="dark"] .operation-list-section,
body[data-theme="dark"] .talent-list-section,
body[data-theme="dark"] .channel-list-section {
  border-color: var(--line);
}

body[data-theme="dark"] th {
  color: #b7c4df;
  background: #0c1728;
}

body[data-theme="dark"] td,
body[data-theme="dark"] .expense-create-row td,
body[data-theme="dark"] .creator-document-create-row td {
  color: var(--ink);
  background: #101a2b;
  border-color: var(--line);
}

body[data-theme="dark"] tr:hover td,
body[data-theme="dark"] .operation-list-item:hover,
body[data-theme="dark"] .talent-list-item:hover,
body[data-theme="dark"] .channel-list-item:hover {
  background: #121f35;
}

body[data-theme="dark"] .talent-list-header,
body[data-theme="dark"] .channel-list-header,
body[data-theme="dark"] .operation-list-header,
body[data-theme="dark"] .operation-detail-header,
body[data-theme="dark"] .operation-detail-line,
body[data-theme="dark"] .operation-list-item,
body[data-theme="dark"] .talent-list-item,
body[data-theme="dark"] .channel-list-item,
body[data-theme="dark"] .creator-document-card,
body[data-theme="dark"] .manager-document-card,
body[data-theme="dark"] .connected-account-row,
body[data-theme="dark"] .language-choice-option,
body[data-theme="dark"] .recurring-payroll-card,
body[data-theme="dark"] .plan-usage-item,
body[data-theme="dark"] .pricing-card,
body[data-theme="dark"] .notice,
body[data-theme="dark"] .payment-notice {
  background: var(--panel-soft);
  border-color: var(--line);
}

body[data-theme="dark"] .metric strong,
body[data-theme="dark"] .theme-settings-row h3,
body[data-theme="dark"] .connected-account-copy strong,
body[data-theme="dark"] .creator-document-card-footer h3,
body[data-theme="dark"] .manager-document-card-body h4,
body[data-theme="dark"] .invoice-cell-actions strong,
body[data-theme="dark"] .invoice-cell-actions .invoice-cell-name,
body[data-theme="dark"] .creator-withdrawals-list-header h3 {
  color: var(--ink);
}

body[data-theme="dark"] .info-tooltip {
  color: var(--blue);
  background: #101a2b;
  border-color: var(--line-strong);
}

body[data-theme="dark"] .info-tooltip::after,
body[data-theme="dark"] .expense-action-dropdown {
  color: var(--ink);
  background: #111d31;
  border-color: var(--line);
}

body[data-theme="dark"] .expense-action-dropdown button,
body[data-theme="dark"] .expense-action-dropdown a {
  color: var(--ink);
}

body[data-theme="dark"] .muted-pill,
body[data-theme="dark"] .status-pill,
body[data-theme="dark"] .billing-toggle {
  background: #0b1424;
  border-color: var(--line);
}

body[data-theme="dark"] .billing-toggle-field input:checked + .billing-toggle {
  background: var(--blue);
}

body[data-theme="dark"] .plan-usage-bar {
  background: #07101e;
}

body[data-theme="dark"] .manual-upload-button,
body[data-theme="dark"] .withdrawal-submit-button {
  box-shadow: none;
}

body[data-theme="dark"] .invoice-preview-document,
body[data-theme="dark"] .operation-report-document,
body[data-theme="dark"] .invoice-export-render,
body[data-theme="dark"] .operation-report-export-render {
  --navy: #071439;
  --muted: #66708f;
  --line: #e2e8f7;
  --line-strong: #c9d6f4;
  --blue: #2458ff;
  --blue-soft: #edf3ff;
  color-scheme: light;
}

body[data-theme="dark"] .invoice-preview-document,
body[data-theme="dark"] .operation-report-document {
  background: #ffffff;
  color: #071439;
  box-shadow: 0 18px 45px rgba(7, 18, 57, 0.12);
}

body[data-theme="dark"] .invoice-preview-document th,
body[data-theme="dark"] .invoice-preview-document td,
body[data-theme="dark"] .operation-report-document th,
body[data-theme="dark"] .operation-report-document td {
  color: #071439;
  background: #ffffff;
  border-color: #dce5ff;
}

body[data-theme="dark"] .invoice-preview-document th,
body[data-theme="dark"] .operation-report-document th,
body[data-theme="dark"] .operation-report-section-row td {
  color: #66708f;
  background: #f6f8ff;
}

body[data-theme="dark"] .invoice-preview-client,
body[data-theme="dark"] .invoice-preview-totals,
body[data-theme="dark"] .operation-report-summary article {
  background: #f8faff;
  border-color: #dce5ff;
}

body[data-theme="dark"] .invoice-preview-brand,
body[data-theme="dark"] .operation-report-brand {
  background: #f6f8ff;
  border-color: #dce5ff;
}
