* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; font-family: "Segoe UI", Tahoma, sans-serif; color: #1c2b26; background: #eef3f0; }
a { color: #0c6b4d; }
h1 { font-size: 22px; margin: 0 0 12px; }
h2 { font-size: 16px; margin: 18px 0 8px; }
p { line-height: 1.45; }

.top { background: #143028; color: #fff; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.top .lab { font-weight: 700; font-size: 18px; }
.top .who { font-size: 13px; }
.top a, .top .linkbtn { color: #d7efe4; background: none; border: 0; cursor: pointer; font: inherit; text-decoration: underline; margin-left: 10px; }
.subtitle { background: #0c6b4d; color: #fff; padding: 8px 20px; font-size: 14px; }

.menu { background: #fff; border-bottom: 1px solid #d5e0da; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.menu a { text-decoration: none; color: #1c2b26; padding: 6px 10px; border-radius: 4px; font-size: 14px; }
.menu a:hover, .menu a.active { background: #0c6b4d; color: #fff; }

.page { max-width: 1100px; margin: 16px auto 32px; padding: 0 16px; }
.card { background: #fff; border: 1px solid #d5e0da; border-radius: 6px; padding: 16px; margin-bottom: 14px; }
.footer { text-align: center; color: #5c6f67; font-size: 12px; padding: 18px; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.job { display: block; background: #fff; border: 1px solid #d5e0da; border-radius: 6px; padding: 14px; text-decoration: none; color: inherit; }
.job { font-size: 16px; }
.steps { margin: 0; padding-left: 18px; }
.steps li { margin: 4px 0; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.field { margin-bottom: 8px; }
.field.wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
input[type=text], input[type=password], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; max-width: 100%; padding: 7px 8px; border: 1px solid #b7c7bf; border-radius: 4px; font: inherit;
}
textarea { min-height: 70px; }
.actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.btn { background: #0c6b4d; color: #fff; border: 0; border-radius: 4px; padding: 8px 14px; cursor: pointer; font: inherit; text-decoration: none; display: inline-block; }
.btn.secondary { background: #e7eeea; color: #1c2b26; }
.btn.warn { background: #8a3b2a; }
.hint { color: #5c6f67; font-size: 12px; margin-top: 3px; }
.gps-line { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: nowrap; }
.gps-name { width: 92px; flex: 0 0 92px; font-weight: 600; }
input.gps-box { width: 110px !important; max-width: 110px !important; display: inline-block !important; }

.msg { padding: 8px 10px; border-radius: 4px; margin-bottom: 12px; }
.msg.ok { background: #e5f6ee; }
.msg.err { background: #fdecea; }

table.grid { width: 100%; border-collapse: collapse; background: #fff; }
table.grid th { background: #0c6b4d; color: #fff; text-align: left; padding: 8px; font-weight: 600; }
table.grid td { padding: 8px; border-bottom: 1px solid #e2ebe6; vertical-align: top; }
table.grid tr:nth-child(even) td { background: #f7faf8; }
table.grid tr.prog-open td, table.grid tr.prog-open:nth-child(even) td { background: #f6c98a; }
table.grid tr.prog-done td, table.grid tr.prog-done:nth-child(even) td { background: #8fd48a; }
table.grid tr.mon-over td, table.grid tr.mon-over:nth-child(even) td { background: #f6d0cb; }
table.grid tr.mon-wait td, table.grid tr.mon-wait:nth-child(even) td { background: #f6c98a; }
table.grid tr.mon-ok td, table.grid tr.mon-ok:nth-child(even) td { background: #d7f0d4; }
table.grid tr.mon-late td, table.grid tr.mon-late:nth-child(even) td { background: #f3e2b8; }
.page.wide { max-width: 1360px; }
.mon-cards { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.mon-card { display: block; min-width: 140px; background: #fff; border: 1px solid #d5e0da; border-radius: 6px; padding: 10px 12px; text-decoration: none; color: inherit; }
.mon-card b { display: block; font-size: 22px; margin-top: 2px; }
.mon-card.hot b { color: #8a3b2a; }
.step-line { display: block; font-size: 12px; line-height: 1.45; }
.tell { font-weight: 700; }
textarea.mon-note { min-height: 52px; font-size: 13px; }
table.grid tr.current td { background: #d9f3e6; }
.sample-list { max-height: 240px; overflow: auto; border: 1px solid #d5e0da; margin-bottom: 12px; }
table.grid input[type=text] { max-width: 140px; }
table.grid a { margin-right: 8px; }
table.grid td.sl { width: 42px; white-space: nowrap; }
table.grid tr.pager td { background: #f4f8f6; }
table.grid tr.pager table { width: auto; margin: 0; border-collapse: separate; border-spacing: 4px 0; }
table.grid tr.pager td td { background: transparent; border: 0; padding: 0; }
table.grid tr.pager a, table.grid tr.pager span { display: inline-block; min-width: 28px; margin: 0; padding: 4px 8px; text-align: center; border: 1px solid #c5ddd0; border-radius: 4px; background: #fff; }
table.grid tr.pager span { background: #0c6b4d; color: #fff; border-color: #0c6b4d; }

.check-list { max-height: 280px; overflow: auto; border: 1px solid #d5e0da; padding: 8px; background: #fff; }
.check-list table, .check-list td { width: 100%; white-space: normal; }
.check-list label { display: block; padding: 3px 0; font-weight: 400; }
.param-search { display: flex; align-items: flex-start; gap: 10px; }
.param-search .field { flex: 1; margin-bottom: 0; }
.param-search .btn { margin-top: 22px; }
.param-picks { margin-top: 8px; border: 1px solid #d5e0da; padding: 6px 10px; background: #fff; }
.param-picks table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.param-picks td { width: 50%; vertical-align: top; padding: 6px 14px 6px 0; white-space: normal; }
.param-picks label { font-weight: 400; line-height: 1.35; }
.param-picks input { margin: 2px 6px 0 0; vertical-align: top; }
#tests { scroll-margin-top: 12px; }
.banner { background: #f7faf8; border: 1px solid #d5e0da; padding: 10px 12px; margin-bottom: 12px; border-radius: 4px; }
.login-wrap { max-width: 420px; margin: 60px auto; text-align: center; }
.login-wrap .field, .login-wrap .actions { text-align: left; }
.login-logo { width: 140px; height: auto; margin: 0 auto 6px; }
.top .lab { display: flex; align-items: center; gap: 8px; }
.top-logo { height: 42px; width: auto; }
.rpt-logo { width: 86px; height: auto; }
.doc-logo { width: 64px; height: auto; }
.sticker-logo { width: 46px; height: auto; }
.report { position: relative; background: #fff; color: #111; padding: 10px 12px 12px; border: 3px solid #e07a12; font-family: Calibri, "Segoe UI", Arial, sans-serif; overflow: hidden; }
.report table { width: 100%; border-collapse: collapse; margin: 0 0 4px; }
.report td, .report th { border: 1px solid #222; padding: 3px 5px; font-size: 11px; vertical-align: top; }
.report td.k, .report th { font-weight: 700; }
.report th.sec { background: #fff6ec; color: #c45c00; text-align: left; font-size: 12px; }
.report td.band { text-align: center; color: #d35400; font-weight: 700; border-left: 0; border-right: 0; }
.report .watermark { position: absolute; top: 42%; left: 0; right: 0; text-align: center; font-size: 46px; font-weight: 700; color: rgba(160, 40, 40, 0.16); letter-spacing: 3px; transform: rotate(-16deg); pointer-events: none; }
.rpt-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.rpt-name { color: #1b8a34; font-size: 26px; font-weight: 700; text-align: center; line-height: 1.1; margin-bottom: 4px; }
.rpt-id { flex: 1; }
.rpt-meta { display: flex; gap: 12px; font-size: 10px; line-height: 1.35; }
.rpt-meta > div { flex: 1; }
.rpt-badge { width: 62px; height: 62px; border: 2px solid #1b8a34; border-radius: 50%; text-align: center; font-size: 9px; font-weight: 700; color: #1b8a34; padding-top: 16px; line-height: 1.15; flex: 0 0 62px; }
.rpt-badge span { display: block; font-size: 8px; }
.rpt-badge.epic { color: #e07a12; border-color: #e07a12; padding-top: 20px; }
.rpt-banner-wrap { text-align: center; margin: 2px 0 6px; }
.rpt-banner { display: inline-block; background: #f08c1a; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 0.5px; padding: 3px 28px; }
.report table.issue td.who { width: 46%; }
.report .results th { text-align: center; }
.report .results td { text-align: center; }
.report .results td:nth-child(2), .report .results td:nth-child(3) { text-align: left; }
.analysed { margin: 8px 0 0; font-size: 12px; }
.sign { display: flex; justify-content: space-between; margin-top: 16px; font-size: 11px; text-align: center; }
.sign div { width: 30%; min-height: 54px; }
.rpt-end { text-align: center; font-weight: 700; letter-spacing: 1px; margin: 8px 0; }
.rpt-auth { text-align: right; font-size: 12px; margin-bottom: 8px; }
.notes { font-size: 8px; color: #333; line-height: 1.35; margin: 0; }

@media (max-width: 800px) {
  .fields { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.sticker-sheet { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.sticker { width: 8.8cm; border: 1px solid #111; padding: 6px 8px 8px; background: #fff; color: #111; page-break-inside: avoid; }
.sticker-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 6px; }
.sticker-mark { font-weight: 700; font-size: 13px; border: 1px solid #111; border-radius: 50%; width: 36px; height: 36px; line-height: 36px; text-align: center; }
.sticker-lab { font-weight: 700; font-size: 12px; text-align: right; }
.sticker-use { font-size: 9px; text-align: right; line-height: 1.2; }
.sticker table { width: 100%; border-collapse: collapse; }
.sticker td { border: 1px solid #222; padding: 3px 5px; font-size: 11px; }
.sticker td.k { width: 46%; font-weight: 600; }
.receipt { background: #fff; color: #111; border: 1px solid #111; padding: 10px 12px 12px; margin: 0 0 18px; page-break-after: always; font-size: 12px; }
.receipt-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.receipt-mark { font-weight: 700; border: 1px solid #111; border-radius: 50%; width: 42px; height: 42px; line-height: 42px; text-align: center; }
.receipt-lab { text-align: right; font-size: 12px; }
.receipt h2 { text-align: center; margin: 4px 0 0; font-size: 16px; }
.receipt-copy { text-align: center; font-weight: 700; letter-spacing: 1px; margin: 2px 0 4px; }
.receipt-format { text-align: right; font-size: 10px; margin-bottom: 6px; }
.receipt table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.receipt td, .receipt th { border: 1px solid #222; padding: 3px 5px; vertical-align: top; }
.receipt td.k, .receipt th { font-weight: 600; background: #f4f7f5; }
.receipt td.limit { width: 70px; min-height: 22px; }
.receipt .sign-box { height: 36px; }
.receipt-tests td { min-height: 18px; }
.draft { background: #fff; color: #111; border: 1px solid #111; padding: 8px 10px 12px; font-size: 11px; }
.draft-top { display: flex; justify-content: space-between; gap: 16px; }
.draft-lab { font-size: 12px; max-width: 62%; }
.draft h2 { text-align: center; margin: 8px 0 2px; font-size: 16px; }
.draft-note { text-align: center; font-size: 11px; margin: 0 0 8px; }
.draft table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.draft td, .draft th { border: 1px solid #222; padding: 4px 5px; vertical-align: top; }
.draft th { background: #f4f7f5; text-align: left; }
.draft td.k { width: 18%; font-weight: 600; background: #f4f7f5; }
.draft td.write { height: 26px; }
.draft-sign { display: flex; justify-content: space-between; margin-top: 18px; }
.draft-sign div { width: 42%; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .page { max-width: none; margin: 0; }
  .card { border: 0; padding: 0; }
}
