.custom-dropdown .dropdown-toggle  {
    padding: 0.625rem 1rem;
    margin: 0;
}
.custom-dropdown .form-control {
    width: 100%;
    display: inline-block;
    border: 1px solid #d2d6da;
    padding: 0.3rem 0.8rem;
}
.custom-dropdown {
    position: relative;
}
.custom-dropdown-menu {
    z-index: 1000;
    min-width: 11rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 0.875rem;
    color: #7b809a;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 0 solid transparent;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    display: none;
    position: absolute;
    transform-origin: 0 0;
    inset: 0px auto auto 0px;
    margin-top: 2.8125rem !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform,box-shadow;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: scale(1) !important;
    overflow-y: auto;
    max-height: 300px;
    overflow-x: auto;
    width: 100%;
}
.custom-dropdown-menu.show {
    display: block;
}
.custom-dropdown .custom-dropdown-menu:before {
    font-family: "FontAwesome";
    content: "\f0d8";
    position: absolute;
    left: 28px;
    right: auto;
    font-size: 22px;
    color: #fff;
    transition: top 0.35s ease;
    top: -20px;
}
.custom-dropdown-menu .dropdown-item {
    padding: 0.1rem 0.8rem;
}
.hidden {
    display: none;
}
.stock-label {
    display: inline-block;
    margin: 0;

}
.portfolio-box {
    display: inline-block;
    width: auto;
    float: right;
    padding: 0;
    margin: 0;
}
.portfolio-box .portfolio-select {
    line-height: initial;
    padding: 1px;
}
.portfolio-box .portfolio-select .dropdown-toggle {
    margin: 0;
    padding: 0 3px 0 8px;
    background: #8e8e8e;
    text-transform: initial;
    font-weight: 400;
    font-size: 13px;
}
.portfolio-select input {
    margin: 5px 7px;
    cursor: pointer;
    transform: scale(1.5);
}
.portfolio-select .item {
    display: inline-block;
    width: auto;
    line-height: 24px;
}
.portfolio-new {
    width: auto;
    display: none;
    padding: 0 4px 0;
}
.portfolio-value {
    width: auto;
    display: inline-block;
    background-color: #fff !important;
    line-height: initial;
    padding: 3px;
}
.portfolio-add {
    display: inline-block;
    padding: 0.25em 0.25em;
    cursor: pointer;
    color: #66f16c;
}
.isset-portfolio {
    display: none;
    color: #53AC57;
    margin-top: 1px;
    font-size: 18px;
}
.portfolio-select.active .isset-portfolio {
    display: inline-block;
}
.portfolio-select.active .dropdown-toggle {
    background: #53AC57;
}
.portfolio-remove {
    display: inline-block;
    background-color: #ff4141;
    vertical-align: middle;
}

.table-portfolio-stock {
    color: #1d1d1d;
}
.table-portfolio-stock tbody tr:not(.labels):not(.titles):hover {
    background-color: #e0e0e0;
}
.table-portfolio-stock tbody tr.labels:not(.titles):hover {
    background-color: #fafafa;
}
.table-portfolio-stock.table thead th {
    font-size: 15px;
    text-align: right;
    padding: 0.75rem 0.5rem;
    font-weight: 400;
    color: #727272;
}

.table-portfolio-stock.table thead th.column-name {
    text-align: left;
}

.pagination-select-box {
    border: 1px solid #b2b2b2;
    cursor: pointer;
    height: 25px;
    border-radius: 3px;
    padding: 0 25px 0 10px;
    background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E);
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
}
.portfolio-select-box {
    border: 1px solid #b2b2b2;
    cursor: pointer;
    height: 38px;
    border-radius: 5px;
    padding: 0 25px 0 10px;
    background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E);
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
}
.portfolio-select-box:focus,
.custom-input:focus,
.custom-select:focus {
    border: 1px solid #7f7f7f;
}

