body {
    font-family: Arial, sans-serif;
}

.alert,
#alertBox {
    transition: opacity 0.5s ease-in-out;
}

.fade {
    opacity: 0;
}

.menu-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.offcanvas-end {
    width: 250px;
}

.table-container {
    margin-top: 20px;
}

.tag-field {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-danger,
.btn-success {
    padding: 5px 10px;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    width: 20rem;
}

th {
    resize: horizontal;
    overflow: hidden;
    min-width: 50px;
    max-width: 400px;
    white-space: nowrap;
}

.catalog-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 65%;
    max-width: 100%;
    box-sizing: border-box;
}

.catalog-item {
    width: calc(50% - 10px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.3s;
}

.catalog-item:hover {
    background: #e9ecef;
}

.catalog-title {
    font-size: 16px;
    font-weight: bold;
}

.catalog-description,
.catalog-partnumber {
    font-size: 14px;
}

.catalog-description {
    color: #666;
}

.catalog-partnumber {
    color: #333;
}

.catalog-item.not-found,
.catalog-item.not-found:hover {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    cursor: default;
}

.table-light {
    background-color: #f9f9f9;
}

.table-info {
    background-color: #8ab9db;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

.input-focus {
    border: 2px solid #65b0fa;
    background-color: #e7f1ff;
    transition: all 0.3s ease;
}

.block {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.spoiler-toggle {
    margin: 10px 0;
    padding: 6px 12px;
    background-color: #e2e2e2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.spoiler-content {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

/* ------------------ Табличные ряды ------------------ */

.table-container {
    margin-top: 30px;
}

h3 {
    margin-bottom: 15px;
}

.table-sm td, .table-sm th {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

.table td, .table th {
    vertical-align: middle;
    text-align: start;
}





.data-row.header {
    padding: 10px 20px;
    width: 100%;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #4a4a4a;
    background-color: #f2efe9;
    box-sizing: border-box;
    z-index: 2;
}

.row-container {
    width: 100%;
}

.row {
    display: flex;
    align-items: flex-end;
    padding: 12px 20px 8px;
    /*border-top: 1px solid #e4e4e4;*/
    box-sizing: border-box;
    max-width: 100%;
    transition: background 0.2s ease;
    position: relative;
}

.name-container {
    display: flex;
    width: 35%;
    gap: 7px;
    color: #363636;
}

.name-container .art {
    font-weight: bold;
}

.name-container .partno {
    color: gray;
    font-size: 12px;
    line-height: 23px;
}

.row .descr {
    width: 50%;
    max-width: 400px;
    color: #363636;
}

.row .info {
    width: auto !important; /* принудительно отменяем 100% */
    max-width: none;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 3px;
    background: #f5f5f5;
    border-radius: 3px;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.row .info span {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: 3px;
}

.info .appl {
    background-image: url(/static/img/inform10.png);
    background-repeat: no-repeat;
    background-position: -32px 0;
}

/* ------------------ Ссылки ------------------ */

html a {
    text-decoration: none;
    color: #256892;
    transition: background-color 0.3s ease;
}

/* ------------------ подсветка текста в таблице ------------------ */

.sort-arrow {
    margin-left: 5px;
    font-size: 0.8em;
    color: #6c757d;
}

.text-high {
    color: #198754;
}

.text-low {
    color: #dc3545;
}







