:root {
    --day-monday:     #B0BEC5; /* Cool Gray */
  --day-tuesday:    #4DB6AC; /* Teal */
  --day-wednesday:  #81C784; /* Green */
  --day-thursday:   #64B5F6; /* Sky Blue */
  --day-friday:     #FFD54F; /* Golden Yellow */
  --day-saturday:   #EF5350; /* Vibrant Red - Primary */
  --day-sunday:     #FB8C00; /* Bold Orange - Secondary */
    --affiliBlue: #00488b; /* Your primary blue */
    --sl-input-border-color-focus: var(--affiliBlue) !important;
  --borderColor:#767676
    --sl-input-focus-ring-color: hsl(160, 99%, 22% / 40%);
    --sl-input-label-color: #767676 !important;
    --toolbarColor:rgb(225, 225, 225);
    --trimColor:#e1e1e1;
    --window-bg-light:#ffff;
    --window-bg-dark:#767676;
    --text-color-dark:rgb(118, 118, 118);
   --sl-color-primary-600:#00488b;
    --text-color-light: var(--sl-color-gray-500);
    --text-color: var(--text-color-light);
    --app-font-scale: 1;
    --wallpaper-bg-light: url('farmersmarket.svg') no-repeat center / cover, 
    linear-gradient(180deg, rgb(255, 255, 255), rgb(209, 236, 255));
  --wallpaper-bg-dark: url('farmersmarket_dark.svg') no-repeat center / cover, 
    linear-gradient(180deg, rgb(40, 40, 40), rgb(60, 60, 60));
    font-size: calc(16px * var(--app-font-scale));
  }



  .day-dot[data-day="Monday"]    { background-color: var(--day-monday); }
  .day-dot[data-day="Tuesday"]   { background-color: var(--day-tuesday); }
  .day-dot[data-day="Wednesday"] { background-color: var(--day-wednesday); }
  .day-dot[data-day="Thursday"]  { background-color: var(--day-thursday); }
  .day-dot[data-day="Friday"]    { background-color: var(--day-friday); }
  .day-dot[data-day="Saturday"]  { background-color: var(--day-saturday); }
  .day-dot[data-day="Sunday"]    { background-color: var(--day-sunday); }
  .day-color[data-day="Sunday"]    { background-color: var(--day-sunnday); }
  .day-color[data-day="Monday"]    { background-color: var(--day-monday); }
  .day-color[data-day="Tuesday"]    { background-color: var(--day-tuesday); }
  .day-color[data-day="Wednesday"]    { background-color: var(--day-wednesday); }
  .day-color[data-day="Thursday"]    { background-color: var(--day-thursday); }
  .day-color[data-day="Friday"]    { background-color: var(--day-friday); }
  .day-color[data-day="Saturday"]    { background-color: var(--day-saturday); }
  /* When select is open */
sl-select[open]::part(combobox),
sl-select:focus-within::part(combobox) {
  background-color: var(--sl-input-background-color-focus);
  background-color: var(--sl-input-background-color-focus);
  border-color:  var(--affiliBlue) !important;
  box-shadow: 0 0 3px 0px  var(--affiliBlue);
}

.flexWrap{
  display: flex;
  flex-wrap: wrap;
}

.label{
  color:var(--sl-input-label-color);
  font-size:16px;
}

ol, ul {
  padding-left: 0 !important;
}

.no-bullet {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}
.smcc-assignBtn{
  display:none;
}
.password-rules {
  margin: 6px 0 8px;
  padding: 0;
  font-size: 0.85rem;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.password-rules .listItem {
  display: inline-flex;
  position: relative;
  margin: 0;
}

.password-rules .listItem.strike-through {
  text-decoration: line-through;
  text-decoration-color: #1f2937;
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: auto;
  color: #1f2937;
}

.strike-through {
  position: relative;
  color: #999;
}

.strike-through::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(45.12deg, #217bfe, #078efb, #ac87eb, #ee4d5d);
  transform: translateY(-50%);
  animation: strike 0.35s ease-out forwards;
}

@keyframes strike {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Tasks */
.tasks-headerRow {
  align-items: center;
  gap: 16px;
}

.tasks-headerRow .headerIconBox {
  background: rgba(37, 99, 235, 0.12);
  color: var(--sl-color-primary-600);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tasks-headerRow .headerIconBox i {
  font-size: 1.25rem;
}

.tasks-headerText {
  gap: 4px;
}

  .tasks-headerText .tasks-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
}

.tasks-headerRow sl-button::part(base) {
  height: 38px;
}

#tasksToggleFilters::part(base),
#tasksTemplateButton::part(base),
#tasksCreateBtn::part(base) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#wizardAddressAutocompleteMount {
    width: 100%;
    border: 1px solid #E2E2E7;
    border-radius: 15px;
    overflow: hidden;
}

#tasksToggleFilters::part(label),
#tasksToggleFilters sl-icon,
#tasksTemplateButton::part(label),
#tasksTemplateButton sl-icon,
#tasksCreateBtn::part(label),
#tasksCreateBtn sl-icon {
  color: inherit;
  line-height: 1;
}

#tasksToggleFilters::part(base):hover,
#tasksTemplateButton::part(base):hover,
#tasksCreateBtn::part(base):hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

#tasksToggleFilters::part(base):active,
#tasksTemplateButton::part(base):active,
#tasksCreateBtn::part(base):active {
  transform: translateY(0);
}

.tasks-toolbarRow {
  padding: 10px 12px;
  gap: 10px;
  align-items: center;
}

.tasks-toolbarRow sl-button::part(base) {
  min-width: 120px;
}

.tasks-summaryRow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tasks-summaryCard {
  background: linear-gradient(135deg, #eef4ff 0%, #dce8ff 100%);
  border-radius: 18px;
  padding: 18px 20px;
  color: #1f2937;
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tasks-summaryCard:nth-child(2) {
  background: linear-gradient(135deg, #eef4ff 0%, #dce8ff 100%);
}

.tasks-summaryCard:nth-child(3) {
  background: linear-gradient(135deg, #eef4ff 0%, #dce8ff 100%);
}

.tasks-summaryCard strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: var(--sl-color-primary-700);
}

.tasks-summaryCard span {
  font-size: 12px;
  color: #475569;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tasks-filtersCard {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tasks-filtersCard .tasks-filter-buttons {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.tasks-viewSwitch {
  margin-top: 16px;
  display: inline-flex;
  gap: 0;
  padding: 4px;
  align-self: flex-start;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.tasks-viewSwitch sl-button::part(base) {
  min-width: 52px;
  border-radius: 10px;
  border: none;
  color: #475569;
  background: transparent;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tasks-viewSwitch sl-button::part(label),
.tasks-viewSwitch sl-button sl-icon {
  color: inherit;
}

.tasks-viewSwitch sl-button[variant="primary"]::part(base) {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.tasks-viewSwitch sl-button:not([variant="primary"])::part(base) {
  color: #475569;
}

.tasks-contentCard {
  margin-top: 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#tasks_base {
  flex: 1 1 auto;
  min-height: 0;
}

#tasks_base .flexFill {
  min-height: 0;
}

#tasksListContainer,
#tasksBoardContainer {
  flex: 1 1 auto;
  min-height: 0;
}


.tasks-wizard-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.tasks-wizard-icon {
  font-size: 20px;
  color: #1d4ed8;
}

.tasks-wizard-labelText {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tasks-wizard-labelTitle {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.tasks-wizard-labelSubtitle {
  display: none;
}

.tasks-wizard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 0;
}

#taskWizardDialog {
  --width: min(720px, calc(100vw - 32px));
}

#taskWizardDialog::part(panel) {
  border-radius: 14px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

#taskWizardDialog::part(header) {
  align-items: center;
  min-height: 0;
  padding: 0;
}

#taskWizardDialog::part(title) {
  display: none;
}

#taskWizardDialog::part(close-button) {
  display: none;
}

#taskWizardDialog::part(body) {
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  padding: 30px 30px 0;
}

.tasks-createHero {
  align-items: center;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), rgba(193, 53, 132, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 78px;
  padding: 12px 16px;
}

.tasks-createHero__icons {
  align-items: center;
  display: flex;
}

.tasks-createHero__icons span {
  align-items: center;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, 0.65);
  color: #2563eb;
  display: inline-flex;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.tasks-createHero__icons span:last-child {
  color: #0b4f91;
  margin-left: -10px;
}

.tasks-createHero h3 {
  color: #1f2937;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.2;
  margin: 0 0 4px;
}

.tasks-createHero p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.tasks-wizard-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding: 0;
  --tasks-progress: 0;
}

.tasks-wizard-stepper::before {
  display: none;
}

