:root { --bg:#f6f7fb; --panel:#fff; --text:#1f2937; --muted:#6b7280; --line:#e5e7eb; --primary:#0f766e; --danger:#b91c1c; --ok:#166534; }
* { box-sizing: border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; background:var(--bg); color:var(--text); }
a { color:var(--primary); text-decoration:none; }
a:hover { text-decoration:underline; }
.topbar { background:#111827; color:#fff; padding:14px 22px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.brand { font-weight:700; font-size:18px; }
.topbar nav { display:flex; gap:14px; flex-wrap:wrap; }
.topbar a { color:#fff; }
.container { width:min(1260px, 96vw); margin:24px auto; background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:24px; box-shadow:0 8px 24px rgba(0,0,0,.04); }
.footer { text-align:center; color:var(--muted); padding:20px; }
h1 { margin-top:0; }
.login-card { max-width:430px; margin:40px auto; }
label { font-weight:700; display:block; margin:10px 0 6px; }
input, textarea, select { width:100%; padding:11px 12px; border:1px solid #cbd5e1; border-radius:10px; font-size:14px; background:#fff; }
button, .btn { display:inline-block; background:var(--primary); color:#fff; border:0; border-radius:10px; padding:11px 16px; font-weight:700; cursor:pointer; }
button:hover, .btn:hover { opacity:.92; text-decoration:none; }
.btn.secondary { background:#374151; }
.alert { border-radius:10px; padding:12px 14px; margin:12px 0; background:#e0f2fe; }
.alert.error { background:#fee2e2; color:var(--danger); }
.alert.success { background:#dcfce7; color:var(--ok); }
.cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); gap:16px; margin:20px 0; }
.card { border:1px solid var(--line); border-radius:14px; padding:18px; background:#fafafa; }
.card span { color:var(--muted); display:block; }
.card strong { font-size:30px; display:block; margin-top:8px; }
.actions { display:flex; gap:12px; margin:20px 0; flex-wrap:wrap; }
.form-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px; }
.form-grid .full { grid-column:1 / -1; }
.checkbox { display:flex; gap:8px; align-items:center; font-weight:400; }
.checkbox input { width:auto; }
.note { margin-top:18px; border:1px dashed #cbd5e1; padding:12px; border-radius:10px; background:#f8fafc; }
.filters { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:10px; align-items:end; margin-bottom:14px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { border-bottom:1px solid var(--line); padding:10px; vertical-align:top; text-align:left; }
th { background:#f8fafc; position:sticky; top:0; }
.muted { color:var(--muted); }
.pagination { display:flex; gap:10px; margin-top:16px; }
.detail-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:14px; }
.detail-grid div, .detail-section { border:1px solid var(--line); border-radius:12px; padding:14px; background:#fafafa; margin-bottom:14px; }
.detail-grid p { margin-bottom:0; }
pre { white-space:pre-wrap; word-break:break-word; }
@media (max-width: 760px) { .form-grid { grid-template-columns:1fr; } .container { padding:16px; } }
.hidden { display:none; }
.small { font-size:12px; margin-top:6px; }
.progress { width:100%; height:18px; border-radius:999px; background:#e5e7eb; overflow:hidden; border:1px solid #cbd5e1; }
.progress > div { height:100%; width:0; background:#0f766e; transition:width .2s ease; }
button:disabled { opacity:.65; cursor:wait; }
