@font-face {
  font-family: 'Ella Sans';
  src: url('../fonts/ella_sans/EllaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ella Sans';
  src: url('../fonts/ella_sans/EllaSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Simona Pro';
  src: url('../fonts/simona_pro/SimonaPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Simona Pro';
  src: url('../fonts/simona_pro/SimonaPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --wbc-indigo: #6360f0;
  --wbc-cyan: #15abdc;
  --wbc-mint: #5bbdac;
  --wbc-bg: #f5f5fb;
  --wbc-text: #1a1a2e;
  --wbc-muted: #7a7a9a;
  --wbc-card: #ffffff;
  --wbc-border: #e2e2f0;
}

.wbc-portal {
  direction: rtl;
  position: relative;
  min-height: 100vh;
  font-family: 'Simona Pro', sans-serif;
  background:
    radial-gradient(circle at 10% 15%, #e7f7ff 0, transparent 38%),
    radial-gradient(circle at 92% 88%, #e8e9ff 0, transparent 34%),
    linear-gradient(135deg, #f7f7fc 0%, #f0f6fb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.wbc-portal,
.wbc-portal * {
  font-family: 'Simona Pro', sans-serif;
}

.wbc-portal button,
.wbc-portal .wbc-tab,
.wbc-portal [role='tab'] {
  cursor: pointer;
}

.wbc-portal button:disabled {
  cursor: not-allowed;
}

.wbc-portal__bg-shape {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(99, 96, 240, 0.06),
    rgba(21, 171, 220, 0.06)
  );
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
  pointer-events: none;
}

.wbc-portal__card {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  max-width: 1200px;
  margin: 0 auto;
  background: var(--wbc-card);
  border: 2px solid var(--wbc-border);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(99, 96, 240, 0.12);
  padding: 26px;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wbc-portal__header h1 {
  margin: 0 0 6px;
  font-family: 'Ella Sans', sans-serif;
  font-weight: 700;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.wbc-portal__title-text {
  display: inline-block;
  background: linear-gradient(135deg, #0f766e 0%, #0891b2 45%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.wbc-portal__title-tools {
  display: inline-flex;
  align-items: center;
}

.wbc-client-manager-add-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wbc-client-manager-indicator {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0369a1;
}

button.wbc-client-manager-add {
  min-height: 30px;
  min-width: 30px;
  width: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--wbc-indigo);
}

button.wbc-client-manager-add:hover,
button.wbc-client-manager-add:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

.wbc-client-manager-actions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 200px;
  border: 1px solid #dbe8f8;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

button.wbc-client-manager-actions__option {
  width: 100%;
  text-align: right;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--wbc-indigo);
  min-height: 32px;
}

button.wbc-client-manager-actions__option:hover,
button.wbc-client-manager-actions__option:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

.wbc-portal h1,
.wbc-portal h2,
.wbc-portal h3,
.wbc-portal h4,
.wbc-portal h5,
.wbc-portal h6 {
  font-family: 'Ella Sans', sans-serif;
}

.wbc-portal__header p {
  margin: 0 0 20px;
  color: var(--wbc-muted);
  text-align: center;
}

.wbc-portal__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.wbc-portal__brand-logo {
  width: 156px;
  max-width: 44vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(10, 153, 226, 0.18));
}

.wbc-panel {
  display: none;
}

.wbc-panel.is-active {
  display: block;
}

#wbc-login-view {
  width: min(600px, 100%);
  margin: 0 auto;
}

.wbc-login-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

button.wbc-login-mode__button {
  min-height: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 28px;
  font-weight: 900;
  font-family: 'Ella Sans';
  border-radius: 10px;
  font-size: 20px;
  border: 1px solid var(--wbc-border);
  background: #ffffff;
  color: var(--wbc-indigo);
  cursor: pointer;
}

button#wbc-send-otp,
button#wbc-verify-otp {
  font-size: 18px;
  font-weight: bold;
}

button.wbc-login-mode__button .iconify {
  font-size: 22px;
}

button.wbc-login-mode__button:hover,
button.wbc-login-mode__button:focus {
  background: #edf7ff;
  color: #0f172a;
}

button.wbc-login-mode__button.is-active {
  border-color: transparent;
  background: linear-gradient(130deg, var(--wbc-indigo), var(--wbc-cyan));
  color: #ffffff;
}

.wbc-portal input {
  width: 100%;
  font-size: 18px;
  min-height: 42px;
  border: 1px solid var(--wbc-border);
  border-radius: 10px;
  padding: 0 40px 0 12px;
  margin: 6px 0 12px;
}

#wbc-portal-view input,
#wbc-portal-view select {
  font-family: 'Simona Pro';
  padding: 0 4px;
  font-size: 12px;
  margin: 0;
  min-height: 28px;
}
.wbc-input-wrap {
  position: relative;
  display: flex;
}

.wbc-input-icon {
  position: absolute;
  right: 12px;
  top: 17px;
  font-size: 20px;
  color: #64748b;
  pointer-events: none;
}

.wbc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
  justify-content: center;
}

button.wbc-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  border: 0;
  padding: 0 16px;
  cursor: pointer;
}

button.wbc-button--primary {
  background: linear-gradient(130deg, var(--wbc-indigo), var(--wbc-cyan));
  color: #ffffff;
}

button.wbc-button--primary:hover,
button.wbc-button--primary:focus {
  background: linear-gradient(130deg, #5653df, #1299c6);
  color: #ffffff;
}

button.wbc-button--secondary {
  background: #eef0ff;
  color: #1a1a2e;
}

button.wbc-button--secondary:hover,
button.wbc-button--secondary:focus {
  background: #dde2ff;
  color: #0f172a;
}
#wbc-identifier {
  text-align: right;
}
button.wbc-button--install {
  display: none;
  margin-top: 12px;
  background: #ecfff9;
  color: #0f5132;
  position: absolute;
  top: 0;
  left: 12px;
}

button.wbc-button--install:hover,
button.wbc-button--install:focus {
  background: #daf6ec;
  color: #0f5132;
}

.wbc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.wbc-stat {
  border: 1px solid var(--wbc-border);
  border-radius: 12px;
  background: #f9fbff;
  padding: 16px;
  min-height: 100px;
}

.wbc-stat__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--wbc-muted);
}

.wbc-stat__label .iconify {
  width: 40px;
  height: 40px;
  color: #0f5ea8;
}

.wbc-stat__value {
  display: block;
  font-family: 'Simona Pro', sans-serif;
  font-size: 33px;
  line-height: 1.2;
  color: #0f172a;
}

.wbc-stat__status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.wbc-stat__status-display-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.wbc-stat__status-display {
  display: inline-block;
}

button.wbc-stat__status-edit {
  opacity: 0;
  pointer-events: none;
  min-height: 30px;
  min-width: 30px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--wbc-indigo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.18s ease;
}

.wbc-stat--project-status:hover button.wbc-stat__status-edit,
.wbc-stat--project-status:focus-within button.wbc-stat__status-edit,
.wbc-stat--project-status.is-editing button.wbc-stat__status-edit {
  opacity: 1;
  pointer-events: auto;
}

button.wbc-stat__status-edit:hover,
button.wbc-stat__status-edit:focus {
  border-color: #bfdbfe;
  background: #dbeafe;
  color: var(--wbc-indigo);
}

.wbc-stat__status-select {
  flex: 1 1 auto;
  max-width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 18px;
  padding: 4px 10px;
}

button.wbc-stat__status-save {
  min-height: 38px;
  min-width: 38px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
  color: #3730a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

button.wbc-stat__status-save:hover,
button.wbc-stat__status-save:focus {
  border-color: #a5b4fc;
  background: #e0e7ff;
  color: #312e81;
}

button.wbc-stat__status-save:disabled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
}

button.wbc-stat__status-cancel {
  min-height: 38px;
  min-width: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

button.wbc-stat__status-cancel:hover,
button.wbc-stat__status-cancel:focus {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #1f2937;
}

button.wbc-stat__status-cancel:disabled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
}

.wbc-stat__meta {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  color: #334155;
}

.wbc-stats--admin-overview {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.wbc-admin-overview-card {
  background: #ffffff;
  border-color: #dce6f7;
  min-height: 132px;
  grid-column: span 3;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.wbc-admin-overview-card:hover,
.wbc-admin-overview-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.wbc-stats--admin-overview .wbc-admin-overview-card:nth-child(-n + 3) {
  grid-column: span 4;
}

.wbc-admin-overview-card .wbc-stat__value {
  margin-top: 10px;
}

.wbc-admin-overview-card--half {
  grid-column: span 6;
}

.wbc-admin-overview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}

.wbc-admin-overview-row__label {
  font-size: 16px;
  color: #475569;
  font-weight: 700;
}

.wbc-admin-overview-row__value {
  font-size: 20px;
  color: #0f172a;
  font-weight: 700;
  text-align: left;
}

.wbc-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  min-height: 60px;
}

button.wbc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid var(--wbc-border);
  background: #ffffff;
  color: #0f172a;
}

.wbc-actions--logout-floating {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button.wbc-button.wbc-logout-floating {
  background: #eef0ff;
  color: #1a1a2e;
}

button.wbc-button.wbc-logout-floating:hover,
button.wbc-button.wbc-logout-floating:focus {
  background: #dde2ff;
  color: #0f172a;
}

button.wbc-tab:hover,
button.wbc-tab:focus {
  background: #f1fbff;
  color: #0f172a;
}

button.wbc-tab.is-active {
  border-color: transparent;
  background: linear-gradient(130deg, #15abdc, #5bbdac);
  color: #ffffff;
}

.wbc-tab-panel {
  display: none;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.wbc-tab-panel.is-active {
  display: block;
}

#wbc-portal-view {
  position: relative;
}

.wbc-portal-loading {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wbc-portal-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(1px);
}

.wbc-portal-loading__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbe8f8;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 16px 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.wbc-portal-loading__lottie {
  width: 76px;
  height: 76px;
  flex: none;
}
.wbc-admin-sites-grid--button-only {
  justify-content: flex-start;
}

.wbc-portal-loading__text {
  font-size: 13px;
  font-weight: 700;
}

@keyframes wbc-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wbc-list-item {
  border: 1px solid var(--wbc-border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  background: #ffffff;
}

.wbc-payments-dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wbc-payments-debt-card {
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff7f7;
  padding: 12px;
}

.wbc-payments-debt-card.is-inactive {
  border-color: #dbe7f4;
  background: #f8fbff;
  opacity: 0.75;
}

.wbc-payments-debt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.wbc-payments-debt-head h4 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #7f1d1d;
}

.wbc-payments-debt-card.is-inactive .wbc-payments-debt-head h4 {
  color: #334155;
}

button.wbc-payments-reminder-send {
  min-height: 34px;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  background: #fee2e2;
  color: #991b1b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

button.wbc-payments-reminder-send:hover,
button.wbc-payments-reminder-send:focus {
  background: #fecaca;
  color: #7f1d1d;
}

button.wbc-payments-reminder-send:disabled {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #64748b;
}

.wbc-payments-debt-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.wbc-payments-debt-grid div {
  border: 1px solid #f3d2d2;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
}

.wbc-payments-debt-grid span {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.wbc-payments-debt-grid strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
}

.wbc-payments-debt-note {
  margin: 10px 0 0;
  color: #475569;
  font-size: 13px;
}

.wbc-payments-debt-note--tasks {
  font-weight: 700;
  color: #991b1b;
}

.wbc-payments-debt-card .wbc-client-debts-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f3d2d2;
}

.wbc-manual-payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.55);
  direction: rtl;
  font-family: 'Simona Pro', sans-serif;
}

.wbc-manual-payment-modal {
  width: min(100%, 440px);
  padding: 22px;
  border: 1px solid var(--wbc-border);
  border-radius: 12px;
  background: var(--wbc-card);
  color: var(--wbc-text);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  font-family: 'Simona Pro', sans-serif;
}

.wbc-manual-payment-modal,
.wbc-manual-payment-modal * {
  box-sizing: border-box;
  font-family: 'Simona Pro', sans-serif !important;
}

.wbc-manual-payment-modal__head,
.wbc-manual-payment-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wbc-manual-payment-modal h3 { margin: 0; color: var(--wbc-text); font-family: 'Ella Sans', sans-serif !important; font-size: 21px; }
.wbc-manual-payment-modal p { color: var(--wbc-muted); line-height: 1.6; }
.wbc-manual-payment-modal label { display: grid; gap: 6px; margin-top: 14px; color: var(--wbc-text); font-weight: 700; }
.wbc-add-debt-form:not(.is-settlement) .wbc-debt-settlement-field { display: none; }
.wbc-manual-payment-modal input,
.wbc-manual-payment-modal select { min-height: 44px; width: 100%; padding: 9px 12px; border: 1px solid var(--wbc-border); border-radius: 8px; background: var(--wbc-card); color: var(--wbc-text); font: inherit; }
.wbc-manual-payment-modal input:focus,
.wbc-manual-payment-modal select:focus { outline: none; border-color: var(--wbc-indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wbc-indigo) 18%, transparent); }
.wbc-manual-payment-modal__actions { justify-content: flex-start; margin-top: 18px; }
.wbc-manual-payment-modal__close { width: 36px; min-width: 36px; height: 36px; padding: 0 !important; border: 1px solid var(--wbc-border) !important; border-radius: 8px !important; background: var(--wbc-card) !important; color: var(--wbc-muted) !important; display: inline-grid !important; place-items: center; }
#wbc-manual-payment-overlay .button.wbc-manual-payment-modal__save,
#wbc-manual-payment-overlay .button.wbc-manual-payment-modal__cancel { min-height: 42px; padding: 0 16px !important; border-radius: 8px !important; font-weight: 700 !important; }
#wbc-manual-payment-overlay .button.wbc-manual-payment-modal__save { border: 1px solid var(--wbc-indigo) !important; background: var(--wbc-indigo) !important; color: #fff !important; }
#wbc-manual-payment-overlay .button.wbc-manual-payment-modal__save:hover,
#wbc-manual-payment-overlay .button.wbc-manual-payment-modal__save:focus { border-color: var(--wbc-cyan) !important; background: var(--wbc-cyan) !important; color: #fff !important; }
#wbc-manual-payment-overlay .button.wbc-manual-payment-modal__cancel { border: 1px solid var(--wbc-border) !important; background: var(--wbc-card) !important; color: var(--wbc-text) !important; }
.wbc-manual-payment-modal__status { min-height: 20px; margin: 10px 0 0; color: #b91c1c; }
.wbc-manual-payment-modal__document-empty { margin: 9px 0 0; color: var(--wbc-muted); font-size: 13px; }
.wbc-manual-payment-modal__dropzone {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 102px;
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--wbc-indigo) 52%, var(--wbc-border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--wbc-indigo) 4%, var(--wbc-card));
  color: var(--wbc-muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.wbc-manual-payment-modal__dropzone .iconify { font-size: 24px; color: var(--wbc-indigo); }
.wbc-manual-payment-modal__dropzone small { color: var(--wbc-muted); font-size: 12px; }
.wbc-manual-payment-modal__dropzone-idle,
.wbc-manual-payment-modal__dropzone-progress {
  display: grid;
  justify-items: center;
  gap: 5px;
}
.wbc-manual-payment-modal__dropzone.is-processing {
  border-style: solid;
  cursor: wait;
}
.wbc-manual-payment-modal__dropzone-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid color-mix(in srgb, var(--wbc-indigo) 24%, var(--wbc-border));
  border-top-color: var(--wbc-indigo);
  border-radius: 50%;
  animation: wbc-manual-payment-evidence-spin 720ms linear infinite;
}
@keyframes wbc-manual-payment-evidence-spin {
  to { transform: rotate(360deg); }
}
.wbc-manual-payment-modal__dropzone:hover,
.wbc-manual-payment-modal__dropzone:focus-visible,
.wbc-manual-payment-modal__dropzone.is-dragover {
  border-color: var(--wbc-indigo);
  background: color-mix(in srgb, var(--wbc-indigo) 10%, var(--wbc-card));
  color: var(--wbc-indigo);
  outline: none;
}

.wbc-hours-bank {
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #f8faff;
  padding: 12px;
}

.wbc-hours-bank__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.wbc-hours-bank__head h4 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #1e3a8a;
  font-size: 16px;
}

.wbc-hours-bank__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wbc-hours-bank__grid div {
  border: 1px solid #dbe4ff;
  border-radius: 9px;
  background: #ffffff;
  padding: 8px;
}

.wbc-hours-bank__grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.wbc-hours-bank__grid strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 18px;
}

.wbc-hours-bank__grid strong.is-negative {
  color: #b91c1c;
}

.wbc-hours-bank__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.wbc-hours-bank__form label {
  display: grid;
  gap: 4px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.wbc-hours-bank__form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 7px 9px;
}

.wbc-hours-bank__form input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
  outline: none;
}

.wbc-hours-bank__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

button.wbc-hours-bank__add,
button.wbc-hours-bank__save,
button.wbc-hours-bank__cancel {
  min-height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
}

button.wbc-hours-bank__add,
button.wbc-hours-bank__save {
  border: 1px solid #4f46e5;
  background: #4f46e5;
  color: #ffffff;
}

button.wbc-hours-bank__add:hover,
button.wbc-hours-bank__add:focus,
button.wbc-hours-bank__save:hover,
button.wbc-hours-bank__save:focus {
  background: #3730a3;
  color: #ffffff;
}

button.wbc-hours-bank__cancel {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

button.wbc-hours-bank__cancel:hover,
button.wbc-hours-bank__cancel:focus {
  background: #f1f5f9;
  color: #0f172a;
}

@media (max-width: 640px) {
  .wbc-hours-bank__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .wbc-hours-bank__grid,
  .wbc-hours-bank__form {
    grid-template-columns: 1fr;
  }
}

.wbc-payments-summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wbc-payments-summary-card {
  position: relative;
  border: 1px solid #dbe7f4;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

button.wbc-payments-summary-add {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  padding: 0;
  background: #eff6ff;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.wbc-payments-summary-add:hover,
button.wbc-payments-summary-add:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-payments-summary-add:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
}

.wbc-payments-add-popover {
  position: absolute;
  top: 44px;
  left: 8px;
  width: min(300px, calc(100% - 16px));
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  padding: 10px;
  z-index: 20;
  box-sizing: border-box;
  overflow: hidden;
}

.wbc-payments-add-popover__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 8px;
  min-width: 0;
}

.wbc-payments-add-popover__label {
  display: block;
  font-size: 12px;
  color: #475569;
  margin: 0 0 4px;
}

.wbc-payments-add-popover__select,
.wbc-payments-add-popover__input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 10px;
  margin: 0;
  box-sizing: border-box;
}

.wbc-payments-add-popover__select:focus,
.wbc-payments-add-popover__input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.22);
}

.wbc-payments-add-popover__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 10px;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: #334155;
  font-size: 12px;
}

.wbc-payments-add-popover__summary strong {
  color: #0f172a;
  font-size: 14px;
  white-space: nowrap;
}

.wbc-payments-add-popover__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

button.wbc-payments-add-popover__save,
button.wbc-payments-add-popover__cancel {
  flex: 1;
  min-height: 34px;
  border-radius: 8px;
  min-width: 0;
}

button.wbc-payments-add-popover__save {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

button.wbc-payments-add-popover__save:hover,
button.wbc-payments-add-popover__save:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-payments-add-popover__save:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
}

button.wbc-payments-add-popover__cancel {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

button.wbc-payments-add-popover__cancel:hover,
button.wbc-payments-add-popover__cancel:focus {
  background: #f1f5f9;
  color: #334155;
}

.wbc-payments-add-popover__status {
  min-height: 16px;
  margin: 6px 0 0;
  font-size: 12px;
  color: #334155;
}

.wbc-payments-summary-card h5 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #1e3a8a;
}

.wbc-payments-summary-card p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.wbc-payments-summary-card strong {
  display: block;
  margin: 8px 0 2px;
  color: #0f172a;
  font-size: 22px;
}

.wbc-payments-summary-card small {
  color: #334155;
}

.wbc-payments-summary-details {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wbc-payments-summary-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}

.wbc-payments-summary-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wbc-payments-summary-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.wbc-payments-summary-item__name {
  display: block;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
}

.wbc-payments-summary-item__description {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.wbc-payments-summary-item__meta {
  display: block;
  color: #475569;
  font-size: 12px;
  margin-top: 2px;
}

.wbc-payments-summary-item__last-payment {
  display: block;
  color: #475569;
  font-size: 12px;
  margin-top: 3px;
}

.wbc-payments-summary-item__product-id {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wbc-payments-summary-item__balance {
  display: block;
  margin-top: 5px;
  color: var(--wbc-indigo);
  font-size: 12px;
  font-weight: 700;
}

.wbc-payments-summary-item__paid {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--wbc-mint) 55%, var(--wbc-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--wbc-mint) 16%, var(--wbc-card));
  color: #147a3d;
  font-size: 12px;
  font-weight: 800;
}

