/* ===== БАЗОВЫЕ СБРОСЫ И ТИПОГРАФИКА ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f5f7f5; color: #1e2e1a; }
a { color: #2d5e3b; text-decoration: none; }
a:hover { text-decoration: underline; }
.error { color: #c0392b; background: #ffeaea; padding: 8px; border-radius: 6px; margin-bottom: 10px; }
.success { color: #2d5e3b; background: #e3f5e3; padding: 8px; border-radius: 6px; margin-bottom: 10px; }

/* ===== ФОРМЫ И КНОПКИ ===== */
form input, form button { width: 100%; padding: 10px; margin-bottom: 10px; border-radius: 6px; border: 1px solid #ccc; }
form button { background: #2d5e3b; color: white; font-weight: bold; cursor: pointer; border: none; }
button { cursor: pointer; }

/* ===== АВТОРИЗАЦИЯ ===== */
.auth-container, .app { max-width: 500px; margin: 30px auto; padding: 20px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.auth-container h2 { text-align: center; margin-bottom: 20px; }

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.app { max-width: 900px; margin: 20px auto; padding: 0; background: none; box-shadow: none; }

/* ===== ШАПКА ===== */
header { background: white; padding: 15px 20px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.user-bar span { margin-right: 15px; }

/* ===== ВКЛАДКИ ===== */
.tabs { display: flex; gap: 10px; margin-bottom: 10px; }
.tabs button { flex: 1; padding: 10px; background: #e0e8de; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; }
.tabs button.active { background: #2d5e3b; color: white; }

/* ===== КОНТЕНТ ===== */
#content { background: white; padding: 20px; border-radius: 12px; min-height: 400px; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ===== СПИСКИ (чек‑листы) ===== */
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #f9faf9; margin-bottom: 6px; border-radius: 8px; cursor: pointer; }
.list-item:hover { background: #eef2ec; }
.role { font-size: 0.8rem; color: #5f6b5c; margin-left: 10px; }
.share-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.invite { background: #fff9e6; padding: 8px; margin-bottom: 5px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; }
.invite button { background: #2d5e3b; color: white; border: none; padding: 5px 10px; border-radius: 6px; cursor: pointer; }

#items-panel ul { list-style: none; margin-top: 15px; }
#items-panel li { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee; transition: background 0.2s; }
#items-panel li.checked .item-text { text-decoration: line-through; color: #7d9a83; }
.item-text { flex: 1; cursor: default; }
#items-panel li input[type="checkbox"] { margin-right: 10px; transform: scale(1.2); flex-shrink: 0; accent-color: #2d5e3b; }
.add-item { margin-top: 15px; display: flex; gap: 10px; }
.add-item input { flex: 1; padding: 8px; border-radius: 6px; border: 1px solid #ccc; }
#items-list li.dragging { opacity: 0.5; background: #e0e0e0; }
#items-list li.drag-over { border-top: 3px solid #2d5e3b; }
.drag-handle { display: inline-block; cursor: grab; margin-right: 8px; font-size: 1.2em; color: #999; user-select: none; transition: color 0.2s; flex-shrink: 0; }
.drag-handle:active { cursor: grabbing; }
#items-list li:hover .drag-handle { color: #555; }

/* ===== ЧАТ ===== */
.chat-container { display: flex; height: 60vh; }
.chat-sidebar { width: 200px; border-right: 1px solid #eee; padding-right: 10px; }
.chat-main { flex: 1; display: flex; flex-direction: column; padding-left: 10px; position: relative; }
#chat-messages { flex: 1; overflow-y: auto; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; padding: 10px; background: #fafafa; }
.message { margin-bottom: 8px; }
.message b { color: #1e3a2f; }
.chat-input-area { display: flex; gap: 5px; position: relative; }
.chat-input-area textarea { flex: 1; padding: 8px; border-radius: 6px; border: 1px solid #ccc; resize: vertical; min-height: 40px; max-height: 120px; }
.chat-input-area button { align-self: flex-end; padding: 8px 15px; background: #2d5e3b; color: white; border: none; border-radius: 6px; }
#send-msg-btn, #invite-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0 8px; color: #2d5e3b; }
#enable-notifications-btn { background: #2d5e3b; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 0.9em; }
#enable-notifications-btn:hover { background: #1e3a2f; }

/* Мобильная версия чата */
.mobile-only { display: none; }
@media (max-width: 700px) {
    .mobile-only { display: inline-block !important; }
    .chat-container {
        position: relative; overflow: hidden; flex-direction: column;
        height: calc(100vh - 120px); min-height: 400px;
    }
    .chat-sidebar {
        position: absolute; top: 0; left: -100%; width: 80%; height: 100%;
        background: white; z-index: 10; transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1); padding: 15px; overflow-y: auto;
    }
    .chat-sidebar.sidebar-visible { left: 0; }
    .chat-main { width: 100%; padding-left: 0; display: flex; flex-direction: column; flex: 1; overflow: hidden; }
    #show-sidebar-btn {
        display: inline-block !important; background: #2d5e3b !important; color: white !important;
        border: none; border-radius: 6px; padding: 5px 10px; font-size: 1.2rem; margin-right: 10px;
    }
    #close-sidebar-btn { display: inline-block !important; }
    #room-title { flex: 1; }
    #chat-messages { flex: 1; overflow-y: auto; margin-bottom: 10px; }
    .chat-sidebar-right {
        width: 100% !important; border-left: none; border-top: 1px solid #eee;
        margin-left: 0 !important; margin-top: 5px; padding: 5px 0 0 0;
        max-height: 120px; overflow-y: auto;
    }
    #member-panel { display: block; width: 100%; }
    .chat-input-area { flex-shrink: 0; margin-top: 5px; }
}

/* Комнаты */
.chat-room { padding: 10px; margin: 5px 0; background: #eef2f0; border-radius: 8px; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; gap: 5px; }
.chat-room:hover { background: #d0ddd4; }
.chat-link { color: #1a73e8; text-decoration: underline; }
.room-name { flex: 1; font-weight: 500; }
.room-key, .room-rename, .room-delete { background: none; border: none; cursor: pointer; font-size: 0.9em; padding: 2px 5px; }

/* Панель участников */
.chat-sidebar-right { width: 180px; border-left: 1px solid #eee; padding-left: 10px; margin-left: 10px; }
.member { padding: 3px 0; font-size: 0.9em; display: flex; align-items: center; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.online .status-dot { background: #2ecc71; }
.offline .status-dot { background: #ccc; }
.remove-member-btn { background: none; border: none; cursor: pointer; font-size: 0.7rem; padding: 2px 2px; border-radius: 4px; color: #bbb; transition: all 0.25s ease; margin-left: auto; }
.remove-member-btn:hover { color: #e74c3c; background: #fde8e8; transform: scale(1.2); }

/* Сообщения */
.msg-time { font-size: 0.7em; color: #888; margin-left: 8px; }
.msg-edited { font-size: 0.7em; color: #999; margin-left: 5px; }
.sender-name { cursor: pointer; color: #2d5e3b; }
.sender-name:hover { text-decoration: underline; }
.room-unread-badge { background: #e74c3c; color: white; border-radius: 50%; padding: 2px 6px; font-size: 0.75em; margin-left: 5px; display: inline-block; line-height: 1; }
.chat-image { max-width: 200px; max-height: 200px; object-fit: cover; border-radius: 6px; margin: 5px 0; cursor: pointer; }
.chat-file-link { color: #1a73e8; text-decoration: underline; }

/* ===== ПРОФИЛЬ ===== */
.profile-container { max-width: 600px; margin: 30px auto; background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.profile-card { background: #f9faf9; padding: 15px; border-radius: 8px; margin-bottom: 15px; }
.profile-card h3 { margin-bottom: 10px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 10px; }
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }
.profile-card form input[type="text"], .profile-card form input[type="password"] { width: 100%; }

/* ===== НОВОСТИ ===== */
.news-item { background: #f9faf9; padding: 15px; border-radius: 8px; margin-bottom: 10px; }
.news-item h3 { margin-bottom: 5px; }
.news-content { margin-bottom: 10px; }
.news-meta { font-size: 0.8em; color: #666; }
.news-actions { margin-top: 10px; }
.news-actions button { background: none; border: none; cursor: pointer; font-size: 1.2em; margin-right: 8px; }
.news-content ul, .news-content ol { margin: 10px 0 10px 20px; padding-left: 20px; }
.news-content li { margin-bottom: 4px; list-style: disc; }
.news-content ol li { list-style: decimal; }
.news-content img { max-width: 100%; height: auto; display: block; margin: 10px 0; border-radius: 6px; }

/* Общие стили для контента новостей и карточек канбана */
.news-content blockquote, .card-description blockquote {
    margin: 10px 0; padding: 5px 15px; border-left: 3px solid #ccc; background: #f9f9f9;
}
.news-content pre, .card-description pre {
    background: #f4f4f4; border: 1px solid #ddd; border-radius: 6px;
    padding: 10px; overflow-x: auto; font-family: 'Courier New', monospace; margin: 10px 0;
}
.news-content code, .card-description code {
    background: #f4f4f4; padding: 2px 4px; border-radius: 4px; font-family: 'Courier New', monospace;
}

/* Принудительные маркеры для списков, созданных Quill */
.news-content ul li, .card-description ul li {
    list-style-type: disc !important;
    margin-left: 20px;
}
.news-content ol li, .card-description ol li {
    list-style-type: decimal !important;
    margin-left: 20px;
}
/* Для вложенных списков (на всякий случай) */
.news-content li li, .card-description li li {
    margin-left: 20px;
}
/* Стиль для блока кода в Quill */
.ql-code-block {
    background: #23241f;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    color: #f8f8f2;
}
/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal { background: white; padding: 20px; border-radius: 12px; min-width: 300px; max-width: 90%; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.modal h3 { margin-bottom: 15px; }
.modal input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; margin-bottom: 15px; }
.modal-buttons { display: flex; justify-content: flex-end; gap: 10px; }
.modal-buttons button { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; }
.modal-ok { background: #2d5e3b; color: white; }
.modal-cancel { background: #ddd; }
.modal-body { margin-bottom: 15px; line-height: 1.5; }

/* ===== КОНТЕКСТНОЕ МЕНЮ ===== */
.context-menu { position: absolute; background: white; border: 1px solid #ccc; border-radius: 6px; box-shadow: 2px 2px 10px rgba(0,0,0,0.1); z-index: 1000; min-width: 150px; }
.context-menu div { padding: 8px 12px; cursor: pointer; font-size: 0.9rem; }
.context-menu div:hover { background: #f0f0f0; }

/* Адаптивное меню навигации */
.tabs { position: relative; display: flex; align-items: center; }
.tab-hamburger { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; color: #2d5e3b; padding: 0 10px; }
.tab-list { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-list.open { display: flex; }
@media (max-width: 700px) {
    .tab-hamburger { display: block; }
    .tab-list {
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0;
        background: white; border: 1px solid #ddd; border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 100; padding: 10px; width: 220px;
    }
    .tab-list .tab { width: 100%; text-align: left; padding: 10px; }
}

/* ===== ПАНЕЛЬ ЭМОДЗИ ===== */
#emoji-panel { position: absolute; bottom: 70px; right: 0; background: white; border: 1px solid #ccc; border-radius: 8px; padding: 8px; display: none; flex-wrap: wrap; gap: 5px; max-width: 220px; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.emoji-item { cursor: pointer; font-size: 1.2rem; padding: 2px; }
.emoji-item:hover { background: #f0f0f0; border-radius: 4px; }

/* ===== ТАБЛИЦА АДМИНКИ ===== */
#users-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
#users-table th, #users-table td { padding: 10px; border: 1px solid #ddd; text-align: left; }
#users-table th { background: #2d5e3b; color: white; }
#users-table tr:hover { background: #f0f0f0; }

/* ===== ЛАЙТБОКС ===== */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; justify-content: center; align-items: center; z-index: 2000; cursor: zoom-out; }
.lightbox-overlay img { max-width: 90%; max-height: 90%; box-shadow: 0 0 30px rgba(0,0,0,0.5); border-radius: 6px; cursor: default; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 36px; cursor: pointer; z-index: 2001; }

/* ===== АДАПТИВНОСТЬ (общая) ===== */
@media (max-width: 700px) {
    #users-table { display: block; overflow-x: auto; }
}

/* ===== КАНБАН ===== */
.kanban-board-list { margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 5px; }
.kanban-board-item { display: inline-block; padding: 8px 15px; background: #f0f0f0; border-radius: 6px; cursor: pointer; }
.kanban-board-item.active { background: #2d5e3b; color: white; }
.kanban-columns { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.kanban-column { background: #f9faf9; border-radius: 8px; padding: 0; min-width: 220px; flex: 1; display: flex; flex-direction: column; }
.kanban-column-header { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-radius: 8px 8px 0 0; border-bottom: 1px solid #ddd; }
.kanban-column-header .column-title { flex: 1; cursor: default; }
.kanban-column-header .column-menu-btn { background: none; border: none; font-size: 1.2em; cursor: pointer; color: #666; padding: 0 5px; }
.kanban-column-header .column-menu-btn:hover { color: #333; }
.kanban-cards { min-height: 60px; padding: 10px; }
.kanban-card { background: white; padding: 8px; margin-bottom: 6px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); cursor: pointer; transition: box-shadow 0.2s; }
.kanban-card:hover { box-shadow: 0 3px 8px rgba(0,0,0,0.15); }
.add-card-btn { background: none; border: 1px dashed #aaa; color: #666; width: calc(100% - 20px); margin: 0 10px 10px; padding: 6px; border-radius: 6px; cursor: pointer; }
.add-card-btn:hover { background: #e0e0e0; }
.card-mini-author { font-size: 0.7em; color: #666; margin-top: 3px; }
.card-mini-date { font-size: 0.65em; color: #999; }
.card-details img { max-width: 100%; height: auto; }
.modal .card-details { max-height: 70vh; overflow-y: auto; }
.card-title { font-weight: bold; margin-bottom: 4px; }
.card-meta { font-size: 0.75em; color: #666; }
.card-detail-header { border-radius: 4px 4px 0 0; margin-bottom: 10px; }
.card-description img { max-width: 100%; height: auto; }
.modal-body { max-height: 70vh; overflow-y: auto; }
.color-palette { display: flex; gap: 5px; align-items: center; margin-bottom: 10px; }
.color-swatch { width: 20px; height: 20px; border-radius: 4px; border: 1px solid #ccc; cursor: pointer; }
.color-swatch.active { box-shadow: 0 0 0 2px #2d5e3b; }
.color-custom { width: 20px; height: 20px; border-radius: 4px; border: 1px dashed #888; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: bold; color: #666; }
.card-description ul, .card-description ol { margin: 10px 0 10px 20px; padding-left: 20px; }
.card-description li { margin-bottom: 4px; list-style: disc; }
.card-description ol li { list-style: decimal; }
.card-description img { max-width: 100%; height: auto; }
.column-menu { position: absolute; background: white; border: 1px solid #ccc; border-radius: 6px; box-shadow: 2px 2px 10px rgba(0,0,0,0.1); z-index: 1000; min-width: 160px; }
.column-menu div { padding: 8px 12px; cursor: pointer; font-size: 0.9rem; }
.column-menu div:hover { background: #f0f0f0; }

#member-panel { display: block; }

/* ===== ПОХОДНЫЙ УЧЁТ ===== */
.trip-panel { padding: 10px; }
.trip-item { padding: 8px 12px; margin: 4px 0; background: #f0f0f0; border-radius: 6px; cursor: pointer; }
.trip-item.active { background: #2d5e3b; color: white; }
.trip-tabs { display: flex; gap: 10px; margin: 15px 0 10px; }
.trip-tab { background: #e0e0e0; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.trip-tab.active { background: #2d5e3b; color: white; }
.shift-item, .shopping-item { background: #f9f9f9; padding: 8px; margin: 5px 0; border-radius: 6px; }
.shift-item select, .shopping-item select { margin-top: 5px; padding: 4px; border-radius: 4px; border: 1px solid #ccc; }
.member-item { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.member-item button { background: none; border: none; cursor: pointer; font-size: 0.9em; }
.shift-item button, .shopping-item button { margin-left: 5px; background: none; border: none; cursor: pointer; }
.expense-item { padding: 6px; border-bottom: 1px solid #eee; }
.member-item button, .shift-item button, .shopping-item button { background: none; border: none; cursor: pointer; font-size: 0.9em; margin-left: 5px; }

/* ===== СВОДНЫЕ ТАБЛИЦЫ ===== */
.summary-table { display: flex; flex-direction: column; gap: 20px; }
.summary-card { background: #f9f9f9; padding: 10px; border-radius: 8px; }
.summary-card table { width: 100%; border-collapse: collapse; margin-top: 5px; }
.summary-card th, .summary-card td { border: 1px solid #ddd; padding: 6px; text-align: left; }
@media (max-width: 600px) {
    .summary-card table, .summary-card thead, .summary-card tbody, .summary-card th, .summary-card td, .summary-card tr { display: block; }
    .summary-card thead tr { display: none; }
    .summary-card td {
        text-align: right; padding-left: 50%; position: relative;
        word-break: break-word; overflow-wrap: break-word; min-height: 1.5em;
    }
    .summary-card td::before {
        content: attr(data-label); position: absolute; left: 10px; top: 6px;
        font-weight: bold; white-space: nowrap;
    }
    .summary-card table tr { margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; padding: 8px; background: #fff; }
    .summary-card table td { border-bottom: 1px solid #eee; padding: 6px 8px; font-size: 0.9rem; }
}

/* ===== ПЕЧАТЬ (только внутри @media print) ===== */
@media print {
    /* Скрываем всё лишнее: шапку, меню, кнопки, формы, панели, контейнеры */
    header, .tabs, .no-print, #hamburger-btn, #tab-list,
    .trip-tabs, .trip-tab, .chat-container, .kanban-panel,
    button, .news-actions, .member-item button, .shift-item button,
    .shopping-item button, .expense-item button, .modal-overlay,
    #content .trip-tabs, #content .trip-tab, .add-card-btn,
    .column-menu-btn, .column-menu, .context-menu,
    .chat-input-area, .chat-sidebar, .chat-sidebar-right,
    .kanban-column-header .column-menu-btn,
    .kanban-column .add-card-btn, .kanban-column .column-menu-btn,
    form, input, select, textarea, .modal-buttons,
    .trip-item, .trip-list, .list-item, .invite,
    #items-panel, #items-panel *,
    .lightbox-overlay, .ql-toolbar, .ql-container,
    .ql-editor, .quill-editor-container,
    .news-actions, #add-news-btn,
    #users-table, .admin-panel, .user-bar,
    .auth-container, .profile-container,
    .app header, .app .tabs, .app .tab-hamburger,
    .app #hamburger-btn, .app .tab-list,
    .app .no-print, .app .chat-sidebar, .app .chat-sidebar-right,
    .app .chat-input-area, .app .chat-main .chat-input-area,
    .app .chat-messages, .app #chat-messages,
    .app .trip-panel .trip-tabs,
    .app .trip-panel button:not(.print-btn),
    .app .trip-panel .trip-tab,
    .app .trip-panel .member-item button,
    .app .trip-panel .shift-item button,
    .app .trip-panel .shopping-item button,
    .app .trip-panel .expense-item button,
    .app .trip-panel .trip-item,
    .app .trip-panel #trip-list,
    .app .trip-panel #trip-invites {
        display: none !important;
    }

    /* Показываем только нужные контейнеры */
    #print-todo-container,
    #print-todo-container *,
    .print-only,
    .print-only * {
        display: block !important;
    }

    /* Для списков */
    #print-todo-container .print-todo-list {
        display: block !important;
        margin: 0 auto !important;
        padding: 20px !important;
        max-width: 800px !important;
        background: white !important;
    }

    #print-todo-container .print-todo-list .print-header {
        text-align: center !important;
        font-size: 18pt !important;
        font-weight: bold !important;
        margin-bottom: 15px !important;
    }

    #print-todo-container .print-todo-list ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #print-todo-container .print-todo-list li {
        display: flex !important;
        align-items: center !important;
        padding: 6px 0 !important;
        border-bottom: 1px solid #ddd !important;
        font-size: 12pt !important;
    }

    #print-todo-container .print-todo-list li input[type="checkbox"] {
        display: inline-block !important;
        width: 18px !important;
        height: 18px !important;
        margin-right: 12px !important;
        accent-color: #000 !important;
        flex-shrink: 0 !important;
    }

    #print-todo-container .print-todo-list li .item-text {
        flex: 1 !important;
        padding: 0 5px !important;
    }

    /* Для сводок (таблицы) */
    .print-only .summary-card table {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 10px 0 !important;
        table-layout: fixed !important;
    }
    .print-only .summary-card thead {
        display: table-header-group !important;
    }
    .print-only .summary-card tbody {
        display: table-row-group !important;
    }
    .print-only .summary-card tr {
        display: table-row !important;
    }
    .print-only .summary-card th,
    .print-only .summary-card td {
        display: table-cell !important;
        border: 1px solid #000 !important;
        padding: 6px 8px !important;
        text-align: left !important;
        vertical-align: middle !important;
        background: white !important;
        color: black !important;
        font-size: 11pt !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    .print-only .summary-card td::before,
    .print-only .summary-card td[data-label]::before {
        content: none !important;
        display: none !important;
    }

    .print-only .summary-card {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 20px !important;
        padding: 10px !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
    }

    .print-only .summary-card h5 {
        margin: 0 0 8px 0 !important;
        font-size: 14pt !important;
        font-weight: bold !important;
    }

    .print-only .print-header-trip {
        text-align: center !important;
        font-size: 16pt !important;
        font-weight: bold !important;
        margin-bottom: 15px !important;
        border-bottom: 2px solid #000 !important;
        padding-bottom: 10px !important;
    }
        /* Убираем лишние отступы сверху у списков */
    body, html {
        margin: 0 !important;
        padding: 0 !important;
    }
    #print-todo-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
        position: absolute !important;
        top: 0;
        width: 100% !important;
    }
    #print-todo-container .print-todo-list {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .lists-panel>h3 {display: none !important;}
}