:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#173052;background:#f3f7fc}*{box-sizing:border-box}body{margin:0}header{background:#0959b5;color:#fff;display:flex;gap:26px;align-items:center;padding:18px 4%;flex-wrap:wrap}.brand{font-size:24px;font-weight:900;letter-spacing:1px}.brand span{color:#9bd8ff}nav{display:flex;gap:16px;flex-wrap:wrap}nav a{color:white;text-decoration:none;font-size:13px;font-weight:600}nav a:hover{text-decoration:underline}.topbar{display:flex;justify-content:space-between;align-items:center;padding:10px 4%;background:#e7f0ff;gap:12px}.topbar form{margin:0}main{max-width:1200px;margin:30px auto;padding:0 18px;min-height:72vh}h1{font-size:27px;margin:0 0 24px}h1 small{font-size:15px;color:#6c819e}h2{font-size:20px;margin-top:25px}.card{background:white;border:1px solid #dbe7f4;border-radius:13px;padding:22px;margin:14px 0;box-shadow:0 4px 18px #144c8910}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.stats .card{display:flex;flex-direction:column;gap:13px}.stats strong{font-size:26px;color:#0959b5}.stats small,.muted{color:#73849a}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #c9d9eb;border-radius:7px;background:white;color:#173052;font:inherit}textarea{min-height:80px}label{display:block;font-size:13px;font-weight:650;margin-bottom:12px}label input,label select,label textarea{margin-top:6px}button,.btn{border:0;border-radius:8px;padding:11px 18px;background:#0962c4;color:white;cursor:pointer;text-decoration:none;display:inline-block;font:600 14px inherit;font-weight:650}button:hover,.btn:hover{background:#074b98}.secondary{background:#e7f0ff;color:#0c5aae}.danger{background:#bd303b}.gridform{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}.wide{grid-column:1/-1}.gridform button{width:max-content}.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:14px 0}.toolbar form,.inline{display:flex;gap:8px;align-items:center}.toolbar input{max-width:280px}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:12px;border-bottom:1px solid #e5edf6}th{background:#f1f6ff;color:#375b88}td a{color:#0959b5;font-weight:650}details summary{cursor:pointer;font-weight:750;color:#0c5aae;margin-bottom:14px}.letters{display:flex;gap:8px;flex-wrap:wrap}.letters a{background:#e5f0ff;color:#0959b5;text-decoration:none;padding:7px 10px;border-radius:6px;font-size:12px}.alert,.ok{padding:15px;border-radius:8px;margin:15px 0}.alert{background:#ffe8e9;color:#922b34}.ok{background:#e0f7ea;color:#126b39}.auth{max-width:440px;margin:70px auto}.auth button{width:100%}.total{font-size:19px;background:#eaf4ff;padding:18px;border-radius:10px}.total strong{color:#0959b5}.receipt{max-width:780px;margin:auto;padding:36px}.receipt-head{display:flex;gap:24px;align-items:center}.logo{width:90px;max-height:90px;object-fit:contain}.receipt h2{margin:6px 0}.receipt p{line-height:1.6}.receipt table{margin:24px 0}.bars{display:flex;gap:14px;align-items:end;min-height:220px;padding:10px 0}.bar-col{flex:1;text-align:center}.bar{background:linear-gradient(#46b4f3,#0959b5);border-radius:7px 7px 0 0}.sitefoot{text-align:center;color:#7286a1;font-size:12px;padding:25px}@media(max-width:720px){.stats,.gridform{grid-template-columns:1fr}.wide{grid-column:auto}header{display:block}nav{margin-top:14px}.topbar{flex-wrap:wrap}.card{padding:15px}.stats strong{font-size:21px}}@media print{header,.topbar,.no-print,.sitefoot,button,.toolbar,form,.letters,details{display:none!important}body{background:white}main{margin:0;max-width:none;padding:0}.card{box-shadow:none;border:0}.receipt{max-width:none}.tablewrap{overflow:visible}}