.wbc-payments-summary-item-settle {
  min-height: 30px !important;
  margin-top: 8px !important;
  padding: 4px 9px !important;
  border: 1px solid color-mix(in srgb, var(--wbc-indigo) 45%, var(--wbc-border)) !important;
  border-radius: 6px !important;
  background: color-mix(in srgb, var(--wbc-indigo) 8%, var(--wbc-card)) !important;
  color: var(--wbc-indigo) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.wbc-payments-summary-item-settle:hover,
.wbc-payments-summary-item-settle:focus {
  border-color: var(--wbc-indigo) !important;
  background: var(--wbc-indigo) !important;
  color: #fff !important;
}

button.wbc-payments-summary-item-remove {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.wbc-payments-summary-item-remove:hover,
button.wbc-payments-summary-item-remove:focus {
  background: #ffe4e6;
  color: #991b1b;
}

button.wbc-payments-summary-item-edit {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.wbc-payments-summary-item-edit:hover,
button.wbc-payments-summary-item-edit:focus {
  background: #dbeafe;
  color: #1e40af;
}

button.wbc-payments-summary-item-remove:disabled {
  opacity: 0.65;
  cursor: default;
  background: #fff1f2;
  color: #b91c1c;
}

.wbc-payments-summary-empty {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
}

.wbc-payments-renewal-editor {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.wbc-payments-renewal-editor label {
  display: block;
  font-size: 12px;
  color: #334155;
  margin-bottom: 6px;
}

.wbc-payments-renewal-editor__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wbc-payments-last-payment-editor {
  margin-top: 10px;
}

.wbc-payments-last-payment-editor .wbc-payments-renewal-input {
  width: 150px;
}

.wbc-payments-renewal-input {
  width: 110px;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 10px;
}

.wbc-payments-renewal-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

button.wbc-payments-renewal-save {
  min-height: 34px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}

button.wbc-payments-renewal-save:hover,
button.wbc-payments-renewal-save:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-payments-renewal-save:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
}

.wbc-payments-renewal-status {
  margin: 6px 0 0;
  min-height: 18px;
  color: #334155;
  font-size: 12px;
}

.wbc-payments-create-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

button.wbc-payments-create {
  width: fit-content;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
}

button.wbc-payments-create:hover,
button.wbc-payments-create:focus {
  background: #bfdbfe;
  color: #1e3a8a;
}

button.wbc-payments-create:disabled {
  background: #e2e8f0;
  color: #64748b;
  border-color: #cbd5e1;
}

button.wbc-payments-import,
button.wbc-payments-manual-add {
  width: fit-content;
  min-width: 0;
  min-height: 34px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}

button.wbc-payments-import:hover,
button.wbc-payments-import:focus,
button.wbc-payments-manual-add:hover,
button.wbc-payments-manual-add:focus,
button.wbc-payments-import.is-dragover {
  background: #dbeafe;
  color: #1e40af;
}

button.wbc-payments-import.is-dragover {
  border-style: dashed;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wbc-payments-import-dropzone {
  min-height: 29px;
  border: 2px dashed #93c5fd;
  border-radius: 10px;
  background: #f8fbff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 3px 16px;
  text-align: center;
  max-width: fit-content;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.wbc-payments-import-dropzone:hover,
.wbc-payments-import-dropzone:focus,
.wbc-payments-import-dropzone.is-dragover {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.wbc-payments-import-dropzone .iconify {
  flex: 0 0 auto;
  font-size: 24px;
}

@media (max-width: 720px) {
  .wbc-payments-import-dropzone {
    width: 100%;
  }
}

.wbc-payments-history {
  border: 1px dashed #a7c4f3;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.wbc-payments-history + .wbc-payments-history {
  margin-top: 4px;
}

.wbc-payments-history h4 {
  margin: 0 0 10px;
  color: #1e293b;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

button.wbc-payments-page-link {
  width: 100%;
  max-width: 420px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

button.wbc-payments-page-link:hover,
button.wbc-payments-page-link:focus {
  background: #eef2ff;
  color: #1e3a8a;
}

a.wbc-payments-quote-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

a.wbc-payments-quote-link:hover,
a.wbc-payments-quote-link:focus {
  background: #eff6ff;
  color: #1e3a8a;
  text-decoration: underline;
}

a.wbc-payment-document-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

a.wbc-payment-document-link:hover,
a.wbc-payment-document-link:focus {
  background: #eff6ff;
  color: #1e3a8a;
  text-decoration: underline;
}

.wbc-payment-pages .button {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  font-family: 'Ella Sans', sans-serif;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  line-height: 1;
  min-height: 34px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.wbc-payment-pages .button:hover,
.wbc-payment-pages .button:focus {
  transform: translateY(-1px);
}

.wbc-payment-pages .button .iconify {
  font-size: 18px;
}

.wbc-payment-pages button.wbc-payments-page-reminder {
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #f0f7ff, #effefb);
  color: #1e3a8a;
  padding: 0 14px;
}

.wbc-payment-pages button.wbc-payments-page-reminder:hover,
.wbc-payment-pages button.wbc-payments-page-reminder:focus {
  border-color: #7dd3fc;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
  color: #0f766e;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.wbc-payments-page-link--empty {
  color: #94a3b8;
}

.wbc-payments-page-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.wbc-payments-page-status.is-paid {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.wbc-payments-history-table-wrap {
  border: 1px solid #d6e4ff;
  border-radius: 14px;
  background: #ffffff;
  overflow: auto;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.wbc-payments-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.wbc-payments-history-table th,
.wbc-payments-history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e9edf7;
  border-left: 1px solid #eef2fb;
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}

.wbc-payments-history-table th {
  background: linear-gradient(130deg, #e9f4ff, #e9fff9);
  color: #0f172a;
  font-family: 'Ella Sans', sans-serif;
  font-weight: 700;
}

.wbc-payments-history-table td {
  color: #1f2937;
}

.wbc-payments-history-table th:last-child,
.wbc-payments-history-table td:last-child {
  text-align: center;
  width: 104px;
  min-width: 104px;
}

.wbc-payments-history-table tr:nth-child(even) td {
  background: #fbfdff;
}

.wbc-payments-history-table th:first-child,
.wbc-payments-history-table td:first-child {
  border-right: 0;
}

.wbc-payments-history-table th:not(.wbc-payments-check-col):first-child,
.wbc-payments-history-table td:not(.wbc-payments-check-col):first-child {
  white-space: normal;
  min-width: 220px;
}

.wbc-payment-pages-table th:first-child,
.wbc-payment-pages-table td:first-child {
  white-space: nowrap;
  width: 1%;
  min-width: 68px;
  max-width: 90px;
}

.wbc-payment-page-totals {
  display: grid;
  gap: 6px;
  min-width: 152px;
}

.wbc-payment-page-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border: 1px solid #dbe5f6;
  border-radius: 6px;
  background: #f8fbff;
}

.wbc-payment-page-totals > div.is-recurring {
  border-color: #bfe8df;
  background: #f1fcf8;
}

.wbc-payment-page-totals > div.is-single {
  border-color: #d9d4ff;
  background: #f7f6ff;
}

.wbc-payment-page-totals span {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.wbc-payment-page-totals strong {
  color: #0f172a;
  font-size: 13px;
  white-space: nowrap;
}

button.wbc-payments-history-copy,
button.wbc-payments-history-view,
button.wbc-payments-history-refresh,
button.wbc-payments-history-edit,
button.wbc-payments-history-download,
button.wbc-payments-history-delete {
  min-height: 30px;
  min-width: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: 2px;
  padding: 0;
}

button.wbc-payments-history-refresh {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

button.wbc-payments-history-refresh:hover,
button.wbc-payments-history-refresh:focus {
  border-color: #5eead4;
  background: #ccfbf1;
  color: #115e59;
}

button.wbc-payments-history-refresh:disabled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
}

button.wbc-payments-history-copy {
  border: 1px solid #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

button.wbc-payments-history-copy:hover,
button.wbc-payments-history-copy:focus {
  border-color: #a78bfa;
  background: #ede9fe;
  color: #5b21b6;
}

button.wbc-payments-history-view {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

button.wbc-payments-history-view:hover,
button.wbc-payments-history-view:focus {
  border-color: #5eead4;
  background: #ccfbf1;
  color: #115e59;
}

button.wbc-payments-history-edit {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

button.wbc-payments-history-edit:hover,
button.wbc-payments-history-edit:focus {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
}

button.wbc-payments-history-download {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

button.wbc-payments-history-download:hover,
button.wbc-payments-history-download:focus {
  border-color: #5eead4;
  background: #ccfbf1;
  color: #115e59;
}

button.wbc-payments-history-download:disabled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
}

button.wbc-payments-history-delete {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

button.wbc-payments-history-delete:hover,
button.wbc-payments-history-delete:focus {
  border-color: #fca5a5;
  background: #ffe4e6;
  color: #991b1b;
}

button.wbc-payments-history-delete:disabled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
}

.wbc-payments-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.wbc-payments-history-heading .wbc-payments-import-dropzone {
  flex: 1 1 280px;
}

.wbc-payments-history-heading h4 {
  margin: 0;
}

.wbc-communication-card {
  background: #fff;
  border: 1px solid #dbe8f8;
  border-radius: 16px;
  padding: 16px;
}
.wbc-communication-table th:first-child,
.wbc-communication-table td:first-child {
  width: 36px;
  min-width: 36px;
  padding-inline: 6px !important;
  text-align: center;
}
.wbc-communication-document-link {
  color: var(--wbc-indigo);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.wbc-communication-document-link:hover,
.wbc-communication-document-link:focus {
  color: var(--wbc-mint);
}
.wbc-communication-select {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.wbc-communication-platform {
  align-items: center;
  background: #eef7ff;
  border: 1px solid #cfe3ff;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.wbc-communication-platform .iconify {
  font-size: 20px;
}

.wbc-communication-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}

.wbc-communication-status.is-sent {
  background: #e7f8ef;
  color: #147a3d;
}

.wbc-communication-status.is-failed {
  background: #fff1f1;
  color: #b42318;
}

.wbc-communication-status.is-pending {
  background: #fff8e1;
  color: #8a5a00;
}

.wbc-client-message-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.wbc-client-message-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.wbc-client-message-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe8f8;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}
.wbc-client-message-modal__head,
.wbc-client-message-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wbc-client-message-modal__head {
  margin-bottom: 18px;
}
.wbc-client-message-modal__dialog label {
  display: block;
  margin: 12px 0;
}
.wbc-client-message-modal__dialog label > span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.wbc-client-message-modal__dialog input,
.wbc-client-message-editor {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}
.wbc-client-message-editor {
  min-height: 190px;
  direction: rtl;
  text-align: right;
}
.wbc-client-message-editor:empty::before {
  content: 'כתבו כאן את ההודעה...';
  color: #94a3b8;
  pointer-events: none;
}
.wbc-client-message-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: rtl;
  margin: 0 0 6px;
}
button.wbc-client-message-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  color: #334155;
}
button.wbc-client-message-tool:hover,
button.wbc-client-message-tool:focus {
  border-color: #1261c9;
  background: #eff6ff;
  color: #1261c9;
}
.wbc-client-message-note,
.wbc-client-message-status {
  color: #64748b;
}

button.wbc-client-message-modal__close,
button.wbc-client-message-cancel,
button.wbc-client-message-submit {
  border-radius: 8px;
  min-height: 36px;
  padding: 7px 14px;
  box-shadow: none;
}
button.wbc-client-message-modal__close,
button.wbc-client-message-cancel {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}
button.wbc-client-message-submit {
  border: 1px solid #1261c9;
  background: #1261c9;
  color: #fff;
}
button.wbc-client-message-modal__close:hover,
button.wbc-client-message-modal__close:focus,
button.wbc-client-message-cancel:hover,
button.wbc-client-message-cancel:focus {
  background: #e2e8f0;
  color: #0f172a;
}
button.wbc-client-message-submit:hover,
button.wbc-client-message-submit:focus {
  background: #0d4eaa;
  color: #fff;
}

button.wbc-payments-page-reminder {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

button.wbc-payments-bulk-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  min-height: 32px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

button.wbc-payments-bulk-delete-btn:hover,
button.wbc-payments-bulk-delete-btn:focus {
  border-color: #fca5a5;
  background: #ffe4e6;
  color: #991b1b;
}

button.wbc-payments-bulk-delete-btn:disabled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.wbc-payments-check-col {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  text-align: center;
  padding: 8px 6px !important;
  white-space: nowrap;
}

.wbc-payments-history-table th.wbc-payments-check-col,
.wbc-payments-history-table td.wbc-payments-check-col {
  min-width: 36px;
}

.wbc-payment-bulk-check,
.wbc-payment-check-all {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #2563eb;
}

.wbc-payments-empty {
  margin: 0;
  color: #64748b;
}

.wbc-floating-notice {
  font-family: 'Ella Sans';
  position: fixed;
  right: 50%;
  bottom: 28px;
  transform: translateX(50%) translateY(12px);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

.wbc-floating-notice.is-visible {
  opacity: 1;
  transform: translateX(50%) translateY(0);
  pointer-events: auto;
}

.wbc-floating-notice--error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.wbc-tasks-intro {
  margin: 0 0 12px;
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
}

.wbc-task-toolbar,
.wbc-communication-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

button.wbc-task-add-open-btn,
button.wbc-communication-send-message,
button.wbc-communication-debt-reminder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  padding: 8px 18px;
  border: none;
  border-radius: 10px;
  background: var(--wbc-indigo);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button.wbc-task-add-open-btn:hover,
button.wbc-task-add-open-btn:focus,
button.wbc-communication-send-message:hover,
button.wbc-communication-send-message:focus,
button.wbc-communication-debt-reminder:hover,
button.wbc-communication-debt-reminder:focus {
  background: var(--wbc-indigo);
  color: #ffffff;
}

button.wbc-task-show-all-btn,
button.wbc-task-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid #cfe3ff;
  border-radius: 10px;
  background: #f5fbff;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
}

button.wbc-task-show-all-btn:hover,
button.wbc-task-show-all-btn:focus,
button.wbc-task-copy-btn:hover,
button.wbc-task-copy-btn:focus {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #172554;
}

button.wbc-task-bulk-delete-btn,
button.wbc-communication-bulk-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  color: #991b1b;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
}

button.wbc-task-bulk-delete-btn:hover,
button.wbc-task-bulk-delete-btn:focus,
button.wbc-communication-bulk-delete:hover,
button.wbc-communication-bulk-delete:focus {
  border-color: #fca5a5;
  background: #ffe4e6;
  color: #7f1d1d;
}

button.wbc-task-bulk-delete-btn:disabled,
button.wbc-communication-bulk-delete:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ─── Add-task modal ─────────────────────────────────── */

.wbc-add-task-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.wbc-add-task-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wbc-add-task-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.wbc-add-task-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

.wbc-add-task-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #e9edf7;
}

.wbc-add-task-modal__title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

button.wbc-modal-close-btn {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.wbc-modal-close-btn:hover,
button.wbc-modal-close-btn:focus {
  background: #e2e8f0;
  color: #0f172a;
}

.wbc-add-task-modal__body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wbc-modal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wbc-modal-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.wbc-modal-required {
  color: #dc2626;
}

.wbc-modal-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1daf0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.wbc-modal-input:focus {
  outline: none;
  border-color: #93c5fd;
  background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3);
}

.wbc-modal-input--error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

textarea.wbc-modal-input {
  resize: vertical;
  min-height: 72px;
}

textarea.wbc-modal-task-title {
  min-height: 58px;
  line-height: 1.45;
}

.wbc-add-task-modal__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #e9edf7;
  flex-direction: row-reverse;
}

.wbc-add-task-modal__status {
  flex: 1 1 auto;
  margin: 0;
  font-family: 'Almoni', 'Assistant', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-align: start;
}

.wbc-add-task-modal__status.is-error {
  color: #b91c1c;
}

.wbc-add-task-modal__status.is-success {
  color: #047857;
}

button.wbc-modal-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: none;
  border-radius: 10px;
  background: var(--wbc-indigo);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

button.wbc-modal-save-btn.is-loading .iconify {
  animation: wbc-spin 0.8s linear infinite;
}

button.wbc-modal-save-btn:hover,
button.wbc-modal-save-btn:focus {
  background: var(--wbc-indigo);
  color: #ffffff;
}

button.wbc-modal-save-btn:disabled {
  background: #93c5fd;
  color: #ffffff;
  cursor: not-allowed;
}

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

button.wbc-modal-cancel-btn {
  padding: 8px 16px;
  border: 1px solid #d1daf0;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  cursor: pointer;
}

button.wbc-modal-cancel-btn:hover,
button.wbc-modal-cancel-btn:focus {
  background: #e9edf7;
  color: #0f172a;
}

.wbc-task-table-wrap {
  border: 1px solid var(--wbc-border);
  border-radius: 14px;
  background: #ffffff;
  overflow-x: auto;
  overflow-y: visible;
  min-height: 100px;
  padding-bottom: 40px;
  -webkit-overflow-scrolling: touch;
}

.wbc-task-table {
  width: 120em;
  border-collapse: collapse;
  min-width: 120em;
  table-layout: fixed;
}

.wbc-task-table th,
.wbc-task-table td {
  border-bottom: 1px solid #e9edf7;
  border-left: 1px solid #eef2fb;
  padding: 10px 12px;
  text-align: right;
  vertical-align: top;
}

.wbc-task-table th:first-child,
.wbc-task-table td:first-child {
  width: 56px;
  min-width: 56px;
  text-align: center;
}

.wbc-task-table th:last-child,
.wbc-task-table td:last-child {
  width: 128px;
  min-width: 128px;
  max-width: 128px;
  text-align: center;
  position: sticky;
  right: 0;
  background: #ffffff;
  z-index: 2;
  box-shadow: -1px 0 0 #e9edf7;
}

.wbc-task-table th:first-child,
.wbc-task-table td:first-child {
  border-right: 0;
}

.wbc-task-select-col,
.wbc-task-select-cell {
  width: 46px;
  min-width: 46px;
  text-align: center;
}

.wbc-task-select-col input,
.wbc-task-select-cell input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.wbc-task-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f8ff;
  color: #0f172a;
  font-family: 'Ella Sans', sans-serif;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
}

.wbc-column-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  width: 8px;
  cursor: col-resize;
  touch-action: none;
}

.wbc-column-resize-handle::after {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 3px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
}

.wbc-task-table th:hover .wbc-column-resize-handle::after,
.wbc-column-resize-handle:hover::after,
.wbc-task-table.is-resizing-columns .wbc-column-resize-handle::after {
  background: #93c5fd;
}

.wbc-task-table.is-resizing-columns,
.wbc-task-table.is-resizing-columns * {
  cursor: col-resize !important;
}

.wbc-task-table th:last-child {
  background: #f5f8ff;
  z-index: 3;
}

.wbc-task-table td {
  min-height: 24px;
  padding: 4px;
  background: #ffffff;
  color: #1f2937;
  vertical-align: baseline;
}

.wbc-task-table th[data-field='title'],
.wbc-task-table td[data-field='title'] {
  width: 40%;
  min-width: 160px;
}

.wbc-task-table td[contenteditable='true'] {
  outline: none;
  cursor: text;
}

.wbc-task-table td[contenteditable='true']:focus {
  background: #f0f7ff;
  box-shadow: inset 0 0 0 2px #b8dcff;
}

.wbc-task-table td.wbc-cell-readonly {
  background: #f3f6fb;
  color: #475569;
  cursor: not-allowed;
}

.wbc-task-status-select {
  width: 100%;
  border: 1px solid #d6e0f3;
  border-radius: 6px;
  background: #f5f8ff;
  color: #1f2937;
  padding: 4px 8px;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  min-height: 28px;
}

.wbc-task-status-select:focus {
  border-color: #b8dcff;
  box-shadow: 0 0 0 3px rgba(184, 220, 255, 0.3);
  outline: none;
  background: #f0f7ff;
}

.wbc-task-urgency-select {
  width: 100%;
  border: 1px solid #d6e0f3;
  border-radius: 6px;
  background: #f5f8ff;
  color: #1f2937;
  padding: 4px 8px;
  font-family: inherit;
  font-size: inherit;
  min-height: 28px;
}

.wbc-task-urgency-select:focus {
  border-color: #b8dcff;
  box-shadow: 0 0 0 3px rgba(184, 220, 255, 0.3);
  outline: none;
  background: #f0f7ff;
}

.wbc-task-gap-links-cell {
  white-space: nowrap;
}

.wbc-task-gap-link {
  color: #1e3a8a;
  text-decoration: underline;
  font-weight: 700;
}

.wbc-task-gap-link:hover,
.wbc-task-gap-link:focus {
  color: #172554;
}

.wbc-task-gap-link-sep,
.wbc-task-gap-links-empty {
  color: #64748b;
}

.wbc-task-row--new td {
  background: #f8fbff;
}

.wbc-task-row--open td,
.wbc-task-row--open td:last-child {
  background: color-mix(in srgb, var(--wbc-indigo) 6%, var(--wbc-card));
}

.wbc-task-row--adder td {
  background: #f6fbff;
}

.wbc-task-row--delete-requested {
  opacity: 0.75;
}

.wbc-task-row--empty td {
  padding: 0;
  background: #ffffff;
}

.wbc-tasks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

.wbc-tasks-empty .iconify {
  font-size: 36px;
  color: #cbd5e1;
}

.wbc-task-actions {
  white-space: nowrap;
}

button.wbc-task-action {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  margin: 0 2px;
  border: 1px solid #d6e0f3;
  border-radius: 8px;
  background: #edf7ff;
  color: #1e3a8a;
}

button.wbc-task-action:hover,
button.wbc-task-action:focus {
  background: #dbeeff;
  color: #172554;
}

button.wbc-task-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #eef2f7;
  color: #64748b;
}

button.wbc-task-action--remove,
button.wbc-communication-delete {
  background: #fff1f2;
  color: #9f1239;
}

button.wbc-task-action--remove:hover,
button.wbc-task-action--remove:focus,
button.wbc-communication-delete:hover,
button.wbc-communication-delete:focus {
  background: #ffe4e6;
  color: #881337;
}

.wbc-communication-view-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 20px;
}
.wbc-communication-view-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.wbc-communication-view-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 22px;
  border: 1px solid #dbe8f8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
  direction: rtl;
}
.wbc-communication-view-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.wbc-communication-view-modal__head h3 {
  margin: 0;
}
button.wbc-communication-view-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
}
button.wbc-communication-view-modal__close:hover,
button.wbc-communication-view-modal__close:focus {
  background: #e2e8f0;
  color: #0f172a;
}
.wbc-communication-view-modal__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.wbc-communication-view-modal__meta > div {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.wbc-communication-view-modal__meta span,
.wbc-communication-view-modal__meta strong {
  display: block;
}
.wbc-communication-view-modal__meta span {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
}
.wbc-communication-view-modal__body {
  min-height: 150px;
  padding: 16px;
  border: 1px solid #dbe8f8;
  border-radius: 10px;
  background: #fff;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.wbc-communication-view-modal__body h4 {
  margin: 0 0 10px;
  color: #334155;
  font-size: 14px;
}
.wbc-communication-view-modal__empty {
  margin: 0;
  color: #64748b;
}

.wbc-communication-view-modal__email-preview {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 1px solid #dbe8f8;
  border-radius: 8px;
  background: #ffffff;
}

.wbc-th-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  border-radius: 50%;
  background: #dbe7ff;
  color: #27467a;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
}

.wbc-tooltip-anchor {
  position: relative;
}

.wbc-tooltip-layer {
  position: fixed;
  left: 0;
  top: 0;
  min-width: 120px;
  max-width: 280px;
  width: max-content;
  white-space: normal;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #1e3a8a;
  background: #0f172a;
  color: #ffffff;
  font-family: 'Simona Pro', sans-serif !important;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  transform: translate3d(0, 6px, 0);
  z-index: 2147483647;
}

.wbc-tooltip-layer::after {
  content: '';
  position: absolute;
  left: var(--wbc-tooltip-arrow-left, 50%);
  transform: translateX(-50%);
  border: 6px solid transparent;
}

.wbc-tooltip-layer.is-above::after {
  top: 100%;
  border-top-color: #0f172a;
}

.wbc-tooltip-layer.is-below {
  transform: translate3d(0, -6px, 0);
}

.wbc-tooltip-layer.is-below::after {
  bottom: 100%;
  border-bottom-color: #0f172a;
}

.wbc-tooltip-layer.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.wbc-whatsapp-floating {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 99998;
  border: 1px solid #074e21;
  border-radius: 999px;
  background: #12823b;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  box-shadow: 0 12px 24px rgba(7, 94, 84, 0.32);
  transform: translateY(80px);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    padding 0.25s ease,
    gap 0.25s ease;
}

.wbc-whatsapp-floating.is-mounted {
  transform: translateY(0);
  opacity: 1;
}

.wbc-whatsapp-floating:hover,
.wbc-whatsapp-floating:focus {
  background: #12823b;
  color: #ffffff;
}

.wbc-whatsapp-floating__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.wbc-whatsapp-floating__label,
.wbc-whatsapp-floating__phone {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
  font-family: 'Simona Pro';
}

.wbc-whatsapp-floating.is-compact {
  gap: 0;
  padding-left: 12px;
  padding-right: 12px;
}

.wbc-whatsapp-floating.is-compact .wbc-whatsapp-floating__label {
  display: none;
}

.wbc-admin-clients-table th,
.wbc-admin-clients-table td {
  min-width: 120px;
}

.wbc-admin-clients-table th:last-child,
.wbc-admin-clients-table td:last-child {
  width: 150px;
  min-width: 150px;
}

.wbc-admin-client-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--wbc-indigo);
  text-decoration: none;
  font-weight: 700;
}

.wbc-admin-client-action:hover,
.wbc-admin-client-action:focus {
  background: #dbeafe;
  color: var(--wbc-indigo);
}

.wbc-admin-layout {
  display: grid;
  grid-template-columns: 20% 80%;
  gap: 12px;
  align-items: start;
}

.wbc-admin-layout.is-sidebar-collapsed {
  grid-template-columns: 74px minmax(0, 1fr);
}

.wbc-admin-clients-pane {
  border: 1px solid var(--wbc-border);
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.wbc-admin-clients-sticky {
  position: sticky;
  top: -12px;
  z-index: 6;
  margin: -10px -10px 8px;
  padding: 10px 10px 8px;
  background: #f8fbff;
  border-bottom: 1px solid #dbe8f8;
}

.wbc-admin-clients-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

button.wbc-admin-go-home,
button.wbc-admin-sidebar-create-document {
  order: 0;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  margin: 0 auto 8px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

button.wbc-admin-go-home:hover,
button.wbc-admin-go-home:focus,
button.wbc-admin-sidebar-create-document:hover,
button.wbc-admin-sidebar-create-document:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

.wbc-admin-clients-title {
  order: 0;
  margin: 0 auto 8px 0;
  font-family: 'Ella Sans', sans-serif;
  font-size: 18px;
}

button.wbc-admin-clients-pane-collapse {
  order: 3;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--wbc-indigo);
  padding: 0;
  margin-bottom: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}

button.wbc-admin-clients-pane-collapse:hover,
button.wbc-admin-clients-pane-collapse:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-admin-clients-pane-close {
  order: 1;
  display: none;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--wbc-indigo);
  padding: 0;
  margin-bottom: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}

button.wbc-admin-clients-pane-close:hover,
button.wbc-admin-clients-pane-close:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

#wbc-admin-clients-search {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d4e1f4;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 10px !important;
  margin: 0 0 8px !important;
  font-size: 14px;
}

.wbc-admin-clients-search:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

button.wbc-admin-sidebar-add-client {
  order: 2;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}

.wbc-admin-open-tasks-section {
  margin: 12px 0 16px;
}

.wbc-admin-expected-payments-section {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #dbe8f8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.wbc-admin-open-tasks-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.wbc-admin-expected-payments-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.wbc-admin-open-tasks-header h3 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}

.wbc-admin-expected-payments-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #0f172a;
}

.wbc-admin-open-tasks-header p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.wbc-admin-expected-payments-header p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.wbc-admin-expected-payments-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.wbc-admin-expected-payments-nav strong {
  min-width: 120px;
  text-align: center;
  color: #1e3a8a;
  font-size: 15px;
}

button.wbc-admin-expected-payments-nav-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0;
}

