body {
    font-size: 1rem !important;
}

::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.btn-dark {
    background: var(--brand-primary-color) !important;
}

.btn-outline-dark {
    border-color: var(--brand-primary-color) !important;
}
.btn-check:active+.btn-outline-dark,
.btn-check:checked+.btn-outline-dark,
.btn-outline-dark.active,
.btn-outline-dark.dropdown-toggle.show,
.btn-outline-dark:active {
    color: #fff;
    background-color: var(--brand-primary-color) !important;
    border-color: var(--brand-primary-color) !important;
}
.btn-outline-dark:hover {
    color: #fff;
    background-color: var(--brand-primary-color) !important;
    border-color: var(--brand-primary-color) !important;
}

.bg-dark {
    background: var(--brand-primary-color) !important;
}

.svg-dark svg {
    stroke: var(--brand-primary-color) !important;
    fill: var(--brand-primary-color) !important;;
}

.svg-purple {
    stroke: var(--brand-secondary-color) !important;
    fill: var(--brand-secondary-color) !important;;
}

.tooltip {
    z-index: 99999 !important;
}

.bg-purple {
    background-color: var(--brand-secondary-color) !important;
}

.form-check-input:checked[type=radio]~.form-check-label {
    border-color: var(--brand-primary-color) !important;
}

.form-check-input:checked[type=radio]~.form-check-label::before {
    background-image: url("data:image/svg+xml,%3csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='18' height='18' rx='9' fill='%23FF73B1'/%3e%3cpath d='M12.0603 5.78792C12.2511 5.56349 12.5876 5.5362 12.8121 5.72697C13.0365 5.91774 13.0638 6.25432 12.873 6.47875L8.3397 11.8121C8.14594 12.04 7.80261 12.064 7.57901 11.8653L5.17901 9.73195C4.95886 9.53626 4.93903 9.19915 5.13472 8.979C5.33041 8.75885 5.66751 8.73902 5.88766 8.93471L7.88011 10.7058L12.0603 5.78792Z' fill='%23fff'/%3e%3c/svg%3e") !important;
    opacity: 1 !important;
}

.active > a {
    color: var(--brand-primary-color) !important;
}
.text-purple {
    color: var(--brand-secondary-color) !important;
}

.bg-gradient-1 {
    background: var(--brand-secondary-color);
    background: var(--brand-gradient-1);
}

.bg-orange {
    background-color: var(--brand-third-color) !important;
}

.text-orange {
    color: var(--brand-third-color) !important;
}

.bg-orange-light {
    background-color: var(--brand-fourth-color) !important;
}

.text-orange-light {
    color: var(--brand-fourth-color) !important;
}

.bg-yellow {
    background-color: var(--brand-fifth-color) !important;
}

.table a {
    color: var(--brand-primary-color);
    font-weight: bold;
}
.text-yellow {
    color: var(--brand-fifth-color) !important;
}

.select2-selection__rendered {
    line-height: 36px !important;
}

.select2-container .select2-selection--single {
    height: 40px !important;
}

.select2-selection__arrow {
    height: 36px !important;
}

.select2-container--default .select2-selection--single {
    background-color: #ffffff !important;;
    border: .0625rem solid rgba(231,234,243,.7) !important;
}

.select2-dropdown {
    border: .0625rem solid rgba(231,234,243,.7) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--brand-primary-color) !important;;
}

.changed input {
    border: .0625rem solid #0d6efd !important;
}

.zi-max {
    z-index: 99999 !important;
}

.form-control::placeholder {
    color: #ccd0d4 !important;
}

input[type="text"][readonly] {
  background-color: #f7f7f7 !important;
}

.navbar-brand-logo {
    max-width: 9.5rem !important;
}

.range-wrap {
    position: relative;
    margin: 0 auto 3rem;
}

.bubble {
    background: var(--brand-secondary-color);
    color: white;
    padding: 8px 12px;
    position: absolute;
    border-radius: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.bubble::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--brand-secondary-color);
    top: -1px;
    left: 50%;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background-color: var(--brand-primary-color);
}

