.bg-white a, .dropzone .dz-preview a, .dropzone-wrapper .dz-preview a, .editor-preview-side a, .layout a {
    color: #171b1d;
}

.attach .attach-image:before, .bg-light, .dropzone .dz-preview .dz-details, .dropzone .dz-preview .dz-image img, .dropzone img:before, .dropzone-wrapper .dz-preview .dz-details, .dropzone-wrapper .dz-preview .dz-image img, .dropzone-wrapper img:before, .modal .modal-footer {
    background-color: #f8f9fa;
    color: #394247;
}

.hidden-input {
    display: none;
}

.custom-link-span {
    white-space: normal;
}

.icon-link-container {
    display: grid;
    grid-template-columns: 10px auto; gap: 10px;
    align-items: center;
}

.icon-link-span {
    font-size: 12px;
    color: #6c6c6c;
}

.icon-alert-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 400px;
    max-width: 550px;
}

.icon-alert {
    margin-right: 20px;
}

.icon-alert-container ul {
    padding-left: 20px;
}

.truncate-container {
    max-width: 550px; /* Reduced to ensure truncation */
    line-height: 1.5; /* Ensure consistent line height */
}

/* Specific styling for <li> elements */
li.truncate-container {
    display: list-item; /* Preserve default bullet marker for <li> */
}

/* Specific styling for <div> elements */
div.truncate-container {
    display: block; /* Ensure <div> behaves as a block without marker */
}

.content-wrapper {
    display: flex; /* Use flex to control layout */
    flex-direction: column; /* Stack content vertically */
    align-items: flex-start; /* Align items to the start */
}

.text-content {
    display: inline-block; /* For better height measurement */
    width: 100%; /* Ensure it respects max-width */
}

.text-content.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.show-more {
    display: none; /* Initially hidden, shown via JS */
    text-decoration: underline; /* Underline for minimalistic look */
    cursor: pointer;
    font-size: 14px; /* Slightly smaller than main text */
    margin-left: 0; /* Reset margin for flex alignment */
    background: none; /* No background */
    border: none; /* No border */
    transition: color 0.3s ease; /* Smooth color transition */
}

.show-more.toggle-button {
    display: block;
}

.show-more:hover {
    text-decoration: none; /* Remove underline on hover */
}

.show-more:focus {
    outline: 1px solid #0056b3; /* Minimal focus ring */
    outline-offset: 2px;
}

.parsing-progress-bar {
    width: 100%;
    max-width: 440px;
    height: 20px;
    background-color: #e7f1ff; /* primary-light */
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.parsing-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #0d6efd; /* primary */
    transition: width 0.3s ease-in-out;
}

.parsing-progress-text {
    position: relative;
    z-index: 1;
    white-space: nowrap;
    color: #0d6efd; /* primary */
}

.parsing-char-covered {
    color: #e7f1ff;
}

.parsing-char-uncovered {
    color: #0d6efd;
}

.bars-container > div:not(:last-child) {
    margin-bottom: 20px;
}

.bars-card-title {
    color: #212529 !important;
    font-weight: 500;
    text-decoration: none;
}

.bars-card-title:hover {
    color: #212529;
    text-decoration: underline;
}

pre.details-json-container {
    display: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    margin-bottom: 20px;
    margin-top: 20px;
}

.details-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.details-container .card.shadow-sm,
.alert.alert-dark .details-container {
    max-width: 100%;
}

pre.details-json-container code.language-json {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.language-json span {
    white-space: normal;
}

.alert-container > div:is(:last-child) {
    margin-bottom: 0 !important;
}

.inst-list-container {
    margin-left: 10px;
}

.inst-note-container {
    margin-bottom: 1rem;
}

.inst-divider {
    border-top: 1px solid #ccc;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.inst-link {
    color: #007bff;
}

.img-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.img-preview-modal-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border: 2px solid white;
    border-radius: 8px;
    position: relative;
}

.img-preview-close {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 0 3px rgba(0, 0, 0, 1);
    padding: 5px;
}

.icon-links-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1px;
    flex-wrap: wrap;
}

.icon-link-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin-top: 8px;
    margin-bottom: 6px;
    align-self: stretch;
}

.custom-danger {
    --bs-alert-color: #b52e3b;
    --bs-alert-bg: #ffc5ca;
}

.custom-warning a {
    color: #87222b;
}

.custom-danger div.icon-alert {
    color: #dc3545;
}

.custom-warning {
    --bs-alert-color: #b58b0c;
    --bs-alert-bg: #ffeeb6;
}

.custom-warning a {
    color: #564206;
}

.custom-warning div.icon-alert {
    color: #ffc107;
}

.custom-success {
    --bs-alert-color: #1b732f;
    --bs-alert-bg: #b4ebc1;
}

.custom-success a {
    color: #0f4119;
}

.custom-success div.icon-alert {
    color: #28a745;
}

.dashboard-title-link {
    color: #212529;
}

.dashboard-title-link:hover,
.dashboard-title-link:focus {
    color: #212529;
    text-decoration: none;
}

.badge-yandex {
    background-color: #fce000;
    color: #191817;
}

.badge-yandex a {
    color: #191817;
}

.badge-wb {
    background-color: #9f12ed;
    color: #fff;
}