button.wbc-admin-expected-payments-nav-btn:hover,
button.wbc-admin-expected-payments-nav-btn:focus {
  background: #dbeafe;
  color: #1e40af;
}

.wbc-admin-expected-payments-weekdays,
.wbc-admin-expected-payments-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.wbc-admin-expected-payments-weekdays {
  margin-bottom: 6px;
}

.wbc-admin-expected-payments-weekdays span {
  padding: 4px 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.wbc-admin-expected-payments-day {
  min-height: 92px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px;
  overflow: hidden;
}

.wbc-admin-expected-payments-day.is-empty {
  visibility: hidden;
}

.wbc-admin-expected-payments-day.has-payments {
  background: #f8fbff;
  border-color: #bfdbfe;
}

.wbc-admin-expected-payments-day__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.wbc-admin-expected-payments-day__items {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.wbc-admin-expected-payment {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e1b4b;
  text-decoration: none;
}

.wbc-admin-expected-payment:hover,
.wbc-admin-expected-payment:focus {
  background: #e0e7ff;
  color: #1e1b4b;
  text-decoration: none;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.wbc-admin-expected-payment.is-soon {
  border-color: #fbbf24;
  background: #fffbeb;
  color: #78350f;
}

.wbc-admin-expected-payment.is-overdue {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #7f1d1d;
}

.wbc-admin-expected-payment.is-hosting-debt {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
  box-shadow: inset 3px 0 0 #dc2626;
}

.wbc-admin-expected-payment.is-hosting-debt:hover,
.wbc-admin-expected-payment.is-hosting-debt:focus {
  background: #fecaca;
  color: #7f1d1d;
}

.wbc-admin-expected-payment__client,
.wbc-admin-expected-payment__site,
.wbc-admin-expected-payment__meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wbc-admin-expected-payment__client {
  font-weight: 800;
  font-size: 12px;
}

.wbc-admin-expected-payment__site,
.wbc-admin-expected-payment__meta {
  font-size: 11px;
}

.wbc-admin-expected-payments-empty {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px dashed #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .wbc-admin-expected-payments-section {
    padding: 12px;
    overflow-x: auto;
  }

  .wbc-admin-expected-payments-header {
    min-width: 720px;
  }

  .wbc-admin-expected-payments-weekdays,
  .wbc-admin-expected-payments-calendar {
    min-width: 720px;
  }
}

.wbc-admin-open-tasks-loading {
  margin: 0;
  padding: 14px;
  border: 1px solid #dbe8f8;
  border-radius: 10px;
  background: #f8fbff;
  color: #1e293b;
}

.wbc-admin-global-open-tasks-table th:first-child,
.wbc-admin-global-open-tasks-table td:first-child {
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  white-space: normal;
}

.wbc-admin-global-open-tasks-table {
  width: 100%;
  table-layout: auto;
}

.wbc-admin-global-open-tasks-table th,
.wbc-admin-global-open-tasks-table td {
  width: 1%;
  white-space: nowrap;
}

.wbc-admin-open-task-title {
  white-space: normal !important;
  word-break: break-word;
}

.wbc-admin-open-task-site-link {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.wbc-admin-open-task-site-link:hover,
.wbc-admin-open-task-site-link:focus {
  color: #1e40af;
  text-decoration: underline;
}

select.wbc-admin-open-task-status,
input.wbc-admin-open-task-time {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d4e1f4;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 6px 10px;
  font-size: 14px;
}

select.wbc-admin-open-task-status:focus,
input.wbc-admin-open-task-time:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

button.wbc-admin-ai-fab {
  position: fixed;
  left: 20px;
  bottom: 18px;
  z-index: 140;
  min-height: 46px;
  border: 1px solid #0f766e;
  border-radius: 999px;
  background: #14b8a6;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.35);
}

button.wbc-admin-ai-fab:hover,
button.wbc-admin-ai-fab:focus {
  background: #0d9488;
  color: #ffffff;
}

.wbc-admin-ai-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
}

.wbc-admin-ai-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
}

.wbc-admin-ai-modal__panel {
  position: absolute;
  left: 16px;
  bottom: 72px;
  width: min(450px, calc(100vw - 32px));
  max-height: calc(100vh - 110px);
  border: 1px solid #d8f0ed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wbc-admin-ai-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5f1ef;
}

.wbc-admin-ai-modal__head h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.wbc-admin-ai-modal__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

button.wbc-admin-ai-head-btn {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.wbc-admin-ai-head-btn:hover,
button.wbc-admin-ai-head-btn:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-admin-ai-head-btn.is-copied {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.wbc-admin-ai-modal__messages {
  padding: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 210px;
  flex: 1 1 auto;
}

.wbc-admin-ai-history {
  position: absolute;
  z-index: 2;
  top: 59px;
  right: 0;
  left: 0;
  bottom: 124px;
  padding: 12px;
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid #e5f1ef;
}

.wbc-admin-ai-history__title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.wbc-admin-ai-history__item { display: block; width: 100%; padding: 10px; margin-bottom: 6px; border: 1px solid #d4e1f4; border-radius: 9px; background: #f8fbff; text-align: right; color: #0f172a; cursor: pointer; }
.wbc-admin-ai-history__item:hover, .wbc-admin-ai-history__item:focus-visible { background: #e0f2fe; outline: 2px solid #93c5fd; }
.wbc-admin-ai-message__image { display: block; width: min(100%, 240px); max-height: 240px; object-fit: contain; margin-top: 8px; border-radius: 8px; }

.wbc-admin-ai-message {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: pre-line;
  font-size: 14px;
}

.wbc-admin-ai-message--assistant {
  background: #ecfeff;
  color: #0f172a;
  align-self: flex-start;
}

.wbc-admin-ai-message--user {
  background: #e0f2fe;
  color: #0f172a;
  align-self: flex-end;
}

.wbc-admin-ai-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  background: #ecfeff;
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 85%;
}

.wbc-admin-ai-typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0e7490;
  animation: wbc-ai-bounce 1.2s infinite ease-in-out;
}

.wbc-admin-ai-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.wbc-admin-ai-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes wbc-ai-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.wbc-admin-ai-modal__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 10px;
  border-top: 1px solid #e5f1ef;
}

.wbc-admin-ai-modal__composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.wbc-admin-ai-modal__composer textarea {
  width: 100%;
  min-height: 52px;
  height: 52px;
  max-height: 140px;
  resize: vertical;
  border: 1px solid #d4e1f4;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 10px;
  margin: 0;
}

.wbc-admin-ai-modal__composer textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

button.wbc-admin-ai-send,
button.wbc-admin-ai-mic,
button.wbc-admin-ai-attach {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

button.wbc-admin-ai-send:hover,
button.wbc-admin-ai-send:focus,
button.wbc-admin-ai-mic:hover,
button.wbc-admin-ai-mic:focus,
button.wbc-admin-ai-attach:hover,
button.wbc-admin-ai-attach:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

.wbc-admin-ai-attachments { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.wbc-admin-ai-attachment { position: relative; width: 56px; height: 56px; }
.wbc-admin-ai-attachment img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.wbc-admin-ai-attachment button { position: absolute; top: -5px; left: -5px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #0f172a; color: #fff; cursor: pointer; }

button.wbc-admin-ai-mic.is-active {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

button.wbc-admin-ai-mic.is-active:hover,
button.wbc-admin-ai-mic.is-active:focus {
  background: #fecaca;
  color: #7f1d1d;
}

button.wbc-admin-sidebar-add-client:hover,
button.wbc-admin-sidebar-add-client:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

.wbc-admin-main-create-host {
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 8px;
}

.wbc-admin-main-create-host .wbc-admin-create-form {
  max-width: 720px;
  margin: 0 auto;
}

.wbc-create-name-wrap {
  position: relative;
}

.wbc-create-name--linked {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
}

.wbc-create-name-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 100;
  background: #ffffff;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.wbc-create-name-suggestion {
  padding: 9px 12px;
  font-size: 13px;
  color: #1e3a8a;
  cursor: pointer;
  border-bottom: 1px solid #f0f4fb;
}

.wbc-create-name-suggestion:last-child {
  border-bottom: 0;
}

.wbc-create-name-suggestion:hover {
  background: #eff6ff;
}

.wbc-admin-create-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wbc-admin-create-form__label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.wbc-admin-create-form__input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 10px;
  margin: 0;
  font-size: 14px;
}

.wbc-admin-create-form__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #334155;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.wbc-admin-create-form__check input {
  inline-size: 17px;
  block-size: 17px;
  accent-color: #5f5cf0;
}

.wbc-admin-create-form .select2-container {
  width: 100% !important;
}

.wbc-admin-create-form .select2-container .select2-selection--single,
.wbc-admin-create-form .select2-container .select2-selection--multiple {
  min-height: 36px;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
}

.wbc-admin-create-form
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #0f172a;
  line-height: 34px;
  padding-right: 10px;
  padding-left: 28px;
}

.wbc-admin-create-form
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 34px;
}

.wbc-admin-create-form__actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

button.wbc-admin-create-form__save,
button.wbc-admin-create-form__cancel {
  flex: 1;
  min-height: 36px;
  border-radius: 8px;
}

button.wbc-admin-create-form__save {
  border: 1px solid #93c5fd;
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-admin-create-form__save:hover,
button.wbc-admin-create-form__save:focus {
  background: #bfdbfe;
  color: #1e3a8a;
}

button.wbc-admin-create-form__cancel {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

button.wbc-admin-create-form__cancel:hover,
button.wbc-admin-create-form__cancel:focus {
  background: #f1f5f9;
  color: #334155;
}

.wbc-admin-clients-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wbc-admin-client-item__initials {
  display: none;
}

.wbc-admin-clients-pane.is-collapsed .wbc-admin-clients-title,
.wbc-admin-clients-pane.is-collapsed .wbc-admin-clients-search,
.wbc-admin-clients-pane.is-collapsed button.wbc-admin-sidebar-add-client,
.wbc-admin-clients-pane.is-collapsed .wbc-admin-client-group__title,
.wbc-admin-clients-pane.is-collapsed .wbc-admin-client-item__name,
.wbc-admin-clients-pane.is-collapsed .wbc-admin-client-item__meta {
  display: none !important;
}

.wbc-admin-clients-pane.is-collapsed .wbc-admin-clients-head {
  justify-content: center;
}

.wbc-admin-clients-pane.is-collapsed {
  padding: 8px;
  overflow-x: hidden;
}

.wbc-admin-clients-pane.is-collapsed .wbc-admin-clients-list {
  align-items: center;
  gap: 8px;
}

.wbc-admin-clients-pane.is-collapsed .wbc-admin-client-group,
.wbc-admin-clients-pane.is-collapsed .wbc-admin-client-group__items {
  display: contents;
}

.wbc-admin-clients-pane.is-collapsed .wbc-admin-client-item {
  direction: ltr;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.wbc-admin-clients-pane.is-collapsed .wbc-admin-client-item__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

.wbc-admin-client-group {
  min-width: 0;
  border: 1px solid #dbe8f8;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
  margin: 14px 0 20px 0;
}

.wbc-admin-client-group + .wbc-admin-client-group {
  position: relative;
}

.wbc-admin-client-group + .wbc-admin-client-group::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  border-top: 1px solid #dbe8f8;
}

.wbc-admin-client-group__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.wbc-admin-client-group__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wbc-admin-client-item {
  direction: ltr;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: stretch;
  text-align: right;
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.wbc-admin-sites-selector {
  margin: 0 0 10px;
  border: 1px solid #d7e2f1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  padding: 10px;
}

.wbc-admin-sites-title {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.wbc-admin-sites-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button.wbc-admin-site-add {
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  background: #eef6ff;
  color: #1e3a8a;
  padding: 6px 12px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

button.wbc-admin-site-add:hover,
button.wbc-admin-site-add:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-admin-site-box {
  border: 1px solid #d5e2f4;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 6px 10px;
  min-height: 36px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

button.wbc-admin-site-box:hover,
button.wbc-admin-site-box:focus {
  background: #eff6ff;
  color: #1e3a8a;
}

button.wbc-admin-site-box.is-active {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e3a8a;
}

img.wbc-site-box-favicon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-inline-end: 5px;
}

img.wbc-client-item-favicon {
  position: absolute;
  bottom: 7px;
  inset-inline-start: 9px;
  width: 12px;
  height: 12px;
  object-fit: contain;
  border-radius: 2px;
}

.wbc-admin-clients-pane.is-collapsed img.wbc-client-item-favicon {
  display: none;
}

.wbc-ai-unmatched-map {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e0eaf6;
  border-radius: 10px;
  background: #f8fafc;
}

.wbc-ai-unmatched-map__title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 8px;
}

.wbc-ai-unmatched-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 10px;
}

.wbc-ai-unmatched-table th,
.wbc-ai-unmatched-table td {
  text-align: right;
  padding: 5px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.wbc-ai-unmatched-table th {
  font-weight: 600;
  color: #64748b;
}

.wbc-ai-map-select {
  width: 100%;
  min-width: 140px;
  font-size: 13px;
  padding: 3px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
}

button.wbc-ai-map-submit-btn {
  background: var(--wbc-indigo);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
}

button.wbc-ai-map-submit-btn:hover,
button.wbc-ai-map-submit-btn:focus {
  background: var(--wbc-indigo);
  color: #ffffff;
}

button.wbc-ai-map-submit-btn:disabled {
  background: #93c5fd;
  color: #ffffff;
  cursor: not-allowed;
}

.wbc-client-sites-selector {
  display: none;
}

.wbc-admin-client-item:hover,
.wbc-admin-client-item:focus {
  background: #eef6ff;
  color: #0f172a;
}

.wbc-admin-client-item.is-active {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e3a8a;
}

.wbc-admin-client-item__name {
  font-weight: 700;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: left;
}

.wbc-admin-client-item__meta {
  font-size: 12px;
  color: #475569;
}

.wbc-admin-main-pane {
  min-width: 0;
}

#wbc-admin-main-pane.is-create-mode > :not(#wbc-admin-main-create-host) {
  display: none !important;
}

#wbc-admin-main-pane.is-create-mode #wbc-admin-main-create-host {
  display: block !important;
}

button.wbc-admin-clients-toggle {
  display: none;
  margin-bottom: 8px;
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #eef6ff;
  color: #1e3a8a;
}

button.wbc-admin-clients-toggle:hover,
button.wbc-admin-clients-toggle:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

.wbc-manage-card {
  border: 1px solid var(--wbc-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.wbc-manage-card h3 {
  margin: 0 0 10px;
}

.wbc-manage-card p {
  margin: 0 0 6px;
}

.wbc-manage-sections {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.wbc-manage-section {
  border: 1px solid #dbe8f8;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

.wbc-manage-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.wbc-manage-section--manager .wbc-manage-section__head {
  position: relative;
  padding-left: 38px;
}

.wbc-manage-section__head h4 {
  margin: 0;
  color: #1e3a8a;
  font-size: 15px;
}

.wbc-manage-section__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wbc-manage-section__title .iconify {
  color: #2563eb;
  font-size: 1.05em;
}

.wbc-manage-section__lead {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}

.wbc-manage-empty {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.wbc-manage-section__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wbc-manage-section--referral .wbc-manage-section__head {
  position: relative;
}

.wbc-manage-referral-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wbc-manage-referral-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wbc-manage-referral-field__label {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

.wbc-manage-referral-field__input {
  min-height: 36px;
  border: 1px solid #cbdcf5;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 10px;
}

.wbc-manage-referral-field__input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.22);
  outline: none;
}

.wbc-manage-referral-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.wbc-manage-referral-note {
  margin-top: 6px;
  font-size: 11px;
}

.wbc-manage-section__actions--danger {
  width: 100%;
  justify-content: flex-start;
}

button.wbc-manage-manager-edit {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--wbc-indigo);
}

button.wbc-manage-manager-edit:hover,
button.wbc-manage-manager-edit:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-manage-referral-edit {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--wbc-indigo);
}

button.wbc-manage-referral-edit:hover,
button.wbc-manage-referral-edit:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-manage-reminder-send {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #b45309;
}

button.wbc-manage-reminder-send:hover,
button.wbc-manage-reminder-send:focus {
  background: #fef3c7;
  color: #92400e;
}

button.wbc-manage-manager-detach {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #dc2626;
}

button.wbc-manage-manager-detach:hover,
button.wbc-manage-manager-detach:focus {
  background: #ffe4e6;
  color: #b91c1c;
}

button.wbc-manage-referral-detach,
button.wbc-manage-client-detach {
  position: static;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #dc2626;
}

button.wbc-manage-referral-detach:hover,
button.wbc-manage-referral-detach:focus,
button.wbc-manage-client-detach:hover,
button.wbc-manage-client-detach:focus {
  background: #ffe4e6;
  color: #b91c1c;
}

button.wbc-manage-logs-clear {
  border: 1px solid #fca5a5;
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
}

button.wbc-manage-logs-clear:hover,
button.wbc-manage-logs-clear:focus {
  background: #ffe4e6;
  color: #881337;
}

button.wbc-manage-logs-toggle {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--wbc-indigo);
}

button.wbc-manage-logs-toggle:hover,
button.wbc-manage-logs-toggle:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-manage-client-remove {
  border: 1px solid #fca5a5;
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

button.wbc-manage-client-remove:hover,
button.wbc-manage-client-remove:focus {
  background: #ffe4e6;
  color: #881337;
}

button.wbc-manage-client-remove:disabled {
  opacity: 0.7;
  background: #fff1f2;
  color: #9f1239;
}

.wbc-manage-logs-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease;
}

.wbc-manage-logs-accordion.is-open {
  max-height: 360px;
}

.wbc-manage-logs-list {
  border-top: 1px solid #dbe8f8;
  margin-top: 10px;
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.wbc-manage-log-item {
  border: 1px solid #dbe8f8;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.wbc-manage-log-item__title {
  display: block;
  color: #0f172a;
}

.wbc-manage-log-item__meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 12px;
}

.wbc-manage-fields-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  box-sizing: border-box;
}

.wbc-manage-field {
  border: 1px solid #dbe8f8;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px;
  min-width: 0;
  box-sizing: border-box;
}

.wbc-manage-fields-grid > div[data-field-key='client_products'] {
  grid-column: 1 / -1;
  width: 100%;
}

.wbc-manage-fields-grid > div[data-field-key='notes'] {
  grid-column: 1 / -1;
  width: 100%;
}

.wbc-manage-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.wbc-manage-field__label {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

.wbc-manage-field__value {
  font-size: 14px;
  color: #0f172a;
  word-break: break-word;
  white-space: pre-line;
}

button.wbc-manage-field__edit {
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--wbc-indigo);
}

button.wbc-manage-field__edit:hover,
button.wbc-manage-field__edit:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

.wbc-manage-inline-edit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wbc-manage-inline-edit__input {
  flex: 1;
  min-width: 0;
}

.wbc-manage-products-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbe8f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
}

.wbc-manage-products-editor__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.wbc-manage-products-editor__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #334155;
}

.wbc-manage-products-editor__summary span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d7e5f6;
  border-radius: 999px;
  background: #ffffff;
}

.wbc-manage-products-editor__note {
  margin-top: -2px;
  font-size: 12px;
  color: #64748b;
}

.wbc-manage-products__count {
  font-weight: 700;
  color: #1e3a8a;
}

.wbc-manage-products-editor__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wbc-manage-products-row {
  display: grid;
  grid-template-columns:
    minmax(130px, 2fr) repeat(3, minmax(80px, 1fr))
    minmax(88px, auto);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid #dbe8f8;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.wbc-manage-products-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 82%;
}

.wbc-manage-products-field--action {
  justify-content: flex-end;
}

.wbc-manage-products-field__label {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

.wbc-manage-products-field__input,
.wbc-manage-products-field__select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbdcf5;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 10px;
  margin: 0;
}

.wbc-manage-products-field__input:focus,
.wbc-manage-products-field__select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.22);
  outline: none;
}

.wbc-manage-products-editor__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

button.wbc-manage-products__add {
  min-height: 30px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--wbc-indigo);
}

button.wbc-manage-products__add:hover,
button.wbc-manage-products__add:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-manage-products__remove {
  width: 100%;
  min-height: 38px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
}

button.wbc-manage-products__remove:hover,
button.wbc-manage-products__remove:focus {
  background: #ffe4e6;
  color: #881337;
}

