*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Inter,Segoe UI,Arial,sans-serif;background:#f5f7fb;color:#172033}
:root{
  --navy:#172554;--purple:#7c3aed;--blue:#2563eb;--green:#16a34a;
  --red:#dc2626;--orange:#f97316;--pink:#db2777;--border:#e2e8f0;--muted:#64748b
}
.layout{display:flex;min-height:100vh}
.sidebar{width:255px;background:#172554;color:#fff;position:fixed;left:0;top:0;bottom:0;padding:20px 14px;overflow:auto}
.brand{font-size:18px;font-weight:900;padding:9px 10px 20px;border-bottom:1px solid #33447a}
.brand small{display:block;color:#67e8f9;font-size:10px;letter-spacing:1px;margin-top:5px}
.nav-title{font-size:10px;font-weight:800;color:#9fb0d7;margin:19px 10px 8px;letter-spacing:1px}
.nav a{display:flex;align-items:center;gap:10px;text-decoration:none;color:#dbe5ff;font-size:12px;font-weight:700;padding:10px 11px;border-radius:8px;margin:2px 0}
.nav a:hover{background:#263a7a;color:#fff}.nav a.active{background:#7c3aed;color:#fff}
.icon{width:25px;height:25px;border-radius:6px;background:#33447a;display:grid;place-items:center;font-size:11px;font-style:normal}
.active .icon{background:#5b21b6}
.main{margin-left:255px;width:calc(100% - 255px)}
.topbar{height:68px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;z-index:4}
.search-top{width:430px;border:1px solid #d6dee9;border-radius:8px;padding:11px 13px;font-size:12px;outline:none}
.user{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:800}.avatar{width:37px;height:37px;border-radius:8px;background:#7c3aed;color:#fff;display:grid;place-items:center}
.content{padding:24px 27px 45px}
.head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.head h1{font-size:27px;font-weight:950}.head p{font-size:11px;color:var(--muted);margin-top:5px}
.actions{display:flex;gap:8px}.btn{border:0;border-radius:7px;padding:10px 14px;font-size:11px;font-weight:850;cursor:pointer}
.btn.add{background:#16a34a;color:#fff}.btn.export{background:#e0e7ff;color:#3730a3}
.summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}
.stat{background:#fff;border:1px solid var(--border);border-top:4px solid var(--purple);border-radius:10px;padding:15px}
.stat:nth-child(1){border-top-color:#7c3aed}.stat:nth-child(2){border-top-color:#16a34a}.stat:nth-child(3){border-top-color:#dc2626}.stat:nth-child(4){border-top-color:#2563eb}
.stat label{font-size:9px;color:var(--muted);font-weight:850;text-transform:uppercase}.stat strong{display:block;font-size:24px;margin-top:8px}
.stat:nth-child(1) strong{color:#7c3aed}.stat:nth-child(2) strong{color:#16a34a}.stat:nth-child(3) strong{color:#dc2626}.stat:nth-child(4) strong{color:#2563eb}
.stat small{font-size:9px;color:var(--muted)}
.panel{background:#fff;border:1px solid var(--border);border-radius:11px;padding:17px;margin-bottom:17px}
.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.panel-head h2{font-size:14px;font-weight:950}.panel-head span{font-size:9px;color:var(--muted);font-weight:700}
.filters{display:grid;grid-template-columns:2.2fr 1fr 1fr 1fr auto auto;gap:8px}
.filters input,.filters select{border:1px solid #d6dee9;border-radius:7px;padding:9px 10px;font-size:10px;outline:none;background:#fff}
.filter-btn{border:0;border-radius:7px;padding:10px 13px;font-size:10px;font-weight:850;cursor:pointer}
.apply{background:#2563eb;color:#fff}.reset{background:#e2e8f0;color:#334155}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:930px}
th{background:#172554;color:#fff;text-align:left;padding:10px 9px;font-size:9px;text-transform:uppercase}
td{padding:11px 9px;border-bottom:1px solid #edf0f5;font-size:10px;font-weight:650;color:#334155}
tr:hover td{background:#f8fafc}
.badge{display:inline-block;padding:4px 7px;border-radius:5px;font-size:8px;font-weight:900}
.active{background:#dcfce7;color:#166534}.inactive{background:#fee2e2;color:#b91c1c}
.view{border:0;background:#ede9fe;color:#6d28d9;border-radius:6px;padding:6px 10px;font-size:9px;font-weight:900;cursor:pointer}
.note{background:#eff6ff;border-left:5px solid #2563eb;border-radius:8px;padding:12px 14px;font-size:10px;color:#334155;line-height:1.5}
.note b{color:#1d4ed8}
.detail-modal{display:none;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:20;align-items:center;justify-content:center;padding:20px}
.detail-modal.show{display:flex}
.modal{background:#fff;width:min(820px,100%);max-height:90vh;overflow:auto;border-radius:12px}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:17px 19px;border-bottom:1px solid var(--border)}
.modal-head h2{font-size:17px;font-weight:950}.close{border:0;background:#e2e8f0;border-radius:7px;padding:8px 11px;font-weight:850;cursor:pointer}
.modal-body{padding:19px}
.profile-line{display:flex;align-items:center;gap:12px;margin-bottom:17px}
.logo{width:54px;height:54px;border-radius:10px;background:#e0e7ff;color:#3730a3;display:grid;place-items:center;font-size:19px;font-weight:950}
.profile-line h3{font-size:19px}.profile-line p{font-size:10px;color:var(--muted);margin-top:4px}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.info{border:1px solid #edf0f5;border-radius:8px;padding:10px}
.info label{display:block;font-size:8px;color:var(--muted);font-weight:800;text-transform:uppercase;margin-bottom:4px}.info strong{font-size:10px}
.modal-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}
.modal-actions button{border:0;border-radius:7px;padding:9px 12px;font-size:9px;font-weight:900;cursor:pointer}
.edit{background:#e0e7ff;color:#3730a3}.activity{background:#dbeafe;color:#1d4ed8}.purchase{background:#dcfce7;color:#166534}.deactivate{background:#fee2e2;color:#b91c1c}
.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:10px;color:var(--muted)}.pages{display:flex;gap:4px}.pages button{border:1px solid var(--border);background:#fff;border-radius:6px;padding:7px 9px;font-size:9px;font-weight:800;cursor:pointer}.pages .current{background:#7c3aed;color:#fff;border-color:#7c3aed}
footer{text-align:center;color:#94a3b8;font-size:9px;margin-top:25px;padding-top:16px;border-top:1px solid #e5e7eb}
@media(max-width:1000px){.summary{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:2fr 1fr 1fr}.info-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.sidebar{width:70px}.brand{font-size:0}.brand small,.nav-title,.nav a span{display:none}.nav a{justify-content:center}.main{margin-left:70px;width:calc(100% - 70px)}.search-top{width:55%}}
@media(max-width:600px){.content{padding:15px}.topbar{padding:11px}.user{display:none}.search-top{width:100%}.head{display:block}.actions{margin-top:10px}.summary,.filters,.info-grid{grid-template-columns:1fr}}
