:root {
  --bg: #0b1420;           /* Navy profundo */
  --hover: #262f43;       /* hover bg */
  --card: #0f1c2a;         /* Navy um tom acima */
  --text: #e6eef7;         /* Texto claro */
  --muted: #F9FAFB;        /* Texto suave */
  --brand: #f2c94c;        /* Dourado premium */
  --brand-2: #F9FAFB;      /* Acento frio */
  --stroke: rgba(255,255,255,.08);
  --bgcuston: #F9FAFB;  /* fundo branco gelo */
}

  html, body {
        min-height: 100%;
        background: radial-gradient(1200px 800px at 70% -10%, rgba(76,201,240,.08), transparent 45%), var(--bgcuston); 
        font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; 
    }

.brand-badge { 
    display:inline-flex; 
    align-items:center; 
    justify-content: center;
    font-weight:700; 
    font-size: 1.50rem;
    letter-spacing:.4px; 
}

.brand-logo {
    display: block;
    height: auto;
}
.brand-logo-dynamic,
.brand-logo-full {
    max-width: 100%;
    object-fit: contain;
}
.brand-logo-sidebar {
    display: block;
    height: auto;
    object-fit: contain;
}
.brand-logo-sidebar-full {
    width: 168px;
    max-width: 168px;
}
.brand-logo-sidebar-icon {
    width: 36px;
    max-width: 36px;
    display: none;
}
.brand-logo-dynamic {
    width: 168px;
    min-width: 0;
    transition: width 0.2s ease;
}
a.text-success:hover {
  color: #006D60 !important;
}
#voltarLogin {
    border: 1px solid #006D60;
    color: #006D60;
    transition: background-color 0.2s, color 0.2s;
  }
  
  #voltarLogin:hover {
    background-color: #006D60;
    color: #fff;
  }

  .form-check-input:checked {
    background-color: #62B55A;
    border-color: #62B55A;
  }

  .layout-wrapper {
    display: flex;
    min-height: 100vh;
  }
  .bg-sidebar {
    background-color: var(--bg);
    min-height: 100vh;
    width: 250px;
    max-width: 250px;
    flex: 0 0 250px;
    flex-shrink: 0;
    transition: width 0.2s ease, max-width 0.2s ease, flex-basis 0.2s ease, padding 0.2s ease;
  }
  .layout-wrapper > .flex-grow-1 {
    min-width: 0;
  }
  .sidebar-desktop {
    overflow-x: hidden;
  }
  .sidebar-heading img {
    max-width: 180px;
  }
  .sidebar-heading .brand-badge {
    justify-content: center;
    width: 100%;
    white-space: nowrap;
  }
  .sidebar-heading .brand-badge-sidebar {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  body.sidebar-collapsed .brand-logo-sidebar-full {
    display: none;
  }
  body.sidebar-collapsed .brand-logo-sidebar-icon {
    display: block;
  }
  .list-group {
    gap: 0.35rem;
  }
  .sidebar-menu-shell {
    display: flex;
    flex-direction: column;
  }
  .sidebar-desktop .sidebar-menu-shell {
    min-height: calc(100vh - 112px);
  }
  .list-group-item {
    background-color: var(--bg);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem !important;
    transition: background-color 0.3s ease, color 0.3s ease, padding 0.2s ease;
  }
  .list-group-item:hover {
    color: #fff;
    background-color: var(--hover);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .list-group-item.active {
    background-color: var(--hover);
    color: #fff;
  }
  .menu-icon {
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.5rem;
  }
  .menu-label {
    white-space: normal;
    line-height: 1.25;
    overflow-wrap: anywhere;
    transition: opacity 0.2s ease, width 0.2s ease;
  }
  body.sidebar-collapsed .bg-sidebar.sidebar-desktop {
    width: 84px;
    max-width: 84px;
    flex-basis: 84px;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  body.sidebar-collapsed .sidebar-desktop .sidebar-heading {
    margin-bottom: 1rem !important;
  }
  body.sidebar-collapsed .sidebar-desktop .brand-badge {
    justify-content: center;
  }
  body.sidebar-collapsed .sidebar-desktop .menu-label {
    opacity: 0;
    width: 0;
    max-width: 0;
    display: none;
    overflow: hidden;
    pointer-events: none;
  }
  body.sidebar-collapsed .sidebar-desktop .brand-logo-dynamic {
    width: 36px;
  }
  body.sidebar-collapsed .sidebar-desktop .list-group-item {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 0;
  }
  .sidebar-version-footer {
    margin-top: auto;
    padding: 1rem 0.75rem 0.25rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    line-height: 1.25;
  }
  .sidebar-version-label {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .sidebar-version-value {
    display: block;
    margin-top: 0.18rem;
    overflow-wrap: anywhere;
  }
  body.sidebar-collapsed .sidebar-desktop .sidebar-version-footer {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }
  body.sidebar-collapsed .sidebar-desktop .sidebar-version-label {
    display: none;
  }
  body.sidebar-collapsed .sidebar-desktop .sidebar-version-value {
    font-size: 0.62rem;
  }
  .tooltip.sidebar-tooltip {
    --bs-tooltip-bg: #ffffff;
    --bs-tooltip-color: #0b1420;
    --bs-tooltip-opacity: 1;
  }
  .tooltip.sidebar-tooltip .tooltip-inner {
    background: #ffffff;
    color: #0b1420;
    border: 1px solid rgba(11, 20, 32, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 12px 28px rgba(11, 20, 32, 0.16);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 0.8rem;
    text-align: left;
  }
  .tooltip.sidebar-tooltip.bs-tooltip-end {
    margin-left: 0.35rem;
  }
  .tooltip.sidebar-tooltip.bs-tooltip-end .tooltip-arrow {
    left: -0.4rem;
    width: 1rem;
  }
  .tooltip.sidebar-tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #ffffff;
    filter: drop-shadow(-1px 0 0 rgba(11, 20, 32, 0.12));
  }

  .hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  .table-header-custom {
    background-color: #E9F7F2;
    color: #0b1420;
  }

/* Botão Adicionar Novo com cor da sidebar */
.btn-menu {
    background-color: #007965;
    color: #fff;
    border: none;
  }
  .btn-menu:hover {
    background-color: #006653;
    color: #fff;
  }
  
  .content-box {
      background-color: #fff;
      border-radius: 0.75rem;
      padding: 2rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    .table {
      border-radius: 0.5rem;
      overflow: hidden;
    }
    .dataTables_wrapper .dataTables_filter input {
      border-radius: 0.5rem;
    }
    .btn-warning {
      background-color: #ffc107;
      border: none;
    }
    .btn-danger {
      background-color: #dc3545;
      border: none;
    }

 /* Estilização da paginação do DataTables */

  .active>.page-link, .page-link.active {
    background-color: var(--bg) !important; /
  }
  
  .active>.page-link, .page-link.active:hover {
    background-color: var(--hover) !important; 
  }

 
  .content-box {
      background-color: #fff;
      border-radius: 1rem;
      padding: 2rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }
    .table {
      border-radius: 0.5rem;
      overflow: hidden;
    }
    .dataTables_wrapper .dataTables_filter input {
      border-radius: 0.5rem;
    }
    .btn-warning {
      background-color: #ffc107;
      border: none;
    }
    .btn-danger {
      background-color: #dc3545;
      border: none;
    }

    .table-responsive{
        margin-top: 30px !important;
    }

    .list-page-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .simulation-search-form {
      max-width: 720px;
    }

    .simulation-search-form__controls {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .simulation-search-form__controls .form-control {
      flex: 1 1 320px;
      min-width: 0;
    }

    @media (min-width: 992px) {
      .rentabilidade-page-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 1.5rem;
        align-items: start;
      }

      .rentabilidade-page-layout__main {
        min-width: 0;
      }

      .rentabilidade-page-layout__summary {
        min-width: 340px;
        align-self: start;
        position: sticky;
        top: 1rem;
        height: calc(100vh - 2rem);
      }

      .rentabilidade-summary-card {
        height: 100%;
      }

      .rentabilidade-summary-card__body {
        max-height: 100%;
      }
    }

    .sim-list-table {
      width: 100% !important;
    }

    .sim-list-table th,
    .sim-list-table td {
      vertical-align: middle;
      white-space: nowrap;
      word-break: normal;
      overflow-wrap: normal;
    }

    .sim-list-table .cell-actions,
    .sim-list-table .cell-actions-header {
      white-space: nowrap;
      width: 1%;
    }

    .sim-list-table .cell-simulation-number {
      white-space: nowrap;
      width: 1%;
    }

    .sim-list-table .cell-actions-group {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 0.35rem;
      white-space: nowrap;
    }

    .sim-list-table .cell-analysis {
      min-width: 150px;
    }

    .sim-list-table .cell-city {
      min-width: 150px;
    }

    .sim-list-table .cell-cpf,
    .sim-list-table .cell-city {
      white-space: nowrap;
    }

    .simulation-mobile-list {
      display: grid;
      gap: 0.9rem;
    }

    .simulation-mobile-card {
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(11, 109, 96, 0.14);
      border-radius: 1rem;
      background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
      box-shadow:
        0 16px 34px rgba(15, 28, 42, 0.12),
        0 4px 14px rgba(11, 109, 96, 0.08);
      padding: 1rem;
      transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }

    .simulation-mobile-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #0f8a75 0%, #24b8e8 100%);
    }

    .simulation-mobile-card:hover,
    .simulation-mobile-card:focus-within {
      border-color: rgba(11, 109, 96, 0.24);
      box-shadow:
        0 22px 42px rgba(15, 28, 42, 0.16),
        0 8px 18px rgba(11, 109, 96, 0.12);
      transform: translateY(-2px);
    }

    .simulation-mobile-card__head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.75rem;
      margin-bottom: 0.9rem;
    }

    .simulation-mobile-card__meta-wrap {
      display: flex;
      align-items: flex-start;
      min-height: 2.4rem;
      padding-top: 0.15rem;
    }

    .simulation-mobile-card__title {
      font-size: 1.05rem;
      line-height: 1.2;
      margin: 0 0 0.2rem;
      font-weight: 700;
      color: #1f2d3d;
    }

    .simulation-mobile-card__meta {
      margin: 0;
      color: #71808f;
      font-size: 0.82rem;
      line-height: 1.2;
    }

    .simulation-mobile-card__meta-separator {
      padding: 0 0.2rem;
    }

    .simulation-mobile-card__actions {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      flex-shrink: 0;
    }

    .simulation-mobile-card__grid {
      display: grid;
      gap: 0.75rem;
    }

    .simulation-mobile-card__item {
      display: grid;
      gap: 0.2rem;
    }

    .simulation-mobile-card__label {
      font-size: 0.76rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: #71808f;
    }

    .simulation-mobile-card__value {
      color: #1f2d3d;
      font-weight: 600;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    @media (max-width: 767.98px) {
      .content-box {
        padding: 1.25rem;
      }

      .simulation-search-form__controls {
        flex-direction: column;
        align-items: stretch;
      }

      .simulation-search-form__controls .form-control {
        flex: initial;
      }

      .simulation-search-form__controls > .form-control,
      .simulation-search-form__controls > .btn {
        width: 100%;
        border-radius: 0.75rem;
      }

      .list-page-toolbar {
        align-items: flex-start;
      }

      .list-page-toolbar .btn {
        width: 100%;
        justify-content: center;
      }

      .dataTables_wrapper .dataTables_length,
      .dataTables_wrapper .dataTables_filter {
        float: none !important;
        text-align: left !important;
        width: 100%;
        margin-bottom: 0.75rem;
      }

      .dataTables_wrapper .dataTables_length label,
      .dataTables_wrapper .dataTables_filter label {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
      }

      .dataTables_wrapper .dataTables_length select,
      .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
      }

      .sim-list-table {
        font-size: 0.92rem;
      }

      .sim-list-table th,
      .sim-list-table td {
        padding: 0.6rem 0.5rem;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
      }

      .sim-list-table .hide-mobile {
        display: none;
      }

      .sim-list-table .cell-city,
      .sim-list-table .cell-cpf {
        min-width: 0;
      }
    }

    .category-block {
        border: 1px solid #ccc;
        padding: 10px;
    }

 .preview-img {
      width: 100%;
      height: auto;
      max-height: 165px;
      object-fit: contain;
      border: 1px solid #ddd;
      border-radius: 0.5rem;
      margin-top: 0.5rem;
    }
    .gallery-preview img {
      width: 120px;
      height: 120px;
      object-fit: cover;
      margin: 0.5rem;
      border-radius: 8px;
    }

    .schedule-section {
      border: 1px solid #dee2e6;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1.5rem;
      background: #f8f9fa;
    }
    .day-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1rem;
    }
    .day-block {
      background: #fff;
      border: 1px solid #dee2e6;
      border-radius: 8px;
      padding: 1rem;
    }
    .day-block.disabled {
      background-color: #e9ecef;
      pointer-events: none;
    }

   
   /*ajusta o select 2 para manter o layout padrao */
    .select2-container--bootstrap-5 .select2-selection {
      padding-top: 0.375rem;
      padding-bottom: 0.375rem;
      height: auto !important;
      min-height: 38px;
    }
    

    /* Limita altura e permite rolagem no dropdown */
    .select2-container--bootstrap-5 .select2-results__options {
      max-height: 220px;
      overflow-y: auto;
    }

    /* Destaca a opção selecionada no menu */
    .select2-container--bootstrap-5 .select2-results__option--selected {
      background-color: #e6f4ea !important; /* verde claro sutil */
      color: #000;
    }

    /* Ao passar o mouse, mantém o highlight visual */
    .select2-container--bootstrap-5 .select2-results__option--highlighted {
      background-color: #d0f0db !important;
      color: #000;
    }

.border-end-green {
  border-left: 5px solid #0b1420; /* Ajuste a cor conforme o verde usado no menu */
}

.dashboard-card {
  min-width: 265px;
  border-radius: 0.5rem;
  
}

#preview-container .image-thumb {
    position: relative;
    width: 120px;
    height: 120px;
}
#preview-container .image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
#preview-container .image-thumb button {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    border: none;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
}