button.wbc-manage-inline-edit__save,
button.wbc-manage-inline-edit__cancel {
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  height: 26px;
  padding: 0;
  border-radius: 8px;
}

button.wbc-manage-inline-edit__add {
  min-height: 26px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--wbc-indigo);
  font-size: 12px;
}

button.wbc-manage-inline-edit__add:hover,
button.wbc-manage-inline-edit__add:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

.wbc-manage-name-suggestions {
  margin-top: 8px;
  border: 1px solid #dbe8f8;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.wbc-manage-name-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #cbdcf5;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px 8px;
}

.wbc-manage-name-option.is-new {
  border-style: dashed;
  background: #f8fffb;
}

.wbc-manage-name-option__label {
  flex: 1;
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.wbc-manage-name-option__actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

button.wbc-manage-name-option__action {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  border-radius: 7px;
}

button.wbc-manage-name-option__action--add {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

button.wbc-manage-name-option__action--add:hover,
button.wbc-manage-name-option__action--add:focus {
  background: #dcfce7;
  color: #14532d;
}

button.wbc-manage-name-option__action--remove {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #9f1239;
}

button.wbc-manage-name-option__action--remove:hover,
button.wbc-manage-name-option__action--remove:focus {
  background: #ffe4e6;
  color: #881337;
}

button.wbc-manage-inline-edit__save {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

button.wbc-manage-inline-edit__save:hover,
button.wbc-manage-inline-edit__save:focus {
  background: #dcfce7;
  color: #14532d;
}

button.wbc-manage-inline-edit__cancel {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #9f1239;
}

button.wbc-manage-inline-edit__cancel:hover,
button.wbc-manage-inline-edit__cancel:focus {
  background: #ffe4e6;
  color: #881337;
}

.wbc-admin-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.wbc-admin-picker-modal,
.wbc-admin-picker-modal *,
.wbc-payment-reminder-modal,
.wbc-payment-reminder-modal *,
.wbc-create-payment-modal,
.wbc-create-payment-modal * {
  font-family: 'Simona Pro', sans-serif;
}

.wbc-admin-picker-modal__dialog h3,
.wbc-payment-reminder-modal__dialog h3,
.wbc-create-payment-modal__dialog h3 {
  font-family: 'Ella Sans', sans-serif;
}

.wbc-admin-picker-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.wbc-admin-picker-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 0;
  border: 1px solid #dbe8f8;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.wbc-admin-picker-modal__dialog h3 {
  margin: 0 0 10px;
}

.wbc-payment-reminder-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.wbc-payment-reminder-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.wbc-payment-reminder-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 0;
  border: 1px solid #dbe8f8;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.wbc-payment-reminder-modal__dialog h3 {
  margin: 0 0 10px;
}

.wbc-payment-reminder-modal__lead {
  margin: 0 0 12px;
  color: #475569;
  font-size: 13px;
}

.wbc-payment-reminder-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.wbc-payment-reminder-field > span {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.wbc-payment-reminder-input,
.wbc-payment-reminder-textarea {
  width: 100%;
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  padding: 10px 12px;
}

.wbc-payment-reminder-channel-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wbc-payment-reminder-channel-option {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  color: #0f172a;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
}

.wbc-payment-reminder-channel-option input {
  margin: 0;
}

.wbc-payment-reminder-textarea {
  resize: vertical;
  min-height: 160px;
}

.wbc-payment-reminder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.wbc-create-payment-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.wbc-create-payment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.wbc-create-payment-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 0;
  border: 1px solid #dbe8f8;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.wbc-create-payment-modal__dialog h3 {
  margin: 0 0 10px;
}

.wbc-create-payment-modal__lead {
  margin: 0 0 12px;
  color: #475569;
  font-size: 13px;
}

.wbc-create-payment-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.wbc-create-payment-field > span {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.wbc-create-payment-input {
  width: 100%;
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  padding: 10px 12px;
  box-sizing: border-box;
}

.wbc-create-payment-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.22);
}

.wbc-create-payment-products-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 6px 0 10px;
}

.wbc-create-payment-products-head strong {
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 800;
}

button.wbc-create-payment-product-add {
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  font-family: 'Ella Sans', sans-serif;
  font-weight: 800;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
}

button.wbc-create-payment-product-add:hover,
button.wbc-create-payment-product-add:focus {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
}

.wbc-create-payment-products {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.wbc-create-payment-product-row {
  align-items: end;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  grid-template-columns:
    minmax(170px, 1fr) minmax(160px, 1.1fr)
    76px 96px 128px 40px;
  max-width: 100%;
  padding: 10px;
  width: 100%;
}

.wbc-create-payment-product-row .wbc-create-payment-field {
  margin-bottom: 0;
  min-width: 0;
}

button.wbc-create-payment-product-remove {
  align-items: center;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  color: #b91c1c;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0;
}

button.wbc-create-payment-product-remove:hover,
button.wbc-create-payment-product-remove:focus {
  border-color: #fca5a5;
  background: #ffe4e6;
  color: #991b1b;
}

.wbc-edit-payment-page-modal__dialog {
  max-width: 980px;
}

.wbc-edit-payment-page-modal .button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-family: 'Ella Sans', sans-serif;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.wbc-edit-payment-page-modal .button:hover,
.wbc-edit-payment-page-modal .button:focus {
  transform: translateY(-1px);
}

.wbc-edit-payment-page-modal .button .iconify {
  font-size: 18px;
}

button.wbc-create-payment-modal__close {
  align-items: center;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  color: #1e3a8a;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  min-width: 36px;
  padding: 0;
}

.wbc-edit-payment-page-products-head .button {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.wbc-edit-payment-page-products-head .button:hover,
.wbc-edit-payment-page-products-head .button:focus {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e40af;
}

.wbc-edit-payment-page-modal .wbc-create-payment-actions .button {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.wbc-edit-payment-page-modal .wbc-create-payment-actions .button:hover,
.wbc-edit-payment-page-modal .wbc-create-payment-actions .button:focus {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.wbc-edit-payment-page-modal
  .wbc-create-payment-actions
  .wbc-create-payment-submit {
  border-color: #23b7dc;
  background: linear-gradient(135deg, #615cf6, #20b8dc);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.wbc-edit-payment-page-modal
  .wbc-create-payment-actions
  .wbc-create-payment-submit:hover,
.wbc-edit-payment-page-modal
  .wbc-create-payment-actions
  .wbc-create-payment-submit:focus {
  border-color: #1d9fca;
  background: linear-gradient(135deg, #5148ec, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.wbc-edit-payment-page-modal .wbc-create-payment-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.wbc-edit-payment-page-options,
.wbc-edit-payment-page-products-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
}

.wbc-edit-payment-page-settings-grid {
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  max-width: 100%;
  width: 100%;
}

.wbc-edit-payment-page-fieldset {
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
  padding: 10px;
}

.wbc-edit-payment-page-fieldset legend {
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  padding: 0 6px;
}

.wbc-edit-payment-page-products {
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  margin-top: 10px;
  max-width: 100%;
  width: 100%;
}

.wbc-payment-page-edit-product {
  align-items: end;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  grid-template-columns:
    minmax(160px, 1fr) minmax(160px, 1.15fr)
    80px 96px 128px 42px;
  max-width: 100%;
  padding: 10px;
  width: 100%;
}

.wbc-payment-page-edit-product label {
  display: grid;
  gap: 4px;
}

.wbc-payment-page-edit-product span {
  color: #637089;
  font-size: 12px;
  font-weight: 700;
}

.wbc-payment-page-edit-product__label-heading {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

a.wbc-payment-page-edit-product__hour-unit {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 3px;
  line-height: 1;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 120ms ease, transform 120ms ease;
}

a.wbc-payment-page-edit-product__hour-unit:hover,
a.wbc-payment-page-edit-product__hour-unit:focus-visible {
  color: #1d4ed8;
}

.wbc-payment-page-edit-product.is-switching-unit a.wbc-payment-page-edit-product__hour-unit {
  opacity: 0;
  transform: translateY(-3px);
}

.wbc-payment-page-edit-product input,
.wbc-payment-page-edit-product select {
  border: 1px solid #d4def4;
  border-radius: 8px;
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 9px;
  width: 100%;
}

button.wbc-payment-page-edit-product-remove {
  align-items: center;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  min-width: 36px;
  padding: 0;
}

button.wbc-payment-page-edit-product-remove:hover,
button.wbc-payment-page-edit-product-remove:focus {
  border-color: #fca5a5;
  background: #ffe4e6;
  color: #991b1b;
}

@media (max-width: 900px) {
  .wbc-edit-payment-page-settings-grid {
    grid-template-columns: 1fr;
  }

  .wbc-payment-page-edit-product {
    grid-template-columns: 1fr;
  }

  .wbc-create-payment-product-row {
    grid-template-columns: 1fr;
  }

  button.wbc-payment-page-edit-product-remove {
    width: 100%;
  }

  button.wbc-create-payment-product-remove {
    width: 100%;
  }
}

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

.wbc-create-payment-grid--double .wbc-create-payment-field {
  margin-bottom: 0;
}

.wbc-create-payment-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 12px;
}

.wbc-create-payment-currency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wbc-create-payment-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 14px;
}

.wbc-create-payment-check input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.wbc-create-payment-cycles-block {
  margin: 0 0 12px;
}

.wbc-create-payment-cycles-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 8px;
}

.wbc-create-payment-cycles-grid {
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wbc-create-payment-methods {
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  padding: 10px;
  margin: 2px 0 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wbc-create-payment-methods legend {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  padding: 0 6px;
}

.wbc-create-payment-apps {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
}

.wbc-create-payment-apps__title {
  display: block;
  margin: 0 0 8px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
}

.wbc-create-payment-apps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wbc-create-payment-status {
  min-height: 18px;
  margin: 0 0 10px;
  color: #334155;
  font-size: 13px;
}

.wbc-create-payment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

button.wbc-create-payment-cancel,
button.wbc-create-payment-submit {
  border-radius: 10px;
  min-width: 120px;
}

button.wbc-create-payment-cancel {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--wbc-indigo);
}

button.wbc-create-payment-cancel:hover,
button.wbc-create-payment-cancel:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-create-payment-submit {
  border: 1px solid #93c5fd;
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-create-payment-submit:hover,
button.wbc-create-payment-submit:focus {
  background: #bfdbfe;
  color: #1e3a8a;
}

button.wbc-create-payment-submit:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
}

button.wbc-payment-reminder-cancel,
button.wbc-payment-reminder-send {
  border-radius: 10px;
  min-width: 100px;
}

button.wbc-payment-reminder-cancel {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--wbc-indigo);
}

button.wbc-payment-reminder-cancel:hover,
button.wbc-payment-reminder-cancel:focus {
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-payment-reminder-send {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #b45309;
}

button.wbc-payment-reminder-send:hover,
button.wbc-payment-reminder-send:focus {
  background: #fef3c7;
  color: #92400e;
}

.wbc-admin-picker-search {
  width: 100%;
  margin: 0 0 10px;
}

.wbc-admin-picker-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  max-height: 360px;
  overflow: auto;
}

button.wbc-admin-picker-item {
  width: 100%;
  text-align: right;
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

button.wbc-admin-picker-item:hover,
button.wbc-admin-picker-item:focus {
  background: #eef6ff;
  color: #0f172a;
}

button.wbc-admin-picker-item.is-active {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1e3a8a;
}

.wbc-admin-picker-item__title {
  font-weight: 700;
}

/* ─── Modal close button ─────────────────────────────── */

button.wbc-add-task-modal__close {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.wbc-add-task-modal__close:hover,
button.wbc-add-task-modal__close:focus {
  background: #e2e8f0;
  color: #0f172a;
}

/* ─── Modal select ───────────────────────────────────── */

select.wbc-modal-select {
  appearance: auto;
  cursor: pointer;
}

/* ─── Screenshot column in task table ───────────────── */

.wbc-task-screenshot-cell {
  width: 72px;
  min-width: 72px;
  text-align: center;
  vertical-align: middle;
}

img.wbc-screenshot-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.wbc-screenshot-lightbox {
  display: inline-flex;
}

.wbc-screenshot-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wbc-screenshot-lightbox-modal.wbc-hidden {
  display: none;
}

.wbc-screenshot-lightbox-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
}

.wbc-screenshot-lightbox-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1120px, 96vw);
  max-height: 92vh;
}

.wbc-screenshot-lightbox-modal__image {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

button.wbc-screenshot-lightbox-modal__close {
  position: absolute;
  top: -14px;
  inset-inline-end: -14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.25);
}

body.wbc-screenshot-lightbox-open {
  overflow: hidden;
}

.wbc-task-details-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  direction: rtl;
}

.wbc-task-details-modal.wbc-hidden {
  display: none;
}

.wbc-task-details-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
}

.wbc-task-details-modal__dialog {
  position: relative;
  width: min(920px, 96vw);
  max-height: min(86vh, 760px);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.34);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
}

.wbc-task-details-modal__dialog,
.wbc-task-details-modal__dialog input,
.wbc-task-details-modal__dialog textarea,
.wbc-task-details-modal__dialog select,
.wbc-task-details-modal__dialog button {
  font-family: 'Ella Sans', sans-serif;
}

.wbc-task-details-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.wbc-task-details-modal__head h3 {
  margin: 0;
  font-family: 'Ella Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

button.wbc-task-details-modal__close {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 10px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.wbc-task-details-modal__dialog button.button {
  appearance: none;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  min-height: 36px;
  padding: 0;
  font: inherit;
  font-family: 'Ella Sans', sans-serif;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

.wbc-task-details-modal__dialog button.button:hover,
.wbc-task-details-modal__dialog button.button:focus {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.wbc-task-details-modal__dialog button.button:disabled {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

button.wbc-task-details-modal__close {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
  padding: 0;
}

button.wbc-task-details-modal__close:hover,
button.wbc-task-details-modal__close:focus {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #312e81;
}

button.wbc-task-comments__submit {
  min-width: 104px;
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

button.wbc-task-comments__submit:hover,
button.wbc-task-comments__submit:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.wbc-task-details-modal__body {
  overflow: auto;
  padding: 18px 20px 20px;
}

.wbc-task-details-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.wbc-task-details-summary__item,
.wbc-task-details-summary__links {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 12px;
}

.wbc-task-details-summary__item span,
.wbc-task-details-summary__links > span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #64748b;
}

.wbc-task-details-summary__item strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wbc-task-details-summary__links {
  margin-top: 10px;
}

.wbc-task-details-summary__screenshot {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow: hidden;
  cursor: zoom-in;
}

.wbc-task-details-summary__screenshot:focus {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.wbc-task-details-summary__screenshot img {
  display: block;
  width: 160px;
  max-height: 120px;
  object-fit: cover;
}

.wbc-task-details-loading,
.wbc-task-details-error,
.wbc-task-comments__empty {
  font-family: 'Ella Sans', sans-serif;
  color: #64748b;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
}

.wbc-task-details-error {
  color: #b91c1c;
  background: #fff1f2;
}

.wbc-task-comments {
  margin-top: 18px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
  padding-top: 16px;
}

.wbc-task-comments h4 {
  margin: 0 0 12px;
  font-family: 'Ella Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.wbc-task-comments__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-inline-end: 4px;
}

.wbc-task-comment {
  max-width: 78%;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fafc;
}

.wbc-task-comment--admin {
  margin-inline-start: auto;
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.22);
}

.wbc-task-comment.is-highlighted {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.wbc-task-comment__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #64748b;
}

.wbc-task-comment__meta strong {
  color: #0f172a;
}

.wbc-task-comment__message {
  color: #111827;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wbc-task-comments__form {
  margin-top: 14px;
}

.wbc-task-comments__textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-family: 'Ella Sans', sans-serif;
  outline: none;
}

.wbc-task-comments__textarea:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wbc-task-comments__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.wbc-task-comments__status {
  color: #64748b;
  font-size: 13px;
}

button.wbc-task-comments__submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wbc-email-unsubscribe {
  max-width: 560px;
  margin: 40px auto;
  padding: 24px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  font-family: 'Almoni', 'Assistant', sans-serif;
  color: #0f172a;
}

.wbc-email-unsubscribe h2 {
  margin: 0 0 16px;
  font-family: 'Almoni', 'Assistant', sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.wbc-email-unsubscribe__message {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
}

.wbc-email-unsubscribe__message.is-success {
  background: #ecfdf5;
  color: #047857;
}

.wbc-email-unsubscribe__message.is-error {
  background: #fff1f2;
  color: #b91c1c;
}

.wbc-email-unsubscribe__options {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.wbc-email-unsubscribe__option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  font-weight: 800;
}

.wbc-email-unsubscribe__option input[type='checkbox'] {
  width: 18px;
  height: 18px;
}

.wbc-email-unsubscribe__other {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: 'Almoni', 'Assistant', sans-serif;
}

.wbc-email-unsubscribe__option
  input[data-unsubscribe-other-toggle='1']:checked
  ~ .wbc-email-unsubscribe__other {
  display: block;
}

button.wbc-email-unsubscribe__submit {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid #2563eb;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-family: 'Almoni', 'Assistant', sans-serif;
  font-weight: 900;
  cursor: pointer;
}

.wbc-task-locked {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

@media (max-width: 760px) {
  .wbc-task-details-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wbc-task-comment {
    max-width: 92%;
  }
}

@media (max-width: 520px) {
  .wbc-task-details-modal {
    padding: 10px;
  }

  .wbc-task-details-modal__dialog {
    max-height: 92vh;
  }

  .wbc-task-details-summary__grid {
    grid-template-columns: 1fr;
  }

  .wbc-task-comments__actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.wbc-screenshot-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px dashed #93c5fd;
  background: #f0f9ff;
  color: #3b82f6;
  font-size: 20px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.wbc-screenshot-upload-label:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

.wbc-screenshot-uploading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 20px;
}

/* ─── Modal screenshot dropzone ─────────────────────── */

.wbc-modal-screenshot-drop {
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition:
    border-color 0.15s,
    background 0.15s;
  user-select: none;
}

.wbc-modal-screenshot-drop:hover,
.wbc-modal-screenshot-drop:focus {
  border-color: #93c5fd;
  background: #f0f9ff;
  outline: none;
}

.wbc-modal-screenshot-drop.dragover {
  border-color: #60a5fa;
  background: #eff6ff;
}

.wbc-modal-drop-icon {
  font-size: 30px;
  color: #94a3b8;
}

.wbc-modal-drop-text {
  font-size: 12px;
  color: #64748b;
}

.wbc-modal-drop-replace {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

img.wbc-modal-screenshot-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.wbc-modal-screenshot-expiry-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.wbc-admin-picker-item__meta {
  font-size: 12px;
  color: #475569;
}

.wbc-admin-picker-empty {
  margin: 6px 0;
  color: #475569;
}

.wbc-admin-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

button.wbc-admin-picker-cancel {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #0f172a;
}

button.wbc-admin-picker-cancel:hover,
button.wbc-admin-picker-cancel:focus {
  background: #f8fafc;
  color: #0f172a;
}

button.wbc-admin-picker-save {
  border: 1px solid #93c5fd;
  background: #dbeafe;
  color: #1e3a8a;
}

button.wbc-admin-picker-save:hover,
button.wbc-admin-picker-save:focus {
  background: #bfdbfe;
  color: #1e3a8a;
}

.wbc-shared-footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wbc-shared-footer__text {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.wbc-shared-footer__lottie {
  width: 220px;
  max-width: 60vw;
  height: 70px;
}

.wbc-list-item small {
  color: var(--wbc-muted);
}

.wbc-message {
  min-height: 24px;
  color: #374151;
}

.wbc-message-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  font-family: 'Simona Pro', 'Ella Sans', sans-serif;
}

.wbc-message-row *,
#wbc-auth-message,
#wbc-resend-otp,
#wbc-whatsapp-note {
  font-family: 'Simona Pro', 'Ella Sans', sans-serif;
}

#wbc-resend-otp {
  color: #0f3ec9;
  text-decoration: underline;
  cursor: pointer;
}

#wbc-whatsapp-note {
  margin: 4px 0 0;
  text-align: center;
  color: #475569;
  font-size: 14px;
}

.wbc-hidden {
  display: none;
}

/* Keep transient portal overlays hidden even when component styles are loaded later. */
.wbc-portal-loading.wbc-hidden,
.wbc-client-message-modal.wbc-hidden,
.wbc-communication-view-modal.wbc-hidden,
.wbc-screenshot-lightbox-modal.wbc-hidden,
.wbc-task-details-modal.wbc-hidden,
.wbc-admin-picker-modal.wbc-hidden,
.wbc-payment-reminder-modal.wbc-hidden,
.wbc-create-payment-modal.wbc-hidden,
.wbc-edit-payment-page-modal.wbc-hidden {
  display: none !important;
}

/* Hide status_name field */
[data-field-key='status_name'] {
  display: none;
}

/* ── Manual Debt section ─────────────────────────────────────────────── */
.wbc-client-debts-section {
  margin-top: 24px;
}

.wbc-client-debts-section h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

button.wbc-add-debt-btn {
  min-height: 30px;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  background: #fee2e2;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

button.wbc-add-debt-btn:hover,
button.wbc-add-debt-btn:focus {
  background: #fecaca;
  color: #7f1d1d;
}

.wbc-client-debts-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button.wbc-settle-debt-btn {
  min-height: 30px;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

button.wbc-settle-debt-btn:hover,
button.wbc-settle-debt-btn:focus {
  background: #bbf7d0;
  color: #14532d;
}

.wbc-add-debt-form {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.wbc-add-debt-form.wbc-hidden {
  display: none;
}

.wbc-add-debt-form.is-settlement {
  background: #ecfdf5;
  border-color: #86efac;
}

.wbc-add-debt-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  color: #7c3aed;
  gap: 4px;
}

.wbc-add-debt-form input[type='number'],
.wbc-add-debt-form input[type='text'] {
  border: 1px solid #d1d5db;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 14px;
}

button.wbc-debt-form-submit {
  min-height: 36px;
  border: 1px solid #22c55e;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
}

button.wbc-debt-form-submit:hover,
button.wbc-debt-form-submit:focus {
  background: #bbf7d0;
  color: #14532d;
}

.wbc-add-debt-form.is-settlement button.wbc-debt-form-submit {
  border-color: #22c55e;
  background: #dcfce7;
  color: #166534;
}

.wbc-add-debt-form.is-settlement button.wbc-debt-form-submit:hover,
.wbc-add-debt-form.is-settlement button.wbc-debt-form-submit:focus {
  background: #bbf7d0;
  color: #14532d;
}

button.wbc-debt-form-submit:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}

button.wbc-debt-form-cancel {
  min-height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
}

button.wbc-debt-form-cancel:hover,
button.wbc-debt-form-cancel:focus {
  background: #f1f5f9;
  color: #475569;
}

button.wbc-settle-task-debt-row {
  min-height: 30px;
  border: 1px solid #86efac;
  border-radius: 7px;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  padding: 4px 10px;
}

button.wbc-settle-task-debt-row:hover,
button.wbc-settle-task-debt-row:focus {
  background: #bbf7d0;
  color: #14532d;
}

.wbc-admin-main-pane button.wbc-settle-project-debt-row {
  align-items: center;
  display: inline-flex;
  min-height: 30px !important;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--wbc-indigo) 45%, var(--wbc-border)) !important;
  border-radius: 7px !important;
  background: color-mix(in srgb, var(--wbc-indigo) 8%, var(--wbc-card)) !important;
  color: var(--wbc-indigo) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
}

.wbc-admin-main-pane button.wbc-settle-project-debt-row .iconify {
  font-size: 16px;
}

.wbc-admin-main-pane button.wbc-settle-project-debt-row:hover,
.wbc-admin-main-pane button.wbc-settle-project-debt-row:focus {
  border-color: var(--wbc-indigo) !important;
  background: var(--wbc-indigo) !important;
  color: #fff !important;
}

.wbc-debt-row--tasks td {
  background: #f0fdf4;
  color: #166534;
  font-weight: 600;
}

/* Debt list table */
.wbc-debts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.wbc-debts-table th,
.wbc-debts-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
}

.wbc-debts-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #374151;
}

.wbc-debts-table td {
  color: #1e293b;
}

button.wbc-resolve-debt-btn {
  min-height: 28px;
  border: 1px solid #6ee7b7;
  border-radius: 7px;
  background: #d1fae5;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

button.wbc-resolve-debt-btn:hover,
button.wbc-resolve-debt-btn:focus {
  background: #a7f3d0;
  color: #064e3b;
}

button.wbc-resolve-debt-btn:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}

/* ============================================================
   Client manage panel — inline success label
   ============================================================ */

.wbc-manage-inline-edit__textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  box-sizing: border-box;
}

.wbc-clt-field-sent-inline {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
}

/* ============================================================
   Client field-change request modal overlay
   ============================================================ */

.wbc-fcr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.wbc-fcr-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  text-align: center;
  font-family: 'Ella Sans';
}

