@media print {
  body * { visibility: hidden; }
  #print-container, #print-container * { visibility: visible; }
  #print-container {
    position: absolute; left: 0; top: 0; width: 100%;
    background: white; color: black; padding: 15mm 20mm;
    font-family: 'Inter', Arial, sans-serif; font-size: 11px; line-height: 1.4;
  }

  /* Header */
  .print-header {
    display: flex; align-items: center; gap: 16px;
    border-bottom: 3px solid #0066FF; padding-bottom: 12px; margin-bottom: 16px;
  }
  .print-header img { height: 50px; }
  .print-header h1 { font-size: 18px; color: #0066FF; margin: 0; }
  .print-header p { font-size: 10px; color: #666; margin: 2px 0 0; }

  /* Info grid (client, vehicle, dates) */
  .print-info {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 12px; margin-bottom: 16px; font-size: 11px;
    background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 4px; padding: 10px 12px;
  }
  .print-info dl { margin: 0; }
  .print-info dt { font-weight: 700; color: #333; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
  .print-info dd { color: #444; margin: 0 0 6px 0; font-size: 11px; }

  /* Section titles */
  .print-section-title {
    font-size: 12px; font-weight: 700; color: #0066FF;
    border-bottom: 2px solid #0066FF; padding-bottom: 4px;
    margin: 16px 0 0; text-transform: uppercase; letter-spacing: 0.5px;
  }

  /* Tables */
  .print-table { width: 100%; border-collapse: collapse; margin: 0 0 4px; font-size: 10px; }
  .print-table th {
    background: #e8edf2; padding: 6px 8px; text-align: left;
    border: 1px solid #ccd3db; font-weight: 700; font-size: 9px;
    text-transform: uppercase; letter-spacing: 0.3px; color: #333;
  }
  .print-table td { padding: 5px 8px; border: 1px solid #dde2e8; color: #333; }
  .print-table tbody tr:nth-child(even) { background: #f8f9fb; }
  .print-table tbody tr:hover { background: #eef1f5; }
  .print-subtotal-row td {
    background: #e8edf2 !important; border-top: 2px solid #0066FF;
    font-size: 11px; padding: 8px;
  }

  /* Totals box */
  .print-totals-box {
    margin: 16px 0; padding: 10px 16px;
    border: 2px solid #0066FF; border-radius: 4px;
    width: 280px; margin-left: auto;
  }
  .print-totals-line {
    display: flex; justify-content: space-between; padding: 3px 0;
    font-size: 11px; color: #333;
  }
  .print-totals-grand {
    border-top: 2px solid #0066FF; margin-top: 6px; padding-top: 8px;
    font-size: 14px; font-weight: 800; color: #0066FF;
  }

  /* Observations */
  .print-obs {
    font-size: 10px; color: #555; margin: 12px 0; padding: 8px 10px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 4px;
  }
  .print-obs strong { color: #333; }

  /* Authorization */
  .print-auth {
    text-align: center; margin: 24px 0 8px; font-size: 11px; color: #555;
  }
  .print-auth-date { font-size: 12px; margin-top: 4px; color: #333; }

  /* Footer with signatures */
  .print-footer { margin-top: 32px; display: flex; justify-content: space-between; padding: 0 30px; }
  .print-signature { text-align: center; width: 200px; }
  .print-signature-line { border-top: 1px solid #333; margin-bottom: 4px; }
  .print-signature span { font-size: 10px; color: #555; }

  /* Footer note */
  .print-footer-note {
    text-align: center; font-size: 9px; color: #999;
    margin-top: 16px; font-style: italic;
  }

  .no-print { display: none !important; }

  /* Page breaks */
  @page { margin: 10mm; size: A4; }
  .print-table { page-break-inside: auto; }
  .print-table tr { page-break-inside: avoid; }
}
