:root{--teal:#087f70;--teal-dark:#086355;--navy:#102e31;--ink:#19363b;--muted:#75858b;--line:#e5ecea;--bg:#f3f6f5;--radius:17px;--shadow:0 4px 20px #0d3a2c04;--font:"Inter","Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1.1px;font-weight:700;line-height:1.25}h2{font-size:17px;letter-spacing:-.3px}h3{font-size:15px}p{line-height:1.6}button:disabled{opacity:.55;cursor:wait}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #55cdb3;outline-offset:4px}.muted{color:var(--muted)}.nowrap{white-space:nowrap}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.span-2{grid-column:span 2}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:var(--teal);display:block;margin-bottom:8px}.eyebrow.light{color:#b5e8d3}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:var(--navy);color:#c3d4d0;display:flex;flex-direction:column;padding:31px 17px 0;z-index:50}.brand{display:flex;align-items:center;gap:11px;color:white;font-size:23px;font-weight:750;letter-spacing:-.8px;padding:0 11px}.brand small{display:block;font-size:8px;font-weight:600;letter-spacing:1.7px;color:#8dacaa;margin-top:1px}.brand-mark{width:42px;height:44px;border-radius:13px;background:#1b534d;display:grid;place-items:center;color:#ace8d1}.workspace-label{font-size:9px;font-weight:700;letter-spacing:1.6px;color:#73928e;margin:35px 15px 12px}.sidebar nav>.workspace-label{margin-top:30px}.nav-item{display:flex;align-items:center;gap:13px;padding:12px 15px;margin:4px 0;border-radius:10px;font-size:12px;transition:background .2s,color .2s}.nav-item:hover{background:#1b4243;color:white}.nav-item.active{background:#22534e;color:#d7fae8;font-weight:650}.nav-item.active svg{color:#98e1bc}.nav-indicator{width:5px;height:5px;background:#a8efce;border-radius:50%;margin-left:auto}.sidebar-bottom{margin-top:auto}.sidebar-note{padding:20px 12px;display:flex;gap:10px;font-size:10px;color:#9bb9b3}.sidebar-note small{font-size:9px;color:#759b93}.sidebar-profile{border-top:1px solid #284748;display:flex;align-items:center;gap:10px;padding:19px 7px}.sidebar-profile>div{min-width:0;flex:1}.sidebar-profile strong{display:block;font-size:11px;color:#e3efec;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-profile small{display:block;font-size:10px;color:#83a39b}.sidebar-profile .icon-btn{color:#94b5a9}.avatar{width:33px;height:33px;display:inline-grid;place-items:center;flex-shrink:0;background:#295950;color:#c8ecd8;border-radius:10px;font-size:13px;font-weight:700}.avatar.soft{color:#208370;background:#e5f4ed}.app-shell{margin-left:246px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:77px;background:#fff;border-bottom:1px solid var(--line);padding:0 36px;display:flex;justify-content:space-between;align-items:center;gap:16px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:23px}.breadcrumb{font-size:11px;color:#83918e}.breadcrumb span{margin:0 12px;color:#c2ccca}.topbar-right{font-size:11px;color:#71827c}.date-label,.profile-link{display:flex;gap:8px;align-items:center}.profile-link{color:#436057;background:#f3f7f5;padding:9px 12px;border-radius:9px}.content{padding:31px 36px 20px;max-width:1660px;width:100%;margin:auto auto 0;flex:1}.app-footer{padding:17px 36px;font-size:10px;font-weight:700;color:#84938d}.app-footer span{float:right;font-weight:400}.mobile-menu{display:none!important}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:25px}.page-heading p{font-size:12px;color:var(--muted);margin-top:8px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:9px;font-weight:650;font-size:12px;padding:12px 18px;border:1px solid transparent;border-radius:9px;line-height:1.4;white-space:nowrap;transition:transform .15s,background .15s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--teal);color:white;box-shadow:0 4px 10px #087f7012}.btn-primary:hover{background:var(--teal-dark)}.btn-light{background:#fff;border-color:#dde7e3;color:#406259}.btn-light:hover{background:#f2f8f5}.btn-white{background:#e3f5e9;color:#11634e}.btn-translucent{background:#ffffff0e;border-color:#ffffff2a;color:#e7f7ef}.btn-small{padding:8px 11px;font-size:11px}.btn-full{width:100%;padding:14px}.btn-danger{background:#fff0ed;color:#a53d31;border-color:#f4c8c1}.icon-btn{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;padding:8px;color:#78978b;border-radius:7px}.icon-btn:hover{background:#edf5f1;color:var(--teal)}.text-link{color:var(--teal);font-size:11px;font-weight:650;display:inline-flex;gap:8px;align-items:center}.tag{background:#f1f6f3;color:#658278;font-size:10px;white-space:nowrap;padding:5px 8px;border-radius:6px}.month-picker{display:flex;align-items:center;gap:10px;font-size:10px}.month-picker>label{color:#75837b}.month-picker>div{display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);padding:9px 12px;border-radius:9px;color:#6b897c}.month-picker input{border:0;outline:0;width:125px;color:#3d6154;font-size:12px;background:transparent}
.hero-panel{border-radius:var(--radius);background:linear-gradient(110deg,#0b7568 0%,#0f8573 62%,#249a7c 100%);min-height:194px;display:flex;justify-content:space-between;overflow:hidden;position:relative;margin-bottom:21px;padding:27px 33px;color:#fff}.hero-copy{position:relative;z-index:2}.hero-copy h2{font-size:25px;font-weight:650;letter-spacing:-.8px;margin-bottom:9px}.hero-copy p{color:#cce5d9;font-size:12px;margin-bottom:21px}.hero-art{position:relative;width:245px;margin:-28px -20px -28px 20px;flex-shrink:0;display:grid;place-items:center}.hero-ring{border:1px solid #c7edd222;border-radius:50%;position:absolute}.ring-outer{width:235px;height:235px}.ring-inner{width:175px;height:175px}.hero-drop{height:122px;width:122px;background:#c1efdd16;border:1px solid #d8f7e637;border-radius:35px;display:grid;place-items:center;color:#ccf6e2;transform:rotate(-9deg);box-shadow:0 15px 35px #063d342a}.hero-drop svg{transform:rotate(9deg)}.floating-check,.floating-heart{position:absolute;width:42px;height:42px;background:#d9f6e8;border-radius:13px;color:#1a8e6e;display:grid;place-items:center;box-shadow:0 7px 30px #003d2926}.floating-check{right:25px;top:44px;transform:rotate(8deg)}.floating-heart{bottom:28px;left:13px;transform:rotate(-9deg)}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.metric-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:19px 21px;box-shadow:var(--shadow)}.metric-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}.metric-top>span:first-child,.metric-card>span{font-size:11px;color:#71857b;font-weight:500}.metric-card>strong{display:block;font-size:32px;font-weight:700;letter-spacing:-1px;margin:3px 0 2px}.metric-card em{font-size:20px;font-style:normal;margin-left:3px}.metric-card>small{color:#94a199;font-size:10px;display:block}.metric-icon{display:inline-grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:10px}.teal{color:#258a70;background:#e5f5ed}.blue{color:#4c88b8;background:#eaf2fa}.amber{color:#c9983d;background:#fcf4e3}.purple{color:#8b76b0;background:#f1eef9}.gray{color:#abb7b1;background:#edf1ef}.dashboard-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:21px;margin-bottom:22px}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:22px;overflow:hidden}.dashboard-grid>.card{margin:0}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px 24px 18px}.card-heading p{font-size:11px;color:var(--muted);margin-top:4px}.card-heading>svg{color:#9aafa3}.supply-grid{padding:0 24px 16px;display:grid;grid-template-columns:1fr 1fr;gap:19px 28px}.supply-line:last-child{grid-column:span 2}.supply-line>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.supply-line span{font-size:10px;color:#637f74}.supply-line strong{font-size:13px;white-space:nowrap}.supply-line strong small{color:#91a199;font-weight:500;font-size:10px}.supply-line>small{font-size:9px;color:#8e9f96}.progress{height:5px;background:#edf2ee;border-radius:6px;overflow:hidden}.progress>span{display:block;height:100%;background:#62b79b;border-radius:6px}.card-footnote{padding:11px 24px;font-size:9px;border-top:1px solid #f0f4f1;color:#93a399}.status-overview{display:flex;align-items:center;gap:25px;padding:10px 25px 26px}.donut{width:138px;height:138px;flex-shrink:0;border-radius:50%;background:conic-gradient(#30a58b calc(var(--percentage)*1%),#eef4f0 0);display:grid;place-items:center;position:relative}.donut:before{content:"";inset:13px;position:absolute;background:white;border-radius:50%}.donut>div{position:relative;text-align:center}.donut strong{font-size:28px;letter-spacing:-1px;display:block}.donut span{font-size:10px;color:#99a69d}.status-legend{flex:1;font-size:11px}.status-legend>div{display:flex;gap:8px;align-items:center;margin:13px 0}.status-legend strong{margin-left:auto;font-size:12px}.legend-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.legend-dot.teal{background:#30a58b}.legend-dot.blue{background:#7ba5ce}.legend-dot.amber{background:#dfba63}.legend-dot.gray{background:#bdc8c2}.bar-chart{display:flex;align-items:flex-end;justify-content:space-between;padding:0 28px 24px;height:207px;gap:20px}.chart-column{flex:1;text-align:center;display:flex;flex-direction:column;height:100%;justify-content:flex-end}.bar-track{height:121px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line)}.bar{width:100%;max-width:40px;background:#d6eade;border-radius:6px 6px 0 0;min-height:4px}.bar.selected{background:#4d9f83}.bar-value{font-size:10px;font-weight:650;color:#6b8c7a;margin:4px}.bar-label{font-size:9px;color:#779181;margin-top:9px}.bar-label small{display:block;font-size:8px;color:#a0afa5}.locality-list{padding:0 24px 18px}.locality-item{display:flex;align-items:center;gap:11px;font-size:11px;padding:8px 0}.locality-symbol{width:29px;height:29px;display:grid;place-items:center;background:#f0f6f2;color:#87a590;border-radius:8px}.locality-item strong{margin-left:auto;font-size:12px}.recent-card .card-heading{padding-bottom:16px}
.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}thead{background:#f8faf8;color:#83958a}th{font-size:9px;font-weight:700;letter-spacing:.3px;padding:13px 18px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:15px 18px;border-bottom:1px solid #edf2ee;vertical-align:middle;color:#4f6a5e}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcfb}td strong{font-size:11px;font-weight:650;color:#355a49}.cell-sub{display:block;color:#90a096;font-size:9px;margin-top:3px}.patient-name{display:flex;gap:10px;align-items:center;min-width:210px}.patient-name strong{display:block}.patient-name small{display:block;color:#98a69d;font-size:9px;margin-top:2px}.patient-name:hover strong{color:var(--teal)}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:4px 8px;font-weight:650;font-size:9px;white-space:nowrap}.badge-dot{width:5px;height:5px;border-radius:50%;background:currentColor}.badge.complete{background:#e8f5ed;color:#42966d}.badge.pending{background:#fbf2df;color:#b98b31}.badge.partial{background:#eaf1f9;color:#5b8db3}.badge.no_plan{background:#eef2ef;color:#899b8e}.badge.cancelled{background:#fbeae7;color:#b26d62}.filters{display:flex;align-items:center;gap:12px;padding:20px 23px;border-bottom:1px solid var(--line)}.filters>.input{max-width:190px}.filters>.input[type=month]{max-width:165px}.search-input{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:10px 13px;flex:1;min-width:170px;color:#8aaa98}.search-input input{width:100%;border:0;outline:0;font-size:11px;min-width:0;background:transparent}.search-input:focus-within{border-color:#6abb9f;box-shadow:0 0 0 3px #0c896c0b}.pagination{display:flex;justify-content:space-between;align-items:center;padding:16px 23px;border-top:1px solid var(--line);color:#94a397;font-size:10px}.empty{text-align:center;padding:40px 20px}.empty-icon{display:inline-grid;place-items:center;width:63px;height:63px;border-radius:20px;background:#edf6ef;color:#8bb19b;margin-bottom:15px}.empty h3{font-size:14px;margin-bottom:6px}.empty p{font-size:11px;color:#93a299}.notice{display:flex;align-items:center;gap:13px;padding:16px 19px;border-radius:11px;border:1px solid transparent;margin:20px 0}.notice>div{flex:1}.notice strong{font-size:11px}.notice p{font-size:10px;margin-top:3px}.notice.warning{background:#fdf6e9;border-color:#f3e9d1;color:#997637}.notice.info{background:#eef7f3;border-color:#dfeee6;color:#558570}.notice.danger{background:#fdf0ec;border-color:#f5d9d0;color:#b46654}.flash{display:flex;gap:10px;align-items:center;padding:13px 17px;border-radius:10px;margin-bottom:20px;border:1px solid #d5eadf;background:#eaf5ef;color:#348369;font-size:12px}.flash.error{border-color:#efcfc8;background:#fff1ed;color:#b26957}.flash.info{background:#f0f5fa;color:#5c7e97;border-color:#dce6ec}.import-note{font-size:10px;margin-top:15px}
.form-card{padding:26px 29px}.section-title{display:flex;gap:14px;align-items:center;margin-bottom:26px}.section-title p{font-size:11px;color:var(--muted);margin-top:4px}.step{width:35px;height:35px;border-radius:11px;background:#eaf5ed;color:#5b9e7b;display:grid;place-items:center;font-weight:700;font-size:11px;flex-shrink:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px 26px}.field{display:flex;flex-direction:column;gap:7px}.field-label{font-size:11px;color:#557364;font-weight:650}.input{display:block;width:100%;padding:11px 13px;background:#fff;border:1px solid #dfe8e1;border-radius:8px;color:#375e4a;font-size:12px;line-height:1.4;min-width:0}.input:focus{outline:0;border-color:#64b893;box-shadow:0 0 0 3px #60b89512}.input::placeholder{color:#a3b1a7}textarea.input{resize:vertical;min-height:78px}.hint{color:#90a095;font-size:10px;display:block;line-height:1.6}.field.invalid .input{border-color:#d99c89}.field-error{font-size:10px;color:#b7614b}.form-stack{display:flex;flex-direction:column;gap:21px}.narrow{max-width:660px}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:2px 0 20px}.medication-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:19px}.medication-panel{padding:21px;background:#f9fcfa;border:1px solid #e4eee6;border-radius:12px;display:flex;flex-direction:column;gap:17px}.medication-title{display:flex;gap:11px;align-items:center;padding-bottom:5px}.medication-title span:not(.metric-icon){font-size:10px;color:#8da096}.medication-title h3{font-size:14px}.plan-month{max-width:350px;margin-bottom:23px}.advanced{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}.advanced summary{cursor:pointer;color:#809887;font-size:11px;margin-bottom:15px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:11px;color:#6d8978}.checkbox-label input{accent-color:var(--teal)}.advanced>.field{max-width:650px;margin-top:15px}.balance-info{margin-top:21px;background:#f1f8f3;border:1px solid #e2eee5;border-radius:10px;padding:15px;font-size:11px;display:flex;flex-wrap:wrap;gap:12px}.balance-info .balance-item{border-right:1px solid #d9e8dd;padding-right:15px;color:#6b8b75}.balance-item strong{display:block;color:#366747;font-size:14px;margin-top:4px}.detail-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:22px}.detail-grid .card-heading{padding:0 0 20px}.definition-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 25px;margin:15px 0}.definition-grid div{min-width:0}.definition-grid dt{font-size:10px;color:#95a398;margin-bottom:4px}.definition-grid dd{margin:0;font-size:12px;color:#4b6d56;overflow-wrap:anywhere}.inline-month{display:flex;gap:10px;margin-bottom:14px}.inline-month input{max-width:180px}.compact-table td,.compact-table th{padding:12px 7px}.compact-table td:first-child{font-size:10px}.receipt{padding:34px 42px;max-width:1000px;margin-left:auto;margin-right:auto}.receipt-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #e5eee6;padding-bottom:22px;margin-bottom:27px;gap:20px}.receipt-brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:700;color:var(--teal)}.receipt-header p{font-size:10px;color:#8da192;margin-top:5px}.receipt-number{text-align:right}.receipt-number strong{display:block;font-size:11px;color:#749680}.receipt-number span{font-size:12px;color:#587b63}.receipt-table{margin:28px 0;border:1px solid var(--line)}.receipt-table th{background:#edf6ee}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:45px;padding-top:65px;margin-top:20px;font-size:10px;color:#78927c;text-align:center}.signature-grid>div{border-top:1px solid #b2c8b6;padding-top:11px}.receipt-foot{font-size:9px;color:#a0afa1;margin-top:28px;text-align:center}.cancel-panel{max-width:1000px;margin:auto auto 22px;display:grid;grid-template-columns:1fr 1.2fr;gap:24px}.cancel-panel .muted{font-size:11px;margin-top:7px}.cancel-panel form{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%}.cancel-panel .field{width:100%}
.role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:23px}.role-card{display:flex;gap:13px;padding:21px;background:#fff;border:1px solid var(--line);border-radius:12px}.role-card h3{font-size:13px;margin-bottom:5px}.role-card p{font-size:10px;color:#899b8e}.report-filters{display:flex;align-items:center;gap:12px;padding:20px 22px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.report-filters>.input{flex:1;min-width:155px}.report-filters>div{display:flex;align-items:center;gap:8px;color:#7c9a82}.report-filters>div .input{max-width:175px}.report-title{text-align:center;padding:25px}.report-title>span{display:block;color:#8ea796;font-size:11px;font-weight:700;letter-spacing:1px;margin-bottom:10px}.report-title h2{font-size:15px}.report-title p{font-size:10px;color:#7d9785;margin-top:8px}.spreadsheet-table{min-width:1160px;font-size:10px}.spreadsheet-table th,.spreadsheet-table td{border:1px solid #dfe8e1;text-align:center;padding:10px 8px}.spreadsheet-table thead{background:#e9f3ed;color:#688c73}.spreadsheet-table th{font-size:9px;white-space:normal;letter-spacing:0}.spreadsheet-table td:first-child{text-align:left;min-width:210px;font-weight:650}.spreadsheet-table td:nth-child(4){text-align:left;min-width:125px}.spreadsheet-table tfoot{background:#e9f3ed;color:#527b5d}.spreadsheet-table tfoot th:first-child{text-align:left;padding:15px}.extra-needles{display:block;border-top:1px solid #dfe8e1;padding-top:5px;margin-top:5px}.report-notes{font-size:10px;color:#8a9d8e;line-height:1.7;padding:18px 22px}.upload-form{max-width:700px;margin:auto;display:flex;flex-direction:column;gap:22px}.upload-zone{text-align:center;background:#f7fbf8;border:2px dashed #d6e8d8;border-radius:13px;padding:30px 20px}.upload-zone h2{font-size:16px;margin-bottom:6px}.upload-zone p{font-size:11px;color:#8fa894;margin-bottom:20px}.upload-zone input{font-size:11px;max-width:100%}.upload-zone input::file-selector-button{font:inherit;border:1px solid #caddce;background:white;padding:10px 15px;border-radius:8px;margin-right:12px;color:#698e70;cursor:pointer}.preview-table{max-height:620px}.preview-table thead{position:sticky;top:0;z-index:1;background:#f2f8f3}.audit-json{white-space:pre-wrap;overflow-wrap:anywhere;max-width:450px;max-height:300px;overflow:auto;font-size:10px;background:#f7faf7;padding:12px;color:#748d78}.error-page{display:flex;align-items:center;flex-direction:column;padding:80px 20px;gap:18px;text-align:center}.error-page>strong{font-size:70px;line-height:1;color:#c3dace}.error-page h1{font-size:22px;max-width:550px}.guest-shell{min-height:100vh}.guest-shell>.flash{position:fixed;top:15px;left:50%;transform:translateX(-50%);z-index:80;box-shadow:0 3px 20px #05270c20;min-width:300px}.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:radial-gradient(circle at 0 100%,#235c48 0,#113e39 45%,#0f2e31 100%);color:white;padding:45px 9%;display:flex;flex-direction:column;overflow:hidden}.login-story .brand{padding:0}.story-content{margin:auto 0;padding:60px 0}.story-content h1{font-size:43px;line-height:1.18;letter-spacing:-1.6px;margin-top:15px}.story-content>p{font-size:14px;color:#9abeb0;max-width:390px;margin-top:24px}.story-visual{margin-top:46px;max-width:390px;display:flex;flex-direction:column;gap:11px}.visual-line{display:flex;align-items:center;gap:15px;padding:15px 17px;background:#94d6ad08;border:1px solid #97d2b01a;border-radius:13px}.visual-line>span{display:grid;place-items:center;width:40px;height:40px;background:#a5e4bd0e;border-radius:11px;color:#93cbaa}.visual-line>div{flex:1}.visual-line strong{display:block;font-size:12px;font-weight:550;color:#c7e3d4}.visual-line small{font-size:10px;color:#86ad96}.visual-line>svg{color:#7fc39a}.story-footer{color:#668f79;font-size:10px}.login-form-wrap{background:#fafcfb;display:flex;align-items:center;justify-content:center;padding:70px 45px}.login-form{width:100%;max-width:340px}.login-symbol{display:grid;place-items:center;width:54px;height:54px;background:#e6f3e9;color:#71a284;border:1px solid #d9eadf;border-radius:16px;margin-bottom:26px}.login-form h2{font-size:28px;letter-spacing:-.9px}.login-form>.muted{font-size:12px;margin:8px 0 30px}.login-form .input{font-size:13px;padding:13px}.login-help{display:flex;align-items:center;gap:13px;border-top:1px solid #e6ede8;padding-top:26px;margin-top:32px;color:#95aa9d}.login-help p{font-size:10px;line-height:1.7;color:#92a398}
.report-filters>.input[name=mode]{min-width:220px}.spreadsheet-table{min-width:1000px}
@page receipt{size:A4 portrait;margin:15mm}
@media print{.app-shell{min-height:0!important;display:block!important}.content{flex:none!important;margin:0!important}.receipt{page:receipt}.signature-grid,.receipt-foot{break-inside:avoid}}
@media(min-width:1600px){.content{padding-top:40px}.hero-panel{min-height:220px}.hero-art{width:300px}.metric-card{padding:24px}.metric-card>strong{font-size:38px}.dashboard-grid{grid-template-columns:1.55fr 1fr}.status-overview{justify-content:center;gap:38px}.donut{width:158px;height:158px}}
@media(max-width:1200px){.sidebar{width:220px}.app-shell{margin-left:220px}.content{padding:25px 25px}.topbar{padding:0 25px}.hero-copy h2{font-size:22px}.hero-art{width:185px}.metric-grid{gap:11px}.metric-card{padding:17px 15px}.metric-top>span:first-child{font-size:10px}.metric-icon{width:32px;height:32px}.dashboard-grid{grid-template-columns:1.1fr 1fr}.status-overview{gap:16px;padding:15px}.donut{width:115px;height:115px}.card-heading{padding:20px}.supply-grid{padding:0 20px 16px;gap:18px}.filters{flex-wrap:wrap}.filters .search-input{flex-basis:100%}.medication-panel{padding:15px}.detail-grid{grid-template-columns:1fr}.patient-name{min-width:190px}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:246px}.menu-open .sidebar{transform:translateX(0);box-shadow:0 0 0 100vmax #001b1744}.app-shell{margin-left:0}.mobile-menu{display:inline-flex!important}.topbar{height:66px}.content{padding:22px}.breadcrumb{font-size:10px}.topbar-right .date-label{display:none}.hero-panel{padding:25px}.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr 1fr}.card-heading h2{font-size:15px}.status-overview{flex-direction:column;align-items:stretch;padding:0 20px 20px}.donut{margin:auto}.hero-art{width:175px}.month-picker>label{display:none}.month-picker>.btn{display:none}.medication-grid{grid-template-columns:1fr}.role-grid{grid-template-columns:1fr}.login-story{padding:38px 10%}.story-content h1{font-size:34px}.story-content>p{font-size:12px}.story-visual{margin-top:30px}.login-form-wrap{padding:55px 30px}.visual-line{padding:12px}.login-help p{font-size:9px}}
@media(max-width:600px){h1{font-size:25px}.page-heading{align-items:flex-start;flex-direction:column;gap:17px}.topbar{padding:0 16px}.topbar-left{gap:9px}.topbar-right{gap:5px}.breadcrumb{font-size:9px}.breadcrumb span{margin:0 7px}.profile-link{padding:8px}.profile-link span{display:none}.content{padding:22px 16px}.hero-copy h2{font-size:21px;max-width:220px}.hero-copy p{max-width:235px;font-size:11px}.hero-panel{padding:25px 20px}.hero-art{position:absolute;right:-70px;top:20px;opacity:.25;pointer-events:none}.hero-copy .actions{gap:8px}.hero-copy .btn{font-size:10px;padding:10px}.metric-card{padding:16px}.metric-top{align-items:flex-start;gap:8px}.metric-card>strong{font-size:29px}.metric-top>span:first-child{font-size:9px}.metric-card>small{font-size:9px}.metric-icon{width:28px;height:28px;border-radius:8px}.metric-icon svg{width:17px;height:17px}.dashboard-grid{grid-template-columns:1fr}.status-overview{flex-direction:row;align-items:center;gap:27px;padding:5px 25px 25px}.donut{margin:0}.form-card{padding:23px 19px}.form-grid{grid-template-columns:1fr;gap:18px}.span-2{grid-column:span 1}.form-grid>.span-2{grid-column:span 1}.definition-grid{grid-template-columns:1fr 1fr;gap:17px}.definition-grid .span-2{grid-column:span 2}.filters{padding:17px;gap:10px}.filters>.input{max-width:none;flex:1;min-width:130px}.pagination{padding:15px;gap:10px;font-size:9px}.notice{align-items:flex-start;flex-wrap:wrap}.notice>.text-link{margin-left:33px}.app-footer{padding:17px}.app-footer span{float:none;display:block;margin-top:3px}.card-heading{padding:20px 18px}.receipt{padding:24px 20px}.receipt-header{flex-direction:column;align-items:flex-start}.receipt-number{text-align:left}.signature-grid{gap:20px;font-size:9px}.cancel-panel{grid-template-columns:1fr}.report-filters{padding:15px}.report-filters>.input{min-width:100%;flex:1}.report-filters>div{width:100%}.report-filters>div .input{max-width:none}.report-title h2{font-size:13px}.report-title p{font-size:9px}.login-layout{display:flex;flex-direction:column}.login-story{padding:30px 28px}.story-content{padding:35px 0 15px}.story-content h1{font-size:32px;max-width:400px}.story-content>p{font-size:12px;margin-top:15px}.story-visual,.story-footer{display:none}.login-story .brand{font-size:20px}.login-story .brand-mark{width:35px;height:37px}.login-form-wrap{padding:42px 28px 55px}.login-form h2{font-size:25px}.login-form{max-width:450px}.login-symbol{display:none}.form-actions .btn{font-size:11px}}
@media print{@page{size:A4 landscape;margin:10mm}body{background:#fff;color:#000;font-size:10px}.sidebar,.topbar,.app-footer,.no-print,.flash{display:none!important}.app-shell{margin:0}.content{padding:0;max-width:none}.card{border:0;box-shadow:none;border-radius:0;margin:0}.table-wrap{overflow:visible}.spreadsheet-table{min-width:0;width:100%;font-size:8px}.spreadsheet-table th,.spreadsheet-table td{padding:5px 3px;font-size:8px;print-color-adjust:exact}.spreadsheet-table td:first-child{min-width:0;width:21%}.spreadsheet-table td:nth-child(4){min-width:0;width:11%}.spreadsheet-table th{white-space:normal}.spreadsheet-table td:nth-child(2){white-space:nowrap}.spreadsheet-table thead{display:table-header-group}.spreadsheet-table tfoot{display:table-row-group}.spreadsheet-table tr{break-inside:avoid}.report-title{padding:0 0 15px}.report-title h2{font-size:14px}.report-notes{font-size:8px;padding:12px 0}.receipt{padding:0;max-width:none}.receipt-header{padding-bottom:15px}.receipt-table{font-size:12px}.receipt-table td,.receipt-table th{font-size:11px}.receipt .definition-grid dd{font-size:12px}.signature-grid{padding-top:60px}.receipt-foot{font-size:9px}.cancel-panel{display:none}.receipt .notice{print-color-adjust:exact}.receipt .span-2{grid-column:span 2}}

/* Paleta do Excel: identificação branca, NPH cinza azulado, Regular cinza,
   agulhas verde claro. Todo texto da tabela é preto, sem depender da cor. */
.report-header{display:grid;grid-template-columns:140px minmax(0,1fr) 140px;align-items:center;gap:16px;padding:24px 0}
.report-header .report-title{padding:0;color:#000}.report-title h2,.report-title p,.report-title span,.report-notes{color:#000}
.report-logo img{display:block;max-width:140px;max-height:80px;object-fit:contain;margin:auto}
.spreadsheet-table{color:#000;font-size:12px}.spreadsheet-table th,.spreadsheet-table td{color:#000;border:1px solid #666;background:#fff}
.spreadsheet-table .report-nph,.spreadsheet-table tbody td:nth-child(n+5):nth-child(-n+7),.spreadsheet-table tfoot th:nth-child(n+2):nth-child(-n+4){background:#D6DCE4}
.spreadsheet-table .report-regular,.spreadsheet-table tbody td:nth-child(n+8):nth-child(-n+10),.spreadsheet-table tfoot th:nth-child(n+5):nth-child(-n+7){background:#C9C9C9}
.spreadsheet-table .report-needles,.spreadsheet-table tbody td:nth-child(11),.spreadsheet-table tfoot th:last-child{background:#E2EFDA}
.spreadsheet-table tfoot th:first-child{background:#000;color:#fff}.extra-needles{color:#000;border-color:#666}.report-notes{font-size:12px}
.branding-fields{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:24px 0}.branding-fields .checkbox-label{margin-top:16px}.logo-preview{height:110px;background:#f4f6fa;border:1px solid #c5ccd8;display:flex;align-items:center;justify-content:center;margin-bottom:16px}.logo-preview img{max-height:90px;max-width:240px;object-fit:contain}
@media(max-width:700px){.branding-fields{grid-template-columns:1fr}.report-header{grid-template-columns:65px minmax(0,1fr) 65px;gap:8px}.report-logo img{max-width:65px;max-height:55px}}
@media print{.report-header{grid-template-columns:110px minmax(0,1fr) 110px;padding:8px 0 16px;break-inside:avoid}.report-logo img{max-width:110px;max-height:65px}.spreadsheet-table{font-size:9.5px}.spreadsheet-table th{font-size:9.5px}.spreadsheet-table td,.spreadsheet-table th{color:#000;border-color:#555;print-color-adjust:exact;-webkit-print-color-adjust:exact}.spreadsheet-table tfoot th:first-child{color:#fff}.report-notes{font-size:9px}.report-title h2{color:#000;font-size:15px}.report-title p,.report-title span{color:#000}}

.input[readonly]{background:#eef2f6;color:#172b3a;cursor:default}.calculation-summary{min-height:40px;padding:10px;background:#eaf0fa;color:#172b3a;font-weight:600;border-radius:8px}.btn-danger{background:#a82830;color:#fff;border:1px solid #a82830}.btn-danger:hover{background:#7d1d23;color:#fff}

.presentation-actions{flex-wrap:wrap;margin-bottom:14px}.presentation-actions[hidden]{display:none}
/* Edição na conferência sem abandonar a lista. */
.patient-edit-link{color:#153f72;text-decoration:underline;text-underline-offset:3px}
.patient-edit-link .cell-sub{color:#526477;text-decoration:none}
.patient-editor-dialog{width:min(1120px,96vw);max-width:96vw;max-height:94vh;padding:0;border:0;border-radius:16px;background:#f3f6f7;color:#163137;box-shadow:0 24px 80px #102b4766}
.patient-editor-dialog::backdrop{background:#102332b3}
.patient-modal-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 24px;background:#fff;border-bottom:1px solid #ccd6df}
#patient-editor-content{padding:24px}.patient-editor-dialog .page-heading{gap:12px}.patient-editor-dialog .page-heading h1{font-size:25px}.patient-modal-open{overflow:hidden}.modal-notice{padding:18px;background:#fff;border:1px solid #c5d0df;border-radius:10px;color:#152f45}.patient-editor-dialog .form-actions{padding-bottom:12px}
@media(max-width:700px){.patient-editor-dialog{width:98vw;max-width:98vw;max-height:96vh;border-radius:10px}#patient-editor-content{padding:12px}.patient-modal-toolbar{padding:12px}.patient-editor-dialog .page-heading{align-items:flex-start}.patient-editor-dialog .page-heading h1{font-size:22px}}

/* Transferência de dados e backup */
.data-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:24px}.data-tools-grid>.card{margin-bottom:0;display:flex;flex-direction:column;align-items:flex-start;gap:17px;min-width:0}.data-tools-grid .empty-icon{margin:0;width:49px;height:49px}.data-tools-grid .notice{margin:0;width:100%}.data-tools-grid .input{max-width:100%}.data-counts{width:100%;margin:17px 0;display:grid;gap:0}.data-counts>div{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:11px 0}.data-counts dt{font-size:12px;color:#526a70}.data-counts dd{margin:0;font-size:17px;font-weight:700}.data-import-form{display:flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%;margin-top:18px}.data-import-form>.field{width:100%}.data-import-form input[type=file]{font-size:12px;width:100%}@media(max-width:900px){.data-tools-grid{grid-template-columns:1fr}}
.sidebar{overflow-y:auto}.sidebar>.brand,.sidebar>.workspace-label,.sidebar>nav,.sidebar>.sidebar-bottom{flex-shrink:0}

/* Lotes, validade e programação de estoque */
.stock-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:25px}.stock-metrics .metric-card{padding:20px 16px}.stock-metrics .metric-card>strong{font-size:30px}.stock-metrics .metric-top>span:first-child{font-size:11px;max-width:120px}.stock-metrics .metric-card>small{display:block;margin-top:5px}.stock-alerts{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}.stock-config{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin-top:20px}.stock-config>.field{max-width:380px;width:100%}.badge.stock-expired{background:#fff0ec;color:#a12320}.badge.stock-soon{background:#fff4d7;color:#785008}.badge.stock-valid{background:#e4f4eb;color:#165842}.badge.stock-empty{background:#edf1f5;color:#52616b}.stock-shortage,.stock-delta.negative{color:#a12320;font-weight:700}.stock-delta{color:#17624e;font-weight:700}.stock-dashboard-alert .card-heading h2{display:flex;gap:10px;align-items:center}.stock-alert-body{padding:0 24px 20px}.stock-expiry-line{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.stock-report-heading{padding:24px 22px 12px}.stock-report .report-notes{color:#465963}.stock-report-table td{font-size:11px;color:#19363b;overflow-wrap:anywhere}.stock-report-table th{white-space:normal}.receipt-stock{margin:20px 0}.receipt-stock h3{margin-bottom:10px}#patient-form [name=name],#patient-form [name=address],#patient-form [name=phone],#patient-form [name=notes]{text-transform:uppercase}
@media(max-width:1200px){.stock-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.stock-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-expiry-line{flex-direction:column;gap:4px}.stock-dashboard-alert .card-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.stock-report .report-filters label{width:100%}}
@media print{.stock-report-heading{padding:15px 0 8px}.stock-report-table{width:100%;min-width:0;table-layout:fixed}.stock-report-table td,.stock-report-table th{font-size:8px;padding:5px 4px;color:#000;border:1px solid #555;white-space:normal;overflow-wrap:anywhere}.stock-report-table thead{display:table-header-group}.stock-report-table tr{break-inside:avoid}.stock-report .table-wrap{overflow:visible}.stock-report .report-notes{font-size:8px;padding:5px 0 12px;color:#000}.stock-report .cell-sub{font-size:7px;color:#222}.receipt-stock td,.receipt-stock th{font-size:9px;padding:6px}.stock-report .report-header{break-inside:avoid}}