.wbc-fcr-modal__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.wbc-fcr-modal__body {
  margin: 0 0 24px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.wbc-fcr-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

button.wbc-fcr-modal__confirm {
  width: 100%;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  background: #0f5ea8;
  color: #ffffff;
  border: 1px solid #0f5ea8;
  border-radius: 8px;
}

button.wbc-fcr-modal__confirm:hover,
button.wbc-fcr-modal__confirm:focus {
  background: var(--wbc-indigo);
  color: #ffffff;
  border-color: var(--wbc-indigo);
}

button.wbc-fcr-modal__cancel-btn {
  width: 100%;
  padding: 9px 20px;
  font-size: 13px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

button.wbc-fcr-modal__cancel-btn:hover,
button.wbc-fcr-modal__cancel-btn:focus {
  background: #e2e8f0;
  color: #334155;
}

/* ─── Mobile (≤ 1023px) ──────────────────────────────── */

@media (max-width: 1023px) {
  .wbc-admin-client-item__name {
    font-size: 12px;
  }
  .wbc-admin-client-item {
    padding: 4px;
  }
  button.wbc-admin-clients-pane-collapse {
    display: none;
  }

  button.wbc-admin-clients-pane-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .wbc-admin-sites-selector,
  .wbc-client-sites-selector {
    width: 100%;
    overflow: hidden;
  }

  .wbc-admin-sites-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
    padding-bottom: 4px;
  }

  button.wbc-admin-site-box,
  button.wbc-admin-site-add {
    flex: 0 0 auto;
    max-width: none;
  }

  .wbc-task-table-wrap {
    border-radius: 10px;
  }

  .wbc-add-task-modal__card {
    max-width: 100%;
    margin: 0;
    border-radius: 20px 20px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90dvh;
  }

  .wbc-add-task-modal {
    align-items: flex-end;
  }

  button.wbc-task-add-open-btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
  }

  button.wbc-task-show-all-btn,
  button.wbc-task-copy-btn,
  button.wbc-task-bulk-delete-btn {
    justify-content: center;
    width: 100%;
  }

  .wbc-tabs {
    min-height: 48px;
    width: 100%;
    overflow: scroll;
  }

  button.wbc-tab,
  button.wbc-admin-site-box {
    font-size: 14px;
  }
  .wbc-tab svg {
    width: 24px;
    height: 24px;
  }

  .wbc-portal__card {
    padding: 12px;
    border-radius: 16px;
    width: 97vw;
    min-height: 68vh;
  }

  .wbc-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .wbc-stats--admin-overview {
    grid-template-columns: 1fr;
  }

  .wbc-admin-overview-card--half {
    grid-column: auto;
  }

  .wbc-actions--logout-floating {
    position: static;
    margin-bottom: 10px;
  }

  button.wbc-button--install:not(.wbc-hidden) {
    display: inline-flex;
  }

  .wbc-task-table {
    min-width: 120em;
  }

  .wbc-admin-layout {
    grid-template-columns: 1fr;
  }

  .wbc-manage-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wbc-manage-referral-grid {
    grid-template-columns: 1fr;
  }

  .wbc-manage-products-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wbc-manage-section__head--logs {
    align-items: flex-start;
    flex-direction: column;
  }

  .wbc-manage-section__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .wbc-payments-debt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wbc-payments-summary-row {
    grid-template-columns: 1fr;
  }

  .wbc-payments-history-table {
    min-width: 640px;
  }

  .wbc-payments-create-wrap {
    justify-content: center;
  }

  .wbc-whatsapp-floating {
    right: 10px;
    bottom: 10px;
    min-height: 38px;
    padding-left: 10px;
    padding-right: 10px;
    gap: 6px;
  }

  .wbc-whatsapp-floating__icon {
    width: 18px;
    height: 18px;
  }

  .wbc-whatsapp-floating__label,
  .wbc-whatsapp-floating__phone {
    font-size: 11px;
  }

  .wbc-admin-clients-pane {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 320px);
    z-index: 30;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    display: none;
    overflow: scroll;
  }

  .wbc-admin-clients-pane.is-open {
    display: block;
  }

  .wbc-tasks-empty {
    width: 86vw;
    align-items: center;
  }

  button.wbc-admin-clients-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
  }

  .wbc-manage-fields-grid {
    grid-template-columns: 1fr;
  }

  .wbc-manage-referral-grid {
    grid-template-columns: 1fr;
  }

  .wbc-manage-products-row {
    grid-template-columns: 1fr;
  }

  .wbc-payments-debt-grid {
    grid-template-columns: 1fr;
  }

  .wbc-create-payment-grid,
  .wbc-create-payment-methods,
  .wbc-create-payment-cycles-grid,
  .wbc-create-payment-apps__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .wbc-portal__brand-logo {
    width: 64px;
  }

  .wbc-portal__header h1 {
    font-size: 18px;
    gap: 4px;
  }

  .wbc-portal__header p {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .wbc-actions--logout-floating {
    position: absolute;
    top: 10px;
    left: 10px;
    margin-bottom: 0;
    gap: 6px;
  }

  button.wbc-button.wbc-logout-floating {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    gap: 0;
    font-size: 0;
    line-height: 1;
    border-radius: 8px;
  }

  button.wbc-button.wbc-logout-floating:hover,
  button.wbc-button.wbc-logout-floating:focus {
    background: #dde2ff;
    color: #0f172a;
  }

  button.wbc-button.wbc-logout-floating .iconify {
    font-size: 18px;
    width: 18px;
    height: 18px;
  }

  .wbc-actions--logout-floating .wbc-wp-admin-link {
    width: auto;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .wbc-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .wbc-stat {
    padding: 10px;
    min-height: 80px;
  }

  .wbc-stat__label {
    font-size: 13px;
    gap: 4px;
  }

  .wbc-stat__label .iconify {
    width: 24px;
    height: 24px;
  }

  .wbc-stat__value {
    font-size: 18px;
  }

  .wbc-stat__meta {
    font-size: 12px;
  }

  .wbc-task-table-wrap {
    padding-bottom: 0;
  }

  #wbc-login-view {
    width: 100%;
  }

  .wbc-login-mode {
    gap: 8px;
    margin-bottom: 12px;
  }

  button.wbc-login-mode__button {
    min-height: 48px;
    font-size: 12px;
    padding: 8px 12px;
    gap: 3px;
    font-weight: 500;
  }

  button.wbc-login-mode__button .iconify {
    font-size: 16px;
  }

  .wbc-portal input {
    font-size: 15px;
    min-height: 38px;
  }

  button#wbc-send-otp,
  button#wbc-verify-otp {
    font-size: 15px;
    width: 100%;
  }
}

/* Assign client section */
.wbc-manage-section--assign-client .wbc-manage-section__body {
  padding: 10px 0 4px;
}

.wbc-assign-client-wrap {
  position: relative;
}

.wbc-assign-client-search {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.wbc-assign-client-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
  margin-top: 3px;
}

.wbc-assign-client-option {
  display: block;
  width: 100%;
  text-align: right;
  padding: 8px 12px;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  font-size: 13px;
  color: #333;
}

.wbc-assign-client-option:last-child {
  border-bottom: none;
}

.wbc-assign-client-option:hover {
  background: #f5f8ff;
}

.wbc-task-table th[data-task-date-sort='1'] {
  cursor: pointer;
}

.wbc-task-table th[data-task-date-sort='1']:focus-visible {
  outline: 2px solid var(--wbc-primary);
  outline-offset: -3px;
}

.wbc-task-date-sort {
  display: inline-flex;
  vertical-align: middle;
  margin-inline-start: 4px;
  color: var(--wbc-primary);
  transition: transform 180ms ease;
}

.wbc-task-date-sort.is-ascending {
  transform: rotate(180deg);
}

.wbc-assign-client-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: #888;
  text-align: center;
}
.wbc-takbull-document-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--wbc-takbull-backdrop);
}

.wbc-takbull-document-modal__dialog {
  width: min(100%, 610px);
  max-height: min(90vh, 760px);
  overflow: auto;
  border: 1px solid var(--wbc-takbull-border);
  border-radius: 12px;
  background: var(--wbc-takbull-surface);
  color: var(--wbc-takbull-text);
  box-shadow: 0 24px 70px var(--wbc-takbull-shadow);
}

#wbc-takbull-document-modal,
#wbc-takbull-document-modal * {
  font-family: 'Simona Pro', sans-serif;
}

#wbc-takbull-document-modal {
  --wbc-takbull-surface: var(--wbc-card);
  --wbc-takbull-text: var(--wbc-text);
  --wbc-takbull-muted: var(--wbc-muted);
  --wbc-takbull-border: var(--wbc-border);
  --wbc-takbull-accent: var(--wbc-mint);
  --wbc-takbull-action: var(--wbc-indigo);
  --wbc-takbull-action-hover: color-mix(in srgb, var(--wbc-indigo) 84%, var(--wbc-text));
  --wbc-takbull-soft-accent: color-mix(in srgb, var(--wbc-mint) 16%, var(--wbc-card));
  --wbc-takbull-soft-accent-hover: color-mix(in srgb, var(--wbc-mint) 27%, var(--wbc-card));
  --wbc-takbull-accent-border: color-mix(in srgb, var(--wbc-mint) 55%, var(--wbc-border));
  --wbc-takbull-backdrop: color-mix(in srgb, var(--wbc-text) 48%, transparent);
  --wbc-takbull-shadow: color-mix(in srgb, var(--wbc-text) 25%, transparent);
}

#wbc-takbull-document-modal h2,
#wbc-takbull-document-modal button,
#wbc-takbull-document-modal .wbc-takbull-document-modal__payment-heading strong,
#wbc-takbull-document-modal .wbc-takbull-document-modal__payment-lines strong,
#wbc-takbull-document-modal .wbc-takbull-document-modal__payment-totals strong {
  font-family: 'Ella Sans', sans-serif;
}

.wbc-takbull-document-modal__dialog > header,
.wbc-takbull-document-modal__dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--wbc-takbull-border);
}

.wbc-takbull-document-modal__dialog header p { margin: 0 0 3px; color: var(--wbc-takbull-accent); font-weight: 700; }
.wbc-takbull-document-modal__dialog header h2 { margin: 0; font-size: 21px; }
.wbc-takbull-document-modal__close {
  align-items: center;
  appearance: none;
  background: var(--wbc-takbull-soft-accent);
  border: 1px solid var(--wbc-takbull-accent-border);
  border-radius: 8px;
  color: var(--wbc-takbull-text);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}
.wbc-takbull-document-modal__close:hover,
.wbc-takbull-document-modal__close:focus { background: var(--wbc-takbull-soft-accent-hover); color: var(--wbc-takbull-text); }
.wbc-takbull-document-modal__dialog form { display: grid; gap: 14px; padding: 22px; }
.wbc-takbull-document-modal__dialog label { display: grid; gap: 7px; color: var(--wbc-takbull-text); font-weight: 700; }
.wbc-takbull-document-modal__dialog input,
.wbc-takbull-document-modal__dialog select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid var(--wbc-takbull-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--wbc-takbull-surface);
  color: var(--wbc-takbull-text);
  font-family: 'Simona Pro', sans-serif;
  font-size: 14px;
  outline: none;
}
.wbc-takbull-document-modal__dialog input:focus,
.wbc-takbull-document-modal__dialog select:focus,
#wbc-takbull-document-modal .wbd_select2__trigger:focus {
  border-color: var(--wbc-takbull-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wbc-takbull-accent) 20%, transparent);
}
.wbd_select2 {
  --wbc-takbull-surface: var(--wbc-card);
  --wbc-takbull-text: var(--wbc-text);
  --wbc-takbull-muted: var(--wbc-muted);
  --wbc-takbull-border: var(--wbc-border);
  --wbc-takbull-accent: var(--wbc-mint);
  --wbc-takbull-soft-accent: color-mix(in srgb, var(--wbc-mint) 16%, var(--wbc-card));
  --wbc-takbull-shadow: color-mix(in srgb, var(--wbc-text) 16%, transparent);
  position: relative;
  width: 100%;
}
.wbd_select2__native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.wbd_select2__trigger { width: 100%; min-height: 42px; border: 1px solid var(--wbc-takbull-border); border-radius: 7px; padding: 8px 34px 8px 10px; background: var(--wbc-takbull-surface); color: var(--wbc-takbull-text); text-align: right; cursor: pointer; position: relative; }
#wbc-takbull-document-modal .wbd_select2__trigger,
#wbc-takbull-document-modal .wbd_select2__option,
#wbc-takbull-document-modal .wbd_select2__search {
  font-family: 'Simona Pro', sans-serif;
}
.wbd_select2__trigger::after { content: '⌄'; position: absolute; left: 11px; top: 7px; color: #475569; font-size: 20px; }
.wbd_select2__menu { display: none; position: absolute; z-index: 4; top: calc(100% + 5px); right: 0; left: 0; padding: 8px; border: 1px solid var(--wbc-takbull-border); border-radius: 8px; background: var(--wbc-takbull-surface); box-shadow: 0 10px 25px var(--wbc-takbull-shadow); }
.wbd_select2.is-open .wbd_select2__menu { display: block; }
.wbd_select2__search { margin-bottom: 7px; }
.wbd_select2__options { max-height: 190px; overflow: auto; }
.wbd_select2__option { display: block; width: 100%; padding: 9px; border: 0; border-radius: 5px; background: transparent; color: var(--wbc-takbull-text); text-align: right; cursor: pointer; }
.wbd_select2__option:hover,.wbd_select2__option.is-selected { background: var(--wbc-takbull-soft-accent); color: var(--wbc-takbull-text); }
.wbd_select2__empty { margin: 8px; color: var(--wbc-takbull-muted); text-align: center; }
.wbc-takbull-customer-select { flex: 1 1 240px; min-width: 0; }
.wbc-takbull-customer-select .wbd_select2__search { margin: 0; width: 100%; }
.wbc-takbull-customer-select .wbd_select2__menu { max-height: 248px; overflow: auto; }
.wbc-takbull-customer-select__option { display: flex; flex-direction: column; gap: 3px; }
.wbc-takbull-customer-select__option strong { color: var(--wbc-takbull-text); font: inherit; font-weight: 700; }
.wbc-takbull-customer-select__option small { color: var(--wbc-takbull-muted); font-size: 12px; }
.wbc-takbull-document-modal__amounts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; }
.wbc-takbull-document-modal__amounts > div { min-height: 42px; padding: 8px 10px; border-radius: 7px; background: var(--wbc-takbull-soft-accent); color: var(--wbc-takbull-text); }
.wbc-takbull-document-modal__amounts span,.wbc-takbull-document-modal__amounts strong { display: block; }
.wbc-takbull-document-modal__amounts span { font-size: 12px; }
.wbc-takbull-document-modal__amounts strong { margin-top: 3px; font-size: 18px; }
.wbc-takbull-document-modal__status { min-height: 22px; margin: 0; color: var(--wbc-takbull-accent); font-weight: 700; }
.wbc-takbull-document-modal__dialog footer { padding: 16px 22px; border-top: 1px solid var(--wbc-takbull-border); border-bottom: 0; }
.wbc-takbull-document-modal__dialog footer .button {
  align-items: center;
  appearance: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
}
.wbc-takbull-document-modal__cancel { background: var(--wbc-takbull-surface); border: 1px solid var(--wbc-takbull-border); color: var(--wbc-takbull-text); }
.wbc-takbull-document-modal__cancel:hover,
.wbc-takbull-document-modal__cancel:focus { background: var(--wbc-takbull-soft-accent); color: var(--wbc-takbull-text); }
.wbc-takbull-document-modal__submit { background: var(--wbc-takbull-action); border: 1px solid var(--wbc-takbull-action); color: var(--wbc-takbull-surface); }
.wbc-takbull-document-modal__submit:hover,
.wbc-takbull-document-modal__submit:focus { background: var(--wbc-takbull-action-hover); border-color: var(--wbc-takbull-action-hover); color: var(--wbc-takbull-surface); }
.wbc-takbull-document-modal__submit:disabled { cursor: wait; opacity: .65; }
.wbc-takbull-document-modal__payment-context {
  border: 1px solid var(--wbc-takbull-accent-border);
  border-radius: 10px;
  background: var(--wbc-takbull-surface);
  color: var(--wbc-takbull-text);
  overflow: hidden;
}
.wbc-takbull-document-modal__payment-heading { align-items: center; display: flex; gap: 10px; padding: 12px 14px; }
.wbc-takbull-document-modal__payment-heading > .iconify { color: var(--wbc-takbull-accent); font-size: 24px; }
.wbc-takbull-document-modal__payment-heading strong,
.wbc-takbull-document-modal__payment-heading small { display: block; }
.wbc-takbull-document-modal__payment-heading small { color: var(--wbc-takbull-muted); font-size: 12px; margin-top: 2px; }
.wbc-takbull-document-modal__payment-lines { border-top: 1px solid var(--wbc-takbull-border); list-style: none; margin: 0; padding: 0 14px; }
.wbc-takbull-document-modal__payment-lines li { align-items: center; border-bottom: 1px solid var(--wbc-takbull-border); display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; }
.wbc-takbull-document-modal__payment-lines li:last-child { border-bottom: 0; }
.wbc-takbull-document-modal__payment-lines strong,
.wbc-takbull-document-modal__payment-lines small { display: block; }
.wbc-takbull-document-modal__payment-lines small { color: var(--wbc-takbull-muted); font-size: 12px; margin-top: 2px; }
.wbc-takbull-document-modal__payment-lines b { color: var(--wbc-takbull-accent); font-family: 'Ella Sans', sans-serif; white-space: nowrap; }
.wbc-takbull-document-modal__payment-totals { border-top: 1px solid var(--wbc-takbull-accent-border); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wbc-takbull-document-modal__payment-totals span { color: var(--wbc-takbull-muted); font-size: 12px; padding: 10px 14px; }
.wbc-takbull-document-modal__payment-totals span + span { border-right: 1px solid var(--wbc-takbull-accent-border); }
.wbc-takbull-document-modal__payment-totals strong { color: var(--wbc-takbull-accent); display: block; font-size: 16px; margin-top: 3px; }
.wbc-takbull-document-modal__payment-loading { color: var(--wbc-takbull-muted); margin: 0; padding: 12px 14px; text-align: center; }

/* Keep the custom selector and its completed-document actions inside Webbed's teal brand palette. */
#wbc-takbull-document-modal .wbc-takbull-document-modal__close {
  background: var(--wbc-takbull-soft-accent);
  border-color: var(--wbc-takbull-accent-border);
  color: var(--wbc-takbull-text);
}
#wbc-takbull-document-modal .wbc-takbull-document-modal__close:hover,
#wbc-takbull-document-modal .wbc-takbull-document-modal__close:focus { background: var(--wbc-takbull-soft-accent-hover); color: var(--wbc-takbull-text); }
#wbc-takbull-document-modal .wbc-takbull-document-modal__dialog input:focus,
#wbc-takbull-document-modal .wbc-takbull-document-modal__dialog select:focus,
#wbc-takbull-document-modal .wbd_select2__trigger:focus { border-color: var(--wbc-takbull-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wbc-takbull-accent) 20%, transparent); }
#wbc-takbull-document-modal .wbd_select2__trigger {
  align-items: center;
  background: var(--wbc-takbull-surface);
  border-color: var(--wbc-takbull-accent-border);
  border-radius: 8px;
  display: flex;
  font-size: 14px;
  gap: 12px;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 12px;
  text-align: right;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
