*{box-sizing:border-box}
:root{--primary:#0b5ed7;--primary-dark:#084298;--green:#129447;--orange:#f59e0b;--danger:#dc3545;--bg:#f6f8fb;--text:#172033;--muted:#6b7280;--border:#e5e7eb;--white:#fff}
html,body{margin:0;padding:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}
body{font-size:15px}
img{max-width:100%;height:auto}
nav{height:72px;width:100%;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:20px;position:sticky;top:0;z-index:20}
nav .brand,.brand{display:flex;align-items:center;gap:10px;min-width:0}
nav .brand img,.brand img{width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;object-fit:contain;display:block}
.brand-text{line-height:1.1;white-space:nowrap}.brand-text strong{display:block;font-size:18px;color:#102a43}.brand-text small{display:block;font-size:11px;color:var(--green);font-weight:700;margin-top:4px}
nav>span{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:3px}
nav a{color:#344054;text-decoration:none;padding:9px 11px;border-radius:7px;font-size:14px;font-weight:600}
nav a:hover{background:#f0f5ff;color:var(--primary)}
main{width:min(1200px,calc(100% - 32px));margin:28px auto;padding:0}
.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.page-title h2{margin:0 0 5px;font-size:28px}.page-title .muted{font-size:14px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 20px}
.card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px;box-shadow:0 2px 8px #1018280a}.card:before{display:none!important}.card small{display:block;color:var(--muted);font-weight:600}.card strong{display:block;font-size:25px;margin-top:10px}.card .sub{margin-top:7px;color:var(--muted);font-size:13px}
.panel{background:#fff;border:1px solid var(--border);border-radius:12px;padding:22px;margin:0 0 20px;box-shadow:0 2px 8px #1018280a}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel h2,.panel h3{margin-top:0}.narrow{max-width:700px;margin:28px auto}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
label{display:block;font-weight:600;margin:14px 0 7px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;color:var(--text);font-size:15px;outline:none}input:focus,select:focus,textarea:focus{border-color:#84adff;box-shadow:0 0 0 3px #0b5ed71a}textarea{min-height:90px;resize:vertical}
.btn{border:1px solid transparent;border-radius:7px;padding:10px 15px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#eef1f5;color:#172033;font-weight:600;font-size:14px}.btn:hover{filter:brightness(.97)}.primary{background:var(--primary);color:#fff}.success{background:var(--green);color:#fff}.danger{background:var(--danger);color:#fff}.small{padding:7px 10px;font-size:13px}.full{width:100%}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}th{background:#f8fafc;color:#344054;font-size:13px}
.filters{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:10px}.total{margin:18px 0;padding:15px;background:#f8fafc;border:1px solid var(--border);border-radius:8px}.alert{padding:12px;background:#fff4f4;color:#b42318;border:1px solid #fecdca;border-radius:7px;margin-bottom:12px}.muted,.hint{color:var(--muted)}
.login-bg{min-height:100vh;display:grid;place-items:center;background:#f5f8fc;padding:20px}.login-card{width:min(420px,100%);background:#fff;padding:32px;border:1px solid var(--border);border-radius:14px;box-shadow:0 10px 30px #10182812}.login-brand{text-align:center}.login-brand img{width:82px!important;height:82px!important;max-width:82px!important;max-height:82px!important;object-fit:contain}.login-brand h1{font-size:25px;margin:10px 0 2px;color:#102a43}.login-brand p{margin:0 0 22px;color:var(--green);font-weight:700}
.receipt{width:min(760px,calc(100% - 32px));margin:25px auto;background:#fff;padding:30px;border:1px solid var(--border);border-radius:12px}.receipt-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid var(--green);padding-bottom:18px;gap:20px}.receipt-brand{display:flex;align-items:center;gap:15px}.receipt-brand img{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;object-fit:contain}.receipt-brand h1{margin:0;color:#102a43;font-size:27px}.receipt-brand p{margin:5px 0 0;color:var(--green);font-weight:700}.receipt-no{border:1px solid var(--green);border-radius:8px;padding:10px 16px;text-align:center}.receipt-no b{display:block;color:var(--green);font-size:18px;margin-top:5px}.receipt table{margin-top:20px}.receipt .amount{font-size:24px;font-weight:800;color:var(--primary)}.thank{text-align:center;color:var(--green);font-weight:700;margin-top:28px}.printbar{width:min(760px,calc(100% - 32px));margin:18px auto;display:flex;justify-content:flex-end;gap:8px}.footer{text-align:center;color:var(--muted);font-size:12px;padding:22px}
.actions{white-space:nowrap}.inline{font-weight:normal}.check{font-weight:normal;margin:7px 0}.check input,.inline input{width:auto}
@media(max-width:950px){nav{padding:10px 16px;height:auto;min-height:72px;align-items:center}nav>span{justify-content:flex-end}.cards{grid-template-columns:1fr 1fr}.grid2{grid-template-columns:1fr}}
@media(max-width:650px){nav{align-items:flex-start;flex-direction:column}.brand-text strong{font-size:17px}nav>span{width:100%;justify-content:flex-start}.cards{grid-template-columns:1fr}.filters{grid-template-columns:1fr}.page-title{flex-direction:column;align-items:flex-start}.receipt-header{flex-direction:column}.receipt-brand h1{font-size:22px}}
@media print{nav,.printbar,.no-print{display:none!important}body{background:#fff}.receipt{border:0;box-shadow:none;margin:0 auto}.footer{display:none}}

/* Compact company logo */
.brand img{width:38px!important;height:38px!important;max-width:38px!important;max-height:38px!important}
.brand{gap:9px!important}
.brand-text strong{font-size:18px!important}
.brand-text small{font-size:11px!important}
.login-brand img{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important}
.receipt-brand img{width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important}
.receipt-brand h1{font-size:24px!important}
@media(max-width:600px){
  .brand img{width:34px!important;height:34px!important}
  .login-brand img{width:64px!important;height:64px!important}
  .receipt-brand img{width:50px!important;height:50px!important}
}


/* Professional dashboard background and layout */
body{
  background:
    radial-gradient(circle at 8% 12%,rgba(11,94,215,.075),transparent 28%),
    radial-gradient(circle at 92% 18%,rgba(18,148,71,.06),transparent 25%),
    linear-gradient(135deg,#f8fbff 0%,#f1f5fa 52%,#f8fafc 100%);
}
nav{
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(10px);
  box-shadow:0 3px 18px rgba(16,24,40,.045);
}
nav a.active{background:#edf4ff;color:var(--primary)}
.dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.dashboard-head h1{margin:4px 0 5px;font-size:30px;letter-spacing:-.5px}
.dashboard-head p{margin:0;color:var(--muted)}
.eyebrow{font-size:11px;letter-spacing:1.1px;font-weight:800;color:var(--primary);margin-bottom:4px}
.date-badge{background:rgba(255,255,255,.9);border:1px solid var(--border);padding:10px 16px;border-radius:10px;text-align:right;box-shadow:0 4px 15px rgba(16,24,40,.04)}
.date-badge span{display:block;font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.7px}
.date-badge strong{display:block;margin-top:3px;font-size:15px}
.cards{grid-template-columns:repeat(4,1fr);gap:16px}
.stat-card{display:flex;align-items:center;gap:14px;min-height:118px}
.stat-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-weight:800;font-size:18px;flex:0 0 44px}
.stat-icon.blue{background:#eaf2ff;color:var(--primary)}
.stat-icon.green{background:#eaf8ef;color:var(--green)}
.stat-icon.orange{background:#fff5df;color:#b76b00}
.stat-icon.purple{background:#f1eaff;color:#7c3aed}
.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:18px}
.welcome-panel{min-height:230px}
.welcome-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.welcome-top h2{margin:4px 0 6px;font-size:22px}
.user-badge{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#0b5ed7,#4f8ff0);color:#fff;display:grid;place-items:center;font-weight:800;box-shadow:0 6px 16px rgba(11,94,215,.2)}
.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:22px}
.action-tile{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--text);border:1px solid var(--border);border-radius:11px;padding:13px;background:#fbfcfe;transition:.18s}
.action-tile:hover{transform:translateY(-1px);border-color:#b9cdef;box-shadow:0 6px 16px rgba(16,24,40,.06)}
.action-tile b{display:block;font-size:13px}.action-tile small{display:block;color:var(--muted);margin-top:3px;font-size:11px}
.action-icon{width:34px;height:34px;border-radius:9px;background:#eaf2ff;color:var(--primary);display:grid;place-items:center;font-weight:800;flex:0 0 34px}
.primary-action{background:#f4f8ff;border-color:#cfe0ff}.primary-action .action-icon{background:var(--primary);color:#fff}
.status-panel{min-height:230px}
.panel-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.panel-title-row h3{margin:3px 0 0;font-size:18px}
.status-dot{font-size:11px;font-weight:700;color:var(--green);background:#ebf8f0;border-radius:20px;padding:6px 9px}
.summary-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #eef1f5;font-size:13px}
.summary-row:last-child{border-bottom:0}
.summary-row span{color:var(--muted)}.summary-row b{font-size:13px}
@media(max-width:950px){.cards{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1fr}.quick-actions{grid-template-columns:1fr}}
@media(max-width:650px){.dashboard-head{align-items:flex-start;flex-direction:column}.date-badge{text-align:left}.dashboard-head h1{font-size:26px}}
