*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;margin:0;background:#f6f7f9;color:#1b1b1b;line-height:1.45}
header{background:#1f4e79;color:#fff;padding:14px 24px;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center}
header nav{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center}
header a,header .link{color:#fff;font-size:14px;text-decoration:none}
header a:hover,header a:focus{text-decoration:underline}
main{max-width:1100px;margin:24px auto;padding:0 16px}
section,.card{background:#fff;border:1px solid #e3e5e8;border-radius:10px;padding:18px;margin-bottom:18px}
h1{font-size:22px;margin:0 0 12px}h2{font-size:18px;margin:0 0 10px}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:8px;border-bottom:1px solid #eee;vertical-align:top}
label{display:block;font-weight:600;font-size:14px;margin:12px 0 4px}
input[type=text],input[type=email],input[type=password],input[type=url],input[type=tel],input[type=number],input[type=time],select,textarea{width:100%;max-width:560px;padding:9px;font-size:16px;border:1px solid #c9ced6;border-radius:6px;background:#fff}
textarea{min-height:180px;font-family:inherit}
input:focus,select:focus,textarea:focus,button:focus,a:focus{outline:3px solid #93c5fd;outline-offset:1px}
.check{display:flex;gap:8px;align-items:flex-start;font-weight:400;margin:8px 0}
.check input{margin-top:4px}
button,.button{display:inline-block;background:#1f4e79;color:#fff;border:0;border-radius:6px;padding:10px 18px;cursor:pointer;font-size:15px;text-decoration:none;min-height:44px}
button.secondary,.button.secondary{background:#eef2f7;color:#1f4e79}
button.link{background:none;border:0;padding:0;min-height:0;font-size:14px;cursor:pointer}
form.inline{display:inline}
.muted{color:#5b6472;font-size:13px}.warn{color:#9a3412}.ok{color:#166534}
.notice{background:#ecfdf5;border:1px solid #a7f3d0;padding:10px 14px;border-radius:8px}
.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;padding:10px 14px;border-radius:8px}
.tag{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;background:#eef2f7}
.tag.emergency{background:#fee2e2;color:#991b1b}.tag.urgent{background:#ffedd5;color:#9a3412}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:18px}
.kpi{background:#fff;border:1px solid #e3e5e8;border-radius:10px;padding:14px}
.kpi .v{font-size:26px;font-weight:700}.kpi .l{font-size:13px;color:#5b6472}
.steps{display:flex;flex-wrap:wrap;gap:6px;padding:0;list-style:none;margin:0 0 16px}
.steps li{font-size:12px;padding:4px 10px;border-radius:12px;background:#eef2f7}
.steps li.done{background:#dcfce7;color:#166534}.steps li.on{background:#1f4e79;color:#fff}
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.filters label{margin:0;font-weight:400;font-size:13px}.filters select,.filters input{width:auto;font-size:14px;padding:6px}
pre{white-space:pre-wrap;word-break:break-all;background:#f3f4f6;padding:10px;border-radius:6px;font-size:12px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.hours-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0}.hours-row span{width:44px;font-weight:600}
.hours-row input[type=time]{width:auto}
@media (max-width:600px){header{padding:12px}main{margin:12px auto;padding:0 10px}th,td{padding:6px}.kpi .v{font-size:22px}}
