: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;
}

body.is-booting {
  overflow: hidden;
}

body.is-booting .boot-loader {
  opacity: 1;
  background: var(--bg);
  pointer-events: auto;
}

body.is-booting .boot-loader:not(.is-visible) span {
  opacity: 0;
}

body.is-app-visible .boot-loader {
  left: 282px;
  width: calc(100% - 282px);
}

.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::after,
.info-tooltip:focus-within::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;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: var(--panel-soft);
  opacity: 1;
  cursor: default;
}

.field.is-billing-country-disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.field.is-billing-country-disabled input,
.field.is-billing-country-disabled select,
.field.is-billing-country-disabled textarea {
  pointer-events: none;
  cursor: not-allowed;
  background: var(--panel-soft);
}

.field.rcs-autocomplete-field {
  position: relative;
}

.rcs-autocomplete-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(13, 24, 65, 0.18);
}

.rcs-autocomplete-menu[hidden] {
  display: none;
}

.rcs-autocomplete-option {
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--panel);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  cursor: pointer;
}

.rcs-autocomplete-option + .rcs-autocomplete-option {
  border-top: 1px solid var(--line);
}

.rcs-autocomplete-option:hover,
.rcs-autocomplete-option.is-active {
  color: var(--blue);
  background: var(--panel-soft);
}

.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;
}

.primary-button.invitation-sent-button,
.secondary-button.invitation-sent-button,
.primary-button.invitation-sent-button:hover,
.secondary-button.invitation-sent-button:hover {
  border-color: var(--success);
  background: var(--success);
  color: #ffffff;
  cursor: default;
  opacity: 1;
  transform: none;
}

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

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

.add-talent-message:empty {
  display: none;
}

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

.forgot-password-link {
  justify-self: end;
  margin-top: -6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.forgot-password-link:hover,
.forgot-password-link:focus-visible {
  color: var(--blue-strong);
  text-decoration: underline;
}

.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: 100%;
  min-height: 50px;
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--blue);
  background: #ffffff;
  font-weight: 800;
}

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

.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;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar.is-title-hidden {
  display: none;
}

.topbar > div:first-child {
  min-width: max-content;
}

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

.topbar h1,
.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 {
  margin-left: auto;
  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;
}

.talent-actions-bar {
  flex-wrap: nowrap;
}

.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: 12%;
}

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

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

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

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

.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,
.talent-revenues-table td {
  vertical-align: middle;
}

.talent-revenues-table th {
  line-height: 1.15;
}

.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;
}

.talent-revenues-table.has-impressions {
  width: 100%;
}

.talent-revenues-table.has-impressions th:nth-child(1),
.talent-revenues-table.has-impressions td:nth-child(1),
.talent-revenues-table.has-impressions th:nth-child(2),
.talent-revenues-table.has-impressions td:nth-child(2) {
  width: 11%;
}

.talent-revenues-table.has-impressions th:nth-child(3),
.talent-revenues-table.has-impressions td:nth-child(3) {
  width: 28%;
}

.talent-revenues-table.has-impressions th:nth-child(4),
.talent-revenues-table.has-impressions td:nth-child(4),
.talent-revenues-table.has-impressions th:nth-child(5),
.talent-revenues-table.has-impressions td:nth-child(5),
.talent-revenues-table.has-impressions th:nth-child(6),
.talent-revenues-table.has-impressions td:nth-child(6),
.talent-revenues-table.has-impressions th:nth-child(7),
.talent-revenues-table.has-impressions td:nth-child(7),
.talent-revenues-table.has-impressions th:nth-child(8),
.talent-revenues-table.has-impressions td:nth-child(8) {
  padding-right: 8px;
  padding-left: 8px;
  text-align: center;
}

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

.talent-revenues-table.has-impressions th:nth-child(6),
.talent-revenues-table.has-impressions td:nth-child(6),
.talent-revenues-table.has-impressions th:nth-child(8),
.talent-revenues-table.has-impressions td:nth-child(8) {
  width: 7%;
  text-align: center;
}

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

.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;
}

@media (min-width: 769px) {
  .creator-dashboard-revenues-table th,
  .creator-dashboard-revenues-table td,
  .creator-revenues-table th,
  .creator-revenues-table td {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 13px;
    line-height: 1.18;
  }

  .creator-dashboard-revenues-table th,
  .creator-revenues-table th {
    font-size: 12px;
    line-height: 1.15;
  }

  .creator-dashboard-revenues-table th:nth-child(n + 4),
  .creator-dashboard-revenues-table td:nth-child(n + 4),
  .creator-revenues-table th:nth-child(n + 4),
  .creator-revenues-table td:nth-child(n + 4) {
    font-variant-numeric: tabular-nums;
  }
}

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

.creator-dashboard-revenues-table:not(.has-custom-field):not(.has-impressions) th:nth-child(1),
.creator-dashboard-revenues-table:not(.has-custom-field):not(.has-impressions) td:nth-child(1),
.creator-dashboard-revenues-table:not(.has-custom-field):not(.has-impressions) th:nth-child(4),
.creator-dashboard-revenues-table:not(.has-custom-field):not(.has-impressions) td:nth-child(4),
.creator-dashboard-revenues-table:not(.has-custom-field):not(.has-impressions) th:nth-child(5),
.creator-dashboard-revenues-table:not(.has-custom-field):not(.has-impressions) td:nth-child(5),
.creator-dashboard-revenues-table:not(.has-custom-field):not(.has-impressions) th:nth-child(6),
.creator-dashboard-revenues-table:not(.has-custom-field):not(.has-impressions) td:nth-child(6),
.creator-revenues-table:not(.has-custom-field):not(.has-impressions) th:nth-child(1),
.creator-revenues-table:not(.has-custom-field):not(.has-impressions) td:nth-child(1),
.creator-revenues-table:not(.has-custom-field):not(.has-impressions) th:nth-child(4),
.creator-revenues-table:not(.has-custom-field):not(.has-impressions) td:nth-child(4),
.creator-revenues-table:not(.has-custom-field):not(.has-impressions) th:nth-child(5),
.creator-revenues-table:not(.has-custom-field):not(.has-impressions) td:nth-child(5),
.creator-revenues-table:not(.has-custom-field):not(.has-impressions) th:nth-child(6),
.creator-revenues-table:not(.has-custom-field):not(.has-impressions) td:nth-child(6) {
  width: 11%;
}

.creator-dashboard-revenues-table:not(.has-custom-field):not(.has-impressions) th:nth-child(2),
.creator-dashboard-revenues-table:not(.has-custom-field):not(.has-impressions) td:nth-child(2),
.creator-revenues-table:not(.has-custom-field):not(.has-impressions) th:nth-child(2),
.creator-revenues-table:not(.has-custom-field):not(.has-impressions) td:nth-child(2) {
  width: 22%;
}

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

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

.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field),
.creator-revenues-table.has-impressions:not(.has-custom-field) {
  min-width: 1060px;
}

.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(1),
.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(1),
.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(4),
.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(4),
.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(5),
.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(5),
.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(6),
.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(6),
.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(7),
.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(7),
.creator-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(1),
.creator-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(1),
.creator-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(4),
.creator-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(4),
.creator-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(5),
.creator-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(5),
.creator-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(6),
.creator-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(6),
.creator-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(7),
.creator-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(7) {
  width: 10%;
}

