@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --navy: #14243a;
    --navy-2: #1d3554;
    --blue: #3167d5;
    --text: #1f2937;
    --muted: #7b8798;
    --line: #e8edf3;
    --bg: #f5f7fb;
    --white: #fff;
    --green: #15966b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 248px; background: var(--navy); color: #d8e1ed; display: flex; flex-direction: column; padding: 25px 17px 18px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 7px 30px; color: #fff; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg,#4d85ee,#2454b2); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: Manrope,sans-serif; font-weight: 800; letter-spacing: -1px; box-shadow: 0 7px 18px #0b1a2d66; flex-shrink: 0; }
.brand strong { display: block; font-family: Manrope,sans-serif; font-size: 14px; color: #fff; }
.brand small { display: block; font-size: 11px; color: #91a3ba; margin-top: 3px; }
.nav-label { color: #71839b; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; padding: 0 12px 12px; }
.main-nav { display: grid; gap: 6px; }
.main-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #aebdd0; transition: .18s; }
.main-nav a:hover { color: #fff; background: #ffffff0c; }
.main-nav a.active { background: #2b4b76; color: #fff; box-shadow: inset 3px 0 #75a5ff; }
.nav-icon { width: 19px; text-align: center; font-size: 17px; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #ffffff16; padding-top: 17px; }
.admin-mini { display: flex; align-items: center; gap: 10px; padding: 5px 4px 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #385d8b; font-weight: 700; }
.admin-mini-text strong { display: block; font-size: 12px; color: #fff; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-mini-text small { color: #8ea0b7; font-size: 10px; }
.logout-link { border: 0; background: transparent; color: #aebdd0; font: inherit; font-size: 12px; cursor: pointer; padding: 8px 5px; }
.logout-link:hover { color: #fff; }
.main-content { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { height: 92px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 38px; }
.eyebrow { font-size: 9px; letter-spacing: 1.5px; color: #8b97a8; font-weight: 800; margin-bottom: 5px; }
.topbar h1 { margin: 0; font-family: Manrope,sans-serif; font-size: 22px; letter-spacing: -.5px; color: #17263b; }
.topbar-right { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #66758a; font-weight: 600; }
.online-dot { width: 7px; height: 7px; background: #1ab47c; border-radius: 50%; box-shadow: 0 0 0 4px #e5f7ef; }
.content-wrap { padding: 30px 38px; width: 100%; max-width: 1500px; margin: 0 auto; flex: 1; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.welcome-row h2 { margin: 0 0 5px; font: 700 18px Manrope,sans-serif; color: #1b2b42; }
.welcome-row p, .panel-heading p { margin: 0; font-size: 12px; color: var(--muted); }
.date-chip, .count-chip { padding: 9px 13px; background: #fff; border: 1px solid var(--line); border-radius: 9px; color: #66758a; font-size: 11px; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 22px; }
.stats-grid-one { grid-template-columns: minmax(220px, 320px); }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px; box-shadow: 0 3px 12px #17263b05; min-width: 0; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #758297; font-size: 11px; font-weight: 600; }
.stat-icon, .quick-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 14px; font-weight: 800; flex-shrink: 0; }
.blue { color: #3167d5; background: #edf3ff; }
.green { color: #15966b; background: #e8f8f1; }
.orange { color: #d78a22; background: #fff5e7; }
.purple { color: #8059c8; background: #f3efff; }
.stat-number { margin-top: 14px; font: 800 27px Manrope,sans-serif; color: #1a2b43; letter-spacing: -.8px; }
.stat-currency { font-size: 20px; letter-spacing: -.4px; }
.stat-foot { margin-top: 5px; font-size: 10px; color: #a0aaba; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 21px; margin-bottom: 20px; box-shadow: 0 3px 12px #17263b05; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 19px; }
.panel-heading h3 { margin: 0 0 5px; font: 700 14px Manrope,sans-serif; color: #1d2c42; }
.quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.quick-link { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; transition: .18s; }
.quick-link:hover { border-color: #b9ccef; transform: translateY(-2px); box-shadow: 0 8px 20px #1c37600b; }
.quick-icon { grid-row: span 2; width: 38px; height: 38px; }
.quick-link strong { font-size: 12px; color: #29384d; }
.quick-link small { font-size: 10px; color: #929eae; margin-top: 3px; }
.notice { padding: 15px 17px; border: 1px solid #dce8fa; border-left: 3px solid #4c83dc; border-radius: 9px; background: #f7faff; }
.notice strong { font-size: 11px; color: #315b9c; }
.notice p { margin: 5px 0 0; font-size: 11px; line-height: 1.6; color: #70819a; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th { text-align: left; background: #f8fafd; color: #8491a3; font-size: 10px; font-weight: 800; letter-spacing: .4px; padding: 12px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px; font-size: 11px; color: #66758a; border-bottom: 1px solid #eff2f6; }
tbody tr:last-child td { border-bottom: 0; }
.table-strong { color: #26364c; font-weight: 700; }
.empty-state { text-align: center; color: #9aa5b4; padding: 35px 15px; }
.status-pill { display: inline-block; padding: 5px 9px; border-radius: 20px; font-size: 9px; font-weight: 800; }
.status-active { color: #14845f; background: #e9f8f1; }
.status-muted { color: #7c8796; background: #f0f2f5; }
.report-total { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; color: #758297; font-size: 12px; }
.report-total strong { font: 800 22px Manrope,sans-serif; color: #1d2c42; }
.footer { padding: 16px 38px; border-top: 1px solid var(--line); background: #fff; color: #9aa5b4; font-size: 10px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 15% 15%,#e6efff,transparent 35%),linear-gradient(135deg,#f5f7fb,#edf2f9); }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid #e7edf5; border-radius: 18px; padding: 32px; box-shadow: 0 18px 60px #1b345514; }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 27px; }
.brand-mark-large { width: 50px; height: 50px; font-size: 17px; }
.login-brand h1 { margin: 0 0 4px; font: 800 19px Manrope,sans-serif; color: #1a2b43; }
.login-brand p { margin: 0; color: #8b97a8; font-size: 11px; }
.login-form { display: grid; gap: 9px; }
.login-form label { color: #4e5d72; font-size: 11px; font-weight: 700; margin-top: 7px; }
.login-form input { width: 100%; border: 1px solid #dfe6ef; border-radius: 9px; padding: 12px 13px; font: inherit; font-size: 12px; outline: none; color: #26364c; background: #fff; }
.login-form input:focus { border-color: #6b95e5; box-shadow: 0 0 0 3px #eaf1ff; }
.btn { border: 0; border-radius: 9px; padding: 12px 15px; font: 700 12px 'DM Sans',sans-serif; cursor: pointer; text-align: center; }
.btn-primary { color: #fff; background: linear-gradient(135deg,#3976e4,#285bc0); box-shadow: 0 7px 15px #326bd52b; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-full { width: 100%; margin-top: 14px; }
.login-note { text-align: center; color: #a0aaba; font-size: 10px; margin: 20px 0 0; }
.alert { padding: 11px 13px; border-radius: 8px; font-size: 11px; line-height: 1.5; margin-bottom: 15px; }
.alert-error { color: #a33d3d; background: #fff0f0; border: 1px solid #f7d6d6; }
.alert-success { color: #176e50; background: #edfaf4; border: 1px solid #d2f0e1; margin-bottom: 16px; }
@media (max-width: 1050px) { .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .content-wrap { padding: 25px; } .topbar { padding: 0 25px; } }
@media (max-width: 700px) {
    .app-shell { display: block; }
    .sidebar { width: 100%; padding: 12px 14px; }
    .brand { padding: 0 3px 12px; }
    .brand-mark { width: 36px; height: 36px; }
    .nav-label, .sidebar-bottom { display: none; }
    .main-nav { display: flex; overflow-x: auto; gap: 5px; padding-bottom: 2px; }
    .main-nav a { flex: 0 0 auto; padding: 9px 11px; font-size: 11px; }
    .nav-icon { font-size: 14px; }
    .topbar { height: 72px; padding: 0 17px; }
    .topbar h1 { font-size: 18px; }
    .topbar-right { display: none; }
    .content-wrap { padding: 20px 14px; }
    .welcome-row { align-items: flex-start; }
    .welcome-row h2 { font-size: 16px; }
    .date-chip { font-size: 9px; padding: 7px 9px; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-top { font-size: 10px; }
    .stat-number { font-size: 23px; }
    .stat-currency { font-size: 16px; }
    .quick-grid { grid-template-columns: 1fr; }
    .panel { padding: 15px; }
    .panel-heading { align-items: flex-start; }
    .footer { padding: 14px 17px; }
}
