*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f4f7fb;color:#102033}
.header{background:linear-gradient(135deg,#061e49,#0b5cb8);color:white;padding:16px 20px;border-bottom:6px solid #ffd21f;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center}
.header h1{margin:0;font-size:24px}.header p{margin:4px 0 0;color:#dceaff}.top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.period-form{margin:0}.period-form select{padding:9px;border-radius:9px;border:0}
.nav{display:flex;gap:8px;flex-wrap:wrap;padding:14px 16px;background:#fff;border-bottom:1px solid #d9e3f0}.nav a{padding:9px 12px;border-radius:9px;text-decoration:none;background:#eef4ff;color:#0b3a78;font-weight:700}.nav a.active,.nav a:hover{background:#061e49;color:white}
.container{max-width:1500px;margin:16px auto;padding:0 12px}.card{background:#fff;border:1px solid #d9e3f0;border-radius:14px;box-shadow:0 5px 15px rgba(6,30,73,.08);overflow:hidden;margin-bottom:14px}.card h2{margin:0;padding:12px 14px;background:#fbfdff;border-bottom:1px solid #d9e3f0;color:#15376d;font-size:18px}.body{padding:14px}
.grid{display:grid;gap:12px}.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}.g5{grid-template-columns:repeat(5,1fr)}@media(max-width:900px){.g2,.g3,.g4,.g5{grid-template-columns:1fr}}
label{display:block;font-size:12px;font-weight:800;color:#40536d;margin:0 0 4px}input,select,textarea{width:100%;border:1px solid #c7d3e4;border-radius:8px;padding:8px 10px;font:inherit;background:white}input[type=number]{text-align:right}
button,.btn{border:0;border-radius:9px;padding:9px 12px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block}.btn-primary{background:#0b5cb8;color:white}.btn-yellow{background:#ffd21f;color:#061e49}.btn-danger{background:#d62828;color:white}.btn-green{background:#0f9d58;color:white}.btn-ghost{background:#eef4ff;color:#0b4aa2}
table{width:100%;border-collapse:collapse;font-size:13px}th,td{border-bottom:1px solid #d9e3f0;padding:8px;text-align:left;vertical-align:middle}th{background:#eef5ff;color:#15376d;font-weight:900}.right{text-align:right}.center{text-align:center}.small{font-size:12px;color:#617089}
.metric{background:#fbfdff;border:1px solid #d9e3f0;border-radius:12px;padding:12px;display:flex;justify-content:space-between;gap:10px;align-items:center}.metric b{font-size:22px;color:#061e49}.pill{display:inline-block;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:900}.ok{background:#e7f8ee;color:#087038}.warn{background:#fff4d2;color:#8a5a00}.bad{background:#ffe4e4;color:#a81313}.notice{padding:10px 12px;border-radius:10px;background:#fff8df;border:1px solid #ffe09b;color:#694a00;font-size:13px}.alert{padding:10px;border-radius:8px;margin-bottom:12px}.alert-error{background:#ffe4e4;color:#a81313}
.login-wrap{min-height:100vh;background:linear-gradient(135deg,#061e49,#0b5cb8);display:flex;align-items:center;justify-content:center;padding:20px}.login-box{width:420px;background:white;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden}.login-top{background:#061e49;color:white;padding:22px;border-bottom:6px solid #ffd21f}.login-top h1{margin:0}

.alert-ok{background:#e7f8ee;color:#087038}

canvas{max-width:100%}
@media(max-width:700px){table{display:block;overflow-x:auto;white-space:nowrap}.header h1{font-size:20px}}
