*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f4f7f8;color:#172033}a{transition:.2s}.topbar{background:linear-gradient(115deg,#063d2a,#0a613d 60%,#0d4938);color:#fff;padding:13px 28px;display:flex;justify-content:space-between;align-items:center;min-height:82px;border-bottom:3px solid #d6b24c}.brand{font-weight:700}.brand-with-logo{display:flex;align-items:center;gap:13px}.header-logo{width:58px;height:58px;max-width:16vw;object-fit:contain;border-radius:50%;background:#fff;padding:2px;border:2px solid rgba(255,215,100,.85);flex:0 0 auto}.brand-text{display:flex;flex-direction:column;line-height:1.2}.brand-text strong{font-size:20px}.brand-text small{font-size:12px;font-weight:500;opacity:.84;margin-top:4px;letter-spacing:.3px}.user-box{text-align:right;position:relative;padding-right:72px;min-height:44px}.user-name{font-weight:700;font-size:14px}.user-meta{font-size:12px;opacity:.78;margin-top:3px}.logout-link{position:absolute;right:0;top:4px;color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.38);padding:7px 10px;border-radius:8px;font-size:12px}.logout-link:hover{background:rgba(255,255,255,.12)}.nav{background:#fff;padding:8px 20px;box-shadow:0 4px 16px rgba(23,32,51,.07);white-space:nowrap;overflow-x:auto;position:sticky;top:0;z-index:20}.nav a{display:inline-block;margin:3px 3px 3px 0;padding:9px 12px;text-decoration:none;color:#365046;border-radius:8px;font-weight:600;font-size:13px}.nav a:hover,.nav a.active{background:#e7f3ec;color:#07583a}.nav a.active{box-shadow:inset 0 -2px 0 #caa43e}.container{max-width:1280px;margin:22px auto;padding:0 18px}.card{background:#fff;border-radius:14px;padding:18px;box-shadow:0 6px 22px rgba(31,50,45,.06);border:1px solid #edf1ef;margin-bottom:18px}.branch-toolbar{display:flex;align-items:center;justify-content:space-between;padding:13px 16px}.branch-toolbar-title{display:flex;align-items:center;gap:10px}.branch-toolbar-title .dot{width:9px;height:9px;border-radius:50%;background:#0b754c;box-shadow:0 0 0 5px #e4f5ec}.branch-toolbar-title strong{display:block;font-size:13px}.branch-toolbar-title small{display:block;color:#78857f;font-size:11px;margin-top:2px}.branch-toolbar form{width:min(380px,48%)}.branch-toolbar select{width:100%;padding:9px 12px;border:1px solid #d8e3de;border-radius:9px;background:#fbfdfc;color:#263b33}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:23px 0 18px}.eyebrow{margin:0 0 4px;color:#0b6c49;font-size:10px;font-weight:800;letter-spacing:1.7px}.page-heading h1{margin:0;font-size:29px;color:#15392c}.page-subtitle{margin:5px 0 0;color:#75827d;font-size:13px}.dashboard-date{background:#fff;border:1px solid #e5ece8;border-radius:10px;padding:9px 13px;color:#50615a;font-size:12px;box-shadow:0 4px 14px rgba(31,50,45,.04)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid #e8eeeb;border-radius:14px;padding:17px 18px;position:relative;overflow:hidden;box-shadow:0 6px 20px rgba(31,50,45,.05)}.stat-card:after{content:"";position:absolute;width:64px;height:64px;border-radius:50%;right:-20px;top:-20px;background:#edf4f1}.stat-card.primary:after{background:#e3f1eb}.stat-card.warning:after{background:#fff2d7}.stat-card.danger:after{background:#fde9e7}.stat-card.success:after{background:#e5f5ea}.stat-label{font-size:12px;color:#7b8883;font-weight:700;margin-bottom:8px}.stat-value{font-size:27px;line-height:1.15;font-weight:800;color:#1e3b30;white-space:nowrap}.stat-value.money{font-size:23px}.stat-foot{font-size:10px;color:#9aa39f;margin-top:7px}.stat-card.primary{border-top:3px solid #0b6c49}.stat-card.warning{border-top:3px solid #d69b26}.stat-card.danger{border-top:3px solid #c94b42}.stat-card.success{border-top:3px solid #26915b}.dashboard-two-col{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}.card-title-row h3{margin:0;color:#243e34;font-size:16px}.card-title-row p{margin:4px 0 0;color:#89938f;font-size:11px}.percent-badge{font-size:13px;font-weight:800;background:#e8f4ee;color:#0b6c49;border-radius:999px;padding:7px 10px}.progress{height:10px;border-radius:999px;background:#eef2f0;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,#0b6c49,#2e946c);border-radius:999px}.overview-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.overview-numbers div{background:#f8faf9;padding:11px;border-radius:9px}.overview-numbers small{display:block;color:#87928d;font-size:10px}.overview-numbers strong{display:block;color:#284139;font-size:14px;margin-top:5px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-actions a{text-decoration:none;padding:11px 12px;border-radius:9px;background:#f3f8f5;color:#165d43;font-weight:700;font-size:12px;border:1px solid #e3eee8}.quick-actions a:hover{background:#e4f2ea;border-color:#c8e1d3}.text-link{font-size:11px;color:#0b6c49;text-decoration:none;font-weight:700}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:11px 12px;border-bottom:1px solid #edf1ef;text-align:left;white-space:nowrap;font-size:12px}th{background:#f3f7f5;color:#426056;font-size:10px;text-transform:uppercase;letter-spacing:.45px}tr:hover td{background:#fbfdfc}.branch-badge{display:inline-block;background:#e8f3ed;color:#106445;padding:4px 7px;border-radius:6px;font-size:10px;font-weight:800}.amount-cell{font-weight:800;color:#136846}.receipt-link{color:#805e0e;text-decoration:none;background:#fff6dd;border:1px solid #f1dfab;border-radius:6px;padding:5px 8px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.stat{padding:18px;border-left:5px solid #0b6c49}.stat h3{margin:0 0 8px;font-size:15px;color:#667}.stat .num{font-size:27px;font-weight:700}.btn{display:inline-block;border:0;background:#0b6c49;color:#fff;padding:10px 14px;border-radius:7px;text-decoration:none;cursor:pointer}.btn.red{background:#c0392b}.btn.green{background:#1b8f4b}.btn.gray{background:#667085}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.field{margin-bottom:14px}.field label{display:block;font-size:13px;margin-bottom:6px;font-weight:700}.field input,.field select,.field textarea{width:100%;padding:10px;border:1px solid #cfd7e3;border-radius:7px;background:#fff}.alert{padding:11px 14px;border-radius:7px;margin-bottom:15px;background:#e8f6ee;color:#17633a}.alert.err{background:#fdecec;color:#9c2929}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(135deg,#063d2a,#0c6543 58%,#173f33)}.login-card{width:100%;max-width:420px;background:#fff;border-radius:16px;padding:27px;box-shadow:0 20px 50px rgba(0,0,0,.25);border-top:4px solid #d6b24c}.login-card h1{text-align:center;color:#0b5d40;margin-bottom:5px}.small{font-size:12px;color:#677}.receipt{max-width:800px;margin:auto;background:#fff;padding:26px;border:2px solid #222}.receipt h2,.receipt h3{text-align:center;margin:5px}.receipt table td{white-space:normal}.login-logo-wrap{text-align:center;margin-bottom:8px}.login-logo{width:118px;height:118px;max-width:38vw;object-fit:contain;border-radius:50%;display:inline-block}.receipt-logo-wrap{text-align:center;margin-bottom:6px}.receipt-logo{width:90px;height:90px;max-width:22vw;object-fit:contain;border-radius:50%}.no-print{}
@media(max-width:1050px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.topbar{gap:10px;align-items:flex-start;flex-direction:column;padding:11px 16px}.header-logo{width:48px;height:48px}.brand-text strong{font-size:16px}.brand-text small{font-size:10px}.user-box{text-align:left;padding-right:75px;width:100%}.nav{padding:7px 10px}.container{padding:0 12px;margin-top:15px}.branch-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.branch-toolbar form{width:100%}.page-heading{align-items:flex-start;gap:10px}.page-heading h1{font-size:24px}.dashboard-date{display:none}.dashboard-two-col{grid-template-columns:1fr}.overview-numbers{grid-template-columns:1fr}.quick-actions{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.stats-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card{padding:14px 12px}.stat-value{font-size:23px}.stat-value.money{font-size:17px}.stat-label{font-size:10px}.quick-actions{grid-template-columns:1fr}.login-logo{width:102px;height:102px}}
@media print{.no-print,.topbar,.nav{display:none!important}body{background:#fff}.container{margin:0;max-width:none}.card{box-shadow:none}.receipt{border:1px solid #000}.receipt-logo{width:78px;height:78px}}

/* HCIT compact logo/header override - applies to every admin page */
.topbar{min-height:72px!important;padding:8px 22px!important;overflow:hidden!important}
.brand-with-logo{min-height:54px!important;max-height:58px!important;overflow:hidden!important}
img.header-logo,.topbar .header-logo,.brand-with-logo>img{width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;min-height:54px!important;max-height:54px!important;object-fit:contain!important;object-position:center!important;display:block!important;margin:0!important;padding:2px!important;border-radius:50%!important}
.login-logo-wrap{height:126px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
img.login-logo{width:118px!important;height:118px!important;max-width:118px!important;max-height:118px!important;object-fit:contain!important;display:block!important}
.receipt-logo-wrap{height:92px!important;overflow:hidden!important}
img.receipt-logo{width:86px!important;height:86px!important;max-width:86px!important;max-height:86px!important;object-fit:contain!important}
@media(max-width:760px){.topbar{min-height:64px!important;padding:7px 12px!important}.brand-with-logo{min-height:46px!important;max-height:50px!important}img.header-logo,.topbar .header-logo,.brand-with-logo>img{width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;min-height:46px!important;max-height:46px!important}}

/* Professional HCIT Fee Receipt */
.receipt-actions{max-width:900px;margin:0 auto 12px;display:flex;gap:8px}.receipt-pro{max-width:900px!important;padding:0!important;border:1px solid #d7c27a!important;border-radius:12px;overflow:hidden;box-shadow:0 12px 35px rgba(17,55,42,.10);position:relative}.receipt-accent{height:8px;background:linear-gradient(90deg,#063d2a,#0a7048 65%,#d2ad43)}.receipt-head{display:flex;align-items:center;justify-content:center;gap:20px;padding:18px 28px 13px;background:linear-gradient(180deg,#fff,#fbfdfc)}.receipt-pro-logo{width:88px;height:88px;object-fit:contain;flex:0 0 auto}.receipt-title{text-align:center}.receipt-title h1{margin:0;color:#073f2c;font-size:27px;letter-spacing:.8px}.receipt-title h2{margin:5px 0 0;color:#283b34;font-size:17px}.receipt-title p{margin:6px 0 0;color:#66736e;font-size:12px}.receipt-ribbon{background:#07583c;color:#fff;text-align:center;padding:9px 20px;border-top:2px solid #d5b54e;border-bottom:2px solid #d5b54e}.receipt-ribbon span{display:block;font-size:20px;font-weight:800;letter-spacing:2px}.receipt-ribbon small{font-size:9px;letter-spacing:1.5px;opacity:.78}.receipt-meta{display:grid;grid-template-columns:1.5fr 1fr 1fr;border-bottom:1px solid #e8ecea}.receipt-meta div,.receipt-info-grid div,.receipt-payment-grid div,.receipt-bottom-grid div{padding:12px 16px;border-right:1px solid #e8ecea}.receipt-meta div:last-child{border-right:0}.receipt-pro span{display:block;color:#718079;font-size:10px;text-transform:uppercase;letter-spacing:.6px;margin-bottom:4px}.receipt-pro strong{color:#243a32;font-size:13px}.receipt-section-title{padding:7px 16px;background:#f1f7f4;color:#0a6343;font-size:10px;font-weight:800;letter-spacing:1.1px;border-top:1px solid #e2ebe6;border-bottom:1px solid #e2ebe6}.receipt-info-grid{display:grid;grid-template-columns:repeat(2,1fr)}.receipt-info-grid div:nth-child(2n){border-right:0}.receipt-info-grid div:nth-child(-n+2){border-bottom:1px solid #e8ecea}.receipt-payment-grid{display:grid;grid-template-columns:repeat(4,1fr)}.receipt-payment-grid div:last-child{border-right:0}.receipt-payment-grid strong{font-size:16px}.receipt-payment-grid .paid-box{background:#e9f7ef}.receipt-payment-grid .paid-box strong{color:#087343;font-size:19px}.receipt-payment-grid .due-box{background:#fff4e8}.receipt-payment-grid .due-box strong{color:#b75a17;font-size:19px}.receipt-words{margin:14px 16px 0;padding:11px 14px;background:#fffaf0;border:1px dashed #d6b452;border-radius:8px}.receipt-words strong{color:#5b4917}.receipt-bottom-grid{display:grid;grid-template-columns:1fr 2fr;margin:12px 0;border-top:1px solid #e8ecea;border-bottom:1px solid #e8ecea}.receipt-bottom-grid div:last-child{border-right:0}.receipt-signatures{display:grid;grid-template-columns:repeat(3,1fr);gap:45px;padding:36px 28px 18px;text-align:center}.receipt-signatures span{height:1px;background:#8b9692;margin-bottom:7px}.receipt-signatures b{font-size:11px;color:#40524b}.receipt-footer{display:flex;justify-content:space-between;align-items:center;background:#f4f8f6;padding:9px 16px;border-top:1px solid #e3ebe7}.receipt-footer b{font-size:11px;color:#0a6343}.receipt-footer span{margin:0;text-transform:none;letter-spacing:0;font-size:9px;color:#89938f}
@media(max-width:700px){.receipt-head{padding:14px;gap:10px}.receipt-pro-logo{width:64px;height:64px}.receipt-title h1{font-size:19px}.receipt-title h2{font-size:13px}.receipt-meta{grid-template-columns:1fr}.receipt-meta div{border-right:0;border-bottom:1px solid #e8ecea}.receipt-info-grid,.receipt-payment-grid,.receipt-bottom-grid{grid-template-columns:1fr 1fr}.receipt-payment-grid div:nth-child(2){border-right:0}.receipt-payment-grid div:nth-child(-n+2){border-bottom:1px solid #e8ecea}.receipt-signatures{gap:15px;padding-left:12px;padding-right:12px}}
@media print{@page{size:A4;margin:8mm}.receipt-actions{display:none!important}.receipt-pro{width:100%!important;max-width:none!important;box-shadow:none!important;border:1px solid #8f7b3e!important;border-radius:0!important}.receipt-pro-logo{width:72px!important;height:72px!important}.receipt-head{padding:10px 20px 8px}.receipt-title h1{font-size:23px}.receipt-ribbon{padding:6px}.receipt-meta div,.receipt-info-grid div,.receipt-payment-grid div,.receipt-bottom-grid div{padding:9px 12px}.receipt-signatures{padding-top:30px}.receipt-footer{-webkit-print-color-adjust:exact;print-color-adjust:exact}.receipt-ribbon,.paid-box,.due-box,.receipt-section-title,.receipt-accent{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Receipt QR verification */
.receipt-verify-row{margin:14px 16px 0;padding:12px 16px;border:1px solid #dbe7e1;border-radius:10px;background:#f8fbf9;display:flex;align-items:center;justify-content:space-between;gap:18px}.verify-text strong{display:block;color:#07583c;font-size:14px}.verify-text small{display:block;color:#7a8782;font-size:10px;margin-top:5px}.receipt-qr{width:113px;min-width:113px;height:113px;padding:4px;background:#fff;border:1px solid #d7e1dc;border-radius:7px;display:flex;align-items:center;justify-content:center}.receipt-qr img,.receipt-qr canvas{width:105px!important;height:105px!important;display:block}@media print{.receipt-verify-row{margin-top:10px;padding:8px 12px}.receipt-qr{width:96px;height:96px;min-width:96px}.receipt-qr img,.receipt-qr canvas{width:88px!important;height:88px!important}}

/* HCIT compact receipt print sizing - A5 style on A4 paper */
.receipt-actions{max-width:760px!important}
.receipt-pro{max-width:760px!important}
.receipt-head{padding:12px 20px 9px!important;gap:14px!important}
.receipt-pro-logo{width:66px!important;height:66px!important}
.receipt-title h1{font-size:22px!important;letter-spacing:.5px!important}
.receipt-title h2{font-size:14px!important;margin-top:3px!important}
.receipt-title p{font-size:10px!important;margin-top:4px!important}
.receipt-ribbon{padding:6px 14px!important}
.receipt-ribbon span{font-size:16px!important;letter-spacing:1.4px!important}
.receipt-ribbon small{font-size:8px!important}
.receipt-meta div,.receipt-info-grid div,.receipt-payment-grid div,.receipt-bottom-grid div{padding:8px 11px!important}
.receipt-pro span{font-size:8.5px!important;margin-bottom:3px!important}
.receipt-pro strong{font-size:11.5px!important}
.receipt-section-title{padding:5px 11px!important;font-size:9px!important}
.receipt-payment-grid strong{font-size:13px!important}
.receipt-payment-grid .paid-box strong,.receipt-payment-grid .due-box strong{font-size:15px!important}
.receipt-words{margin:9px 11px 0!important;padding:8px 10px!important}
.receipt-bottom-grid{margin:8px 0!important}
.receipt-verify-row{margin:8px 11px 0!important;padding:7px 10px!important;min-height:76px!important}
.verify-text strong{font-size:11px!important}
.verify-text small{font-size:8px!important}
.receipt-qr{width:74px!important;min-width:74px!important;height:74px!important;padding:2px!important}
.receipt-qr img,.receipt-qr canvas{width:68px!important;height:68px!important}
.receipt-signatures{gap:30px!important;padding:24px 20px 12px!important}
.receipt-signatures b{font-size:9px!important}
.receipt-footer{padding:6px 11px!important}
.receipt-footer b{font-size:9px!important}.receipt-footer span{font-size:7.5px!important}

@media print{
  @page{size:A4 portrait;margin:10mm}
  html,body{width:100%;margin:0!important;padding:0!important;background:#fff!important}
  .container{width:100%!important;margin:0!important;padding:0!important}
  .receipt-pro{
    width:145mm!important;
    max-width:145mm!important;
    margin:0 auto!important;
    border:0.35mm solid #8f7b3e!important;
    box-shadow:none!important;
    border-radius:0!important;
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }
  .receipt-accent{height:2mm!important}
  .receipt-head{padding:3mm 5mm 2mm!important;gap:3mm!important}
  .receipt-pro-logo{width:16mm!important;height:16mm!important}
  .receipt-title h1{font-size:14pt!important;line-height:1.05!important}
  .receipt-title h2{font-size:9.5pt!important;line-height:1.05!important}
  .receipt-title p{font-size:7.5pt!important;line-height:1.1!important}
  .receipt-ribbon{padding:1.5mm 3mm!important}
  .receipt-ribbon span{font-size:10pt!important}
  .receipt-ribbon small{font-size:6pt!important}
  .receipt-meta div,.receipt-info-grid div,.receipt-payment-grid div,.receipt-bottom-grid div{padding:2mm 3mm!important}
  .receipt-pro span{font-size:6.5pt!important;margin-bottom:.7mm!important}
  .receipt-pro strong{font-size:8pt!important}
  .receipt-section-title{padding:1.2mm 3mm!important;font-size:6.5pt!important}
  .receipt-payment-grid strong{font-size:9pt!important}
  .receipt-payment-grid .paid-box strong,.receipt-payment-grid .due-box strong{font-size:10.5pt!important}
  .receipt-words{margin:2mm 3mm 0!important;padding:2mm 3mm!important}
  .receipt-bottom-grid{margin:2mm 0!important}
  .receipt-verify-row{margin:2mm 3mm 0!important;padding:1.5mm 2.5mm!important;min-height:18mm!important}
  .verify-text strong{font-size:7.5pt!important}.verify-text small{font-size:6pt!important}
  .receipt-qr{width:18mm!important;min-width:18mm!important;height:18mm!important;padding:.5mm!important}
  .receipt-qr img,.receipt-qr canvas{width:17mm!important;height:17mm!important}
  .receipt-signatures{gap:8mm!important;padding:7mm 5mm 3mm!important}
  .receipt-signatures b{font-size:6.5pt!important}
  .receipt-footer{padding:1.5mm 3mm!important}.receipt-footer b{font-size:6.5pt!important}.receipt-footer span{font-size:5.5pt!important}
}
