.account-info-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  margin-top: var(--ant-margin-lg);
  padding-top: var(--ant-padding-sm);
  overflow: auto;
}


.account-info-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  width: 100%;
  min-width: 0;
}

.account-info-row > *:not(:first-child):not(.account-info-row-actions) {
  flex: 1;
  min-width: 0;
}

.account-info-row > .account-info-row-value-fit {
  flex: 0 1 auto;
  width: fit-content;
}

.account-info-row > span:first-child { /* the label <Text> */
  width: 135px;
  text-align: right;
  flex-shrink: 0;
  color: var(--ant-color-text-secondary);
}

.account-info-row-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 55px;
}

.account-info-block + .account-info-block {
  margin-top: 8px;
}

/* Make disabled selects more visible */
.disabled-select-visible.ant-select-disabled .ant-select-selector {
  color: var(--ant-color-text) !important;
  background-color: var(--ant-color-fill-quaternary) !important;
  cursor: not-allowed;
}

.disabled-select-visible.ant-select-disabled .ant-select-selection-item {
  color: var(--ant-color-text) !important;
}

/* Rest reason — same tone as "Active from" line */
.rest-reason {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ant-color-text-secondary);
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.ams-wrapper {
  padding: 0;
}

.ams-wrapper .status-select-inactive .ant-select-selector {
  background-color: #f5222d !important; /* Red color from the picture */
  color: white !important;
  border: none !important; /* Ensure no border */
  border-radius: 4px; /* Optional: Add some rounded corners */
  padding-left: 12px !important; /* Adjust padding as needed */
  padding-right: 12px !important; /* Adjust padding as needed */
}

.ams-wrapper .status-select-active .ant-select-selector {
  background-color: #389e0d !important; /* Green color from the picture */
  color: white !important;
  border: none !important; /* Ensure no border */
  border-radius: 4px; /* Optional: Add some rounded corners */
  padding-left: 12px !important; /* Adjust padding as needed */
  padding-right: 12px !important; /* Adjust padding as needed */
}

/* Style for the dropdown options */
.ams-wrapper .ant-select-dropdown .status-option-inactive {
  background-color: #f5222d !important; /* Red color for Inactive option */
  color: white !important;
}

.ams-wrapper .ant-select-dropdown .status-option-active {
  background-color: #389e0d !important; /* Green color for Active option */
  color: white !important;
}

.ams-wrapper .status-select-inactive .ant-select-arrow,
.ams-wrapper .status-select-active .ant-select-arrow {
  color: #fff;
  font-size: 12px;
}

.ams-wrapper .ant-select-dropdown .ant-select-item {
  padding: 4px 12px !important; /* Adjust padding for dropdown items */
}

.ams-wrapper
  .ant-select-dropdown
  .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  background-color: lightskyblue !important; /* Optional: Highlight color for active dropdown item */
}

.ams-wrapper .custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--ant-gray-9);
  width: 100%;
  color: var(--ant-gray-1);
  padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  position: absolute;
  top: 0;
  left: 0;
}

.ams-wrapper .custom-modal-header button {
  color: var(--ant-gray-1);
}

.ams-wrapper .change-proxy-field {
  position: relative;
}

.ams-wrapper .change-proxy-select-with-copy .ant-select-selector {
  padding-right: 30px !important;
}

.ams-wrapper .change-proxy-select-with-copy .ant-select-selection-search {
  right: 30px !important;
}

.ams-wrapper .change-proxy-select-with-copy .ant-select-selection-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ams-wrapper .change-proxy-copy-button {
  position: absolute;
  right: 28px;
  top: 32px;
  z-index: 2;
}

.ams-wrapper .change-proxy-copy-button-copied {
  color: #389e0d;
}

.ams-wrapper .change-proxy-copy-button-copied:hover,
.ams-wrapper .change-proxy-copy-button-copied:focus-visible {
  color: #389e0d !important;
}


.ams-wrapper.physical-phone-details-modal .physical-phone-details-content {
  padding: 20px 0;
  width: 100%;
}

.ams-wrapper.physical-phone-details-modal .physical-phone-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 10px;
  width: 100%;
}

.ams-wrapper.physical-phone-details-modal .physical-phone-detail-row {
  min-width: 0;
}

.ams-wrapper.physical-phone-details-modal .physical-phone-detail-row > span:first-child {
  flex-shrink: 0;
}

@media screen and (max-width: 767px) {
  .ams-wrapper.physical-phone-details-modal .physical-phone-details-grid {
    grid-template-columns: 1fr;
  }
}

/* .ams-wrapper .account-info-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
} */

/* .ams-wrapper .account-info-row {
  display: flex;
  width: 100%;
}
.ams-wrapper .account-info-label {
  min-width: 130px;
  text-align: right;
  padding-right: 16px;
  font-weight: 500;
}

.ams-wrapper .account-info-value {
  font-size: 15px;
} */

.ams-wrapper .account_step_circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.ams-wrapper .account_step_circle.completed {
  background-color: #389e0d;
}
.ams-wrapper .account_step_circle.not-completed {
  background-color: #b7eb8f;
}

.ams-wrapper .available-circle {
  margin-left: 6px;
  width: 22px; /* Adjust size as needed */
  height: 22px;
  border-radius: 50%;
  /* Modified gradient to have the blank part at the top */
  background: linear-gradient(
    to top,
    #389e0d 0%,
    #389e0d 80%,
    transparent 80%,
    transparent 100%
  );
  border: 3px solid #389e0d; /* Added a green border */
  display: flex;
  align-items: center;
  justify-content: center;
}

.ams-wrapper .unavailable-circle {
  margin-left: 6px;
  width: 22px; /* Adjust size as needed */
  height: 22px;
  border-radius: 50%;
  /* Modified gradient to have the blank part at the top */
  background: linear-gradient(
    to top,
    #f5222d 0%,
    #f5222d 20%,
    transparent 20%,
    transparent 100%
  );
  border: 3px solid #f5222d; /* Added a green border */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (min-width: 576px) {
  .ams-wrapper .email-checkbox {
    margin-left: 170px;
  }
}

/* Completed Steps style*/

/* Stages Editor Modal Styles */
.ams-wrapper .stages-container {
  margin-top: 55px;
  padding: 0 20px;
}

