@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* =========================================================
   DESIGN TOKENS — Light Theme (default)
   ========================================================= */
:root {
  --bg-image: url('mcg2.jpg');

  /* Overlay */
  --overlay: rgba(255, 255, 255, 0.60);

  /* Glass card surface */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Accent (indigo) */
  --accent: #4f46e5;
  --accent-light: #818cf8;
  --accent-glow: rgba(79, 70, 229, 0.18);

  /* Semantic */
  --success: #15803d;
  --success-bg: rgba(21, 128, 61, 0.10);
  --danger: #b91c1c;
  --danger-bg: rgba(185, 28, 28, 0.10);
  --pending: #b45309;
  --pending-bg: rgba(180, 83, 9, 0.10);

  /* Surface */
  --surface: rgba(255, 255, 255, 0.90);
  --input-bg: rgba(255, 255, 255, 0.95);
  --border: rgba(0, 0, 0, 0.10);
  --row-hover: rgba(79, 70, 229, 0.04);
  --row-alt: rgba(248, 250, 252, 0.80);

  /* Header / Badge */
  --header-bg: rgba(255, 255, 255, 0.80);
  --tab-active-bg: #ffffff;

  /* Theme switch icon */
  --theme-icon: '🌙';

  --font-family: 'Outfit', sans-serif;
}

/* =========================================================
   DARK THEME
   ========================================================= */
[data-theme="dark"] {
  --overlay: rgba(10, 12, 25, 0.72);

  --glass-bg: rgba(18, 22, 40, 0.82);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #818cf8;
  --accent-light: #a5b4fc;
  --accent-glow: rgba(129, 140, 248, 0.22);

  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.12);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --pending: #fbbf24;
  --pending-bg: rgba(251, 191, 36, 0.12);

  --surface: rgba(20, 24, 46, 0.95);
  --input-bg: rgba(25, 30, 55, 0.95);
  --border: rgba(255, 255, 255, 0.10);
  --row-hover: rgba(129, 140, 248, 0.06);
  --row-alt: rgba(255, 255, 255, 0.025);

  --header-bg: rgba(15, 18, 36, 0.85);
  --tab-active-bg: rgba(255, 255, 255, 0.08);

  --theme-icon: '☀️';
}

/* =========================================================
   GLOBAL RESET
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   BODY — Background Image + Overlay
   ========================================================= */
body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    var(--overlay),
    var(--bg-image) center / cover fixed no-repeat;
  background-color: #e2e8f0; /* fallback while image loads */
  color: var(--text-primary);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.3); border-radius: 10px; }

/* =========================================================
   LAYOUT CONTAINER
   ========================================================= */
.container {
  width: 100%;
  max-width: 480px;
  padding: 16px 12px 60px;
  position: relative;
  z-index: 1;
}

/* =========================================================
   GLASS CARD
   ========================================================= */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 14px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
}

/* =========================================================
   HEADER
   ========================================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

header h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--accent);
}

header p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Theme Toggle Button */
.btn-theme {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-theme:hover { transform: scale(1.08); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 13px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  background: var(--glass-highlight);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  filter: brightness(1.12);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-danger:hover { filter: brightness(1.1); color: #fff; }

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 8px;
}

/* Summary Cards — 3-col fixed grid */
.summary-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.summary-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px 8px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 76px;
}

.summary-card .label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  white-space: nowrap;
}

.summary-card .value {
  font-size: clamp(11px, 3.2vw, 15px);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  word-break: break-word;
  width: 100%;
}

.summary-card.balance { border-left: 3px solid var(--accent); }
.summary-card.income  { border-left: 3px solid var(--success); }
.summary-card.expense { border-left: 3px solid var(--danger); }

.summary-card.balance .value { color: var(--text-primary); }
.summary-card.income  .value { color: var(--success); }
.summary-card.expense .value { color: var(--danger); }

/* =========================================================
   MOBILE COMPACT TABLE
   ========================================================= */
.mobile-table-wrap {
  overflow-x: hidden;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.mobile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}

