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

.products-catalog-table .col-product-name {
    width: 38%;
}

.products-catalog-table .col-product-program {
    width: 28%;
}

.products-catalog-table .col-product-price {
    width: 14%;
}

.products-catalog-table .col-product-actions {
    width: 20%;
}

.products-catalog-table td:last-child {
    white-space: nowrap;
}

tr.option-category-row {
    cursor: pointer;
}

tr.option-category-row:hover {
    filter: brightness(0.97);
}

tr.option-category-row .option-category-description {
    padding-left: 1.35rem;
}

tr.option-variant-row td:first-child {
    border-top: none;
}

.products-warranties-responsive {
    max-width: 100%;
}

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

.products-warranties-table .col-warranty-name {
    width: 32%;
}

.products-warranties-table .col-warranty-program {
    width: 22%;
}

.products-warranties-table .col-warranty-duration {
    width: 14%;
}

.products-warranties-table .col-warranty-price {
    width: 14%;
}

.products-warranties-table .col-warranty-actions {
    width: 18%;
}

.products-warranties-table th {
    text-align: center;
    vertical-align: middle;
}

.products-warranties-table td {
    vertical-align: top;
}

.products-warranties-table .warranty-catalog-name {
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.products-warranties-table .warranty-catalog-program {
    text-align: center;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.products-warranties-table .warranty-catalog-duration {
    text-align: center;
    white-space: nowrap;
}

.products-warranties-table .warranty-catalog-price {
    text-align: center;
    white-space: nowrap;
}

.products-warranties-table td:last-child {
    white-space: normal;
}

.products-warranties-table .warranty-catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    align-items: flex-start;
}

.products-warranties-table .warranty-catalog-actions .btn-group {
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .products-warranties-table .col-warranty-name {
        width: 30%;
    }

    .products-warranties-table .col-warranty-program {
        width: 20%;
    }

    .products-warranties-table .col-warranty-duration,
    .products-warranties-table .col-warranty-price {
        width: 13%;
    }

    .products-warranties-table .col-warranty-actions {
        width: 24%;
    }
}

@media (max-width: 767.98px) {
    .products-warranties-table th,
    .products-warranties-table td {
        font-size: 0.875rem;
        padding: 0.4rem 0.35rem;
    }

    .products-warranties-table .col-warranty-name {
        width: 34%;
    }

    .products-warranties-table .col-warranty-program {
        width: 22%;
    }

    .products-warranties-table .col-warranty-duration,
    .products-warranties-table .col-warranty-price {
        width: 12%;
    }

    .products-warranties-table .col-warranty-actions {
        width: 20%;
    }

    .products-warranties-table .warranty-catalog-duration,
    .products-warranties-table .warranty-catalog-price {
        white-space: normal;
    }

    .products-warranties-table .warranty-catalog-actions .btn {
        padding: 0.2rem 0.4rem;
    }
}


.on-service-indicator {
    display: inline-block;
    font-weight: bold;
    border: 1px solid #343a40;
    padding: 0 4px;
    line-height: 1.2;
    margin-right: 4px;
    font-size: 0.8rem;
    vertical-align: middle;
}

.supervisor-indicator {
    display: inline-block;
    font-weight: bold;
    border: 1px solid #c56a00;
    background: #fff3e6;
    color: #a85600;
    padding: 0 4px;
    line-height: 1.2;
    margin-right: 4px;
    font-size: 0.8rem;
    vertical-align: middle;
}

.kb-supervisor-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #a85600;
    background: #fff3e6;
    border: 1px solid #f0c78a;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
}

.client-supervisor-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 4px;
    background: #fff3e6;
    color: #a85600;
    border: 1px solid #f0c78a;
}

.conduct-indicator {
    display: inline-block;
    font-weight: bold;
    border: 1px solid #856404;
    padding: 0 4px;
    line-height: 1.2;
    margin-right: 4px;
    font-size: 0.8rem;
    vertical-align: middle;
}

