:root{--gold:#f6c400;--red:#b3131b;--dark:#101114;--soft:#f5f6fa;--text:#222;--muted:#6b7280;--line:#e6e8ef}
*{box-sizing:border-box} body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--soft);color:var(--text)}
a{text-decoration:none;color:inherit}.login{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#101114,#2b1013)}.login-card{width:390px;background:#fff;border-radius:24px;padding:32px;box-shadow:0 25px 60px #0007;text-align:center}.login-card img{height:95px}.input{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:13px;margin:8px 0;font-size:15px}.btn{border:0;border-radius:13px;padding:11px 16px;font-weight:800;cursor:pointer}.btn-primary{background:var(--gold);color:#111}.btn-dark{background:#15161a;color:white}.btn-red{background:var(--red);color:white}.btn-soft{background:#eef0f5;color:#111}.app{display:flex;min-height:100vh}.sidebar{width:285px;background:#111217;color:#fff;position:fixed;top:0;bottom:0;left:0;box-shadow:7px 0 22px #0002;overflow:auto;z-index:1000}.brand{padding:22px 18px;border-bottom:1px solid #ffffff14;display:flex;gap:12px;align-items:center}.brand img{width:54px;height:54px;object-fit:contain;background:white;border-radius:14px;padding:4px}.brand b{font-size:15px}.brand span{font-size:12px;color:#c9c9c9}.nav{padding:14px}.nav-title{font-size:11px;color:#999;margin:18px 11px 7px;text-transform:uppercase;letter-spacing:.09em}.menu-head{display:flex;align-items:center;gap:10px;padding:12px 13px;border-radius:13px;cursor:pointer;font-weight:800;margin:5px 0;width:100%;border:0;background:transparent;color:inherit;text-align:left;font-family:inherit;font-size:15px;position:relative;z-index:3}.menu-head:hover,.menu-head.active{background:#ffffff12}.menu-head .arrow{margin-left:auto;transition:.2s}.menu-head.active .arrow{transform:rotate(90deg)}.submenu{display:none;margin:5px 0 12px 9px;padding-left:9px;border-left:2px solid var(--gold)}.submenu.open{display:block}.submenu a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;color:#e8e8e8;font-size:14px;margin:3px 0}.submenu a:hover,.submenu a.active{background:linear-gradient(90deg,#f6c40030,#b3131b22);color:#fff}.main{margin-left:285px;width:calc(100% - 285px)}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:900}.content{padding:28px}.page-title{margin:0 0 5px;font-size:28px}.muted{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:white;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 9px 25px #1118270a}.stat{border-top:5px solid var(--gold)}.stat.red{border-color:var(--red)}.stat.dark{border-color:#111}.stat h3{margin:0;color:#666;font-size:14px}.stat .num{font-size:27px;font-weight:900;margin-top:8px}.table{width:100%;border-collapse:collapse;background:white;border-radius:18px;overflow:hidden}.table th{background:#111217;color:white;text-align:left;padding:12px;font-size:13px}.table td{padding:12px;border-bottom:1px solid var(--line);font-size:14px}.form-row{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.badge{display:inline-block;padding:5px 10px;border-radius:999px;background:#f4e5a3;color:#111;font-weight:800;font-size:12px}.alert{padding:12px 14px;border-radius:14px;margin:10px 0}.alert-ok,.alert-good{background:#e7f8ed;color:#166534}.alert-bad{background:#fee2e2;color:#991b1b}.modal{display:none;position:fixed;inset:0;background:#0009;align-items:center;justify-content:center;z-index:2000}.modal.show{display:flex}.modal-card{background:white;border-radius:24px;padding:24px;max-width:680px;width:92%;box-shadow:0 30px 80px #0009}.preview-line{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:9px 0}.actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}.right{text-align:right}.toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:14px}.pagination{display:flex;gap:7px;margin-top:16px}.pagination a{padding:8px 12px;background:#fff;border:1px solid var(--line);border-radius:10px}.danger{color:var(--red);font-weight:800}.success{color:#15803d;font-weight:800}@media(max-width:900px){.sidebar{position:relative;width:100%}.main{margin-left:0;width:100%}.app{display:block}.grid,.form-row{grid-template-columns:1fr}}

.report-paper{background:#fff;border:1px solid var(--line);border-radius:22px;padding:32px;box-shadow:0 9px 25px #1118270a}
.report-head{text-align:center;margin-bottom:22px;border-bottom:2px solid #111217;padding-bottom:16px}
.report-head h2{margin:6px 0 4px;font-size:22px;text-transform:uppercase}.report-head h3{margin:0;font-size:16px}.report-actions{display:flex;gap:10px;justify-content:flex-end;margin:0 0 14px}.filter-bar{display:flex;gap:10px;align-items:end;margin-bottom:14px;flex-wrap:wrap}.filter-bar label{font-size:12px;font-weight:800;color:#666}.filter-bar .input{margin:3px 0 0}.section-title{background:#f7f0c4;font-weight:900;text-transform:uppercase}.total-row th,.total-row td{font-weight:900;background:#f6f7fb}.grand-total th,.grand-total td{font-weight:900;background:#111217!important;color:#fff!important}.modal-card.pro{padding:0;overflow:hidden}.modal-head{background:linear-gradient(135deg,#111217,#2d1215);color:#fff;padding:20px 24px}.modal-body{padding:22px 24px}.preview-table{width:100%;border-collapse:collapse;margin-top:12px}.preview-table th{background:#111217;color:#fff;text-align:left;padding:10px}.preview-table td{padding:10px;border-bottom:1px solid var(--line)}.balanced-pill{display:inline-block;padding:6px 12px;border-radius:999px;background:#dcfce7;color:#166534;font-weight:900}.unbalanced-pill{display:inline-block;padding:6px 12px;border-radius:999px;background:#fee2e2;color:#991b1b;font-weight:900}@media print{.sidebar,.topbar,.report-actions,.filter-bar,.btn,.pagination{display:none!important}.main{margin:0!important;width:100%!important}.content{padding:0!important}.report-paper{box-shadow:none;border:0;border-radius:0}}

/* v2.7 transaction polish */
.tx-preview-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 16px}
.tx-preview-card{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fafafa}
.tx-preview-card span{display:block;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;margin-bottom:4px}
.tx-preview-card b{font-size:16px}
.tx-status-ok{display:inline-flex;align-items:center;gap:8px;background:#dcfce7;color:#166534;border-radius:999px;padding:8px 12px;font-weight:900}
.tx-status-bad{display:inline-flex;align-items:center;gap:8px;background:#fee2e2;color:#991b1b;border-radius:999px;padding:8px 12px;font-weight:900}
.input.amount-input{text-align:right;font-weight:800;letter-spacing:.02em}
.form-note{font-size:12px;color:var(--muted);margin-top:6px}
@media(max-width:700px){.tx-preview-summary{grid-template-columns:1fr}}

/* v2.8 click-fix: prevent hidden menus/backdrops from blocking page links */
.submenu:not(.open){display:none!important;pointer-events:none}
.submenu.open{display:block!important;pointer-events:auto}
.main,.content,.card,.table,.btn,input,select,textarea,a{position:relative}
.nav-link{justify-content:flex-start}
.nav-ico{width:22px;display:inline-flex;justify-content:center}

/* v2.9 native sidebar fix: no JS overlay, no click blocking */
.nav-group{margin:5px 0;position:relative;z-index:1}
.nav-group summary{list-style:none;outline:none;user-select:none}
.nav-group summary::-webkit-details-marker{display:none}
.nav-group[open] > summary{background:#ffffff12}
.nav-group[open] > summary .arrow{transform:rotate(90deg)}
.nav-group:not([open]) > .submenu{display:none!important}
.nav-group[open] > .submenu{display:block!important;pointer-events:auto!important}
.submenu a{position:relative;z-index:2}
.sub-ico{width:22px;text-align:center;display:inline-flex;justify-content:center}
.sidebar,.nav,.nav-group,.submenu,.menu-head{pointer-events:auto!important}
.main{position:relative;z-index:1}
.modal:not(.show){display:none!important;pointer-events:none!important}
.modal.show{display:flex!important;pointer-events:auto!important}

/* v3.4 report readability fix: light official rows, dark text for amounts */
.report-paper .section-title td,
.report-paper .section-title th{
  background:#fff4bf!important;
  color:#111217!important;
  font-weight:900;
  text-transform:uppercase;
  border-top:1px solid #e9d36b;
  border-bottom:1px solid #e9d36b;
}
.report-paper .total-row th,
.report-paper .total-row td{
  background:#f8fafc!important;
  color:#111217!important;
  font-weight:900;
}
.report-paper .grand-total th,
.report-paper .grand-total td{
  background:#f6c400!important;
  color:#111217!important;
  font-weight:900;
  border-top:2px solid #111217;
  border-bottom:2px solid #111217;
}
.report-paper .table th{
  background:#111217;
  color:#ffffff;
}
.report-paper .right{color:#111217!important;font-weight:800;}
.report-paper .grand-total .right,
.report-paper .total-row .right{color:#111217!important;}

/* v3.6 member loan layout */
.grid.two{grid-template-columns:repeat(2,1fr)}
.form-row.single{grid-template-columns:1fr}
.table td b{font-weight:900}
@media(max-width:1100px){.grid.two{grid-template-columns:1fr}}

/* v3.7.2 report drill-down links */
.gl-drill{font-weight:900;color:#0f172a;text-decoration:underline;text-underline-offset:3px}
.gl-drill:hover{color:#b3131b}

/* v3.7.8: keep numeric table headers visible on dark report headers */
.report-paper .table th.right{color:#fff!important;}

/* v3.8.6 stock request readable totals */
.stock-grand-total th,
.stock-grand-total td{
  background:#f6c400!important;
  color:#111217!important;
  font-weight:900!important;
  border-top:2px solid #111217!important;
}
.preview-table .stock-grand-total th,
.preview-table .stock-grand-total td{
  background:#f6c400!important;
  color:#111217!important;
}

/* v3.8.8: keep stock purchase confirmation usable with many requests */
.stock-confirm-card{max-height:86vh;display:flex;flex-direction:column;}
.stock-confirm-body{overflow:auto;max-height:58vh;padding-right:6px;}
.stock-confirm-actions{position:sticky;bottom:0;background:#fff;padding-top:12px;border-top:1px solid #e5e7eb;z-index:2;}

/* v3.8.14: safer responsive tables and confirmation modals on small screens */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:14px 0 18px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 8px 20px #1118270a;border-top:4px solid var(--gold)}
.stat-card span{display:block;color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;margin-bottom:7px}
.stat-card b{font-size:22px;font-weight:900;color:#111217}
@media(max-width:760px){
  .content{padding:16px}
  .topbar{padding:0 16px;gap:8px;align-items:flex-start;justify-content:center;flex-direction:column;height:auto;min-height:64px}
  .card{padding:14px;border-radius:18px;overflow:hidden}
  .table,.preview-table{display:block;overflow-x:auto;white-space:nowrap;width:100%}
  .actions,.toolbar{flex-wrap:wrap;justify-content:flex-start}
  .modal{align-items:flex-start;padding:14px;overflow:auto}
  .modal-card{width:100%;max-width:100%;border-radius:18px;padding:16px;margin:20px 0}
  .modal-card.pro{padding:0}
  .stock-confirm-card{max-height:none}
  .stock-confirm-body{max-height:65vh}
}

/* v3.8.27 Statement of Changes in Net Assets report */
.net-assets-report{max-width:920px;margin:0 auto;padding:28px 34px;}
.net-assets-report .report-head{text-align:center;margin-bottom:18px;}
.net-assets-report .statement-logo{width:78px;height:78px;object-fit:contain;display:block;margin:0 auto 8px;}
.net-assets-report .report-head h2{margin:0 0 6px;font-size:20px;letter-spacing:.5px;}
.net-assets-report .report-head h3{margin:0 0 6px;font-size:16px;line-height:1.35;text-transform:uppercase;}
.net-assets-report .report-head p{margin:0;font-weight:700;}
.statement-table th,.statement-table td{padding:7px 9px;}
.statement-table tr.total-row th,.statement-table tr.total-row td{font-weight:700;border-top:1px solid #111;}
.statement-table tr.grand-total th,.statement-table tr.grand-total td{font-weight:800;border-top:2px solid #111;border-bottom:2px solid #111;}
.approval-block{margin-top:28px;font-size:14px;}
.signature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px;}
.signature-box{text-align:center;min-height:90px;}
.signature-box .sig-line{border-top:1px dotted #333;margin:0 10px 10px;height:12px;}
.signature-box strong{display:block;margin-bottom:4px;}
.signature-box span{display:block;color:#333;}
.input.small{max-width:90px;}
@media(max-width:800px){.signature-grid{grid-template-columns:1fr}.net-assets-report{padding:18px}.statement-table{font-size:13px}}
@media print{.report-actions,.filter-bar,.sidebar,.topbar{display:none!important}.main{margin:0!important}.content{padding:0!important}.net-assets-report{box-shadow:none;border:0;padding:0;max-width:none}.net-assets-report .statement-logo{width:70px;height:70px}.signature-grid{grid-template-columns:repeat(3,1fr)}}

/* v3.8.29 Chart of Accounts statement mapping controls */
.inline-map-form{display:grid;grid-template-columns:90px minmax(140px,1fr) minmax(140px,1fr) 70px minmax(140px,1fr) 90px auto;gap:6px;align-items:center;min-width:760px}
.inline-map-form .input{min-height:34px;padding:6px 8px;font-size:12px}
.inline-map-form .checkline{margin:0;white-space:nowrap}
@media(max-width:900px){.inline-map-form{grid-template-columns:1fr;min-width:0}.inline-map-form .btn{width:100%}}

.statement-table tr.less-row td{font-weight:700;background:#fff;}

/* v3.8.37 Administration module layout stabilization */
.admin-content{max-width:1180px;margin:0 auto;width:100%;}
.admin-content .page-head{margin-bottom:18px;}
.admin-content .page-head h1{margin:0 0 6px;font-size:28px;line-height:1.15;}
.admin-content .page-head p{margin:0;color:var(--muted);}
.admin-card{margin-bottom:18px;width:100%;max-width:100%;overflow:hidden;}
.admin-card h3{margin:0 0 14px;font-size:18px;}
.admin-card p{line-height:1.55;}
.admin-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;align-items:stretch;}
.admin-cards .card{display:block;min-height:145px;transition:transform .15s ease,box-shadow .15s ease;border-top:4px solid var(--gold);}
.admin-cards .card:hover{transform:translateY(-2px);box-shadow:0 14px 30px #11182717;}
.admin-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;align-items:end;}
.admin-form-grid .input,.admin-search .input{margin:0;}
.admin-search{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:end;margin-bottom:18px;}
.admin-inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0;}
.admin-inline-form .input{margin:0;min-width:180px;max-width:260px;}
.admin-content .table-responsive{width:100%;overflow-x:auto;}
.admin-content .table{min-width:760px;}
.admin-content .btn{white-space:nowrap;}
.admin-content input[type="file"].input{padding:10px;background:#fff;}
@media(max-width:760px){
  .admin-content{padding:16px;max-width:none;}
  .admin-search{grid-template-columns:1fr;}
  .admin-search .btn,.admin-form-grid .btn{width:100%;}
  .admin-inline-form{display:grid;grid-template-columns:1fr;}
  .admin-inline-form .input,.admin-inline-form .btn{width:100%;max-width:none;}
  .admin-content .page-head h1{font-size:24px;}
}


/* v3.8.38 Chart of Accounts control mapping */
.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700;margin-bottom:4px}
.badge-warn{background:#fff3cd;color:#7a4b00;border:1px solid #ffd66b}
.badge-info{background:#e7f1ff;color:#084298;border:1px solid #9ec5fe}
.badge-ok{background:#d1e7dd;color:#0f5132;border:1px solid #a3cfbb}
.usage-list{margin:0;padding-left:18px;line-height:1.45}
.coa-table td{vertical-align:top}
.inline-map-form{display:grid;gap:6px;min-width:230px}
.inline-map-form .input{width:100%;min-width:190px}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:10px}
.kpi{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:12px}
.kpi b{display:block;margin-bottom:4px}

/* v3.8.40 COA admin-only name editing */
.coa-name-edit{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 4px 0}
.coa-name-edit .input-sm{min-width:220px;max-width:340px;padding:8px 10px;font-weight:700}
.btn-sm{padding:7px 10px;font-size:13px}
@media (max-width: 768px){.coa-name-edit .input-sm{min-width:180px;max-width:100%}}

/* v3.8.43 Report print standardization: monochrome-safe, aligned totals */
.report-paper,
.report-paper * ,
.net-assets-report,
.net-assets-report *{
  color:#111217!important;
}
.report-paper .table,
.net-assets-report .table,
.statement-table{
  border-collapse:collapse!important;
  width:100%!important;
}
.report-paper .table th,
.report-paper .table td,
.net-assets-report .table th,
.net-assets-report .table td,
.statement-table th,
.statement-table td{
  color:#111217!important;
  vertical-align:middle!important;
}
.report-paper .table th,
.net-assets-report .table th,
.statement-table th{
  background:#f3f4f6!important;
  color:#111217!important;
  font-weight:900!important;
  border-bottom:1px solid #111217!important;
}
.report-paper .table td,
.net-assets-report .table td,
.statement-table td{
  border-bottom:1px solid #e5e7eb!important;
}
.report-paper .right,
.report-paper td.right,
.report-paper th.right,
.net-assets-report .right,
.net-assets-report td.right,
.net-assets-report th.right,
.statement-table .right,
.statement-table td.right,
.statement-table th.right{
  text-align:right!important;
  white-space:nowrap!important;
  color:#111217!important;
}
.report-paper td:not(.right),
.report-paper th:not(.right),
.net-assets-report td:not(.right),
.net-assets-report th:not(.right),
.statement-table td:not(.right),
.statement-table th:not(.right){
  text-align:left;
}
.report-head,
.report-head *{
  color:#111217!important;
}
.section-title th,
.section-title td,
.statement-table .section-title th,
.statement-table .section-title td{
  background:#fff8d6!important;
  color:#111217!important;
  text-align:left!important;
  font-weight:900!important;
  border-top:1px solid #111217!important;
  border-bottom:1px solid #111217!important;
}
.total-row th,
.total-row td,
.statement-table .total-row th,
.statement-table .total-row td{
  background:#f8fafc!important;
  color:#111217!important;
  font-weight:900!important;
  border-top:1px solid #111217!important;
  border-bottom:1px solid #111217!important;
}
.grand-total th,
.grand-total td,
.statement-table .grand-total th,
.statement-table .grand-total td,
.stock-grand-total th,
.stock-grand-total td{
  background:#fff!important;
  color:#111217!important;
  font-weight:900!important;
  border-top:2px solid #111217!important;
  border-bottom:2px solid #111217!important;
}
.total-row th.right,
.total-row td.right,
.grand-total th.right,
.grand-total td.right,
.stock-grand-total th.right,
.stock-grand-total td.right{
  text-align:right!important;
}
.total-row th:not(.right),
.total-row td:not(.right),
.grand-total th:not(.right),
.grand-total td:not(.right),
.stock-grand-total th:not(.right),
.stock-grand-total td:not(.right){
  text-align:left!important;
}
.text-white,.text-light,.text-muted,.text-secondary,.muted{
  color:#111217!important;
}
@media print{
  body,.app,.main,.content,.report-paper,.net-assets-report,.card{
    background:#fff!important;
    color:#000!important;
    box-shadow:none!important;
  }
  .report-paper,
  .net-assets-report{
    border:0!important;
    border-radius:0!important;
    padding:0!important;
    max-width:none!important;
  }
  .report-paper *,
  .net-assets-report *,
  .statement-table *,
  .table *{
    color:#000!important;
    text-shadow:none!important;
  }
  .report-paper .table th,
  .net-assets-report .table th,
  .statement-table th{
    background:#fff!important;
    color:#000!important;
    border-top:1px solid #000!important;
    border-bottom:1px solid #000!important;
  }
  .section-title th,.section-title td,
  .total-row th,.total-row td,
  .grand-total th,.grand-total td,
  .stock-grand-total th,.stock-grand-total td{
    background:#fff!important;
    color:#000!important;
  }
  td.right,th.right,.right{
    text-align:right!important;
    white-space:nowrap!important;
  }
  td:not(.right),th:not(.right){
    text-align:left!important;
  }
}


/* v3.8.44 final print-safe report correction: no white amounts/text, fixed alignment */
.report-logo{height:72px;max-width:95px;object-fit:contain;display:block;margin:0 auto 8px auto;background:#fff!important;}
.report-paper .table th,
.report-paper .table td,
.report-paper .table th.right,
.report-paper .table td.right,
.report-paper .table .right,
.report-paper .grand-total th,
.report-paper .grand-total td,
.report-paper .grand-total th.right,
.report-paper .grand-total td.right,
.report-paper .total-row th,
.report-paper .total-row td,
.report-paper .total-row th.right,
.report-paper .total-row td.right{
  color:#000!important;
}
.report-paper .table th,
.report-paper .table th.right{
  background:#f1f3f5!important;
  color:#000!important;
  border-top:1px solid #000!important;
  border-bottom:1px solid #000!important;
}
.report-paper .grand-total th,
.report-paper .grand-total td,
.report-paper .grand-total th.right,
.report-paper .grand-total td.right{
  background:#fff!important;
  color:#000!important;
  font-weight:900!important;
  border-top:2px solid #000!important;
  border-bottom:2px solid #000!important;
}
.report-paper .total-row th,
.report-paper .total-row td,
.report-paper .total-row th.right,
.report-paper .total-row td.right{
  background:#fff!important;
  color:#000!important;
  font-weight:900!important;
  border-top:1px solid #000!important;
}
.report-paper td.right,
.report-paper th.right,
.report-paper .amount-cell,
.report-paper .amount-col{
  text-align:right!important;
  white-space:nowrap!important;
  font-variant-numeric:tabular-nums;
}
.report-paper td:not(.right):not(.amount-cell),
.report-paper th:not(.right):not(.amount-cell){
  text-align:left!important;
}
.report-paper .grand-total th.right,
.report-paper .grand-total td.right,
.report-paper .total-row th.right,
.report-paper .total-row td.right{
  text-align:right!important;
  padding-right:18px!important;
}
.report-paper .table td.right,
.report-paper .table th.right{
  padding-right:18px!important;
}
@media print{
  .report-logo{height:64px!important;margin-bottom:6px!important;}
  .report-paper .table th,
  .report-paper .table th.right,
  .report-paper .grand-total th,
  .report-paper .grand-total td,
  .report-paper .grand-total th.right,
  .report-paper .grand-total td.right,
  .report-paper .total-row th,
  .report-paper .total-row td,
  .report-paper .total-row th.right,
  .report-paper .total-row td.right{
    background:#fff!important;
    color:#000!important;
  }
}

/* v3.8.61 stock report print-safe styles */
.stock-report-logo{width:72px;height:72px;object-fit:contain;margin-bottom:8px}
.stock-report-header{text-align:center;color:#000;margin-bottom:18px}
.stock-report-header h1,.stock-report-header h2,.stock-report-header p{color:#000!important;margin:3px 0}
.stock-report-table th,.stock-report-table td{color:#000!important}
.stock-report-table .right{text-align:right!important}
.stock-report-table .total-row td{font-weight:800;border-top:2px solid #000;border-bottom:2px solid #000;background:#fff!important;color:#000!important}
@media print{.stock-report-logo{display:block;margin:0 auto 8px}.stock-report-header,.stock-report-header *,.stock-report-table,.stock-report-table *{color:#000!important}.no-print,.report-actions,.sidebar,.topbar{display:none!important}.main{margin:0!important}.content{padding:0!important}.card{box-shadow:none!important;border:none!important}.stock-report-table th,.stock-report-table td{border-color:#000!important}.stock-report-table .right{text-align:right!important}}


/* v3.8.62 report header standardization and print-safe layout */
.report-paper,
.stock-report-paper,
.net-assets-report{
  max-width:900px!important;
  margin:0 auto!important;
  background:#fff!important;
  color:#000!important;
}
.report-head,
.stock-report-header,
.net-assets-report .statement-header,
.statement-header{
  text-align:center!important;
  margin:0 auto 18px auto!important;
  padding:0!important;
  color:#000!important;
}
.report-logo,
.stock-report-logo,
.net-assets-report .statement-logo{
  width:64px!important;
  height:64px!important;
  max-width:64px!important;
  object-fit:contain!important;
  display:block!important;
  margin:0 auto 8px auto!important;
  float:none!important;
  clear:both!important;
  background:#fff!important;
}
.report-head h1,.report-head h2,.report-head h3,.report-head p,
.stock-report-header h1,.stock-report-header h2,.stock-report-header h3,.stock-report-header p,
.statement-header h1,.statement-header h2,.statement-header h3,.statement-header p,
.net-assets-report h1,.net-assets-report h2,.net-assets-report h3,.net-assets-report p{
  text-align:center!important;
  color:#000!important;
  margin:2px 0!important;
  line-height:1.25!important;
}
.report-head h2,.stock-report-header h1,.statement-header h2{font-size:18px!important;font-weight:800!important;}
.report-head h3,.stock-report-header h2,.statement-header h3{font-size:15px!important;font-weight:700!important;text-transform:uppercase!important;}
.report-table,.stock-report-table,.statement-table{width:100%!important;border-collapse:collapse!important;color:#000!important;}
.report-table th,.report-table td,
.stock-report-table th,.stock-report-table td,
.statement-table th,.statement-table td{color:#000!important;vertical-align:top!important;}
.report-table td.right,.report-table th.right,.report-table .amount-cell,
.stock-report-table td.right,.stock-report-table th.right,
.statement-table td.right,.statement-table th.right{ text-align:right!important; white-space:nowrap!important; font-variant-numeric:tabular-nums!important; }
.report-table td:not(.right),.report-table th:not(.right),
.stock-report-table td:not(.right),.stock-report-table th:not(.right),
.statement-table td:not(.right),.statement-table th:not(.right){ text-align:left!important; }
.report-table .total-row th,.report-table .total-row td,
.stock-report-table .total-row th,.stock-report-table .total-row td,
.statement-table .total-row th,.statement-table .total-row td{font-weight:800!important;border-top:1px solid #000!important;background:#fff!important;color:#000!important;}
.report-table .grand-total th,.report-table .grand-total td,
.stock-report-table .grand-total th,.stock-report-table .grand-total td,
.statement-table .grand-total th,.statement-table .grand-total td{font-weight:900!important;border-top:2px solid #000!important;border-bottom:2px solid #000!important;background:#fff!important;color:#000!important;}
.form-inline-error{display:none;margin:8px 0 0 0;padding:9px 12px;border:1px solid #b91c1c;background:#fee2e2;color:#7f1d1d!important;border-radius:8px;font-weight:700;}
.input.input-error, select.input-error, textarea.input-error{border-color:#b91c1c!important;box-shadow:0 0 0 2px rgba(185,28,28,.12)!important;}
@media print{
  @page{margin:12mm;}
  body{background:#fff!important;color:#000!important;}
  .report-paper,.stock-report-paper,.net-assets-report{max-width:none!important;margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;}
  .report-logo,.stock-report-logo,.net-assets-report .statement-logo{width:54px!important;height:54px!important;max-width:54px!important;margin:0 auto 6px auto!important;}
  .report-head,.stock-report-header,.statement-header{margin-bottom:12px!important;}
  .report-head h2,.stock-report-header h1,.statement-header h2{font-size:15px!important;}
  .report-head h3,.stock-report-header h2,.statement-header h3{font-size:13px!important;}
  .report-table th,.report-table td,.stock-report-table th,.stock-report-table td,.statement-table th,.statement-table td{font-size:11px!important;padding:5px 6px!important;}
}


/* v3.8.63 final report header and print standardization */
.report-paper,
.stock-report-paper,
.net-assets-report{
  width:100% !important;
  max-width:880px !important;
  margin:0 auto !important;
  padding:18px 22px !important;
  background:#fff !important;
  color:#000 !important;
  box-sizing:border-box !important;
}
.report-head,
.stock-report-header,
.statement-header,
.net-assets-report .statement-header{
  display:block !important;
  text-align:center !important;
  margin:0 auto 16px auto !important;
  padding:0 !important;
  border:0 !important;
  color:#000 !important;
}
.report-logo,
.stock-report-logo,
.net-assets-report .statement-logo,
.statement-logo{
  width:58px !important;
  height:58px !important;
  max-width:58px !important;
  max-height:58px !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 auto 7px auto !important;
  padding:0 !important;
  float:none !important;
  clear:both !important;
  background:transparent !important;
}
.report-head h1,.report-head h2,.report-head h3,.report-head p,
.stock-report-header h1,.stock-report-header h2,.stock-report-header h3,.stock-report-header p,
.statement-header h1,.statement-header h2,.statement-header h3,.statement-header p,
.net-assets-report h1,.net-assets-report h2,.net-assets-report h3,.net-assets-report p{
  color:#000 !important;
  text-align:center !important;
  margin:2px 0 !important;
  line-height:1.2 !important;
  background:transparent !important;
}
.report-head h2,.stock-report-header h1,.statement-header h2{font-size:17px !important;font-weight:800 !important;text-transform:uppercase !important;}
.report-head h3,.stock-report-header h2,.statement-header h3{font-size:14px !important;font-weight:800 !important;text-transform:uppercase !important;}
.report-head p,.stock-report-header p,.statement-header p{font-size:12px !important;font-weight:600 !important;}
.report-table,.stock-report-table,.statement-table{
  width:100% !important;
  border-collapse:collapse !important;
  color:#000 !important;
  background:#fff !important;
}
.report-table th,.report-table td,
.stock-report-table th,.stock-report-table td,
.statement-table th,.statement-table td{
  color:#000 !important;
  background:#fff !important;
  vertical-align:top !important;
}
.report-table th:not(.right),.report-table td:not(.right),
.stock-report-table th:not(.right),.stock-report-table td:not(.right),
.statement-table th:not(.right),.statement-table td:not(.right){text-align:left !important;}
.report-table .right,.report-table .amount-cell,
.stock-report-table .right,.stock-report-table .amount-cell,
.statement-table .right,.statement-table .amount-cell{
  text-align:right !important;
  white-space:nowrap !important;
  font-variant-numeric:tabular-nums !important;
}
.report-table .section-title td,.report-table .section-title th,
.stock-report-table .section-title td,.stock-report-table .section-title th,
.statement-table .section-title td,.statement-table .section-title th{
  color:#000 !important;
  background:#f3f4f6 !important;
  font-weight:800 !important;
  text-align:left !important;
}
.report-table .total-row th,.report-table .total-row td,
.stock-report-table .total-row th,.stock-report-table .total-row td,
.statement-table .total-row th,.statement-table .total-row td{
  color:#000 !important;
  background:#fff !important;
  font-weight:800 !important;
  border-top:1px solid #000 !important;
}
.report-table .grand-total th,.report-table .grand-total td,
.stock-report-table .grand-total th,.stock-report-table .grand-total td,
.statement-table .grand-total th,.statement-table .grand-total td{
  color:#000 !important;
  background:#fff !important;
  font-weight:900 !important;
  border-top:2px solid #000 !important;
  border-bottom:2px solid #000 !important;
}
.inline-toast{
  position:fixed;top:18px;right:18px;z-index:99999;max-width:420px;
  background:#fee2e2;color:#7f1d1d;border:1px solid #b91c1c;border-radius:10px;
  padding:12px 14px;font-weight:700;box-shadow:0 10px 24px rgba(0,0,0,.18);
}
@media print{
  @page{margin:12mm;}
  html,body{background:#fff !important;color:#000 !important;}
  .sidebar,.topbar,.report-actions,.filter-bar,.no-print,.btn{display:none !important;}
  .app,.main,.content{display:block !important;margin:0 !important;padding:0 !important;width:100% !important;}
  .card{box-shadow:none !important;border:0 !important;background:#fff !important;}
  .report-paper,.stock-report-paper,.net-assets-report{
    max-width:none !important;width:100% !important;margin:0 !important;padding:0 !important;box-shadow:none !important;border:0 !important;
  }
  .report-logo,.stock-report-logo,.net-assets-report .statement-logo,.statement-logo{
    width:48px !important;height:48px !important;max-width:48px !important;max-height:48px !important;margin:0 auto 5px auto !important;
  }
  .report-head,.stock-report-header,.statement-header,.net-assets-report .statement-header{margin-bottom:10px !important;}
  .report-head h2,.stock-report-header h1,.statement-header h2{font-size:14px !important;}
  .report-head h3,.stock-report-header h2,.statement-header h3{font-size:12px !important;}
  .report-head p,.stock-report-header p,.statement-header p{font-size:10px !important;}
  .report-table th,.report-table td,.stock-report-table th,.stock-report-table td,.statement-table th,.statement-table td{
    color:#000 !important;background:#fff !important;border-color:#000 !important;font-size:10.5px !important;padding:4px 5px !important;
  }
  .report-table .section-title td,.report-table .section-title th,
  .stock-report-table .section-title td,.stock-report-table .section-title th,
  .statement-table .section-title td,.statement-table .section-title th{background:#fff !important;color:#000 !important;font-weight:800 !important;}
}

/* v3.8.76 Monthly Financial Report */
.monthly-report-paper{max-width:900px;margin:0 auto;background:#fff;color:#000;font-family:Georgia,'Times New Roman',serif;font-size:15px;line-height:1.45;padding:28px 34px;}
.monthly-letterhead{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;align-items:center;margin-bottom:6px;color:#000;}
.monthly-logo{width:82px;height:auto;display:block;margin:0 auto 4px auto;}
.letter-logo-wrap{text-align:center;}
.letter-left{text-align:left;align-self:end;}
.letter-right{text-align:left;}
.small-text{font-size:11px;line-height:1.35;}
.letter-line{border-top:2px solid #111;border-bottom:1px solid #111;height:4px;margin:4px 0 8px 0;}
.letter-ref{display:flex;justify-content:space-between;margin:8px 0 22px 0;}
.monthly-title{text-align:center;text-decoration:underline;font-size:18px;margin:20px 0;color:#000;}
.monthly-report-paper h3{font-size:16px;margin:18px 0 8px 0;color:#000;}
.monthly-table th,.monthly-table td,.monthly-summary th,.monthly-summary td{border:1px solid #000 !important;padding:5px 7px;color:#000 !important;}
.monthly-table th,.monthly-summary th{background:#fff !important;color:#000 !important;font-weight:700;}
.monthly-table .total-row td,.monthly-summary .total-row td{font-weight:700;color:#000 !important;background:#fff !important;border-top:2px solid #000 !important;}
.monthly-signature{margin-top:55px;max-width:260px;color:#000;}
.signature-line{border-top:1px dotted #000;width:180px;margin-bottom:7px;}
@media print{
  .monthly-report-paper{max-width:none;margin:0;padding:0;font-size:12.5pt;box-shadow:none;border:none;}
  .monthly-logo{width:74px !important;}
  .monthly-letterhead{grid-template-columns:1fr 1fr 1fr;}
  .monthly-table th,.monthly-table td,.monthly-summary th,.monthly-summary td{border:1px solid #000 !important;color:#000 !important;}
  .monthly-title,.monthly-report-paper h3,.monthly-report-paper p{color:#000 !important;}
}


/* v3.8.80 Monthly report print-only fix */
@media print{
  body:has(.monthly-report-paper) .sidebar,
  body:has(.monthly-report-paper) .topbar,
  body:has(.monthly-report-paper) .report-actions,
  body:has(.monthly-report-paper) .filter-bar,
  body:has(.monthly-report-paper) .monthly-report-settings,
  body:has(.monthly-report-paper) .monthly-report-controls,
  body:has(.monthly-report-paper) .no-print,
  body:has(.monthly-report-paper) .btn{display:none !important;}
  body:has(.monthly-report-paper) .app,
  body:has(.monthly-report-paper) .main,
  body:has(.monthly-report-paper) .content,
  body:has(.monthly-report-paper) .monthly-report-page{
    display:block !important; margin:0 !important; padding:0 !important; width:100% !important; max-width:none !important; background:#fff !important;
  }
  body:has(.monthly-report-paper) .monthly-report-paper{
    display:block !important; visibility:visible !important; max-width:none !important; width:100% !important; margin:0 !important; padding:0 !important; border:0 !important; box-shadow:none !important; background:#fff !important; color:#000 !important;
  }
  body:has(.monthly-report-paper) .monthly-report-paper *{visibility:visible !important;}
}
@media print{
  .monthly-report-settings,.monthly-report-controls{display:none !important;}
}


/* v3.10.30 Stock reports print/PDF cleanup */
.stock-member-statement-print,.stock-aging-print{overflow:visible!important;}
.stock-member-statement-print .table-responsive,.stock-aging-print .table-responsive{overflow:visible!important;}
@media print{
  @page{size:A4 landscape;margin:8mm;}
  html,body{width:100%!important;background:#fff!important;color:#000!important;}
  body:has(.stock-member-statement-print) .sidebar,
  body:has(.stock-member-statement-print) .topbar,
  body:has(.stock-member-statement-print) .no-print,
  body:has(.stock-member-statement-print) .report-actions,
  body:has(.stock-member-statement-print) .btn,
  body:has(.stock-member-statement-print) footer,
  body:has(.stock-aging-print) .sidebar,
  body:has(.stock-aging-print) .topbar,
  body:has(.stock-aging-print) .no-print,
  body:has(.stock-aging-print) .report-actions,
  body:has(.stock-aging-print) .btn,
  body:has(.stock-aging-print) footer{display:none!important;}
  body:has(.stock-member-statement-print) .main,
  body:has(.stock-member-statement-print) .content,
  body:has(.stock-aging-print) .main,
  body:has(.stock-aging-print) .content{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;}
  .stock-member-statement-print,.stock-aging-print{
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
    border:0!important;box-shadow:none!important;background:#fff!important;color:#000!important;
    font-family:Arial,Helvetica,sans-serif!important;
  }
  .stock-member-statement-print .stock-report-header,.stock-aging-print .stock-report-header{margin-bottom:8px!important;}
  .stock-member-statement-print .stock-report-logo,.stock-aging-print .stock-report-logo{display:block!important;width:46px!important;height:46px!important;max-width:46px!important;margin:0 auto 4px!important;object-fit:contain!important;}
  .stock-member-statement-print .table-responsive,.stock-aging-print .table-responsive{overflow:visible!important;width:100%!important;}
  .stock-member-statement-print table.stock-report-table,.stock-aging-print table.stock-report-table{
    width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:9px!important;
  }
  .stock-member-statement-print .stock-report-table th,
  .stock-member-statement-print .stock-report-table td,
  .stock-aging-print .stock-report-table th,
  .stock-aging-print .stock-report-table td{
    padding:3px 4px!important;border:1px solid #000!important;white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;color:#000!important;background:#fff!important;line-height:1.2!important;
  }
  .stock-member-statement-print .stock-report-table th:nth-child(1),
  .stock-member-statement-print .stock-report-table td:nth-child(1){width:8%!important;}
  .stock-member-statement-print .stock-report-table th:nth-child(2),
  .stock-member-statement-print .stock-report-table td:nth-child(2){width:17%!important;}
  .stock-member-statement-print .stock-report-table th:nth-child(3),
  .stock-member-statement-print .stock-report-table td:nth-child(3){width:18%!important;}
  .stock-member-statement-print .stock-report-table th:nth-child(4),
  .stock-member-statement-print .stock-report-table td:nth-child(4){width:17%!important;}
  .stock-member-statement-print .stock-report-table th:nth-child(5),
  .stock-member-statement-print .stock-report-table td:nth-child(5){width:6%!important;}
  .stock-member-statement-print .stock-report-table th:nth-child(6),
  .stock-member-statement-print .stock-report-table td:nth-child(6),
  .stock-member-statement-print .stock-report-table th:nth-child(7),
  .stock-member-statement-print .stock-report-table td:nth-child(7),
  .stock-member-statement-print .stock-report-table th:nth-child(8),
  .stock-member-statement-print .stock-report-table td:nth-child(8){width:10%!important;text-align:right!important;white-space:nowrap!important;}
  .stock-member-statement-print .stock-report-table th:nth-child(9),
  .stock-member-statement-print .stock-report-table td:nth-child(9){width:12%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;}
  .stock-member-statement-print .stock-report-table th:nth-child(2),
  .stock-member-statement-print .stock-report-table td:nth-child(2){width:15%!important;}
  .stock-member-statement-print .stock-report-table th:nth-child(4),
  .stock-member-statement-print .stock-report-table td:nth-child(4){width:16%!important;}
  .stock-aging-print .stock-report-table th:nth-child(1),
  .stock-aging-print .stock-report-table td:nth-child(1){width:9%!important;}
  .stock-aging-print .stock-report-table th:nth-child(2),
  .stock-aging-print .stock-report-table td:nth-child(2){width:18%!important;}
  .stock-aging-print .stock-report-table th:nth-child(3),
  .stock-aging-print .stock-report-table td:nth-child(3){width:16%!important;}
  .stock-aging-print .stock-report-table th:nth-child(4),
  .stock-aging-print .stock-report-table td:nth-child(4){width:24%!important;}
  .stock-aging-print .stock-report-table th:nth-child(5),
  .stock-aging-print .stock-report-table td:nth-child(5),
  .stock-aging-print .stock-report-table th:nth-child(6),
  .stock-aging-print .stock-report-table td:nth-child(6),
  .stock-aging-print .stock-report-table th:nth-child(7),
  .stock-aging-print .stock-report-table td:nth-child(7){width:10%!important;text-align:right!important;white-space:nowrap!important;}
  .stock-aging-print .stock-report-table th:nth-child(8),
  .stock-aging-print .stock-report-table td:nth-child(8){width:7%!important;text-align:right!important;white-space:nowrap!important;}
  .stock-member-statement-print thead,.stock-aging-print thead{display:table-header-group!important;}
  .stock-member-statement-print tfoot,.stock-aging-print tfoot{display:table-footer-group!important;}
  .stock-member-statement-print tr,.stock-aging-print tr{page-break-inside:avoid!important;break-inside:avoid!important;}
}


/* v3.10.31 report polish: signature blocks, portrait reports, GL movement side columns */
.report-signature-block,.approval-block{margin-top:28px;page-break-inside:avoid;color:#000!important;}
.report-signature-block p,.approval-block p{font-size:12px;text-align:center;margin:4px 0;color:#000!important;}
.signature-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:34px!important;margin-top:34px!important;align-items:end!important;}
.signature-box{text-align:center!important;min-width:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;color:#000!important;}
.signature-box .sig-line{border-top:1px dotted #000!important;margin:0 8px 10px 8px!important;height:14px!important;}
.signature-box strong,.signature-box span{display:block!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.25!important;color:#000!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;}
.report-table .side-cell,.stock-report-table .side-cell{white-space:nowrap!important;text-align:center!important;}
@media print{
  .report-signature-block,.approval-block{margin-top:20px!important;page-break-inside:avoid!important;}
  .signature-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;margin-top:26px!important;}
  .signature-box{font-size:10.5px!important;text-align:center!important;white-space:normal!important;}
  .signature-box strong,.signature-box span{font-size:10.5px!important;line-height:1.2!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;}
}

/* v3.10.32 General Ledger statement layout */
.general-ledger-report .report-logo{height:72px;max-width:95px;object-fit:contain;display:block;margin:0 auto 8px auto;}
.general-ledger-table th:nth-child(1),.general-ledger-table td:nth-child(1){width:90px;white-space:nowrap;}
.general-ledger-table th:nth-child(2),.general-ledger-table td:nth-child(2){width:150px;word-break:break-word;}
.general-ledger-table th:nth-child(4),.general-ledger-table td:nth-child(4),
.general-ledger-table th:nth-child(5),.general-ledger-table td:nth-child(5),
.general-ledger-table th:nth-child(6),.general-ledger-table td:nth-child(6){width:115px;white-space:nowrap;}
.general-ledger-table th:nth-child(7),.general-ledger-table td:nth-child(7){width:80px;text-align:center!important;white-space:nowrap;}
@media print{
  .general-ledger-report{padding:0!important;max-width:none!important;}
  .general-ledger-report .report-logo{height:64px!important;}
  .general-ledger-table{font-size:10px!important;}
  .general-ledger-table th,.general-ledger-table td{padding:5px 6px!important;}
}

/* v3.10.33 General Ledger print fit fix */
.general-ledger-report{max-width:1120px!important;}
.general-ledger-table{table-layout:fixed!important;width:100%!important;border-collapse:collapse!important;}
.general-ledger-table th,.general-ledger-table td{vertical-align:top!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;}
.general-ledger-table th:nth-child(1),.general-ledger-table td:nth-child(1){width:8%!important;white-space:nowrap!important;}
.general-ledger-table th:nth-child(2),.general-ledger-table td:nth-child(2){width:14%!important;}
.general-ledger-table th:nth-child(3),.general-ledger-table td:nth-child(3){width:34%!important;}
.general-ledger-table th:nth-child(4),.general-ledger-table td:nth-child(4),
.general-ledger-table th:nth-child(5),.general-ledger-table td:nth-child(5){width:11%!important;white-space:nowrap!important;text-align:right!important;}
.general-ledger-table th:nth-child(6),.general-ledger-table td:nth-child(6){width:13%!important;white-space:nowrap!important;text-align:right!important;}
.general-ledger-table th:nth-child(7),.general-ledger-table td:nth-child(7){width:9%!important;text-align:center!important;white-space:nowrap!important;}
@media print{
  @page{size:A4 landscape;margin:8mm;}
  body:has(.general-ledger-report) .sidebar,
  body:has(.general-ledger-report) .topbar,
  body:has(.general-ledger-report) .report-actions,
  body:has(.general-ledger-report) .filter-bar,
  body:has(.general-ledger-report) .btn,
  body:has(.general-ledger-report) footer{display:none!important;}
  body:has(.general-ledger-report) .main,
  body:has(.general-ledger-report) .content{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;}
  .general-ledger-report{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;}
  .general-ledger-report .report-logo{width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;margin:0 auto 4px!important;}
  .general-ledger-report .report-head{margin-bottom:7px!important;}
  .general-ledger-report .report-head h2{font-size:13px!important;margin:1px 0!important;}
  .general-ledger-report .report-head h3{font-size:11px!important;margin:1px 0!important;}
  .general-ledger-report .report-head p{font-size:9px!important;margin:1px 0!important;}
  .general-ledger-table{table-layout:fixed!important;width:100%!important;font-size:8.6px!important;}
  .general-ledger-table th,.general-ledger-table td{padding:3px 4px!important;line-height:1.16!important;border-bottom:1px solid #999!important;}
  .general-ledger-table thead{display:table-header-group!important;}
  .general-ledger-table tfoot{display:table-footer-group!important;}
  .general-ledger-table tr{page-break-inside:avoid!important;break-inside:avoid!important;}
  .general-ledger-report .report-signature-block{margin-top:14px!important;page-break-inside:avoid!important;}
}

/* v3.10.35 Report content stretch / balanced print layout
   Purpose: remove the large unused white gap on the right side of portrait reports by
   making the printable report container and table grid use the full A4 printable width. */
.report-paper,
.net-assets-report{
  width:100%!important;
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.report-paper .table,
.net-assets-report .table,
.statement-table{
  width:100%!important;
  min-width:100%!important;
  table-layout:fixed!important;
}

/* Wider, balanced columns for portrait financial statements */
body:has(.report-paper) .report-paper .table th,
body:has(.report-paper) .report-paper .table td,
.net-assets-report .statement-table th,
.net-assets-report .statement-table td{
  box-sizing:border-box!important;
}

/* Trial Balance: spread account name and amount columns across the printable width */
.report-paper .table th:nth-child(1),
.report-paper .table td:nth-child(1){width:8%!important;}
.report-paper .table th:nth-child(2),
.report-paper .table td:nth-child(2){width:40%!important;}
.report-paper .table th:nth-child(3),
.report-paper .table td:nth-child(3){width:18%!important;}
.report-paper .table th:nth-child(4),
.report-paper .table td:nth-child(4),
.report-paper .table th:nth-child(5),
.report-paper .table td:nth-child(5){width:17%!important;}

/* SFP / SCNA style statement tables: description uses the left half, years use the right half */
.net-assets-report .statement-table th:first-child,
.net-assets-report .statement-table td:first-child{width:54%!important;}
.net-assets-report .statement-table th:nth-child(2),
.net-assets-report .statement-table td:nth-child(2),
.net-assets-report .statement-table th:nth-child(3),
.net-assets-report .statement-table td:nth-child(3){width:23%!important;}

@media print{
  @page{size:A4 portrait;margin:8mm 8mm 10mm 8mm;}
  body:has(.report-paper:not(.general-ledger-report)) .main,
  body:has(.report-paper:not(.general-ledger-report)) .content,
  body:has(.net-assets-report) .main,
  body:has(.net-assets-report) .content{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  body:has(.report-paper:not(.general-ledger-report)) .report-paper,
  body:has(.net-assets-report) .net-assets-report{
    width:100%!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:0!important;
    box-shadow:none!important;
    border:0!important;
    border-radius:0!important;
  }
  body:has(.report-paper:not(.general-ledger-report)) .report-paper .table,
  body:has(.net-assets-report) .statement-table{
    width:100%!important;
    min-width:100%!important;
    table-layout:fixed!important;
    font-size:9.2px!important;
  }
  body:has(.report-paper:not(.general-ledger-report)) .report-paper .table th,
  body:has(.report-paper:not(.general-ledger-report)) .report-paper .table td,
  body:has(.net-assets-report) .statement-table th,
  body:has(.net-assets-report) .statement-table td{
    padding:4px 5px!important;
    line-height:1.18!important;
  }
  body:has(.net-assets-report) .net-assets-report .report-head,
  body:has(.report-paper:not(.general-ledger-report)) .report-paper .report-head{
    width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:center!important;
  }
  body:has(.net-assets-report) .approval-block,
  body:has(.report-paper:not(.general-ledger-report)) .report-signature-block{
    width:100%!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body:has(.net-assets-report) .signature-grid,
  body:has(.report-paper:not(.general-ledger-report)) .signature-grid{
    width:100%!important;
    max-width:none!important;
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:18mm!important;
  }
}


/* v3.10.36 SCNA-specific print width balance
   SCNA uses its own net-assets template, so apply direct selectors without :has(). */
.scna-report{width:100%!important;max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;}
.scna-report .statement-table{width:100%!important;min-width:100%!important;table-layout:fixed!important;}
.scna-report .statement-table th:first-child,.scna-report .statement-table td:first-child{width:62%!important;}
.scna-report .statement-table th:nth-child(2),.scna-report .statement-table td:nth-child(2),.scna-report .statement-table th:nth-child(3),.scna-report .statement-table td:nth-child(3){width:19%!important;}
@media print{
  .scna-report{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;}
  .scna-report .statement-table{width:100%!important;min-width:100%!important;table-layout:fixed!important;font-size:9.6px!important;}
  .scna-report .statement-table th,.scna-report .statement-table td{padding:4px 6px!important;line-height:1.18!important;}
  .scna-report .approval-block{width:100%!important;max-width:none!important;margin-top:16px!important;}
  .scna-report .signature-grid{width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:14mm!important;}
}


/* v3.10.37 SCNA final full-width print fix */
.scna-report{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;}
.scna-report .statement-table{display:table!important;width:100%!important;max-width:none!important;min-width:100%!important;table-layout:fixed!important;}
.scna-report .statement-table col.scna-label-col{width:64%!important;}
.scna-report .statement-table col.scna-amount-col{width:18%!important;}
@media print{
  @page{size:A4 portrait;margin:7mm;}
  .scna-report{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;}
  .scna-report .statement-table{display:table!important;width:100%!important;max-width:none!important;min-width:100%!important;table-layout:fixed!important;font-size:9.2px!important;}
  .scna-report .statement-table th,.scna-report .statement-table td{padding:3px 5px!important;line-height:1.12!important;}
  .scna-report .statement-table th:first-child,.scna-report .statement-table td:first-child{width:64%!important;}
  .scna-report .statement-table th:nth-child(2),.scna-report .statement-table td:nth-child(2),.scna-report .statement-table th:nth-child(3),.scna-report .statement-table td:nth-child(3){width:18%!important;}
}

/* v3.10.105 Monthly report print table visibility fix
   Keep all monthly report columns inside the printable A4 width. */
.monthly-report-paper .monthly-table,
.monthly-report-paper .monthly-summary{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:fixed!important;
  display:table!important;
  overflow:visible!important;
  border-collapse:collapse!important;
}
.monthly-report-paper .monthly-table th,
.monthly-report-paper .monthly-table td,
.monthly-report-paper .monthly-summary th,
.monthly-report-paper .monthly-summary td{
  box-sizing:border-box!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  vertical-align:top!important;
}
.monthly-report-paper .monthly-table th:nth-child(1),
.monthly-report-paper .monthly-table td:nth-child(1){width:11%!important;}
.monthly-report-paper .monthly-table th:nth-child(2),
.monthly-report-paper .monthly-table td:nth-child(2){width:69%!important;}
.monthly-report-paper .monthly-table th:nth-child(3),
.monthly-report-paper .monthly-table td:nth-child(3){width:20%!important;text-align:right!important;}
.monthly-report-paper .monthly-summary th:nth-child(1),
.monthly-report-paper .monthly-summary td:nth-child(1){width:72%!important;}
.monthly-report-paper .monthly-summary th:nth-child(2),
.monthly-report-paper .monthly-summary td:nth-child(2){width:28%!important;text-align:right!important;}
@media print{
  body:has(.monthly-report-paper) .monthly-report-paper{
    width:100%!important;
    max-width:none!important;
    overflow:visible!important;
    font-size:11.5pt!important;
  }
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-table,
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-summary{
    display:table!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
    overflow:visible!important;
  }
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-table th,
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-table td,
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-summary th,
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-summary td{
    font-size:8.6pt!important;
    line-height:1.18!important;
    padding:3px 4px!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-table th:nth-child(1),
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-table td:nth-child(1){width:11%!important;}
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-table th:nth-child(2),
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-table td:nth-child(2){width:69%!important;}
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-table th:nth-child(3),
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-table td:nth-child(3){width:20%!important;text-align:right!important;}
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-summary th:nth-child(1),
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-summary td:nth-child(1){width:72%!important;}
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-summary th:nth-child(2),
  body:has(.monthly-report-paper) .monthly-report-paper .monthly-summary td:nth-child(2){width:28%!important;text-align:right!important;}
}

/* v3.10.117 Editable generated letterhead (request letters and monthly reports) */
.uwk-letterhead{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;align-items:center;margin-bottom:6px;color:#000;}
.uwk-lh-left{font-size:11px;line-height:1.35;text-align:left;align-self:end;color:#000;}
.uwk-lh-center{text-align:center;color:#000;}
.uwk-lh-center img{width:82px;height:auto;display:block;margin:0 auto 4px auto;}
.uwk-lh-subtitle{font-size:11px;line-height:1.25;font-weight:700;color:#000;}
.uwk-lh-right{font-size:11px;line-height:1.35;text-align:left;color:#000;}
.uwk-lh-org{font-weight:700;color:#000;}
.uwk-lh-line{border-top:2px solid #111;border-bottom:1px solid #111;height:4px;margin:4px 0 8px 0;}
@media print{.uwk-lh-center img{width:74px !important}.uwk-letterhead{grid-template-columns:1fr 1fr 1fr;color:#000 !important}.uwk-lh-left,.uwk-lh-center,.uwk-lh-right,.uwk-lh-subtitle,.uwk-lh-org{color:#000 !important}}

/* v3.10.227 compact professional report signatures */
.report-signature-block{margin-top:16px!important;text-align:center!important;page-break-inside:avoid!important;font-size:11px!important;}
.report-signature-block p{margin:4px 0!important;}
.report-signature-block .approval-date{font-weight:600!important;}
.report-signature-block .signature-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:18mm!important;align-items:end!important;margin-top:18px!important;}
.report-signature-block .signature-box{text-align:center!important;min-width:0!important;}
.report-signature-block .sig-line{border-top:1px dotted #111!important;height:18px!important;margin:0 0 6px 0!important;}
.report-signature-block strong{display:block!important;font-size:10px!important;margin-top:0!important;}
.report-signature-block span{display:block!important;font-size:9px!important;}
@media print{.report-signature-block{margin-top:12px!important;font-size:9px!important}.report-signature-block .signature-grid{gap:14mm!important;margin-top:14px!important}.report-signature-block .sig-line{height:14px!important}.report-signature-block strong{font-size:8.5px!important}.report-signature-block span{font-size:8px!important}}


/* v3.10.228 auto-filled report signature names */
.report-signature-block .signature-box .sig-line{display:none!important;}
.report-signature-block .sig-name-line{
  display:block!important;
  border-bottom:1px dotted #111!important;
  padding:0 4px 5px 4px!important;
  margin:0 0 5px 0!important;
  font-weight:700!important;
  line-height:1.15!important;
  min-height:14px!important;
}
.report-signature-block .signature-box span{display:block!important;margin-top:2px!important;}
@media print{
  .report-signature-block .sig-name-line{font-size:8.5px!important;padding-bottom:4px!important;margin-bottom:4px!important;min-height:11px!important;}
  .report-signature-block .signature-box span{font-size:8px!important;}
}

/* v3.10.229 auto-render uploaded signature images on report signatory blocks */
.report-signature-block .signature-box .sig-line{display:none!important;}
.report-signature-block .sig-image-wrap{height:28px!important;margin:0 0 2px 0!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;overflow:hidden!important;}
.report-signature-block .report-sig-image{display:block!important;max-width:150px!important;max-height:28px!important;object-fit:contain!important;mix-blend-mode:multiply!important;}
.report-signature-block .sig-image-missing{border-bottom:1px dotted #111!important;margin-left:10px!important;margin-right:10px!important;}
.report-signature-block .sig-name-line{display:block!important;border-top:0!important;border-bottom:0!important;padding:0!important;margin:0 0 2px 0!important;min-height:auto!important;font-weight:800!important;line-height:1.15!important;}
.report-signature-block .signature-box span{display:block!important;margin-top:0!important;line-height:1.15!important;}
@media print{
  .report-signature-block .sig-image-wrap{height:24px!important;margin-bottom:1px!important;}
  .report-signature-block .report-sig-image{max-width:130px!important;max-height:24px!important;}
  .report-signature-block .sig-name-line{font-size:8.5px!important;line-height:1.1!important;margin-bottom:1px!important;}
  .report-signature-block .signature-box span{font-size:8px!important;line-height:1.1!important;}
}

/* v3.10.239 Monthly report uploaded signature image */
.monthly-signature .monthly-sig-image-wrap{height:38px;max-width:260px;display:flex;align-items:flex-end;justify-content:flex-start;overflow:hidden;margin-bottom:2px;}
.monthly-signature .monthly-sig-image{display:block;max-width:180px;max-height:36px;object-fit:contain;mix-blend-mode:multiply;}
.monthly-signature .monthly-sig-image-missing{height:24px;}
@media print{
  .monthly-signature .monthly-sig-image-wrap{height:34px;}
  .monthly-signature .monthly-sig-image{max-width:170px;max-height:32px;}
}


/* v3.10.260 - Professional layout for reconciliation outstanding items */
.recon-outstanding-page .recon-hero{
  background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px 28px;margin-bottom:22px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 9px 25px #1118270a;
}
.recon-outstanding-page .recon-hero .eyebrow{margin:0 0 6px;color:#64748b;font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:12px;}
.recon-outstanding-page .recon-hero h1{margin:0;font-size:30px;}
.recon-outstanding-page .recon-hero p{margin:8px 0 0;color:#475569;}
.recon-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.72fr);gap:22px;align-items:start;}
.recon-card h2,.register-card h2{margin:0;font-size:24px;}
.recon-card .card-head{margin-bottom:18px;}
.professional-form{display:grid;gap:16px;}
.professional-form label{display:block;font-weight:800;color:#111827;}
.professional-form input,.professional-form select,.professional-form textarea{
  width:100%;box-sizing:border-box;margin-top:7px;padding:12px 13px;border:1px solid var(--line);border-radius:13px;background:#fff;font-size:15px;font-family:inherit;
}
.professional-form textarea{resize:vertical;min-height:96px;}
.professional-form .form-row{display:grid;gap:14px;}
.professional-form .form-row.two{grid-template-columns:repeat(2,minmax(0,1fr));}
.professional-form .form-row.three{grid-template-columns:1.25fr .8fr 1.25fr;}
.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px;}
.form-actions.split{justify-content:space-between;align-items:center;}
.upload-note{background:#f8fafc;border:1px dashed #cbd5e1;color:#475569;padding:12px;border-radius:14px;font-size:14px;}
.register-card{margin-top:22px;}
.register-toolbar{align-items:flex-start;}
.register-toolbar h2{margin-bottom:6px;}
.segmented-actions{display:flex;gap:8px;}
.segmented-actions .active{background:#111217;color:#fff;}
.table-wrap{overflow:auto;border-radius:16px;}
.status-form{display:flex;gap:8px;align-items:center;}
.status-form select{padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;}
.empty-row{padding:22px!important;text-align:center;}
@media(max-width:1100px){.recon-form-grid{grid-template-columns:1fr}.professional-form .form-row.three{grid-template-columns:1fr}.recon-outstanding-page .recon-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.professional-form .form-row.two{grid-template-columns:1fr}.form-actions.split{flex-direction:column;align-items:stretch}.form-actions .btn,.form-actions a{width:100%;text-align:center}.recon-outstanding-page .recon-hero h1{font-size:24px}}

/* v1.3.36 document finalization / locking */
.doc-lock-bar{border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;margin:12px 0;background:#f8fafc;color:#111827;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;page-break-inside:avoid;}
.doc-lock-bar.doc-final{background:#ecfdf5;border-color:#10b981;}
.doc-lock-bar.doc-draft{background:#fffbeb;border-color:#f59e0b;}
.doc-lock-form{margin:0;display:inline-flex;gap:8px;align-items:center;}
.doc-lock-bar .btn{padding:7px 12px;border-radius:8px;border:0;background:#0f766e;color:#fff;font-weight:700;cursor:pointer;}
.doc-lock-table{width:100%;border-collapse:collapse;background:#fff;}
.doc-lock-table th,.doc-lock-table td{border:1px solid #e5e7eb;padding:8px;text-align:left;vertical-align:top;}
.doc-lock-table th{background:#0f172a;color:#fff;}
.doc-status-final{display:inline-block;background:#dcfce7;color:#166534;border-radius:999px;padding:3px 8px;font-weight:700;font-size:12px;}
.doc-status-draft{display:inline-block;background:#fef3c7;color:#92400e;border-radius:999px;padding:3px 8px;font-weight:700;font-size:12px;}
@media print{.doc-lock-bar{display:none!important}}
