/* ==========================================================================
   BM & Traffic Ops Hub - Print Stylesheet
   Executive Client Report / PDF Generator Styling
   ========================================================================== */

/* Screen Report Preview Container */
.report-sheet {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  max-width: 920px;
  margin: 0 auto 30px auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-family: var(--font-body);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

.report-company-info h2 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.25;
}

.report-company-info p {
  color: #64748b;
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.report-meta {
  text-align: right;
}

.report-badge {
  display: inline-block;
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.report-meta p {
  font-size: 0.84rem;
  color: #64748b;
}

/* Summary Grid inside Report */
.report-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.report-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.report-summary-box .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.report-summary-box .value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.report-summary-box.highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.report-summary-box.highlight .value {
  color: #15803d;
}

.report-summary-box.pending-box {
  background: #fffbeb;
  border-color: #fde68a;
}

.report-summary-box.pending-box .value {
  color: #b45309;
}

/* Section titles inside report */
.report-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  border-left: 4px solid #6366f1;
  padding-left: 10px;
  margin-bottom: 14px;
  margin-top: 28px;
}

/* Clean White Tables for Print / Client */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.report-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-bottom: 2px solid #cbd5e1;
  text-align: left;
}

.report-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.report-table tfoot td {
  font-weight: 700;
  background: #f8fafc;
  border-top: 2px solid #cbd5e1;
  color: #0f172a;
}

.report-tag-paid {
  display: inline-block;
  padding: 3px 8px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}

.report-tag-pending {
  display: inline-block;
  padding: 3px 8px;
  background: #fef3c7;
  color: #b45309;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}

.report-footer-note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Print Media Specific Overrides */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .sidebar,
  .top-header,
  .section-header,
  .report-actions-bar,
  .no-print,
  .role-gerente-only,
  .btn,
  .modal-backdrop {
    display: none !important;
  }

  .weekly-pending-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    page-break-inside: avoid !important;
    margin-bottom: 20px !important;
  }

  .main-wrapper {
    overflow: visible !important;
    height: auto !important;
  }

  .content-area {
    padding: 0 !important;
  }

  .report-sheet {
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .report-summary-box {
    border: 1px solid #cbd5e1 !important;
  }

  .report-table th {
    background: #f1f5f9 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .report-tag-paid,
  .report-tag-pending {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