.conduct-indicator-yellow {
    background: #ffc107;
    color: #212529;
    border-color: #d39e00;
}

.conduct-indicator-red {
    background: #dc3545;
    color: #fff;
    border-color: #bd2130;
}

.conduct-banner {
    border-left: 4px solid #ffc107;
    background: #fff8e1;
    color: #5c4b00;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.conduct-banner-red {
    border-left-color: #dc3545;
    background: #fdecea;
    color: #611a15;
}

.conduct-banner-banned {
    border-left-color: #6c757d;
    background: #f1f3f5;
    color: #343a40;
}

.impersonation-banner {
    background: #fff3cd;
    color: #856404;
    font-size: 0.9rem;
}

/* Кастомные стили для КАИС */

/* Оболочка админки и клиентского кабинета (сайдбар + контент) */
.admin-shell,
.client-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    width: 100%;
    min-height: calc(100vh - 56px);
}

.admin-sidebar {
    background-color: #343a40;
}

.client-sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.admin-content,
.client-content {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .admin-shell,
    .client-shell {
        grid-template-columns: 1fr;
    }
}

/* Базовые стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Навигация */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Логотип в навигации */
.navbar-logo {
    height: 40px; /* Пропорциональное масштабирование под высоту фриза */
    width: auto; /* Автоматическая ширина для сохранения пропорций */
    max-width: 200px; /* Максимальная ширина для предотвращения переполнения */
    object-fit: contain; /* Сохранение пропорций без обрезки */
    vertical-align: middle;
}

/* Карточки */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 1rem;
}

/* Чат нейроконсультанта в ЛКК и ЛКА (+30% ширины: 720px → 936px) */
.lkk-chat-card {
    width: 100%;
    max-width: 936px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 12rem);
}

.lkk-chat-header {
    background: #f8f9fa;
    flex-shrink: 0;
}

.lkk-chat-toolbar {
    background: #fff;
    flex-shrink: 0;
}

.lkk-chat-toolbar .input-group-text {
    background: #f8f9fa;
}

.lkk-chat-load-older-wrap .btn {
    white-space: normal;
}

.lkk-chat-date-separator {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0 1rem;
}

.lkk-chat-date-separator span {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #6c757d;
    background: #f1f3f5;
    border-radius: 999px;
}

.lkk-chat-meta {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    line-height: 1.2;
    color: #868e96;
}

.lkk-chat-bubble-wrap-user .lkk-chat-meta {
    text-align: right;
}

.lkk-chat-bubble-wrap-bot .lkk-chat-meta,
.lkk-chat-bubble-wrap-user .lkk-chat-meta time {
    display: block;
}

.lkk-chat-search-hit {
    padding: 0 0.1em;
    background: #fff3bf;
    color: inherit;
}

.lkk-chat-search-status {
    font-style: italic;
}

.lkk-chat-header .lkk-chat-avatar {
    width: 40px;
    height: 40px;
    max-width: 40px;
    min-width: 40px;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #dee2e6;
}

.lkk-chat-messages {
    flex: 1 1 auto;
    min-height: 280px;
    max-height: calc(100vh - 16rem);
    overflow-y: auto;
    background: #fff;
}

.lkk-chat-input {
    flex-shrink: 0;
}

.lkk-chat-input .input-group {
    align-items: stretch;
}

.lkk-chat-input .input-group > .form-control {
    height: calc(1.5em + 0.75rem + 2px);
}

.lkk-chat-input .input-group-append {
    display: flex;
}

.lkk-chat-input .input-group-append .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
    min-width: calc(1.5em + 1.5rem + 2px);
}

body.lkk-chat-presentation footer {
    display: none !important;
}

body.lkk-chat-presentation .lkk-chat-input small.text-muted {
    display: none !important;
}

body.lkk-chat-presentation .lkk-chat-debug-panel {
    display: none !important;
}

