/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
/*.footer {*/
/*  position: absolute;*/
/*  bottom: 0;*/
/*  width: 100%;*/
/*  white-space: nowrap;*/
/*  line-height: 60px; !* Vertically center the text there *!*/
/*}*/


.ts-control{
  background: #2e3446 ;
  color: #bfc8e2 !important;
  border: 1px solid #32394e ;
}

.ts-control input{
  color: #bfc8e2 !important;
}
.ts-dropdown {
  background: #2e3446 !important;
  color: #bfc8e2 !important;
  border: 1px solid #32394e !important;
}
.ts-dropdown .active {
  background: #2a2f40 !important;
  color: #bfc8e2 !important;
  border: 1px solid #32394e !important;
}
.dt-bootstrap5 .dataTables_filter{
  display: none !important;
}

.cursor-pointer {
  cursor: pointer !important;
}

/* OviModal: faster fade + slide-in (override Bootstrap 0.3s) */
[data-ovi-modal].modal.fade .modal-dialog {
  transition: transform 0.15s ease-out;
}
.modal-backdrop.fade {
  transition: opacity 0.15s linear;
}

/* Layout without topbar: sidebar starts at top, page-content has no topbar padding */
.vertical-menu.sidebar-without-topbar {
  top: 0 !important;
}
/* Flex column: middle section must shrink so SimpleBar gets a height (host overflow:auto + SimpleBar = double scrollbars) */
.vertical-menu .d-flex.flex-column > [data-simplebar] {
  min-height: 0;
}
.sidebar-without-topbar ~ .main-content .page-content {
  padding-top: 24px !important;
  min-height: 100vh !important;
}
 .container-fluid {
  min-height: 100vh !important;
}

/* Localization icon for inputs (same position as validation error icon) */
.ovi-localized-input-wrapper {
  position: relative;
}
.ovi-localized-input-wrapper .ovi-localized-icon {
  position: absolute;
  top: calc(0.375em + 0.235rem);
  right: calc(0.375em + 0.235rem);
  font-size: calc(0.75em + 0.47rem);
  pointer-events: none;
  z-index: 2;
}
.ovi-localized-input-wrapper .ovi-localized-icon.text-primary { color: var(--bs-primary) !important; }
.ovi-localized-input-wrapper .ovi-localized-icon.text-danger { color: var(--bs-danger) !important; }
.ovi-localized-input-wrapper .ovi-localized-icon.text-success { color: var(--bs-success) !important; }
/* Input/textarea needs padding to make room for icon (same as Bootstrap validation) */
.ovi-localized-input-wrapper .form-control {
  padding-right: calc(1.5em + 0.94rem);
}
/* RTL support */
[dir="rtl"] .ovi-localized-input-wrapper .ovi-localized-icon {
  right: auto;
  left: calc(0.375em + 0.235rem);
}
[dir="rtl"] .ovi-localized-input-wrapper .form-control:not(textarea),
[dir="rtl"] .ovi-localized-input-wrapper textarea.form-control,
[dir="rtl"] .ovi-localized-input-wrapper .tox-tinymce {
  padding-right: var(--bs-input-padding-x, 0.75rem);
  padding-left: calc(1.5em + 0.94rem);
}

/* Page content full viewport height */
#layout-wrapper {
  min-height: 100vh;
}
.sidebar-without-topbar ~ .main-content {
  min-height: 100vh;
}

/* Sidebar: compact language switcher */
.sidebar-account .dropdown .btn.header-item {
  height: auto !important;
  padding: 0.25rem 0.5rem !important;
}

/* OviNotification: toast layout (oviNotification.js buildToastElement) */
.ovi-toast {
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  min-width: 320px;
  max-width: 420px;
  overflow: hidden;
  border-left: 4px solid transparent;
}

.ovi-toast-header {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  align-items: center;
}