.mobile-table th {
  background: var(--row-alt);
  padding: 8px 6px;
  font-weight: 700;
  font-size: 10px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.mobile-table td {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: top;
  color: var(--text-primary);
  word-break: break-word;
}

[data-theme="dark"] .mobile-table td {
  border-bottom-color: rgba(255,255,255,0.05);
}

.mobile-table tr:last-child td { border-bottom: none; }
.mobile-table tr:nth-child(even) td { background: var(--row-alt); }

/* Column widths for mobile-table */
.mobile-table th:nth-child(1),
.mobile-table td:nth-child(1) { width: 18%; white-space: nowrap; }

.mobile-table th:nth-child(2),
.mobile-table td:nth-child(2) { width: 34%; }

.mobile-table th:nth-child(3),
.mobile-table td:nth-child(3) { width: 24%; text-align: right; }

.mobile-table th:nth-child(4),
.mobile-table td:nth-child(4) { width: 24%; text-align: right; font-weight: 600; }

/* =========================================================
   SECTION TITLE
   ========================================================= */
.section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

/* =========================================================
   FILTER BAR
   ========================================================= */
.filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}

.filter-bar .search-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 7px;
}

.filter-bar .search-row input {
  flex: 1;
}

/* =========================================================
   FORM CONTROLS
   ========================================================= */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-control {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}

/* =========================================================
   TABS NAVIGATION
   ========================================================= */
.tabs-nav {
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 4px;
  border-radius: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 9px 6px;
  font-weight: 600;
  font-size: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.tab-btn.active {
  background: var(--tab-active-bg);
  color: var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

/* =========================================================
   TABLE (Desktop only)
   ========================================================= */
.ledger-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  background: var(--row-alt);
  padding: 9px 10px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
  color: var(--text-primary);
}

[data-theme="dark"] td {
  border-bottom-color: rgba(255,255,255,0.05);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--row-hover); }

.type-badge {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.type-badge.pemasukan {
  background: var(--success-bg);
  color: var(--success);
}
.type-badge.pengeluaran {
  background: var(--danger-bg);
  color: var(--danger);
}

/* =========================================================
   MOBILE TRANSACTION FEED
   ========================================================= */
.mobile-tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mobile-tx-item:active {
  background: var(--glass-highlight);
}

/* Left badge circle */
.tx-circle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.tx-circle.income  { background: var(--success-bg); }
.tx-circle.expense { background: var(--danger-bg); }

/* Middle: description + date */
.tx-info {
  flex: 1;
  min-width: 0;
}

.tx-info .tx-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-info .tx-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tx-info .tx-saldo {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* Right: amount */
.tx-amount {
  text-align: right;
  flex-shrink: 0;
}

.tx-amount .amount-val {
  font-size: 13px;
  font-weight: 700;
}

.tx-amount .amount-val.income  { color: var(--success); }
.tx-amount .amount-val.expense { color: var(--danger); }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-info {
  font-size: 11px;
  color: var(--text-secondary);
}

.pagination-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* =========================================================
   FILE UPLOAD
   ========================================================= */
.file-upload-wrapper { position: relative; width: 100%; }
.file-upload-input {
  position: absolute; top:0; left:0; width:100%; height:100%;
  opacity:0; cursor:pointer; z-index:2;
}

.file-upload-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  background: var(--input-bg);
  transition: all 0.2s ease;
  text-align: center;
}

.file-upload-trigger:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.file-upload-trigger svg {
  width: 24px; height: 24px;
  color: var(--text-secondary); margin-bottom: 8px;
}

.file-upload-trigger span {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
}

.file-upload-trigger p {
  font-size: 11px; color: var(--text-muted); margin-top: 3px;
}

.preview-container {
  margin-top: 10px; display: none;
  position: relative; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--border);
}

.preview-image {
  width: 100%; max-height: 160px;
  object-fit: contain; background: var(--input-bg);
}

.preview-remove {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.6); border: none; color: #fff;
  border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 700; font-size: 12px;
}

/* =========================================================
   PAYMENT GRID
   ========================================================= */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.payment-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.payment-card-title  { font-weight: 600; font-size: 13px; }
.payment-card-date   { font-size: 10px; color: var(--text-secondary); }
.payment-card-amount { font-size: 14px; font-weight: 700; color: var(--success); }

.payment-card-image-wrapper {
  position: relative; border-radius: 8px; overflow: hidden;
  height: 90px; border: 1px solid var(--border); cursor: pointer;
}

.payment-card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.payment-card-actions { display: flex; gap: 6px; margin-top: auto; }
.payment-card-actions button { flex: 1; padding: 6px; border-radius: 8px; font-size: 11px; font-weight: 600; }

/* Badge Status */
.badge-status {
  padding: 2px 7px; border-radius: 20px;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
}

