/* static/print.css */

@page {
    size: A4 landscape;
    margin: 10mm;
}

body {
    background: #fff;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 10pt;
    margin: 0;
    padding: 0;
}

/* 1. ВЫКЛЮЧАЕМ ТУЛБАР И НАВИГАЦИЮ */
header,
nav,
#app_tabs_bar,
.developer-toolbar,
.toolbar {
    display: none !important;
}

/* 2. ВЫКЛЮЧАЕМ ПЕРВУЮ И ПОСЛЕДНЮЮ СЕКЦИИ */
section:first-of-type,
section:last-of-type {
    display: none !important;
}

/* 3. ВЫКЛЮЧАЕМ ИНТЕРАКТИВ, КНОПКИ, ИКОНКИ И ЧЕКБОКСЫ */
button,
.btn,
select,
svg,
i[class*="bi-"],
input[type="checkbox"],
.checkbox,
th:has(input[type="checkbox"]),
td:has(input[type="checkbox"]) {
    display: none !important;
}

/* 4. СБРАСЫВАЕМ ИНЛАЙН-СТИЛИ СЕКЦИЙ (градиенты, min-height, padding) */
section, div {
    background-image: none !important;
    background-color: transparent !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 5. ТАБЛИЦА НА ВЕСЬ ЛИСТ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

thead {
    display: table-header-group;
}

tr {
    page-break-inside: avoid;
}

th, td {
    border: 1px solid #000;
    padding: 4px 6px;
    text-align: left;
}

thead th {
    background-color: #f2f2f2;
}

/* 6. ТЕКСТОВЫЕ И ЧИСЛОВЫЕ ИНПУТЫ — КАК ПЛОСКИЙ ТЕКСТ */
input:not([type="checkbox"]) {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    color: #000;
    text-align: right;
    width: 100%;
    padding: 0;
    margin: 0;
}