:root { color-scheme: light; font-family: system-ui, sans-serif; color: #172c24; background: #f3f7f4; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 18px; line-height: 1.6; }
header, main, footer { max-width: 980px; margin: auto; padding: 24px; }
header { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { font-size: 28px; font-weight: 750; text-decoration: none; }
a { color: #146337; text-underline-offset: 4px; }
h1 { line-height: 1.25; font-size: clamp(26px, 4vw, 34px); }
.card { background: white; border: 1px solid #dce7df; border-radius: 16px; padding: 28px; }
.narrow { max-width: 540px; margin: auto; }
label { display: block; margin-top: 18px; font-weight: 600; }
input { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #788a7e; border-radius: 8px; font: inherit; }
input[type=hidden] { display: none; }
button { min-height: 48px; padding: 10px 20px; border: 0; border-radius: 8px; color: white; background: #17673a; font: inherit; font-weight: 600; cursor: pointer; }
.narrow button { width: 100%; margin-top: 24px; }
.secondary { background: #e7f0e9; color: #234732; }
:focus-visible { outline: 3px solid #1a7140; outline-offset: 3px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
nav form { margin-left: auto; }
.error { border-left: 4px solid #a92323; background: #fff0ef; padding: 16px; color: #861616; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid #dce7df; }
footer { color: #526758; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.section-link { display: grid; gap: 8px; border: 1px solid #cfdfd3; border-radius: 12px; padding: 20px; text-decoration: none; }
.section-link strong { font-size: 22px; }
.section-link span, .hint { color: #53695a; font-size: 15px; }
.hint { display: block; margin-top: 6px; }
.heading-row, .actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.heading-row { justify-content: space-between; }
.button { display: inline-block; padding: 10px 20px; border-radius: 8px; background: #17673a; color: white; text-decoration: none; }
.actions form { margin: 0; }
.pagination, .form-actions { margin-top: 24px; }
.field { margin: 20px 0; }
textarea { width: 100%; padding: 12px; border: 1px solid #788a7e; border-radius: 8px; font: inherit; resize: vertical; }
.check { display: flex; align-items: center; gap: 12px; }
.check input { width: 24px; min-height: 24px; height: 24px; flex-shrink: 0; }
fieldset { border: 1px solid #cfdfd3; padding: 20px; border-radius: 12px; margin: 28px 0; min-width: 0; }
.preview-image { display: block; max-width: 100%; max-height: 240px; object-fit: contain; }
.field-error, .danger-link { color: #a02323; }
[aria-invalid=true] { border-color: #a02323; }
.success { background: #e2f3e6; padding: 16px; border-left: 4px solid #17673a; }
.danger { background: #a02323; }
@media (max-width: 520px) { header, main, footer { padding: 16px; } .card { padding: 20px; } nav { gap: 12px; } nav form { margin-left: 0; } }

/* Clinic identity: local Nunito and original clinic logo. */
body, input, textarea, select, button { font-family: Nunito, system-ui, sans-serif; }
.official-logo { width: 240px; max-width: 100%; height: auto; display: block; }
header .brand { max-width: 100%; }
.report-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.report-filters label { flex: 1 1 170px; }
.report-summary { margin: 24px 0; }
.report-summary strong { font-size: 32px; color: #387324; }
.table-wrap { overflow-x: auto; }
.table-wrap td { overflow-wrap: anywhere; }