#wbc-takbull-document-modal .wbd_select2__trigger:hover { border-color: var(--wbc-takbull-accent); }
#wbc-takbull-document-modal .wbd_select2__trigger::after { content: none; }
#wbc-takbull-document-modal .wbd_select2__trigger-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#wbc-takbull-document-modal .wbd_select2__chevron { color: var(--wbc-takbull-accent); flex: 0 0 auto; font-size: 21px; transition: transform 180ms ease; }
#wbc-takbull-document-modal .wbd_select2.is-open .wbd_select2__chevron { transform: rotate(180deg); }
#wbc-takbull-document-modal .wbc-takbull-document-modal__submit { background: var(--wbc-takbull-action); border-color: var(--wbc-takbull-action); color: var(--wbc-takbull-surface); }
#wbc-takbull-document-modal .wbc-takbull-document-modal__submit:hover,
#wbc-takbull-document-modal .wbc-takbull-document-modal__submit:focus { background: var(--wbc-takbull-action-hover); border-color: var(--wbc-takbull-action-hover); color: var(--wbc-takbull-surface); }
.wbc-takbull-document-modal__document-actions { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
#wbc-takbull-document-modal .wbc-takbull-document-modal__dialog footer .wbc-takbull-document-modal__document-actions {
  flex: 1 1 auto;
  width: auto;
}
.wbc-takbull-document-modal__document-action { align-items: center; appearance: none; border: 1px solid var(--wbc-takbull-accent-border); border-radius: 8px; cursor: pointer; display: inline-flex; gap: 7px; justify-content: center; min-height: 42px; padding: 8px 12px; text-decoration: none; }
.wbc-takbull-document-modal__document-action.is-view { background: var(--wbc-takbull-soft-accent); color: var(--wbc-takbull-text); }
.wbc-takbull-document-modal__document-action.is-email { background: var(--wbc-takbull-action); border-color: var(--wbc-takbull-action); color: var(--wbc-takbull-surface); }
.wbc-takbull-document-modal__document-action.is-view:hover,
.wbc-takbull-document-modal__document-action.is-view:focus { background: var(--wbc-takbull-soft-accent-hover); color: var(--wbc-takbull-text); }
.wbc-takbull-document-modal__document-action.is-email:hover,
.wbc-takbull-document-modal__document-action.is-email:focus { background: var(--wbc-takbull-action-hover); border-color: var(--wbc-takbull-action-hover); color: var(--wbc-takbull-surface); }
.wbc-takbull-document-modal__document-action:disabled { cursor: wait; opacity: .65; }
#wbc-takbull-document-modal .wbc-takbull-document-modal__payment-context { border-color: var(--wbc-takbull-accent-border); }
#wbc-takbull-document-modal .wbc-takbull-document-modal__payment-context.wbc-hidden,
#wbc-takbull-document-modal .wbc-takbull-document-modal__radio-field.wbc-hidden,
#wbc-takbull-document-modal label.wbc-hidden {
  display: none !important;
}
#wbc-takbull-document-modal .wbc-takbull-document-modal__payment-heading > .iconify,
#wbc-takbull-document-modal .wbc-takbull-document-modal__payment-totals strong { color: var(--wbc-takbull-accent); }
#wbc-takbull-document-modal .wbc-takbull-document-modal__payment-lines { border-top-color: var(--wbc-takbull-soft-accent-hover); }
#wbc-takbull-document-modal .wbc-takbull-document-modal__payment-totals,
#wbc-takbull-document-modal .wbc-takbull-document-modal__payment-totals span + span { border-color: var(--wbc-takbull-accent-border); }
.wbc-takbull-document-modal__radio-field { border: 0; margin: 0; min-width: 0; padding: 0; }
.wbc-takbull-document-modal__radio-field legend { color: var(--wbc-takbull-text); font-weight: 700; margin-bottom: 7px; padding: 0; }
.wbc-takbull-document-modal__radio-options { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wbc-takbull-document-modal__radio-options label { align-items: center; background: var(--wbc-takbull-surface); border: 1px solid var(--wbc-takbull-accent-border); border-radius: 8px; color: var(--wbc-takbull-text); cursor: pointer; display: flex !important; font-weight: 700; gap: 8px; justify-content: flex-start; min-height: 42px; padding: 8px 10px; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.wbc-takbull-document-modal__radio-options label:hover { border-color: var(--wbc-takbull-accent); }
.wbc-takbull-document-modal__radio-options label:has(input:checked) { background: var(--wbc-takbull-soft-accent); border-color: var(--wbc-takbull-accent); color: var(--wbc-takbull-text); }
.wbc-takbull-document-modal__radio-options input { accent-color: var(--wbc-takbull-accent); flex: 0 0 auto; margin: 0; min-height: auto !important; width: 17px !important; }
.wbc-takbull-document-modal__radio-options input:focus-visible { outline: 2px solid var(--wbc-takbull-accent); outline-offset: 2px; }

@media (max-width: 560px) {
  .wbc-takbull-document-modal { padding: 10px; }
  .wbc-takbull-document-modal__amounts { grid-template-columns: 1fr; }
  .wbc-takbull-document-modal__payment-totals { grid-template-columns: 1fr; }
  .wbc-takbull-document-modal__payment-totals span + span { border-right: 0; border-top: 1px solid #bfdbfe; }
  .wbc-takbull-document-modal__document-actions { grid-template-columns: 1fr; }
  .wbc-takbull-document-modal__radio-options { grid-template-columns: 1fr; }
}

/* Shared portal-modal baseline for dynamically mounted dialogs. */
.wbc-add-task-modal,
.wbc-manual-payment-overlay,
.wbc-client-message-modal,
.wbc-communication-view-modal,
.wbc-screenshot-lightbox-modal,
.wbc-task-details-modal,
.wbc-admin-picker-modal,
.wbc-payment-reminder-modal,
.wbc-create-payment-modal,
.wbc-edit-payment-page-modal,
.wbc-admin-ai-modal,
.wbc-takbull-document-modal,
.wbc-fcr-overlay {
  box-sizing: border-box;
  direction: rtl;
  font-family: 'Simona Pro', sans-serif;
  margin: 0;
}

.wbc-add-task-modal *,
.wbc-manual-payment-overlay *,
.wbc-client-message-modal *,
.wbc-communication-view-modal *,
.wbc-screenshot-lightbox-modal *,
.wbc-task-details-modal *,
.wbc-admin-picker-modal *,
.wbc-payment-reminder-modal *,
.wbc-create-payment-modal *,
.wbc-edit-payment-page-modal *,
.wbc-admin-ai-modal *,
.wbc-takbull-document-modal *,
.wbc-fcr-overlay * {
  box-sizing: border-box;
  font-family: 'Simona Pro', sans-serif !important;
}

.wbc-add-task-modal__backdrop,
.wbc-client-message-modal__backdrop,
.wbc-communication-view-modal__backdrop,
.wbc-screenshot-lightbox-modal__backdrop,
.wbc-task-details-modal__backdrop,
.wbc-admin-picker-modal__backdrop,
.wbc-payment-reminder-modal__backdrop,
.wbc-create-payment-modal__backdrop,
.wbc-admin-ai-modal__backdrop {
  box-sizing: border-box;
  font-family: 'Simona Pro', sans-serif;
  margin: 0;
  padding: 0;
}

.wbc-add-task-modal {
  padding: 0;
}

.wbc-add-task-modal__card {
  margin: 0;
  width: min(calc(100vw - 32px), 480px);
}

@media (max-width: 720px) {
  .wbc-add-task-modal__card {
    width: 100%;
  }
}

.wbc-debt-reminder-modal {
  position: fixed;
  inset: 0;
  z-index: 100090;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: 'Simona Pro', sans-serif;
}

.wbc-debt-reminder-modal.wbc-hidden { display: none; }

.wbc-debt-reminder-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .52);
}

.wbc-debt-reminder-modal__dialog {
  position: relative;
  width: min(100%, 680px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  direction: rtl;
  color: var(--wbc-text);
  background: var(--wbc-card);
  border: 1px solid var(--wbc-border);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
  padding: 22px;
	font-family: 'Simona Pro', sans-serif !important;
}

.wbc-debt-reminder-modal__dialog,
.wbc-debt-reminder-modal__dialog * {
	box-sizing: border-box;
	font-family: 'Simona Pro', sans-serif !important;
}

.wbc-debt-reminder-modal__head,
.wbc-debt-reminder-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wbc-debt-reminder-modal__head h3 { margin: 0; color: var(--wbc-indigo); font-family: 'Ella Sans', sans-serif !important; }
.wbc-debt-reminder-modal__head p { margin: 5px 0 0; font-weight: 700; }
.wbc-debt-reminder-modal .button.wbc-debt-reminder-modal__close { display: inline-grid !important; place-items: center; width: 36px; min-width: 36px; height: 36px; border: 1px solid var(--wbc-border) !important; border-radius: 8px !important; background: var(--wbc-card) !important; color: var(--wbc-text) !important; padding: 0 !important; }

.wbc-debt-reminder-modal__tabs {
  display: flex;
  gap: 8px;
  margin: 22px 0 12px;
  border-bottom: 1px solid var(--wbc-border);
}

.wbc-debt-reminder-modal__tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--wbc-muted);
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.wbc-debt-reminder-modal__tabs button.is-active { color: var(--wbc-indigo); border-bottom-color: var(--wbc-indigo); }
.wbc-debt-reminder-modal__source { display: grid; gap: 5px; margin: 0 0 14px; padding: 11px 13px; border: 1px solid var(--wbc-border); border-radius: 8px; background: #f8fbff; }
.wbc-debt-reminder-modal__source a { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--wbc-indigo); font-weight: 700; text-decoration: none; }
.wbc-debt-reminder-modal__source a:hover,
.wbc-debt-reminder-modal__source a:focus { color: var(--wbc-cyan); text-decoration: underline; }
.wbc-debt-reminder-modal__source span { color: var(--wbc-text); font-size: 14px; }
.wbc-debt-reminder-modal__product { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin: 0 0 14px; color: var(--wbc-text); font-weight: 700; }
.wbc-debt-reminder-modal__product > span { grid-column: 1 / -1; }
.wbc-debt-reminder-modal__product input { min-width: 0; min-height: 42px; padding: 9px 12px; border: 1px solid var(--wbc-border); border-radius: 8px; background: var(--wbc-card); color: var(--wbc-text); font: inherit; }
.wbc-debt-reminder-modal__product input:focus { outline: none; border-color: var(--wbc-indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wbc-indigo) 18%, transparent); }
.wbc-debt-reminder-modal .button.wbc-debt-reminder-modal__refresh { display: inline-flex !important; align-items: center; gap: 6px; min-height: 42px; padding: 0 13px !important; border: 1px solid var(--wbc-border) !important; border-radius: 8px !important; background: var(--wbc-card) !important; color: var(--wbc-text) !important; font-weight: 700 !important; }
.wbc-debt-reminder-modal__preview { min-height: 210px; }
.wbc-debt-reminder-modal__recipient { color: var(--wbc-muted); font-size: 13px; margin-bottom: 9px; direction: ltr; text-align: right; }
.wbc-debt-reminder-modal__subject { margin: 0 0 9px; font-weight: 800; }
.wbc-debt-reminder-modal__message { background: #f8fbff; border: 1px solid var(--wbc-border); border-radius: 8px; padding: 18px; line-height: 1.8; }
.wbc-debt-reminder-modal__message p:first-child { margin-top: 0; }
.wbc-debt-reminder-modal__message p:last-child { margin-bottom: 0; }
.wbc-debt-reminder-modal__note { display: flex; align-items: center; gap: 7px; margin: 16px 0; color: var(--wbc-muted); font-size: 13px; }
.wbc-debt-reminder-modal__status { min-height: 22px; margin: 0 0 12px; color: #a24b19; font-weight: 700; }
.wbc-debt-reminder-modal__actions { justify-content: flex-start; }
.wbc-debt-reminder-modal .button.wbc-debt-reminder-modal__submit,
.wbc-debt-reminder-modal .button.wbc-debt-reminder-modal__cancel { display: inline-flex !important; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px !important; border-radius: 8px !important; font-weight: 700 !important; }
.wbc-debt-reminder-modal .button.wbc-debt-reminder-modal__submit { background: var(--wbc-indigo) !important; border: 1px solid var(--wbc-indigo) !important; color: #fff !important; }
.wbc-debt-reminder-modal .button.wbc-debt-reminder-modal__submit:hover,
.wbc-debt-reminder-modal .button.wbc-debt-reminder-modal__submit:focus { background: var(--wbc-cyan) !important; border-color: var(--wbc-cyan) !important; color: #fff !important; }
.wbc-debt-reminder-modal .button.wbc-debt-reminder-modal__cancel { background: var(--wbc-card) !important; border: 1px solid var(--wbc-border) !important; color: var(--wbc-text) !important; }

/* Monthly maintenance remains a normal task, with a focused operator workflow. */
.wbc-maintenance-card { direction: rtl; margin: 0 0 16px; padding: 16px; border: 1px solid color-mix(in srgb, var(--wbc-indigo) 26%, var(--wbc-border)); border-radius: 10px; background: color-mix(in srgb, var(--wbc-indigo) 5%, var(--wbc-card)); color: var(--wbc-text); font-family: 'Simona Pro', sans-serif; }
.wbc-maintenance-card *, .wbc-maintenance-modal, .wbc-maintenance-modal * { box-sizing: border-box; font-family: 'Simona Pro', sans-serif !important; }
.wbc-maintenance-card__head, .wbc-maintenance-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wbc-maintenance-card h3 { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--wbc-indigo); font-family: 'Ella Sans', sans-serif !important; font-size: 18px; }
.wbc-maintenance-card p { margin: 5px 0 0; color: var(--wbc-muted); font-weight: 700; }
.wbc-maintenance-card p small { display: inline-block; direction: ltr; margin-inline-start: 6px; color: var(--wbc-text); }
.wbc-maintenance-card__state { padding: 5px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 13px; font-weight: 800; white-space: nowrap; }
.wbc-maintenance-card__state.is-complete { background: #dcfce7; color: #166534; }
.wbc-maintenance-card__checks { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.wbc-maintenance-card__checks span { padding: 5px 8px; border: 1px solid var(--wbc-border); border-radius: 6px; background: var(--wbc-card); color: var(--wbc-muted); font-size: 13px; }
.wbc-maintenance-card__actions > span { color: var(--wbc-muted); font-size: 13px; font-weight: 700; }
.wbc-maintenance-card__email { color: #166534 !important; }
.wbc-maintenance-history { direction: rtl; margin: 0 0 16px; padding: 16px; border: 1px solid color-mix(in srgb, var(--wbc-cyan) 26%, var(--wbc-border)); border-radius: 10px; background: var(--wbc-card); color: var(--wbc-text); font-family: 'Simona Pro', sans-serif; }
.wbc-maintenance-history, .wbc-maintenance-history * { box-sizing: border-box; font-family: 'Simona Pro', sans-serif !important; }
.wbc-maintenance-history__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wbc-maintenance-history__head h3 { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--wbc-indigo); font-family: 'Ella Sans', sans-serif !important; font-size: 18px; }
.wbc-maintenance-history__head > span { min-width: 26px; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--wbc-cyan) 12%, var(--wbc-card)); color: var(--wbc-indigo); text-align: center; font-weight: 800; }
.wbc-maintenance-history__list { display: grid; gap: 8px; }
.wbc-maintenance-history__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 11px; border: 1px solid var(--wbc-border); border-radius: 8px; background: #f8fbff; }
.wbc-maintenance-history__item > div:first-child { display: grid; gap: 3px; min-width: 0; }
.wbc-maintenance-history__item strong { overflow: hidden; color: var(--wbc-text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.wbc-maintenance-history__item span { color: var(--wbc-muted); font-size: 13px; font-weight: 700; }
.wbc-maintenance-history__state { display: grid; justify-items: end; align-content: start; gap: 4px; }
.wbc-maintenance-history__state > span { padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.wbc-maintenance-history__state .is-complete { background: #dcfce7; color: #166534; }
.wbc-maintenance-history__state .is-pending { background: #fef3c7; color: #92400e; }
.wbc-maintenance-history__state small { color: var(--wbc-muted); font-size: 12px; font-weight: 700; }
.wbc-maintenance-history__item p { grid-column: 1 / -1; margin: 0; color: var(--wbc-muted); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
button.wbc-maintenance-card__complete, .wbc-maintenance-modal .button.wbc-maintenance-modal__submit { display: inline-flex !important; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px !important; border: 1px solid var(--wbc-indigo) !important; border-radius: 8px !important; background: var(--wbc-indigo) !important; color: #fff !important; font-weight: 800 !important; }
button.wbc-maintenance-card__complete:hover, button.wbc-maintenance-card__complete:focus, .wbc-maintenance-modal .button.wbc-maintenance-modal__submit:hover, .wbc-maintenance-modal .button.wbc-maintenance-modal__submit:focus { background: var(--wbc-cyan) !important; border-color: var(--wbc-cyan) !important; color: #fff !important; }
button.wbc-maintenance-card__edit { display: inline-flex !important; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px !important; border: 1px solid color-mix(in srgb, var(--wbc-indigo) 28%, var(--wbc-border)) !important; border-radius: 8px !important; background: var(--wbc-card) !important; color: var(--wbc-indigo) !important; font-weight: 800 !important; }
button.wbc-maintenance-card__edit:hover, button.wbc-maintenance-card__edit:focus { background: color-mix(in srgb, var(--wbc-indigo) 8%, var(--wbc-card)) !important; border-color: var(--wbc-indigo) !important; color: var(--wbc-indigo) !important; }
.wbc-maintenance-modal { position: fixed; inset: 0; z-index: 100110; display: grid; place-items: center; padding: 20px; direction: rtl; }
.wbc-maintenance-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .54); }
.wbc-maintenance-modal__dialog { position: relative; width: min(100%, 610px); max-height: calc(100vh - 40px); overflow: auto; margin: 0; padding: 22px; border: 1px solid var(--wbc-border); border-radius: 10px; background: var(--wbc-card); color: var(--wbc-text); box-shadow: 0 24px 70px rgba(15,23,42,.25); }
.wbc-maintenance-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.wbc-maintenance-modal__head h3 { margin: 0; color: var(--wbc-indigo); font-family: 'Ella Sans', sans-serif !important; }
.wbc-maintenance-modal__head p { margin: 5px 0 0; color: var(--wbc-muted); font-weight: 700; }
.wbc-maintenance-modal__head small { direction: ltr; }
.wbc-maintenance-modal .button.wbc-maintenance-modal__close { display: grid !important; place-items: center; width: 36px; min-width: 36px; height: 36px; padding: 0 !important; border: 1px solid var(--wbc-border) !important; border-radius: 8px !important; background: var(--wbc-card) !important; color: var(--wbc-text) !important; }
.wbc-maintenance-modal__checklist { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin: 0 0 16px; }
.wbc-maintenance-modal__checklist label { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px; border: 1px solid var(--wbc-border); border-radius: 8px; background: #f8fbff; cursor: pointer; font-weight: 700; }
.wbc-maintenance-modal__checklist label.is-optional { grid-column: 1 / -1; color: var(--wbc-muted); }
.wbc-maintenance-modal__checklist input { width: 18px; height: 18px; accent-color: var(--wbc-indigo); }
.wbc-maintenance-modal__field { display: grid; gap: 6px; margin: 0 0 13px; font-weight: 800; }
.wbc-maintenance-modal__field input, .wbc-maintenance-modal__field textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--wbc-border); border-radius: 8px; background: var(--wbc-card); color: var(--wbc-text); font: inherit; }
.wbc-maintenance-modal__field textarea { min-height: 92px; resize: vertical; }
.wbc-maintenance-modal__field input:focus, .wbc-maintenance-modal__field textarea:focus { outline: 0; border-color: var(--wbc-indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wbc-indigo) 16%, transparent); }
.wbc-maintenance-modal__note { display: flex; align-items: flex-start; gap: 7px; margin: 4px 0 13px; color: var(--wbc-muted); font-size: 13px; line-height: 1.5; }
.wbc-maintenance-modal__status { min-height: 22px; margin: 0 0 12px; color: #a24b19; font-weight: 700; }
.wbc-maintenance-modal__actions { display: flex; align-items: center; justify-content: flex-start; gap: 9px; }
.wbc-maintenance-modal .button.wbc-maintenance-modal__cancel { min-height: 40px; padding: 0 14px !important; border: 1px solid var(--wbc-border) !important; border-radius: 8px !important; background: var(--wbc-card) !important; color: var(--wbc-text) !important; font-weight: 800 !important; }
.wbc-project-installments { direction: rtl; margin: 14px 0; padding: 16px; border: 1px solid color-mix(in srgb, var(--wbc-indigo) 24%, var(--wbc-border)); border-radius: 8px; background: var(--wbc-card); color: var(--wbc-text); font-family: 'Simona Pro', sans-serif; }
.wbc-project-installments, .wbc-project-installments * { box-sizing: border-box; font-family: 'Simona Pro', sans-serif !important; }
.wbc-project-installments__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wbc-project-installments__head h4 { margin: 0; color: var(--wbc-indigo); font-family: 'Ella Sans', sans-serif !important; font-size: 17px; }
.wbc-project-installments__head p { margin: 4px 0 0; color: var(--wbc-muted); font-size: 13px; }
.wbc-project-installments__head a { color: var(--wbc-indigo); font-weight: 800; }
.wbc-project-installments__form { display: grid; grid-template-columns: minmax(190px, 2fr) repeat(4, minmax(110px, 1fr)) auto; align-items: end; gap: 10px; }
.wbc-project-installments__form label { display: grid; gap: 5px; min-width: 0; color: var(--wbc-muted); font-size: 12px; font-weight: 800; }
.wbc-project-installments__form input, .wbc-project-installments__form select, .wbc-project-installment__method select { width: 100%; min-height: 40px; padding: 7px 9px; border: 1px solid var(--wbc-border); border-radius: 6px; background: var(--wbc-card); color: var(--wbc-text); font: inherit; }
.wbc-project-installments__create, .wbc-project-installment__confirm { min-height: 40px; padding: 0 13px !important; border: 1px solid var(--wbc-indigo) !important; border-radius: 6px !important; background: var(--wbc-indigo) !important; color: #fff !important; font-weight: 800 !important; white-space: nowrap; }
.wbc-project-installments__list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.wbc-project-installment__row { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(125px, 165px) minmax(145px, 175px) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--wbc-border); border-radius: 6px; background: #f8fbff; }
.wbc-project-installment__row > div { display: grid; gap: 3px; }
.wbc-project-installment__row > div span, .wbc-project-installment__method > span { color: var(--wbc-muted); font-size: 12px; }
.wbc-project-installment__row.is-paid { background: color-mix(in srgb, var(--wbc-cyan) 7%, var(--wbc-card)); }
.wbc-project-installment__paid { color: #16845d; font-weight: 800; }
.wbc-project-installment__method, .wbc-project-installment__date { display: grid; gap: 3px; }
.wbc-project-installments__status { min-height: 1px; margin: 8px 0 0; color: var(--wbc-muted); }
@media (max-width: 760px) { .wbc-project-installments__form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wbc-project-installments__create { grid-column: 1 / -1; } .wbc-project-installment__row { grid-template-columns: 1fr auto; } .wbc-project-installment__method, .wbc-project-installment__date, .wbc-project-installment__confirm { grid-column: 1 / -1; } }
@media (max-width: 560px) { .wbc-maintenance-card__head, .wbc-maintenance-card__actions { align-items: flex-start; flex-direction: column; } .wbc-maintenance-modal__checklist { grid-template-columns: 1fr; } .wbc-maintenance-modal__checklist label.is-optional { grid-column: auto; } .wbc-maintenance-history__item { grid-template-columns: 1fr; } .wbc-maintenance-history__state { justify-items: start; } }
.wbc-create-payment-installments { direction: rtl; margin: 12px 0 16px; color: var(--wbc-text); }
.wbc-create-payment-installments__toggle { width: fit-content; margin: 0; font-weight: 400; cursor: pointer; }
.wbc-create-payment-installments__toggle span { font-weight: 400; }
.wbc-create-payment-installments__toggle input[type='checkbox'], .wbc-create-payment-first-date-toggle input[type='checkbox'] { width: 16px; min-height: 16px; margin: 0; padding: 0; }
.wbc-create-payment-installments__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.wbc-create-payment-installments__fields.wbc-hidden { display: none !important; }
.wbc-create-payment-installments__fields label { display: grid; gap: 5px; min-width: 0; color: var(--wbc-muted); font-size: 12px; font-weight: 800; }
.wbc-create-payment-installments__fields input, .wbc-create-payment-installments__fields select { width: 100%; min-height: 40px; padding: 7px 9px; border: 1px solid var(--wbc-border); border-radius: 6px; background: var(--wbc-card); color: var(--wbc-text); font: inherit; }
.wbc-create-payment-first-date-toggle { margin: 6px 0; font-weight: 400; }
.wbc-create-payment-first-date-toggle span { font-weight: 400; }
.wbc-create-payment-first-date { display: grid; gap: 5px; max-width: 320px; margin: 6px 0 12px; color: var(--wbc-muted); font-size: 12px; font-weight: 700; }
.wbc-create-payment-first-date input { width: 100%; min-height: 40px; padding: 7px 9px; border: 1px solid var(--wbc-border); border-radius: 6px; background: var(--wbc-card); color: var(--wbc-text); font: inherit; }
.wbc-create-payment-first-date.wbc-hidden { display: none !important; }
.wbc-create-payment-installments__fields p { grid-column: 1 / -1; margin: 0; color: var(--wbc-muted); font-size: 12px; }
.wbc-create-payment-installments__preview { grid-column: 1 / -1; max-height: 220px; overflow: auto; padding: 10px 12px; border: 1px solid var(--wbc-border); border-radius: 6px; background: var(--wbc-card); }
.wbc-create-payment-installments__preview:empty { display: none; }
.wbc-create-payment-installments__preview > strong { display: block; margin-bottom: 6px; color: var(--wbc-text); font-size: 12px; }
.wbc-create-payment-installments__preview ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 5px 12px; margin: 0; padding: 0; list-style: none; }
.wbc-create-payment-installments__preview li { display: flex; justify-content: space-between; gap: 12px; color: var(--wbc-muted); font-size: 12px; }
.wbc-create-payment-installments__preview li bdi { color: var(--wbc-text); font-weight: 800; }
.wbc-create-payment-modal.is-installment-mode #wbc-create-payment-cycles-wrap,
.wbc-create-payment-modal.is-installment-mode #wbc-create-payment-annual-gift-wrap,
.wbc-create-payment-modal.is-installment-mode .wbc-create-payment-checklist,
.wbc-create-payment-modal.is-installment-mode .wbc-create-payment-grid--double,
.wbc-create-payment-modal.is-installment-mode .wbc-create-payment-methods { display: none !important; }
@media (max-width: 760px) { .wbc-create-payment-installments__fields { grid-template-columns: 1fr; } .wbc-create-payment-installments__fields p { grid-column: auto; } }

@font-face {
  font-family: 'OZ Temple';
  src: url('../fonts/oz-brand/OZTemple-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'OZ Maadim';
  src: url('../fonts/oz-brand/OZMaadim-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --wbc-indigo: #087df0;
  --wbc-cyan: #14b7d0;
  --wbc-mint: #21c89a;
  --wbc-bg: #f7f8fb;
  --wbc-text: #202033;
  --wbc-muted: #77778a;
  --wbc-card: #ffffff;
  --wbc-border: #e8e8ef;
  --wbc-border-strong: #dbdbe6;
}

.wbc-portal,
.wbc-portal *:not(.iconify) {
  font-family: 'OZ Maadim', Arial, sans-serif;
}

.wbc-portal :is(h1, h2, h3, h4, h5, h6, button, input[type='button'], input[type='submit'], input[type='reset'], .wbc-admin-client-item__initials) {
  font-family: 'OZ Temple', 'OZ Maadim', Arial, sans-serif;
}

.wbc-portal {
  min-height: 100dvh;
  color: var(--wbc-text);
  background: #f7f8fb;
}

.wbc-portal :is(input, select, textarea) {
  color: var(--wbc-text);
}

.wbc-portal :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wbc-cyan) 35%, transparent);
  outline-offset: 2px;
}

.wbc-portal--admin {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: auto;
  height: 100dvh;
  min-height: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background: #f7f8fb;
}

body:has(.wbc-portal--admin) {
  overflow: hidden;
}

.wbc-portal--admin .wbc-portal__bg-shape {
  display: none;
}

.wbc-portal--admin .wbc-portal__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 68px minmax(0, 1fr) 25px;
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f7f8fb;
  box-shadow: none;
}

.wbc-portal--admin .wbc-portal__header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--wbc-border);
  background: #fff;
  text-align: right;
}

.wbc-portal--admin .wbc-portal__brand-logo {
  display: block;
  width: auto;
  max-width: 126px;
  max-height: 42px;
  object-fit: contain;
}

.wbc-portal--admin .wbc-portal__header h1 {
  width: auto;
  margin: 0;
  color: var(--wbc-text);
  font-size: 20px;
  line-height: 1.2;
  text-align: right;
}

.wbc-portal--admin .wbc-portal__title-text {
  background: none;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.wbc-portal--admin .wbc-portal__header p {
  margin: 0;
  color: var(--wbc-muted);
  font-size: 12px;
}

.wbc-portal--admin .wbc-actions--logout-floating {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 20px;
  display: flex;
  margin: 0;
  gap: 8px;
}

.wbc-portal--admin #wbc-portal-view {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.wbc-portal--admin #wbc-portal-view.wbc-panel.is-active {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.wbc-portal--admin .wbc-admin-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  direction: rtl;
  overflow: hidden;
}

.wbc-portal--admin .wbc-admin-clients-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 0 14px;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--wbc-border);
  border-radius: 0;
  background: #fff;
}

.wbc-portal--admin .wbc-admin-clients-sticky {
  position: relative;
  top: auto;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin: 0 -14px 0;
  padding: 0 14px 10px;
  background: #fff;
  border-bottom: 1px solid var(--wbc-border);
}

.wbc-admin-sidebar-brand {
  display: flex;
  height: 62px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--wbc-border);
}

.wbc-admin-sidebar-brand__lottie {
  display: block;
  width: 142px;
  height: 54px;
  flex: none;
}

.wbc-portal--admin .wbc-admin-clients-head {
  min-height: 36px;
  margin: 0;
  gap: 7px;
}

.wbc-portal--admin .wbc-admin-clients-title {
  margin: 0 auto 0 0;
  color: var(--wbc-text);
  font-size: 14px;
}

.wbc-portal--admin .wbc-admin-clients-search {
  width: 100%;
  min-width: 0;
  height: 38px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--wbc-border);
  border-radius: 9px;
  background: #f7f8fb;
  font-size: 13px;
}

.wbc-portal--admin .wbc-admin-clients-list {
  min-height: 0;
  margin: 0 -6px;
  padding: 8px 6px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wbc-portal--admin .wbc-admin-client-item {
  max-width: 100%;
  min-height: 50px;
  margin-bottom: 3px;
  padding: 7px 8px;
  border-color: transparent;
  border-radius: 9px;
  background: transparent;
}

.wbc-portal--admin .wbc-admin-client-item:hover,
.wbc-portal--admin .wbc-admin-client-item.is-active {
  border-color: transparent;
  background: #edf6ff;
  color: #075fbd;
}

.wbc-portal--admin .wbc-admin-main-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 15px 22px 12px;
  overflow: hidden;
  background: #f7f8fb;
}

.wbc-portal--admin .wbc-admin-clients-toggle {
  display: none;
}

.wbc-portal--admin .wbc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: none;
  gap: 10px;
  margin: 0;
}