.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(2),
.creator-dashboard-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(2),
.creator-revenues-table.has-impressions:not(.has-custom-field) th:nth-child(2),
.creator-revenues-table.has-impressions:not(.has-custom-field) td:nth-child(2) {
  width: 20%;
}

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

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

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

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

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

.creator-dashboard-revenues-table.has-custom-field th,
.creator-dashboard-revenues-table.has-custom-field td,
.creator-revenues-table.has-custom-field th,
.creator-revenues-table.has-custom-field td {
  width: 10.5%;
}

.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: 21%;
}

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

.creator-dashboard-revenues-table.has-custom-field.has-impressions th,
.creator-dashboard-revenues-table.has-custom-field.has-impressions td,
.creator-revenues-table.has-custom-field.has-impressions th,
.creator-revenues-table.has-custom-field.has-impressions td {
  width: 9.5%;
}

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

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

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

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

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

.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-revenue-timeline {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding-right: 24px;
  box-sizing: border-box;
}

.creator-revenue-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: end;
}

.creator-revenue-header-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 351fr) minmax(0, 181fr) minmax(0, 121fr) minmax(0, 61fr) minmax(0, 122fr);
  gap: 19px;
  padding: 0 0 0 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
}

.creator-revenue-header-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-revenue-header-card span:nth-last-child(-n + 3) {
  text-align: left;
}

.creator-revenue-timeline.has-impressions:not(.has-custom-field) .creator-revenue-header-card,
.creator-revenue-timeline.has-custom-field:not(.has-impressions) .creator-revenue-header-card {
  grid-template-columns: minmax(225px, 1.45fr) minmax(124px, 0.8fr) minmax(104px, 0.65fr) minmax(118px, 1.1fr) minmax(58px, 0.5fr) minmax(118px, 1.1fr);
  gap: 22px;
}

.creator-revenue-timeline.has-custom-field.has-impressions .creator-revenue-header-card {
  grid-template-columns: minmax(205px, 1.25fr) minmax(112px, 0.75fr) minmax(88px, 0.55fr) minmax(88px, 0.55fr) minmax(112px, 1.1fr) minmax(54px, 0.5fr) minmax(112px, 1.1fr);
  gap: 16px;
}

.creator-revenue-timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.creator-revenue-timeline-row::before {
  content: "";
  position: absolute;
  top: -16px;
  bottom: -16px;
  left: 36px;
  width: 1px;
  background: var(--line-strong);
}

.creator-revenue-timeline-row.has-date::before,
.creator-revenue-timeline-row.has-date::after {
  content: "";
  position: absolute;
  left: 36px;
  width: 1px;
  background: var(--line-strong);
}

.creator-revenue-timeline-row.has-date::before {
  top: -16px;
  bottom: calc(50% + 34px);
}

.creator-revenue-timeline-row.has-date::after {
  top: calc(50% + 34px);
  bottom: -16px;
}

.creator-revenue-timeline-row.has-date:first-child::before {
  display: none;
}

.creator-revenue-timeline-row.has-date:last-child::after {
  display: none;
}

.creator-revenue-timeline-row.is-continuation:last-child::before {
  bottom: calc(100% - 54px);
}

.creator-revenue-date {
  position: relative;
  z-index: 1;
  min-height: 90px;
  display: grid;
  align-content: center;
  justify-items: center;
  color: var(--ink);
  background: transparent;
}

.creator-revenue-date strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.creator-revenue-date span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
}

.creator-revenue-date.is-continuation {
  background: transparent;
}

.creator-revenue-card {
  min-width: 0;
  min-height: 90px;
  display: grid;
  grid-template-columns: minmax(0, 351fr) minmax(0, 181fr) minmax(0, 121fr) minmax(0, 61fr) minmax(0, 122fr);
  gap: 19px;
  align-items: center;
  padding: 18px 0 18px 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
}

.creator-revenue-timeline.has-impressions:not(.has-custom-field) .creator-revenue-card,
.creator-revenue-timeline.has-custom-field:not(.has-impressions) .creator-revenue-card {
  grid-template-columns: minmax(225px, 1.45fr) minmax(124px, 0.8fr) minmax(104px, 0.65fr) minmax(118px, 1.1fr) minmax(58px, 0.5fr) minmax(118px, 1.1fr);
  gap: 22px;
}

.creator-revenue-timeline.has-custom-field.has-impressions .creator-revenue-card {
  grid-template-columns: minmax(205px, 1.25fr) minmax(112px, 0.75fr) minmax(88px, 0.55fr) minmax(88px, 0.55fr) minmax(112px, 1.1fr) minmax(54px, 0.5fr) minmax(112px, 1.1fr);
  gap: 16px;
}

.creator-expense-header-card,
.creator-expense-card {
  grid-template-columns: minmax(0, 475fr) minmax(0, 145fr) minmax(0, 120fr) minmax(0, 145fr);
  gap: 19px;
}

.creator-revenue-primary {
  min-width: 0;
  display: block;
}

.creator-revenue-title-block {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.creator-revenue-title-block > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-revenue-status-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-revenue-status-pill {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
}

.creator-revenue-status-pill ion-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.creator-revenue-status-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-revenue-status-pill.is-available {
  color: #059f92;
  background: #d8fff5;
}

.creator-revenue-status-pill.is-settled {
  color: #247de3;
  background: #e3f1ff;
}

.creator-revenue-status-pill.is-pending {
  color: #b45309;
  background: #fff1d6;
}

.creator-revenue-status-pill.is-rejected {
  color: #c2410c;
  background: #ffe4df;
}

.creator-revenue-card-cell {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.creator-revenue-card-cell > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 721px) {
  .creator-revenue-card-cell > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .creator-revenue-card-cell:nth-last-child(-n + 3) {
    justify-items: start;
    text-align: left;
  }
}

.creator-revenue-card-cell > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-revenue-tax-cell > strong {
  font-size: 17px;
}

.creator-revenue-amount-cell {
  justify-items: start;
  text-align: left;
}

.creator-revenue-amount-cell > strong {
  font-size: 17px;
  color: var(--navy);
}

.creator-expense-document-cell,
.creator-expense-status-cell {
  justify-items: start;
  text-align: left;
}

.creator-expense-document-cell > strong,
.creator-expense-status-cell > strong {
  min-width: 0;
  display: flex;
  align-items: center;
}

.creator-expense-download-link {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #247de3;
  background: #e3f1ff;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.creator-expense-download-link:hover {
  color: #ffffff;
  background: var(--blue);
  transform: translateY(-1px);
}

.creator-expense-download-link ion-icon {
  width: 20px;
  height: 20px;
}

.creator-revenue-empty {
  margin: 0;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .creator-revenue-timeline.has-impressions:not(.has-custom-field) .creator-revenue-card,
  .creator-revenue-timeline.has-custom-field:not(.has-impressions) .creator-revenue-card,
  .creator-revenue-timeline.has-impressions:not(.has-custom-field) .creator-revenue-header-card,
  .creator-revenue-timeline.has-custom-field:not(.has-impressions) .creator-revenue-header-card,
  .creator-revenue-timeline.has-custom-field.has-impressions .creator-revenue-header-card,
  .creator-revenue-timeline.has-custom-field.has-impressions .creator-revenue-card {
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(110px, 0.75fr));
  }

}