body.lkk-chat-presentation main.container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 0 !important;
}

body.lkk-chat-presentation .admin-shell,
body.lkk-chat-presentation .client-shell {
    flex: 1 1 auto;
    height: 100%;
    min-height: calc(100vh - 56px);
    align-items: stretch;
}

/* presentation=1 в ЛКА: /admin/knowledge-base?presentation=1 */
body.lkk-chat-presentation .admin-content > h2.mb-3,
body.lkk-chat-presentation .admin-content #kbTabs,
body.lkk-chat-presentation #kbInfoBlockCard,
body.lkk-chat-presentation #kbDataStatusCard {
    display: none !important;
}

body.lkk-chat-presentation .admin-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

body.lkk-chat-presentation .admin-content > .tab-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.lkk-chat-presentation .admin-content #kb-overview.tab-pane.show.active {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

body.lkk-chat-presentation #adminChatPresentationWrap {
    flex-shrink: 0;
    margin-bottom: 0.5rem !important;
}

body.lkk-chat-presentation .admin-content .lkk-chat-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 936px;
    max-height: none;
    height: auto;
    margin-bottom: 0 !important;
}

body.lkk-chat-presentation .admin-content .lkk-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

/* Скрин для презентации в ЛКК: /client/knowledge-base?presentation=1 */
body.lkk-chat-presentation .client-content > .d-flex.mb-3,
body.lkk-chat-presentation #kbClientInfoCard {
    display: none !important;
}

body.lkk-chat-presentation .client-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

body.lkk-chat-presentation .client-content .lkk-chat-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 936px;
    max-height: none;
    margin-bottom: 0;
}

body.lkk-chat-presentation .client-content .lkk-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.lkk-chat-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.lkk-chat-bubble-wrap {
    max-width: min(100%, 720px);
    min-width: 0;
}

.lkk-chat-bubble-wrap-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.lkk-chat-msg-avatar {
    width: 32px;
    height: 32px;
    max-width: 32px;
    min-width: 32px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 0.5rem;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.lkk-chat-bubble {
    padding: 0.6rem 0.85rem;
    border-radius: 0.75rem;
    max-width: calc(100% - 40px);
    font-size: 0.95rem;
    line-height: 1.45;
}

.lkk-chat-bubble img,
.kb-manual-article-body img,
.tox .tox-edit-area__iframe img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.5rem 0;
}

.lkk-chat-bubble-bot {
    background: #e9ecef;
    color: #212529;
}

.lkk-chat-row-staff .lkk-chat-bubble-staff {
    background: var(--kais-green-light, #eef6e8);
    color: var(--kais-text-dark, #1e2832);
    border: 1px solid var(--kais-green-border, #c5ddb3);
}

.lkk-chat-staff-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--kais-green, #5c9a2e);
    margin-bottom: 0.25rem;
}

.lkk-chat-reply-quote {
    border-left: 3px solid rgba(92, 154, 46, 0.55);
    padding: 0.35rem 0.55rem;
    margin-bottom: 0.45rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.04);
    font-size: 0.82rem;
}

.lkk-chat-bubble-user .lkk-chat-reply-quote {
    border-left-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
}

.lkk-chat-reply-quote-name {
    font-weight: 600;
    margin-bottom: 0.15rem;
    opacity: 0.9;
}

.lkk-chat-reply-quote-text {
    opacity: 0.85;
    word-break: break-word;
}

.admin-client-chat-card .lkk-chat-messages {
    max-height: 420px;
    overflow-y: auto;
}

.lkk-chat-bubble-user {
    background: var(--kais-green, #5c9a2e);
    color: #fff;
}

.telegram-bot-profile .lkk-chat-avatar {
    width: 56px;
    height: 56px;
}

/* Таблицы */
.table {
    font-size: 0.9rem;
}

/* Адаптивные таблицы для мобильных устройств */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Пагинация */
.pagination {
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Адаптивные стили для файлов и новостей */
@media (max-width: 575.98px) {
    .list-group-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .list-group-item .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .card-img-top {
        max-height: 200px !important;
    }
}

/* Стили для TinyMCE */
.tox-tinymce {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem;
}

.tox .tox-edit-area__iframe {
    background-color: #fff;
}

.tox-tinymce-aux,
.tox-silver-sink,
.tox-dialog-wrap,
.tox-dialog,
.tox-dialog__body-nav,
.tox-menu,
.tox-collection {
    z-index: 10050 !important;
}

.pagination-info {
    margin: 1rem 0;
    color: #6c757d;
}

/* Основной контент */
main {
    flex: 1;
}

/* Контейнеры */
.container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Формы */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
}

#licenseConfigEditor .license-option-date-input {
    width: auto;
    max-width: 12rem;
    display: inline-block;
}

#licenseConfigEditor .online-assistant-url-panel {
    border-left: 1px solid #dee2e6;
    padding-left: 1rem;
}

