*{box-sizing:border-box}
body{font-family:system-ui,Segoe UI,Arial,sans-serif;margin:0;background:#f6f7fb;color:#0f172a;line-height:1.5}
a{text-decoration:none;color:inherit}

.container{max-width:980px;margin:40px auto;padding:20px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.card{padding:24px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:600;color:#0f172a;box-shadow:0 4px 16px rgba(2,6,23,.06);transition:transform .2s ease, box-shadow .2s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(2,6,23,.12)}

.muted{color:#64748b}
.title{font-weight:800;font-size:20px}

.nav{display:flex;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.btn{padding:10px 14px;border-radius:10px;border:1px solid #0ea5e9;background:#0ea5e9;color:#fff;font-weight:700;box-shadow:0 2px 10px rgba(14,165,233,.25);transition:all .15s ease}
.btn:hover{filter:brightness(0.98);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn.secondary{background:#fff;color:#0f172a;border-color:#cbd5e1;box-shadow:none}
.btn[disabled]{opacity:.6;cursor:not-allowed}
/* small button variant for tight spaces */
.btn.sm{padding:6px 10px;border-radius:8px;font-weight:700}

.input{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}
.input:focus{outline:2px solid #38bdf8;outline-offset:2px;border-color:#38bdf8}

.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.box{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px;margin-bottom:16px;box-shadow:0 6px 18px rgba(2,6,23,.06)}

/* Tables inside content boxes */
.box table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden}
.box th{background:#f8fafc;color:#0f172a;font-weight:700}
.box th,.box td{padding:10px 12px;border-bottom:1px solid #eef2f7;font-size:14px}
.box tr:last-child td{border-bottom:0}

/* Stat cards */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px;box-shadow:0 8px 22px rgba(2,6,23,.06)}
.stat .label{font-size:13px;margin-bottom:6px}
.stat .amount{display:flex;align-items:baseline;gap:6px}
.stat .currency{color:#0f172a;font-weight:800}
.stat .value{font-weight:900;font-size:20px;color:#0f172a}
.stat.success .value{color:#16a34a}
.stat.danger .value{color:#ef4444}

@media (max-width: 900px){
  .stats{grid-template-columns:1fr}
}

/* Actions group in tables */
.actions{display:flex;flex-wrap:wrap;gap:8px}

@media (max-width: 900px){
  .row{grid-template-columns:1fr}
}