@media (max-width: 720px) {
  .creator-revenue-header {
    display: none;
  }

  .creator-revenue-timeline {
    padding-right: 0;
  }

  .creator-revenue-more {
    margin: 16px 0 0 70px;
  }

  .creator-revenue-timeline-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
  }

  .creator-revenue-timeline-row::before {
    left: 28px;
  }

  .creator-revenue-timeline-row.has-date::before {
    display: none;
  }

  .creator-revenue-timeline-row.has-date::after {
    top: 62px;
    bottom: -16px;
    left: 28px;
  }

  .creator-revenue-date {
    min-height: 0;
    align-content: start;
    padding-top: 18px;
    background: transparent;
  }

  .creator-revenue-card,
  .creator-revenue-timeline.has-impressions:not(.has-custom-field) .creator-revenue-card,
  .creator-revenue-timeline.has-custom-field:not(.has-impressions) .creator-revenue-card,
  .creator-revenue-timeline.has-custom-field.has-impressions .creator-revenue-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .creator-revenue-amount-cell {
    justify-items: start;
    text-align: left;
  }
}

.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-tooltip {
  position: relative;
  display: block;
}

.withdrawal-choice-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(360px, calc(100vw - 48px));
  padding: 10px 12px;
  border-radius: 8px;
  color: #ffffff;
  background: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s, transform 0.16s;
}

.withdrawal-choice-tooltip[data-tooltip=""]::after {
  display: none;
}

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

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

.withdrawal-choice-content {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.withdrawal-choice-label {
  display: block;
  min-width: 0;
  text-align: left;
}

.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;
  justify-self: start;
  margin-left: 0;
  object-fit: contain;
}

.withdrawal-choice-button:disabled {
  color: #68748a;
  background: #eef2f7;
  border-color: #cfd8ea;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}

.withdrawal-choice-button:disabled .withdrawal-choice-icon {
  opacity: 0.45;
  filter: grayscale(1);
}

.withdrawal-choice-button-coming-soon:disabled {
  color: #68748a;
  background: #eef2f7;
  border-color: #cfd8ea;
  cursor: not-allowed;
}

.withdrawal-choice-button-coming-soon:disabled .withdrawal-choice-icon {
  opacity: 0.45;
  filter: grayscale(1);
}

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

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

.external-billing-page {
  display: grid;
  justify-items: stretch;
  gap: 18px;
}

.external-billing-page .manual-withdrawal-page-header {
  width: 100%;
}

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

.external-client-sidebar,
.external-client-form,
.external-client-history,
.external-invoice-editor-card,
.external-empty-panel {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.external-client-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  padding: 18px;
}

.external-client-sidebar-header,
.external-invoice-lines-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.external-client-sidebar-header {
  display: grid;
}

.external-client-sidebar-header .secondary-button {
  justify-self: start;
  width: auto;
}

.external-client-sidebar-header h4,
.external-client-sidebar > h4,
.external-invoice-lines-header h4,
.external-client-history h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 850;
}

.external-client-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.external-client-list-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
  color: var(--ink);
  background: var(--panel-soft);
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.external-client-list-item:hover,
.external-client-list-item.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.external-client-list-item:hover {
  transform: translateY(-1px);
}

.external-client-list-item span {
  min-width: 0;
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.external-client-list-item small,
.external-client-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.external-client-empty {
  margin: 0;
}

.external-client-form,
.external-invoice-editor-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

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

.external-invoice-meta-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.external-invoice-meta-grid .half-span {
  grid-column: span 3;
}

.external-invoice-meta-grid .third-span {
  grid-column: span 2;
}

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

.external-invoice-readonly-input {
  color: var(--navy);
  background: var(--panel-soft);
}

.external-invoice-type-tooltip::after {
  width: min(430px, 82vw);
}

.external-client-history {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.external-invoices-table {
  table-layout: fixed;
}

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

.external-invoices-table th:nth-child(2),
.external-invoices-table td:nth-child(2) {
  width: 23%;
}

.external-invoices-table th:nth-child(3),
.external-invoices-table td:nth-child(3) {
  width: 25%;
}

.external-invoices-table th:nth-child(4),
.external-invoices-table td:nth-child(4),
.external-invoices-table th:nth-child(5),
.external-invoices-table td:nth-child(5) {
  width: 14%;
  white-space: nowrap;
}

.external-invoices-table th:nth-child(6),
.external-invoices-table td:nth-child(6) {
  width: 12%;
}

.external-invoice-editor-page {
  justify-items: center;
}

.external-invoice-form,
.external-invoice-preview {
  width: min(980px, 100%);
}

.external-invoice-lines {
  display: grid;
  gap: 12px;
}

.external-invoice-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(68px, 0.24fr) minmax(120px, 0.42fr) minmax(96px, 0.32fr) minmax(120px, 0.38fr) 42px;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.external-invoice-line-total {
  min-height: 48px;
  display: grid;
  gap: 4px;
  align-content: center;
}

.external-invoice-line-total span,
.external-invoice-total-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.external-invoice-line-total strong,
.external-invoice-total-bar strong {
  color: var(--navy);
  font-weight: 850;
}

.external-invoice-remove-line {
  align-self: end;
  width: 42px;
  height: 42px;
}

.external-invoice-total-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.external-invoice-total-bar span {
  display: grid;
  gap: 6px;
  min-height: 68px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.external-invoice-total-bar strong {
  color: var(--ink);
  font-size: 20px;
}

.external-invoice-preview {
  display: grid;
  justify-items: center;
  overflow-x: auto;
  padding-bottom: 10px;
}

.external-invoice-preview-document {
  min-height: 900px;
}

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

.external-invoice-preview-lines th:first-child,
.external-invoice-preview-lines td:first-child,
.external-invoice-preview-lines td:first-child strong {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.external-invoice-preview-lines th:nth-child(3),
.external-invoice-preview-lines td:nth-child(3) {
  width: 58px;
}

.external-invoice-preview-lines th:nth-child(4),
.external-invoice-preview-lines td:nth-child(4) {
  width: 120px;
}

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

.external-empty-panel {
  width: min(720px, 100%);
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 24px;
}

.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.5%;
}

.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.5%;
  white-space: nowrap;
}

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

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

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

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

.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-page.is-paginating .invoice-preview-document {
  visibility: hidden;
}

.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: 18px;
  font-weight: 850;
  line-height: 1.2;
}

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

.invoice-preview-document {
  position: relative;
  width: min(794px, 100%);
  height: 1123px;
  min-height: 1123px;
  box-sizing: border-box;
  padding: 50px 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-top: -16px;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.invoice-preview-brand-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: 176px;
  object-fit: contain;
}

.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: 20px;
}

.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: 20px;
}

.invoice-preview-section-title {
  margin: 0 0 8px;
  padding: 0 0 0 12px;
  color: var(--blue);
  background: transparent;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  border-radius: 0;
}