.ovi-toast-body {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.ovi-toast-icon {
  flex-shrink: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.ovi-toast-title {
  flex-grow: 1;
  font-weight: 600;
  font-size: 0.875rem;
}

.ovi-toast-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  opacity: 0.8;
}

.ovi-toast-close {
  border: none;
  background: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.6;
  padding: 0;
  line-height: 1;
  color: inherit;
}

.ovi-toast-close:hover {
  opacity: 1;
}

/* Variants — align with OviImportanceDefaults (oviImportance.js) */
.ovi-toast-success {
  border-left-color: var(--bs-success);
}
.ovi-toast-success .ovi-toast-header {
  background-color: var(--bs-success);
  color: var(--bs-white);
}
.ovi-toast-success .ovi-toast-body {
  background-color: rgba(var(--bs-success-rgb), 0.25);
  color: var(--bs-white);
}
.ovi-toast-success .ovi-toast-icon {
  background-color: rgba(var(--bs-white-rgb), 0.25);
}

.ovi-toast-danger {
  border-left-color: var(--bs-danger);
}
.ovi-toast-danger .ovi-toast-header {
  background-color: var(--bs-danger);
  color: var(--bs-white);
}
.ovi-toast-danger .ovi-toast-body {
  background-color: rgba(var(--bs-danger-rgb), 0.25);
  color: var(--bs-white);
}
.ovi-toast-danger .ovi-toast-icon {
  background-color: rgba(var(--bs-white-rgb), 0.25);
}

.ovi-toast-warning {
  border-left-color: var(--bs-warning);
}
.ovi-toast-warning .ovi-toast-header {
  background-color: var(--bs-warning);
  color: var(--bs-dark);
}
.ovi-toast-warning .ovi-toast-body {
  background-color: rgba(var(--bs-warning-rgb), 0.25);
  color: var(--bs-dark);
}
.ovi-toast-warning .ovi-toast-icon {
  background-color: rgba(var(--bs-white-rgb), 0.25);
}

.ovi-toast-info {
  border-left-color: var(--bs-info);
}
.ovi-toast-info .ovi-toast-header {
  background-color: var(--bs-info);
  color: var(--bs-white);
}
.ovi-toast-info .ovi-toast-body {
  background-color: rgba(var(--bs-info-rgb), 0.25);
  color: var(--bs-white);
}
.ovi-toast-info .ovi-toast-icon {
  background-color: rgba(var(--bs-white-rgb), 0.25);
}

.ovi-toast-primary {
  border-left-color: var(--bs-primary);
}
.ovi-toast-primary .ovi-toast-header {
  background-color: var(--bs-primary);
  color: var(--bs-white);
}
.ovi-toast-primary .ovi-toast-body {
  background-color: rgba(var(--bs-primary-rgb), 0.25);
  color: var(--bs-white);
}
.ovi-toast-primary .ovi-toast-icon {
  background-color: rgba(var(--bs-white-rgb), 0.25);
}

.ovi-toast-light {
  border-left-color: var(--bs-light);
}
.ovi-toast-light .ovi-toast-header {
  background-color: var(--bs-light);
  color: var(--bs-dark);
}
.ovi-toast-light .ovi-toast-body {
  background-color: rgba(var(--bs-light-rgb), 0.25);
  color: var(--bs-dark);
}
.ovi-toast-light .ovi-toast-icon {
  background-color: rgba(var(--bs-dark-rgb), 0.1);
}

.ovi-toast-pink {
  border-left-color: var(--bs-pink);
}
.ovi-toast-pink .ovi-toast-header {
  background-color: var(--bs-pink);
  color: var(--bs-white);
}
.ovi-toast-pink .ovi-toast-body {
  background-color: rgba(var(--bs-pink-rgb), 0.25);
  color: var(--bs-white);
}
.ovi-toast-pink .ovi-toast-icon {
  background-color: rgba(var(--bs-white-rgb), 0.25);
}

/* Brokers / Configure — cashback account type card: one vertical scroll on card body (adm-acc-01); matches JS-built cards in accountTypes.js; OviScroll.syncScroll uses [data-cashback-rates-container] */
/* Scrollbar: stable gutter + thin theme-colored thumb (Firefox/Win/WebKit) so operators see scrollability vs macOS overlay defaults */
.cashback-account-type-card-rates {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--bs-secondary-color) var(--bs-tertiary-bg);
}
.cashback-account-type-card-rates::-webkit-scrollbar {
  width: 8px;
}
.cashback-account-type-card-rates::-webkit-scrollbar-track {
  background: var(--bs-tertiary-bg);
  border-radius: 4px;
}
.cashback-account-type-card-rates::-webkit-scrollbar-thumb {
  background-color: var(--bs-secondary-color);
  border-radius: 4px;
  border: 2px solid var(--bs-tertiary-bg);
}
.cashback-account-type-card-rates [data-cashback-rate-row] {
  flex-shrink: 0;
  overflow: visible;
}
/* No nested column scroll: content grows; only .cashback-account-type-card-rates scrolls */
.cashback-account-type-card-rates [data-cashback-rate-inputs],
.cashback-account-type-card-rates [data-cashback-dynamic-inputs-container] {
  overflow: visible;
  max-height: none;
}
.cashback-account-type-card-rates [data-cashback-rate-row] > .flex-grow-1 {
  overflow: visible;
  max-height: none;
}

