/* assets/css/print-templates.css */
/* Printable & PDF Layouts for Aspire Clientele */

.print-preview-container {
  background: #525659;
  padding: 30px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.invoice-sheet {
  background: #ffffff;
  width: 210mm;
  min-height: 297mm;
  padding: 20mm;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  position: relative;
  font-size: 13px;
  line-height: 1.5;
}

/* Template: Modern (Default) */
.template-modern .invoice-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 3px solid #6366f1;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.template-modern .company-title {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.template-modern .doc-badge {
  text-align: right;
}

.template-modern .doc-type-title {
  font-size: 24px;
  font-weight: 800;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.template-modern .doc-number {
  font-size: 15px;
  font-weight: 700;
  color: #475569;
}

.template-modern .invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

.template-modern .party-box-title {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #6366f1;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.template-modern .party-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.template-modern .party-details {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
}

.template-modern .pan-highlight {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

/* Document Table */
.print-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.print-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid #e2e8f0;
  border-bottom: 2px solid #cbd5e1;
  padding: 10px 12px;
  text-align: left;
}

.print-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
  color: #1e293b;
  vertical-align: top;
}

.print-table th.text-right, .print-table td.text-right {
  text-align: right;
}

.print-table th.text-center, .print-table td.text-center {
  text-align: center;
}

.print-summary-section {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 10px;
}

.bank-details-box {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
}

.bank-box-title {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.print-totals-box {
  width: 280px;
}

.print-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: #475569;
}

.print-totals-row.grand-total {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  border-top: 2px solid #6366f1;
  padding-top: 8px;
  margin-top: 6px;
}

.print-words-box {
  margin-top: 16px;
  padding: 10px 14px;
  background: #eef2ff;
  border: 1px dashed #c7d2fe;
  border-radius: 6px;
  font-size: 12px;
  color: #3730a3;
  font-style: italic;
}

.print-footer-sign {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
}

.sign-box {
  text-align: center;
  width: 200px;
}

.sign-line {
  border-top: 1px solid #94a3b8;
  margin-top: 40px;
  padding-top: 6px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* Template: Corporate */
.template-corporate .invoice-header {
  border-bottom: 3px double #0f172a;
}
.template-corporate .doc-type-title {
  color: #0f172a;
}
.template-corporate .print-table th {
  background: #0f172a;
  color: #ffffff;
}

/* Template: Minimal */
.template-minimal .invoice-header {
  border-bottom: 1px solid #000;
}
.template-minimal .doc-type-title {
  color: #000;
  font-weight: 600;
}
.template-minimal .print-words-box {
  background: none;
  border: none;
  padding: 8px 0;
  color: #000;
}

/* Template: Thermal POS (80mm) */
.template-thermal .invoice-sheet {
  width: 80mm;
  min-height: auto;
  padding: 5mm;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  box-shadow: none;
}
.template-thermal .company-title {
  font-size: 15px;
  text-align: center;
}
.template-thermal .print-table th, .template-thermal .print-table td {
  padding: 4px 2px;
  font-size: 10px;
}

/* Print Media Styles */
@media print {
  body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sidebar, .top-header, .page-header, .btn, .modal-header, .modal-footer, .no-print {
    display: none !important;
  }

  .main-wrapper {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  .print-preview-container {
    background: #ffffff !important;
    padding: 0 !important;
    min-height: auto !important;
  }

  .invoice-sheet {
    box-shadow: none !important;
    padding: 10mm 15mm !important;
    width: 100% !important;
    min-height: auto !important;
    page-break-after: avoid;
  }
}
