/* HPRO web application: one stylesheet, no outside fonts or images. */
:root { --ink: #1f2328; --muted: #59636e; --line: #d1d9e0; --bg: #ffffff; --soft: #f6f8fa; --link: #0b57d0; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
header { display: flex; gap: 24px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--soft); }
.brand { font-weight: 700; letter-spacing: 0.04em; }
nav a { margin-right: 16px; }
.who { margin-left: auto; color: var(--muted); }
main { padding: 16px 20px 40px; max-width: 1400px; }
a { color: var(--link); }
h1 { font-size: 22px; margin: 8px 0 12px; }
h2 { font-size: 17px; margin: 24px 0 8px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-weight: 600; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.4 ui-monospace, Consolas, monospace; color: var(--muted); }
td.text { overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; text-transform: capitalize; background: #e9ecef; }
.sev-critical { background: #b42318; color: #fff; }
.sev-high { background: #f04438; color: #fff; }
.sev-medium { background: #f79009; color: #fff; }
.sev-low { background: #d0d5dd; }
.sev-info, .sev-unknown { background: #e9ecef; }
strong.sev-critical { background: none; color: #b42318; }
.filter { display: flex; gap: 16px; align-items: end; margin: 8px 0 16px; }
.filter label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
select, button { font: inherit; padding: 4px 10px; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--soft); border-radius: 6px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.summary { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; }
.ok { background: #ecfdf3; border: 1px solid #abefc6; padding: 8px 12px; border-radius: 6px; }
.warn { background: #fffaeb; border: 1px solid #fedf89; padding: 8px 12px; border-radius: 6px; }
.empty, .message { color: var(--muted); }
tr.in-alert td { background: #fff4ed; }
.notes { list-style: none; padding: 0; margin: 0 0 12px; }
.notes li { border-bottom: 1px solid var(--line); padding: 6px 0; }
.notes pre.body { color: var(--ink); font: inherit; }
form.stack { display: flex; flex-direction: column; gap: 6px; max-width: 640px; margin: 12px 0; }
form.stack label { display: flex; flex-direction: column; gap: 4px; }
textarea { font: inherit; padding: 6px; }
td.bad, dd.bad { color: #b42318; font-weight: 600; }
.filter.wrap { flex-wrap: wrap; }
input[type=text], input[type=datetime-local] { font: inherit; padding: 4px 6px; }
.nowrap { white-space: nowrap; }
.status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); }
.status-open { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.status-acknowledged { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.status-closed, .status-unknown { background: var(--soft); color: var(--muted); }
tr.dim td { color: var(--muted); }
tr.dim a { color: var(--muted); }
details { margin-top: 4px; }
summary { cursor: pointer; color: var(--muted); font-size: 12px; }
button.primary { background: #0b57d0; color: #fff; border-color: #0b57d0; font-weight: 600; padding: 6px 16px; }
.who { text-align: right; line-height: 1.3; }
form.signout { margin: 4px 0 0; }
form.signin { max-width: 360px; }
input[type=email], input[type=password] { font: inherit; padding: 4px 6px; }
.status-in_progress { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.status-waiting { background: #fffaeb; border-color: #fedf89; color: #93370d; }
a.button { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); text-decoration: none; }
form.stack input[type=text] { max-width: 640px; }
ul.summary-list { padding-left: 20px; line-height: 1.6; max-width: 900px; }
@media print {
  header nav, header form, .noprint { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
  table { page-break-inside: auto; } tr { page-break-inside: avoid; }
}
fieldset.hours { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; max-width: 640px; }
label.inline { display: inline-flex; flex-direction: row; gap: 4px; align-items: center; margin-right: 10px; }
form.inline { display: inline-flex; gap: 6px; margin: 0; }
details.siteedit { margin: 8px 0; }
.codes { font: 16px/1.8 ui-monospace, Consolas, monospace; }