.disable-box-wrapper {
    display: inline-block;
    font-size: 14px;
    color: red;
    padding: 0 3px;
    cursor: pointer;
    min-width: 74px;
}
.disable-box-wrapper:not(.active) .unblock {
    display: none;
}
.disable-box-wrapper.active {
    background-color: #e60808;
    color: #fff;
}
.disable-box-wrapper.active .icon-to-block {
    display: none;
}
.disable-box-wrapper.active .to-block {
    display: none;
}

.btn-lwrc {
    text-transform: initial;
}
.port-body .labels {
    display: none;
}
.port-body .labels.active {
    display: table-row;
}
.port-body .labels.titles {
    font-size: 15px;
}
.port-body .labels.titles td {
    padding: 1px 0.5rem;
    color: #727272;
}
.port-body.is-open {
    border-top: 1px solid #c7c7c7;
}
.port-body.is-open .labels {
    display: table-row;
}
.port-body.is-open .labels.add-area {
    display: none;
}

.port-body.is-open.add-area-open .labels.add-area {
    display: table-row;
}
.port-body.is-open.add-area-open .trade-add-in-row {
    display: none;
}
.port-body.trade-isset .trade-add {
    display: none;
}
.add-area .error {
    border: 1px solid #e70000;
}
.stock-row-item {
    cursor: pointer;
}
.box-delete {
    padding: 0;
}
.box-delete .btn {
    background-image: linear-gradient(195deg, #ab726f, #d26361)
}
.custom-input {
    width: 105px !important;
    text-align: center;
}
.custom-select {
    border: 1px solid #d2d6da;
    padding: 3px 5px;
    cursor: pointer;
    background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E);
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
}
.trade-today-price {
    width: 100%;
}

/** rename portfolio **/
.rename-portfolio-fields {
    width: auto;
    display: none;
    padding: 0 4px 0;
    background-color: #c1c1c1;
}
.portfolio-name-value {
    width: auto;
    display: inline-block;
    background-color: #fff !important;
    line-height: initial;
    padding: 3px;
}
.portfolio-rename {
    display: inline-block;
    padding: 0.25em 0.25em;
    cursor: pointer;
    color: #66f16c;
}
.portfolio-name-remove {
    display: inline-block;
    background-color: #ff4141;
    vertical-align: middle;
}
.rename-portfolio-wrapper.active .rename-portfolio-fields {
    display: block;
}
.rename-portfolio-wrapper.active .rename-portfolio-button {
    display: none;
}