/* Brokers / Configure — connect how-to nested sub-tabs (adm-howto-02) */
.connect-how-to-subtabs > .btn {
  flex: 1 1 0;
  min-width: 0;
}

/* Brokers / Configure — connect how-to: stacked dropzone (preview row, drop row); scoped — do not alter global ovi-dropzone */
.connect-how-to-list-item .connect-how-to-dropzone-wrap:has(.ovi-dropzone-wrapper.connect-how-to-dropzone--stacked),
.connect-how-to-list-item .connect-how-to-dropzone-wrap.connect-how-to-dropzone--stacked {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.connect-how-to-list-item
  .connect-how-to-dropzone-wrap
  .ovi-dropzone-wrapper.connect-how-to-dropzone--stacked,
.connect-how-to-list-item .connect-how-to-dropzone-wrap.connect-how-to-dropzone--stacked > .ovi-dropzone-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column !important;
  align-items: stretch;
}
.connect-how-to-list-item
  .connect-how-to-dropzone-wrap
  .ovi-dropzone-wrapper.connect-how-to-dropzone--stacked
  .ovi-dropzone-preview-slot,
.connect-how-to-list-item
  .connect-how-to-dropzone-wrap.connect-how-to-dropzone--stacked
  .ovi-dropzone-preview-slot {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  max-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.connect-how-to-list-item
  .connect-how-to-dropzone-wrap
  .ovi-dropzone-wrapper.connect-how-to-dropzone--stacked
  .ovi-dropzone-preview-slot
  img,
.connect-how-to-list-item
  .connect-how-to-dropzone-wrap.connect-how-to-dropzone--stacked
  .ovi-dropzone-preview-slot
  img {
  max-height: 7.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.connect-how-to-list-item
  .connect-how-to-dropzone-wrap
  .ovi-dropzone-wrapper.connect-how-to-dropzone--stacked
  .ovi-dropzone-drop-column,
.connect-how-to-list-item
  .connect-how-to-dropzone-wrap.connect-how-to-dropzone--stacked
  .ovi-dropzone-drop-column {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  align-self: stretch;
}
.connect-how-to-list-item
  .connect-how-to-dropzone-wrap
  .ovi-dropzone-wrapper.connect-how-to-dropzone--stacked
  .ovi-dropzone-container,
.connect-how-to-list-item
  .connect-how-to-dropzone-wrap.connect-how-to-dropzone--stacked
  .ovi-dropzone-container {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

/* Payouts / Manage — vertical timeline (operator detail, Skote-style rail + nodes; light theme contrast) */
.payout-manage-timeline {
  list-style: none;
  border-left: 2px solid rgba(var(--bs-primary-rgb), 0.4);
  padding-left: 1.25rem;
  margin-left: 0;
  margin-top: 0.125rem;
  margin-bottom: 0;
}
.payout-manage-timeline-item {
  position: relative;
  padding-bottom: 0.875rem;
}
.payout-manage-timeline-item:first-child {
  padding-top: 0.125rem;
}
.payout-manage-timeline-item:last-child {
  padding-bottom: 0;
}
.payout-manage-timeline-item::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(-1.25rem - 1px);
  top: 0.35rem;
  width: 0.5rem;
  height: 0.5rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background-color: var(--bs-primary);
  border: 2px solid var(--bs-body-bg);
  box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.45);
}

/* Payouts / Manage — primary action occupies full first row inside flex-wrap toolbar */
[data-payout-actions] > [data-action="mark-sent"] {
  flex: 1 0 100%;
  max-width: 100%;
}