.invoice-preview-lines {
  border: 1px solid #e4ebff;
  border-radius: 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 thead tr:first-child th {
  border-top: 0;
}

.invoice-preview-lines th:first-child,
.invoice-preview-lines td:first-child {
  border-left: 0;
}

.invoice-preview-lines th:last-child,
.invoice-preview-lines td:last-child {
  border-right: 0;
}

.invoice-preview-lines tbody tr:last-child td {
  border-bottom: 0;
}

.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-lines.external-invoice-preview-lines th:nth-child(2),
.invoice-preview-lines.external-invoice-preview-lines td:nth-child(2) {
  width: 150px;
  white-space: nowrap;
}

.invoice-preview-lines.external-invoice-preview-lines th:nth-child(3),
.invoice-preview-lines.external-invoice-preview-lines td:nth-child(3) {
  width: 58px;
}

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

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

.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: 6px 12px;
  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: 3px 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: 15px 0 0;
  padding: 0;
  color: #000000;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  text-align: justify;
  text-align-last: left;
}

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

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

.invoice-preview-legal .invoice-preview-bank-line + .invoice-preview-bank-line {
  margin-top: 1px;
}

.invoice-preview-footer {
  position: absolute;
  right: 72px;
  bottom: 36px;
  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;
  height: 1123px;
  min-height: 1123px;
  /* Le PDF est rasterisé depuis le DOM en media « screen » : dans une fenêtre
     étroite, les règles mobiles s'appliqueraient à la capture. On fige la
     géométrie A4 ici (spécificité 0,2,0), indépendamment de la largeur d'écran. */
  padding: 50px 72px 88px;
  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;
}

.invoice-export-render .invoice-preview-lines,
.invoice-print-page .invoice-preview-lines {
  overflow: hidden;
}

.invoice-export-render .invoice-preview-lines table,
.invoice-print-page .invoice-preview-lines table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.invoice-export-render .external-invoice-preview-lines th:first-child,
.invoice-export-render .external-invoice-preview-lines td:first-child,
.invoice-export-render .external-invoice-preview-lines td:first-child strong,
.invoice-print-page .external-invoice-preview-lines th:first-child,
.invoice-print-page .external-invoice-preview-lines td:first-child,
.invoice-print-page .external-invoice-preview-lines td:first-child strong {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.invoice-export-render .external-invoice-preview-lines th:nth-child(2),
.invoice-export-render .external-invoice-preview-lines td:nth-child(2),
.invoice-print-page .external-invoice-preview-lines th:nth-child(2),
.invoice-print-page .external-invoice-preview-lines td:nth-child(2) {
  width: 150px;
}

.invoice-export-render .external-invoice-preview-lines th:nth-child(3),
.invoice-export-render .external-invoice-preview-lines td:nth-child(3),
.invoice-print-page .external-invoice-preview-lines th:nth-child(3),
.invoice-print-page .external-invoice-preview-lines td:nth-child(3) {
  width: 58px;
}

.invoice-export-render .external-invoice-preview-lines th:nth-child(4),
.invoice-export-render .external-invoice-preview-lines td:nth-child(4),
.invoice-print-page .external-invoice-preview-lines th:nth-child(4),
.invoice-print-page .external-invoice-preview-lines td:nth-child(4) {
  width: 120px;
}

.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;
  height: 1123px;
  min-height: 1123px;
  box-sizing: border-box;
  padding: 64px 58px 52px;
  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-document.is-continuation {
  padding-top: 64px;
}

.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 {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 0;
  margin: 0;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.05;
}

.operation-report-header h2 {
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 0;
  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%;
  min-width: 0;
  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 .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: 24px;
  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;
    height: 1123px;
    min-height: 1123px;
    /* Réaffirmé ici (spécificité 0,2,0) : la feuille contient des règles d'écran
       à borne « max-width » qui matchent aussi en impression (A4 = 794 px CSS).
       Le document A4 garde sa marge intérieure quoi qu'il arrive. */
    padding: 50px 72px 88px;
    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-header h3 {
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.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;
  overflow-y: auto; /* filet : si le contenu dépasse quand même, le fond défile */
  padding: 28px;
  background: rgba(7, 20, 57, 0.32);
}

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

#mandateOtpModal {
  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;
  /* Contenu plus haut que l'écran (avoir, choix d'organisation…) : la modale
     défile en interne au lieu de pousser ses boutons hors de l'écran (mobile). */
  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
}

.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;
}

.forgot-password-modal {
  width: min(460px, 100%);
}

.forgot-password-modal p a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.forgot-password-modal p a:hover,
.forgot-password-modal p a:focus-visible {
  color: var(--blue-strong);
  text-decoration: underline;
}

.forgot-password-actions {
  display: flex;
  justify-content: flex-end;
}

.forgot-password-actions .primary-button {
  min-width: 112px;
}

.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 {
  container-type: inline-size;
  margin-bottom: 18px;
}

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

.operation-list-section {
  container-type: inline-size;
  margin-bottom: 18px;
  overflow: visible;
}

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

.creator-revenue-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.creator-revenue-section-title h3 {
  margin: 0;
}

.creator-revenue-section-title .secondary-button {
  min-height: 38px;
  padding: 9px 16px;
}

.creator-revenue-more {
  display: flex;
  justify-content: center;
  margin: 18px 24px 0 94px;
}

.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(160px, 1.2fr) minmax(200px, 1.4fr) minmax(135px, 0.8fr) minmax(155px, 0.9fr);
  gap: 14px;
  align-items: center;
}

.talent-list-header > *,
.talent-list-item > * {
  min-width: 0;
}

.operation-list-header,
.operation-list-row {
  display: grid;
  grid-template-columns: minmax(106px, 0.45fr) minmax(260px, 1.55fr) minmax(150px, 0.8fr) minmax(260px, 1.05fr);
  gap: 14px;
  align-items: center;
}

.operation-list-item {
  display: grid;
  grid-column: 1 / 4;
  grid-template-columns: minmax(106px, 0.45fr) minmax(260px, 1.55fr) minmax(150px, 0.8fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.channel-list-header,
.channel-list-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  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;
}

.operation-list-header > *,
.operation-list-row > *,
.operation-list-item > * {
  min-width: 0;
}

.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;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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);
}

/* Chaque contrôle de statut porte z-index:1, ce qui crée un contexte
   d'empilement PAR LIGNE : le z-index:60 du menu ne vaut qu'à l'intérieur de sa
   propre ligne. À z-index égal, la ligne suivante — plus loin dans le document —
   passait donc PAR-DESSUS le menu ouvert (on voyait le statut de la ligne du
   dessous à travers le menu). On élève la ligne ouverte elle-même. */
.operation-status-control.is-open {
  z-index: 60;
}

