/* PHP layout based on the original Ionic menu and page styles. */
*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{background:#f7f9fb;color:#333;font-family:Roboto,Arial,sans-serif;font-size:14px}
body .app{display:block;min-height:100vh}
a{color:#387ef5}
.topbar{height:44px;position:fixed;top:0;left:0;right:0;z-index:20;background:#45206d url('/img/lebak_01.gif') center/cover no-repeat;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #0002}
.topbar strong{font-size:17px;font-weight:500;line-height:44px}
.system-clock{position:absolute;right:54px;top:0;height:44px;display:flex;align-items:center;color:#fff;font-size:12px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.menu-toggle{position:absolute;left:8px;top:2px;height:40px;width:44px;padding:9px;border:0;background:transparent;cursor:pointer;display:flex;flex-direction:column;justify-content:space-around}
.menu-toggle span{display:block;height:2px;width:24px;border-radius:2px;background:#fff}
.menu-toggle:hover{background:#ffffff24}
.topbar-account{position:absolute;right:12px;top:7px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ffffff2b;color:#fff;font-weight:700;text-decoration:none}
.topbar-account:hover{color:#fff;background:#ffffff42}
body .sidebar{position:fixed;z-index:31;top:0;left:0;bottom:0;width:275px;padding:0;background:#f7f9fb;color:#222;transform:translateX(-102%);transition:transform .22s ease;box-shadow:3px 0 16px #0002;overflow-y:auto;display:block}
body.menu-open .sidebar{transform:translateX(0)}
.menu-backdrop{position:fixed;inset:0;z-index:30;background:#0006;opacity:0;visibility:hidden;transition:opacity .22s,visibility .22s}
body.menu-open .menu-backdrop{opacity:1;visibility:visible}
.menu-hero{height:180px;background:#13252b url('/img/material-graphite.jpg') center/cover no-repeat;position:relative;color:#fff}
.menu-hero img{position:absolute;top:26px;left:21px;width:86px;height:86px;object-fit:contain;border-radius:50%;background:#fff}
.menu-hero a{position:absolute;left:20px;bottom:17px;color:#fff!important;font-size:16px;font-weight:700;text-decoration:none}
body .sidebar nav{display:block;padding:8px 12px;margin:0}
body .sidebar .menu-group{margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid #e2e6ed}
body .sidebar .menu-group:last-child{margin-bottom:0;border-bottom:0}
body .sidebar nav small{display:block;background:transparent;color:#727887;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;padding:12px 12px 6px;margin:0}
body .sidebar nav a{display:flex;align-items:center;min-height:44px;border-radius:7px;border:0;border-left:3px solid transparent;color:#333;background:transparent;text-decoration:none;font-size:14px;font-weight:400;margin:2px 0;padding:10px 12px;line-height:20px;transform:none}
body .sidebar nav a:hover{background:#eaeef4;color:#222;transform:none}
body .sidebar nav a.current{background:#eee6f7;border-left-color:#652f91;color:#45206d;font-weight:700}
body .sidebar a:focus-visible,body .sidebar button:focus-visible{outline:2px solid #8750b3;outline-offset:-2px}
body .sidebar .logout-form{display:block;margin:0 12px 16px;padding:8px 0 0;border:0;border-top:1px solid #e2e6ed;background:transparent}
body .sidebar .logout-form button{width:100%;height:44px;text-align:left;padding:0 15px;background:transparent;border:0;border-radius:7px;color:#a33343;font-weight:600;font-size:14px;cursor:pointer}
body .sidebar .logout-form button:hover{background:#f2f5f8}
body .main{margin:0;padding:0;max-width:none;width:100%;min-height:100vh;background:#f7f9fb}
body.signed-in .main{padding-top:44px}
body .page-heading{display:none}
.content-container{max-width:1060px;margin:0 auto;padding:18px 16px 40px}
body.signed-out .content-container{padding-top:6vh;max-width:100%}
body .cardx{border:0;border-radius:2px;padding:18px;margin:0 0 16px;background:#fff;box-shadow:0 2px 6px #0002}
body .cardx h2{font-size:18px;margin:0 0 15px;font-weight:500;color:#333}
body .cardx p{color:#555}
body .grid{gap:10px}
body .field{margin-bottom:12px}
body .field label{display:block;color:#555;font-weight:500;font-size:13px;margin:0 0 5px}
body .field input,body .field select,body table input,body table select{display:block;width:100%;border:0;border-bottom:1px solid #ccc;border-radius:0;background:#f1f1f7;padding:9px 10px;min-height:38px;box-shadow:none;font-size:14px;color:#333}
body .field input:focus,body .field select:focus,body table input:focus,body table select:focus{outline:0;border-bottom:2px solid #4f44b6}
body .field input[type=checkbox]{width:18px;min-height:18px}
body .btnx{display:inline-block;background:#4f44b6;color:#fff;border:1px solid #4f44b6;border-radius:20px;padding:7px 18px;font-size:13px;line-height:20px;font-weight:500;text-decoration:none;box-shadow:none;cursor:pointer}
body .btnx:hover{background:#41359c;color:#fff}
body .btnx.secondary{background:#fff;color:#4f44b6;border-color:#4f44b6}
body .btnx.danger{background:#ef473a;border-color:#ef473a;color:#fff}
body .btnx.full{width:100%}
body .notice{background:#dff0d8;color:#3c763d;border:1px solid #d6e9c6;border-radius:3px;padding:12px 15px;margin:0 0 16px}
body .notice.error{background:#f2dede;color:#a94442;border-color:#ebccd1}
.tablewrap{overflow:auto}
body table{width:100%;border-collapse:collapse;font-size:13px}
body th,body td{padding:10px;border:1px solid #ddd;text-align:left;white-space:nowrap}
body th{background:#f5f5f5;color:#333;font-weight:600}
body td{color:#444}
body .muted{color:#777;font-size:13px}
.original-home{min-height:calc(100vh - 110px);display:flex;align-items:center;justify-content:center;text-align:center}
.original-home h2{font-size:30px;line-height:1.3;color:#333;font-weight:500;margin:0;animation:welcome 1.5s ease-in-out infinite alternate}
@keyframes welcome{from{transform:translateY(-5px)}to{transform:translateY(5px)}}
body .auth{max-width:390px;margin:0 auto;padding:25px;text-align:center;box-shadow:none;background:transparent}
body .auth h2{font-size:22px;margin:0 0 10px;font-weight:500}
body .auth p{text-align:center}
body .auth-mark{display:block;width:auto;height:auto;margin:0 auto 20px;background:none;border:0;border-radius:0}
body .auth-mark img{height:100px;width:100px;object-fit:contain}
body .auth .eyebrow{display:none}
body .auth form{text-align:left}
body .auth .field input{background:#f1f1f7}
body .auth .btnx{margin-top:8px}
body .auth-link{display:block;text-align:center;margin-top:18px;color:#4f44b6}
.account-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:16px}
.account-grid .cardx{margin-bottom:16px}
.role-badge{border-radius:3px;background:#ffde03;color:#333;padding:5px 10px}
.recovery-card{border-top:3px solid #ffde03!important}
.recovery-status,.recovery-secret{padding:12px;margin:15px 0;background:#f7f9fb;border:1px solid #e5e5e5;border-radius:2px}
.recovery-secret{background:#fff8cf;border-color:#f4e8a4}
.recovery-secret code{display:block;overflow-wrap:anywhere;font-size:14px;color:#333}
.recovery-secret small{display:block;margin-bottom:7px}
body .eyebrow{color:#777;font-size:11px;letter-spacing:.04em}
.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.inline{display:inline}
.sectiontop{display:flex;justify-content:space-between;align-items:center;gap:10px}
.list-toolbar{display:flex;justify-content:flex-end;margin:0 0 12px}
.crud-list table,.crud-list tbody{display:block;width:100%}
.crud-list thead{display:none}
.crud-list tr{display:block;background:#fff;box-shadow:0 2px 6px #0002;margin:0 0 12px;padding:10px 14px;border-radius:2px}
.crud-list td{display:flex;align-items:center;gap:6px;border:0;white-space:normal;padding:5px 0;color:#555}
.crud-list td:before{content:attr(data-label) ' :';font-weight:600;color:#333;white-space:nowrap}
.crud-list td:first-child{font-size:16px;font-weight:600;color:#333;min-height:55px}
.crud-list td:first-child:before{display:none}
.list-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;margin-right:8px}
.crud-list td.record-actions{justify-content:flex-end;border-top:1px solid #eee;margin-top:6px;padding-top:10px}
.crud-list td.record-actions:before{display:none}
.crud-list td.record-actions a{font-weight:600}
.crud-list td.record-actions .btnx{padding:3px 12px;font-size:12px}
.empty-state{text-align:center;padding:35px!important;color:#777}
.form-overlay{position:fixed;inset:0;z-index:40;background:#0008;display:flex;align-items:center;justify-content:center;padding:15px}
body .crud-form{width:min(640px,100%);max-height:calc(100vh - 30px);overflow:auto;margin:0;padding:20px 24px}
.modal-close{font-size:28px;line-height:1;color:#777;text-decoration:none;padding:0 4px}
.modal-close:hover{color:#333}
.bet-page{max-width:960px;margin:0 auto}
.bet-top-actions{display:flex;justify-content:flex-end;margin:0 0 10px}
.bet-top-actions a{font-size:13px;font-weight:600}
.draw-card{padding:15px 18px!important}
.draw-card .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.draw-card .field{margin-bottom:5px}
.record-number{margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #e8e8e8}
.draw-status-line{border-top:1px solid #eee;padding-top:10px;margin:10px 0 0!important;font-size:15px}
.draw-status-line strong{color:#ef473a}
.draw-status-line strong.open{color:#28a745}
.draw-status-line strong.closed{color:#ef473a}
.bet-columns{display:grid;grid-template-columns:minmax(310px,380px) minmax(0,1fr);gap:15px;align-items:start}
.bet-entry .field{margin-bottom:12px}
.bet-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bet-inputs input{font-size:20px!important;font-weight:600;text-align:center;letter-spacing:.04em}
.bet-inputs input.active{background:#f0edfa!important;border-bottom:2px solid #4f44b6!important}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-width:320px;margin:12px auto}
.keypad button{height:52px;background:#f8f8fb;color:#333;border:1px solid #ddd;border-radius:3px;font-size:23px;font-weight:500;cursor:pointer;touch-action:manipulation}
.keypad button:hover,.keypad button:active{background:#e9e5f5;border-color:#b6abdf}
.keypad .decimal-key{grid-column:2;height:40px;font-size:20px}
.bet-type-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:11px 0}
.bet-type-picker button{border:1px solid #4f44b6;background:#fff;color:#4f44b6;border-radius:3px;padding:8px 2px;font-size:12px;font-weight:600;cursor:pointer}
.bet-type-picker button.selected{background:#4f44b6;color:#fff}
.bet-error{background:#f2dede;border:1px solid #ebccd1;color:#a94442;padding:9px;margin:8px 0!important;font-size:12px}
.bet-error[hidden]{display:none}
body .add-bet,body .save-bet{width:100%;border-radius:3px;font-size:14px;font-weight:600;padding:10px}
body .add-bet{background:#33cd5f;border-color:#33cd5f}
body .add-bet:hover{background:#27b94f}
.bet-list h2{text-align:center;border-bottom:1px solid #eee;padding-bottom:12px}
.bet-list .tablewrap{overflow-x:auto}
.bet-list table{min-width:330px}
.bet-list th,.bet-list td{padding:9px 6px;text-align:center}
.bet-list th:last-child,.bet-list td:last-child{width:38px}
.bet-list tfoot td{font-weight:700;background:#fafafa}
.bet-list #empty-bets{text-align:center;margin:15px 0}
.remove-bet{border:0;background:none;color:#ef473a;font-size:24px;line-height:1;cursor:pointer}
.remove-bet:hover{color:#c12418}
.bet-list .save-bet{margin-top:14px}
body button:disabled{opacity:.5;cursor:not-allowed}
.commission-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:2px}
.profit-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:2px}
.profit-summary .cardx{display:flex;flex-direction:column;gap:4px;border-top:3px solid #ffde03}
.profit-summary span{font-size:12px;color:#666}
.profit-summary strong{font-size:24px;color:#4f44b6;font-weight:600}
.commission-summary .cardx{display:flex;flex-direction:column;gap:4px;border-top:3px solid #ffde03}
.commission-summary span{font-size:12px;color:#666}
.commission-summary strong{font-size:24px;color:#4f44b6;font-weight:600}
.commission-summary small{color:#888;font-size:11px}
.cashout-status{display:inline-block;border-radius:3px;padding:4px 7px;font-weight:600;font-size:11px;letter-spacing:.03em;background:#eee;color:#555}
.status-pending{background:#fff4ca;color:#80600a}
.status-approved{background:#dceafd;color:#225b9a}
.status-paid{background:#dff2e3;color:#2d7840}
.status-rejected,.status-cancelled{background:#f9dfe1;color:#a53e46}
.cashout-actions{display:flex;flex-direction:column;gap:5px;min-width:160px}
.cashout-actions form{display:flex;gap:5px;align-items:center}
.cashout-actions input{width:150px;min-width:0;padding:6px!important;min-height:30px!important;font-size:12px!important}
.cashout-actions .btnx{white-space:nowrap;padding:5px 8px;font-size:11px}
td small{display:block;color:#777;font-size:11px;margin-top:3px;white-space:normal}
@media(max-width:900px){.commission-summary,.profit-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.commission-summary,.profit-summary{grid-template-columns:1fr 1fr}.commission-summary strong,.profit-summary strong{font-size:19px}}
@media(max-width:760px){.bet-columns{grid-template-columns:1fr}.bet-entry,.bet-list{max-width:520px;width:100%;margin-left:auto!important;margin-right:auto!important}.draw-card{max-width:520px;margin-left:auto!important;margin-right:auto!important}}
@media(max-width:430px){.draw-card .grid{grid-template-columns:1fr}.bet-inputs{gap:6px}.keypad button{height:48px}.bet-type-picker button{font-size:11px}}
@media(max-width:720px){.content-container{padding:12px 10px 30px}.account-grid{grid-template-columns:1fr}.original-home h2{font-size:22px}body .cardx{padding:13px}body th,body td{padding:7px}}
@media(max-width:700px){.topbar{height:62px;flex-direction:column;justify-content:flex-start}.topbar .topbar-title{font-size:16px;line-height:31px;max-width:calc(100% - 110px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.system-clock{position:static;height:24px;font-size:11px}.topbar-account{top:15px}.menu-toggle{top:10px}body.signed-in .main{padding-top:62px}}
@media print{body .topbar,body .sidebar,body .menu-backdrop,.no-print{display:none!important}body.signed-in .main{padding:0}.content-container{max-width:none;padding:0}body .cardx{box-shadow:none}}

.bet-type-picker button{white-space:normal;overflow-wrap:anywhere;min-width:0;height:auto;min-height:44px;padding:8px 4px}