@media (min-width: 768px) {
  #categorias-container > .col-md-6:nth-child(2n + 1) {
    clear: both;
  }
}

  @media (max-width: 991.98px) {
    .sidebar-desktop {
      display: none;
    }
  }

  @media (min-width: 1200px) {
  .dashboard-card-wrapper {
    width: 20%;
    flex: 0 0 20%;
  }
}

.dashboard-card-wrapper {
  min-width: 200px;
}

.js-validate-error-label {
    display: block !important;    /* Garante que fique em bloco */
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-left: 0;               /* Remove alinhamento lateral */
}

.js-validate-error-field {
    border-color: #dc3545 !important;
}



.upload-box {
  background: #f8f9fa;  
  border-radius: 8px;
  padding: 1rem;
  height: 70px; /* Altura reduzida */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.3s;
  border: 1px solid #dee2e6; /* Substitui pontilhado */
}

.upload-box.dragover {
  background-color: #e0f3ff;
  border-color: #3399ff;
}

.upload-message {
  font-size: 16px;
  color: #444;
}

.upload-message a {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}

.image-thumb {
  width: 120px;
  height: 120px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f0f0f0;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-weight: bold;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
}

/* Theme system */
:root {
  --app-bg: #f9fafb;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafc;
  --app-text: #111827;
  --app-muted-text: #64748b;
  --app-heading: #0f172a;
  --app-border: #dee2e6;
  --app-input-bg: #ffffff;
  --app-input-text: #111827;
  --app-input-border: #ced4da;
  --app-shadow: rgba(15, 28, 42, 0.08);
}