@media (max-width: 991.98px) {
    #licenseConfigEditor .online-assistant-url-panel {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #dee2e6;
        padding-top: 0.75rem;
    }
}

/* Кнопки */
.btn {
    white-space: nowrap;
}

.btn-block {
    width: 100%;
}

/* Футер */
footer {
    margin-top: auto;
}

/* ============================================
   МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВНОСТИ
   ============================================ */

/* Смартфоны (до 576px) - маленькие экраны */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-logo {
        height: 32px; /* Уменьшенный размер для мобильных */
        max-width: 150px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    main.container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .card-header h3 {
        font-size: 1.25rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Скрываем неважные колонки в таблицах на мобильных */
    .table .d-none-mobile {
        display: none !important;
    }
    
    /* Вертикальное расположение элементов формы */
    .form-row {
        flex-direction: column;
    }
    
    .form-row .col,
    .form-row [class*="col-"] {
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Смартфоны 7" и планшеты в портретной ориентации (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.35rem;
    }
    
    .navbar-logo {
        height: 36px;
        max-width: 180px;
    }
    
    .container {
        max-width: 540px;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .card-header h3 {
        font-size: 1.5rem;
    }
}

/* Планшеты (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    /* Адаптивные колонки для планшетов */
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Десктопы (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .table {
        font-size: 0.95rem;
    }
    
    /* Оптимизация для стандартных мониторов */
    .card {
        margin-bottom: 1.5rem;
    }
}

/* Большие десктопы (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919.98px) {
    .container {
        max-width: 1140px;
    }
    
    .table {
        font-size: 1rem;
    }
    
    /* Увеличенные отступы для комфортного просмотра */
    main.container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .card {
        margin-bottom: 2rem;
    }
    
    .card-header h3 {
        font-size: 1.75rem;
    }
}

/* 2K мониторы и выше (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    body {
        font-size: 1.05rem;
    }
    
    .table {
        font-size: 1.05rem;
    }
    
    /* Увеличенные отступы для больших экранов */
    main.container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .card {
        margin-bottom: 2.5rem;
        padding: 2rem;
    }
    
    .card-header {
        padding: 1.5rem 2rem;
    }
    
    .card-header h3 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1.05rem;
    }
    
    .form-control {
        padding: 0.75rem 1rem;
        font-size: 1.05rem;
    }
    
    .navbar-brand {
        font-size: 1.75rem;
    }
    
    /* Оптимизация таблиц для больших экранов */
    .table th,
    .table td {
        padding: 1rem 1.5rem;
    }
    
    /* Улучшенная читаемость на больших экранах */
    .pagination {
        margin-top: 2rem;
    }
    
    .pagination .page-link {
        padding: 0.75rem 1rem;
        font-size: 1.05rem;
    }
}