/* Kumon Pay 2.0 — clean responsive interface */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1d2c42;background:#f5f7fb;font-synthesis:none}body{background:radial-gradient(ellipse at top right,#eaf3ff 0,transparent 42%),#f5f7fb;min-height:100vh}header{background:#fff;color:#233c5e;border-bottom:1px solid #e7ecf4;box-shadow:0 3px 18px #1a386009;padding:15px clamp(16px,3vw,54px);gap:28px;position:relative}header .brand{display:flex;align-items:center;gap:11px;white-space:nowrap;color:#133a70;font-size:18px;letter-spacing:-.5px}header .brand em{font-style:normal;color:#1174d8}header .brand small{display:block;font-size:10px;letter-spacing:1.2px;color:#8a99ab;font-weight:600;margin-top:2px}.brand-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:linear-gradient(135deg,#0b56af,#2395e5);color:white;font-size:23px;box-shadow:0 5px 12px #0876cf33}header nav{display:flex;align-items:center;gap:5px;flex:1}nav a{color:#53667f;padding:10px 11px;border-radius:9px;font-size:12px;font-weight:650;white-space:nowrap}nav a:hover,nav a:focus-visible{background:#edf5ff;color:#075cba;text-decoration:none}.logout-form{margin:0 0 0 auto}.logout-form button{background:#eef3fa;color:#49617e;padding:9px 14px;font-size:12px}.logout-form button:hover{background:#dce9fa}.topbar{background:#f9fbff;border-bottom:1px solid #e7edf5;color:#64758c;padding:10px clamp(16px,3vw,54px);font-size:12px}.topbar select{max-width:310px;padding:8px 30px 8px 12px;border-color:#e0e8f3}main{max-width:1360px;margin:28px auto;padding:0 clamp(16px,3vw,38px)}.page-eyebrow{font-size:11px;font-weight:750;letter-spacing:1.4px;color:#7a91ab;margin-bottom:17px;text-transform:uppercase}h1{font-size:clamp(23px,2.3vw,32px);font-weight:780;letter-spacing:-.8px;color:#152e50;margin-bottom:22px}h2{color:#223b5a;letter-spacing:-.35px}.card{border:1px solid #e5ebf4;border-radius:16px;padding:clamp(17px,2vw,26px);box-shadow:0 7px 26px #16375d0b;margin:16px 0}.stats{gap:17px}.stats .card{border-top:3px solid #2584df;min-height:135px}.stats strong{color:#125fb6;font-size:clamp(23px,2.5vw,33px);letter-spacing:-1px}.stats small,.muted{color:#7d8ea4}input,select,textarea{border:1px solid #dbe3ee;border-radius:9px;padding:11px 13px;font-size:13px;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{outline:none;border-color:#368de3;box-shadow:0 0 0 3px #278be41a}button,.btn{border-radius:9px;background:#126dce;font-weight:700;box-shadow:0 3px 9px #1166bc16;transition:background .15s,transform .15s}button:hover,.btn:hover{background:#0b55a5}button:active{transform:translateY(1px)}.secondary{background:#eaf3ff;color:#145fae}.danger{background:#c63749}.tablewrap{overflow-x:auto;scrollbar-width:thin}table{min-width:600px;font-size:12.5px}th{background:#f7f9fd;color:#60748d;text-transform:uppercase;font-size:10.5px;letter-spacing:.5px}th,td{padding:14px 13px;border-bottom:1px solid #edf0f5}tr:hover td{background:#fbfdff}td a{color:#126dce}label{color:#435b75}.auth{max-width:460px;margin:65px auto;padding:34px}.auth h1{margin-bottom:14px}.receipt{max-width:820px}.alert,.ok{border-radius:10px;border:1px solid transparent}.alert{border-color:#f5c9cd}.ok{border-color:#bfe7d0}.sitefoot{border-top:1px solid #e8edf4;margin-top:45px}@media(max-width:1100px){header{align-items:flex-start}header nav{overflow-x:auto;max-width:100%;padding-bottom:6px;order:3;flex-basis:100%;scrollbar-width:thin}.logout-form{margin-left:auto}}@media(max-width:720px){header{display:flex;padding:13px 16px;gap:10px}header nav{margin:5px 0 0;flex-wrap:nowrap}.topbar{padding:10px 16px}.topbar select{max-width:100%}.stats,.gridform{grid-template-columns:1fr}.gridform button{max-width:100%}main{margin-top:18px}.card{padding:16px}.auth{margin:28px auto}.toolbar{align-items:stretch}.toolbar input{max-width:100%}.toolbar form{flex-wrap:wrap}h1{margin-bottom:16px}}@media print{body{background:white}header,.topbar,.page-eyebrow,.logout-form{display:none!important}table{min-width:0}.card{box-shadow:none}}

