﻿*{box-sizing:border-box} :root{--bg:#f5f7f5;--ink:#243d35;--muted:#718078;--green:#346b55;--line:#e0e8e1;--light:#eaf2ec}body{margin:0;background:var(--bg);color:var(--ink);font:15px Montserrat,"Segoe UI",Arial,sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin-top:0}h1{font-size:34px;line-height:1.2;letter-spacing:-1.1px;margin-bottom:12px}h2{font-size:21px;margin-bottom:16px}h3{font-size:17px;margin:12px 0}h4{font-size:14px;margin:14px 0 7px}p{color:var(--muted)}button,input,select,textarea{font:inherit}button,a,input,textarea,select{outline-offset:4px}button{cursor:pointer}label{display:block;font-weight:600;font-size:13px;margin-bottom:17px}input,select,textarea{display:block;width:100%;border:1px solid #d6e1d9;background:#fff;padding:12px 13px;border-radius:9px;margin-top:7px;color:var(--ink);font-weight:400;min-height:46px}input::placeholder,textarea::placeholder{text-transform:lowercase;color:#8b9690}input:focus,select:focus,textarea:focus{border-color:var(--green);outline:2px solid #dce9df}textarea{min-height:85px;resize:vertical}.long{min-height:155px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;padding:12px 19px;border-radius:9px;border:1px solid var(--green);font-weight:600;font-size:13px;white-space:nowrap}.primary{color:white;background:var(--green)}.primary:hover{background:#28533f}.secondary{background:white;color:var(--green);border-color:var(--line)}.link{padding:5px 0;border:0;background:none;color:var(--green);font-size:13px;font-weight:600}.danger{color:#ac4d44}.small,small{font-size:12px;color:var(--muted)}.wide{width:100%}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--green);margin-bottom:12px}.brand{display:flex;width:55px;height:55px;align-items:center;justify-content:center;background:#dae9df;border-radius:18px 5px;color:var(--green);font-family:Georgia,serif;font-size:30px;letter-spacing:-6px;padding-right:6px}.brand span{font-size:21px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.welcome{background:#e5eee6;padding:12vh 9vw;display:flex;flex-direction:column;justify-content:center}.welcome .brand{margin-bottom:50px}.welcome h1{font-family:Georgia,serif;font-size:48px;font-weight:400;line-height:1.18}.welcome p{max-width:360px}.secure{font-size:12px;margin-top:55px;color:var(--green)}.loginbox{padding:10vh 7vw;align-self:center;max-width:600px;width:100%}.loginbox form{margin-top:30px}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:#fff;border-right:1px solid var(--line);padding:30px 22px;display:flex;flex-direction:column}.logo{display:flex;gap:13px;align-items:center;font-size:15px;font-weight:700}.logo .brand{width:45px;height:45px;font-size:26px}.logo small{display:block;font-size:8px;letter-spacing:1.7px;margin-top:2px}.sidebar nav{margin-top:55px}.navitem{display:block;padding:14px 12px;font-size:13px;margin-bottom:8px;border-radius:8px}.navitem:hover{background:var(--light);color:var(--green)}.aside-bottom{margin-top:auto;font-size:11px;color:var(--muted)}.aside-bottom form{margin-top:17px}.dot{display:inline-block;width:7px;height:7px;background:#7caa88;border-radius:50%;margin-right:6px}.workspace{margin-left:244px;padding:0 42px;max-width:1800px}.top{display:flex;justify-content:space-between;padding:25px 0;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:1px;color:var(--muted);margin-bottom:35px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.heading p{margin-bottom:0}.card{border:1px solid var(--line);border-radius:15px;background:#fff;padding:27px;margin-bottom:25px;box-shadow:0 5px 14px #253f3203;min-width:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.stats>div{padding:16px 20px;background:#f1f6f2;border-radius:10px}.stats span{font-size:12px;color:var(--muted)}.stats strong{display:block;font-size:28px;margin-top:6px;font-weight:600}.stats small{font-size:12px}.overview>div{background:#fff;border:1px solid var(--line);padding:23px}.toolbar{display:flex;gap:15px;margin-bottom:25px}.toolbar input{margin:0;max-width:450px}.toolbar select{width:195px;margin:0 0 0 auto}.tablewrap{max-width:100%;overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}td,th{text-align:left;border-bottom:1px solid var(--line);padding:13px 16px}thead th{font-size:11px;background:#f4f7f3;color:var(--muted)}thead th a{display:block}tbody th{font-weight:500}td.delta{background:#f4f8f4;font-weight:600}.patienttable small{display:block;margin-top:4px}.patienttable a:hover{text-decoration:underline}.badge{display:inline-block;background:var(--light);color:var(--green);padding:4px 9px;font-size:11px;border-radius:6px}.empty{padding:40px 15px;text-align:center;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}.measures{grid-template-columns:repeat(3,minmax(0,1fr))}.columns{display:grid;grid-template-columns:1fr 1fr;gap:25px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.sectionhead h2,.sectionhead h3{margin-bottom:0}.sectionhead select{margin:0}.addbar{margin-bottom:25px}.info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:15px 0 23px}.info span{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.info strong{display:block;color:var(--ink);font-size:13px;font-weight:500;margin-top:5px}.summary{background:#f4f6ee;padding:15px;border-left:3px solid #a3b88e;border-radius:4px;font-size:13px}.preserve{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}.historygrid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:25px 0}.historyitem{border:1px solid var(--line);border-radius:9px;padding:17px}.historyitem h4{margin-top:0}.historyitem p{margin-bottom:0}.historyitem label:last-child{margin-bottom:0}.historyitem textarea{min-height:65px}.datefield{max-width:240px}.alert,.success{padding:15px 20px;border-radius:9px;margin:20px 0;background:#fff0ec;color:#994c40}.success{background:#e3f1e8;color:#316447}.audit{font-size:12px;padding-left:18px;color:var(--muted)}footer{display:flex;justify-content:space-between;padding:25px 0 30px;font-size:10px;color:var(--muted)}.weightchart{margin-bottom:20px}.weightchart svg{width:100%;height:180px;display:block}.chartline{fill:none;stroke:var(--green);stroke-width:2.5}.chartdot{fill:var(--green)}.charttext{fill:var(--muted);font-size:11px}.chartgrid{stroke:var(--line)}[hidden]{display:none!important}
@media(max-width:1100px){.workspace{padding:0 25px}.sidebar{width:205px}.workspace{margin-left:205px}.info{grid-template-columns:repeat(2,1fr)}.measures{grid-template-columns:repeat(2,1fr)}.heading{align-items:flex-start}.heading .actions{justify-content:flex-end}}@media(max-width:760px){.sidebar{position:static;width:auto;padding:15px 18px;border-bottom:1px solid var(--line)}.sidebar .logo .brand{width:35px;height:35px}.sidebar nav{display:flex;gap:5px;margin-top:13px;flex-wrap:wrap}.navitem{padding:9px 8px;margin:0;font-size:12px}.aside-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:8px}.aside-bottom form{margin:0}.workspace{margin:0;padding:0 16px}.top{margin-bottom:25px;padding:16px 0;font-size:8px}.heading{flex-direction:column;gap:15px}h1{font-size:28px}.card{padding:19px}.stats{gap:8px}.stats>div{padding:13px 10px}.stats strong{font-size:23px}.stats span{font-size:10px}.grid,.columns,.historygrid{grid-template-columns:1fr}.measures{grid-template-columns:repeat(2,1fr);column-gap:12px}.toolbar{flex-direction:column}.toolbar select{width:100%}.login{grid-template-columns:1fr}.welcome{padding:30px;min-height:260px}.welcome .brand{margin-bottom:20px}.welcome h1{font-size:33px}.welcome .secure{display:none}.loginbox{padding:30px}.sectionhead{flex-wrap:wrap}.actions{gap:9px}.primary,.secondary{padding:10px 14px}footer span{display:none}}
@media print{body{background:#fff;color:#111;font-size:11px}.no-print,.sidebar,.top,footer,.weightchart{display:none!important}.workspace{margin:0;padding:0;max-width:none}.heading{margin:0 0 15px}.heading h1{font-size:23px}.card{box-shadow:none;border:1px solid #ccc;border-radius:0;padding:15px;margin-bottom:15px}.tablewrap{overflow:visible}table{white-space:normal;font-size:10px}th,td{padding:5px;border-color:#ccc}.historyitem{break-inside:avoid;padding:10px}.info{grid-template-columns:repeat(4,1fr);gap:10px}.historygrid{grid-template-columns:1fr 1fr;gap:10px}.record{break-before:page}.stats strong{font-size:20px}.sectionhead{break-after:avoid}.preserve{color:#111}.print-single .card,.print-single .sectionhead,.print-single .heading+p{display:none}.print-single .record.print-target{display:block;break-before:auto}.print-single .print-target .sectionhead{display:flex}.print-single .print-target .historyitem{display:block}.print-single .print-target .info{display:grid}.print-single .personal{display:none}a{color:#111}@page{size:A4;margin:13mm}}

.recordtabs .secondary{padding:8px 11px;font-size:11px}.recordtabs [aria-pressed="true"]{background:var(--green);color:white}