.ams-wrapper .stage-item {
  padding: 12px 16px;
  transition: background-color 0.2s ease;
}

.ams-wrapper .stage-item-odd {
  background-color: #f5f5f5;
}

.ams-wrapper .stage-item-even {
  background-color: transparent;
}

/* Dark mode support */
.dark .ams-wrapper .stage-item-odd {
  background-color: #232323;
}

.ams-wrapper .stage-item:hover {
  background-color: #e8e8e8;
}

.dark .ams-wrapper .stage-item:hover {
  background-color: #2a2a2a;
}

.ams-wrapper .stage-actions {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ams-wrapper .stage-item:hover .stage-actions {
  opacity: 1;
}


.ams-wrapper .step-modal-content::-webkit-scrollbar {
  width: 12px; /* width of the scrollbar */
}

.ams-wrapper .step-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1; /* color of the track */
}

.ams-wrapper .step-modal-content::-webkit-scrollbar-thumb {
  background-color: #888; /* color of the thumb */
  border-radius: 6px; /* roundness of the thumb */
  border: 3px solid #f1f1f1; /* border around the thumb */
}

.ams-wrapper .step-modal-content {
  padding: 0;
  margin: 0;
  margin-top: 55px;
  width: 100%;
  overflow-x: auto;
}

.ams-wrapper .step-form-container {
  margin-top: 180px;
}

.dark .ams-wrapper .step-form {
  background-color: #333;
}

.ams-wrapper .step-form {
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 10px 20px;
  width: 95%;
  margin: 0 auto;
}

/* .ams-wrapper .step-labels::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 90px;
  width: 300px;
  height: 3.5px;
  background-color: orange;
} */

.ams-wrapper .step-container {
  margin: 0;
  padding: 0;
  width: fit-content;
}

.ams-wrapper .nickname {
  font-size: 12px;
  font-weight: 700;
}

.ams-wrapper .step-labels {
  position: relative;
  display: flex;
  gap: 30px;
  padding-left: 45px;
  /* margin-bottom: 10px; */
}

.ams-wrapper .step-label-container {
  position: relative;
  width: 16px;
}

.ams-wrapper .step-label {
  position: absolute;
  top: -105px;
  left: -20px;
  font-weight: 700;
  width: 280px;
  font-size: 12px;
  rotate: -40deg;
}
/* Completed Steps style*/

.ams-wrapper .ams-copyable-column-title {
  width: 100%;
  min-width: 0;
}

.ams-wrapper .ams-copyable-column-title-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ams-wrapper .ams-copyable-column-title-button {
  flex-shrink: 0;
  padding: 0 4px;
  height: 22px;
  width: 22px;
}
/* ==============================
  STAGES & STEPS CONFIG MODAL
  Simplified, grouped, consistent
  ============================== */

/*
  NOTE: Theme support
  The React ThemeContext toggles a 'dark' class on <body>. All custom light-mode
  colors below are hard‑coded for clarity. Dark-mode equivalents are appended
  at the bottom of the file using the selector `body.dark ...` so Ant Design's
  dark algorithm + our overrides stay in sync without refactoring to CSS vars.
*/

/* ---------- Base Containers ---------- */
.stages-collapse {
  border: none;
}

/* Shared panel styles */
.stage-collapse-item,
.step-collapse-item {
  background: #fff;
  border: none;
  border-radius: 8px !important;
  margin-bottom: 0;
}

/* Spacing between sibling panels */
.stage-collapse-item + .stage-collapse-item {
  margin-top: 8px;
}
.step-collapse-item + .step-collapse-item {
  margin-top: 6px;
}

.step-collapse-item .ant-collapse-header {
  display: flex;
  align-items: center !important;
}

/* Collapse headers */
.stages-collapse .ant-collapse-header {
  display: flex;
  align-items: center;
}

.stages-collapse .ant-collapse-expand-icon {
  display: flex;
  align-items: center;
  padding-inline-end: 4px;
  line-height: 1;
}

.stages-collapse .ant-collapse-header-text {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 24px;
  line-height: 1.1;
}

.stages-collapse .ant-collapse-extra {
  display: flex;
  align-items: center;
  gap: 8px !important;
  line-height: 1;
  padding-left: 12px;
}