.wbc-portal--admin .wbc-stat {
  min-width: 0;
  min-height: 76px;
  padding: 11px 14px;
  border: 1px solid var(--wbc-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
}

.wbc-portal--admin .wbc-tabs {
  display: flex;
  flex: none;
  min-height: 48px;
  align-items: stretch;
  justify-content: flex-start;
  gap: 22px;
  margin: 0;
  padding: 0 4px;
  overflow: auto hidden;
  border-bottom: 1px solid var(--wbc-border-strong);
  background: transparent;
}

.wbc-portal--admin .wbc-tabs > .wbc-tab.wbc-hidden {
  display: none !important;
}

.wbc-portal--admin .wbc-tab-panel:not(.is-active) {
  display: none !important;
}

.wbc-portal--admin .wbc-tab-panel.wbc-dashboard-calendar-panel.is-active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.wbc-portal--admin button.wbc-tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  margin: 0;
  padding: 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #626276;
  font-size: 14px;
  font-weight: 650;
  box-shadow: none;
}

.wbc-portal--admin button.wbc-tab.is-active {
  color: var(--wbc-indigo);
  background: transparent;
}

.wbc-portal--admin button.wbc-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--wbc-indigo);
  content: '';
}

.wbc-portal--admin .wbc-tab-panel {
  flex: 1 1 auto;
  height: 51vh;
  max-height: calc(100dvh - 220px);
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.wbc-wp-admin-link:not(.wbc-hidden) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--wbc-border);
  border-radius: 10px;
  background: #eef0ff;
  color: #1a1a2e;
  font: inherit;
  text-decoration: none;
}

.wbc-wp-admin-link:not(.wbc-hidden):hover,
.wbc-wp-admin-link:not(.wbc-hidden):focus-visible {
  background: #dde2ff;
  color: #0f172a;
}

html:has(.wbc-portal) {
  margin-top: 0 !important;
}

body:has(.wbc-portal) #wpadminbar {
  display: none !important;
}

.wbc-portal--admin .wbc-tab-panel.is-active {
  display: block;
}

.wbc-portal--admin .wbc-admin-open-tasks-section,
.wbc-portal--admin .wbc-admin-expected-payments-section {
  max-height: 35%;
  overflow: auto;
  border: 1px solid var(--wbc-border);
  border-radius: 11px;
  background: #fff;
}

.wbc-portal--admin .wbc-shared-footer {
  display: flex;
  height: 25px;
  min-height: 25px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 14px;
  border-top: 1px solid var(--wbc-border);
  background: #fff;
}

.wbc-portal--admin .wbc-shared-footer__lottie {
  width: 22px;
  height: 22px;
}

.wbc-portal--admin .wbc-shared-footer__text {
  font-size: 10px;
}

.wbc-portal:not(.wbc-portal--admin) {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100dvh;
  padding: 12px;
  overflow: hidden;
  background: #f7f8fb;
}

.wbc-portal:not(.wbc-portal--admin) .wbc-portal__bg-shape {
  display: none;
}

.wbc-portal:not(.wbc-portal--admin) .wbc-portal__card {
  width: min(100%, 1280px);
  max-width: 1280px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 16px 20px 8px;
  overflow: hidden;
  border: 1px solid var(--wbc-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px #20203312;
}

.wbc-portal:not(.wbc-portal--admin) .wbc-portal__header {
  flex: none;
  margin-bottom: 10px;
}

.wbc-portal:not(.wbc-portal--admin) #wbc-portal-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.wbc-portal:not(.wbc-portal--admin) .wbc-tab-panel.is-active {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

#wbc-login-view {
  width: min(100%, 460px);
  margin: auto;
}

.wbc-login-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 18px;
}

button.wbc-login-mode__button {
  min-width: 0;
  min-height: 44px;
  justify-content: center;
  padding: 7px 8px;
  border: 1px solid var(--wbc-border);
  border-radius: 8px;
  background: #fff;
  color: #626276;
  font-size: 12px;
}

button.wbc-login-mode__button.is-active {
  border-color: #b9d9ff;
  background: #edf6ff;
  color: #075fbd;
  box-shadow: inset 0 0 0 1px #b9d9ff;
}

.wbc-portal :is(#wbc-identifier, #wbc-otp) {
  min-height: 46px;
  border-color: var(--wbc-border-strong);
  border-radius: 8px;
  font-size: 16px;
}

.wbc-portal .wbc-button--primary {
  min-height: 44px;
  border: 1px solid #087df0;
  border-radius: 8px;
  background: #087df0;
  color: #fff;
  box-shadow: 0 4px 12px #087df026;
}

.wbc-portal .wbc-button--primary:hover {
  background: #075fbd;
  color: #fff;
}

#wbc-resend-otp[aria-disabled='true'] {
  color: var(--wbc-muted);
  cursor: default;
  pointer-events: none;
}

@media (max-width: 900px) {
  .wbc-portal--admin .wbc-admin-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .wbc-portal--admin .wbc-admin-main-pane {
    padding-inline: 14px;
  }
}

@media (max-width: 700px) {
  .wbc-portal--admin .wbc-portal__card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 56px minmax(0, 1fr) 22px;
  }

  .wbc-portal--admin .wbc-portal__header {
    justify-content: center;
    padding: 0 52px;
  }

  .wbc-portal--admin .wbc-portal__brand-logo {
    max-width: 70px;
    max-height: 36px;
  }

  .wbc-portal--admin .wbc-portal__header h1 {
    display: none;
  }

  .wbc-portal--admin .wbc-portal__header p {
    display: none;
  }

  .wbc-portal--admin .wbc-actions--logout-floating {
    top: 9px;
    left: 8px;
  }

  .wbc-portal--admin .wbc-actions--logout-floating .wbc-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 0;
  }

  .wbc-portal--admin .wbc-admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wbc-portal--admin .wbc-admin-clients-pane {
    position: fixed;
    z-index: 40;
    top: 0;
    right: 0;
    bottom: 0;
    display: none;
    width: min(84vw, 330px);
    height: 100dvh;
    box-shadow: 0 16px 44px #20203330;
  }

  .wbc-portal--admin .wbc-admin-clients-pane.is-open {
    display: grid;
  }

  .wbc-portal--admin .wbc-admin-main-pane {
    gap: 8px;
    padding: 9px 10px;
  }

  .wbc-portal--admin .wbc-admin-clients-toggle {
    display: inline-flex;
    min-height: 36px;
    align-self: flex-start;
  }

  .wbc-portal--admin .wbc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .wbc-portal--admin .wbc-stat {
    min-height: 62px;
    padding: 7px 9px;
  }

  .wbc-portal--admin .wbc-tabs {
    min-height: 49px;
    justify-content: space-between;
    gap: 2px;
    padding: 0;
    overflow: auto hidden;
  }

  .wbc-portal--admin button.wbc-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    gap: 2px;
    padding: 3px 1px;
    font-size: 10px;
    white-space: nowrap;
  }

  .wbc-portal--admin button.wbc-tab .iconify {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }

  .wbc-portal--admin .wbc-admin-sidebar-brand {
    height: 56px;
  }

  .wbc-portal--admin .wbc-shared-footer {
    height: 22px;
    min-height: 22px;
    padding-inline: 8px;
  }

  .wbc-portal:not(.wbc-portal--admin) {
    padding: 0;
  }

  .wbc-portal:not(.wbc-portal--admin) .wbc-portal__card {
    width: 100%;
    padding: 12px 12px 5px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .wbc-login-mode {
    gap: 5px;
  }

  button.wbc-login-mode__button {
    min-height: 46px;
    padding-inline: 4px;
    font-size: 11px;
  }
}

/* Admin dashboard hierarchy follows the overview-first reference layout. */
.wbc-portal--admin .wbc-admin-dashboard-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(390px, 1.8fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 12px 0 16px;
  border-bottom: 1px solid #e2e7f0;
}

.wbc-admin-dashboard-summary__title {
  min-width: 0;
  text-align: right;
}

.wbc-admin-dashboard-summary__title > span {
  color: #74809b;
  font: 12px Maadim, Arial, sans-serif;
}

.wbc-admin-dashboard-summary__title h1 {
  margin: 2px 0 1px;
  color: #171c31;
  font: 700 22px Temple, Arial, sans-serif;
}

.wbc-admin-dashboard-summary__title p {
  margin: 0;
  color: #7c8499;
  font: 12px Maadim, Arial, sans-serif;
}

.wbc-admin-dashboard-summary__stats,
.wbc-portal--admin .wbc-admin-dashboard-summary__stats > #wbc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e6ef;
  border-radius: 10px;
  background: #fff;
}

.wbc-admin-dashboard-summary__stats > #wbc-stats {
  display: contents;
}

.wbc-admin-dashboard-summary__metric {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  text-align: right;
}

.wbc-admin-dashboard-summary__metric + .wbc-admin-dashboard-summary__metric {
  border-inline-start: 1px solid #e8ebf2;
}

.wbc-admin-dashboard-summary__metric:first-child {
  background: #fff7eb;
}

.wbc-admin-dashboard-summary__metric > span {
  color: #68738f;
  font: 11px Maadim, Arial, sans-serif;
}

.wbc-admin-dashboard-summary__metric > strong {
  color: #16213a;
  font: 700 18px Temple, Arial, sans-serif;
}

.wbc-admin-dashboard__snapshot-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-width: 0;
}

.wbc-admin-dashboard__snapshot-head h2 {
  margin: 0;
  color: #182039;
  font: 700 19px Temple, Arial, sans-serif;
}

.wbc-admin-dashboard__snapshot-head p {
  margin: 3px 0 0;
  color: #78829b;
  font: 12px Maadim, Arial, sans-serif;
}

.wbc-admin-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wbc-admin-dashboard__snapshot-stat {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
  min-height: 84px;
  padding: 14px;
  border: 1px solid #e1e6ef;
  border-radius: 10px;
  background: #fff;
}

.wbc-admin-dashboard__snapshot-stat > .wbc-dashboard-stat-icon {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 19px;
}