.badge-wb a {
    color: #fff;
}

.badge-ozon {
    background-color: #005bff;
    color: #fff;
}

.badge-ozon a {
    color: #fff;
}

.badge-uni {
    background-color: #05c6e4;
    color: #fff;
}

.badge-uni a {
    color: #fff;
}

.badge-default {
    background-color: #000000;
    color: #fff;
}

.badge-default a {
    color: #fff;
}

.dashboard-profile-products-title {
    font-size: 13px;
}

.dashboard-profile-products-link {
    color: #fff;
}

.dashboard-profile-products-link:hover,
.dashboard-profile-products-link:focus {
    color: #fff;
    text-decoration: none;
}

.dashboard-setting-name {
    max-width: 300px;
    min-width: 80px;
    display: inline-block;
    white-space: normal;
    word-break: break-word;
}

.dashboard-setting-name:hover {
    color: #171b1d;
}

.dashboard-setting-value {
    max-width: 200px;
    display: inline-block;
    white-space: normal;
    word-break: break-all;
    text-align: left;
}

.dashboard-profile-last-launch {
    font-size: 12px;
}

.dashboard-create-profile-alert {
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-create-profile-text {
    min-width: 180px;
    max-width: 100%;
    flex: 1 1 200px;
    word-break: break-word;
}

.dashboard-create-profile-btn {
    white-space: nowrap;
    min-width: 140px;
    margin-top: 0.5rem;
}

@media (max-width: 576px) {
    .dashboard-create-profile-btn {
        width: 100%;
        min-width: unset;
    }
}

.dashboard-profile-alert {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-profile-main {
    min-width: 160px;
    max-width: 100%;
    flex: 1 1 200px;
    word-break: break-word;
}

.dashboard-profile-products-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    max-width: 100%;
}

.dashboard-profile-products-active {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dashboard-profile-products-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.dashboard-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .dashboard-setting-name,
    .dashboard-setting-value {
        max-width: 100%;
    }

    .list-group-item.d-flex.justify-content-between.align-items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem;
    }

    .dashboard-setting-value {
        margin-left: 0 !important;
        text-align: left;
        word-break: break-all;
    }
}

.table-badge {
    font-size: 13px;
}

.bg-info.table-badge a {
    color: #ffffff;
}

.log-data-cards {
    max-width: 550px;
}

.log-data-cards > div:is(:last-child) {
    margin-bottom: 0 !important;
}

.parsing-progress-bar.parsing-progress-yandex {
    background-color: #fffbe0;
}
.parsing-progress-bar.parsing-progress-wb {
    background-color: #f6e6ff;
}
.parsing-progress-bar.parsing-progress-ozon {
    background-color: #e6f0ff;
}
.parsing-progress-bar.parsing-progress-primary {
    background-color: #e7f1ff;
}
.parsing-progress-bar.parsing-progress-uni {
    background-color: #dff2f3;
}

.parsing-progress-fill.parsing-progress-yandex {
    background-color: #fce000;
}
.parsing-progress-fill.parsing-progress-wb {
    background-color: #9f12ed;
}
.parsing-progress-fill.parsing-progress-ozon {
    background-color: #005bff;
}
.parsing-progress-fill.parsing-progress-primary {
    background-color: #0d6efd;
}
.parsing-progress-fill.parsing-progress-uni {
    background-color: #05c6e4;
}

.parsing-progress-text.parsing-progress-yandex {
    color: #fce000;
}
.parsing-progress-text.parsing-progress-wb {
    color: #9f12ed;
}
.parsing-progress-text.parsing-progress-ozon {
    color: #005bff;
}
.parsing-progress-text.parsing-progress-primary {
    color: #0d6efd;
}
.parsing-progress-text.parsing-progress-uni {
    color: #05c6e4;
}

.parsing-progress-bar.parsing-progress-yandex .parsing-char-covered,
.parsing-progress-bar.parsing-progress-yandex .parsing-char-uncovered {
    color: #191817;
}

.parsing-progress-bar.parsing-progress-wb .parsing-char-uncovered {
    color: #9f12ed;
}

.parsing-progress-bar.parsing-progress-ozon .parsing-char-uncovered {
    color: #005bff;
}

.parsing-progress-bar.parsing-progress-uni .parsing-char-uncovered {
    color: #05c6e4;
}

/* Родительский контейнер для нескольких блоков */
.label-value-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.5px;
}

/* Блок с опциональным заголовком и списком название — значение */
.label-value-block {
    display: flex;
    flex-direction: column;
}

.label-value-block-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Двухколоночный список: название — значение */
.label-value-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.label-value-row {
    display: grid;
    grid-template-columns: minmax(0, 150px) 1fr;
    gap: 0.5rem 1rem;
    align-items: center;
    min-width: 0;
}

/* Разделитель после каждой строки, кроме последней (те же стили, что у .icon-link-divider) */
.label-value-divider::after {
    content: '';
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin-top: 8px;
    margin-bottom: 6px;
}

.label-value-list > .label-value-divider:last-child::after {
    display: none;
}

.label-value-label {
    word-break: break-word;
    min-width: 0;
    font-weight: 600;
}

.label-value-value {
    word-break: break-word;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    text-align: left;
}