/* Очень большие экраны (2560px+) - 2K и 4K мониторы */
@media (min-width: 2560px) {
    .container {
        max-width: 1600px;
    }
    
    body {
        font-size: 1.1rem;
    }
    
    .table {
        font-size: 1.1rem;
    }
    
    main.container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
    
    .card {
        padding: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .card-header {
        padding: 2rem 2.5rem;
    }
    
    .card-header h3 {
        font-size: 2.25rem;
    }
    
    .card-body {
        padding: 2.5rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .form-control {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
    }
    
    .table th,
    .table td {
        padding: 1.25rem 2rem;
    }
}

/* Горизонтальная ориентация на мобильных устройствах */
@media (max-width: 767.98px) and (orientation: landscape) {
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    main.container {
        padding-top: 1rem;
    }
}

/* Высокая плотность пикселей (Retina и подобные) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
}

/* Печать */
@media print {
    .navbar,
    footer,
    .btn,
    .pagination {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

input.phone-input-narrow {
    width: 11.35rem;
    max-width: 100%;
}

.contract-plaque-clickable {
    cursor: pointer;
}

.contract-plaque-clickable:hover,
.contract-plaque-clickable:focus {
    background-color: #e8f4ff !important;
    outline: none;
}

.contract-subject-input {
    overflow: hidden;
    resize: vertical;
    min-height: 58px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.contract-spec-order-col {
    width: 72px;
}

.contract-spec-price-col {
    width: 180px;
}

.contract-spec-table .contract-spec-price-cell {
    white-space: nowrap;
}

.contract-spec-table tfoot .contract-spec-total-row td {
    border-top-width: 2px;
    background: #f8f9fa;
}

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

.client-documents-table th,
.client-documents-table td {
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}

.client-documents-table .client-doc-col-date {
    width: 6.5rem;
}

.client-documents-table .client-doc-col-number {
    width: 8.5rem;
}

.client-documents-table .client-doc-col-type {
    width: 12rem;
}

.client-documents-table .client-doc-col-status {
    width: 6.5rem;
}

.client-documents-table .client-doc-col-signed {
    width: 9rem;
}

.client-documents-table .client-doc-col-actions {
    width: auto;
    min-width: 11rem;
}

.client-documents-table .client-doc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.contract-spec-order-cell .btn-group-sm > .btn {
    padding: 0.1rem 0.35rem;
}

#licenseConfigEditor .license-config-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.35rem 0.65rem;
}

#licenseConfigEditor .license-config-row-head {
    margin-bottom: 0.25rem;
    padding: 0 0.5rem;
    align-items: center;
}

#licenseConfigEditor .license-config-check {
    flex: 0 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

#licenseConfigEditor .license-config-check .form-check-input,
#licenseConfigEditor .license-config-check input[type="checkbox"] {
    position: static;
    margin: 0;
}

#licenseConfigEditor .license-config-name {
    flex: 1 1 12rem;
    min-width: 0;
    align-self: center;
}

#licenseConfigEditor .license-config-field-label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    line-height: 1.15;
    color: #6c757d;
    white-space: nowrap;
}

#licenseConfigEditor .license-config-inline-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.35rem 0.75rem;
}

#licenseConfigEditor .license-config-inline-field {
    flex: 0 0 auto;
}

#licenseConfigEditor .license-config-inline-field-narrow {
    flex-basis: 5.5rem;
}

#licenseConfigEditor .license-config-inline-field-action {
    flex: 0 0 auto;
}

#licenseConfigEditor .license-config-price-input {
    width: 9rem;
    min-width: 9rem;
    max-width: 100%;
}

#licenseConfigEditor .license-config-date-input,
#licenseConfigEditor .license-option-date-input {
    width: 10.5rem;
    max-width: 100%;
}

#licenseConfigEditor .license-config-date-readonly {
    width: 10.5rem;
    max-width: 100%;
    height: calc(1.5em + 0.5rem + 2px);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    line-height: 1.5;
    background-color: #e9ecef;
    color: #495057;
    cursor: default;
}

#licenseConfigEditor .license-config-field {
    flex: 0 0 auto;
}

