/* =======================================================
 * SDH Automated Invoice & Slip Stylesheet (Linear SaaS Theme)
 * Developed by Siddique Tech Solution for Shahbaz Digital Hub
 * ======================================================= */

.sdh-invoice-page {
  padding: 40px 0 80px;
}

.sdh-invoice-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.sdh-toolbar-right {
  display: flex;
  gap: 12px;
}

.sdh-btn-outline {
  background: #0e111a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.sdh-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Invoice Card Box (Matte Obsidian) */
.sdh-invoice-card {
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  color: #f8fafc;
}

/* Header */
.sdh-inv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.sdh-inv-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sdh-inv-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.sdh-inv-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #ffffff;
  margin-bottom: 2px;
}

.sdh-inv-subtitle {
  color: #38bdf8;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.sdh-inv-seller {
  font-size: 12px;
  color: #94a3b8;
}

.sdh-inv-seller strong {
  color: #cbd5e1;
}

.sdh-inv-meta {
  text-align: right;
}

.sdh-inv-badge-slip {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 8px;
}

.sdh-inv-meta-row {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.sdh-inv-meta-row strong {
  color: #ffffff;
}

.sdh-status-badge.pending {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

/* Two-column Customer & Payment Details */
.sdh-inv-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.sdh-inv-box h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 800;
}

.sdh-inv-box p {
  color: #cbd5e1;
  font-size: 13px;
  margin-bottom: 4px;
}

.sdh-cust-name {
  font-size: 15px !important;
  color: #ffffff !important;
}

.sdh-trx-code {
  font-family: monospace;
  color: #38bdf8;
  font-weight: 800;
}

/* Invoice Table */
.sdh-inv-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.sdh-inv-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sdh-inv-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  color: #e2e8f0;
}

.sdh-inv-table-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
}

.sdh-inv-total-label {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.sdh-inv-total-val {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #38bdf8;
}

.sdh-inv-footer-notes {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
}

/* Print Friendly Override */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, .sdh-topbar, .sdh-header, .sdh-footer, .sdh-ai-widget-wrap, .sdh-wa-widget-wrap, .sdh-modal-close {
    display: none !important;
  }
  .sdh-invoice-card {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    padding: 20px !important;
  }
  .sdh-inv-title, .sdh-inv-subtitle, .sdh-inv-total-val, .sdh-trx-code {
    color: #000000 !important;
  }
  .sdh-inv-details-grid {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
  }
  .sdh-inv-details-grid p, .sdh-inv-box h4 {
    color: #333333 !important;
  }
  .sdh-inv-table th {
    background: #f1f5f9 !important;
    color: #333333 !important;
  }
  .sdh-inv-table td {
    color: #111111 !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
}