.stages-collapse .ant-collapse-extra .ant-btn {
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stages-collapse .ant-collapse-extra .ant-btn .anticon,
.stages-collapse .ant-collapse-header .anticon {
  font-size: 14px;
  line-height: 1;
}

.stages-collapse input.ant-input {
  height: 24px;
  padding: 0 6px;
  font-size: 13px;
}

.stages-collapse .ant-collapse-content {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Fixed-size container with internal scrolling for stages */
.stages-container {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
  height: 440px;
  box-sizing: border-box;
}

.stages-scroll {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 6px;
}
.stage-add {
  margin-top: 12px;
}

/* Optional custom scrollbar */
.stages-scroll::-webkit-scrollbar {
  width: 8px;
}
.stages-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.stages-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
.stages-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Drag & drop styles */
.draggable-stage {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}
.draggable-stage.dragging {
  opacity: 0.6;
}
.single-stage {
  flex: 1;
}

/* Step drag & drop */
/* Steps container */
.steps-droppable {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Draggable step wrapper mimics stage style */
/* Draggable steps */
.draggable-step {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.draggable-step.dragging {
  opacity: 0.65;
}
.single-step {
  flex: 1;
}

/* Stage steps inner wrapper (extracted from inline styles) */
.stage-steps-inner {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
}

/* Unified drag handle style */
.drag-handle-wrapper,
.step-drag-handle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  cursor: grab;
  color: #888;
}
.drag-handle-wrapper:active,
.step-drag-handle-wrapper:active {
  cursor: grabbing;
}

/* Step body & actions */
.step-body {
  padding: 8px 12px 12px;
}
.step-body label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}
.step-extra-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Manual steps: hide arrow but keep normal cursor handled inline (no special styling needed) */
/* Hide only the arrow icon for manual steps while preserving space for alignment */
.manual-step .ant-collapse-expand-icon { visibility: hidden; }

/* ------------------ Read-only banner ------------------ */
.link-filter-banner {
  display: flex;
  gap: 12px;
  background: linear-gradient(90deg, #f0f5ff 0%, #f7faff 100%);
  border: 1px solid #d4e3ff;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-size: 13px;
  line-height: 1.4;
}
.link-filter-icon-wrapper {
  color: #2f73ff;
  font-size: 18px;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}
.link-filter-text { flex: 1; }
.link-filter-heading { font-weight: 600; margin-bottom: 2px; }
.link-filter-sub { color: #4a5668; }
.link-filter-link { font-weight: 600; }
.link-filter-link:hover { text-decoration: underline; }

/* Configuration intro banner (editable mode) */
.config-intro-banner {
  display: flex;
  gap: 14px;
  background: linear-gradient(90deg, #f8f9fb 0%, #f2f7ff 100%);
  border: 1px solid #e0e8f5;
  padding: 12px 16px 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-size: 13px;
  line-height: 1.45;
}
.config-intro-icon-wrapper {
  color: #1677ff;
  font-size: 20px;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}
.config-intro-text { flex: 1; min-width: 0; }
.config-intro-heading { font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.config-intro-points { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.config-intro-points li { padding-left: 2px; }
.config-intro-points .kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: #fff;
  border: 1px solid #d0d7e2;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 11px;
  display: inline-block;
  line-height: 1.2;
  vertical-align: baseline;
}

/* Popover variant (if help content shown inside popover) */
.config-intro-banner.popover-variant {
  margin: 0;
  box-shadow: none;
  background: transparent;
  border: none;
  padding: 0;
}

/* Empty / no-data state centered */
.stages-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 12px;
  color: #bfbfbf;
  gap: 12px;
}
.stages-empty .anticon { font-size: 48px; }
.stages-empty p { margin: 0; font-size: 16px; }

/* ==============================
   DARK THEME OVERRIDES
   Applied when <body> has class 'dark'
   ============================== */
body.dark .stage-collapse-item,
body.dark .step-collapse-item {
  background: #1f1f1f;
}
body.dark .stages-container {
  background: #141414;
}
body.dark .stages-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
}
body.dark .stages-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}
body.dark .drag-handle-wrapper,
body.dark .step-drag-handle-wrapper {
  color: #b5b5b5;
}
body.dark .step-body label {
  color: #d0d0d0;
}
body.dark .stages-empty {
  color: #5a5a5a;
}
/* Banners */
body.dark .link-filter-banner {
  background: linear-gradient(90deg, #1a2733 0%, #16232e 100%);
  border-color: #2b3d4b;
  color: #d2d9e0;
}
body.dark .link-filter-icon-wrapper { color: #5aa6ff; }
body.dark .link-filter-heading { color: #e2e8ef; }
body.dark .link-filter-sub { color: #9aa6b4; }
body.dark .link-filter-link { color: #7bbdff; }
body.dark .link-filter-link:hover { text-decoration: underline; }

body.dark .config-intro-banner {
  background: linear-gradient(90deg, #1f252d 0%, #1a2a3b 100%);
  border-color: #2c3a46;
  color: #d6dce2;
}
body.dark .config-intro-icon-wrapper { color: #4096ff; }
body.dark .config-intro-heading { color: #e4e9ef; }
body.dark .config-intro-points .kbd {
  background: #1a1a1a;
  border-color: #323232;
  color: #d0d0d0;
}

/* Collapse header adjustments for contrast */
body.dark .stages-collapse .ant-collapse-header-text { color: #d9d9d9; }
body.dark .stages-collapse input.ant-input {
  background: #141414;
  border-color: #303030;
  color: #d9d9d9;
}
body.dark .stages-collapse input.ant-input::placeholder { color: #777; }
body.dark .stages-collapse .ant-collapse-extra .ant-btn,
body.dark .stages-collapse .ant-collapse-header .anticon { color: #bfbfbf; }
body.dark .stages-collapse .ant-collapse-extra .ant-btn:hover .anticon { color: #fff; }

/* Step body surface */
body.dark .step-body { color: #d0d0d0; }

/* Ensure manual step hidden icon area doesn't appear as a bright gap */
body.dark .manual-step .ant-collapse-expand-icon { background: transparent; }

/* Dark override for extracted stage steps wrapper */
body.dark .stage-steps-inner { background: #1f1f1f; }

.bw-account-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.bw-section-header {
    font-size: 12px;
    color: #8c8c8c;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.bw-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.bw-data-table th {
    text-align: left;
    font-size: 12px;
    padding: 8px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    color: #595959;
}

.bw-data-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.bw-data-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    font-size: 12px;
}

.bw-link-icon {
    color: #1890ff;
    cursor: pointer;
    margin-left: 8px;
    font-size: 14px;
}

.bw-link-icon:hover {
    color: #40a9ff;
}

.account-steps-progress-modal .account-steps-progress-modal-content .stage-table {
  border-left: 4px solid #d9d9d9;
  margin-left: 12px;
  padding-left: 12px;
}

.account-steps-progress-modal .account-steps-progress-modal-content .step-table {
  border-left: 4px solid #bfbfbf;
  margin-left: 12px;
  padding-left: 12px;
}

.account-steps-progress-modal .account-steps-progress-modal-content .account-name {
  font-weight: 600;
}

body.dark .account-steps-progress-modal .account-steps-progress-modal-content .stage-table {
  border-left: 4px solid #595959;
  margin-left: 12px;
  padding-left: 12px;
}

body.dark .account-steps-progress-modal .account-steps-progress-modal-content .step-table {
  border-left: 4px solid #434343;
  margin-left: 12px;
  padding-left: 12px;
}.create-account-modal .warning-container {
  padding-top: var(--ant-padding-sm);
  margin-left: calc(var(--ant-margin-lg) * -1);
  margin-right: calc(var(--ant-margin-lg) * -1);
}

.create-account-modal .create-account-form-errors {
  margin-bottom: var(--ant-margin-sm);
}

.create-account-modal .create-account-form-errors .ant-alert-icon {
  padding-top: var(--ant-padding-xxs);
  font-size: var(--ant-font-size);
}

.create-account-modal .create-account-form-errors .ant-alert-message {
  font-size: var(--ant-font-size);
  font-weight: var(--ant-font-weight-strong);
}

.create-account-modal
  .create-account-form-errors
  .create-account-form-error-list {
  margin: 0;
  padding-left: var(--ant-padding);
  font-size: var(--ant-font-size-sm);
}

.create-account-modal .modal-step-content.step-first {
  margin-top: var(--ant-margin-lg);
  padding-top: var(--ant-padding-sm);
  min-height: 150px;
  max-height: 500px;
  width: 90%;
  overflow: auto;
  /* One vertical rhythm for rows inside a grid and between stacked grids. */
  --step-first-checkbox-vgap: var(--ant-padding-sm);
}

/* Full-width row (Form.Item wrapperCol 24); shell centered in step so left/right inset match. */
.create-account-modal .modal-step-content.step-first .step-first-options-shell {
  width: 100%;
  max-width: min(40rem, 100%);
  margin-inline: auto;
  padding-inline: var(--ant-padding-sm);
  box-sizing: border-box;
  transform: translateX(-10px);
}

.create-account-modal .modal-step-content.step-first .step-first-options-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  align-items: start;
}

.create-account-modal
  .modal-step-content.step-first
  .step-first-options-two-col--single {
  grid-template-columns: minmax(0, 1fr);
}

.create-account-modal .modal-step-content.step-first .step-first-options-col {
  display: flex;
  flex-direction: column;
  gap: var(--step-first-checkbox-vgap);
  min-width: 0;
}

/* Per row: label (right-aligned) + checkbox; aligned within each half-column. */
.create-account-modal .modal-step-content.step-first .step-first-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: var(--ant-padding-xs);
  row-gap: var(--step-first-checkbox-vgap);
  width: 100%;
}

.create-account-modal .modal-step-content.step-first .step-first-checkbox-label {
  color: var(--ant-color-text);
  font-size: var(--ant-font-size);
  line-height: var(--ant-line-height);
  justify-self: end;
  text-align: end;
}

.create-account-modal
.modal-step-content.step-second-any-metro, 
.modal-step-content.step-second-with-metro,
.modal-step-content.step-third-credit-card-ordering {
  height: 600px;
  overflow: auto;
}

.create-account-modal .account-item-required::before {
  display: inline-block;
  margin-inline-end: var(--ant-margin-xxs);
  color: var(--ant-form-label-required-mark-color);
  font-size: var(--ant-font-size);
  font-family: SimSun, sans-serif;
  line-height: 1;
  content: "*";
}

.create-account-table-select-dropdown.ant-select-dropdown {
  min-width: max-content;
  width: max-content;
}

.create-account-table-select-dropdown .ant-select-item-option-content {
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}/* Result modal row styles */
.success-row.light-mode {
    background-color: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.success-row.light-mode:hover {
    background-color: #e8f7e4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.success-row.dark-mode {
    background-color: #1a3314;
    color: #73d13d;
    border: 1px solid #274916;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.success-row.dark-mode:hover {
    background-color: #1f3c18;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.error-row.light-mode {
    background-color: #fff1f0;
    color: #ff4d4f;
    border: 1px solid #ffa39e;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.error-row.light-mode:hover {
    background-color: #ffe7e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.error-row.dark-mode {
    background-color: #3a1f1f;
    color: #ff7875;
    border: 1px solid #4f2626;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.error-row.dark-mode:hover {
    background-color: #4a2626;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.disabled-row {
    background-color: var(--ant-color-fill-quaternary);
    color: var(--ant-color-text-disabled);
}

.disabled-row:hover {
    background-color: var(--ant-color-fill-quaternary) !important;
}

.ant-table-tbody .disabled-row td {
    background-color: var(--ant-color-fill-quaternary) !important;
    color: var(--ant-color-text-disabled) !important;
}

.table-container {
    width: 100%;
    position: relative;
    overflow: auto;
}

/* Confirmation modal account card */
.ts-account-card {
    border: 1px solid var(--ant-color-border-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Platform rows table */
.ts-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.ts-platform-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ts-platform-table th {
    text-align: left;
    padding: 6px 8px;
    font-weight: 600;
    font-size: 12px;
    color: var(--ant-color-text-secondary);
    border-bottom: 1px solid var(--ant-color-split);
    white-space: nowrap;
}

.ts-platform-table td {
    padding: 8px;
    vertical-align: middle;
    border-bottom: 1px solid var(--ant-color-split);
}

.ts-platform-table tbody tr:last-child td {
    border-bottom: none;
}

/* Matched-row Ticketboat controls whose values differ from TicketSuite */
.ts-platform-table .ts-tb-value-diff input.ant-input,
.ts-diff-modal-col .ts-tb-value-diff input.ant-input,
.ts-platform-table .ts-tb-value-diff.ant-input-affix-wrapper .ant-input,
.ts-diff-modal-col .ts-tb-value-diff.ant-input-affix-wrapper .ant-input {
    color: #ff4d4f !important;
    -webkit-text-fill-color: #ff4d4f !important;
}

/* Password (and other inputs) when row checkbox off — browser greys disabled text unless overridden */
.ts-platform-table .ts-tb-value-diff .ant-input[disabled],
.ts-diff-modal-col .ts-tb-value-diff .ant-input[disabled],
.ts-platform-table .ts-tb-value-diff.ant-input-disabled input.ant-input,
.ts-diff-modal-col .ts-tb-value-diff.ant-input-disabled input.ant-input {
    color: #ff4d4f !important;
    -webkit-text-fill-color: #ff4d4f !important;
    opacity: 1 !important;
}

/* Space.Compact: className often sits on affix wrapper; target inner input explicitly */
.ts-platform-table .ant-space-compact .ant-input-affix-wrapper.ts-tb-value-diff input.ant-input,
.ts-platform-table .ant-space-compact .ts-tb-value-diff input.ant-input {
    color: #ff4d4f !important;
    -webkit-text-fill-color: #ff4d4f !important;
    opacity: 1 !important;
}

/* Diff modal TB Phone/Proxy: inputs use `.ts-tb-value-diff` + inner input; Select needs selector + label */
.ts-diff-modal-compare-table .ts-tb-value-diff.ant-select .ant-select-selector,
.ts-diff-modal-compare-table .ant-select-status-error .ant-select-selector {
    border-color: #ff4d4f !important;
}

.ts-diff-modal-compare-table
    .ts-tb-value-diff.ant-select:not(.ant-select-disabled):hover
    .ant-select-selector,
.ts-diff-modal-compare-table
    .ant-select-status-error:not(.ant-select-disabled):hover
    .ant-select-selector {
    border-color: #ff7875 !important;
}

.ts-diff-modal-compare-table .ts-tb-value-diff.ant-select.ant-select-focused .ant-select-selector,
.ts-diff-modal-compare-table .ant-select-status-error.ant-select-focused .ant-select-selector {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
}

.ts-diff-modal-compare-table .ts-tb-value-diff.ant-select .ant-select-selection-item,
.ts-diff-modal-compare-table .ts-tb-value-diff.ant-select .ant-select-selection-placeholder,
.ts-diff-modal-compare-table .ant-select-status-error .ant-select-selection-item,
.ts-diff-modal-compare-table .ant-select-status-error .ant-select-selection-placeholder {
    color: #ff4d4f !important;
}

body.dark .ts-diff-modal-compare-table .ts-tb-value-diff.ant-select .ant-select-selection-item,
body.dark .ts-diff-modal-compare-table .ts-tb-value-diff.ant-select .ant-select-selection-placeholder,
body.dark .ts-diff-modal-compare-table .ant-select-status-error .ant-select-selection-item,
body.dark .ts-diff-modal-compare-table .ant-select-status-error .ant-select-selection-placeholder {
    color: var(--ant-color-error) !important;
}

/* TB Inputs with mismatch (main sync table + diff modal): visible error border */
.ts-platform-table .ant-input-status-error,
.ts-diff-modal-compare-table .ant-input-status-error {
    border-color: #ff4d4f !important;
}

.ts-platform-table .ant-input-status-error:hover,
.ts-diff-modal-compare-table .ant-input-status-error:hover {
    border-color: #ff7875 !important;
}

.ts-platform-table .ant-input-status-error.ant-input-focused,
.ts-platform-table .ant-input-status-error:focus-within,
.ts-diff-modal-compare-table .ant-input-status-error.ant-input-focused,
.ts-diff-modal-compare-table .ant-input-status-error:focus-within {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
}

.ts-platform-table .ant-input-status-error input::placeholder,
.ts-diff-modal-compare-table .ant-input-status-error input::placeholder {
    color: #ff4d4f !important;
    opacity: 0.55 !important;
}

body.dark .ts-platform-table .ant-input-status-error input::placeholder,
body.dark .ts-diff-modal-compare-table .ant-input-status-error input::placeholder {
    color: var(--ant-color-error) !important;
}

/*
 * Inventory tags diff: match Sync to TradeDesk checkbox emphasis (#ff4d4f border),
 * not the light error pink (#ffccc7). Per-tag colors still come from tagRender.
 */
.ts-platform-table .ts-inv-select-ams-only.ant-select .ant-select-selector,
.ts-diff-modal-col .ts-inv-select-ams-only.ant-select .ant-select-selector {
    border-color: #ff4d4f !important;
}

.ts-platform-table
    .ts-inv-select-ams-only.ant-select:not(.ant-select-disabled):hover
    .ant-select-selector,
.ts-diff-modal-col
    .ts-inv-select-ams-only.ant-select:not(.ant-select-disabled):hover
    .ant-select-selector {
    border-color: #ff7875 !important;
}

.ts-platform-table .ts-inv-select-ams-only.ant-select.ant-select-focused .ant-select-selector,
.ts-diff-modal-col .ts-inv-select-ams-only.ant-select.ant-select-focused .ant-select-selector {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
}

.ts-platform-table .ts-inv-select-ams-only.ant-select.ant-select-disabled .ant-select-selector,
.ts-diff-modal-col .ts-inv-select-ams-only.ant-select.ant-select-disabled .ant-select-selector {
    border-color: #ff4d4f !important;
    opacity: 1;
}

.ts-inv-tag-ams-only {
    color: #ff4d4f !important;
    background: #fff2f0 !important;
    border: 1px solid #ffccc7 !important;
}

body.dark .ts-inv-tag-ams-only {
    color: var(--ant-color-error) !important;
    background: rgba(255, 77, 79, 0.12) !important;
    border-color: rgba(255, 77, 79, 0.35) !important;
}

.ts-inv-tag-shared {
    color: inherit;
}

.ts-platform-table .ts-tb-value-diff.ant-checkbox-wrapper .ant-checkbox-inner,
.ts-diff-modal-col .ts-tb-value-diff.ant-checkbox-wrapper .ant-checkbox-inner {
    border-color: #ff4d4f !important;
}

.ts-platform-table
    .ts-tb-value-diff.ant-checkbox-wrapper.ant-checkbox-wrapper-checked
    .ant-checkbox-inner,
.ts-diff-modal-col
    .ts-tb-value-diff.ant-checkbox-wrapper.ant-checkbox-wrapper-checked
    .ant-checkbox-inner {
    background-color: #ff4d4f !important;
    border-color: #ff4d4f !important;
}

/* TB phone/proxy read-only cells: same emphasis as sync checkboxes (#ff4d4f) */
.ts-platform-table .ts-tb-contact-cell.ts-tb-value-diff,
.ts-platform-table .ts-tb-contact-cell.ts-tb-value-diff .ant-typography {
    color: #ff4d4f !important;
}

.ts-row-clickable {
    cursor: pointer;
}

.ts-row-clickable:hover td {
    background-color: var(--ant-color-fill-tertiary);
}

.ts-diff-modal-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ts-diff-modal-cols {
    align-items: flex-start;
}

/* PrimaryDiffModal: TB row then TS row, columns aligned with main sync table */
.ts-diff-modal-table-wrap {
    padding-top: 8px;
    overflow-x: auto;
    max-width: 100%;
}

.ts-diff-modal-compare-table {
    table-layout: fixed;
    width: 100%;
}

/*
 * First column: marker only (no checkbox). Main table uses .ts-row-marker-slot { flex: 0 0 60px }
 * for marker + checkbox alignment — that 60px forces a huge cell here without overrides.
 */
.ts-diff-modal-compare-table col.ts-diff-modal-col-marker {
    width: 40px;
}

.ts-diff-modal-compare-table th.ts-sync-first-col,
.ts-diff-modal-compare-table td.ts-sync-first-col {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    box-sizing: border-box;
    padding: 6px 4px !important;
    text-align: center;
    vertical-align: middle;
}

.ts-diff-modal-compare-table .ts-sync-first-col-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.ts-diff-modal-compare-table .ts-row-marker-slot {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-content: center;
}

.ts-diff-modal-compare-table tbody tr.ts-diff-ts-row td.ts-sync-first-col {
    background: var(--ant-color-fill-secondary);
}

.ts-diff-modal-compare-table tbody tr.ts-diff-ts-row td {
    background: var(--ant-color-fill-quaternary);
}


/* First column: fixed marker area so checkboxes stay aligned across rows */
.ts-sync-first-col {
    vertical-align: middle;
}

.ts-sync-first-col-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-sync-first-col-inner .ant-checkbox-wrapper {
    flex-shrink: 0;
}

.ts-row-marker-slot {
    flex: 0 0 60px;
    max-width: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
}

.ts-marker-diff {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ff4d4f;
    font-size: 13px;
    font-weight: 600;
}

.ts-marker-diff-text {
    font-size: 14px;
    font-weight: 700;
}

.ts-marker-tb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ff4d4f;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ts-marker-ts {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #722ed1;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Sync preview modal: one legend segment (marker + label); spacing vs title via parent Flex gap */
.ts-sync-preview-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ts-unmatched-primary-miss {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.ts-unmatched-primary-miss--status {
    margin-top: 0;
    align-items: center;
    text-align: center;
    max-width: 130px;
    margin-left: auto;
    margin-right: auto;
}

.ts-validation-miss {
    display: flex;
    flex-direction: column;
    gap: 2px;
}.account-steps-modal .stages-container {
  background: transparent;
}

.account-steps-modal .account-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-steps-modal .account-stage-item {
  background: #f5f5f5;
  padding: 12px 14px;
  border-radius: 8px;
}

.account-steps-modal .account-stage-item.stage-complete {
  outline: 2px solid #73d13d;
  outline-offset: -2px;
  background: #f6ffed;
}

.account-steps-modal .account-stage-title.stage-complete.check-icon {
  color: #73d13d;
}

.account-steps-modal .account-stage-title {
  font-weight: 600;
}

.account-steps-modal .account-stage-title.has-steps {
  margin-bottom: 8px;
}

.account-steps-modal .account-stage-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-steps-modal .account-stage-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

/* Checkbox tweaks */
.account-steps-modal .account-stage-checkbox {
  margin: 0;
  padding: 0;
  cursor: default;
}

.account-steps-modal .account-stage-no-steps {
  font-size: 12px;
  opacity: 0.55;
}

/* Dark theme overrides */
body.dark .account-steps-modal .stages-container {
  background: transparent;
}

body.dark .account-steps-modal .account-stage-item {
  background: #262626;
}

body.dark .account-steps-modal .account-stage-no-steps {
  opacity: 0.6;
}
/* Scoped to this modal so light/dark overrides do not leak to other pages */

.phone-bulk-upload-modal .notion-callout {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border-radius: 4px;
  background-color: #f7f7f7;
  border: 1px solid #e0e0e0;
  margin: -1em 0;
  gap: 12px;
  margin-top: 40px;
}

.phone-bulk-upload-modal .callout-icon {
  font-size: 24px;
}

.phone-bulk-upload-modal .callout-content p {
  margin: 0;
  color: rgba(0, 0, 0, 0.88);
  line-height: 1.5;
  font-size: small;
}

.phone-bulk-upload-modal .callout-content p strong {
  color: rgba(0, 0, 0, 0.88);
}

body.dark .phone-bulk-upload-modal .notion-callout {
  background-color: #2a2a2a;
  border-color: #434343;
}

body.dark .phone-bulk-upload-modal .callout-content p,
body.dark .phone-bulk-upload-modal .callout-content p strong {
  color: #e4e9ef;
}

.phone-bulk-upload-modal__download {
  margin-top: 21px;
  text-align: right;
}

.phone-bulk-upload-modal__download a {
  color: #1677ff;
}

body.dark .phone-bulk-upload-modal__download a {
  color: #69b1ff;
}

body.dark .phone-bulk-upload-modal__download a:hover {
  color: #91caff;
}

.phone-bulk-upload-dragger-item--error {
  color: #cf1322;
}

body.dark .phone-bulk-upload-dragger-item--error {
  color: #ff7875;
}

.phone-bulk-upload-preview {
  margin-top: 24px;
}

.phone-bulk-upload-preview__title {
  margin: 0 0 8px;
  color: rgba(0, 0, 0, 0.88);
  font-size: 16px;
  font-weight: 600;
}

body.dark .phone-bulk-upload-preview__title {
  color: #e4e9ef;
}

.phone-bulk-upload-preview__block {
  margin-bottom: 12px;
}

.phone-bulk-upload-preview__label {
  color: rgba(0, 0, 0, 0.88);
}

body.dark .phone-bulk-upload-preview__label {
  color: #e4e9ef;
}

.phone-bulk-upload-preview__label--invalid {
  color: #cf1322;
}

body.dark .phone-bulk-upload-preview__label--invalid {
  color: #ff7875;
}

.phone-bulk-upload-preview__scroll {
  max-height: 180px;
  overflow: auto;
  border-radius: 4px;
  margin-top: 6px;
}

.phone-bulk-upload-preview__scroll--valid {
  border: 1px solid #e5e5e5;
}

body.dark .phone-bulk-upload-preview__scroll--valid {
  border-color: #434343;
}

.phone-bulk-upload-preview__scroll--invalid {
  max-height: 120px;
  border: 1px solid #ffccc7;
}

body.dark .phone-bulk-upload-preview__scroll--invalid {
  border-color: #5c2727;
}

.phone-bulk-upload-preview__table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.phone-bulk-upload-preview__table th {
  text-align: left;
  padding: 6px 8px;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  color: rgba(0, 0, 0, 0.88);
  font-weight: 600;
}

body.dark .phone-bulk-upload-preview__table th {
  background: #303030;
  border-bottom-color: #434343;
  color: #f0f0f0;
}

.phone-bulk-upload-preview__table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f0f0f0;
  color: rgba(0, 0, 0, 0.88);
}

body.dark .phone-bulk-upload-preview__table td {
  border-bottom-color: #303030;
  color: #d9d9d9;
}

.phone-bulk-upload-preview__table--invalid th {
  background: #fff5f5;
  border-bottom-color: #ffd6d6;
  color: rgba(0, 0, 0, 0.88);
}

body.dark .phone-bulk-upload-preview__table--invalid th {
  background: #3d2525;
  border-bottom-color: #5c2a2a;
  color: #f5e8e8;
}

.phone-bulk-upload-preview__table--invalid tbody tr {
  background: #fff5f5;
}

body.dark .phone-bulk-upload-preview__table--invalid tbody tr {
  background: #2d1f1f;
}

.phone-bulk-upload-preview__table--invalid td {
  border-bottom-color: #ffe5e5;
  color: #cf1322;
}

body.dark .phone-bulk-upload-preview__table--invalid td {
  border-bottom-color: #442828;
  color: #ffa39e;
}

.phone-bulk-upload-preview__muted {
  font-size: 12px;
  color: #8c8c8c;
  padding: 4px 8px;
}

body.dark .phone-bulk-upload-preview__muted {
  color: #9aa6b4;
}

.phone-bulk-upload-preview__muted--error {
  color: #cf1322;
}

body.dark .phone-bulk-upload-preview__muted--error {
  color: #ff9c9c;
}

.phone-bulk-upload-preview__empty {
  color: #8c8c8c;
  font-size: 13px;
}

body.dark .phone-bulk-upload-preview__empty {
  color: #9aa6b4;
}

.download-csv-button {
  margin-bottom: 16px;
  text-align: right;
}

.loading-container {
  margin-top: 55;
}

/* Ant Upload dragger copy inside this modal */
body.dark .phone-bulk-upload-modal .ant-upload-drag .ant-upload-text {
  color: #e4e9ef;
}

body.dark .phone-bulk-upload-modal .ant-upload-drag .ant-upload-hint {
  color: #9aa6b4;
}

body.dark .phone-bulk-upload-modal .ant-upload-drag .ant-upload-hint strong {
  color: #d0d7de;
}

body.dark .phone-bulk-upload-modal .ant-upload-drag-icon .anticon {
  color: #69b1ff;
}
/* Force modal width for BulkUploadProxyModal */
.bulk-upload-wrapper .ant-modal-content {
  width: 650px !important;
  max-width: 650px !important;
  min-width: 650px !important;
}

/* Callout — theme-aware (light + dark) */
.notion-callout {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border-radius: 8px;
  margin: -1em 0;
  gap: 12px;
  margin-top: 40px;
  background-color: var(--ant-color-fill-quaternary, rgba(0, 0, 0, 0.02));
  border: 1px solid var(--ant-color-border-secondary, #f0f0f0);
}

.callout-content p,
.bulk-upload-callout-text {
  margin: 0;
  color: var(--ant-color-text, rgba(0, 0, 0, 0.88));
  line-height: 1.5;
  font-size: small;
}

.bulk-upload-callout-text code {
  font-size: 0.85em;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--ant-color-fill-tertiary, rgba(0, 0, 0, 0.04));
  color: var(--ant-color-text, inherit);
}

.loading-container {
  margin-top: 55px;
}

/* Preview tables — headers readable in dark mode */
.bulk-upload-preview-heading {
  margin: 0 0 8px;
  color: var(--ant-color-text-heading, var(--ant-color-text));
  font-weight: 600;
}

.bulk-upload-preview-count {
  color: var(--ant-color-text);
}

.bulk-upload-preview-count--invalid {
  color: var(--ant-color-error);
}

.bulk-upload-preview-scroll {
  max-height: 180px;
  overflow: auto;
  border-radius: 6px;
  margin-top: 6px;
  border: 1px solid var(--ant-color-border-secondary);
}

.bulk-upload-preview-scroll--invalid {
  max-height: 120px;
}

.bulk-upload-preview-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.bulk-upload-th {
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
  color: var(--ant-color-text);
  background: var(--ant-color-fill-tertiary, rgba(0, 0, 0, 0.04));
  border-bottom: 1px solid var(--ant-color-border-secondary);
}

.bulk-upload-th--valid {
  background: var(--ant-color-fill-secondary, rgba(0, 0, 0, 0.06));
}

.bulk-upload-th--invalid {
  background: var(--ant-color-error-bg, rgba(255, 77, 79, 0.08));
  border-bottom-color: var(--ant-color-error-border, #ffccc7);
}

.bulk-upload-td {
  padding: 6px 10px;
  color: var(--ant-color-text);
  border-bottom: 1px solid var(--ant-color-border-secondary);
  vertical-align: top;
}

.bulk-upload-td--valid {
  background: transparent;
}

.bulk-upload-tr-invalid {
  background: var(--ant-color-error-bg, rgba(255, 77, 79, 0.06));
}

.bulk-upload-td--invalid {
  background: transparent;
}

.bulk-upload-preview-more {
  font-size: 12px;
  padding: 6px 4px;
  color: var(--ant-color-text-secondary);
}

.bulk-upload-preview-more--invalid {
  color: var(--ant-color-error);
}

.bulk-upload-empty-hint {
  font-size: 13px;
  color: var(--ant-color-text-secondary);
}

.download-csv-button {
  margin-bottom: 16px;
  text-align: right;
}
.backdrop {
    width: 100%;
    height: 100%;
    background-color: #0009;
    position: fixed;
    z-index: 20;
}

/* Additional Layout styles */
.layout-fullheight {
    display: flex;
    flex-direction: column;
    height: 100vh; /* This ensures the Layout takes the full viewport height */
}

.content {
    flex-grow: 1; /* This will make the content area grow to use available space */
    margin: 8px;
    overflow: auto; /* Adds scrolling to content only when necessary */
}

.footer {
    height: 64px;
    background-color: #fff;
    box-shadow: 0px 5px 7px;
}

/* Ensure other elements are styled appropriately to not exceed their bounds */
.header {
    background-color: #fff;
    height: 64px;
    padding-inline: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px -5px 10px;
    position: sticky;
    top: 0;
    z-index: 19;
}

.content.dark,
.header.dark,
.footer.dark {
    background-color: #141414;
}

/* Icon-only controls on dark header: default token colors are too low-contrast on #141414 */
.header.dark .header-menu-btn.ant-btn,
.header.dark .header-btn.ant-btn {
    color: rgba(255, 255, 255, 0.88);
}

.header.dark .header-menu-btn.ant-btn:hover,
.header.dark .header-btn.ant-btn:hover,
.header.dark .header-menu-btn.ant-btn:focus-visible,
.header.dark .header-btn.ant-btn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.header.dark .header-menu-btn .anticon,
.header.dark .header-btn .anticon,
.header.dark .header-menu-btn .ant-badge .anticon {
    color: inherit;
}

/* “Create Ticket” outlined control on dark header */
.header.dark .header-create-ticket-btn.ant-btn {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
}

.header.dark .header-create-ticket-btn.ant-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.header.dark .header-create-ticket-btn .anticon {
    color: inherit;
}

.header-menu-btn.ant-btn.ant-btn-icon-only {
    font-size: 16px;
    width: 48px;
    height: 48px;
}
.header-btn.ant-btn.ant-btn-icon-only {
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown-trigger {
    cursor: pointer;
}

.ant-layout .sider.ant-layout-sider {
    box-shadow: -5px 0px 10px;
    overflow: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 21;
}
.sider-items-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.app-icon-link {
    display: flex;
    justify-content: center;
    align-items: center;
}
.sider-menu {
    flex: 1;
}
.sider-mobile-btn {
    width: 100%;
    position: sticky;
    bottom: 0;
    border-radius: 0;
}

.page-loader{
    text-align: center;
    padding: 50px;
}/* Ensure this class is applied to the menu items */
.sider-menu .ant-menu-item,
.sider-menu .ant-menu-submenu-title {
  white-space: normal !important;
  word-wrap: break-word !important;
  height: auto !important; /* Ensure height adjusts to content */
  line-height: normal !important; /* Adjust line-height for better readability */
  padding: 10px 12px !important; /* Add vertical padding for spacing */
  font-size: 16px !important; /* Increase font size */
  margin-block: 2px !important;
}

.sider-collapsed .ant-menu-item,
.sider-collapsed .ant-menu-submenu-title {
  height: 50px !important;
  padding: 10px 24px !important; /* Add vertical padding for spacing */
}

.sider-menu .ant-menu-sub.ant-menu-inline > .ant-menu-item,
.sider-menu
  .ant-menu-sub.ant-menu-inline
  > .ant-menu-submenu
  > .ant-menu-submenu-title {
  padding-left: 32px !important;
}

.ant-menu.ant-menu-sub.ant-menu-vertical {
  min-width: 260px !important;
}

.sider-menu .ant-menu-sub .ant-menu-sub {
  padding-left: 22px !important;
}

.sider-menu .ant-menu-item {
  position: relative;
}

.fav-page-icon {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  opacity: 0;
}
.fav-page-icon:hover {
  background-color: none !important;
  background: none !important;
}

.ant-menu.ant-menu-sub .fav-page-icon {
  right: -2px;
}

.sider-menu .ant-menu-item:hover .fav-page-icon,
.fav-page-icon.fav-page-icon-show,
.ant-menu.ant-menu-sub.ant-menu-vertical .ant-menu-item:hover .fav-page-icon {
  opacity: 1;
}

.fav-page-icon.fav-page-icon-show {
  color: #ffd700 !important;
}

.ant-menu-title-content {
}

.sider-collapsed .anticon {
  font-size: 16px !important;
}

.sider-collapsed .ant-menu-title-content {
  text-indent: -9999px !important;
}

/* Ensure the sider menu handles overflow properly */
.sider-menu {
  overflow: auto;
  padding-bottom: 30px;
}

/* Additional styles to improve appearance */
.sider-menu .ant-menu-item > a,
.sider-menu .ant-menu-submenu-title > span {
  display: block; /* Ensure the link or span takes the full width */
}

.collapsed-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  font-size: 25px;
  font-weight: bold;
  color: inherit;
}

.sider {
  height: 100%;
}

.sider-collapsed {
  position: relative !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Mobile “collapse sidebar” button at bottom of sider */
body.dark .sider-mobile-btn.ant-btn-default {
  color: rgba(255, 255, 255, 0.88);
  border-color: #434343;
  background: #1f1f1f;
}

body.dark .sider-mobile-btn.ant-btn-default:hover {
  color: #fff;
  border-color: #595959;
  background: #262626;
}

body.dark .sider-mobile-btn .anticon {
  color: inherit;
}
.onsales-action-log-table .ant-table-cell,
.onsales-action-log-table .ant-table-thead > tr > th,
.onsales-action-log-table .ant-table-tbody > tr > td,
.onsales-action-log-table .ant-table-container {
  border-inline-end: none !important;
}

.onsales-action-log-table .ant-table-cell::before {
  display: none !important;
}

.onsales-action-log-table .ant-table-tbody > tr > td {
  border-bottom: none !important;
}

.onsales-action-log-table .ant-table-thead > tr > th {
  border-bottom: 1px solid #f0f0f0;
}

.onsales-action-log-table .ant-table {
  border: none !important;
}

.onsales-action-log-table .ant-table-content > table {
  border: none !important;
}

.onsales-action-log-note {
  color: var(--ant-color-text-secondary);
  font-size: 12px;
  margin-top: 2px;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

::-webkit-scrollbar {
    width: 8px;  /* Adjust width as needed */
}

::-webkit-scrollbar-track {
    background: #f1f1f1;  /* Adjust track color as needed */
}

::-webkit-scrollbar-thumb {
    background: #a7a3a3;  /* Adjust thumb color as needed */
    border-radius: 4px;  /* Adjust border radius as needed */
}

body.dark .rc-virtual-list-scrollbar-thumb{
  background: rgba(178, 178, 178, 0.8) !important;
}

.tools-emails-search-drawer .ant-form-item-label {
    padding: 5px !important;
}

.tools-emails-search-drawer .ant-form-item {
    margin-bottom: 10px !important;
}