/* Payment Slip Styling - Professional Microsoft-style Design */

.slip-preview, .print-slip {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: white;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 14px;
  line-height: 1.5;
  color: #323130;
}

/* Header Section */
.slip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 2px solid #0078D4;
}

.slip-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slip-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.slip-brand-text {
  display: flex;
  flex-direction: column;
}

.slip-brand-name {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #605E5C;
  margin-bottom: 2px;
}

.slip-title {
  font-size: 20px;
  font-weight: 600;
  color: #323130;
}

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

.slip-ref {
  font-size: 11px;
  color: #605E5C;
  margin-bottom: 4px;
}

.slip-period {
  font-size: 14px;
  font-weight: 600;
  color: #0078D4;
}

/* Employee Info Section */
.slip-info-section {
  background: #FAF9F8;
  border-bottom: 1px solid #EDEBE9;
  padding: 20px 24px;
}

.slip-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

.slip-info-item {
  display: flex;
  flex-direction: column;
}

.slip-info-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #605E5C;
  margin-bottom: 4px;
  font-weight: 500;
}

.slip-info-value {
  font-size: 14px;
  font-weight: 500;
  color: #323130;
}

/* Payment Table */
.slip-payment-table {
  width: 100%;
  border-collapse: collapse;
}

.slip-payment-table th {
  background: #0078D4;
  color: white;
  padding: 12px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.slip-payment-table th:last-child {
  text-align: right;
}

.slip-payment-table td {
  padding: 12px 24px;
  border-bottom: 1px solid #EDEBE9;
  font-size: 13px;
}

.slip-payment-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.slip-payment-table tr:nth-child(even) {
  background: #FAF9F8;
}

.slip-payment-table .deduction-row td:last-child {
  color: #D83B01;
}

.slip-payment-table .total-row {
  background: #0078D4 !important;
}

.slip-payment-table .total-row td {
  color: white;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-bottom: none;
}

/* Amount in Words */
.slip-amount-words {
  background: #EFF6FC;
  border: 1px solid #C7E0F4;
  border-left: none;
  border-right: none;
  padding: 14px 24px;
  text-align: center;
  font-size: 12px;
  color: #0078D4;
  font-weight: 500;
}

/* Tax Notice */
.slip-notice {
  background: #FFF4CE;
  border-left: 4px solid #FFB900;
  padding: 14px 24px;
  margin: 0;
}

.slip-notice strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #323130;
  margin-bottom: 4px;
}

.slip-notice p {
  font-size: 11px;
  color: #605E5C;
  margin: 0;
  line-height: 1.5;
}

/* Footer Section */
.slip-footer {
  padding: 20px 24px;
  border-top: 1px solid #EDEBE9;
}

.slip-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.slip-footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slip-footer-logos img {
  height: 28px;
  width: auto;
  opacity: 0.75;
}

.slip-footer-info {
  text-align: right;
}

.slip-footer-text {
  font-size: 10px;
  color: #605E5C;
  margin-bottom: 4px;
}

.slip-generated {
  font-size: 9px;
  color: #A19F9D;
}

/* Confidential Badge */
.slip-confidential {
  text-align: center;
  padding: 12px 24px;
  background: #FAF9F8;
  border-top: 1px solid #EDEBE9;
}

.slip-confidential span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #A19F9D;
  background: white;
  padding: 4px 12px;
  border-radius: 2px;
  border: 1px solid #EDEBE9;
}

/* ================================
   Print Styles
   ================================ */
@media print {
  @page {
    size: A4;
    margin: 20mm;
  }

  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-preview, .print-slip {
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .slip-header {
    padding: 28px 32px !important;
  }

  .slip-brand img {
    height: 52px !important;
  }

  .slip-title {
    font-size: 24px !important;
  }

  .slip-info-section {
    padding: 24px 32px !important;
  }

  .slip-info-grid {
    gap: 20px 40px !important;
  }

  .slip-info-label {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }

  .slip-info-value {
    font-size: 15px !important;
  }

  .slip-payment-table th {
    padding: 14px 32px !important;
    font-size: 12px !important;
    background: #0078D4 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-payment-table td {
    padding: 14px 32px !important;
    font-size: 14px !important;
  }

  .slip-payment-table .total-row {
    background: #0078D4 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-payment-table .total-row td {
    padding: 16px 32px !important;
    font-size: 17px !important;
  }

  .slip-amount-words {
    padding: 16px 32px !important;
    font-size: 13px !important;
    background: #EFF6FC !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-notice {
    padding: 16px 32px !important;
    background: #FFF4CE !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-notice strong {
    font-size: 12px !important;
  }

  .slip-notice p {
    font-size: 12px !important;
  }

  .slip-footer {
    padding: 24px 32px !important;
  }

  .slip-footer-logos img {
    height: 36px !important;
  }

  .slip-footer-text {
    font-size: 12px !important;
  }

  .slip-generated {
    font-size: 10px !important;
  }

  .slip-confidential {
    padding: 16px 32px !important;
    background: #FAF9F8 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .slip-confidential span {
    font-size: 10px !important;
  }
}
