/* Modern Blue CRM — Outfit font, rounded 10px */
:root{
  --blue:#1574BA;
  --blue-700:#0D4673;
  --bg:#F5F8FC;
  --text:#0F172A;
  --muted:#64748B;
  --card:#ffffff;
  --border:#E4E7EC;
  --radius:10px;
  --shadow:0 10px 25px rgba(13,70,115,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Outfit',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial;
  color:var(--text);
  background:linear-gradient(180deg,#fafcff, #f3f8ff);
}
a{color:inherit;text-decoration:none}
.layout{
  display:grid;
  grid-template-columns: 260px 1fr;
  min-height:100vh;
}
.sidebar{
  position:sticky; top:0; height:100vh;
  background: linear-gradient(180deg,var(--blue),var(--blue-700));
  color:#fff; padding:20px 14px;
  box-shadow: var(--shadow);
}
.brand{
  display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.3px;
  padding:10px 12px; margin-bottom:10px; border-radius:var(--radius);
  background: rgba(255,255,255,.08);
}
.brand .logo{display:grid;place-items:center}
.menu{display:flex; flex-direction:column; gap:6px; margin-top:8px}
.menu-item{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px; border-radius:var(--radius);
  color:#f1f5f9; opacity:.95;
}
.menu-item:hover{background: rgba(255,255,255,.12); opacity:1}
.menu-item.danger{color:#ffd3d3}
.main-content{background:transparent}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 22px; position:sticky; top:0; z-index:5;
  backdrop-filter:saturate(1.2) blur(6px);
  background:rgba(255,255,255,.6);
  border-bottom:1px solid var(--border);
}
.app-title{font-size:18px; font-weight:600; color:var(--blue-700)}
.user-chip{display:flex; align-items:center; gap:8px; font-weight:500}
.user-chip .dot{width:8px; height:8px; border-radius:99px; background:#16a34a}
.user-chip .dot.online{box-shadow:0 0 0 4px rgba(22,163,74,.15)}
.content-wrap{padding:22px; display:grid; gap:18px}
.card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow: var(--shadow); padding:18px;
}
.card h2{margin:0 0 10px 0; font-size:18px; color:var(--blue-700)}
.grid-3{display:grid; grid-template-columns: repeat(3,1fr); gap:18px}
.grid-2{display:grid; grid-template-columns: repeat(2,1fr); gap:18px}
.table{width:100%; border-collapse:collapse; font-size:14px}
.table th,.table td{padding:12px 10px; border-bottom:1px solid var(--border); text-align:left}
.table tr:hover{background:#fbfdff}
.badge{font-size:12px; padding:4px 8px; border-radius:20px; border:1px solid var(--border); background:#f8fafc}
.badge.paid{background:#e8fff1; border-color:#bbf7d0; color:#166534}
.badge.pending{background:#fff7ed; border-color:#fed7aa; color:#9a3412}
.btn{
  display:inline-flex; align-items:center; gap:8px; border:0; cursor:pointer;
  background: linear-gradient(180deg, var(--blue), var(--blue-700));
  color:#fff; padding:10px 14px; border-radius:12px; font-weight:600; box-shadow:var(--shadow);
}
.btn.ghost{background:transparent; color:var(--blue-700); border:1px solid var(--border)}
.btn.small{padding:8px 10px; border-radius:10px; font-size:13px}
.input, select{
  width:100%; padding:10px 12px; border:1px solid var(--border);
  border-radius:10px; outline:none; background:#fff; font-family:inherit;
}
.input:focus, select:focus{border-color:#b6d9ff; box-shadow:0 0 0 3px rgba(21,116,186,.15)}
.form-row{display:grid; grid-template-columns:repeat(2,1fr); gap:12px}
.kpis{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
.kpi{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:16px; display:flex; align-items:center; gap:12px; box-shadow:var(--shadow)}
.kpi .icon{width:36px; height:36px; border-radius:10px; display:grid; place-items:center; background:#E6F1FB; color:var(--blue)}
.kpi .value{font-size:20px; font-weight:700}
.table-actions{display:flex; gap:8px}
.footer{padding:18px 22px; color:var(--muted)}
.mobile-only{display:none}
@media (max-width:1024px){
  .layout{grid-template-columns:0 1fr}
  .sidebar{position:fixed; left:-280px; width:260px; transition:left .25s}
  .sidebar.open{left:0}
  .mobile-only{display:inline-flex}
  .kpis{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
}