.tasks-step {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  color: #64748b;
  font-size: 11px;
  justify-content: flex-start;
  min-height: 42px;
  padding: 8px 10px;
  position: relative;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.tasks-step:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.tasks-step__index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 12px;
  background: #e5e7eb;
}

.tasks-step__label {
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.tasks-step.is-active {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.09), rgba(193, 53, 132, 0.07));
  border-color: rgba(37, 99, 235, 0.18);
  color: #1f2937;
}

.tasks-step.is-active .tasks-step__index {
  background: #0b4f91;
  color: #ffffff;
  box-shadow: none;
}

.tasks-step.is-complete {
  color: #0ea5e9;
}

.tasks-step.is-complete .tasks-step__index {
  background: #0b4f91;
  color: #ffffff;
  box-shadow: none;
}


.tasks-wizard-body {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  gap: 12px;
  padding: 16px;
}

.tasks-wizard-body .wizard-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tasks-wizard-body sl-input::part(form-control-label),
.tasks-wizard-body sl-select::part(form-control-label),
.tasks-wizard-body sl-textarea::part(form-control-label) {
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.tasks-wizard-body sl-input::part(base),
.tasks-wizard-body sl-select::part(combobox),
.tasks-wizard-body sl-textarea::part(base) {
  border-radius: 10px;
}

.tasks-wizard-body sl-input::part(input),
.tasks-wizard-body sl-select::part(display-input),
.tasks-wizard-body sl-textarea::part(textarea) {
  color: #1f2937;
  font-size: 14px;
}

.tasks-wizard-body sl-textarea::part(textarea) {
  min-height: 110px;
}

.tasks-createExtras {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tasks-createExtraPanel {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.tasks-createExtraPanel h4 {
  color: #1f2937;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.tasks-createAttachmentList {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.tasks-createAttachmentList span {
  display: block;
}

.tasks-wizard-footer {
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 2px -30px 0;
  padding: 10px 30px 14px;
}

.tasks-table {
  width: 100%;
  border-collapse: collapse;
}

.tasks-table th,
.tasks-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.tasks-table tbody tr:hover {
  background: #f1f5f9;
}

.tasks-empty {
  text-align: center;
  color: #94a3b8;
  padding: 24px;
}

.tasks-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.tasks-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  margin: 0 4px 4px 0;
}

sl-tag.tasks-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

sl-tag.tasks-pill .tasks-pill-text {
  line-height: 1;
}

sl-tag.tasks-pill .tasks-pill-icon {
  font-size: 14px;
  color: #0284c7;
}

.tasks-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.priority-critical { background: #fee2e2; color: #b91c1c; }
.priority-high { background: #fde68a; color: #92400e; }
.priority-medium { background: #bfdbfe; color: #1d4ed8; }
.priority-low { background: #dcfce7; color: #047857; }

.status-not_started { background: #e2e8f0; color: #334155; }
.status-in_progress { background: #bfdbfe; color: #1d4ed8; }
.status-blocked { background: #fee2e2; color: #b91c1c; }
.status-completed { background: #dcfce7; color: #047857; }
.status-canceled { background: #f1f5f9; color: #64748b; }

.tasks-progress {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tasks-progress-bar {
  height: 6px;
  width: 90px;
  border-radius: 6px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
}

#tasksBoardContainer {
  overflow-y: scroll;
  padding-bottom: 12px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.tasks-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  width: 100%;
  padding-right: 12px;
  min-height: 0;
  flex: 1 1 auto;
}

.tasks-board-column {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tasks-board-column header {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: #e2e8f0;
  font-weight: 600;
}

.tasks-board-items {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.tasks-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  cursor: grab;
}

.tasks-card header,
.tasks-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tasks-card h5 {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
}

.tasks-card p {
  margin: 0;
  color: #475569;
  font-size: 12px;
}

.tasks-empty-column {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

.tasks-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#taskDetailDrawer {
  --width: min(1320px, calc(100vw - 32px));
}

#taskDetailDrawer::part(panel) {
  border-radius: 14px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

#taskDetailDrawer::part(header) {
  align-items: center;
  min-height: 0;
  padding: 0;
}

#taskDetailDrawer::part(title) {
  display: none;
}

#taskDetailDrawer::part(close-button) {
  display: none;
}

#taskDetailDrawer::part(body) {
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  padding: 28px 28px 0;
}

.tasks-detailBody {
  gap: 0;
}

.tasks-detailPanel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tasks-detailExtras {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tasks-detailEditPanel {
  gap: 10px;
}

.tasks-detailEditPanel h4 {
  color: #1f2937;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.tasks-workspace {
  min-width: 0;
}

.tasks-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  gap: 20px;
  min-width: 0;
}

.tasks-workspace-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.tasks-workspace-header {
  min-width: 0;
  margin-bottom: 8px;
  padding: 16px 18px;
}

.tasks-workspace-headerContent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tasks-workspace-titleRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.tasks-workspace-titleRow h3 {
  margin: 0;
  color: #1f2937;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tasks-workspace-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: #475569;
  font-size: 13px;
}

.tasks-workspace-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tasks-workspace-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  padding: 14px;
  min-width: 0;
}

.tasks-workspace-card h4,
.tasks-resourceCard h5 {
  color: #1f2937;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.tasks-resourcesPanel {
  gap: 12px;
}

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

.tasks-resourceCard {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.tasks-progressPanel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tasks-progressPanel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.tasks-progressPanel__head strong {
  color: #0b4f91;
}

.tasks-progressTrack {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.tasks-progressTrack span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  transition: width 160ms ease;
}

.tasks-progressPanel small {
  color: #64748b;
  font-size: 12px;
}

.tasks-activityPanel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  position: sticky;
  top: 0;
  max-height: calc(100vh - 160px);
}

.tasks-activityList {
  max-height: none;
  overflow-y: auto;
  padding-left: 6px;
  flex: 1;
}

.tasks-activityItem {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  position: relative;
  padding-bottom: 14px;
}

.tasks-activityItem::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: -2px;
  width: 1px;
  background: #dbeafe;
}

.tasks-activityItem:last-child::before {
  display: none;
}

.tasks-activityIcon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.tasks-activityBody {
  min-width: 0;
}

.tasks-activityBody header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 11px;
}

.tasks-activityBody strong {
  color: #1f2937;
}

.tasks-activityBody p {
  margin: 4px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tasks-activityComposer {
  align-items: flex-start;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.tasks-activityComposer sl-textarea {
  flex: 1;
}

.tasks-workspaceFooter {
  margin: 20px -28px 0;
  padding: 16px 28px;
}

#taskDetailTitle {
  overflow-wrap: anywhere;
}

.tasks-drawer-header p {
  margin: 4px 0 0;
}

.tasks-drawer-header::before,
.tasks-drawer-header::after {
  content: none !important;
  display: none !important;
}

.tasks-drawer::part(header) {
  padding-top: 10px;
  padding-bottom: 8px;
}

.tasks-drawer::part(title) {
  margin: 0;
}

.tasks-drawer::part(close-button) {
  background: transparent;
  box-shadow: none;
}

.tasks-drawer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tasks-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tasks-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tasks-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
}

.tasks-checklist-item.is-done .tasks-checklist-text {
  color: #94a3b8;
  text-decoration: line-through;
}

.tasks-checklist-text {
  flex: 1;
}

.tasks-checklist-date {
  font-size: 11px;
  color: #94a3b8;
}

.tasks-checklist-empty {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  padding: 8px 4px;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
}

.tasks-comments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.tasks-comment {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
}

.tasks-comment header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.tasks-comment-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1f2937;
}

.tasks-comment-icon {
  font-size: 14px;
  color: #0ea5e9;
}

.tasks-comment-date {
  font-size: 11px;
  color: #94a3b8;
}

.tasks-comment-empty {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  padding: 12px;
}

.tasks-drawer-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tasks-drawer-spacer {
  flex: 1;
}

.tasks-comments-new {
  display: flex;
  gap: 8px;
}

.tasks-attachments {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tasks-attachment {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 12px;
}

.tasks-attachment sl-icon {
  color: #2563eb;
  font-size: 18px;
}

.tasks-attachment a {
  color: #2563eb;
  text-decoration: none;
}

.tasks-attachment a:hover {
  text-decoration: underline;
}

.tasks-attachment-empty {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  padding: 12px;
}

.tasks-attachment-actions {
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .tasks-workspace-grid {
    grid-template-columns: 1fr;
  }

  .tasks-activityPanel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  #taskDetailDrawer {
    --width: calc(100vw - 16px);
  }

  #taskDetailDrawer::part(body) {
    padding: 18px 16px 0;
  }

  .tasks-workspace-titleRow h3 {
    font-size: 22px;
  }

  .tasks-resourcesGrid,
  .tasks-drawer-grid {
    grid-template-columns: 1fr;
  }

  .tasks-comments-new,
  .tasks-activityComposer {
    flex-direction: column;
  }

  .tasks-workspaceFooter {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

.tasks-template-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tasks-template-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}

.tasks-template-item input {
  margin-top: 4px;
}

.tasks-template-item p {
  margin: 4px 0;
  color: #475569;
  font-size: 13px;
}

.tasks-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.tasks-tag {
  background: #c7d2fe;
  color: #4338ca;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
}

.tasks-link {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.tasks-link:hover {
  text-decoration: underline;
}

.tasks-muted {
  color: #94a3b8;
}

@media (max-width: 768px) {
  .tasks-summaryRow {
    grid-template-columns: 1fr;
  }
  .tasks-toolbarRow {
    flex-direction: column;
    align-items: stretch;
  }
  .tasks-toolbarRow sl-button::part(base) {
    width: 100%;
  }
  .tasks-filtersCard {
    grid-template-columns: 1fr;
  }
  .tasks-board {
    grid-template-columns: 1fr;
  }
}

:root.sl-theme-dark .tasks-headerRow .headerIconBox {
  background: rgba(148, 163, 184, 0.16);
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-headerText .tasks-subtitle {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark #tasksToggleFilters::part(base),
:root.sl-theme-dark #tasksTemplateButton::part(base),
:root.sl-theme-dark #tasksCreateBtn::part(base) {
  background: #1C2530;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark #tasksToggleFilters::part(base):hover,
:root.sl-theme-dark #tasksTemplateButton::part(base):hover,
:root.sl-theme-dark #tasksCreateBtn::part(base):hover {
  background: #273241;
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark .tasks-summaryCard {
  background: linear-gradient(135deg, var(--mm-dark-surface, #0f172a) 0%, var(--mm-dark-surface-2, #111827) 100%);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.6);
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-summaryCard strong {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-summaryCard span {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-filtersCard {
  background: var(--mm-dark-surface, #0f172a);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark .tasks-filtersCard sl-input::part(base),
:root.sl-theme-dark .tasks-filtersCard sl-select::part(combobox) {
  background: var(--mm-dark-surface-2, #111827);
  color: var(--mm-dark-text, #f8fafc);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark #tasksApplyFilters::part(base),
:root.sl-theme-dark #tasksResetFilters::part(base),
:root.sl-theme-dark #taskChecklistAddBtn::part(base),
:root.sl-theme-dark #taskCommentSend::part(base),
:root.sl-theme-dark #taskAttachmentUpload::part(base),
:root.sl-theme-dark #taskWizardNext::part(base),
:root.sl-theme-dark #taskWizardSave::part(base),
:root.sl-theme-dark #taskDetailSave::part(base) {
  background: #1C2530;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark #tasksApplyFilters::part(base):hover,
:root.sl-theme-dark #tasksResetFilters::part(base):hover,
:root.sl-theme-dark #taskChecklistAddBtn::part(base):hover,
:root.sl-theme-dark #taskCommentSend::part(base):hover,
:root.sl-theme-dark #taskAttachmentUpload::part(base):hover,
:root.sl-theme-dark #taskWizardNext::part(base):hover,
:root.sl-theme-dark #taskWizardSave::part(base):hover,
:root.sl-theme-dark #taskDetailSave::part(base):hover {
  background: #273241;
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark #taskWizardPrev::part(base),
:root.sl-theme-dark #taskDetailCancel::part(base),
:root.sl-theme-dark #taskTemplateCancel::part(base),
:root.sl-theme-dark .tasks-pagination sl-button::part(base) {
  background: var(--mm-dark-surface-2, #111827);
  color: var(--mm-dark-text, #f8fafc);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-viewSwitch {
  background: var(--mm-dark-surface, #0f172a);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.3);
}

:root.sl-theme-dark .tasks-viewSwitch sl-button::part(base) {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-viewSwitch sl-button[variant="primary"]::part(base) {
  background: #1C2530;
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark .tasks-viewSwitch sl-button:not([variant="primary"])::part(base) {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-contentCard {
  background: var(--mm-dark-surface, #0f172a);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark .tasks-table th {
  background: var(--mm-dark-surface-3, #1f2937);
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-table td {
  color: var(--mm-dark-body, #cbd5e1);
  border-bottom: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark .tasks-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.08);
}

:root.sl-theme-dark .tasks-empty,
:root.sl-theme-dark .tasks-empty-column,
:root.sl-theme-dark .tasks-comment-empty,
:root.sl-theme-dark .tasks-attachment-empty {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-pagination span {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-pill {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
}

:root.sl-theme-dark .priority-critical { background: rgba(248, 113, 113, 0.18); color: #fecaca; }
:root.sl-theme-dark .priority-high { background: rgba(251, 191, 36, 0.2); color: #fde68a; }
:root.sl-theme-dark .priority-medium { background: rgba(96, 165, 250, 0.2); color: #bfdbfe; }
:root.sl-theme-dark .priority-low { background: rgba(52, 211, 153, 0.2); color: #bbf7d0; }

:root.sl-theme-dark .status-not_started { background: rgba(148, 163, 184, 0.18); color: #e2e8f0; }
:root.sl-theme-dark .status-in_progress { background: rgba(59, 130, 246, 0.18); color: #bfdbfe; }
:root.sl-theme-dark .status-blocked { background: rgba(248, 113, 113, 0.18); color: #fecaca; }
:root.sl-theme-dark .status-completed { background: rgba(34, 197, 94, 0.18); color: #bbf7d0; }
:root.sl-theme-dark .status-canceled { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }

:root.sl-theme-dark .tasks-progress span {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .tasks-board-column {
  background: var(--mm-dark-surface-2, #111827);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-board-column header {
  background: var(--mm-dark-surface-3, #1f2937);
  color: var(--mm-dark-text, #f8fafc);
  border-bottom: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark .tasks-card {
  background: var(--mm-dark-surface, #0f172a);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark .tasks-card h5 {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-card p,
:root.sl-theme-dark .tasks-card footer {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-drawer::part(base) {
  background: var(--mm-dark-surface, #0f172a);
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .tasks-drawer::part(header),
:root.sl-theme-dark .tasks-drawer::part(footer) {
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-drawer sl-input::part(base),
:root.sl-theme-dark .tasks-drawer sl-select::part(combobox),
:root.sl-theme-dark .tasks-drawer sl-textarea::part(base) {
  background: var(--mm-dark-surface-2, #111827);
  color: var(--mm-dark-text, #f8fafc);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-section h4 {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-checklist-item {
  background: var(--mm-dark-surface-2, #111827);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-checklist-remove::part(base),
:root.sl-theme-dark .tasks-row-actions sl-icon-button::part(base),
:root.sl-theme-dark .tasks-card sl-icon-button::part(base) {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-checklist-remove::part(base):hover,
:root.sl-theme-dark .tasks-row-actions sl-icon-button::part(base):hover,
:root.sl-theme-dark .tasks-card sl-icon-button::part(base):hover {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.16);
}

:root.sl-theme-dark .tasks-checklist-text {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .tasks-checklist-date {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-checklist-empty {
  color: var(--mm-dark-muted, #94a3b8);
  border-color: var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark .tasks-comment {
  background: var(--mm-dark-surface-2, #111827);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-comment header {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-comment-author {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-comment p {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .tasks-comment-date {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-attachment {
  background: var(--mm-dark-surface-2, #111827);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .tasks-attachment a {
  color: #60a5fa;
}

:root.sl-theme-dark .tasks-template-item {
  background: var(--mm-dark-surface-2, #111827);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .tasks-template-item p {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-tag {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

:root.sl-theme-dark .tasks-link {
  color: #60a5fa;
}

:root.sl-theme-dark .tasks-link:hover {
  color: #93c5fd;
}

:root.sl-theme-dark .tasks-muted {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-dialog::part(base) {
  background: var(--mm-dark-surface, #0f172a);
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark #taskWizardDialog::part(panel),
:root.sl-theme-dark #taskDetailDrawer::part(panel) {
  background: var(--mm-dark-surface, #0f172a);
  color: var(--mm-dark-body, #cbd5e1);
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.78);
}

:root.sl-theme-dark #taskWizardDialog::part(body),
:root.sl-theme-dark #taskDetailDrawer::part(body) {
  background: var(--mm-dark-surface, #0f172a);
}

:root.sl-theme-dark .tasks-dialog::part(header),
:root.sl-theme-dark .tasks-dialog::part(footer) {
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-createHero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(193, 53, 132, 0.14));
  border-color: rgba(125, 211, 252, 0.22);
}

:root.sl-theme-dark .tasks-createHero__icons span {
  background: var(--mm-dark-surface-3, #1f2937);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 26px -18px rgba(2, 6, 23, 0.85);
  color: #7dd3fc;
}

:root.sl-theme-dark .tasks-createHero__icons span:last-child {
  color: #93c5fd;
}

:root.sl-theme-dark .tasks-createHero h3 {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-detailEditPanel h4 {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-workspace-titleRow h3,
:root.sl-theme-dark .tasks-workspace-card h4,
:root.sl-theme-dark .tasks-resourceCard h5,
:root.sl-theme-dark .tasks-activityBody strong {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-workspace-card,
:root.sl-theme-dark .tasks-resourceCard {
  background: var(--mm-dark-surface-2, #111827);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-workspace-meta,
:root.sl-theme-dark .tasks-progressPanel small,
:root.sl-theme-dark .tasks-activityBody header {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-progressPanel__head,
:root.sl-theme-dark .tasks-activityBody p {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .tasks-progressTrack {
  background: rgba(148, 163, 184, 0.2);
}

:root.sl-theme-dark .tasks-activityIcon {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(125, 211, 252, 0.25);
  color: #93c5fd;
}

:root.sl-theme-dark .tasks-createExtraPanel {
  border-top-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-createExtraPanel h4 {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-createAttachmentList {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-createHero p {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-dialog sl-input::part(base),
:root.sl-theme-dark .tasks-dialog sl-select::part(combobox),
:root.sl-theme-dark .tasks-dialog sl-textarea::part(base) {
  background: var(--mm-dark-surface-3, #1f2937);
  color: var(--mm-dark-text, #f8fafc);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-dialog sl-input::part(input),
:root.sl-theme-dark .tasks-dialog sl-select::part(display-input),
:root.sl-theme-dark .tasks-dialog sl-textarea::part(textarea) {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-dialog sl-input::part(input)::placeholder,
:root.sl-theme-dark .tasks-dialog sl-textarea::part(textarea)::placeholder {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-dialog sl-select::part(panel) {
  background: var(--mm-dark-surface-2, #111827);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-wizard-labelTitle {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-wizard-labelSubtitle {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .tasks-wizard-stepper::before {
  background: linear-gradient(90deg,
      #3b82f6 0%,
      #3b82f6 calc(var(--tasks-progress, 0) * 100%),
      rgba(148, 163, 184, 0.2) calc(var(--tasks-progress, 0) * 100%),
      rgba(148, 163, 184, 0.2) 100%);
}

:root.sl-theme-dark .tasks-step {
  color: var(--mm-dark-muted, #94a3b8);
  background: var(--mm-dark-surface-2, #111827);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .tasks-step__index {
  background: var(--mm-dark-surface-3, #1f2937);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .tasks-step.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(193, 53, 132, 0.12));
  border-color: rgba(125, 211, 252, 0.24);
  color: #93c5fd;
}

:root.sl-theme-dark .tasks-step.is-active .tasks-step__index {
  background: #0b4f91;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.6);
}

:root.sl-theme-dark .tasks-step.is-complete {
  color: #86efac;
}

:root.sl-theme-dark .tasks-step.is-complete .tasks-step__index {
  background: #0b4f91;
  color: #ffffff;
}

:root.sl-theme-dark .tasks-wizard-body {
  background: var(--mm-dark-surface-2, #111827);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.3);
}

:root.sl-theme-dark .tasks-wizard-body sl-input::part(form-control-label),
:root.sl-theme-dark .tasks-wizard-body sl-select::part(form-control-label),
:root.sl-theme-dark .tasks-wizard-body sl-textarea::part(form-control-label) {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .tasks-wizard-footer {
  background: var(--mm-dark-surface-2, #111827);
  border-top-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
  :root {
      --text-color: var(--text-color-dark);
  }
}
.text-theme {
  color: var(--text-color);
}
  :root.sl-theme-dark {
    --trimColor: #4a4a4a; /* Dark mode trim color */
  }

  :root.sl-theme-dark {
    --border-color: var(--sl-color-neutral-200);
}

:root.sl-theme-light {
    --border-color: #e2e2e3; /* Light theme border color */
}
:root.sl-theme-dark h1 {
  color: var(--text-color-dark);
}

:root.sl-theme-light h1 {
  color: #767676;
}

:root.sl-theme-dark h2 {
  color: var(--text-color-dark);
}

:root.sl-theme-light h2 {
  color: #767676;
}
  :root.sl-theme-dark .text {
    color: var(--text-color-dark);
  }
  :root.sl-theme-light .text {
    color: #767676;
  }

  :root.sl-theme-dark .borderBottom {
    border-bottom: 1px solid #e2e2e3;
  }
  :root.sl-theme-light .borderBottom {
    border-bottom: 1px solid #e2e2e3;
  }

  :root.sl-theme-dark .menutext {
    color: var(--text-color-dark);
  }
  :root.sl-theme-light .menutext {
    color: #fff;
  }

  :root.sl-theme-light .headerText {
    background: linear-gradient(90deg, #217bfe, #078efb, #ac87eb, #ee4d5d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standard for non-webkit browsers */
  }
  
  :root.sl-theme-dark .headerText {
    background: linear-gradient(90deg, #217bfe, #078efb, #ac87eb, #ee4d5d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standard for non-webkit browsers */
  }

  :root.sl-theme-dark .menuSub{
    background-color: #252529;
  }
  :root.sl-theme-light .menuSub{
    background-color: var(--sl-color-primary-700);
  }
  :root.sl-theme-dark .menu {
    background-color: rgb(26, 26, 30);
    border-right: 2px solid;
    border-color: var(--border-color);
  }
  :root.sl-theme-light .menu {
    background-color: var(--affiliBlue);
  }
  :root.sl-theme-dark .window {
    background: var(--window-bg-dark);
    background: linear-gradient(#1B1B1F, #1B1B1F) padding-box,
    linear-gradient(45.12deg, #217bfe, #078efb, #ac87eb, #ee4d5d)
      border-box;
  border: 2px solid transparent;
  border-radius: 24px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  }
  :root.sl-theme-light .window {
    background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(45.12deg, #217bfe, #078efb, #ac87eb, #ee4d5d)
      border-box;
  border: 2px solid transparent;
  border-radius: 24px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  }
 
  :root.sl-theme-light .toolbar_sub{
 
    background:white;
  }
  :root.sl-theme-light .window_sub{
    /* background:#f5f9fd; */
    background: white;
  }

  :root.sl-theme-dark .window_sub{
    background:#252529;
  }
  :root.sl-theme-light .window_plain{
    background: #fff;
  }

  :root.sl-theme-dark .window_plain{
    background: #1B1B1F;
  }

  :root.sl-theme-dark {
    --mm-dark-bg: #0b1120;
    --mm-dark-surface: #0f172a;
    --mm-dark-surface-2: #111827;
    --mm-dark-surface-3: #1f2937;
    --mm-dark-border: rgba(148, 163, 184, 0.2);
    --mm-dark-border-soft: rgba(148, 163, 184, 0.12);
    --mm-dark-text: #f8fafc;
    --mm-dark-muted: #94a3b8;
    --mm-dark-body: #cbd5e1;
    --mm-dark-shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
  }
.tabIcon{
  margin-right:5px;
}
  .bi-venuBuilder-icon {
    display: inline-block;
    width: 16px;
    height: 18px;
  }

body {
  font-family: Arial, sans-serif;
  width: 100vw;
  height: 100vh;
    margin:0;
    padding:0;
    color:var(--text-color);
    overflow: hidden;
    /* Combine gradient and image in a single background declaration */
  }
  #foundation{
    width:100%;
    height:100%;
  }

  /* Add a glowing effect on focus for Shoelace inputs */
  sl-input::part(base):focus-within {
    box-shadow: 0 0 4px 2px rgba(67, 141, 246, 0.3); /* Glow effect */
  }

  
  /* Visible items */
  .mix.show {
    display: block;
  }
  .venueListItem_box {
    opacity: 1;
    transition: all 0.5s ease;
  }
  
  .venueListItem_box.mix.show {
    opacity: 1;
  }
  #wallPaper {
    background: var(--wallpaper-bg-light);
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
  }
  
        #loginContainer {
          width: min(380px, 92vw);
          min-height: 420px;
          background-color: white;
          border-radius: 12px;
          margin: auto;
          padding: 2.5rem 1.75rem 2.25rem 1.75rem;
          display: grid;
          gap: 12px;
          box-shadow: 0px 18px 45px rgba(15, 23, 42, 0.15);
        }
  
        #marketImage {
          position: absolute;
          top: 0px;
          left: 0px;
          object-fit: cover;
          opacity: 0.3;
        }
  
        #loginText {
          font-family: "Open Sans", sans-serif;
          font-size: 1.375rem;
          font-weight: 400;
          line-height: 1.75rem;
          text-align: center;
        }
  
        #affiliLogo_box {
          width: 70px;
          height: 70px;
          border-radius: 35px;
          box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
          margin-left: auto;
          margin-right: auto;
        }
  
        #affiliLogo_logo {
          width: 90%;
          height: 90%;
          margin-left: 5px;
        }

        .flexRow{
          display: flex;
          flex-direction: row;
        }
        .flexColumn{
          display: flex;
          flex-direction: column;
        }
        .flexFill{
          flex:1;
        }

        .flexCenter{
          justify-content: center;
          align-items: center;
        }
        .error-message {
          color: red;
          font-size: 11px;
          margin-top: -10px;
          margin-left: 18px;
          opacity: 0;
      }

      .account-question {
          text-align: center;
          font-size: 0.85rem;
          margin-top: 4px;
      }

      .account-question a {
          color: var(--primary-color, #1a5ad9);
          text-decoration: underline;
          font-weight: 600;
      }

      .buttonBox50{
      }

.new-user-card {
  width: min(680px, 92vw);
  margin: 40px auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.17);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.affili-notify {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.affili-notify.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.affili-notify__panel {
  width: min(680px, 100%);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
  padding: 28px;
  transform: translateY(10px) scale(0.98);
  transition: transform 140ms ease;
  outline: none;
}

.affili-notify.is-visible .affili-notify__panel {
  transform: translateY(0) scale(1);
}

.affili-notify__header {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.affili-notify__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  color: #5b3fd7;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 44%),
    linear-gradient(145deg, #f2ecff 0%, #e7e7ff 100%);
}

.affili-notify__icon i {
  font-size: 54px;
  line-height: 1;
}

.affili-notify__iconBadge {
  position: absolute;
  right: 6px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ef4444;
  border: 3px solid #ffffff;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.affili-notify__title {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

.affili-notify__message {
  margin: 0 0 7px;
  color: #334155;
  font-size: 17px;
  line-height: 1.45;
}

.affili-notify__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f6f3ff 0%, #f8faff 100%);
  border: 1px solid rgba(109, 40, 217, 0.08);
  border-radius: 12px;
}

.affili-notify__detail {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.affili-notify__detailIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.1);
  color: #5b3fd7;
  font-size: 24px;
}

.affili-notify__detailLabel,
.affili-notify__detailHelper {
  color: #475569;
  font-size: 12px;
  line-height: 1.25;
}

.affili-notify__detailValue {
  margin-top: 2px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.affili-notify__field {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.affili-notify__fieldLabel {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.affili-notify__input {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  background: #ffffff;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.affili-notify__input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.affili-notify__input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.affili-notify__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.affili-notify__button {
  min-width: 168px;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.affili-notify__button:hover {
  transform: translateY(-1px);
}

.affili-notify__button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.affili-notify__button--secondary {
  color: #334155;
  background: #ffffff;
  border-color: #cbd5e1;
}

.affili-notify__button--secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.affili-notify__button--primary {
  color: #ffffff;
  background: #155bd8;
  box-shadow: 0 12px 24px rgba(21, 91, 216, 0.24);
}

.affili-notify__button--primary:hover {
  background: #0f4fc0;
}

.affili-notify--danger .affili-notify__button--primary {
  background: #ef2d22;
  box-shadow: 0 12px 24px rgba(239, 45, 34, 0.24);
}

.affili-notify--danger .affili-notify__button--primary:hover {
  background: #dc241a;
}

.affili-notify--danger .affili-notify__icon {
  color: #6d3fd6;
}

@media (max-width: 720px) {
  .affili-notify {
    align-items: flex-end;
    padding: 14px;
  }

  .affili-notify__panel {
    padding: 22px;
    border-radius: 16px;
  }

  .affili-notify__header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .affili-notify__icon {
    width: 84px;
    height: 84px;
  }

  .affili-notify__icon i {
    font-size: 42px;
  }

  .affili-notify__iconBadge {
    right: 2px;
    bottom: 9px;
  }

  .affili-notify__title {
    font-size: 25px;
  }

  .affili-notify__details {
    grid-template-columns: 1fr;
  }

  .affili-notify__footer {
    flex-direction: column-reverse;
  }

  .affili-notify__button {
    width: 100%;
  }
}

#affiliAssistantFab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 30px;
  opacity: 1;
  visibility: visible;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
  z-index: 10001;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

#affiliAssistantFab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 40px rgba(79, 70, 229, 0.32);
}

#affiliAssistantFab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
}

#affiliAssistantWindow {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: min(380px, calc(100vw - 24px));
  min-height: 420px;
  max-height: min(640px, calc(100vh - 56px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px) scale(0.95);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 10002;
}

#affiliAssistantWindow,
#affiliAssistantWindow * {
  box-sizing: border-box;
}

#affiliAssistantWindow h2,
#affiliAssistantWindow p {
  font-family: inherit;
  letter-spacing: normal;
}

#affiliAssistantWindow.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#affiliAssistantHeader {
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

#affiliAssistantWindow.is-dragging #affiliAssistantHeader {
  cursor: grabbing;
}

#affiliAssistantTitleBlock {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

#affiliAssistantTitleRow {
  display: flex;
  align-items: center;
  gap: 12px;
}

#affiliAssistantIcon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.18));
  color: #1d4ed8;
  font-size: 20px;
}

#affiliAssistantTitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

#affiliAssistantSubtitle {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: #64748b;
}

#affiliAssistantClose {
  all: unset;
  border: 0;
  background: transparent;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: 0 0 36px;
  cursor: pointer;
  line-height: 1;
}

#affiliAssistantClose:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #0f172a;
}

#affiliAssistantMessages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.affili-assistant-message {
  display: flex;
  width: 100%;
}

.affili-assistant-message--assistant {
  justify-content: flex-start;
}

.affili-assistant-message--user {
  justify-content: flex-end;
}

.affili-assistant-message--thinking {
  justify-content: flex-start;
}

.affili-assistant-bubble {
  display: inline-block;
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.96rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.affili-assistant-bubble--assistant {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #0f172a;
  border-radius: 0;
  padding: 0;
}

.affili-assistant-bubble--user {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  border-bottom-right-radius: 8px;
  margin-left: auto;
}

.affili-assistant-responseWrap {
  width: 100%;
  color: #0f172a;
}

.affili-assistant-imageWrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.affili-assistant-image {
  display: block;
  width: 100%;
  max-width: 280px;
  max-height: 320px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.affili-assistant-imageFrame {
  position: relative;
}

.affili-assistant-imageError {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 280px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  padding: 10px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.affili-assistant-imageError[hidden] {
  display: none;
}

.affili-assistant-imageError strong {
  color: #78350f;
  font-size: 0.84rem;
}

.affili-assistant-imageError a {
  color: #0b4f91;
  font-weight: 700;
  text-decoration: none;
}

.affili-assistant-imageError a:hover {
  text-decoration: underline;
}

.affili-assistant-imagePrompt {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
  word-break: break-word;
}

.affili-assistant-thinking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.affili-assistant-thinkingDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.85);
  animation: affiliAssistantThinkingBounce 1.2s ease-in-out infinite;
}

.affili-assistant-thinkingDot:nth-child(2) {
  animation-delay: 0.15s;
}

.affili-assistant-thinkingDot:nth-child(3) {
  animation-delay: 0.3s;
}

.affili-assistant-responseText {
  display: block;
  width: 100%;
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.affili-assistant-message--task .affili-assistant-responseWrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.affili-assistant-taskBadge {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.92);
  color: #1e40af;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.affili-assistant-taskBadgeStatus {
  color: #475569;
  font-weight: 700;
}

.affili-assistant-taskInput {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
}

.affili-assistant-taskInputLabel {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.affili-assistant-taskInputRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.affili-assistant-taskInputControl {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
}

.affili-assistant-taskInputButton,
.affili-assistant-taskInputSubmit {
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.affili-assistant-taskInputButton {
  background: #ffffff;
  color: #1d4ed8;
}

.affili-assistant-taskInputChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.affili-assistant-taskInputChip {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 12px;
  font-weight: 800;
}

.affili-assistant-caret {
  display: inline-block;
  width: 0.6ch;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.1em;
  border-right: 2px solid rgba(37, 99, 235, 0.9);
  animation: affiliAssistantCaretBlink 1s step-end infinite;
}

.affili-assistant-caret.is-hidden {
  display: none;
}

@keyframes affiliAssistantCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes affiliAssistantThinkingBounce {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.9);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
}

#affiliAssistantComposer {
  padding: 14px 18px 18px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.72);
  width: 100%;
}

#affiliAssistantAttachmentChips {
  width: 100%;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#affiliAssistantAttachmentChips:empty {
  display: none;
}

.affili-assistant-attachmentChip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.affili-assistant-attachmentChipName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.affili-assistant-attachmentChipStatus {
  color: #15803d;
  font-weight: 800;
}

#affiliAssistantInput {
  all: unset;
  flex: 1;
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  resize: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  padding: 12px 14px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  overflow-y: auto;
}

#affiliAssistantInput:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

#affiliAssistantUpload {
  all: unset;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #ffffff;
  color: #334155;
  font-size: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  cursor: pointer;
  line-height: 1;
}

#affiliAssistantSend {
  all: unset;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
  flex: 0 0 48px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 640px) {
  #affiliAssistantFab {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  #affiliAssistantWindow {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }
}

.new-user-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 40px 48px 20px;
}

.new-user-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.new-user-title {
  font-size: 1.35rem;
  font-weight: 600;
  background: linear-gradient(103deg, #217bfe, #078efb, #ac87eb, #ee4d5d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.new-user-intro {
  margin: 0;
  font-size: 0.92rem;
  color: var(--sl-color-neutral-500);
}

.new-user-stepper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  padding: 0 48px 24px;
}

.new-user-stepper::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 64px;
  right: 64px;
  height: 2px;
  background: rgba(148, 163, 184, 0.25);
}

.new-user-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
  appearance: none;
}

.new-user-step:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.new-user-step:focus {
  outline: none;
}

.new-user-step__index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  color: #7a8599;
  background: #fff;
  border: 2px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: all 0.25s ease;
}

.new-user-step__label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3b5;
}

.new-user-step.is-active .new-user-step__index {
  background: linear-gradient(103deg, #217bfe, #078efb, #ac87eb, #ee4d5d);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 32px rgba(33, 123, 254, 0.35);
}

.new-user-step.is-active .new-user-step__label {
  color: #1c4ed8;
}

.new-user-step.is-complete .new-user-step__index {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.28);
}

.new-user-step.is-complete .new-user-step__label {
  color: #15803d;
}

.new-user-nav { display: none !important; }

.new-user-body {
  padding: 0 48px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.new-user-panel {
  width: 100%;
  max-width: 560px;
  display: none;
}

.new-user-panel--wide {
  max-width: 760px;
}

.new-user-panel.is-active {
  display: block;
}

.new-user-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}


.new-user-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.new-user-form .form-row > sl-input,
.new-user-form .form-row > sl-select {
  flex: 1 1 0;
  min-width: 220px;
}

.new-user-form .form-row--three > sl-input,
.new-user-form .form-row--three > sl-select {
  min-width: 180px;
}
.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.new-user-form sl-input::part(base),
.new-user-form sl-select::part(combobox) {
  border-radius: 12px;
}

.new-user-form sl-input::part(input) {
  font-family: var(--sl-font-sans, Arial, sans-serif);
  background-image: none;
}

.stripe-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.stripe-panel__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.stripe-panel__intro {
  margin: 0;
  font-size: 0.98rem;
  color: #475569;
}

.stripe-panel__status {
  min-height: 20px;
  font-size: 0.85rem;
  color: var(--sl-color-neutral-500);
}

.stripe-panel--connect {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  padding: 32px 36px 30px;
  align-items: center;
}

.stripe-panel__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.stripe-panel__features {
  list-style: none;
  padding: 0;
  margin: 12px 0 8px;
  display: grid;
  gap: 10px;
}

.stripe-panel__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #1f2937;
}

.stripe-panel__features i {
  color: #0f8a5f;
  font-size: 1rem;
}

.stripe-panel__note {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #64748b;
}

.stripe-panel__actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.stripe-panel__actions sl-button::part(base) {
  border-radius: 10px;
  padding: 0 22px;
  height: 42px;
  background: linear-gradient(180deg, #1d4ed8 0%, #163b8f 100%);
  border: none;
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.25);
}

.stripe-panel__actions sl-button::part(label) {
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stripe-panel__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 700;
  margin-right: 0;
  font-size: 0.9rem;
}

.stripe-panel__media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.stripe-panel__media img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

@media (max-width: 980px) {
  .stripe-panel--connect {
    grid-template-columns: 1fr;
    padding: 26px 24px;
  }

  .stripe-panel__media {
    order: -1;
  }
}

@media (max-width: 560px) {
  .stripe-panel--connect {
    padding: 22px 18px;
  }

  .stripe-panel__title {
    font-size: 1.2rem;
  }
}

.new-user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 48px 36px;
}

.wizardBtn::part(base) {
  border-radius: 999px;
  padding: 0 26px;
  height: 42px;
  font-weight: 600;
  font-size: 0.88rem;
}

.wizardBtn--secondary::part(base) {
  background: #fff;
  color: #1d4ed8;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.wizardBtn--secondary::part(base):hover {
  border-color: rgba(15, 23, 42, 0.24);
}

.wizardBtn--primary::part(base) {
  background: #0b5a9c;
  color: #fff;
  border: none;
  box-shadow: none;
}

.wizardBtn--primary::part(base):hover {
  background: #1aa7dc;
  filter: none;
}

@media (max-width: 620px) {
  .new-user-card {
    width: 92vw;
    margin: 20px auto;
  }
  .new-user-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 10px;
  }
  .new-user-stepper {
    padding: 14px 24px 12px;
    gap: 36px;
  }
  .new-user-stepper::before {
    left: 30px;
    right: 30px;
  }
  .new-user-body {
    padding: 0 24px 24px;
  }
  .new-user-actions {
    padding: 0 24px 28px;
  }
}

@media (max-width: 560px) {
  .new-user-stepper {
    flex-direction: column;
    gap: 16px;
  }
  .new-user-stepper::before {
    display: none;
  }
  .new-user-body {
    gap: 20px;
  }
  .form-row--three {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}



        height:50px;
        width:50px;
        cursor: pointer;
        display: flex;
        font-size: 18px;
      }

      .buttonBox40{
        height:40px;
        width:40px;
        cursor: pointer;
        display: flex;
        font-size: 18px;
      }

      .buttonBoxIcon{
        margin: auto;
        color: white;
      }

      .collapsible-window {
        position: relative;
        transition: width 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
      }
      
      .collapsible-header {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 50px;
        background-color: var(--header-color, #ddd);
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
      }
      
      .collapsible-header.vertical {
        width: 50px;
        height: 100%; /* Full height when vertical */
        writing-mode: vertical-rl;
        text-align: center;
        transform: rotate(180deg);
        justify-content: flex-start;
      }
      
      .collapsible-header.vertical .arrow-icon {
        position: absolute;
        bottom: 10px; /* Align arrow at the bottom */
      }
      
      .collapsible-header.vertical .title {
        display: block;
        font-size: 14px;
        color: #000;
      }
      
      .collapsible-header .title {
        font-size: 16px;
        font-weight: bold;
        display: none; /* Hidden when open */
      }
      
      .collapsible-header.vertical .title {
        display: block; /* Show title when closed */
      }
      
      .collapsible-content {
        padding: 10px;
        flex: 1;
        display: none;
      }
      
      .collapsible-window.open .collapsible-content {
        display: block;
      }
      
      .collapsible-window.open .collapsible-header.vertical {
        width: 100%; /* Reset to full width when open */
        writing-mode: initial;
        transform: none;
        height: 50px;
        justify-content: center;
      }
      
      .arrow-icon {
        font-size: 18px;
        cursor: pointer;
        transition: transform 0.3s ease;
      }
      
      .arrow-icon.rotate {
        transform: rotate(180deg);
      }
      
      .collapsible-window.closed {
        width: 50px;
      }
      
      .collapsible-window.open {
        width: 300px;
      }
.application_field{
  margin-left: 20px;
  margin-right: 20px;
}

.helpText{
  font-size: 0.875rem;
}

.ql-font-serif {
  font-family: 'Times New Roman', serif;
}
.ql-font-monospace {
  font-family: 'Courier New', monospace;
}
.ql-font-arial {
  font-family: 'Arial', sans-serif;
}

.ql-editor{
  background-color: white;
}

.ql-size-huge {
  font-size: 2.5em;
}

.ql-size-large {
  font-size: 1.5em;
}

.ql-size-small {
  font-size: .75em;
}

.fieldNameToolbar {
  width: 25px;
  height: 25px;
  position: absolute;
  left: 0px;
  top: 0px;
  border-bottom-right-radius: 10px;
  font-size: 14px;
}

.fieldNameToolbarIcon{
  margin:auto;
}

.image_tempImageBox{
  width:350px;
  height:275px;
  margin: auto;
}

.image_tempImageInstructions{
  text-align: center;
}

.selected {
  background-color: var(--sl-color-primary-50);
border-color: var(--sl-color-primary-300);
color: var(--sl-color-primary-700);
border:1px solid;
border-radius: 5px;
}

sl-button[selected]::part(base) {
  background-color: var(--sl-color-primary-50);
  border-color: var(--sl-color-primary-300);
  color: var(--sl-color-primary-700);
}



.fieldImagesUploadedBox{
  height:75px;
  background-color: var(--sl-input-background-color-disabled);
  border:solid 1px;
  border-color: var(--sl-input-border-color-disabled);
  opacity: 0.5;
  border-radius: 5px;
}

#requiredItem{
  height:75px;
  background-color: var(--sl-input-background-color-disabled);
  border:solid 1px;
  border-color: var(--sl-input-border-color-disabled);
  opacity: 0.5;
  border-radius: 5px;
}

.venueAppHeader{
  font-size: 18px;
  font-weight: 900;
  margin:auto;
}
.vendorCatHeader{
  font-size: 14px;
  height:27px
}

.vendorCatHeaderText{
  font-size: 10px;
  line-height: 23px;
  font-weight: 800;
}

.downCatBtn{
  cursor: pointer;
}

#mySelect{
  width:250px;
}

.multiselect-group{
  background-color: var(--affiliBlue);
  color:white;
}

.shadow_select{
  max-width: 200px;
  width: 200px;
}

#vendors_layout_wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

#vendors_loading_mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 9999;
}

#vendors_loading_mask[hidden] {
  display: none;
}

.vendors-loading-inner {
  display: flex;
  width: 100px;
  height: 100px;
  background-color: white;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
}

.btn-group{
  max-width: 200px;
  width: 200px;
  width:100%;
  height:100%;
}

#applicationBackgroundPicker{
  margin: auto;
}

.applicationToolbarbtn{
  width:40px;
  height:40px;
  cursor: pointer;
  margin: auto;
}

.applicationToolbarbtn:hover{
  color:var(--affiliBlue) !important;
}



.headerPosition_left{
  text-align: left;
}
.headerPosition_right{
  text-align: right;
}
.headerPosition_center{
  text-align: center;
}

.header_1 {
  font-size: var(--sl-font-size-4x-large);
}

.header_2 {
  font-size: var(--sl-font-size-3x-large);
}

.header_3 {
  font-size: var(--sl-font-size-2x-large);
}

.header_4 {
  font-size: var(--sl-font-size-x-large);
}

.header_5 {
  font-size: var(--sl-font-size-large);
}

.header_6 {
  font-size: var(--sl-font-size-medium);
}

.imageInput_imageBox_deleteBtn {
  width: 24px;
  height: 24px;
  color:white;
  font-size: x-large;
  cursor: pointer;
}
  .imageInput_imageBox_deleteRow{
      height:24px;
      background-color: var(--affiliBlue);
  }
  .imageInput_imageBox {
  width: 150px;
  height: 125px;
  margin: 5px;
}
  .application_imageuploadList{
      height:135px;
  }
  .flexRow{
      display: flex;
      flex-direction: row;
  }
  .flexColumn{
      display: flex;
      flex-direction: column;
  }
  .flexFill{
      flex:1;
  }
  .datatable-shell{
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      min-height: 0;
      height: 100%;
      overflow: hidden;
  }
  .datatable-shell .dataTables_wrapper{
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      min-height: 0;
      overflow: hidden;
      gap: 12px;
  }
  .datatable-shell .dataTables_scrollBody{
      flex: 1 1 auto !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
  }
  .imageInput_imageBox_imageBox{
      overflow: hidden;
  }
  .window_sub{
  background: #FAFCFE;
  height:100vh;
}
.toolbar_sub{
  height:40px;
}
.imageuploadBtn{
  width:125px;
}

#previewDia_htmlBase{
  width:100%;
  height:100%;
  overflow-y: scroll;
}

#builderBase {
  position: relative;
  width: 300px;
  background-color: aqua;
  overflow-y: scroll;
  
}

.draggable {
  width: 100%;
  height: 100px;
  margin: 5px 0;
  background-color: lightcoral;
  text-align: center;
  line-height: 100px;
  font-size: 18px;
  cursor: grab;
  position: absolute;
  left: 0;
  transition: top 0.3s ease; /* Smooth movement */
}

.draggable.dragging {
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3); /* Add drop shadow */
  z-index: 1000; /* Bring dragged item to the front */
}

.placeholder {
  /* background-color: lightblue;
  border: 2px dashed blue; */
  height: 100px;
  width: 100%;
  position: absolute;
  left: 0;
  opacity: 0;
  pointer-events: none;
}
#builderBaseToolColumn{
}

#builderToolSelectionBox{
  width:90px;
}
.applicationBuilderBtn{
  margin: 2px;
}
#sortableList{
  background-color: white;
  height:100%;
  flex:1;
}
.sortable-ghost{
  background-color: rgba(37,37,41,0.2);
  opacity: 0.2;
}
#sortableList {
      list-style-type: none;
      padding: 0;
      margin-bottom: 0;
      margin-left: 50px;
      margin-right: 50px;
      border-left: 1px solid;
      border-right: 1px solid;
      border-color: var(--sl-input-border-color-disabled);
      overflow-y: scroll;
  }

  .sortable-item {
      padding: 15px;
      margin: 5px;
      font-size: 18px;
      cursor: grab;
      border: 1px solid #ddd;
      position: relative;
  }

  .sortable-item:hover {
      background-color: #5BB7F7;
  }

  #fieldProperties_okBtn{
      margin-top: 20px;
      width:100px;
      margin-left: auto;
      margin-right: 0px;
  }
  .headerIcon{
    color:rgb(33, 123, 254);
    font-size: 24px;
  }
  .text-gradient {
background: linear-gradient(103deg, rgb(33, 123, 254), rgb(7, 142, 251), rgb(172, 135, 235), rgb(238, 77, 93));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text; /* Standard property for non-webkit browsers */
font-size: 18px; /* Ensure sufficient text size */
font-weight: bold;
display: inline-block; /* Ensures the background properly clips */
}
  .headerIconBox{
  width:24px;
  height:24px;
  color:rgb(33, 123, 254);
  display:flex;
  }

  .page-header {
    margin: 24px 40px 0 40px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .page-header .text-gradient {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: currentColor;
    background-clip: initial;
    color: var(--sl-color-primary-600);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
  }

  .page-header .page-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
  }

  .page-header .headerIconBox {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--sl-color-primary-600);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-header .headerIcon {
    color: inherit;
    font-size: 1.25rem;
  }

  .page-header .flexRow {
    align-items: center;
    gap: 12px;
  }

  @media (max-width: 1024px) {
    .page-header {
      margin: 20px 28px 0 28px;
    }
  }

  @media (max-width: 640px) {
    .page-header {
      margin: 16px 20px 0 20px;
    }
  }
#builderScreen{
overflow-y: scroll;
}
#background_panel{
width:100%;

}

#applications_base{
  height:100vh;
}

#documentsListBase {
  width: 100% !important; /* Ensure it takes the full width */
}

#documentsTable {
  width: 100% !important;
}

#documentsTable_filter{
  display: none !important;
}

#documentsIconBase {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap to the next row */
  gap: 10px; /* Adds spacing between items */
  justify-content: flex-start; /* Align items to the start */
  overflow-y: scroll;
}

/* Set height of the Select2 container */
#searchableSelect + .select2-container .select2-selection--single {
  height: 40px !important;
  line-height: 40px !important;
  display: flex;
  align-items: center;
}

/* Ensure the text is vertically aligned */
#searchableSelect + .select2-container .select2-selection__rendered {
  line-height: 40px !important;
}

/* Adjust the dropdown arrow icon */
#searchableSelect + .select2-container .select2-selection__arrow {
  height: 40px !important;
}

/* Set height of the clear (×) button */
#searchableSelect + .select2-container .select2-selection__clear {
  height: 40px !important;
  line-height: 40px !important;
  display: flex;
  align-items: center;
}

.select-label {
  color: var(--sl-input-label-color);
}

#wait{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's above other elements */
}
#wait-inner {
  display: flex;
  width: 100px;
  height: 100px;
  background-color: white;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  
  position: absolute; /* Needed for top/left positioning */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#users_base{
  height:100vh;
}

#addUserButton{
  margin-left:40px;
}

.smallText{
  font-size: 12px;
}

.extraSmallText{
  font-size: 10px;
}

.bold{
  font-weight: 900;
}

sl-tab-panel::part(base) {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

#accountingTabs sl-tab-panel {
  display: none;
}

#accountingTabs sl-tab-panel[active] {
  display: block;
}

  .full-height { height: 100%; display: flex; flex-direction: column; }

  /* let the tab group fill its parent */
  .full-height sl-tab-group {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* make each panel fill the remaining height */
  .full-height sl-tab-panel {
    flex: 1;
    overflow: auto; /* scroll if content overflows */
  }

  .sw-theme-dots>.nav .nav-link.active::after {
    background-color: var(--affiliBlue)!important;
    box-shadow: 0 1px 7px 1px rgba(0,0,0,.3);
}

.sw-theme-dots>.nav .nav-link.active {
    color: var(--affiliBlue)!important;
    cursor: pointer;
}

.sw-theme-dots>.nav .nav-link.done {
    color: var(--sw-anchor-default-secondary-color);
    cursor: pointer;
}

.sw-theme-dots>.nav .nav-link.done::after {
    background-color: var(--sw-anchor-default-secondary-color) !important;
}

td.dt-control::before {
  content: "▼"; /* Downward arrow */
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.2s ease-in-out;
  margin-right: 5px;
  color: #555;
}

tr.details td.dt-control::before {
  transform: rotate(90deg); /* Rotate left to indicate collapse */
}

.child-row{
  border-top:solid 1px rgb(113, 113, 122);
}

.dashCard{
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
border: 1px solid rgba(0,0,0,.08);
border-radius: 6px;
background: #fff;
}

.new-user-card {
  width: min(720px, 92vw);
  margin: 24px auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.17);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.new-user-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px 8px;
}

.new-user-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.new-user-title {
  font-size: 1.05rem;
  font-weight: 600;
  color:var(--affiliBlue);
}

.new-user-intro {
  margin: 0;
  font-size: 0.8rem;
  color: var(--sl-color-neutral-500);
}

.new-user-header .headerIconBox {
  width: 32px;
  height: 32px;
}

.new-user-header .headerIconBox i {
  font-size: 0.9rem;
}

.new-user-stepper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 0 40px 8px;
}

.new-user-stepper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 44px;
  right: 44px;
  height: 2px;
  background: rgba(148, 163, 184, 0.25);
}

.new-user-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  appearance: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.new-user-step:focus-visible,
.new-user-step:focus {
  outline: none;
  transform: translateY(-1px);
}

.new-user-step__index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  color: #7a8599;
  background: #fff;
  border: 2px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  transition: all 0.25s ease;
}

.new-user-step__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9aa3b5;
}

.new-user-step.is-active .new-user-step__index {
  background-color: var(--affiliBlue);
  border-color: transparent;
  color: #fff;
}

.new-user-step.is-active .new-user-step__label {
  color: var(--affiliBlue);
}

.new-user-step.is-complete .new-user-step__index {
  background-color: var(--text-color-dark);
  border-color: transparent;
  color: #fff;
}

.new-user-step.is-complete .new-user-step__label {
  color:var(--text-color-dark);;
}

.new-user-panel {
  display: none;
  width: 100%;
  max-width: 560px;
}

.new-user-panel--wide {
  max-width: 760px;
}

.new-user-panel.is-active {
  display: block;
}

.new-user-body {
  padding: 0 40px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.new-user-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.form-row > sl-input,
.form-row > sl-select {
  flex: 1 1 0;
  min-width: 220px;
}

.form-row--two > sl-input,
.form-row--two > sl-select {
  min-width: 260px;
}

.form-row--three > sl-input,
.form-row--three > sl-select {
  min-width: 180px;
}

.new-user-form sl-input::part(base),
.new-user-form sl-select::part(combobox) {
  border-radius: 12px;
}

.new-user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 44px 36px;
}

.new-user-actions .wizardBtn {
  flex: 0 0 148px;
}

.new-user-actions .wizardBtn::part(base) {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  width: 100%;
}

.new-user-actions .wizardBtn::part(label) {
  align-items: center;
  display: inline-flex;
  line-height: 1;
}

.new-user-actions #wizardFinishBtn {
  flex-basis: 190px;
}

.new-user-actions #wizardNextBtn::part(base) {
  background: #0b5a9c;
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}

.new-user-actions #wizardNextBtn::part(label) {
  color: inherit;
}

.new-user-actions #wizardNextBtn::part(base):hover {
  background: #1aa7dc;
  box-shadow: none;
  transform: translateY(-1px);
}

.new-user-actions #wizardBackBtn[disabled]::part(base) {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #94a3b8;
  box-shadow: none;
}

@media (max-width: 700px) {
  .new-user-card {
    width: 92vw;
    margin: 20px auto;
  }
  .new-user-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px 10px;
  }
  .new-user-stepper {
    padding: 14px 24px 12px;
    gap: 34px;
  }
  .new-user-stepper::before {
    left: 28px;
    right: 28px;
  }
  .new-user-body {
    padding: 0 24px 24px;
  }
  .new-user-actions {
    padding: 0 24px 28px;
    width: 100%;
  }
  .new-user-actions .wizardBtn {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .new-user-stepper {
    flex-direction: column;
    gap: 18px;
  }
  .new-user-stepper::before {
    display: none;
  }
  .form-row--two > sl-input,
  .form-row--two > sl-select,
  .form-row--three > sl-input,
  .form-row--three > sl-select {
    min-width: 160px;
  }
  .new-user-body {
    gap: 20px;
  }
}


.stripe-panel__status{
  margin-top:10px;
}

.stripe-panel__copy{
  
}

#tasksTemplateButton{
  display: none;
}

sl-button.market-create-btn::part(base) {
  box-shadow: none !important;
}

.new-user-card.is-subscription-step .new-user-header,
.new-user-card.is-subscription-step .new-user-stepper,
.new-user-card.is-subscription-step .new-user-actions {
  display: none;
}

.new-user-card.is-subscription-step .new-user-body {
  padding-top: 24px;
}

.subscription-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.subscription-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.subscription-brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscription-brand__logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.subscription-brand__name {
  font-size: 1.05rem;
}

.subscription-card {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 24px 28px;
}

.subscription-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscription-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.subscription-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: #1f2937;
}

.subscription-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #0b3b82;
}

.subscription-term {
  font-size: 1rem;
  font-weight: 600;
}

.subscription-trial {
  font-size: 0.95rem;
  color: #334155;
  margin-left: 10px;
}

.subscription-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.subscription-features {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscription-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #334155;
}

.subscription-feature i {
  color: #0f766e;
  font-size: 1rem;
  margin-top: 2px;
}

.subscription-divider {
  width: 1px;
  align-self: stretch;
  background: #e5e7eb;
}

.subscription-promo {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscription-promo-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.subscription-promo sl-input::part(base) {
  border-radius: 12px;
}

.subscription-note {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.subscription-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 18px;
}

.subscription-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: #64748b;
}

.subscription-footer-label strong {
  color: #0f172a;
}

.subscription-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.subscription-footer-right sl-button::part(base) {
  height: 42px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
}

.subscription-footer-right .stripe-panel__status {
  text-align: right;
}

@media (max-width: 700px) {
  .subscription-card {
    padding: 20px;
  }
  .subscription-body {
    flex-direction: column;
    gap: 16px;
  }
  .subscription-divider {
    width: 100%;
    height: 1px;
  }
  .subscription-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .subscription-footer-right {
    align-items: flex-start;
  }
  .subscription-footer-right .stripe-panel__status {
    text-align: left;
  }
}

.billing-block-card {
  width: min(560px, 92vw);
  margin: 40px auto;
  padding: 28px 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.billing-block-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.billing-block-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.billing-block-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
}

.billing-block-subtitle {
  font-size: 0.9rem;
  color: #64748b;
}

.billing-block-status {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.billing-block-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
}

.billing-block-message {
  font-size: 0.9rem;
  color: #334155;
}

.billing-block-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-block-actions sl-button::part(base) {
  border-radius: 12px;
  height: 42px;
  padding: 0 20px;
}
.bi-check2{
  color:green;
  font-weight: bolder;
  margin-right: 5px;
}

.stripe-panel--connect {
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.stripe-panel--connect .stripe-panel__content {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.stripe-panel__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 28px;
  align-items: center;
  margin-top: 12px;
}

.stripe-panel__main {
  min-width: 0;
}

.stripe-panel__features {
  list-style: none;
}

.stripe-panel__media {
  width: auto;
  min-width: 0;
  justify-content: center;
}

.stripe-panel__media img {
  width: min(100%, 240px);
  height: auto;
  object-fit: contain;
}

.stripe-panel__intro,
.stripe-panel__note {
  font-size: 0.95rem;
  line-height: 1.45;
}

.stripe-panel__actions sl-button {
  width: min(100%, 220px);
}

.stripe-panel__actions sl-button::part(base) {
  width: 100%;
}

#wizardSkipStripe::part(base) {
  background: #1d4ed8;
  border: none;
}

@media (max-width: 760px) {
  .stripe-panel__layout {
    grid-template-columns: 1fr;
  }

  .stripe-panel__media {
    order: -1;
  }
}