.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;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.operation-name {
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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(0, 1.5fr) repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.operation-detail-header.has-custom-field,
.operation-detail-line.has-custom-field {
  grid-template-columns: minmax(0, 1.5fr) repeat(6, minmax(0, 1fr));
}

.operation-detail-header.has-impressions,
.operation-detail-line.has-impressions {
  grid-template-columns: minmax(0, 1.5fr) repeat(6, minmax(0, 1fr));
}

.operation-detail-header.has-custom-field.has-impressions,
.operation-detail-line.has-custom-field.has-impressions {
  grid-template-columns: minmax(0, 1.5fr) repeat(7, minmax(0, 1fr));
}

.operation-detail-header > *,
.operation-detail-line > * {
  min-width: 0;
}

.operation-detail-line .status-inline {
  min-width: 0;
}

@container (max-width: 920px) {
  .operation-detail-header {
    display: none;
  }

  .operation-detail-line,
  .operation-detail-line.has-custom-field,
  .operation-detail-line.has-impressions,
  .operation-detail-line.has-custom-field.has-impressions {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 8px 14px;
    align-items: start;
  }

  .operation-detail-line > :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .operation-detail-line > :nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .operation-detail-line.has-impressions:not(.has-custom-field) > :nth-child(3),
  .operation-detail-line.has-custom-field:not(.has-impressions) > :nth-child(3),
  .operation-detail-line.has-custom-field.has-impressions > :nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .operation-detail-line:not(.has-custom-field):not(.has-impressions) > :nth-child(3),
  .operation-detail-line.has-impressions:not(.has-custom-field) > :nth-child(4),
  .operation-detail-line.has-custom-field:not(.has-impressions) > :nth-child(4),
  .operation-detail-line.has-custom-field.has-impressions > :nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }

  .operation-detail-line:not(.has-custom-field):not(.has-impressions) > :nth-child(4),
  .operation-detail-line.has-impressions:not(.has-custom-field) > :nth-child(5),
  .operation-detail-line.has-custom-field:not(.has-impressions) > :nth-child(5),
  .operation-detail-line.has-custom-field.has-impressions > :nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }

  .operation-detail-line:not(.has-custom-field):not(.has-impressions) > :nth-child(5),
  .operation-detail-line.has-impressions:not(.has-custom-field) > :nth-child(6),
  .operation-detail-line.has-custom-field:not(.has-impressions) > :nth-child(6),
  .operation-detail-line.has-custom-field.has-impressions > :nth-child(6) {
    grid-column: 3;
    grid-row: 2;
  }

  .operation-detail-line:not(.has-custom-field):not(.has-impressions) > :nth-child(6),
  .operation-detail-line.has-impressions:not(.has-custom-field) > :nth-child(7),
  .operation-detail-line.has-custom-field:not(.has-impressions) > :nth-child(7),
  .operation-detail-line.has-custom-field.has-impressions > :nth-child(8) {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

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

@container (max-width: 820px) {
  .talent-list-header {
    display: none;
  }

  .talent-list-item {
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(140px, auto);
    grid-template-areas:
      "name total available"
      "email total available";
    gap: 5px 18px;
    align-items: center;
    padding: 14px;
  }

  .talent-list-item .talent-name {
    grid-area: name;
  }

  .talent-list-item span {
    grid-area: email;
  }

  .talent-list-item .talent-balance {
    display: grid;
    gap: 3px;
    justify-items: start;
    align-self: stretch;
    align-content: center;
  }

  .talent-list-item .talent-balance::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.1;
  }

  .talent-list-item .talent-balance:nth-of-type(2) {
    grid-area: total;
  }

  .talent-list-item .talent-balance:nth-of-type(3) {
    grid-area: available;
  }
}

@container (max-width: 720px) {
  .talent-list-item {
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
    grid-template-areas:
      "name total"
      "email available";
  }
}

.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 {
  container-type: inline-size;
  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(170px, 1.15fr) minmax(120px, 0.75fr) minmax(130px, 0.78fr) minmax(135px, 0.78fr) 42px;
  gap: 10px;
  align-items: end;
}

.operation-line.has-custom-field {
  grid-template-columns: minmax(155px, 1.05fr) minmax(120px, 0.78fr) minmax(120px, 0.72fr) minmax(130px, 0.76fr) minmax(135px, 0.78fr) 42px;
}

.operation-line.has-impressions {
  grid-template-columns: minmax(145px, 1fr) minmax(104px, 0.6fr) minmax(120px, 0.7fr) minmax(112px, 0.6fr) minmax(130px, 0.74fr) 42px;
}

.operation-line.has-custom-field.has-impressions {
  grid-template-columns: minmax(135px, 0.95fr) minmax(100px, 0.58fr) minmax(102px, 0.58fr) minmax(112px, 0.62fr) minmax(104px, 0.58fr) minmax(125px, 0.72fr) 42px;
}

.operation-line.is-cpm {
  grid-template-columns: minmax(165px, 1fr) minmax(125px, 0.72fr) minmax(105px, 0.54fr) minmax(145px, 0.82fr) 42px;
}

.operation-line.is-cpm.has-custom-field {
  grid-template-columns: minmax(145px, 0.95fr) minmax(120px, 0.7fr) minmax(115px, 0.62fr) minmax(105px, 0.54fr) minmax(145px, 0.82fr) 42px;
}

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

.operation-line .field input,
.operation-line .field select {
  min-width: 0;
}

.operation-line .field {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-line .icon-danger-button {
  align-self: end;
}

@container (max-width: 920px) {
  .operation-line.has-custom-field {
    grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 0.85fr) minmax(120px, 0.85fr) 42px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
  }

  .operation-line.has-custom-field .field:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .operation-line.has-custom-field .field:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .operation-line.has-custom-field .field:nth-child(3) {
    grid-column: 3 / span 2;
    grid-row: 1;
  }

  .operation-line.has-custom-field .field:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }

  .operation-line.has-custom-field .field:nth-child(5) {
    grid-column: 2 / span 2;
    grid-row: 2;
  }

  .operation-line.has-custom-field .icon-danger-button {
    grid-column: 4;
    grid-row: 2;
  }

  .operation-line.has-impressions,
  .operation-line.is-cpm,
  .operation-line.has-custom-field.has-impressions,
  .operation-line.is-cpm.has-custom-field {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 42px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
  }

  .operation-line.has-impressions .field,
  .operation-line.is-cpm .field,
  .operation-line.has-custom-field.has-impressions .field,
  .operation-line.is-cpm.has-custom-field .field {
    grid-column: auto;
    grid-row: auto;
  }

  .operation-line.has-impressions .icon-danger-button,
  .operation-line.is-cpm .icon-danger-button,
  .operation-line.has-custom-field.has-impressions .icon-danger-button,
  .operation-line.is-cpm.has-custom-field .icon-danger-button {
    grid-column: 4;
    grid-row: auto;
  }
}

@container (max-width: 720px) {
  .operation-line {
    grid-template-columns: minmax(150px, 1.15fr) minmax(120px, 0.85fr) minmax(120px, 0.85fr) 42px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
  }

  .operation-line:not(.has-custom-field) .field:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .operation-line:not(.has-custom-field) .field:nth-child(2) {
    grid-column: 2 / span 2;
    grid-row: 1;
  }

  .operation-line:not(.has-custom-field) .field:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .operation-line:not(.has-custom-field) .field:nth-child(4) {
    grid-column: 2 / span 2;
    grid-row: 2;
  }

  .operation-line:not(.has-custom-field) .icon-danger-button {
    grid-column: 4;
    grid-row: 2;
  }

  .operation-line.has-impressions,
  .operation-line.is-cpm,
  .operation-line.has-custom-field.has-impressions,
  .operation-line.is-cpm.has-custom-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-line.has-impressions .field,
  .operation-line.is-cpm .field,
  .operation-line.has-custom-field.has-impressions .field,
  .operation-line.is-cpm.has-custom-field .field {
    grid-column: auto;
    grid-row: auto;
  }

  .operation-line.has-impressions .icon-danger-button,
  .operation-line.is-cpm .icon-danger-button,
  .operation-line.has-custom-field.has-impressions .icon-danger-button,
  .operation-line.is-cpm.has-custom-field .icon-danger-button {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    min-height: 50px;
  }
}