input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    background-color: var(--brand-primary-color);
}

.input-hint {
    width: 100%;
    font-size: .875em;
}

.modal {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.post-content img, .comment-content img, .wl-article img {
    max-width: 100% !important;
}

.cookie-bar {
    position: fixed;
    width: 100%;
    bottom: 0;
    text-align: center;
    height: auto;
    line-height: 20px;
    background: var(--brand-secondary-color);
    color: white;
    z-index: 9999;
    padding: 10px;
}

.article-container {
    text-align: justify !important;
    color: var(--brand-primary-color);
    line-height: 30px;
}

.article-container h1 {
    color: var(--brand-primary-color) !important;
    font-size: 30pt !important;
    text-align: left !important;
}

.article-container h2 {
    color: var(--brand-primary-color) !important;
    font-size: 1.3125rem !important;
}

.article-container img {
    max-width: 100%;
}

.article-cover h3 {
    font-size: 40pt !important;
}

.article-cover h4 {
    font-size: 20pt !important;
}

.article-container ol {
    list-style-type: none;
    counter-reset: my-counter;
    padding-left: 28px;
    text-indent: -28px;
}

.article-container ol li::before {
    content: counter(my-counter);
    counter-increment: my-counter;
    display: inline-block;
    border-radius: 50%;
    background-color: var(--brand-secondary-color);
    color: white;
    text-align: center;
    line-height: 20px;
    padding-left: 20px;
    margin-right: 7px;
    text-indent: -19px;
}

.article-container ul {
    list-style-image: none;
    list-style-type: none;
    padding-left: 20px;
    text-indent: -20px;
}

.article-container ul li::before {
    content: "✓";
    color: var(--brand-secondary-color);
    margin-right: 5px;
}

.article-container blockquote {
    background: linear-gradient(190deg, rgba(255,115,177,1) 0%, rgba(255,149,128,1) 71%, rgba(255,199,98,1) 100%);
    border-radius: 10px;
    padding: 20px;
    color: white;
    font-weight: bold;
    text-align: center;
}

.article-container a {
    color: var(--brand-secondary-color);
    font-weight: bold;
}

.note-editable blockquote {
    background: linear-gradient(190deg, rgba(255,115,177,1) 0%, rgba(255,149,128,1) 71%, rgba(255,199,98,1) 100%);
    border-radius: 10px;
    padding: 20px;
    color: white;
    font-weight: bold;
    text-align: center;
}

.toc-li {
    cursor: pointer;
}

.toc-li:hover {
    font-weight: bold;
}

a[aria-expanded=true] .bi-caret-up-fill {
   display: none;
}
a[aria-expanded=false] .bi-caret-down-fill {
   display: none;
}

iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--brand-secondary-color) !important;
}

.popover-username {
    cursor: pointer;
}

.popover{
    max-width: 500px !important;
}

.post-highlight:hover {
    background-color: #f3f3f3;
    cursor: pointer;
}

.nav-tabs .nav-link.active {
    color: var(--brand-primary-color) !important;
    border-bottom-color: var(--brand-secondary-color) !important;
}

.accordion-button:not(.collapsed) {
    color: var(--brand-secondary-color) !important;
}

.google-signin {
    font-size: 14px !important;
    color: rgba(0, 0, 0, 0.54) !important;
    font-family: Roboto, sans-serif !important;
    font-weight: 500 !important;
}

.google-signin img {
    margin-right: 18px;
    width: 18px;
    height: 18px;
}

.fake-player {
    background: #eeeeee;
    border-radius: 5px;
    height: 150px;
    text-align: center;
    padding-top: 40px;
}

.dotted-card {
    border-radius: 5px;
    height: 150px;
    text-align: center;
    padding-top: 40px;
    border-style: dashed;
    border-color: #eeeeee;
}

.sidebar-item.active {display: block !important;}
.sidebar-item {display:none !important;}

div.mifid-questionnaire label:not([for]) {
    font-weight: bold;
}