body[data-theme="dark"] {
  --app-bg: #0f172a;
  --app-surface: #111827;
  --app-surface-soft: #172033;
  --app-text: #e5e7eb;
  --app-muted-text: #9ca3af;
  --app-heading: #f8fafc;
  --app-border: #334155;
  --app-input-bg: #0b1220;
  --app-input-text: #f8fafc;
  --app-input-border: #475569;
  --app-shadow: rgba(0, 0, 0, 0.32);
  background: var(--app-bg) !important;
  color: var(--app-text);
  color-scheme: dark;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #d8e1ec;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus {
  border-color: #0f8a75;
  color: #0b6d60;
  box-shadow: 0 8px 20px rgba(15, 138, 117, 0.12);
}

.theme-toggle-btn:disabled {
  opacity: 0.7;
}

.app-topbar-actions {
  min-width: 0;
}

.app-topbar-user {
  min-width: 0;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .navbar {
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
  }

  .navbar .btn-outline-success[data-bs-toggle="offcanvas"] {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    flex: 0 0 2.5rem;
  }

  .app-topbar-actions {
    gap: 0.5rem !important;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-topbar-user {
    display: none;
  }

  .theme-toggle-btn {
    min-height: 2.25rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    flex: 0 0 auto;
  }

  .theme-toggle-btn span {
    max-width: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .app-topbar-user {
    display: none;
  }

  .theme-toggle-btn span {
    display: none;
  }

  .theme-toggle-btn {
    width: 2.5rem;
    padding: 0;
    border-radius: 999px;
  }
}

body[data-theme="dark"] .theme-toggle-btn {
  background: #172033;
  border-color: #334155;
  color: #f8fafc;
}

body[data-theme="dark"] .theme-toggle-btn:hover,
body[data-theme="dark"] .theme-toggle-btn:focus {
  border-color: #22c55e;
  color: #d1fae5;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.12);
}

body[data-theme="dark"] .layout-wrapper,
body[data-theme="dark"] .container-fluid {
  background: var(--app-bg) !important;
  color: var(--app-text);
}

body[data-theme="dark"] .navbar,
body[data-theme="dark"] .bg-white,
body[data-theme="dark"] .content-box,
body[data-theme="dark"] .card,
body[data-theme="dark"] .modal-content,
body[data-theme="dark"] .offcanvas,
body[data-theme="dark"] .dropdown-menu,
body[data-theme="dark"] .day-block,
body[data-theme="dark"] .upload-box,
body[data-theme="dark"] .simulation-mobile-card {
  background: var(--app-surface) !important;
  color: var(--app-text);
  border-color: var(--app-border) !important;
  box-shadow: 0 16px 34px var(--app-shadow);
}

body[data-theme="dark"] .bg-light,
body[data-theme="dark"] .table-light,
body[data-theme="dark"] .alert-light,
body[data-theme="dark"] .schedule-section,
body[data-theme="dark"] .day-block.disabled,
body[data-theme="dark"] .list-group-item-light,
body[data-theme="dark"] .form-text,
body[data-theme="dark"] .accordion-item,
body[data-theme="dark"] .mobile-accordion-toggle,
body[data-theme="dark"] .mobile-accordion-content {
  background-color: var(--app-surface-soft) !important;
  color: var(--app-text) !important;
  border-color: var(--app-border) !important;
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] h5,
body[data-theme="dark"] h6,
body[data-theme="dark"] .fw-bold,
body[data-theme="dark"] .fw-semibold,
body[data-theme="dark"] .simulation-mobile-card__title,
body[data-theme="dark"] .simulation-mobile-card__value {
  color: var(--app-heading);
}

body[data-theme="dark"] .text-muted,
body[data-theme="dark"] .simulation-mobile-card__meta,
body[data-theme="dark"] .simulation-mobile-card__label,
body[data-theme="dark"] .dataTables_info,
body[data-theme="dark"] .dataTables_length,
body[data-theme="dark"] .dataTables_filter,
body[data-theme="dark"] .form-label {
  color: var(--app-muted-text) !important;
}

body[data-theme="dark"] .text-dark,
body[data-theme="dark"] .table,
body[data-theme="dark"] .table th,
body[data-theme="dark"] .table td,
body[data-theme="dark"] .dropdown-item,
body[data-theme="dark"] .modal-title,
body[data-theme="dark"] .upload-message {
  color: var(--app-text) !important;
}

body[data-theme="dark"] .border,
body[data-theme="dark"] .border-top,
body[data-theme="dark"] .border-bottom,
body[data-theme="dark"] .border-start,
body[data-theme="dark"] .border-end,
body[data-theme="dark"] .card,
body[data-theme="dark"] .table,
body[data-theme="dark"] .modal-header,
body[data-theme="dark"] .modal-footer {
  border-color: var(--app-border) !important;
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] .input-group-text,
body[data-theme="dark"] .dataTables_wrapper .dataTables_filter input,
body[data-theme="dark"] .dataTables_wrapper .dataTables_length select {
  background-color: var(--app-input-bg) !important;
  color: var(--app-input-text) !important;
  border-color: var(--app-input-border) !important;
}

body[data-theme="dark"] .form-control::placeholder {
  color: #64748b;
}

body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.18);
}