.badge-status.pending  { background: var(--pending-bg);  color: var(--pending); }
.badge-status.approved { background: var(--success-bg);  color: var(--success); }
.badge-status.rejected { background: var(--danger-bg);   color: var(--danger); }

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  justify-content: center; align-items: center; padding: 16px;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  max-width: 420px; width: 100%;
  padding: 20px; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none;
  color: var(--text-secondary); font-size: 18px; cursor: pointer;
}

.modal-image {
  width: 100%; max-height: 340px;
  object-fit: contain; border-radius: 10px; margin-top: 8px;
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 10px 18px; border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: none;
  align-items: center; gap: 8px;
  z-index: 1001;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(80px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);   opacity: 1; }
}

/* =========================================================
   LOGIN SCREEN — Full-screen hero with own background
   ========================================================= */
.login-hero {
  /* Break out of container, cover full viewport */
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  z-index: 100;
  /* Own background so it always fills screen regardless of container */
  background:
    var(--overlay),
    url('mcg2.jpg') center / cover no-repeat;
  background-color: #1e293b;
  overflow-y: auto;
}

/* When login is hidden, it's display:none, so no z-index conflict */

#login-section {
  width: 100%;
  max-width: 360px;
  padding: 28px 24px;
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 22px;
}

.login-logo .logo-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}

.login-logo h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.login-logo p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* =========================================================
   VISIBILITY HELPERS
   ========================================================= */
.desktop-only { display: block; }
.mobile-only  { display: none; }
.print-only   { display: none; }

/* =========================================================
   RESPONSIVE — Mobile First (≤768px)
   ========================================================= */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding: 12px 10px 70px;
  }

  .desktop-only { display: none !important; }
  .mobile-only  { display: block !important; }

  /* Summary cards stay horizontal scroll */
  .summary-card { flex: 0 0 130px; min-width: 130px; }

  /* Header compact */
  header h1 { font-size: 15px; }
  header p  { font-size: 10px; }

  /* Tabs smaller font */
  .tab-btn { font-size: 11px; padding: 8px 4px; }

  /* Filter 2-col on mobile */
  .filter-bar { grid-template-columns: 1fr 1fr; }

  /* Payment grid single col on small phones */
  .payment-grid { grid-template-columns: 1fr; }

  /* Pagination compact */
  .pagination-bar { gap: 6px; }

  /* Glass card comfortable padding */
  .glass-card { padding: 14px 12px; border-radius: 18px; }
}

@media (max-width: 360px) {
  .summary-card { flex: 0 0 115px; min-width: 115px; }
  header h1 { font-size: 13px; }
}

/* =========================================================
   PRINT STYLES — A4 Portrait Business Ledger
   ========================================================= */
@media print {
  @page {
    size: A4 portrait;
    margin: 15mm;
  }

  html, body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
    font-size: 11px !important;
    height: auto !important;
    overflow: visible !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

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

  .glass-card {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Print Header */
  .print-header {
    text-align: center;
    border-bottom: 2px double #000;
    padding-bottom: 10px;
    margin-bottom: 16px;
  }

  .print-header h1 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: 3px;
  }

  .print-header p {
    font-size: 10px !important;
    color: #334155 !important;
  }

  .print-meta {
    font-size: 10px;
    margin-bottom: 14px;
    color: #475569;
  }

  /* Summary Grid */
  .print-summary-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #000;
    margin-bottom: 16px;
    background: #f8fafc !important;
    font-size: 9px;
  }

  .print-sum-col {
    display: flex;
    flex-direction: column;
    padding: 7px 6px;
    text-align: center;
    border-right: 1px solid #000;
  }

  .print-sum-col:last-child { border-right: none; }

  .print-sum-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 3px;
    font-size: 8px;
  }

  .print-sum-val {
    font-weight: 700;
    font-size: 10px;
    color: #000;
  }

  /* Print Table */
  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 9px !important;
  }

  .print-table th {
    background: #e2e8f0 !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    padding: 5px 7px !important;
    font-weight: 700 !important;
    text-align: center;
  }

  .print-table td {
    border: 1px solid #000 !important;
    color: #000 !important;
    padding: 5px 7px !important;
  }

  .print-table tr:nth-child(even) {
    background-color: #f8fafc !important;
  }

  /* Signature */
  .print-signature-section {
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
    padding: 0 40px;
    font-size: 10px;
    page-break-inside: avoid;
  }

  .print-sig-col { text-align: center; width: 200px; }

  /* Print Footer */
  .print-footer {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #64748b;
    border-top: 1px solid #cbd5e1;
    padding-top: 5px;
    margin-top: 36px;
  }

  /* Force color print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