.alert-soft-error {
    color: #ed4c78;
    background-color: rgba(237,76,120,.15)
}
.alert-soft-error .alert-link {
    color: #ed4c78;
}
.alert-soft-error .alert-link:hover {
    color: #ea2c60;
}
.asset-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

@media screen and (max-width: 600px) {
  .popover {
      max-width: 100% !important;
  }
  .article-cover h3 {
    font-size: 20pt !important;
  }

  .article-cover h4 {
    font-size: 10pt !important;
  }
}

@media print {

    .container {
        max-width: 100% !important;
    }

    .card {
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;

    }

    .card-header {
        border-radius: 0 !important;
        background-color: #4b5055 !important;
        color: #FFFFFF !important;
        color-adjust: exact;
    }

    .page-header {
        padding-bottom: 0 !important;
    }

    td {
        padding-bottom: 2px !important;
        padding-top: 2px !important;
        color: var(--brand-primary-color) !important;
        border-width: 0 0 0.0625rem !important;
        border-color: #DADCE0 !important;
    }

    a, span {
        color: var(--brand-primary-color) !important;
        font-weight: normal !important;
    }

    .h4 {
        color: #FFFFFF !important;
    }

    hr {
        color: #fcfcfc !important;
    }

    .list-group-item {
        border-width: 0 0 0.0625rem !important;
        border-color: #DADCE0 !important;
        padding-bottom: 2px !important;
        padding-top: 2px !important;
    }

    .page-break {
        page-break-inside: avoid;
        display: block !important;
    }
}

.bg-gray-light {
    background-color: #E0E5ED !important;
}
.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: blue;
    font-size: 1.2rem;
}

.icon-button:hover {
    color: #0d6efd;
}

.table-fixed {
    table-layout: fixed;
    width: 100%;
}

.table-fixed td,
.table-fixed th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smart-page {
    max-width: 980px;
    margin: 28px auto 56px;
    padding: 0 18px;
}

.smart-header {
    margin-bottom: 18px;
}

.smart-title {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 6px;
}

.smart-subtitle {
    margin: 0;
    font-size: 13px;
    color: #7b8aa6;
}

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

.smart-card {
    background: #ffffff;
    border: 1px solid #eef2f8;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.smart-card__section-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 12px;
}

.smart-selectable {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    align-items: center;
    background: #fbfdff;
    border: 1px solid #e6eefc;
    border-radius: 12px;
    padding: 14px;
}

.smart-selectable__label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2a44;
}

.smart-selectable__control .mb-3 {
    grid-column: 1 / -1;
    margin-bottom: 0px !important;
}

.smart-selectable__check {
    grid-column: 2;
    grid-row: 1;
    color: #19b37a;
    font-size: 16px;
}

.smart-divider {
    height: 1px;
    background: #eef2f8;
    margin: 18px 0;
}

.smart-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #7b8aa6;
    margin-bottom: 8px;
}

.smart-amount input,
.smart-selectable select,
.smart-selectable input,
.smart-selectable textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #eef2f8;
    background: #eef2f8;
    padding: 12px 14px;
    font-weight: 600;
    color: #2a3858;
    outline: none;
}

.smart-amount input:focus,
.smart-selectable select:focus {
    border-color: #5b8cff;
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
    background: #f3f7ff;
}

.smart-error {
    margin-top: 10px;
    font-size: 12px;
    color: #d92d20;
}

.smart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.smart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.smart-btn--outline {
    background: transparent;
    border-color: #5b8cff;
    color: #1f5eff;
}

.smart-btn--primary {
    background: #0b57ff;
    border-color: #0b57ff;
    color: #ffffff;
}

.smart-btn--primary:hover {
    filter: brightness(0.97);
}

.smart-btn--outline:hover {
    background: rgba(91, 140, 255, 0.10);
}
.alloc-panel {
    position: sticky;
    top: 110px;
    width: 100%;
    z-index: 1;
}

@media (max-width: 1200px) {
.alloc-panel {
    position: static;
    width: 100%;
    margin-top: 18px;
}
}

.alloc-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.10);
    overflow: hidden;
}