.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;
}

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

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

.email-transport-option {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  background: var(--panel-soft);
}

/* L'input radio est visuellement masqué : sans ceci, la sélection au clavier
   n'affiche aucun repère de focus (comme le fait déjà .language-choice-option). */
.email-transport-option:has(input:focus-visible) {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 88, 255, 0.11);
}

.email-transport-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.email-transport-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.email-transport-option strong {
  color: var(--navy);
  font-size: 18px;
}

.email-transport-option.is-selected {
  border-color: var(--blue);
  background: rgba(47, 91, 255, 0.08);
}

.email-transport-provider-section,
.email-transport-test-form {
  margin-top: 2px;
}

.email-transport-actions {
  display: flex;
  justify-content: flex-end;
}

#organizationBillingForm > button {
  margin-top: 6px;
}

.operation-create-fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.operation-create-fields > .field:nth-child(1),
.operation-create-fields > .field:nth-child(2) {
  grid-column: span 3;
}

.operation-create-fields > .field:nth-child(3),
.operation-create-fields > .field:nth-child(4),
.operation-create-fields > .field:nth-child(5) {
  grid-column: span 2;
}

.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-control {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

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

.billing-toggle-field input:disabled + .billing-toggle {
  cursor: not-allowed;
}

.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;
}

.operation-settings-options {
  display: grid;
  gap: 10px;
}

.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;
}

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

.subpage-heading > div {
  min-width: 0;
}

.subpage-heading span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.subpage-heading h2 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.08;
}

.electronic-billing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  justify-content: stretch;
  gap: 16px;
}

.electronic-billing-card-compact {
  gap: 6px;
}

.electronic-billing-card-main {
  min-width: 0;
}

.settings-card-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.electronic-billing-card h3 {
  margin-bottom: 8px;
}

.electronic-billing-card .helper-text {
  margin: 0;
}

.electronic-billing-card-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.electronic-billing-card-actions,
.mandate-actions-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.electronic-billing-card-actions {
  margin-top: 6px;
}

.electronic-billing-card-actions .secondary-button {
  min-width: min(100%, 260px);
}

.mandate-settings-page {
  display: grid;
  gap: 18px;
}

.mandate-alert,
.mandate-warning {
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 8px;
  padding: 13px 15px;
  color: #9a5b00;
  background: rgba(245, 158, 11, 0.12);
  font-weight: 800;
}

.mandate-warning {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.mandate-warning span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.mandate-status-panel,
.mandate-sign-panel .mandate-actions-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mandate-sign-panel {
  margin: 32px 0 18px;
}

.mandate-status-panel h3,
.mandate-actions-header h3 {
  margin-bottom: 6px;
}

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

.mandate-data-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--panel-soft);
}

.mandate-data-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.mandate-data-item strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mandate-text {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: var(--panel-soft);
  line-height: 1.65;
}

.mandate-document-preview-panel {
  padding: 24px 0 8px;
}

.mandate-document-paper {
  position: relative;
  max-width: 820px;
  min-height: 1040px;
  margin: 0 auto;
  padding: 56px 64px 62px;
  border: 1px solid rgba(213, 224, 247, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(15, 40, 90, 0.12);
  color: var(--navy);
}

.mandate-document-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  border-radius: 8px 8px 0 0;
  background: var(--blue);
}

.mandate-document-logo {
  display: block;
  width: 154px;
  height: auto;
  margin: 0 0 63px auto;
}

.mandate-document-paper h3 {
  max-width: 100%;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mandate-document-paper h4 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}

.mandate-document-paper p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.mandate-document-company p {
  margin-bottom: 4px;
  line-height: 1.35;
}

.mandate-document-signature p {
  margin-bottom: 4px;
  line-height: 1.35;
}

.mandate-document-version {
  font-weight: 800;
}

.mandate-document-body {
  display: grid;
  gap: 2px;
}

.mandate-document-body p:last-child {
  margin-bottom: 4px;
}

.mandate-document-signature {
  margin-top: 0;
}

.mandate-document-footer {
  position: absolute;
  right: 64px;
  bottom: 32px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.mandate-sign-form {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}

.mandate-button-tooltip {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.mandate-button-tooltip .primary-button,
.mandate-button-tooltip .secondary-button {
  width: 100%;
}

.mandate-sign-form .mandate-button-tooltip {
  width: 100%;
}

.mandate-button-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: min(380px, calc(100vw - 48px));
  padding: 10px 12px;
  border-radius: 8px;
  color: #ffffff;
  background: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s, transform 0.16s;
}

.mandate-button-tooltip[data-tooltip=""]::after {
  display: none;
}

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

.mandate-button-tooltip:focus-visible {
  outline: 2px solid rgba(52, 87, 244, 0.45);
  outline-offset: 3px;
  border-radius: 8px;
}

.mandate-checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--panel-soft);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.45;
}

.mandate-checkbox input {
  margin-top: 3px;
  accent-color: var(--blue);
}

.mandate-drawn-signature {
  display: grid;
  gap: 10px;
}

.mandate-drawn-signature.is-disabled {
  opacity: 0.62;
}

.mandate-drawn-signature-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.mandate-drawn-signature-header h4 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}

.mandate-drawn-signature-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.mandate-signature-pad-wrap {
  position: relative;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.96)),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(213, 224, 247, 0.72) 48px);
  overflow: hidden;
}

.mandate-signature-pad-wrap canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 154px;
  cursor: crosshair;
  touch-action: none;
}

.mandate-signature-pad-wrap span {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(100, 112, 145, 0.52);
  font-size: 26px;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.mandate-signature-pad-wrap.has-ink span {
  opacity: 0;
}

.mandate-completed-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.mandate-completed-actions .secondary-button {
  min-width: min(100%, 280px);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mandate-completed-actions .mandate-revoke-button {
  margin-top: 0;
}

.mandate-otp-modal {
  max-width: 440px;
  gap: 16px;
}

.mandate-otp-message {
  margin: 0;
}

.mandate-otp-form {
  display: grid;
  gap: 12px;
}

.mandate-otp-form input {
  min-height: 54px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.mandate-otp-error {
  min-height: 18px;
  color: var(--danger);
  font-weight: 800;
}

.mandate-otp-actions {
  gap: 10px;
}

.mandate-signed-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--navy);
  font-weight: 800;
}

.mandate-revoke-button {
  margin-top: 14px;
}

a.secondary-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.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;
}

.personalization-option-toggle {
  margin-top: 14px;
}

.personalization-mode-field {
  margin-top: 10px;
}

.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,
.creator-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;
}

.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(190px, 1.2fr) minmax(140px, 0.75fr) minmax(190px, 1fr) minmax(118px, 0.55fr);
  gap: 14px;
  align-items: end;
}

.channel-create-grid.has-cpm,
.channel-share-line.has-cpm {
  grid-template-columns: minmax(180px, 1.15fr) minmax(155px, 0.78fr) minmax(110px, 0.52fr) minmax(180px, 1fr) minmax(105px, 0.5fr);
}

.channel-create-grid .field,
.channel-share-line .field,
.channel-create-grid .input-with-unit,
.channel-share-line .input-with-unit {
  min-width: 0;
}

