.bpcl-client-app,.bpcl-loginbox{font-family:Arial,sans-serif}.bpcl-client-app{border:1px solid #ddd;padding:15px;border-radius:12px;background:#fff}.bpcl-client-app h2{text-align:center}.bpcl-month{display:flex;justify-content:space-between;align-items:center;background:#f7f8fa;padding:8px;border-radius:8px}.bpcl-month button{background:#f06a21;color:#fff;border:0;border-radius:7px;font-size:26px;width:40px;height:40px}.bpcl-month div{text-align:center}.bpcl-month small{display:block;color:#777}.bpcl-head{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.bpcl-head label{font-size:12px;font-weight:bold}.bpcl-head input{width:100%;box-sizing:border-box;padding:9px;border:1px solid #ccd2d9;border-radius:6px;margin-top:4px}.bpcl-note{background:#fff7df;padding:10px;margin:10px 0;font-size:12px}.bpcl-table-wrap{overflow-x:auto}.bpcl-table-wrap table{border-collapse:collapse;min-width:850px;width:100%}.bpcl-table-wrap th,.bpcl-table-wrap td{border:1px solid #c8cdd3;padding:5px;text-align:center}.bpcl-table-wrap th{background:#f2f2f2}.bpcl-table-wrap input{width:100%;box-sizing:border-box;padding:7px}.bpcl-table-wrap input[readonly],.bpcl-table-wrap input:disabled{background:#eee}.bpcl-submit,.bpcl-logout,.bpcl-login{margin-top:12px;border:0;border-radius:7px;padding:10px 15px;background:#f06a21;color:#fff;font-weight:bold;cursor:pointer}.bpcl-logout{background:#666}.bpcl-status{margin-left:8px}.bpcl-loginbox{max-width:400px;padding:20px;border:1px solid #ddd;border-radius:12px}.bpcl-loginbox input{display:block;width:100%;box-sizing:border-box;padding:9px;margin:10px 0}.bpcl-loginbox button{cursor:pointer}@media(max-width:700px){.bpcl-head{grid-template-columns:1fr 1fr}.bpcl-client-app{padding:10px}}@media(max-width:420px){.bpcl-head{grid-template-columns:1fr}}

/* BPCL responsive v4 */
*,*::before,*::after{box-sizing:border-box}
.bpcl-client-app{width:100%;max-width:100%;overflow:hidden}
.bpcl-head{grid-template-columns:repeat(4,minmax(0,1fr))}
.bpcl-table-wrap{-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.bpcl-table-wrap table{width:100%;min-width:820px}
.bpcl-table-wrap th,.bpcl-table-wrap td{white-space:nowrap}
.bpcl-table-wrap input{min-width:70px}
@media (max-width:1024px){
 .bpcl-client-app{padding:12px}
 .bpcl-client-app h2{font-size:20px}
 .bpcl-head{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bpcl-table-wrap table{min-width:790px}
 .bpcl-submit,.bpcl-logout{min-height:44px}
}
@media (max-width:767px){
 .bpcl-client-app{padding:9px;border-radius:9px}
 .bpcl-client-app h2{font-size:17px;line-height:1.3}
 .bpcl-month{gap:8px}
 .bpcl-month div{flex:1}
 .bpcl-month button{width:42px;height:42px}
 .bpcl-head{grid-template-columns:1fr;gap:8px}
 .bpcl-head input{min-height:42px}
 .bpcl-note{font-size:11px;line-height:1.45}
 .bpcl-table-wrap{margin-left:-2px;margin-right:-2px}
 .bpcl-table-wrap table{min-width:780px;font-size:12px}
 .bpcl-table-wrap th,.bpcl-table-wrap td{padding:5px 4px}
 .bpcl-table-wrap input{min-height:38px;padding:6px}
 .bpcl-submit,.bpcl-logout{width:100%;margin-top:8px}
 .bpcl-status{display:block;margin:8px 0;line-height:1.4}
 .bpcl-loginbox{width:100%;max-width:none;padding:15px}
 .bpcl-loginbox input{min-height:44px}
 .bpcl-loginbox button{min-height:44px;width:100%}
}
@media (max-width:380px){
 .bpcl-client-app h2{font-size:15px}
 .bpcl-month button{width:38px;height:38px}
}

.bpcl-table-wrap input[type=checkbox]{width:20px!important;height:20px;min-width:20px;accent-color:#f06a21}

/* BPCL v6: sticky table header ONLY. All other mobile/tablet layout remains unchanged. */
.bpcl-table-wrap{position:relative}
.bpcl-table-wrap thead th,
.bpcl-table-wrap tr:first-child th{
  position:sticky;
  top:0;
  z-index:20;
  background:#fff;
}

/* v7: sticky header clone support. Original table layout is unchanged. */
.bpcl-sticky-head-clone{
  position:fixed!important;
  display:none;
  z-index:99999;
  overflow:hidden;
  background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.12);
  pointer-events:none;
}
.bpcl-sticky-head-clone table{margin:0!important;border-collapse:collapse;table-layout:fixed}
.bpcl-sticky-head-clone th{background:#fff!important;white-space:nowrap}

.bpcl-img-box{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.bpcl-thumb{width:42px;height:42px;object-fit:cover;border-radius:4px;border:1px solid #ddd}.bpcl-camera{padding:6px 9px;cursor:pointer;border:1px solid #ccc;border-radius:5px;background:#fff}.bpcl-photo-confirm{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:100000;display:flex;align-items:center;justify-content:center;padding:15px}.bpcl-photo-card{background:#fff;padding:12px;border-radius:10px;max-width:95vw;text-align:center}.bpcl-photo-card img{max-width:80vw;max-height:70vh;display:block;margin:0 auto 12px}.bpcl-photo-card button{min-width:55px;min-height:45px;padding:8px 14px;margin:4px;font-size:20px}

/* BPCL v9 branding: supplied HP logo + matching red/blue palette */
:root{--bpcl-blue:#29136d;--bpcl-red:#e31b23;--bpcl-green:#2f6b3d;--bpcl-light:#f5f6fa}
.bpcl-loginbox{max-width:420px!important;margin:20px auto;padding:26px!important;border:2px solid var(--bpcl-blue)!important;border-radius:14px!important;background:#fff;box-shadow:0 6px 22px rgba(41,19,109,.14);text-align:center}
.bpcl-logo{display:block;width:120px;height:120px;object-fit:contain;margin:0 auto 12px}
.bpcl-loginbox h2{color:var(--bpcl-blue);margin:5px 0 4px}
.bpcl-login-sub{color:var(--bpcl-red);font-weight:700;margin-bottom:14px}
.bpcl-loginbox input{border:1px solid #c9c9d6!important;border-radius:7px!important}
.bpcl-loginbox input:focus{outline:2px solid rgba(41,19,109,.15);border-color:var(--bpcl-blue)!important}
.bpcl-loginbox .bpcl-login{background:var(--bpcl-red)!important;width:100%;min-height:44px}
.bpcl-client-app{border:2px solid var(--bpcl-blue)!important;background:#fff}
.bpcl-client-app h2{color:var(--bpcl-blue)!important}
.bpcl-month{background:linear-gradient(90deg,#f7f3ff,#fff)!important;border-left:5px solid var(--bpcl-red)}
.bpcl-month button{background:var(--bpcl-blue)!important}
.bpcl-table-wrap th{background:var(--bpcl-blue)!important;color:#fff!important}
.bpcl-submit{background:var(--bpcl-red)!important}
.bpcl-client-app:before{content:"";display:block;width:74px;height:74px;margin:0 auto 6px;background:url('../assets/hp-logo.png') center/contain no-repeat}
@media(max-width:767px){.bpcl-logo{width:105px;height:105px}.bpcl-client-app:before{width:62px;height:62px}}

.bpcl-report-images{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.bpcl-report-images img{width:58px;height:58px;object-fit:cover;border:1px solid #ccc;border-radius:5px;vertical-align:middle}.bpcl-see-images{margin-left:4px!important}.bpcl-images-modal{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:999999;display:flex;align-items:center;justify-content:center;padding:15px}.bpcl-images-card{background:#fff;max-width:95vw;max-height:90vh;overflow:auto;border-radius:10px;padding:18px;position:relative}.bpcl-images-close{position:absolute;right:10px;top:8px;border:0;background:none;font-size:30px;cursor:pointer}.bpcl-images-grid{display:flex;flex-wrap:wrap;gap:10px;padding-top:20px}.bpcl-images-grid img{width:180px;height:180px;object-fit:cover;border:1px solid #ddd;border-radius:6px}.bpcl-no-image{color:#777}
@media(max-width:767px){.bpcl-images-grid img{width:120px;height:120px}.bpcl-report-images img{width:48px;height:48px}}

/* v12: immediate image thumbnail + remove button */
.bpcl-img-box{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.bpcl-img-item{position:relative;display:inline-flex}
.bpcl-img-item .bpcl-thumb{width:54px;height:54px;object-fit:cover;border-radius:5px;border:1px solid #ccc;display:block}
.bpcl-img-remove{position:absolute;right:-7px;top:-7px;width:22px;height:22px;border:0;border-radius:50%;background:#d71920;color:#fff;font-size:16px;line-height:20px;padding:0;cursor:pointer;z-index:3}
.bpcl-camera{min-height:38px}

.bpcl-img-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bpcl-img-item{position:relative;display:inline-flex}
.bpcl-img-item .bpcl-thumb{width:58px;height:58px;object-fit:cover;border:1px solid #ccc;border-radius:6px;display:block}
.bpcl-img-remove{position:absolute;right:-7px;top:-7px;width:22px;height:22px;border:0;border-radius:50%;background:#d71920;color:#fff;font-size:17px;font-weight:700;line-height:20px;padding:0;cursor:pointer;z-index:5}

.bpcl-login-form{margin:0}.bpcl-login-form input{box-sizing:border-box;width:100%;margin:5px 0}.bpcl-login-form .bpcl-login{margin-top:8px}

.bpcl-super-app{font-family:Arial,sans-serif;border:2px solid var(--bpcl-blue);border-radius:14px;background:#fff;padding:18px;max-width:1200px;margin:20px auto}.bpcl-super-app h2{color:var(--bpcl-blue);text-align:center}.bpcl-super-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:15px 0}.bpcl-super-controls select,.bpcl-super-controls input,.bpcl-super-controls button{min-height:42px;padding:8px;border:1px solid #ccd2d9;border-radius:6px}.bpcl-super-controls button{background:var(--bpcl-red);color:#fff;font-weight:700;cursor:pointer}.bpcl-super-controls .bpcl-logout{background:#666}.bpcl-super-table{overflow-x:auto}.bpcl-super-table table{border-collapse:collapse;width:100%;min-width:780px}.bpcl-super-table th,.bpcl-super-table td{border:1px solid #c8cdd3;padding:7px;text-align:center}.bpcl-super-table th{background:var(--bpcl-blue);color:#fff}.bpcl-final-save{background:var(--bpcl-red);color:#fff;border:0;border-radius:7px;padding:11px 16px;font-weight:700;cursor:pointer}.bpcl-report-images{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.bpcl-report-images img{width:52px;height:52px;object-fit:cover;border:1px solid #ccc;border-radius:5px}.bpcl-see-images{padding:5px 8px;cursor:pointer}@media(max-width:767px){.bpcl-super-app{padding:10px}.bpcl-super-controls>*{width:100%}}

/* v13.1: force DATE/TIME visibility in the client register */
.bpcl-table-wrap td.bpcl-date-cell,.bpcl-table-wrap td.bpcl-time-cell{display:table-cell!important;visibility:visible!important;opacity:1!important;color:#111!important;background:#fff!important;min-width:105px!important;font-weight:600!important;white-space:nowrap!important}
.bpcl-table-wrap td.bpcl-date-cell{min-width:115px!important}


/* BPCL v13.2: camera-only capture, user greeting, previous-month viewer, HP watermark */
.bpcl-user-welcome{margin:8px 0 14px;text-align:center;color:#29136d;font-size:15px}
.bpcl-user-welcome strong{font-weight:800}
.bpcl-month{position:relative}
.bpcl-prev-month{border:0;background:#29136d!important;color:#fff!important;border-radius:7px;padding:9px 12px;font-weight:700;cursor:pointer;white-space:nowrap}
.bpcl-camera{background:#29136d!important;color:#fff!important;border:0!important;border-radius:7px!important;padding:8px 11px!important;font-weight:700}
.bpcl-camera-modal{position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:1000000;display:flex;align-items:center;justify-content:center;padding:12px}
.bpcl-camera-card{position:relative;width:min(720px,96vw);background:#fff;border-radius:14px;padding:14px;box-shadow:0 15px 50px rgba(0,0,0,.4);text-align:center}
.bpcl-camera-card video,.bpcl-camera-card canvas{display:block;width:100%;max-height:70vh;object-fit:contain;background:#111;border-radius:10px}
.bpcl-camera-card canvas{display:none}
.bpcl-camera-close{position:absolute;right:8px;top:8px;width:38px;height:38px;border:0;border-radius:50%;background:#d71920;color:#fff;font-size:25px;line-height:1;z-index:2;cursor:pointer}
.bpcl-camera-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px}
.bpcl-camera-actions button{min-height:44px;border:0;border-radius:7px;padding:9px 15px;font-weight:700;cursor:pointer;background:#29136d;color:#fff}
.bpcl-camera-actions .bpcl-camera-retake,.bpcl-camera-actions .bpcl-camera-use{display:none}
.bpcl-camera-status{margin-top:8px;font-size:13px;color:#555}
.bpcl-prev-modal{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:999998;display:flex;align-items:center;justify-content:center;padding:12px}
.bpcl-prev-card{background:#fff;width:min(1200px,97vw);max-height:92vh;overflow:auto;border-radius:12px;padding:18px;position:relative}
.bpcl-prev-close{position:absolute;right:10px;top:8px;border:0;background:none;font-size:30px;cursor:pointer}
.bpcl-prev-card h2{text-align:center;color:#29136d;margin:0 35px 5px}
.bpcl-prev-meta{padding:10px;background:#f5f6fa;border-radius:7px;margin:10px 0;font-size:13px}
.bpcl-prev-table-wrap{overflow:auto}.bpcl-prev-table-wrap table{border-collapse:collapse;width:100%;min-width:850px}.bpcl-prev-table-wrap th,.bpcl-prev-table-wrap td{border:1px solid #c8cdd3;padding:6px;text-align:center;white-space:nowrap}.bpcl-prev-table-wrap th{background:#29136d;color:#fff;position:sticky;top:0;z-index:3}.bpcl-prev-thumb{width:52px;height:52px;object-fit:cover;border:1px solid #ccc;border-radius:5px;margin:2px;vertical-align:middle}.bpcl-empty{text-align:center;padding:25px;color:#777}
.bpcl-super-app{position:relative;overflow:hidden}.bpcl-super-app>*:not(.bpcl-watermark){position:relative;z-index:1}.bpcl-watermark{position:absolute!important;z-index:0!important;inset:0;background:url('../assets/hp-logo.png') center 55%/260px 260px no-repeat;opacity:.055;pointer-events:none}
.bpcl-super-message{min-height:20px;color:#29136d;font-weight:700;margin:8px 0}
.bpcl-client-app{position:relative;overflow:hidden}.bpcl-client-app:after{content:"";position:absolute;z-index:0;left:50%;top:55%;width:230px;height:230px;transform:translate(-50%,-50%);background:url('../assets/hp-logo.png') center/contain no-repeat;opacity:.045;pointer-events:none}.bpcl-client-app>*{position:relative;z-index:1}
@media(max-width:767px){.bpcl-month{align-items:stretch;flex-direction:column}.bpcl-prev-month{width:100%;min-height:42px}.bpcl-user-welcome{font-size:14px}.bpcl-camera-card{padding:10px}.bpcl-camera-card video,.bpcl-camera-card canvas{max-height:65vh}.bpcl-prev-card{padding:12px}.bpcl-prev-meta{line-height:1.6}}

/* v13.3: force Previous Month Data button visibility */
.bpcl-month .bpcl-prev-month{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:30!important;min-height:42px!important;}

/* Loyalty & rewards module */
.bpcl-loyalty-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:12px 14px;border:1px solid #d8dbea;border-radius:10px;background:linear-gradient(90deg,#f8f6ff,#fff)}
.bpcl-loyalty-summary div{display:flex;flex-direction:column;gap:2px;color:#29136d}.bpcl-loyalty-summary strong{font-size:24px}.bpcl-loyalty-view,.bpcl-super-loyalty{border:0;border-radius:7px;background:#29136d;color:#fff;padding:10px 14px;font-weight:700;cursor:pointer}
.bpcl-loyalty-modal{position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:1000001;display:flex;align-items:center;justify-content:center;padding:12px}.bpcl-loyalty-card{position:relative;background:#fff;width:min(900px,96vw);max-height:92vh;overflow:auto;border-radius:15px;padding:22px}.bpcl-loyalty-card h2{text-align:center;color:#29136d;margin-top:4px}.bpcl-loyalty-close{position:absolute;right:10px;top:8px;width:38px;height:38px;border:0;border-radius:50%;background:#d71920;color:#fff;font-size:25px;cursor:pointer}.bpcl-loyalty-balance-big{text-align:center;font-size:30px;font-weight:800;color:#29136d;margin:10px 0 18px}.bpcl-loyalty-tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid #ddd}.bpcl-loyalty-tabs button{border:0;background:#eee;padding:10px 14px;font-weight:700;cursor:pointer;white-space:nowrap}.bpcl-loyalty-tabs button.active{background:#29136d;color:#fff}.bpcl-reward-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bpcl-reward{border:1px solid #ddd;border-radius:9px;padding:12px;display:grid;gap:5px}.bpcl-reward strong{color:#29136d;font-size:18px}.bpcl-reward em{font-size:12px;color:#777}.bpcl-loyalty-note,.bpcl-loyalty-notes{font-size:13px;line-height:1.5}.bpcl-loyalty-notes{padding-left:20px}.bpcl-history-table{overflow:auto}.bpcl-history-table table{border-collapse:collapse;width:100%;min-width:650px}.bpcl-history-table th,.bpcl-history-table td{border:1px solid #ccc;padding:7px;text-align:center}.bpcl-history-table th{background:#29136d;color:#fff}.bpcl-loyalty-close-bottom{display:block;margin:16px auto 0;border:0;border-radius:7px;background:#666;color:#fff;padding:10px 24px;font-weight:700;cursor:pointer}
.bpcl-super-loyalty-panel{margin-top:15px}.bpcl-super-loyalty-modal{position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:1000002;display:flex;align-items:center;justify-content:center;padding:12px}.bpcl-super-loyalty-card{position:relative;background:#fff;width:min(900px,96vw);max-height:92vh;overflow:auto;border-radius:15px;padding:22px}.bpcl-super-loyalty-card h2{text-align:center;color:#29136d;margin-top:4px}.bpcl-super-loyalty-close{position:absolute;right:10px;top:8px;width:38px;height:38px;border:0;border-radius:50%;background:#d71920;color:#fff;font-size:25px;cursor:pointer}.bpcl-super-loyalty-tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid #ddd;margin-bottom:14px}.bpcl-super-loyalty-tabs button{border:0;background:#eee;padding:10px 14px;font-weight:700;cursor:pointer;white-space:nowrap}.bpcl-super-loyalty-tabs button.active{background:#29136d;color:#fff}.bpcl-super-loyalty-close-bottom{display:block;margin:16px auto 0;border:0;border-radius:7px;background:#666;color:#fff;padding:10px 24px;font-weight:700;cursor:pointer}.bpcl-super-loyalty-box{position:relative;border:1px solid #d5d5df;border-radius:10px;padding:18px;background:#fbfbff}.bpcl-super-loyalty-close{position:absolute;right:8px;top:8px;border:0;background:#d71920;color:#fff;border-radius:50%;width:34px;height:34px;font-size:22px;cursor:pointer}.bpcl-super-rewards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.bpcl-super-reward{display:grid;grid-template-columns:100px 1fr auto;gap:8px;align-items:center;border:1px solid #ddd;padding:10px;border-radius:8px}.bpcl-super-reward b{color:#29136d}.bpcl-redeem-btn{border:0;border-radius:6px;background:#e31b23;color:#fff;padding:8px 10px;font-weight:700;cursor:pointer}.bpcl-redeem-btn:disabled{background:#aaa;cursor:not-allowed}.bpcl-admin-loyalty-card{margin-top:12px;padding:12px;border:1px solid #ddd;background:#fff}.bpcl-admin-loyalty-table{overflow:auto}
.bpcl-table-wrap input[type=radio]{width:20px!important;height:20px!important;min-width:20px!important;accent-color:#29136d;cursor:pointer}
@media(max-width:767px){.bpcl-loyalty-summary{flex-direction:column;align-items:stretch;text-align:center}.bpcl-loyalty-view{width:100%;min-height:44px}.bpcl-reward-list,.bpcl-super-rewards{grid-template-columns:1fr}.bpcl-super-reward{grid-template-columns:1fr;text-align:center}.bpcl-loyalty-card{padding:15px}.bpcl-loyalty-balance-big{font-size:25px}}

/* Client login / registration tabs from v13.5 base */
.bpcl-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0 14px;padding:4px;background:#f3f4f6;border-radius:10px}
.bpcl-auth-tab{border:0!important;width:100%!important;min-height:44px!important;padding:10px!important;border-radius:8px!important;background:transparent!important;color:#333!important;font-weight:700;cursor:pointer}
.bpcl-auth-tab.active{background:var(--bpcl-blue,#29136d)!important;color:#fff!important}
.bpcl-auth-panel{display:none}.bpcl-auth-panel.active{display:block}
.bpcl-forgot-password{display:block;margin:10px 0 2px;text-align:right;color:var(--bpcl-blue,#29136d);font-size:14px;text-decoration:none}
.bpcl-forgot-password:hover{text-decoration:underline}
.bpcl-register-panel .bpcl-login{margin-top:8px}
.bpcl-loaded-record{margin-top:14px;border:1px solid #ddd;border-radius:10px;background:#fff;padding:12px}.bpcl-super-load-table{border-collapse:collapse;width:100%;min-width:780px}.bpcl-super-load-table th,.bpcl-super-load-table td{border:1px solid #c8cdd3;padding:7px;text-align:center}.bpcl-super-load-table th{background:#29136d;color:#fff}.bpcl-super-load-table .bpcl-report-images{display:flex;justify-content:center;align-items:center;gap:4px;flex-wrap:wrap}.bpcl-super-load-table .bpcl-report-images img{width:52px;height:52px;object-fit:cover;border:1px solid #ccc;border-radius:5px}.bpcl-final-save-front{background:#d71920;color:#fff;border:0;border-radius:7px;padding:11px 16px;font-weight:700;cursor:pointer}.bpcl-final-save-front:disabled{opacity:.6;cursor:not-allowed}