.alloc-card-header {
    padding: 12px 14px;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.alloc-card-body {
    padding: 10px 12px 12px;
}

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

.alloc-table th {
    font-size: 11px;
    color: rgba(15, 23, 42, 0.65);
    font-weight: 700;
    padding: 5px;
    text-align: center;
    white-space: nowrap;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 1.25;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.alloc-table tbody tr:first-child td {
  border-top: 0;
}

.alloc-table th:first-child,
.alloc-table td:first-child {
    text-align: left;
}

.alloc-table td {
    font-size: 12px;
    padding: 7px 6px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.alloc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 11px;
}

.alloc-pill-ok {
    background: rgba(34, 197, 94, 0.12);
    color: rgba(22, 101, 52, 1);
}

.alloc-pill-ko {
    background: rgba(239, 68, 68, 0.12);
    color: rgba(127, 29, 29, 1);
}

.alloc-name {
    font-weight: 700;
    color: rgba(15, 23, 42, 0.90);
}
.rec-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
  padding: 18px;
}

.rec-card .divider-center {
  margin-top: 10px;
  margin-bottom: 14px;
}

.rec-card .form-label.fw-bold {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.7);
  letter-spacing: 0.2px;
}

.rec-card .col-12.col-md-2.mb-2,
.rec-card .col-12.col-md-4,
.rec-card .col-12.col-md-1,
.rec-card .col-12.col-md-2 {
  margin-bottom: 0;
}

.padding-15-div {
    padding: 15px;
}

.micro-macro-row-Equity {
    background-color: #2563eb;
}
.micro-macro-row-Bonds {
    background-color: #0ea5a4;
}
.micro-macro-row-Money-Market {
    background-color: #059669;
}
.micro-macro-row-Commodities {
    background-color: #f59e0b;
}
.micro-macro-row-Alternatives {
    background-color: #6366f1;
}
.color-white {
    color: #ffffff !important;
}
.alloc-name-macro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    padding: 3px 15px 4px 15px !important;
}
.micro-macro-row {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.esg-card {
    margin-top: 1rem !important;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    box-shadow: 0 6px 18px rgba(16,24,40,.06);
    overflow: hidden;
}
.esg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
}
.esg-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #111827;
}
.esg-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.esg-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.esg-pill-ok {
    background: rgba(16,185,129,.10);
    border-color: rgba(16,185,129,.25);
    color: #065f46;
}
.esg-pill-ko {
    background: rgba(239,68,68,.10);
    border-color: rgba(239,68,68,.25);
    color: #7f1d1d;
}
.esg-body {
    padding: 10px 14px 14px 14px;
    border-top: 1px solid rgba(0,0,0,.06);
}
.esg-kpis {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.esg-kpi-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.esg-kpi-name {
    font-weight: 600;
    color: #111827;
    font-size: 13px;
}
.esg-kpi-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.esg-kpi-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.esg-ring {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    background: #fff;
    border: 4px solid rgba(0,0,0,.08);
    color: #111827;
}
.esg-ring-ok { border-color: rgba(16,185,129,.85); }
.esg-ring-ko { border-color: rgba(239,68,68,.85); }
.esg-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}
.esg-link {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    cursor: pointer;
    user-select: none;
}
.esg-ptf {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,.10);
}
.esg-ptf-title {
    font-size: 12px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.esg-ptf-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: #111827;
}
.esg-muted {
    color: #6b7280;
    font-size: 12px;
}
input[type="checkbox"][name$="-DELETE"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background-color 150ms ease, border-color 150ms ease;
}

input[type="checkbox"][name$="-DELETE"]::before {
  content: "";
  width: 10px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 150ms ease;
}

input[type="checkbox"][name$="-DELETE"]:checked {
  background: #e11d48;
  border-color: #e11d48;
}

input[type="checkbox"][name$="-DELETE"]:checked::before {
  transform: scaleX(1);
}

input[type="checkbox"][name$="-DELETE"]:focus-visible {
  outline: 3px solid rgba(225, 29, 72, 0.35);
  outline-offset: 2px;
}

.no-margin-top {
    margin-top: 0px !important;
}