.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(190px, 1.2fr) minmax(140px, 0.75fr) minmax(190px, 1fr) minmax(118px, 0.55fr);
  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(220px, 1.35fr) minmax(130px, 0.75fr) 42px;
  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: static;
  align-self: end;
}

.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);
}

.secondary-button:disabled,
.secondary-button:disabled:hover,
.unavailable-button,
.unavailable-button:hover {
  border-color: var(--line);
  color: var(--muted);
  background: var(--panel-soft);
  cursor: not-allowed;
  transform: none;
}

.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);
}

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

.email-log-status-failed {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.1);
}

.email-log-status-queued {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.14);
}

.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);
  }

  body.is-app-visible .boot-loader {
    left: 232px;
    width: calc(100% - 232px);
  }

  #mandateOtpModal {
    left: 232px;
    width: calc(100% - 232px);
  }

  .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: center;
    flex-direction: row;
  }

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

  .three-metrics {
    grid-template-columns: repeat(3, 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) {
  /* Cible tactile confortable (l'icône reste à 24px, la zone cliquable passe à 44px).
     À l'intérieur du bloc mobile : sur desktop la souris n'en a pas besoin, et
     hors media query cette règle faisait passer les lignes du tableau des
     retraits de 51 à 71 px sur grand écran. */
  .creator-withdrawals-table .creator-invoice-icon-link,
  .withdrawals-table .manager-withdrawal-invoice-icon-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
  }

  .email-transport-options {
    grid-template-columns: 1fr;
  }

  .email-transport-actions {
    justify-content: stretch;
  }

  .email-transport-actions .primary-button {
    width: 100%;
  }

  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;
  }

  .electronic-billing-card,
  .mandate-status-panel,
  .mandate-sign-panel .mandate-actions-header,
  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .electronic-billing-card-actions,
  .mandate-actions-header {
    justify-content: stretch;
  }

  .electronic-billing-card-actions .secondary-button,
  .electronic-billing-card-actions .mandate-button-tooltip,
  .mandate-actions-header .secondary-button,
  .mandate-completed-actions .secondary-button,
  .mandate-sign-form .primary-button {
    width: 100%;
  }

	  .mandate-data-grid {
	    grid-template-columns: 1fr;
	  }

	  .mandate-drawn-signature-header {
	    align-items: stretch;
	    flex-direction: column;
	  }

	  .mandate-signature-pad-wrap,
	  .mandate-signature-pad-wrap canvas {
	    height: 132px;
	    min-height: 132px;
	  }

	  .mandate-document-preview-panel {
	    padding-top: 8px;
	  }

  .mandate-document-paper {
    min-height: auto;
    padding: 42px 22px 54px;
  }

  .mandate-document-paper h3 {
    font-size: 20px;
  }

  .mandate-document-footer {
    right: 22px;
    bottom: 24px;
    left: 22px;
  }

  .subpage-heading h2 {
    font-size: 26px;
  }

  .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%);
    /* Fermée = hors écran ET non focusable (sinon Tab y envoie le focus dans le
       vide). visibility:hidden la retire du parcours clavier + lecteurs d'écran,
       appliquée après le slide-out pour ne pas couper l'animation. */
    visibility: hidden;
    transition: transform 0.24s ease, visibility 0s linear 0.24s;
    box-shadow: 22px 0 44px rgba(2, 13, 53, 0.22);
  }

  .app-shell.is-mobile-menu-open .sidebar {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.24s ease, visibility 0s;
  }

  .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 > div:first-child {
    min-width: 0;
  }

  /* Le titre de page est passé de h2 à h1 (repère de structure) : sans « h1 »
     ici, la règle mobile ne l'atteignait plus et il restait figé à 30 px. */
  .topbar h1,
  .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%;
  }

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

  body.is-app-visible .boot-loader {
    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,
  .creator-withdrawals-table .creator-revenue-status-pill {
    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,
	  .creator-external-billing-actions,
	  .manual-withdrawal-form,
	  .external-client-layout,
	  .external-form-grid,
	  .external-invoice-line,
	  .external-invoice-total-bar,
	  .invoice-preview-summary,
	  .invoice-parties-grid,
    .admin-form {
      grid-template-columns: 1fr;
    }

  .operation-create-fields > .field,
  .operation-line .field,
  .operation-line .icon-danger-button {
    grid-column: auto;
    grid-row: auto;
  }

  .operation-create-fields > .field:nth-child(1),
  .operation-create-fields > .field:nth-child(2),
  .operation-create-fields > .field:nth-child(3),
  .operation-create-fields > .field:nth-child(4),
  .operation-create-fields > .field:nth-child(5) {
    grid-column: auto;
  }

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

  .external-invoice-meta-grid .half-span,
  .external-invoice-meta-grid .third-span {
    grid-column: auto;
  }

	  .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-line.has-impressions,
  .operation-line.has-custom-field.has-impressions,
  .operation-line.is-cpm,
  .operation-line.is-cpm.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;
  }

  /* « screen » indispensable : A4 = 794 px CSS, donc « max-width: 900px » matche
     aussi à l'impression. Ce padding-bottom débordait la feuille (1123 + 14 px)
     et Chrome émettait une page blanche à la suite de CHAQUE facture imprimée ;
     overflow-x faisait par ailleurs du conteneur d'impression une zone de
     défilement. Les deux n'ont de sens qu'à l'écran. */
  @media screen {
    .invoice-preview-page {
      overflow-x: auto;
      padding-bottom: 14px;
    }
  }

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

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

  .manual-withdrawal-page-header h3 {
    font-size: 18px;
  }

  /* « screen » est INDISPENSABLE : une page A4 fait 794 px CSS de large, donc
     « max-width: 900px » matche AUSSI pendant l'impression. Sans ce scope, le
     padding mobile écrasait celui du document A4 (marges de 20 px au lieu de 72). */
  @media screen {
    .invoice-preview-document {
      /* Reflow fluide au lieu de scaler une boîte A4 figée : le scale ne récupérait
         pas la boîte de layout (1123px) → ~630px de vide sous chaque page + bord
         droit coupé. En largeur fluide, l'aperçu tient dans l'écran, sans vide. */
      width: 100%;
      max-width: 100%;
      height: auto;
      min-height: 0;
      transform: none;
      padding: 26px 20px 34px;
    }
  }

  .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;
  }

  .external-client-sidebar,
  .external-client-form,
  .external-client-history,
  .external-invoice-editor-card {
    padding: 18px;
  }

  .external-client-sidebar {
    max-height: none !important;
    overflow: visible;
  }

  .external-client-list {
    overflow: visible;
    padding-right: 0;
  }

  .external-client-sidebar-header,
  .external-invoice-lines-header {
    align-items: stretch;
    flex-direction: column;
  }

  .external-invoice-line {
    align-items: stretch;
  }

  .external-invoice-remove-line {
    width: 100%;
  }

  .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-create-grid.has-cpm,
  .channel-share-line.has-cpm {
    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));
  }

  .three-metrics {
    grid-template-columns: repeat(3, 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"] .mandate-otp-modal,
body[data-theme="dark"] .manual-withdrawal-page-card,
body[data-theme="dark"] .manual-withdrawal-balance-card,
body[data-theme="dark"] .external-client-sidebar,
body[data-theme="dark"] .external-client-form,
body[data-theme="dark"] .external-client-history,
body[data-theme="dark"] .external-invoice-editor-card,
body[data-theme="dark"] .external-empty-panel,
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"] .mandate-otp-modal input,
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"] .withdrawal-choice-button:disabled,
body[data-theme="dark"] .withdrawal-choice-button-coming-soon:disabled {
  color: #7f8ca5;
  background: #1b273b;
  border-color: #2d3a52;
}

body[data-theme="dark"] .withdrawal-choice-tooltip::after {
  color: #101828;
  background: #f8fafc;
}

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"] .primary-button.invitation-sent-button,
body[data-theme="dark"] .secondary-button.invitation-sent-button,
body[data-theme="dark"] .primary-button.invitation-sent-button:hover,
body[data-theme="dark"] .secondary-button.invitation-sent-button:hover {
  border-color: var(--success);
  background: var(--success);
  color: #ffffff;
}

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-revenue-card,
body[data-theme="dark"] .creator-revenue-empty,
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"] .external-client-list-item,
body[data-theme="dark"] .external-invoice-line,
body[data-theme="dark"] .external-invoice-total-bar span,
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"] .creator-revenue-card,
body[data-theme="dark"] .creator-revenue-empty {
  background: transparent;
}

body[data-theme="dark"] .creator-revenue-timeline-row::before,
body[data-theme="dark"] .creator-revenue-timeline-row.has-date::after {
  background: var(--line);
}

body[data-theme="dark"] .creator-revenue-status-pill.is-available {
  color: #7ee2ca;
  background: rgba(20, 166, 121, 0.22);
}

body[data-theme="dark"] .creator-revenue-status-pill.is-settled {
  color: #8bc2ff;
  background: rgba(52, 152, 245, 0.22);
}

body[data-theme="dark"] .creator-revenue-status-pill.is-pending {
  color: #ffd08a;
  background: rgba(245, 158, 11, 0.22);
}

body[data-theme="dark"] .creator-revenue-status-pill.is-rejected {
  color: #ffaaa1;
  background: rgba(220, 38, 38, 0.22);
}

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"] .mandate-document-paper,
body[data-theme="dark"] .invoice-export-render,
body[data-theme="dark"] .operation-report-export-render {
  --navy: #071439;
  --ink: #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,
body[data-theme="dark"] .mandate-document-paper {
  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 {
  background: transparent;
  border: 0;
}

body[data-theme="dark"] .operation-report-brand {
  background: #f6f8ff;
  border-color: #dce5ff;
}


body[data-theme="dark"] .mandate-otp-modal .icon-button {
  color: var(--ink);
  background: #0b1424;
  border-color: var(--line-strong);
}

.withdrawal-choice-panel {
  --withdrawal-choice-content-width: auto;
}

.withdrawal-choice-panel .withdrawal-choice-button {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  text-align: left !important;
}

.withdrawal-choice-panel .withdrawal-choice-button .withdrawal-choice-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin: 0 !important;
  transform: none;
}

.withdrawal-choice-panel .withdrawal-choice-content {
  width: min(100%, var(--withdrawal-choice-content-width));
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.withdrawal-choice-panel .withdrawal-choice-label {
  display: block;
  min-width: 0;
  text-align: left !important;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .withdrawal-choice-panel .withdrawal-choice-button {
    justify-content: flex-start !important;
  }

  .withdrawal-choice-panel .withdrawal-choice-content {
    width: 100%;
  }

  .withdrawal-choice-panel .withdrawal-choice-label {
    overflow-wrap: anywhere;
  }
}

.field select,
.table-inline-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2307133b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
}

body[data-theme="dark"] .field select,
body[data-theme="dark"] .table-inline-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dbe5fb' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
}

/* --- Avoirs & retransmission PDP ---------------------------------------- */
.invoice-doc-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
}
.invoice-doc-badge.is-cancelled { background: #fdecea; color: #b3261e; }
.invoice-doc-badge.is-credit-note { background: #e8f0fe; color: #1a4fd6; }

.invoice-credit-note-button {
  border: 1px solid #f0c9c5;
  background: #fff;
  color: #b3261e;
  cursor: pointer;
}
.invoice-credit-note-button:hover { background: #fdecea; }
body[data-theme="dark"] .invoice-credit-note-button { background: transparent; border-color: #5a3a3a; color: #ff8f86; }

.invoice-retransmit-button {
  margin-left: 8px;
  padding: 4px 10px;
  border: 1px solid #d5dbe7;
  border-radius: 8px;
  background: #fff;
  color: #24428f;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.invoice-retransmit-button:hover { background: #f3f6ff; }
.invoice-retransmit-button:disabled { opacity: .55; cursor: default; }

.credit-note-modal { max-width: 520px; }
.credit-note-intro { margin: 4px 0 12px; color: #5a6478; font-size: 14px; }
.credit-note-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.credit-note-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #d5dbe7;
  border-radius: 10px;
  cursor: pointer;
}
.credit-note-option:has(input:checked) { border-color: #2453c9; background: #f3f6ff; }
.credit-note-option input { margin-top: 3px; }
.credit-note-option span { display: flex; flex-direction: column; gap: 2px; }
.credit-note-option small { color: #5a6478; }
.credit-note-transfer-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7e6;
  color: #7a5200;
  font-size: 13px;
}
.credit-note-transfer-check input { margin-top: 3px; }

body[data-theme="dark"] .invoice-retransmit-button,
body[data-theme="dark"] .credit-note-option { background: transparent; color: inherit; border-color: #3a4257; }
body[data-theme="dark"] .credit-note-option:has(input:checked) { background: rgba(60, 100, 220, .18); border-color: #4b6fd6; }
body[data-theme="dark"] .credit-note-intro,
body[data-theme="dark"] .credit-note-option small { color: #9aa3b8; }
body[data-theme="dark"] .credit-note-transfer-check { background: rgba(255, 190, 60, .12); color: #e3b567; }
body[data-theme="dark"] .invoice-doc-badge.is-cancelled { background: rgba(220, 70, 60, .18); color: #ff8f86; }
body[data-theme="dark"] .invoice-doc-badge.is-credit-note { background: rgba(70, 110, 230, .18); color: #8fb0ff; }
/* ===== CrewPay Freelance : missions, TJM, inscription, sélecteur d'org ===== */

.signup-website-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mission-pill-open {
  background: #eef4ff;
  color: #2458ff;
}

.mission-pill-billed {
  background: #e8f7ee;
  color: #1c7c40;
}

body[data-theme="dark"] .mission-pill-open {
  background: rgba(36, 88, 255, 0.18);
  color: #9db8ff;
}

body[data-theme="dark"] .mission-pill-billed {
  background: rgba(28, 124, 64, 0.2);
  color: #7fd8a2;
}

.mission-rate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.mission-rate-row:last-child {
  border-bottom: 0;
}

.mission-rate-row > span:first-child {
  min-width: 200px;
  font-weight: 650;
}

.mission-summary-panel p {
  margin: 6px 0 14px;
}

.org-switcher {
  margin-top: 16px;
  padding: 12px 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 6px;
}

.org-switcher-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.org-switcher select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
}

.org-switcher select option {
  color: #10203a;
}