/* ==========================================================================
   CajaJacky - Estilos para Impresión y Generación de PDF (Corte de Caja)
   ========================================================================== */

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 10mm !important;
  }

  /* Ocultar elementos de la interfaz interactiva */
  .app-header,
  .quick-actions-bar,
  .fab-add,
  .section-controls,
  .actions-cell,
  .btn,
  .pin-lock-overlay,
  .modal-overlay:not(.print-active),
  .toast-container,
  .no-print {
    display: none !important;
  }

  /* Ajustar contenedor principal para impresión */
  .main-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Documento de reporte imprimible */
  .print-report {
    display: block !important;
    font-family: Arial, sans-serif;
    color: #111;
  }

  .print-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .print-header h1 {
    font-size: 20pt;
    margin: 0 0 4px 0;
    font-weight: 900;
  }

  .print-header p {
    font-size: 10pt;
    margin: 2px 0;
    color: #444;
  }

  .print-summary-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #f4f4f4;
    border: 1px solid #ccc;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
  }

  .print-summary-item {
    text-align: center;
  }

  .print-summary-label {
    font-size: 8.5pt;
    text-transform: uppercase;
    color: #555;
    font-weight: bold;
  }

  .print-summary-value {
    font-size: 13pt;
    font-weight: bold;
    color: #000;
  }

  .print-summary-value.highlight {
    color: #047857;
  }

  /* Tabla de movimientos */
  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 9.5pt;
  }

  .print-table th {
    background-color: #222;
    color: #fff;
    padding: 7px 8px;
    text-align: left;
    font-size: 8.5pt;
    text-transform: uppercase;
  }

  .print-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #ddd;
  }

  .print-table tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  .print-table tfoot td {
    border-top: 2px solid #222;
    border-bottom: 2px solid #222;
  }

  .print-signatures {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    padding-top: 10px;
  }

  .signature-line {
    width: 200px;
    border-top: 1px solid #000;
    text-align: center;
    padding-top: 5px;
    font-size: 9pt;
    font-weight: bold;
  }

  .print-footer {
    text-align: center;
    font-size: 8pt;
    color: #777;
    margin-top: 30px;
    border-top: 1px dashed #ccc;
    padding-top: 8px;
  }
}