.error-message {
    color: red;
    display: none;
}
.error-message.active {
    display: block;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
.right {
    float: right;
}
.border-none {
    border: none;
}
.color-red {
    color: #ff212a;
}
.color-green {
    color: #00a449;
}

@media screen and (max-width: 1601px) {
    .portfolio-wrapper,
    .table-portfolio-stock.table thead th,
    .port-body .labels.titles {
        font-size: 13px;
    }
    label, .form-label {
        font-size: 12px;
    }
    .stock-label {
        font-size: 13px !important;
    }
    .portfolio-value {
        max-width: 95px;
    }
}@media screen and (max-width: 1440px) {
    .portfolio-wrapper,
    .table-portfolio-stock.table thead th,
    .port-body .labels.titles,
    label, .form-label {
        font-size: 12px;
    }
}

.pagination .item {
    margin-right: 3px;
    padding: 2px 5px;
    border: 1px solid #e91e63;
}

.pagination .item.active .link {
    color: #fff;
}
.pagination .item .link {
    cursor: pointer;
}

.pagination .item:hover {
    color: #e91e63;
}

.box-select .dropdown-toggle {
    margin: 0;
    padding: 0 7px;
    background: #fff;
    text-transform: initial;
    font-weight: 400;
    font-size: 13px;
    color: #495057;
    border-radius: initial;
}
.box-select .dropdown-menu li > input,
.box-select .dropdown-menu li > .item {
    display: inline-block;
    margin: 0 5px;
}
.pcadd-save {
    color: #494949;
    background-color: #dedede;
    text-transform: initial;
    padding: 0.075rem 1rem;
}
.pcadd-save:hover {
    color: #000;
}
.added-period-coeff {
    color: #495057;
    font-size: 0.775rem;
    margin-top: 3px;
    margin-left: 3px;
}
.added-period-coeff div {
    padding: 0;
    margin: 0;
}
.added-period-coeff .coeff-remove {
    font-size: 14px;
    color: red;
    padding-left: 3px;
    cursor: pointer;
    font-style: normal;
    font-weight: 600;
}
.release-date {
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 0;
}
.release-desc {
    margin-bottom: 0;
    font-weight: 500;
}

.compare-page .card,
.superindex-page .card {
    border-radius: initial;
    border: 1px solid #f4f4f4;
}
.compare-page .card h6,
.superindex-page .card h6{
    color: #000000;
    font-weight: 500 !important;
}

.compare-page .card .area-header,
.superindex-page .card .area-header {
    margin-top: -12px;
}

.compare-page .card .form-label,
.superindex-page .card .form-label,
.logs-container .card .form-label{
    width: 45%;
    text-align: right;
    margin-right: 3px;
    line-height: 16px;
    color: #3a3a3a;
    margin-bottom: 0;
}
.compare-page .card .form-control,
.superindex-page .card .form-control,
.logs-container .card .form-control {
    min-width: 50%;
    width: auto;
    padding: 2px 5px;
    border: 1px solid #d2d6da;
    border-radius: 3px;
    vertical-align: top;
}
.compare-page .card .custom-dropdown,
.superindex-page .card .custom-dropdown,
.logs-container .card .custom-dropdown {
    min-width: 50%;
    width: 50%;
    vertical-align: top;
}
.compare-page .card .form-control.period-coeff,
.superindex-page .card .form-control.period-coeff {
    min-width: auto;
}
.compare-page .card select.form-control,
.superindex-page .card select.form-control,
.logs-container .card select.form-control {
    padding: 2px 22px 2px 5px;
    background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E);
    background-repeat: no-repeat;
    background-position: right 5px top 50%;
    background-size: 0.65rem auto;
}
.compare-page .sata-index-select,
.superindex-page .sata-index-select {
    width: 50%;
    border: 1px solid #d2d6da;
    border-radius: 3px;
    vertical-align: super;
    padding: 6px 22px 0 5px;
    font-size: 14px;
}
.rank-deactive .col-2:not(.block-rank){
    display: none;
}

.conf-remove-block {
    display: none;
}
.conf-remove-block.active {
    display: block;
}
.new-conf-label {
    border-bottom: 2px solid #bebcbc;
    border-top: 2px solid #bebcbc;
    border-left: 2px solid #bebcbc;
    padding: 7px 0 5px;
    margin-bottom: 15px;
}
.new-conf-btn {
    border-bottom: 2px solid #bebcbc;
    border-top: 2px solid #bebcbc;
    border-right: 2px solid #bebcbc;
    padding: 7px 0 5px;
    margin-bottom: 15px;
}
.detail-history {
    font-size: 10px;
    line-height: 11px;
}
.detail-history .item {
    display: inline-block;
    color: #242424;
    font-size: 14px;
    line-height: 18px;
}
.detail-history .item.item-label {
    width: 40%;
    color: #000;
}
.detail-history .item:not(.item-label) {
    width: 30%;
}
.detail-stock-history-item {
    position: absolute;
    left: 83%;
}

.run-info {
    color: #3a3a3a;
    position:absolute;
}
.run-info .label,
.run-info .value {
    display: inline-block;
}
.run-info .label{
    font-size: 15px;
}
.run-info .value {
    color: #000;
}
.logs-container .list-group-item {
    padding: 5px 10px;
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* Hidden by default */
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