.wbc-dashboard-stat-icon.is-warning { background: #fff3e2; color: #bf7a19; }
.wbc-dashboard-stat-icon.is-payment { background: #edf0ff; color: #5665b8; }
.wbc-dashboard-stat-icon.is-site { background: #e8f8fc; color: #1592ae; }
.wbc-dashboard-stat-icon.is-task { background: #e8f8f3; color: #21866e; }

.wbc-admin-dashboard__snapshot-stat > span:nth-child(2) {
  align-self: end;
  overflow: hidden;
  color: #6d7893;
  font: 12px Maadim, Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wbc-admin-dashboard__snapshot-stat > strong {
  align-self: start;
  color: #171d32;
  font: 700 22px Temple, Arial, sans-serif;
}

.wbc-admin-dashboard__view-tabs {
  align-self: flex-start;
  margin-inline-start: auto;
}

.wbc-admin-dashboard__overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 12px;
  min-width: 0;
  align-items: stretch;
}

.wbc-admin-dashboard__tasks-slot,
.wbc-admin-dashboard__activity {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e6ef;
  border-radius: 10px;
  background: #fff;
}

.wbc-admin-dashboard__tasks-slot > .wbc-admin-open-tasks-section {
  border: 0;
  border-radius: 0;
}

.wbc-portal--admin .wbc-admin-dashboard__tasks-slot > .wbc-admin-open-tasks-section {
  padding: 14px;
}

.wbc-admin-dashboard__activity > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid #e8ebf2;
}

.wbc-admin-dashboard__activity > header h3 {
  margin: 0;
  color: #20253a;
  font: 700 15px Temple, Arial, sans-serif;
}

.wbc-admin-dashboard__activity > header a {
  color: #596783;
  font: 12px Maadim, Arial, sans-serif;
  text-decoration: none;
}

.wbc-admin-dashboard__activity-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 13px;
  border-bottom: 1px solid #edf0f5;
}

.wbc-admin-dashboard__activity-item:last-child { border-bottom: 0; }

.wbc-admin-dashboard__activity-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #edf8f7;
  color: #238a83;
  font-size: 17px;
}

.wbc-admin-dashboard__activity-item strong {
  display: block;
  overflow: hidden;
  color: #242a3e;
  font: 700 12px Temple, Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wbc-admin-dashboard__activity-item p,
.wbc-admin-dashboard__activity-item small {
  display: block;
  margin: 2px 0 0;
  color: #78829b;
  font: 11px Maadim, Arial, sans-serif;
}

.wbc-admin-dashboard__activity-status {
  padding: 4px 7px;
  border-radius: 99px;
  background: #fff3e2;
  color: #a96c16;
  font: 11px Maadim, Arial, sans-serif;
  white-space: nowrap;
}

.wbc-admin-dashboard__activity-empty {
  margin: 0;
  padding: 24px 14px;
  color: #78829b;
  font: 13px Maadim, Arial, sans-serif;
}

.wbc-admin-dashboard .wbc-task-table-wrap {
  max-height: min(390px, 45vh);
  overflow: auto;
}

@media (max-width: 1050px) {
  .wbc-portal--admin .wbc-admin-dashboard-summary {
    grid-template-columns: minmax(160px, 1fr) minmax(320px, 1.6fr);
  }
  .wbc-admin-dashboard-summary .wbc-admin-dashboard__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  .wbc-portal--admin .wbc-admin-dashboard-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .wbc-admin-dashboard-summary__stats,
  .wbc-portal--admin .wbc-admin-dashboard-summary__stats > #wbc-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wbc-admin-dashboard__overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .wbc-admin-dashboard__activity { order: 2; }
}

@media (max-width: 560px) {
  .wbc-admin-dashboard-summary__metric { min-height: 56px; padding: 7px; }
  .wbc-admin-dashboard-summary__metric > strong { font-size: 15px; }
  .wbc-admin-dashboard__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wbc-admin-dashboard__snapshot-stat { min-height: 72px; padding: 9px; column-gap: 7px; }
  .wbc-admin-dashboard__snapshot-stat > .wbc-dashboard-stat-icon { width: 30px; height: 30px; }
}

.wbc-calendar-export-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; color: #075fbd; font-size: 14px; font-weight: 700; text-decoration: underline; white-space: nowrap; }
button.wbc-admin-ai-approve { align-self: flex-start; min-height: 40px; padding: 0 16px; border-radius: 10px; background: #075fbd; color: #fff; }
button.wbc-admin-ai-approve:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

@media (max-width: 700px) {
  .wbc-portal--admin .wbc-admin-main-pane { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .wbc-portal--admin .wbc-tab-panel.is-active,
  .wbc-portal--admin .wbc-tab-panel.wbc-dashboard-calendar-panel.is-active { flex: 0 0 auto; height: auto; max-height: none; min-height: 0; overflow: visible; }
  .wbc-portal--admin .wbc-tab-panel.is-active > section,
  .wbc-portal--admin .wbc-tab-panel.is-active > .wbc-dashboard-feed-section,
  .wbc-portal--admin .wbc-admin-dashboard__overview-grid,
  .wbc-portal--admin .wbc-admin-dashboard__tasks-slot,
  .wbc-portal--admin .wbc-admin-dashboard__activity { height: auto; max-height: none; min-height: 0; }
  .wbc-portal--admin .wbc-dashboard-feed-section { overflow: visible; }
  .wbc-portal--admin .wbc-dashboard-feed-scroll { height: auto; max-height: none; overflow: visible; }
  .wbc-portal--admin .wbc-admin-dashboard.is-active { flex: 0 0 auto; height: auto; max-height: none; overflow: visible; }
  .wbc-portal--admin :is(.wbc-task-table-wrap, .wbc-admin-expected-payments-section, .wbc-admin-expected-payments-calendar) { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wbc-admin-ai-modal__panel { max-height: calc(100dvh - 32px); bottom: 16px; }
  .wbc-admin-ai-modal__messages { min-height: 0; }
  .wbc-admin-ai-modal__head { align-items: flex-start; }
  .wbc-admin-ai-modal__head-actions { flex-direction: column; align-items: center; flex: 0 0 34px; }
  .wbc-admin-ai-history { top: 188px; }
}

.wbc-portal--admin:not(.wbc-admin-dashboard-active) .wbc-admin-dashboard-summary { grid-template-columns: minmax(0, 1fr) auto; }
.wbc-portal--admin .wbc-admin-dashboard-summary .wbc-admin-dashboard__actions { justify-content: flex-end; flex-wrap: wrap; }
.wbc-portal--admin .wbc-admin-dashboard__actions .wbc-actions--logout-floating { position: static; display: inline-flex; margin: 0; gap: 8px; }
.wbc-portal--admin .wbc-admin-dashboard__actions .wbc-actions--logout-floating.wbc-hidden { display: none; }
.wbc-portal--admin .wbc-admin-dashboard__actions :is(.button, .wbc-button, .wbc-wp-admin-link) { width: auto; min-width: 0; min-height: 36px; padding: 0 12px; font-size: 14px; font-weight: 700; line-height: 1.2; }
.wbc-portal--admin .wbc-admin-dashboard__actions :is(.button, .wbc-button, .wbc-wp-admin-link):focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
@media (max-width: 700px) {
  .wbc-portal--admin .wbc-portal__card:has(#wbc-portal-view.is-active) { grid-template-rows: minmax(0, 1fr) 22px; }
  .wbc-portal--admin .wbc-admin-dashboard-summary .wbc-admin-dashboard__actions { grid-column: 1 / -1; }
  .wbc-portal--admin .wbc-admin-dashboard__actions :is(.button, .wbc-button, .wbc-wp-admin-link) { width: auto; min-width: 0; padding: 0 10px; font-size: 14px; }
  .wbc-portal--admin .wbc-admin-dashboard__actions button.wbc-button.wbc-logout-floating { width: auto; min-width: 0; height: 36px; min-height: 36px; padding: 0 10px; font-size: 14px; line-height: 1.2; }
}

.wbc-portal--admin .wbc-tabs {
  width: 100%;
  min-width: 0;
  height: auto;
  max-height: 84px;
  min-height: 76px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.wbc-portal--admin .wbc-tabs > #wbc-admin-sites-selector {
  display: flex;
  flex: 1 1 38%;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-width: 0;
  max-width: none;
  align-self: stretch;
  margin: 0;
  padding: 4px 8px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wbc-portal--admin .wbc-tabs > #wbc-admin-sites-selector.wbc-hidden {
  display: none;
}

.wbc-portal--admin .wbc-tabs > #wbc-admin-sites-selector .wbc-admin-sites-title {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  text-align: left;
}

.wbc-portal--admin .wbc-tabs > #wbc-admin-sites-selector .wbc-admin-sites-grid {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  touch-action: pan-x;
}

.wbc-portal--admin .wbc-tabs > #wbc-admin-sites-selector .wbc-admin-site-box,
.wbc-portal--admin .wbc-tabs > #wbc-admin-sites-selector .wbc-admin-site-add {
  flex: 0 0 auto;
  min-height: 34px;
  max-width: 220px;
  padding: 4px 8px;
}

@media (max-width: 560px) {
  .wbc-portal--admin .wbc-tabs { gap: 4px; }
  .wbc-portal--admin .wbc-tabs > #wbc-admin-sites-selector {
    flex-basis: 34%;
    max-width: none;
    padding-inline: 2px;
  }
  .wbc-portal--admin .wbc-tabs > #wbc-admin-sites-selector .wbc-admin-site-box,
  .wbc-portal--admin .wbc-tabs > #wbc-admin-sites-selector .wbc-admin-site-add {
    min-height: 38px;
    max-width: 150px;
    padding: 4px 6px;
  }
}

/* Root control-panel views share one scroll boundary under the global navigation. */
.wbc-portal--admin .wbc-tab-panel {
  height: 0;
  max-height: none;
  min-height: 0;
  flex: 1 1 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.wbc-portal--admin .wbc-tab-panel > section,
.wbc-portal--admin .wbc-tab-panel > .wbc-dashboard-feed-section {
  height: 100%;
  min-height: 0;
}
.wbc-portal--admin .wbc-tab-panel > .wbc-maintenance-history {
  height: auto;
  min-height: 0;
}
.wbc-portal--admin .wbc-maintenance-history,
.wbc-portal--admin .wbc-maintenance-history *:not(.iconify) {
  font-family: 'OZ Maadim', Arial, sans-serif !important;
}
.wbc-portal--admin .wbc-maintenance-history :is(h3, strong, .wbc-maintenance-history__head > span) {
  font-family: 'OZ Temple', 'OZ Maadim', Arial, sans-serif !important;
}
.wbc-portal--admin .wbc-tab-panel[data-panel="dashboard"] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wbc-portal--admin .wbc-admin-dashboard__overview-grid {
  flex: 1 1 auto;
  min-height: 0;
}
.wbc-portal--admin .wbc-admin-dashboard__tasks-slot,
.wbc-portal--admin .wbc-admin-dashboard__activity {
  height: 100%;
  min-height: 0;
}
.wbc-portal--admin .wbc-admin-dashboard__tasks-slot > .wbc-admin-open-tasks-section {
  height: 100%;
  max-height: none;
  overflow: auto;
}
.wbc-portal--admin .wbc-dashboard-feed-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e1e6ef;
  border-radius: 10px;
  background: #fff;
}
.wbc-portal--admin .wbc-dashboard-feed-section > header {
  display: flex;
  min-height: 58px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #e8ebf2;
}
.wbc-portal--admin .wbc-dashboard-feed-section > header h2 {
  margin: 0;
  color: #182039;
  font: 700 18px Temple, Arial, sans-serif;
}
.wbc-portal--admin .wbc-dashboard-feed-section > header p {
  margin: 0;
  color: #78829b;
  font: 12px Maadim, Arial, sans-serif;
}
.wbc-portal--admin .wbc-dashboard-feed-scroll {
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}
.wbc-dashboard-feed-content { min-height: 0; }
.wbc-dashboard-feed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(95px, auto) minmax(100px, auto) 24px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 15px;
  border-bottom: 1px solid #edf0f5;
  color: #25304a;
}
.wbc-dashboard-feed-row > div { min-width: 0; }
.wbc-dashboard-feed-row strong,
.wbc-dashboard-feed-row small { display: block; overflow: hidden; text-overflow: ellipsis; }
.wbc-dashboard-feed-row strong { font: 700 13px Temple, Arial, sans-serif; }
.wbc-dashboard-feed-row small { margin-top: 3px; color: #77829b; font: 12px Maadim, Arial, sans-serif; white-space: nowrap; }
.wbc-dashboard-feed-row a { color: #64748b; font-size: 22px; text-align: center; text-decoration: none; }
.wbc-dashboard-feed-row a:hover { color: #385af5; }
.wbc-dashboard-feed-badge { padding: 4px 8px; border-radius: 99px; background: #fff3df; color: #9a6417; font: 12px Maadim, Arial, sans-serif; text-align: center; }
.wbc-dashboard-feed-badge.is-sent { background: #e8f7ef; color: #197a4a; }
.wbc-dashboard-feed-badge.is-failed { background: #fff0f0; color: #b42318; }
.wbc-dashboard-feed-amount { white-space: nowrap; color: #17213b; }
.wbc-dashboard-feed-status { min-height: 24px; margin: 0; padding: 4px 12px; color: #77829b; font: 12px Maadim, Arial, sans-serif; text-align: center; }
.wbc-portal--admin .wbc-dashboard-calendar-panel .wbc-admin-expected-payments-section {
  height: 100%;
  max-height: none;
  overflow: auto;
}
@media (max-width: 800px) {
  .wbc-portal--admin .wbc-tab-panel { height: 0; }
  .wbc-dashboard-feed-row { grid-template-columns: minmax(0, 1fr) auto 24px; gap: 8px; }
  .wbc-dashboard-feed-row > small:nth-last-of-type(1) { display: none; }
}

@media (max-width: 370px) {
  button.wbc-login-mode__button {
    font-size: 10px;
  }

  .wbc-portal--admin .wbc-stat__label {
    font-size: 11px;
  }
}

.wbc-portal:not(.wbc-portal--admin):has(#wbc-login-view.is-active) {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  overflow-x: hidden;
  overflow-y: auto;
}

.wbc-portal:not(.wbc-portal--admin):has(#wbc-login-view.is-active) .wbc-portal__card {
  width: min(100%, 520px);
  max-width: 520px;
  height: auto;
  min-height: 0;
  margin: 0 auto;
  padding: 20px;
  overflow: hidden;
}

.wbc-portal:not(.wbc-portal--admin):has(#wbc-login-view.is-active) .wbc-portal__header {
  margin-bottom: 12px;
}

.wbc-portal:not(.wbc-portal--admin):has(#wbc-login-view.is-active) #wbc-portal-view {
  display: none !important;
}

.wbc-portal--admin .wbc-admin-dashboard {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 2px 1px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.wbc-portal--admin .wbc-admin-dashboard.is-active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wbc-admin-dashboard__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.wbc-admin-dashboard__head h2 {
  margin: 3px 0 2px;
  color: #151a2c;
  font-family: Temple, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.wbc-admin-dashboard__eyebrow,
.wbc-admin-dashboard__head p {
  color: #747b91;
  font-family: Maadim, Arial, sans-serif;
  font-size: 12px;
}

.wbc-admin-dashboard__head p {
  margin: 0;
}

.wbc-admin-dashboard__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.wbc-portal--admin .wbc-admin-dashboard__actions .button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #d8e1f0;
  border-radius: 8px;
  background: #fff;
  color: #35415f;
  font: inherit;
}

.wbc-portal--admin .wbc-admin-dashboard__actions .wbc-dashboard-new-task {
  border-color: #5148e8;
  background: #5148e8;
  color: #fff;
}

.wbc-admin-dashboard__stats > #wbc-stats,
.wbc-admin-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wbc-admin-dashboard__stats > #wbc-stats {
  display: contents;
}

.wbc-portal--admin .wbc-admin-dashboard__stats .wbc-stat {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  padding: 13px 15px;
  border: 1px solid #dfe5f0;
  border-radius: 9px;
  background: #fff;
  color: #151a2c;
}

.wbc-admin-dashboard__stats .wbc-stat__label {
  color: #7c8499;
  font-family: Maadim, Arial, sans-serif;
  font-size: 12px;
}

.wbc-admin-dashboard__stats .wbc-stat__value {
  color: #171c31;
  font-family: Temple, Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.wbc-admin-dashboard .wbc-stats--admin-overview .wbc-admin-overview-card {
  grid-column: auto;
  min-height: 82px;
  cursor: default;
}

.wbc-admin-dashboard__view-tabs {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid #e1e6f0;
  border-radius: 9px;
  background: #eef1f7;
}

.wbc-portal--admin .wbc-admin-dashboard__view-tabs button {
  min-width: 98px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #59627a;
  font: inherit;
  cursor: pointer;
}

.wbc-portal--admin .wbc-admin-dashboard__view-tabs button.is-active {
  background: #fff;
  color: #234ca7;
  box-shadow: 0 1px 3px #17244316;
}

.wbc-admin-dashboard__view {
  min-width: 0;
}

.wbc-admin-dashboard__view.is-active:not(.wbc-hidden) {
  display: block;
}

.wbc-admin-dashboard__view > .wbc-admin-open-tasks-section,
.wbc-admin-dashboard__view > .wbc-admin-expected-payments-section {
  max-height: none;
  margin: 0;
  overflow: visible;
  border: 1px solid #dfe5f0;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.wbc-portal--admin .wbc-admin-dashboard__view > .wbc-admin-open-tasks-section {
  padding: 16px;
}

.wbc-portal--admin .wbc-admin-dashboard__view > .wbc-admin-expected-payments-section {
  padding: 14px;
}

.wbc-admin-dashboard .wbc-admin-open-tasks-header {
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}

.wbc-admin-dashboard .wbc-admin-open-tasks-header h3,
.wbc-admin-dashboard .wbc-admin-expected-payments-header h3 {
  margin: 0;
  color: #20253a;
  font-size: 16px;
}

.wbc-admin-dashboard .wbc-admin-open-tasks-header h3 {
  font-family: 'OZ Temple', Arial, sans-serif;
}

.wbc-admin-dashboard .wbc-admin-open-tasks-header p,
.wbc-admin-dashboard .wbc-admin-expected-payments-header p {
  color: #7b8295;
  font-family: Maadim, Arial, sans-serif;
  font-size: 12px;
}

.wbc-admin-dashboard .wbc-admin-expected-payments-calendar {
  min-height: 350px;
}

@media (max-width: 900px) {
  .wbc-admin-dashboard__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .wbc-portal--admin .wbc-admin-dashboard {
    padding-inline: 0;
  }

  .wbc-admin-dashboard__head {
    align-items: flex-start;
  }

  .wbc-admin-dashboard__head h2 {
    font-size: 19px;
  }

  .wbc-admin-dashboard__actions {
    gap: 5px;
  }

  .wbc-portal--admin .wbc-admin-dashboard__actions .button {
    width: 36px;
    min-width: 36px;
    padding: 0;
    font-size: 0;
  }

  .wbc-portal--admin .wbc-admin-dashboard__actions .button .iconify {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }

  .wbc-admin-dashboard__stats {
    gap: 7px;
  }

  .wbc-portal--admin .wbc-admin-dashboard__stats .wbc-stat {
    min-height: 72px;
    padding: 10px;
  }

  .wbc-admin-dashboard__stats .wbc-stat__value {
    font-size: 18px;
  }

  .wbc-portal--admin .wbc-admin-dashboard__view-tabs {
    width: 100%;
  }

  .wbc-portal--admin .wbc-admin-dashboard__view-tabs button {
    flex: 1 1 0;
  }

  .wbc-admin-dashboard .wbc-admin-expected-payments-calendar {
    min-height: 280px;
  }
}

/* Final admin dashboard layout overrides. */
.wbc-portal--admin .wbc-admin-dashboard-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(390px, 1.8fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 12px 0 16px;
  border-bottom: 1px solid #e2e7f0;
}
.wbc-admin-dashboard-summary__title { min-width: 0; text-align: right; }
.wbc-admin-dashboard-summary__title > span { color: #74809b; font: 12px Maadim, Arial, sans-serif; }
.wbc-admin-dashboard-summary__title h1 { margin: 2px 0 1px; color: #171c31; font: 700 22px Temple, Arial, sans-serif; }
.wbc-admin-dashboard-summary__title p { margin: 0; color: #7c8499; font: 12px Maadim, Arial, sans-serif; }
.wbc-admin-dashboard-summary__stats,
.wbc-portal--admin .wbc-admin-dashboard-summary__stats > #wbc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e6ef;
  border-radius: 10px;
  background: #fff;
}
.wbc-admin-dashboard-summary__stats > #wbc-stats { display: contents; }
.wbc-admin-dashboard-summary__metric { display: flex; min-height: 62px; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 14px; text-align: right; }
.wbc-admin-dashboard-summary__metric + .wbc-admin-dashboard-summary__metric { border-inline-start: 1px solid #e8ebf2; }
.wbc-admin-dashboard-summary__metric:first-child { background: #fff7eb; }
.wbc-admin-dashboard-summary__metric > span { color: #68738f; font: 11px Maadim, Arial, sans-serif; }
.wbc-admin-dashboard-summary__metric > strong { color: #16213a; font: 700 18px Temple, Arial, sans-serif; }
.wbc-portal--admin .wbc-dashboard-feed-section > header h2 { font-family: 'OZ Temple', Arial, sans-serif; }
.wbc-portal--admin .wbc-dashboard-feed-section > header p { font-family: 'OZ Maadim', Arial, sans-serif; }
.wbc-portal--admin .wbc-admin-dashboard-summary__metric > span { font-family: 'OZ Maadim', Arial, sans-serif; }
.wbc-portal--admin .wbc-admin-dashboard-summary__metric > strong { font-family: 'OZ Temple', Arial, sans-serif; }
.wbc-portal--admin .wbc-admin-dashboard-summary__stats.wbc-hidden,
.wbc-portal--admin .wbc-admin-dashboard-summary__stats > #wbc-stats.wbc-hidden { display: none; }
.wbc-admin-dashboard__snapshot-head { display: flex; align-items: end; justify-content: space-between; min-width: 0; }
.wbc-admin-dashboard__snapshot-head h2 { margin: 0; color: #182039; font: 700 19px Temple, Arial, sans-serif; }
.wbc-admin-dashboard__snapshot-head p { margin: 3px 0 0; color: #78829b; font: 12px Maadim, Arial, sans-serif; }
.wbc-admin-dashboard__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wbc-admin-dashboard__snapshot-stat { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 12px; min-width: 0; min-height: 84px; padding: 14px; border: 1px solid #e1e6ef; border-radius: 10px; background: #fff; }
.wbc-admin-dashboard__snapshot-stat > .wbc-dashboard-stat-icon { display: grid; grid-row: 1 / 3; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-size: 19px; }
.wbc-dashboard-stat-icon.is-warning { background: #fff3e2; color: #bf7a19; }
.wbc-dashboard-stat-icon.is-payment { background: #edf0ff; color: #5665b8; }
.wbc-dashboard-stat-icon.is-site { background: #e8f8fc; color: #1592ae; }
.wbc-dashboard-stat-icon.is-task { background: #e8f8f3; color: #21866e; }
.wbc-admin-dashboard__snapshot-stat > span:nth-child(2) { align-self: end; overflow: hidden; color: #6d7893; font: 12px Maadim, Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.wbc-admin-dashboard__snapshot-stat > strong { align-self: start; color: #171d32; font: 700 22px Temple, Arial, sans-serif; }
.wbc-admin-dashboard__view-tabs { align-self: flex-start; margin-inline-start: auto; }
.wbc-portal--admin .wbc-admin-dashboard__view-tabs { align-self: auto; margin-left: auto; margin-right: 0; }
.wbc-admin-dashboard__overview-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 12px; min-width: 0; align-items: stretch; }
.wbc-admin-dashboard__tasks-slot,
.wbc-admin-dashboard__activity { min-width: 0; overflow: hidden; border: 1px solid #e1e6ef; border-radius: 10px; background: #fff; }
.wbc-admin-dashboard__tasks-slot > .wbc-admin-open-tasks-section { border: 0; border-radius: 0; }
.wbc-admin-dashboard__tasks-slot > .wbc-admin-open-tasks-section { max-height: none; overflow: visible; }
.wbc-portal--admin .wbc-admin-dashboard__tasks-slot > .wbc-admin-open-tasks-section { padding: 14px; }
.wbc-admin-dashboard__activity > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 0 14px; border-bottom: 1px solid #e8ebf2; }
.wbc-admin-dashboard__activity > header h3 { margin: 0; color: #20253a; font: 700 15px Temple, Arial, sans-serif; }
.wbc-admin-dashboard__activity > header a { color: #596783; font: 12px Maadim, Arial, sans-serif; text-decoration: none; }
.wbc-admin-dashboard__activity-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 62px; padding: 8px 13px; border-bottom: 1px solid #edf0f5; }
.wbc-admin-dashboard__activity-item:last-child { border-bottom: 0; }
.wbc-admin-dashboard__activity-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #edf8f7; color: #238a83; font-size: 17px; }
.wbc-admin-dashboard__activity-item strong { display: block; overflow: hidden; color: #242a3e; font: 700 12px Temple, Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.wbc-admin-dashboard__activity-item p,
.wbc-admin-dashboard__activity-item small { display: block; margin: 2px 0 0; color: #78829b; font: 11px Maadim, Arial, sans-serif; }
.wbc-admin-dashboard__activity-status { padding: 4px 7px; border-radius: 99px; background: #fff3e2; color: #a96c16; font: 11px Maadim, Arial, sans-serif; white-space: nowrap; }
.wbc-admin-dashboard__activity-empty { margin: 0; padding: 24px 14px; color: #78829b; font: 13px Maadim, Arial, sans-serif; }
.wbc-admin-dashboard .wbc-task-table-wrap { max-height: min(390px, 45vh); overflow: auto; }
.wbc-portal--admin:has(#wbc-portal-view.is-active) .wbc-portal__header { display: none; }
.wbc-portal--admin .wbc-portal__card:has(#wbc-portal-view.is-active) { grid-template-rows: minmax(0, 1fr) 25px; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table { width: 100%; min-width: 0; table-layout: fixed; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th,
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td { width: auto; min-width: 0; white-space: normal; vertical-align: middle; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th {
  padding: 10px 12px;
  background: #f2f6fd;
  color: #202944;
  font: 700 13px 'OZ Temple', Arial, sans-serif;
  text-align: right;
  white-space: nowrap;
}
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table tbody tr:nth-child(even) td { background: #fbfcff; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table tbody tr:hover td { background: #f3f8ff; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th:first-child,
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td:first-child { width: 26%; min-width: 0; max-width: none; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th:nth-child(2),
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td:nth-child(2) { width: 10%; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th:nth-child(3),
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td:nth-child(3) { width: 12%; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th:nth-child(4),
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td:nth-child(4) { width: 10%; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th:nth-child(5),
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td:nth-child(5) { width: 8%; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th:nth-child(6),
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td:nth-child(6) { width: 9%; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th:nth-child(7),
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td:nth-child(7) { display: table-cell; width: 14%; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th:nth-child(8),
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td:nth-child(8) {
  display: table-cell;
  width: 11%;
  min-width: 0;
  max-width: none;
  position: static;
  box-shadow: none;
}
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table th:nth-child(8) { text-align: center; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td.wbc-admin-open-task-actions > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td.wbc-admin-open-task-title { line-height: 1.45; }
.wbc-admin-dashboard .wbc-admin-global-open-tasks-table td:nth-child(7) { direction: ltr; text-align: center; white-space: nowrap; }
.wbc-admin-dashboard .wbc-admin-open-task-actions .wbc-task-action {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  margin: 0;
}
.wbc-portal--admin .wbc-admin-dashboard__tasks-slot .wbc-admin-open-tasks-header > p {
  font-family: 'OZ Maadim', Arial, sans-serif;
}

.wbc-portal--admin .wbc-admin-dashboard-summary__stats {
  display: block;
  width: 100%;
  min-width: 0;
}

.wbc-portal--admin .wbc-admin-dashboard-summary__stats > #wbc-stats {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wbc-portal--admin .wbc-admin-clients-pane {
  height: 100%;
  max-height: 100%;
}

.wbc-portal--admin .wbc-admin-clients-list {
  height: 100%;
  max-height: 100%;
}

.wbc-portal--admin:not(.wbc-admin-dashboard-active) .wbc-admin-dashboard-summary__stats,
.wbc-portal--admin:not(.wbc-admin-dashboard-active) #wbc-stats {
  display: none;
}

@media (max-width: 1050px) {
  .wbc-portal--admin .wbc-admin-dashboard-summary { grid-template-columns: minmax(160px, 1fr) minmax(320px, 1.6fr); }
  .wbc-admin-dashboard-summary .wbc-admin-dashboard__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 800px) {
  .wbc-portal--admin .wbc-admin-dashboard-summary { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .wbc-admin-dashboard__overview-grid { grid-template-columns: minmax(0, 1fr); }
  .wbc-admin-dashboard__activity { order: 2; }
}
@media (max-width: 560px) {
  .wbc-admin-dashboard-summary__metric { min-height: 56px; padding: 7px; }
  .wbc-admin-dashboard-summary__metric > strong { font-size: 15px; }
  .wbc-admin-dashboard__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wbc-admin-dashboard__snapshot-stat { min-height: 72px; padding: 9px; column-gap: 7px; }
  .wbc-admin-dashboard__snapshot-stat > .wbc-dashboard-stat-icon { width: 30px; height: 30px; }
}
.wbc-client-gender-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #d8e0f0;
  border-radius: 8px;
  font: inherit;
}

.wbc-admin-create-form__gender {
  width: 100%;
}

.wbc-admin-create-form__gender legend {
  padding-inline: 4px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.wbc-client-gender-options label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  cursor: pointer;
}

.wbc-client-gender-options input[type="radio"] {
  margin: 0;
}
