:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#202938;background:#f3f5f8;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:16px max(20px,calc((100% - 1440px)/2));background:#15243a;color:#fff}
.topbar h1{font-size:20px;margin:0}
.topbar-actions{display:flex;align-items:center;gap:10px}
.topbar-actions form{margin:0}
.container{max-width:1440px;margin:24px auto;padding:0 20px}
.panel{margin-bottom:20px;padding:20px;background:#fff;border-radius:10px;box-shadow:0 2px 8px #15243a12}
.panel h2{margin:0 0 12px;font-size:18px}
.panel p{color:#536176}
.bot-add-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px}
.bot-add-form label{flex:1 1 320px}
.bot-add-form input{width:100%;font-family:ui-monospace,monospace}
.bot-table{min-width:650px}
.menu-toggle{font-size:14px;padding:8px 12px}
.sidebar-dialog{position:fixed;inset:0 auto 0 0;margin:0;width:min(86vw,320px);height:100%;max-height:none;border:0;padding:20px;background:#fff;color:#202938;box-shadow:4px 0 28px #0003}
.sidebar-dialog::backdrop{background:#10182899}
.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid #e6eaf0}
.sidebar-heading strong{font-size:18px}
.sidebar-links{display:grid;gap:6px;padding:18px 0}
.sidebar-links a{padding:11px 12px;border-radius:6px;text-decoration:none;color:#344054}
.sidebar-links a:hover,.sidebar-links a[aria-current=page]{background:#eaf2ff;color:#1559ad}
.sidebar-account{position:absolute;inset:auto 20px 20px;display:grid;gap:12px;padding-top:14px;border-top:1px solid #e6eaf0}
.report-overview{margin:0 0 20px;padding:20px;background:#fff;border-radius:10px;box-shadow:0 2px 8px #15243a12}
.report-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.report-heading h2{font-size:18px;margin:0}
.report-heading span,.report-card span,.report-card small{color:#64748b;font-size:13px}
.report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.report-card{display:grid;gap:8px;min-height:100px;padding:16px;border:1px solid #e6eaf0;border-radius:8px;background:#fbfcfe}
.report-card strong{font-size:22px;overflow-wrap:anywhere}
.report-card.deposit-report{border-left:4px solid #168347}
.report-card.withdraw-report{border-left:4px solid #b42318}
.report-card.pending-report{border-left:4px solid #d28a00}
.user-table{min-width:750px}
.user-create-form{max-width:800px}
.account-status{font-size:12px;font-weight:700}
.account-active{color:#168347}.account-inactive{color:#b42318}
.user-actions{display:flex;align-items:start;flex-wrap:wrap;gap:8px}
.user-actions details{margin:0}
.user-actions form{display:flex;align-items:end;gap:6px}
.user-actions input{max-width:190px}
.sheet-send-list{display:flex;flex-wrap:wrap;gap:8px}
.sheet-send-list form,.setting-row form{margin:0}
.settings-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:end;gap:12px}
.settings-form input,.settings-form textarea{width:100%}
.settings-form .wide-field{grid-column:1/-1}
.settings-form textarea{max-width:none}
.integration-card{padding:14px 0;border-bottom:1px solid #e6eaf0}
.integration-card>summary{margin-bottom:12px}
.inline-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:12px 0}
.inline-form label{min-width:180px}
.inline-form input{width:100%}
.setting-row{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:12px 0;border-bottom:1px solid #e6eaf0}
.setting-row .inline-form{flex:1}
.image-dialog{width:min(92vw,1000px);max-width:1000px;max-height:90vh;border:0;border-radius:10px;padding:16px;box-shadow:0 8px 40px #0005}
.image-dialog::backdrop{background:#0009}
.image-dialog form{display:flex;justify-content:flex-end}
.image-dialog img{display:block;max-width:100%;max-height:calc(85vh - 60px);margin:12px auto 0;object-fit:contain}
.success{padding:10px 12px;background:#eaf8ef;color:#17683a!important;border-radius:6px}
.danger{background:#b42318}
.danger:hover{background:#8f1c13}
.muted{color:#718096;font-size:13px}
.filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:18px;background:#fff;border-radius:10px;box-shadow:0 2px 8px #15243a12}
label{display:grid;gap:6px;font-size:13px;font-weight:600}
input,select,button,.button{font:inherit;border:1px solid #ccd3dd;border-radius:6px;padding:9px 11px;background:#fff;color:inherit}
textarea{display:block;width:min(340px,70vw);min-height:100px;margin:8px 0;border:1px solid #ccd3dd;border-radius:6px;padding:8px;font:12px/1.5 ui-monospace,monospace}
button,.button{display:inline-block;background:#1769d2;color:white;border:0;cursor:pointer;text-decoration:none;font-weight:600}
button:hover,.button:hover{background:#0d54ae}
.secondary{background:#64748b}
.filter-actions{display:flex;gap:8px}
.result-count{margin:18px 0 10px;color:#536176}
.table-wrap{overflow:auto;background:#fff;border-radius:10px;box-shadow:0 2px 8px #15243a12}
table{border-collapse:collapse;width:100%;min-width:1000px}
th,td{text-align:left;padding:12px;border-bottom:1px solid #e6eaf0;vertical-align:top}
th{background:#f8fafc;white-space:nowrap;font-size:13px}
td{font-size:14px}
.badge{display:inline-block;background:#eaf2ff;color:#1559ad;border-radius:20px;padding:2px 8px}
.status{display:block;font-size:12px;font-weight:700;margin-bottom:7px}
.status-pending{color:#9a6300}.status-approved{color:#168347}.status-rejected{color:#b42318}
.status-form{display:flex;gap:5px}.status-form select{padding:5px}.small{padding:6px 8px;font-size:12px}
details{margin-top:7px}details summary,a{color:#1769d2;cursor:pointer}
pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:340px;font:12px/1.5 ui-monospace,monospace;background:#f5f7fa;padding:8px;border-radius:5px}
.empty{text-align:center;padding:32px;color:#718096}
.pagination{display:flex;justify-content:center;align-items:center;gap:16px;padding:22px}
.pagination a{padding:7px 12px;background:#fff;border-radius:5px;text-decoration:none}
.login-page{min-height:100vh;display:grid;place-items:center;padding:20px}
.login-card{width:min(100%,400px);padding:28px;background:#fff;border-radius:12px;box-shadow:0 8px 30px #15243a1a}
.login-card h1{margin:0 0 22px;font-size:22px}
.login-card form{display:grid;gap:16px}
.login-card label input{width:100%}
.alert{background:#fff0f0;color:#a21d1d;padding:10px;border-radius:6px}
@media(max-width:600px){.topbar{align-items:flex-start;gap:12px;flex-wrap:wrap}.topbar h1{font-size:16px}.topbar-actions{flex-wrap:wrap}.container{margin:14px auto;padding:0 10px}.filters label{flex:1 1 145px}.setting-row{align-items:flex-start}.report-heading{align-items:flex-start;flex-direction:column}.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-card{padding:12px}.report-card strong{font-size:18px}}
