body.admin { background: #eef2f8; font-size: .92rem; }
.adm-shell { display: flex; min-height: 100vh; }
.adm-side { width: 258px; flex: none; background: linear-gradient(180deg, var(--navy), #10305f); color: #cfdcf3; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding-bottom: 1.5rem; transition: transform .3s var(--ease); z-index: 1040; }
.adm-brand { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.2rem; color: #fff; text-decoration: none; font-family: 'Merriweather', serif; font-weight: 700; line-height: 1.2; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.adm-brand img { width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 2px; }
.adm-brand small { font-family: 'Poppins', sans-serif; font-weight: 400; color: #f2cf79; font-size: .72rem; }
.adm-sec { text-transform: uppercase; font-size: .66rem; letter-spacing: 1.2px; color: #8ea4cc; padding: 1rem 1.3rem .3rem; }
.adm-side nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem 1.3rem; color: #cfdcf3; text-decoration: none; border-left: 3px solid transparent; transition: all .2s var(--ease); }
.adm-side nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; padding-left: 1.55rem; }
.adm-side nav a.active { background: rgba(255, 255, 255, .12); color: #fff; border-left-color: var(--gold); }
.adm-side nav a i { font-size: 1.05rem; color: #f2cf79; }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top { display: flex; align-items: center; gap: .8rem; background: #fff; padding: .7rem 1.4rem; box-shadow: 0 2px 12px rgba(11, 36, 71, .07); position: sticky; top: 0; z-index: 1030; }
.adm-top h1 { font-size: 1.1rem; margin: 0; font-weight: 600; color: var(--navy); }
.adm-content { padding: 1.4rem; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-a { background: #fff; border-radius: 14px; box-shadow: 0 6px 20px rgba(11, 36, 71, .06); padding: 1.2rem; margin-bottom: 1.2rem; }
.card-a h5, .card-a h6 { color: var(--navy); font-weight: 600; }
.kpi { display: flex; gap: .9rem; align-items: center; background: #fff; border-radius: 14px; box-shadow: 0 6px 20px rgba(11, 36, 71, .06); padding: 1rem 1.1rem; height: 100%; transition: transform .25s var(--ease); text-decoration: none; color: inherit; }
.kpi:hover { transform: translateY(-4px); color: inherit; }
.kpi .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; flex: none; }
.kpi .v { font-size: 1.5rem; font-weight: 600; line-height: 1.1; color: var(--navy); }
.kpi .l { font-size: .76rem; color: var(--muted); }
.bg-c1 { background: linear-gradient(135deg, #19376d, #2b5fb4); } .bg-c2 { background: linear-gradient(135deg, #1e8e5a, #35b37a); }
.bg-c3 { background: linear-gradient(135deg, #c8962e, #e6b84f); } .bg-c4 { background: linear-gradient(135deg, #7a1f2b, #b13445); }
.bg-c5 { background: linear-gradient(135deg, #5b3ea8, #8467d6); } .bg-c6 { background: linear-gradient(135deg, #0e7490, #22a6c4); }
.table-a thead th { background: #eaf0f8; color: var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; border: 0; white-space: nowrap; }
.table-a tbody tr { transition: background .15s; }
.table-a tbody tr:hover { background: #f3f7fe; }
.bar-row { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; font-size: .82rem; }
.bar-row .lbl { width: 190px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bar { flex: 1; background: #e8eef8; border-radius: 6px; height: 14px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--royal), var(--navy)); border-radius: 6px; width: 0; animation: grow 1s var(--ease) forwards; }
@keyframes grow { from { width: 0; } }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.mini-bars div { flex: 1; text-align: center; font-size: .62rem; color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.mini-bars b { display: block; background: linear-gradient(180deg, var(--royal), var(--navy)); border-radius: 5px 5px 0 0; min-height: 2px; animation: rise 1s var(--ease); }
@keyframes rise { from { height: 0 !important; } }
.filters .form-control, .filters .form-select { font-size: .85rem; }
.detail-grid { display: grid; grid-template-columns: 200px 1fr; gap: .4rem 1rem; }
.detail-grid dt { color: var(--muted); font-weight: 500; } .detail-grid dd { margin: 0; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 400px at 80% 0, rgba(200, 150, 46, .3), transparent 60%), linear-gradient(135deg, var(--navy), #234a8f); padding: 1rem; }
.login-card { width: 100%; max-width: 410px; background: #fff; border-radius: 20px; padding: 2rem; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); animation: fadeUp .6s var(--ease); }
.preview-img { max-height: 90px; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
@media (max-width: 991px) {
  .adm-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); }
  .adm-side.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .bar-row .lbl { width: 110px; }
  .detail-grid { grid-template-columns: 1fr; }
}
