body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    color: #222;
}
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: #232a3b;
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}
.sidebar-header {
    padding: 24px 20px 16px 20px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: #232a3b;
    border-bottom: 1px solid #2e3650;
}
.logo-text {
    color: #fff;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}
.sidebar-menu li {
    margin: 0;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #bfc9da;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    background: #2e3650;
    color: #fff;
}
.sidebar-menu i {
    margin-right: 12px;
    font-size: 1.2rem;
}
.main-content {
    margin-left: 220px;
    min-height: 100vh;
    padding: 0;
}
.navbar {
    border-bottom: 1px solid #e3e6f0;
    background: #fff;
    padding: 16px 32px;
}
.card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
    border: none;
}
.card-body {
    padding: 32px 24px;
}
.table {
    background: #fff;
    overflow: hidden;
}
.table th, .table td {
    vertical-align: middle;
}
.table thead th {
    background: #f4f6f9;
    font-weight: 500;
}
.navbar-brand {
    margin-left: 10px;
}
.badge-red {
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 4px 7px;
    font-size: 12px;
    position: absolute;
    right: 26px;
    top: 14px;
    min-width: 22px;
    text-align: center;
    display: inline-block;
}
.edit-sku-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    min-width: 24px;
    display: inline-block;
}
.sku-row:hover .edit-sku-btn {
    opacity: 1;
    pointer-events: auto;
}
.save-sku-btn {
    min-width: 24px;
    display: inline-block;
}

/* Компактная таблица */
.table-sm th, .table-sm td {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    font-size: 14px;
    vertical-align: top;
}

.review-text, .answer-text {
    font-size: 14px;
    background: none;
    min-width: 120px;
    cursor: auto;
    overflow: visible;
}

.answer-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    transition: background 0.2s;
}
.answer-text.expanded {
    -webkit-line-clamp: unset;
    max-height: 1000px;
    overflow: visible;
    background: #f8f9fa;
}
.answer-toggle {
    display: block;
    color: #007bff;
    font-size: 0.92em;
    margin-top: 2px;
    cursor: pointer;
    user-select: none;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
}
.answer-toggle:hover {
    text-decoration: underline;
}

/* Стили для таблицы отзывов */
.reviews-table th {
    text-align: center;
    line-height: 14px;
    font-weight: 500;
    color: #2b2c2d;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 15px  ;
}

.reviews-table td {
    vertical-align: top;
}

.reviews-table .review-text,
.reviews-table .answer-text {
    min-width: 200px;
    max-width: 300px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    transition: background 0.2s;
}

.reviews-table .review-text.expanded,
.reviews-table .answer-text.expanded {
    -webkit-line-clamp: unset;
    max-height: 1000px;
    overflow: visible;
    background: #f8f9fa;
}

.review-toggle,
.answer-toggle {
    display: block;
    color: #007bff;
    font-size: 0.92em;
    margin-top: 2px;
    cursor: pointer;
    user-select: none;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
}

.review-toggle:hover,
.answer-toggle:hover {
    text-decoration: underline;
}

.review-text-wrapper {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: background 0.2s;
    position: relative;
    background: none;
}
.review-text-wrapper.expanded {
    -webkit-line-clamp: unset;
    max-height: 1000px;
    overflow: visible;
    background: #f8f9fa;
}
.review-toggle {
    display: block;
    color: #007bff;
    font-size: 0.92em;
    margin-top: 2px;
    cursor: pointer;
    user-select: none;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
}
.review-toggle:hover {
    text-decoration: underline;
}

/* Custom Prompt Modal */
#customPromptModal .modal-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#customPromptModal textarea {
    resize: vertical;
    min-height: 150px;
}

#customPromptModal .btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

#customPromptModal .btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
} 