#licenseConfigEditor .license-config-field-price {
    flex-basis: 9rem;
    max-width: 9rem;
}

#licenseConfigEditor .license-warranty-mode-wrap {
    flex-basis: 8.5rem;
    max-width: 9.5rem;
}

#licenseConfigEditor .license-config-field-narrow,
#licenseConfigEditor .license-config-field-days,
#licenseConfigEditor .license-config-field-workplaces {
    flex-basis: 5.5rem;
    max-width: 6.5rem;
}

#licenseConfigEditor .license-warranty-days-preview {
    margin-left: 2.25rem;
}

#licenseConfigEditor .license-config-field-wide,
#licenseConfigEditor .license-config-field-period {
    flex-basis: 9rem;
    max-width: 11rem;
}

#licenseConfigEditor .license-service-start-wrap,
#licenseConfigEditor .license-service-start-head,
#licenseConfigEditor .license-config-field-date {
    flex-basis: 10.5rem;
    max-width: 11rem;
}

#licenseConfigEditor .license-config-field .form-control,
#licenseConfigEditor .license-config-inline-field .form-control {
    width: 100%;
}

#licenseConfigEditor .license-config-field .form-control-sm,
#licenseConfigEditor .license-config-inline-field .form-control-sm,
#licenseConfigEditor .license-config-price-input,
#licenseConfigEditor .license-config-date-input {
    height: calc(1.5em + 0.5rem + 2px);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    line-height: 1.5;
}

#licenseConfigEditor .license-warranty-row .license-config-row,
#licenseConfigEditor .license-service-row .license-config-row {
    min-height: 0;
}

#licenseConfigEditor .option-item .card-body,
#licenseConfigEditor .license-service-row .card-body,
#licenseConfigEditor .license-warranty-row .card-body,
#licenseConfigEditor .workplace-purchase-item .card-body {
    padding: 0.5rem 0.75rem;
}

#licenseConfigEditor .option-purchase-date {
    margin-top: 0.35rem !important;
}

#licenseConfigEditor .option-purchase-date .form-text {
    margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
    #licenseConfigEditor .license-config-field,
    #licenseConfigEditor .license-config-field-wide,
    #licenseConfigEditor .license-config-field-period,
    #licenseConfigEditor .license-service-start-wrap,
    #licenseConfigEditor .license-config-field-date,
    #licenseConfigEditor .license-config-field-price,
    #licenseConfigEditor .license-config-inline-field {
        flex: 1 1 100%;
        max-width: none;
    }

    #licenseConfigEditor .license-config-price-input,
    #licenseConfigEditor .license-config-date-input {
        width: 100%;
    }
}

.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.95rem;
}

.site-footer-top {
    margin-bottom: 1rem;
    gap: 1.5rem 2rem;
}

.site-footer-hours {
    line-height: 1.5;
}

.site-footer-hours-row .site-footer-contacts-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.site-footer-phone a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.site-footer-phone a:hover,
.site-footer-email a:hover {
    text-decoration: underline;
}

.site-footer-email a {
    color: inherit;
    text-decoration: none;
}

.site-footer-contact-line {
    line-height: 1.5;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.25rem;
}

.site-footer-link {
    color: color-mix(in srgb, var(--kais-green, #5c9a2e) 80%, #000);
    text-decoration: none;
    white-space: nowrap;
}

.site-footer-link:hover {
    color: color-mix(in srgb, var(--kais-green, #5c9a2e) 65%, #000);
    text-decoration: underline;
}

.site-footer-copy {
    font-size: 0.875rem;
}

.kb-public-article-content img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 768px) {
    .site-footer-top {
        text-align: left;
    }

    .site-footer-hours-row {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-start;
        gap: 0 0.4rem;
    }

    .site-footer-hours-row .site-footer-contacts-title {
        display: inline;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .site-footer-nav {
        justify-content: flex-start;
    }
}