body[data-theme="dark"] .table > :not(caption) > * > * {
  background-color: transparent;
  border-bottom-color: var(--app-border);
  color: var(--app-text);
}

body[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(148, 163, 184, 0.08);
  color: var(--app-text);
}

body[data-theme="dark"] .table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: rgba(56, 189, 248, 0.1);
  color: var(--app-text);
}

body[data-theme="dark"] .table-header-custom,
body[data-theme="dark"] thead,
body[data-theme="dark"] .card-header,
body[data-theme="dark"] .modal-header {
  background-color: #172033 !important;
  color: var(--app-heading) !important;
}

body[data-theme="dark"] .page-link {
  background-color: var(--app-surface);
  border-color: var(--app-border);
  color: #bae6fd;
}

body[data-theme="dark"] .page-link:hover {
  background-color: var(--app-surface-soft);
  color: #e0f2fe;
}

body[data-theme="dark"] .btn-outline-dark {
  color: #f8fafc;
  border-color: #64748b;
}

body[data-theme="dark"] .btn-outline-dark:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

body[data-theme="dark"] .btn-outline-secondary {
  color: #cbd5e1;
  border-color: #64748b;
}

body[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

body[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection,
body[data-theme="dark"] .select2-dropdown {
  background-color: var(--app-input-bg) !important;
  color: var(--app-input-text) !important;
  border-color: var(--app-input-border) !important;
}

body[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__rendered,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-search__field,
body[data-theme="dark"] .select2-results__option {
  color: var(--app-input-text) !important;
}

body[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--selected,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted {
  background-color: #0f766e !important;
  color: #ffffff !important;
}

body[data-theme="dark"] .top-plan-chip,
body[data-theme="dark"] .top-help-chip {
  background: var(--app-surface-soft);
  color: var(--app-text);
  border-color: var(--app-border);
}

body[data-theme="dark"] .alert-warning {
  background-color: #3b2f12;
  border-color: #8a6d1d;
  color: #fde68a;
}

body[data-theme="dark"] .alert-info {
  background-color: #082f49;
  border-color: #0369a1;
  color: #bae6fd;
}

body[data-theme="dark"] .alert-success {
  background-color: #052e16;
  border-color: #15803d;
  color: #bbf7d0;
}

body[data-theme="dark"] .alert-danger {
  background-color: #450a0a;
  border-color: #b91c1c;
  color: #fecaca;
}

body[data-theme="dark"] .dashboard-hero-heading,
body[data-theme="dark"] .dashboard-kpi-value,
body[data-theme="dark"] .dashboard-panel-title,
body[data-theme="dark"] .dashboard-trend-label,
body[data-theme="dark"] .dashboard-list-name,
body[data-theme="dark"] .dashboard-stat-pill strong {
  color: var(--app-heading) !important;
}

body[data-theme="dark"] .dashboard-filter-label,
body[data-theme="dark"] .dashboard-kpi-label,
body[data-theme="dark"] .dashboard-kpi-meta,
body[data-theme="dark"] .dashboard-kpi-suffix,
body[data-theme="dark"] .dashboard-panel-subtitle,
body[data-theme="dark"] .dashboard-list-meta,
body[data-theme="dark"] .dashboard-list-total small,
body[data-theme="dark"] .dashboard-legend-item {
  color: var(--app-muted-text) !important;
}

body[data-theme="dark"] .dashboard-kpi-card,
body[data-theme="dark"] .dashboard-kpi-card--plan-usage,
body[data-theme="dark"] .dashboard-panel,
body[data-theme="dark"] .dashboard-trend-row,
body[data-theme="dark"] .dashboard-list-item,
body[data-theme="dark"] .dashboard-card {
  background: linear-gradient(180deg, #111827 0%, #172033 100%) !important;
  border-color: var(--app-border) !important;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    0 4px 14px rgba(14, 165, 233, 0.08) !important;
}

body[data-theme="dark"] .dashboard-stat-pill,
body[data-theme="dark"] .dashboard-trend-total,
body[data-theme="dark"] .dashboard-list-total,
body[data-theme="dark"] .dashboard-empty,
body[data-theme="dark"] .dashboard-usage-plan-badge,
body[data-theme="dark"] .dashboard-usage-plan-badge--black,
body[data-theme="dark"] .dashboard-usage-plan-badge--bronze,
body[data-theme="dark"] .dashboard-usage-plan-badge--silver,
body[data-theme="dark"] .dashboard-usage-plan-badge--gold,
body[data-theme="dark"] .dashboard-usage-plan-badge--default {
  background: #0b1220 !important;
  border-color: var(--app-border) !important;
  color: #bae6fd !important;
}

body[data-theme="dark"] .dashboard-trend-track,
body[data-theme="dark"] .dashboard-list-progress,
body[data-theme="dark"] .dashboard-usage-track {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.12) 0,
      rgba(148, 163, 184, 0.12) 12.5%,
      rgba(148, 163, 184, 0.2) 12.5%,
      rgba(148, 163, 184, 0.2) 12.9%
    ),
    #0b1220 !important;
}

body[data-theme="dark"] .sim-step-node,
body[data-theme="dark"] .sim-step-head,
body[data-theme="dark"] .sim-step-title,
body[data-theme="dark"] .sim-step-arrow {
  color: var(--app-muted-text) !important;
}

body[data-theme="dark"] .sim-step-dot {
  background: #0b1220 !important;
  border-color: #475569 !important;
  color: #cbd5e1 !important;
}

body[data-theme="dark"] .sim-step-node.is-active .sim-step-dot,
body[data-theme="dark"] .sim-step-node[aria-current="step"] .sim-step-dot {
  background: linear-gradient(135deg, #0f8a75 0%, #24b8e8 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body[data-theme="dark"] .sim-step-node.is-active .sim-step-title,
body[data-theme="dark"] .sim-step-node[aria-current="step"] .sim-step-title {
  color: var(--app-heading) !important;
}

body[data-theme="dark"] .sim-step-pane-heading,
body[data-theme="dark"] .additional-buyer-card,
body[data-theme="dark"] .mobile-accordion-item {
  background: transparent !important;
  color: var(--app-text) !important;
  border-color: var(--app-border) !important;
}

body[data-theme="dark"] .step-pane .bg-white,
body[data-theme="dark"] .step-pane .bg-light,
body[data-theme="dark"] .step-pane .bg-success-subtle,
body[data-theme="dark"] .step-pane .bg-primary-subtle,
body[data-theme="dark"] .step-pane .bg-warning-subtle,
body[data-theme="dark"] .step-pane .bg-info-subtle {
  background-color: var(--app-surface-soft) !important;
  color: var(--app-text) !important;
}

body[data-theme="dark"] .fs-compare-shell,
body[data-theme="dark"] .fs-compare-shell .card-header,
body[data-theme="dark"] .fs-compare-shell .card-body,
body[data-theme="dark"] .fs-param-details,
body[data-theme="dark"] .fs-param-toggle,
body[data-theme="dark"] .fs-param-panel {
  background: var(--app-surface) !important;
  color: var(--app-text) !important;
  border-color: var(--app-border) !important;
}

body[data-theme="dark"] .fs-param-toggle {
  background: #0b1220 !important;
  color: #d1fae5 !important;
}

body[data-theme="dark"] .fs-param-panel {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

body[data-theme="dark"] .fs-param-note {
  border-color: var(--app-border);
  color: var(--app-muted-text);
}

body[data-theme="dark"] .fs-param-note a {
  color: #7dd3fc;
}

body[data-theme="dark"] .fs-param-help,
body[data-theme="dark"] .fs-compare-help {
  color: #93c5fd;
  border-color: #475569;
}

body[data-theme="dark"] .fs-compare-table,
body[data-theme="dark"] .fs-compare-table thead th,
body[data-theme="dark"] .fs-compare-table thead th:first-child,
body[data-theme="dark"] .fs-compare-table tbody th,
body[data-theme="dark"] .fs-compare-table tbody td {
  background: var(--app-surface) !important;
  border-color: var(--app-border) !important;
  color: var(--app-text) !important;
}

body[data-theme="dark"] .fs-compare-table tbody th {
  color: var(--app-muted-text) !important;
  box-shadow: 10px 0 12px -12px rgba(0, 0, 0, 0.8);
}

body[data-theme="dark"] .fs-compare-table tbody td {
  color: var(--app-heading) !important;
}

body[data-theme="dark"] .fs-compare-table .table-light,
body[data-theme="dark"] .fs-compare-table .table-light th,
body[data-theme="dark"] .fs-compare-table .table-light td,
body[data-theme="dark"] [data-fs-compare="table-body"] .table-light,
body[data-theme="dark"] [data-fs-compare="table-body"] .table-light th,
body[data-theme="dark"] [data-fs-compare="table-body"] .table-light td {
  --bs-table-bg: #172033;
  --bs-table-accent-bg: #172033;
  background-color: #172033 !important;
  color: var(--app-heading) !important;
}

body[data-theme="dark"] .fs-compare-table-wrap::-webkit-scrollbar-track {
  background: #0b1220;
}

body[data-theme="dark"] .fs-compare-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.45);
}

.enquadramento-rules-alert {
  background: #fff8d1;
  border-color: #ffe8a1;
  color: #5f4500;
}

.enquadramento-rules-body {
  background-color: #fbf7d3;
  color: #64748b;
}

body[data-theme="dark"] .enquadramento-rules-alert,
body[data-theme="dark"] .enquadramento-rules-card,
body[data-theme="dark"] .enquadramento-rules-body,
body[data-theme="dark"] .bg-light-subtle {
  background: var(--app-surface-soft) !important;
  border-color: var(--app-border) !important;
  color: var(--app-text) !important;
}

body[data-theme="dark"] .enquadramento-rules-body .fw-semibold,
body[data-theme="dark"] .enquadramento-rules-body .text-dark,
body[data-theme="dark"] .bg-light-subtle .fw-semibold {
  color: var(--app-heading) !important;
}

body[data-theme="dark"] .enquadramento-rules-alert .small,
body[data-theme="dark"] .enquadramento-rules-body .text-muted,
body[data-theme="dark"] .bg-light-subtle .text-muted {
  color: var(--app-muted-text) !important;
}

body[data-theme="dark"] .text-success-emphasis {
  color: #d1fae5 !important;
}

body[data-theme="dark"] .bg-success-subtle {
  background-color: #052e2b !important;
  border-color: #0f766e !important;
  color: #d1fae5 !important;
}

body[data-theme="dark"] #rentBaseFilter,
body[data-theme="dark"] #futureSaleBaseFilter {
  background-color: #0b1220 !important;
  border-color: #0f766e !important;
  color: var(--app-heading) !important;
}

/* Modern dark refresh */
body[data-theme="dark"] {
  --app-bg: #0b1220;
  --app-surface: #101827;
  --app-surface-soft: #172235;
  --app-surface-raised: #1b2940;
  --app-text: #dbe7f3;
  --app-muted-text: #94a3b8;
  --app-heading: #f8fafc;
  --app-border: rgba(148, 163, 184, 0.22);
  --app-input-bg: #0d1524;
  --app-input-text: #f8fafc;
  --app-input-border: rgba(148, 163, 184, 0.3);
  --app-accent: #2dd4bf;
  --app-accent-strong: #22d3ee;
  --app-shadow: rgba(0, 0, 0, 0.34);
  background:
    linear-gradient(180deg, #0e1728 0%, #0b1220 55%, #0a1020 100%) !important;
}

body[data-theme="dark"] .layout-wrapper,
body[data-theme="dark"] .container-fluid {
  background:
    linear-gradient(180deg, #0e1728 0%, #0b1220 55%, #0a1020 100%) !important;
}

body[data-theme="dark"] .container-fluid {
  min-height: calc(100vh - 56px);
}

@media (max-width: 767.98px) {
  html:has(body[data-theme="dark"]) {
    background: #0b1220 !important;
  }

  body[data-theme="dark"] {
    background: #0b1220 !important;
  }
}

body[data-theme="dark"] .navbar {
  background: rgba(16, 24, 39, 0.92) !important;
  border-bottom: 1px solid var(--app-border) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24) !important;
}

body[data-theme="dark"] .card,
body[data-theme="dark"] .content-box,
body[data-theme="dark"] .modal-content,
body[data-theme="dark"] .offcanvas,
body[data-theme="dark"] .dropdown-menu,
body[data-theme="dark"] .simulation-mobile-card {
  background:
    linear-gradient(180deg, rgba(23, 34, 53, 0.94) 0%, rgba(16, 24, 39, 0.98) 100%) !important;
  border-color: var(--app-border) !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

body[data-theme="dark"] .card-header,
body[data-theme="dark"] .modal-header,
body[data-theme="dark"] .table-header-custom,
body[data-theme="dark"] thead {
  background:
    linear-gradient(180deg, rgba(27, 41, 64, 0.96) 0%, rgba(23, 34, 53, 0.96) 100%) !important;
  border-color: var(--app-border) !important;
}

body[data-theme="dark"] .bg-light,
body[data-theme="dark"] .bg-light-subtle,
body[data-theme="dark"] .alert-light,
body[data-theme="dark"] .accordion-item,
body[data-theme="dark"] .mobile-accordion-toggle,
body[data-theme="dark"] .mobile-accordion-content,
body[data-theme="dark"] .schedule-section,
body[data-theme="dark"] .day-block.disabled,
body[data-theme="dark"] .list-group-item-light {
  background: rgba(23, 34, 53, 0.9) !important;
  border-color: var(--app-border) !important;
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select,
body[data-theme="dark"] .input-group-text,
body[data-theme="dark"] .dataTables_wrapper .dataTables_filter input,
body[data-theme="dark"] .dataTables_wrapper .dataTables_length select {
  background: linear-gradient(180deg, #0f1726 0%, #0b1220 100%) !important;
  border-color: var(--app-input-border) !important;
  color: var(--app-input-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body[data-theme="dark"] .form-control:hover,
body[data-theme="dark"] .form-select:hover,
body[data-theme="dark"] .input-group:hover .input-group-text {
  border-color: rgba(45, 212, 191, 0.42) !important;
}

body[data-theme="dark"] .form-control:focus,
body[data-theme="dark"] .form-select:focus {
  border-color: var(--app-accent) !important;
  box-shadow:
    0 0 0 0.18rem rgba(45, 212, 191, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body[data-theme="dark"] .btn-outline-primary,
body[data-theme="dark"] .btn-outline-secondary,
body[data-theme="dark"] .btn-outline-dark {
  background: rgba(15, 23, 38, 0.56);
  border-color: rgba(148, 163, 184, 0.34);
  color: #dbeafe;
}

body[data-theme="dark"] .btn-outline-primary:hover,
body[data-theme="dark"] .btn-outline-secondary:hover,
body[data-theme="dark"] .btn-outline-dark:hover {
  background: rgba(45, 212, 191, 0.13);
  border-color: rgba(45, 212, 191, 0.62);
  color: #ecfeff;
  box-shadow: 0 10px 26px rgba(45, 212, 191, 0.12);
}

body[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
  border-color: rgba(45, 212, 191, 0.38);
  box-shadow: 0 12px 26px rgba(8, 145, 178, 0.18);
}

body[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  border-color: rgba(34, 211, 238, 0.58);
}

body[data-theme="dark"] .theme-toggle-btn,
body[data-theme="dark"] .top-plan-chip,
body[data-theme="dark"] .top-help-chip,
body[data-theme="dark"] .dashboard-stat-pill,
body[data-theme="dark"] .dashboard-trend-total,
body[data-theme="dark"] .dashboard-list-total,
body[data-theme="dark"] .dashboard-empty {
  background: rgba(13, 21, 36, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  color: #dbeafe !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body[data-theme="dark"] .dashboard-kpi-card,
body[data-theme="dark"] .dashboard-kpi-card--plan-usage,
body[data-theme="dark"] .dashboard-panel,
body[data-theme="dark"] .dashboard-trend-row,
body[data-theme="dark"] .dashboard-list-item,
body[data-theme="dark"] .dashboard-card {
  background:
    linear-gradient(180deg, rgba(27, 41, 64, 0.94) 0%, rgba(16, 24, 39, 0.98) 100%) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body[data-theme="dark"] .sim-progress-shell {
  background:
    linear-gradient(135deg, rgba(27, 41, 64, 0.96) 0%, rgba(15, 23, 38, 0.98) 100%) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body[data-theme="dark"] .sim-step-dot {
  background: linear-gradient(180deg, #111c2e 0%, #0b1220 100%) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #cbd5e1 !important;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body[data-theme="dark"] .sim-step-node.is-active .sim-step-dot,
body[data-theme="dark"] .sim-step-node[aria-current="step"] .sim-step-dot {
  background: linear-gradient(135deg, #0d9488 0%, #22d3ee 100%) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 4px rgba(45, 212, 191, 0.12),
    0 8px 18px rgba(34, 211, 238, 0.16) !important;
}

body[data-theme="dark"] .table > :not(caption) > * > * {
  border-bottom-color: rgba(148, 163, 184, 0.16) !important;
}

body[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(148, 163, 184, 0.055);
}

body[data-theme="dark"] .table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: rgba(45, 212, 191, 0.08);
}

body[data-theme="dark"] .fs-compare-shell,
body[data-theme="dark"] .fs-compare-shell .card-header,
body[data-theme="dark"] .fs-compare-shell .card-body,
body[data-theme="dark"] .fs-param-panel,
body[data-theme="dark"] .enquadramento-rules-alert,
body[data-theme="dark"] .enquadramento-rules-card,
body[data-theme="dark"] .enquadramento-rules-body {
  background:
    linear-gradient(180deg, rgba(27, 41, 64, 0.94) 0%, rgba(16, 24, 39, 0.98) 100%) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

body[data-theme="dark"] .fs-param-toggle,
body[data-theme="dark"] .bg-success-subtle {
  background: rgba(13, 148, 136, 0.16) !important;
  border-color: rgba(45, 212, 191, 0.34) !important;
  color: #ccfbf1 !important;
}

body[data-theme="dark"] .text-success,
body[data-theme="dark"] .text-success-emphasis,
body[data-theme="dark"] a.text-success {
  color: #5eead4 !important;
}

.client-progress-shell {
  border: 1px solid #d7e2ee;
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(242, 201, 76, 0.18), transparent 24%),
    linear-gradient(135deg, #f7fbff 0%, #eef5fb 100%);
  padding: 1rem;
  margin-bottom: 1.5rem;
  overflow: visible;
}

.client-step-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.45rem 0 0.2rem;
}

.client-step-grid {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  overflow: visible;
}

.client-step-node {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease;
  flex: 1 1 0;
  min-width: 92px;
}

.client-step-node:hover:not(:disabled) {
  transform: translateY(-2px);
}

.client-step-node:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.client-step-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
  min-height: 42px;
}

.client-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #c6d3df;
  color: #5e7286;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(15, 28, 42, 0.08);
  transition: all .2s ease;
  flex-shrink: 0;
}

.client-step-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #203246;
  line-height: 1.2;
}

.client-step-arrow {
  position: absolute;
  top: 50%;
  right: -0.22rem;
  transform: translateY(-50%);
  color: #8ea0b2;
  font-size: 0.8rem;
  pointer-events: none;
}

.client-step-node:last-child .client-step-arrow {
  display: none;
}

.client-step-node.active .client-step-dot,
.client-step-node[aria-selected="true"] .client-step-dot {
  background: #1f6fff;
  color: #fff;
  border-color: #1f6fff;
  box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.14);
}

.client-step-node.active,
.client-step-node[aria-selected="true"] {
  transform: translateY(-2px);
}

.client-step-node.active .client-step-title,
.client-step-node[aria-selected="true"] .client-step-title {
  color: #0f172a;
}

.client-logo-preview__frame {
  width: min(100%, 220px);
  min-height: 96px;
  border: 1px dashed #c9d6e2;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.client-logo-preview__frame img {
  max-width: 176px;
  max-height: 68px;
  object-fit: contain;
}

.client-logo-preview__placeholder {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

body[data-theme="dark"] .client-progress-shell {
  background: linear-gradient(135deg, rgba(27, 41, 64, 0.96) 0%, rgba(15, 23, 38, 0.98) 100%) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body[data-theme="dark"] .client-step-dot {
  background: linear-gradient(180deg, #111c2e 0%, #0b1220 100%) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #cbd5e1 !important;
}

body[data-theme="dark"] .client-step-node.active .client-step-dot,
body[data-theme="dark"] .client-step-node[aria-selected="true"] .client-step-dot {
  background: linear-gradient(135deg, #1f6fff 0%, #22d3ee 100%) !important;
  border-color: rgba(34, 211, 238, 0.72) !important;
  color: #fff !important;
  box-shadow: 0 0 0 7px rgba(34, 211, 238, 0.18), 0 12px 24px rgba(31, 111, 255, 0.22) !important;
}

body[data-theme="dark"] .client-step-title {
  color: #cbd5e1;
}

body[data-theme="dark"] .client-step-node.active .client-step-title,
body[data-theme="dark"] .client-step-node[aria-selected="true"] .client-step-title {
  color: #f8fafc;
}

body[data-theme="dark"] .client-logo-preview__frame {
  background: #0f172a;
  border-color: #334155;
}

.client-param-layout {
  display: grid;
  gap: 1rem;
}

.client-param-section {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  background: #ffffff;
}

.client-param-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.client-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}

.client-module-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .7rem .8rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.client-module-option .form-check-input {
  margin: 0;
  flex: 0 0 auto;
}

.client-module-option .form-check-label {
  line-height: 1.25;
}

.client-param-section .form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

body[data-theme="dark"] .client-param-section {
  background: #111827;
  border-color: #334155;
}

body[data-theme="dark"] .client-module-option {
  background: #0f172a;
  border-color: #334155;
}