/* Kuitansi v2.1: isolated receipt styles for screen and print */
.receipt-sheet{width:100%;max-width:490px;margin:0 auto;background:#fff;color:#062b64;font-family:Arial,Helvetica,sans-serif;font-size:12px;border:1px solid #e3eaf3;box-shadow:0 12px 35px #1b3b6812;overflow:hidden}
.receipt-banner{background:#2860db;color:#fff;text-align:center;padding:22px 14px 19px}
.receipt-branch{font-size:clamp(18px,4vw,25px);font-weight:800;letter-spacing:.2px;line-height:1.2}
.receipt-tagline{font-size:11px;font-weight:600;line-height:1.45;margin-top:7px}
.receipt-subjects{font-size:11px;font-weight:600;line-height:1.5;margin-top:2px}
.receipt-title{text-align:center;padding:19px 12px 16px;border-bottom:1px solid #dce4f0;font-size:17px;color:#0952bf}
.receipt-title small{display:block;font-size:12px;color:#63799b;margin-top:5px}.receipt-void{display:block;color:#bc2437;margin-top:6px}
.receipt-content{padding:24px 18px 17px}.receipt-details{margin:0 0 15px}.receipt-details>div{display:grid;grid-template-columns:35% 65%;gap:4px;padding:6px 0}.receipt-details dt{color:#607aa5}.receipt-details dd{margin:0;text-align:right;overflow-wrap:anywhere}
.receipt-breakdown,.receipt-payment{background:#f2f6fc;border-radius:7px;padding:16px 12px}.receipt-section-heading{font-weight:500;margin-bottom:10px}.receipt-line{display:flex;justify-content:space-between;gap:15px;padding:6px 0}.receipt-line span:first-child{color:#607aa5}.receipt-line span:last-child{text-align:right;white-space:nowrap}.receipt-grand-total{border-top:1px solid #dce4ef;margin-top:8px;padding-top:13px;display:flex;justify-content:space-between;gap:12px;align-items:center;font-weight:700}.receipt-grand-total strong{font-size:18px;color:#2860db;white-space:nowrap}.receipt-payment{margin-top:14px;padding:14px 12px}.receipt-note{margin-top:12px;line-height:1.5}.receipt-cashier{text-align:right;color:#607aa5;margin:18px 0 0}.receipt-footer{background:#2544a7;color:#fff;text-align:center;padding:16px 12px;font-size:10px;line-height:1.6;overflow-wrap:anywhere}.receipt-actions{text-align:center;margin:16px auto}
@media(max-width:520px){.receipt-content{padding:20px 14px 16px}.receipt-sheet{font-size:11px}.receipt-tagline,.receipt-subjects{font-size:10px}}
@media print{@page{size:A5 portrait;margin:8mm}body{background:#fff!important}main{padding:0!important;margin:0!important;min-height:0!important;max-width:none!important}.receipt-sheet{max-width:100%;width:100%;border:0;box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}.receipt-banner,.receipt-footer,.receipt-breakdown,.receipt-payment{print-color-adjust:exact;-webkit-print-color-adjust:exact}.receipt-actions{display:none!important}}

/* Laporan detail v2.2 */
.report-filters{display:flex;align-items:end;flex-wrap:wrap;gap:14px}.report-filters label{min-width:160px;margin:0}.report-filters button{margin-bottom:0}.report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.report-summary .card{display:flex;flex-direction:column;gap:10px;margin:5px 0}.report-summary small{color:#70839b}.report-summary strong{color:#125fb6;font-size:clamp(17px,2vw,24px)}.report-table{min-width:1900px}.report-table th,.report-table td{white-space:nowrap}.report-table td:nth-child(4),.report-table td:nth-child(5),.report-table td:nth-child(6){white-space:normal;min-width:125px}.report-table .num{text-align:right;font-variant-numeric:tabular-nums}.report-table tfoot th,table tfoot th{background:#eaf3ff;color:#1253a1;font-weight:800}.report-selected td{background:#eaf4ff}.report-empty{text-align:center;padding:30px!important;color:#74849a}@media(max-width:850px){.report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:450px){.report-summary{grid-template-columns:1fr}.report-filters label{width:100%}}@media print{@page{size:A4 landscape;margin:8mm}.report-table{min-width:0;font-size:7px}.report-table th,.report-table td{padding:4px;white-space:normal}.report-summary{grid-template-columns:repeat(4,1fr)}.report-summary strong{font-size:14px}.report-filters{display:none!important}.report-table td:nth-child(4),.report-table td:nth-child(5),.report-table td:nth-child(6){min-width:0}}


/* Receipt-only printing: 9:16 portrait (90 mm x 160 mm), one physical page.
   A named page keeps the A4 landscape setting for financial reports unchanged. */
@page kumonReceipt916 { size: 90mm 160mm; margin: 3mm; }
@media print {
  body.receipt-page { margin: 0!important; padding: 0!important; background: #fff!important; }
  body.receipt-page main { margin: 0!important; padding: 0!important; max-width: none!important; }
  body.receipt-page .receipt-sheet {
    page: kumonReceipt916;
    box-sizing: border-box;
    width: 84mm!important;
    max-width: 84mm!important;
    margin: 0!important;
    padding: 0!important;
    border: 0!important;
    box-shadow: none!important;
    break-inside: avoid;
    page-break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body.receipt-page .receipt-banner { padding: 12px 9px 10px; }
  body.receipt-page .receipt-branch { font-size: 17px; }
  body.receipt-page .receipt-tagline,body.receipt-page .receipt-subjects { font-size: 8px; }
  body.receipt-page .receipt-title { padding: 11px 8px 9px; font-size: 14px; }
  body.receipt-page .receipt-content { padding: 12px 10px 9px; }
  body.receipt-page .receipt-details { margin-bottom: 8px; }
  body.receipt-page .receipt-details>div { padding: 3px 0; }
  body.receipt-page .receipt-breakdown { padding: 10px 9px; }
  body.receipt-page .receipt-line { padding: 4px 0; }
  body.receipt-page .receipt-grand-total { padding-top: 8px; margin-top: 5px; }
  body.receipt-page .receipt-payment { padding: 8px 9px; margin-top: 8px; }
  body.receipt-page .receipt-cashier { margin-top: 9px; }
  body.receipt-page .receipt-footer { padding: 10px 8px; }
  body.receipt-page .receipt-actions { display:none!important; }
}
