/* ====================================
   ПЕЧАТНЫЕ СТИЛИ
   MLM CRM v2.0
   ==================================== */

@media print {
  /* Базовые настройки */
  @page {
    margin: 1.5cm;
    size: A4;
  }
  
  html {
    font-size: 12pt;
  }
  
  body {
    background: white !important;
    color: black !important;
    font-family: Arial, sans-serif;
  }
  
  /* Скрытие всех ненужных элементов */
  .nav-rail,
  .main-header,
  .page-actions,
  .filters-panel,
  .table-controls,
  .pagination,
  .btn,
  button,
  .modal-overlay,
  .tooltip,
  .notification-container,
  .search-wrapper,
  .user-profile,
  .theme-toggle,
  .lang-toggle {
    display: none !important;
  }
  
  /* Основной контент */
  #app {
    display: block;
  }
  
  .main-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .page-content {
    padding: 0 !important;
    overflow: visible !important;
  }
  
  /* Заголовки */
  .page-header {
    border-bottom: 2px solid #000;
    padding-bottom: 1cm;
    margin-bottom: 1cm;
  }
  
  .page-header h2 {
    font-size: 18pt;
    color: black !important;
  }
  
  /* Таблицы */
  .table-container {
    overflow: visible !important;
  }
  
  .data-table {
    width: 100%;
    font-size: 10pt;
    border-collapse: collapse;
  }
  
  .data-table th,
  .data-table td {
    border: 1px solid #000;
    padding: 6px;
    text-align: left;
  }
  
  .data-table th {
    background: #f0f0f0 !important;
    font-weight: bold;
    color: black !important;
  }
  
  .data-table tbody tr {
    page-break-inside: avoid;
  }
  
  /* Карточки */
  .card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #000 !important;
    margin-bottom: 1cm;
  }
  
  .card-header {
    border-bottom: 1px solid #000;
  }
  
  .card-title {
    font-size: 14pt;
    color: black !important;
  }
  
  /* Виджеты дашборда */
  .dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1cm;
  }
  
  .widget {
    border: 1px solid #000;
    box-shadow: none !important;
  }
  
  .widget-value {
    font-size: 24pt;
  }
  
  /* Канбан */
  .kanban-board {
    display: block;
  }
  
  .kanban-column {
    display: inline-block;
    width: 48%;
    margin: 0 1% 1cm 1%;
    vertical-align: top;
    page-break-inside: avoid;
    border: 1px solid #000;
  }
  
  .kanban-column-header {
    border-bottom: 1px solid #000;
    background: #f0f0f0 !important;
  }
  
  .kanban-card {
    border: 1px solid #000;
    margin-bottom: 0.5cm;
    page-break-inside: avoid;
  }
  
  /* Задачи */
  .tasks-group {
    page-break-inside: avoid;
    margin-bottom: 1cm;
  }
  
  .tasks-group-header {
    border-bottom: 2px solid #000;
    margin-bottom: 0.5cm;
  }
  
  .task-card {
    border: 1px solid #000;
    margin-bottom: 0.5cm;
    page-break-inside: avoid;
  }
  
  /* Ссылки */
  a {
    color: black !important;
    text-decoration: none;
  }
  
  a[href]::after {
    content: none;
  }
  
  /* Пустые состояния */
  .empty-state {
    color: #666;
    text-align: center;
    padding: 2cm;
  }
  
  .empty-state i {
    font-size: 48pt;
    margin-bottom: 1cm;
  }
  
  .empty-state h3 {
    font-size: 14pt;
    margin-bottom: 0.5cm;
  }
  
  /* Изображения и иконки */
  i,
  .fas,
  .fab,
  .far {
    color: black !important;
  }
  
  /* Фон и цвета */
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  /* Избегаем разрывов */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    page-break-inside: avoid;
  }
  
  /* Footer для печати */
  @page :footer {
    content: "MLM CRM - " counter(page) " / " counter(pages);
    font-size: 8pt;
    color: #666;
  }
}
