* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: #f5f7fb; color: #1f2937; }
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #111827; color: #fff; padding: 24px; }
.sidebar-header { margin-bottom: 16px; }
.sidebar-logo { width: 100%; max-width: 120px; height: auto; border-radius: 8px; margin-bottom: 10px; }
.sidebar h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.sidebar nav { display: grid; gap: 10px; margin-top: 20px; }
.sidebar nav a { color: #e5e7eb; text-decoration: none; padding: 10px 12px; background: rgba(255,255,255,.05); border-radius: 8px; }
.sidebar nav a:hover { background: rgba(255,255,255,.12); }
.content { flex: 1; padding: 24px; }
h1, h2, h3 { margin-top: 0; }
.card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 16px; overflow:auto; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
label { display: block; margin: 10px 0 6px; font-weight: 600; }
input, select, textarea, button { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #d1d5db; }
button, .btn { display: inline-block; width: auto; background: #2563eb; color: #fff; border: none; text-decoration: none; cursor: pointer; padding: 10px 14px; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.actions a { margin-right: 8px; }
.muted { color: #6b7280; }
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: min(420px, 92vw); background: #fff; padding: 24px; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.login-brand { text-align: center; margin-bottom: 12px; }
.login-logo { max-width: 110px; max-height: 110px; width: auto; height: auto; border-radius: 10px; margin-bottom: 8px; }
.login-brand h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.filter-row { display: flex; gap: 10px; align-items: end; margin-bottom: 14px; flex-wrap: wrap; }
.filter-row > * { width: auto; }
.print-page { background: #fff; }
.print-card { max-width: 860px; margin: 20px auto; border: 1px solid #ddd; padding: 24px; }
.role-options { display: grid; gap: 10px; margin-bottom: 14px; }
.role-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.role-option input[type="radio"] { width: auto; margin-top: 2px; }
.role-option span { display: grid; gap: 3px; }
.print-only { display: none; }
@media print {
  .sidebar, .btn, button, .no-print { display:none !important; }
  .print-only { display:block !important; }
  .content { padding:0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
