.stellen-app{--navy:#082b54;--blue:#003d6f;--ink:#10213d;--muted:#60708b;--line:#dfe5ee;--soft:#f5f7fb;--green:#118b50;--red:#b42318;position:relative;left:50%;display:grid;grid-template-columns:240px minmax(0,1fr);width:min(1600px,calc(100vw - 48px));max-width:none;min-height:760px;margin:24px 0;transform:translateX(-50%);background:#f8f9fc;color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border-radius:18px;overflow:hidden;box-shadow:0 14px 45px rgba(10,35,70,.08)}
.stellen-app *{box-sizing:border-box}.stellen-sidebar{display:flex;flex-direction:column;padding:20px 12px;background:linear-gradient(180deg,#003d6f,#002d52);color:#fff}.stellen-sidebar nav{display:grid;gap:8px}.stellen-sidebar a{display:flex;align-items:center;gap:10px;padding:13px 14px;border-radius:9px;color:#fff;text-decoration:none;font-weight:650}.stellen-sidebar a:hover,.stellen-sidebar a.is-active{background:rgba(255,255,255,.15);color:#fff}.stellen-sidebar-meta{display:grid;gap:3px;margin-top:auto;padding:18px 14px 2px;color:rgba(255,255,255,.68);font-size:11px;line-height:1.35}.stellen-main{min-width:0;padding:34px}.stellen-page-head,.stellen-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.stellen-page-head h1{margin:4px 0 0;font-size:34px}.stellen-page-head p,.stellen-section-head p{margin:4px 0;color:var(--muted)}.stellen-eyebrow{margin:0!important;color:var(--blue)!important;text-transform:uppercase;font-size:12px;font-weight:800;letter-spacing:.12em}.stellen-back{color:var(--blue);text-decoration:none;font-weight:650}.stellen-head-actions,.stellen-card-actions,.stellen-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stellen-inline-form{display:inline-flex;margin:0}.stellen-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border:1px solid var(--blue);border-radius:8px;background:var(--blue);color:#fff!important;text-decoration:none;font:inherit;font-weight:700;cursor:pointer}.stellen-button:hover{filter:brightness(.94)}.stellen-button.is-secondary{background:#fff;color:var(--blue)!important}.stellen-link{padding:0;border:0;background:none;color:var(--blue);font:inherit;font-weight:650;text-decoration:none;cursor:pointer}.stellen-link.is-danger{color:var(--red)}
.stellen-card,.stellen-panel,.stellen-table-wrap,.stellen-filter,.stellen-process-meta,.stellen-summary>div{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(20,43,80,.04)}.stellen-panel{margin:0 0 22px;padding:22px}.stellen-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px;padding:15px}.stellen-filter label,.stellen-grid-form label,.stellen-pack-fields label,.stellen-drug-form label,.stellen-pack-form label,.stellen-upload label{display:grid;gap:6px;color:#34435a;font-size:13px;font-weight:650}.stellen-app input,.stellen-app select,.stellen-app textarea{width:100%;min-height:40px;padding:8px 10px;border:1px solid #bdc8d8;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.stellen-app input:focus,.stellen-app select:focus,.stellen-app textarea:focus{outline:3px solid rgba(11,98,246,.12);border-color:var(--blue)}.stellen-grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.stellen-span-2{grid-column:1/-1}.stellen-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;grid-column:1/-1;margin-top:14px}.stellen-help{color:var(--muted)}
.stellen-tabs{display:flex;gap:6px;margin-bottom:18px;border-bottom:1px solid var(--line)}.stellen-tabs button,.stellen-tabs a{padding:11px 14px;border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);font:inherit;font-weight:700;text-decoration:none;cursor:pointer}.stellen-tabs .is-active{border-bottom-color:var(--blue);color:var(--blue)}.stellen-table-wrap{overflow:auto}.stellen-table{width:100%;border-collapse:collapse;min-width:760px}.stellen-table th,.stellen-table td{padding:14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}.stellen-table th{background:#fbfcfe;color:#4b5d76;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.stellen-table tr:last-child td{border-bottom:0}.stellen-status{display:inline-flex;padding:4px 9px;border-radius:999px;background:#eef1f5;color:#536176;font-size:12px;font-weight:750}.stellen-status.is-set{background:#e8f8ef;color:var(--green)}.stellen-status.is-open{background:#fff1ef;color:var(--red)}.stellen-notice{margin-bottom:18px;padding:12px 15px;border-radius:8px;background:#eaf8f0;color:#08733e;font-weight:650}.stellen-notice.is-error{background:#fff0ee;color:var(--red)}
.stellen-patient-card{display:flex;align-items:center;gap:16px;margin-bottom:28px;padding:18px}.stellen-avatar-large{width:72px;height:72px;border-radius:50%;object-fit:cover}.stellen-drug-list{display:grid;gap:14px}.stellen-drug{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 4px 15px rgba(20,43,80,.04);overflow:hidden}.stellen-drug>summary{display:grid;grid-template-columns:minmax(150px,1.25fr) 3fr minmax(90px,.8fr) auto;gap:16px;align-items:center;padding:17px;list-style:none;cursor:pointer}.stellen-drug>summary::-webkit-details-marker{display:none}.stellen-drug-name{display:grid;gap:3px}.stellen-drug-name strong{font-size:18px}.stellen-drug-name span,.stellen-valid-days small{color:var(--muted)}.stellen-day-schedule{display:grid;grid-template-columns:repeat(5,minmax(70px,1fr));gap:7px}.stellen-day-schedule>div{display:grid;min-height:72px;padding:8px;border-radius:8px;background:var(--soft);text-align:center}.stellen-day-schedule small,.stellen-day-schedule span{font-size:10px;color:var(--muted)}.stellen-day-schedule strong{font-size:18px}.stellen-valid-days{display:grid;gap:5px}.stellen-edit-label{color:var(--blue);font-weight:700}.stellen-drug-body{padding:22px;border-top:1px solid var(--line);background:#fcfdff}.stellen-drug-body h3{margin:0 0 14px}.stellen-schedule-edit{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin:16px 0}.stellen-schedule-edit>div{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff}.stellen-days{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:8px}.stellen-days label{display:flex!important;grid-template-columns:auto 1fr;align-items:center;gap:5px}.stellen-days input{width:auto;min-height:auto}.stellen-pack-create{margin:12px 0;padding:18px;border:1px dashed #aab9cd;border-radius:10px;background:#fff}.stellen-pack-create .stellen-scan--embedded{max-width:none;margin:0 0 18px;padding:16px;border-radius:10px;box-shadow:none}.stellen-scan--embedded h4{margin:0 0 4px}.stellen-scan--embedded>p{margin:0 0 8px}.stellen-scan--embedded .stellen-scan__form{margin-top:8px}.stellen-pack-methods{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-bottom:16px}.stellen-pack-methods>div{padding:15px;border-radius:9px;background:var(--soft)}.stellen-pack-methods h4{margin:0 0 4px}.stellen-pack-methods p{margin:0 0 12px;color:var(--muted)}.stellen-pack-status{min-height:22px;color:var(--muted);font-weight:650}.stellen-pack-status.is-error{color:var(--red)}.stellen-pack-list{display:grid;gap:10px}.stellen-pack-card{display:grid;grid-template-columns:minmax(180px,1.2fr) 3fr auto;gap:16px;align-items:end;padding:15px;border:1px solid var(--line);border-radius:9px;background:#fff}.stellen-pack-title>div{display:grid;gap:5px}.stellen-pack-title small{color:var(--muted)}.stellen-pack-fields{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:9px}.stellen-pack-card .stellen-form-actions{margin:0}.stellen-files{margin-top:22px;padding:20px}.stellen-file-list{display:grid;gap:9px}.stellen-file-list>div{display:flex;align-items:center;gap:9px;padding:10px;border-radius:8px;background:var(--soft)}.stellen-upload{display:flex;align-items:end;gap:10px;margin-top:16px}.stellen-empty{padding:30px;border:1px dashed #b9c5d5;border-radius:10px;text-align:center;color:var(--muted)}
.stellen-summary{display:grid;grid-template-columns:repeat(2,minmax(180px,260px));gap:14px;margin-bottom:18px}.stellen-summary>div{display:grid;gap:6px;padding:18px}.stellen-summary small{color:var(--muted)}.stellen-summary strong{font-size:28px}.stellen-pdf{display:inline-grid;place-items:center;padding:4px 6px;border:2px solid #e11919;border-radius:4px;color:#d60000;font-size:10px;font-weight:850}.stellen-pdf.is-large{width:58px;height:68px;font-size:15px}.stellen-process-meta{display:grid;grid-template-columns:auto auto repeat(4,minmax(110px,1fr));gap:18px;align-items:center;padding:22px}.stellen-process-meta>div{display:grid;gap:4px}.stellen-process-meta small{color:var(--muted)}.stellen-total-reports{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.stellen-total-reports .stellen-card{padding:24px}.stellen-total-reports h2{margin:12px 0 4px}.stellen-total-reports small{display:block;margin-top:13px;color:var(--muted)}.stellen-login{display:block;min-height:0;padding:28px}
.stellen-muted{display:block;margin-top:4px;color:var(--muted);font-size:12px;font-weight:400}.stellen-app input[readonly]{background:#f0f3f7;color:#40506a;cursor:not-allowed}.stellen-notice.is-warning{background:#fff7e5;color:#8a5900}.stellen-patient-filter{display:flex;align-items:end;gap:10px;margin:0 0 22px}.stellen-patient-filter label{display:grid;gap:5px;min-width:260px;font-size:13px;font-weight:700}
.stellen-drug>summary{grid-template-columns:minmax(130px,1fr) minmax(105px,.7fr) 3fr minmax(90px,.8fr) auto}.stellen-current-rest{display:grid;gap:4px}.stellen-current-rest small{color:var(--muted);font-size:11px}.stellen-current-rest strong{font-size:15px;color:var(--blue);white-space:nowrap}.stellen-drug-body>[data-stellen-tab-panel][hidden]{display:none}
.stellen-medication-actions{display:grid;justify-items:end;gap:9px}.stellen-expand-actions{display:flex;gap:8px;flex-wrap:wrap}.stellen-expand-actions .stellen-button{min-height:36px;padding:7px 11px;font-size:13px}.stellen-drug-tabs{gap:8px;border-bottom:1px solid var(--line)}.stellen-drug-tabs button{min-height:46px;padding:11px 16px!important;border:1px solid #c8d3e2!important;border-bottom:0!important;border-radius:9px 9px 0 0!important;background:#eef3f9!important;color:var(--ink)!important;line-height:1.25;text-align:center}.stellen-drug-tabs button:hover{background:#e2eaf4!important}.stellen-drug-tabs button.is-active{border-color:var(--blue)!important;background:var(--blue)!important;color:#fff!important}.stellen-file-meta{display:grid;flex:1;gap:3px;min-width:0}.stellen-file-meta a{overflow-wrap:anywhere}.stellen-file-meta small{color:var(--muted);font-size:12px}
.stellen-patient-toolbar{margin-bottom:14px}.stellen-patient-nav-link{font-size:16px;font-weight:800;text-decoration:underline;text-underline-offset:4px}.stellen-patient-card{min-height:0;margin-bottom:14px;padding:10px 14px}.stellen-patient-card .stellen-avatar-large{width:38px;height:38px}.stellen-patient-card-line{display:flex;align-items:center;gap:14px;flex:1;min-width:0}.stellen-patient-card-line>strong{font-size:18px}.stellen-patient-home{color:var(--muted);font-weight:650}.stellen-patient-edit-toggle{margin-left:auto;padding:0;border:0;background:none;color:var(--blue);font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.stellen-edit-patient{margin-top:0}.stellen-medication-heading{display:flex;align-items:center;gap:10px}.stellen-medication-heading h2{margin:0}.stellen-print-button{display:inline-grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--blue);cursor:pointer}.stellen-print-button:hover,.stellen-print-button:focus{border-color:var(--blue);background:#fff}.stellen-print-button .dashicons{width:24px;height:24px;font-size:24px}.stellen-field-error{margin:-7px 0 14px;color:#ff0000;font-weight:750}.stellen-days.is-invalid{border-color:#ff0000;box-shadow:0 0 0 3px rgba(255,0,0,.1)}.stellen-print-sheet{display:none}.stellen-print-sheet.is-measuring{display:block;position:fixed;left:-10000px;top:0;width:281mm;height:194mm;overflow:hidden;visibility:hidden;background:#fff}.stellen-print-content{transform-origin:top left}.stellen-print-header{display:flex;align-items:flex-end;justify-content:space-between;gap:10mm;margin:0 0 5mm;padding:0 0 3mm;border-bottom:2px solid #000}.stellen-print-header h1{margin:0 0 2mm;font-size:22pt;line-height:1}.stellen-print-header p{margin:0;font-size:13pt}.stellen-print-header small{font-size:9pt;white-space:nowrap}.stellen-print-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10.5pt}.stellen-print-table th,.stellen-print-table td{padding:3mm 2mm;border:1px solid #555;vertical-align:middle;text-align:center}.stellen-print-table th{background:#e8edf5;font-size:9pt;text-transform:uppercase}.stellen-print-table th:first-child,.stellen-print-table td:first-child{width:17%;text-align:left}.stellen-print-table th:nth-child(2),.stellen-print-table td:nth-child(2){width:8%}.stellen-print-table th:last-child,.stellen-print-table td:last-child{width:13%;text-align:left}.stellen-print-table td>strong,.stellen-print-table td>small{display:block}.stellen-print-table td>strong{font-size:12pt}.stellen-print-table td>small{margin-top:1mm;font-size:7.5pt}.stellen-print-table tr{break-inside:avoid;page-break-inside:avoid}
@media(max-width:1100px){.stellen-app{grid-template-columns:180px minmax(0,1fr)}.stellen-main{padding:24px}.stellen-drug>summary{grid-template-columns:1fr}.stellen-day-schedule{grid-template-columns:repeat(5,1fr)}.stellen-schedule-edit{grid-template-columns:repeat(2,1fr)}.stellen-pack-card{grid-template-columns:1fr}.stellen-process-meta{grid-template-columns:repeat(2,1fr)}}
.stellen-app input:focus,.stellen-app select:focus,.stellen-app textarea:focus{outline-color:rgba(0,61,111,.14)}
@media(min-width:910px){.stellen-app{margin-top:-84px}}
@media(max-width:720px){.stellen-app{left:auto;display:block;width:100%;margin:0;transform:none;border-radius:0}.stellen-sidebar{padding:16px}.stellen-sidebar nav{grid-template-columns:repeat(3,1fr)}.stellen-sidebar a{justify-content:center;padding:10px 5px;font-size:12px}.stellen-main{padding:18px}.stellen-page-head,.stellen-section-head{align-items:flex-start;flex-direction:column}.stellen-head-actions{width:100%}.stellen-grid-form,.stellen-pack-methods,.stellen-total-reports{grid-template-columns:1fr}.stellen-schedule-edit{grid-template-columns:1fr}.stellen-day-schedule{grid-template-columns:repeat(2,1fr)}.stellen-pack-fields{grid-template-columns:1fr 1fr}.stellen-summary{grid-template-columns:1fr 1fr}.stellen-process-meta{grid-template-columns:1fr}.stellen-span-2{grid-column:auto}.stellen-upload{align-items:stretch;flex-direction:column}}
@media(max-width:720px){.stellen-medication-actions{width:100%;justify-items:stretch}.stellen-medication-actions>.stellen-button{width:100%}.stellen-expand-actions{display:grid;grid-template-columns:1fr 1fr}.stellen-drug-tabs{display:grid;grid-template-columns:1fr;gap:6px;border-bottom:0}.stellen-drug-tabs button{width:100%;border:1px solid #c8d3e2!important;border-radius:8px!important}.stellen-file-list>div{align-items:flex-start;flex-wrap:wrap}.stellen-file-meta{min-width:calc(100% - 36px)}}
.stellen-pack-card{grid-template-columns:minmax(180px,1.05fr) minmax(0,3fr) auto;gap:14px}.stellen-pack-card.is-active{border-color:#2f914f;box-shadow:inset 4px 0 #2f914f}.stellen-pack-card.is-paused{border-color:#d29000;box-shadow:inset 4px 0 #d29000}.stellen-pack-data-form{display:contents}.stellen-status.is-pack-active{background:#e7f6ec;color:#167338}.stellen-status.is-pack-stock{background:#eaf1fb;color:#17487d}.stellen-status.is-pack-paused{background:#fff4d9;color:#8b5d00}.stellen-status.is-pack-remainder{background:#f0ecff;color:#5f3ca7}.stellen-status.is-pack-finished{background:#edf0f4;color:#596577}.stellen-pack-activate-form{grid-column:2/-1;display:flex;align-items:end;justify-content:flex-end;gap:10px}.stellen-pack-activate-form label{display:grid;gap:5px;font-size:12px;font-weight:700}.stellen-pack-activate-form input{min-width:150px}.stellen-pack-audit{grid-column:1/-1;max-height:92px;overflow-y:auto;border-top:1px solid #e3e9f1;padding-top:5px}.stellen-pack-audit>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:3px 5px;border-bottom:1px solid #eef1f5;color:#34435a;font-size:10px;line-height:1.3}.stellen-pack-audit>div:last-child{border-bottom:0}.stellen-pack-audit span{min-width:0}.stellen-pack-audit time{flex:0 0 auto;color:var(--muted);font-size:9px;white-space:nowrap}.stellen-button.is-success{border-color:#258a4b;background:#258a4b;color:#fff!important}
@media(max-width:1100px){.stellen-pack-data-form{display:block}.stellen-pack-activate-form,.stellen-pack-audit{grid-column:1}.stellen-pack-activate-form{justify-content:flex-start}}
.stellen-test-date{padding:5px;border:2px dashed #c98900;border-radius:8px;background:#fff8dc}.stellen-button.is-test{border-color:#9a6500;background:#fff4c2;color:#714900!important}.stellen-button.is-test:hover{background:#ffe890}.stellen-test-version-notice{border-color:#d8a21b;background:#fff7d6;color:#6e4b00}
@media(max-width:720px){.stellen-patient-toolbar{gap:12px}.stellen-patient-card-line{gap:8px;flex-wrap:wrap}.stellen-patient-edit-toggle{width:100%;margin-left:0;text-align:left}.stellen-patient-toolbar .stellen-head-actions{display:grid;grid-template-columns:1fr 1fr}.stellen-medication-heading{gap:6px}}
.stellen-patient-search{min-width:260px}.stellen-search-control{position:relative;display:block}.stellen-search-control input{padding-right:42px!important}.stellen-app button.stellen-search-clear{position:absolute;top:50%;right:6px;display:grid;width:30px;height:30px;min-height:30px!important;margin:0;padding:0!important;transform:translateY(-50%);place-items:center;border:0!important;border-radius:50%;background:transparent!important;box-shadow:none!important;color:var(--blue)!important;font:inherit;font-size:22px;line-height:1;cursor:pointer}.stellen-app button.stellen-search-clear:hover,.stellen-app button.stellen-search-clear:focus{background:rgba(0,61,111,.09)!important;color:var(--blue)!important}.stellen-search-clear[hidden],.stellen-filter-reset[hidden]{display:none!important}.stellen-filter-meta{display:flex;align-items:center;gap:14px;min-height:24px;margin:-8px 0 16px;color:var(--muted);font-size:13px}.stellen-app button.stellen-filter-reset{min-height:0;margin:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--blue)!important;font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px;text-transform:none;cursor:pointer}.stellen-app button.stellen-filter-reset:hover,.stellen-app button.stellen-filter-reset:focus{border:0!important;background:transparent!important;box-shadow:none!important;color:var(--blue)!important}.stellen-app button.stellen-patient-edit-toggle,.stellen-app button.stellen-patient-edit-toggle:hover,.stellen-app button.stellen-patient-edit-toggle:active,.stellen-app button.stellen-patient-edit-toggle:focus{min-height:0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:var(--blue)!important;text-transform:none;letter-spacing:normal}.stellen-app button.stellen-patient-edit-toggle:focus-visible{outline:1px dotted var(--blue);outline-offset:3px}
@media(max-width:720px){.stellen-patient-list-filter label{flex:1 1 100%}.stellen-patient-search{min-width:0}.stellen-filter-meta{align-items:flex-start;flex-direction:column;gap:5px}}
.stellen-status.is-skipped{background:#fff5dc;color:#8a5900}
.stellen-pack-count{display:inline-grid;min-width:34px;height:30px;padding:0 9px;place-items:center;border-radius:999px;font-weight:800}.stellen-pack-count.is-active{background:#e8f8ef;color:var(--green)}.stellen-pack-count.is-paused{background:#fff5dc;color:#8a5900}
.stellen-midday-dosette{color:#ff0000;font-weight:850;white-space:nowrap}.stellen-check-row{display:flex!important;align-items:center;gap:9px}.stellen-check-row input{width:auto;min-height:auto;margin:0}.stellen-check-row span{color:var(--ink);font-size:14px;font-weight:750}
.stellen-week-card{margin:0 0 22px;padding:20px;border:1px solid #b8d0e3;border-radius:12px;background:linear-gradient(135deg,#fff,#f2f8fc);box-shadow:0 5px 18px rgba(20,43,80,.05)}
.stellen-week-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.stellen-week-head h2{margin:4px 0;font-size:24px}.stellen-week-head h2 small{margin-left:7px;color:var(--muted);font-size:13px;font-weight:650}.stellen-week-head p{margin:0;color:var(--muted)}.stellen-week-progress-number{color:var(--blue);font-size:25px}.stellen-week-progress{height:12px;margin:16px 0 12px;overflow:hidden;border-radius:999px;background:#dfe9f1}.stellen-week-progress span{display:block;height:100%;border-radius:inherit;background:var(--blue);transition:width .2s ease}.stellen-week-stats{display:flex;gap:18px;flex-wrap:wrap;color:#45556d;font-size:13px;font-weight:650}.stellen-week-stats span{display:flex;align-items:center;gap:6px}.stellen-week-stats i{width:9px;height:9px;border-radius:50%;background:#9aa8bb}.stellen-week-stats i.is-set{background:#118b50}.stellen-week-stats i.is-skipped{background:#d08b00}.stellen-week-footer{margin-top:17px}.stellen-week-footer .stellen-notice{margin:0}
.stellen-week-mini{padding:8px 11px;border-radius:8px;background:#edf4f9;color:var(--blue);font-weight:800}.stellen-week-patient{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px;padding:16px 18px;border:1px solid #c7d7e5;border-left:5px solid #8b9bb0;border-radius:10px;background:#fff}.stellen-week-patient.is-set{border-left-color:#118b50;background:#f2fbf6}.stellen-week-patient.is-skipped{border-left-color:#d08b00;background:#fffaf0}.stellen-week-patient h2{margin:3px 0 0;font-size:20px}.stellen-week-patient p{margin:4px 0}.stellen-week-patient-actions{display:flex;align-items:end;justify-content:flex-end;gap:10px;flex-wrap:wrap}.stellen-week-skip-form{display:flex;align-items:end;gap:8px}.stellen-week-skip-form label{display:grid;gap:4px;color:#34435a;font-size:12px;font-weight:700}.stellen-week-skip-form select{min-width:190px}.stellen-button.is-success{border-color:#118b50;background:#118b50}
@media(max-width:720px){.stellen-week-head,.stellen-week-patient{align-items:stretch;flex-direction:column}.stellen-week-patient-actions,.stellen-week-skip-form{align-items:stretch;flex-direction:column}.stellen-week-patient-actions .stellen-button,.stellen-week-patient-actions .stellen-link{width:100%;text-align:center}.stellen-week-stats{gap:8px;flex-direction:column}.stellen-week-head h2 small{display:block;margin:4px 0 0}}

/* Stellvorgang und Wirkstoffpausen */
.stellen-drug>summary{grid-template-columns:minmax(130px,1fr) minmax(105px,.7fr) minmax(430px,3fr) minmax(90px,.8fr) auto}
.stellen-day-schedule{grid-template-columns:repeat(6,minmax(64px,1fr))}
.stellen-schedule-edit{grid-template-columns:repeat(6,minmax(110px,1fr))}
.stellen-drug.is-active-drug{border-color:#16a34a}
.stellen-drug.is-active-drug .stellen-day-schedule{padding:5px;border:2px solid #16a34a;border-radius:10px}
.stellen-drug.is-inactive-drug{order:2;border-color:#e11d48}
.stellen-drug.is-inactive-drug .stellen-day-schedule{padding:5px;border:2px solid #ff0000;border-radius:10px}
.stellen-drug.is-inactive-drug>summary{background:#fff8f8}
.stellen-drug-status-form{margin:0}
.stellen-drug-status{min-height:34px;padding:6px 10px;border:1px solid currentColor;border-radius:999px;background:#fff;font:inherit;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.stellen-drug-status.is-active{color:#118b50}.stellen-drug-status.is-inactive{color:#ff0000}
.stellen-drug-controls{display:grid;justify-items:center;gap:5px}.stellen-drug-controls .stellen-edit-label{display:block;line-height:1.15;text-align:center}.stellen-drug-controls>.stellen-drug-status{cursor:default}
.stellen-process-start-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.stellen-process-start-form label{display:grid;gap:6px;min-width:260px;font-weight:700}
.stellen-process-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}
@media(max-width:1100px){.stellen-drug>summary{grid-template-columns:1fr}.stellen-day-schedule{grid-template-columns:repeat(3,1fr)}.stellen-schedule-edit{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.stellen-sidebar nav{grid-template-columns:repeat(2,1fr)}.stellen-day-schedule{grid-template-columns:repeat(2,1fr)}.stellen-schedule-edit{grid-template-columns:1fr}.stellen-process-start-form,.stellen-process-actions{align-items:stretch;flex-direction:column}.stellen-process-start-form label,.stellen-process-actions .stellen-button,.stellen-process-actions .stellen-link{width:100%;min-width:0;text-align:center}}

/* Wirkstoffsuche, kompakter Stellvorgang und klarer Lesemodus */
.stellen-autocomplete{position:relative;display:block}.stellen-ingredient-results{position:absolute;z-index:50;top:calc(100% + 3px);left:0;right:0;max-height:290px;overflow:auto;border:1px solid #9fb3ca;border-radius:8px;background:#fff;box-shadow:0 12px 28px rgba(0,61,111,.18)}.stellen-ingredient-option{display:block!important;width:100%;min-height:0!important;padding:9px 11px!important;border:0!important;border-radius:0!important;background:#fff!important;color:var(--ink)!important;font:inherit!important;font-weight:600!important;text-align:left!important;text-transform:none!important;letter-spacing:normal!important;cursor:pointer}.stellen-ingredient-option:hover,.stellen-ingredient-option.is-active{background:#edf4f9!important;color:var(--blue)!important}
.stellen-process-back{font-size:18px;font-weight:850;text-underline-offset:4px}.stellen-week-card{padding:14px 18px}.stellen-week-head{align-items:center}.stellen-week-head h2{margin:2px 0;font-size:21px}.stellen-week-progress-number{font-size:22px}.stellen-week-progress{height:9px;margin:10px 0 8px}.stellen-process-actions{gap:9px;margin-top:12px}.stellen-process-actions .stellen-link{min-height:0;padding:2px 3px;font-size:12px}.stellen-process-actions .stellen-link.is-danger{font-size:12px}.stellen-process-edit-primary{border-color:var(--blue)!important;background:var(--blue)!important;color:#fff!important;font-size:15px!important}.stellen-edit-mode{padding:8px 12px;border-radius:8px;background:#e8f3eb;color:#118b50;font-weight:800}.stellen-week-patient{min-height:0;padding:11px 14px;gap:14px}.stellen-week-patient h2{margin:1px 0 0;font-size:18px}.stellen-week-patient .stellen-eyebrow{font-size:10px}.stellen-week-patient-actions{gap:8px}.stellen-week-patient-actions .stellen-button{min-height:38px;padding:8px 12px}.stellen-week-skip-form select{min-width:180px;min-height:38px}.stellen-notice.is-info{border-left-color:var(--blue);background:#edf4f9;color:var(--ink)}
@media(max-width:720px){.stellen-ingredient-results{max-height:230px}.stellen-process-back{font-size:17px}.stellen-week-card{padding:13px}.stellen-process-actions .stellen-link{width:auto!important;align-self:center}.stellen-week-patient{padding:12px}.stellen-week-patient-actions .stellen-button{width:100%}}
.stellen-process-index-intro{margin:0 0 12px}.stellen-process-index-intro>p:not(.stellen-eyebrow){margin:4px 0 0;color:var(--muted)}.stellen-process-start{margin-bottom:18px}.stellen-process-start h2{margin-top:0}.stellen-process-start-form>select{width:auto;min-width:260px}.stellen-process-complete,.stellen-process-complete:hover,.stellen-process-complete:focus{border-color:#118b50!important;background:#118b50!important;color:#fff!important}.stellen-process-complete:hover,.stellen-process-complete:focus{filter:brightness(.92)}
.stellen-patient-toolbar{display:grid;grid-template-columns:minmax(170px,1fr) auto minmax(170px,1fr);align-items:center;gap:18px;margin-bottom:10px}.stellen-patient-toolbar .stellen-head-actions{grid-column:3;justify-self:end}.stellen-patient-toolbar-filter{grid-column:2;margin:0}.stellen-patient-toolbar-filter label{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:13px;font-weight:750;white-space:nowrap}.stellen-patient-toolbar-filter select{width:auto;min-width:220px}.stellen-schema-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:8px}.stellen-schema-head h3{margin:0}.stellen-drug-audit{display:grid;width:min(100%,330px);gap:2px}.stellen-drug-audit>div{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;padding:2px 6px;border-bottom:1px solid #e3e9f1;color:#34435a;font-size:10px;line-height:1.25}.stellen-drug-audit>div:last-child{border-bottom:0}.stellen-drug-audit span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stellen-drug-audit time{flex:0 0 auto;color:var(--muted);font-size:9px;white-space:nowrap}
.stellen-active-pack-name{display:block;max-width:210px;margin-top:3px;overflow:hidden;color:var(--muted);font-size:10px;font-weight:600;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.stellen-medication-title-audit{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap}.stellen-patient-audit{display:grid;width:min(430px,45vw);max-height:72px;padding:3px 4px 3px 9px;overflow-y:auto;border-left:2px solid #b7c7d8;color:#34435a}.stellen-patient-audit>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:21px;padding:2px 5px;border-bottom:1px solid #e4eaf1;font-size:10px;line-height:1.25}.stellen-patient-audit>div:last-child{border-bottom:0}.stellen-patient-audit span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stellen-patient-audit time{flex:0 0 auto;color:var(--muted);font-size:9px;white-space:nowrap}.stellen-report-filter{align-items:flex-end}.stellen-report-filter>label{min-width:145px}.stellen-report-filter .stellen-patient-search{min-width:230px}
@media(max-width:720px){.stellen-patient-toolbar{grid-template-columns:1fr;gap:8px}.stellen-patient-toolbar-filter,.stellen-patient-toolbar .stellen-head-actions{grid-column:1;justify-self:stretch}.stellen-patient-toolbar-filter label{align-items:stretch;flex-direction:column}.stellen-patient-toolbar-filter select{width:100%;min-width:0}.stellen-patient-toolbar .stellen-head-actions{justify-content:flex-start}.stellen-schema-head{flex-direction:column}.stellen-drug-audit{width:100%}.stellen-process-start-form>select{width:100%;min-width:0}.stellen-medication-title-audit{align-items:flex-start;flex-direction:column;gap:8px}.stellen-patient-audit{width:100%;max-height:72px}.stellen-report-filter>label,.stellen-report-filter .stellen-patient-search{width:100%;min-width:0}}
/* Kompakte Navigation und Stellvorgangsaktionen */
.stellen-app button.stellen-expand-toggle,.stellen-app button.stellen-expand-toggle:hover,.stellen-app button.stellen-expand-toggle:focus,.stellen-app button.stellen-expand-toggle:active{min-height:0;padding:2px 0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:var(--blue)!important;font:inherit;font-size:14px;font-weight:800;text-decoration:underline;text-underline-offset:4px;letter-spacing:.02em;cursor:pointer}
.stellen-patient-pager{display:inline-flex;align-items:center;justify-content:center}.stellen-patient-pager>*{display:inline-grid;min-width:42px;height:40px;padding:0 11px;place-items:center;border:1px solid #aabed3;color:var(--blue);font-size:16px;line-height:1;text-align:center;text-decoration:none}.stellen-patient-pager>*+*{margin-left:-1px}.stellen-patient-pager strong{min-width:70px;background:#edf4f9;color:var(--ink);font-size:14px}.stellen-pager-arrow{font-size:24px!important;font-weight:700}.stellen-pager-arrow.is-disabled{color:#a5afbc;cursor:not-allowed}.stellen-patient-pager>:first-child{border-radius:8px 0 0 8px}.stellen-patient-pager>:last-child{border-radius:0 8px 8px 0}.stellen-patient-pager a:hover,.stellen-patient-pager a:focus{position:relative;z-index:1;border-color:var(--blue);background:#fff;color:var(--blue)}
.stellen-process-detail-back{margin:0 0 12px}.stellen-process-card-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;padding-bottom:11px;border-bottom:1px solid #d7e4ee}.stellen-process-card-meta p{margin:0}.stellen-process-card-meta .stellen-eyebrow{color:var(--blue)}.stellen-process-card-meta .stellen-eyebrow+p{margin-top:4px;color:var(--muted);font-size:13px}.stellen-process-primary,.stellen-process-primary:hover,.stellen-process-primary:focus{border-color:#118b50!important;background:#118b50!important;color:#fff!important}.stellen-process-primary:hover,.stellen-process-primary:focus{filter:brightness(.92)}
.stellen-process-bulk-form{margin:0}.stellen-select-column{width:52px;text-align:center}.stellen-select-column input{width:20px;height:20px;min-height:0}.stellen-bulk-actions{display:flex;justify-content:flex-end;margin-top:10px}.stellen-bulk-actions .stellen-link{font-size:12px}
@media(max-width:720px){.stellen-process-card-meta{align-items:stretch;flex-direction:column}.stellen-process-card-meta .stellen-status{align-self:flex-start}.stellen-patient-pager{width:100%}.stellen-patient-pager strong{flex:1}.stellen-bulk-actions{justify-content:stretch}.stellen-bulk-actions .stellen-link{width:100%;text-align:center}}

/* Testversion: feste Mo–So-Dosetten, Packungsprojektion und Mengenbuch */
.stellen-projected-rest{display:block;margin-top:2px;color:#118b50!important;white-space:nowrap}.stellen-projected-rest b{font-size:13px}.stellen-process-set-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.stellen-process-set-form>.stellen-button[disabled]{opacity:.45;cursor:not-allowed}.stellen-pack-proposal{display:grid;flex:1 1 100%;gap:6px;max-width:760px;padding:10px 12px;border:1px solid #e2b657;border-radius:8px;background:#fff8df;color:#644500}.stellen-pack-proposal p{margin:0;font-size:12px}.stellen-pack-proposal label{display:flex;align-items:flex-start;gap:7px;color:var(--ink);font-size:12px;font-weight:700}.stellen-pack-proposal input{width:auto;min-height:auto;margin-top:2px}.stellen-pack-proposal.is-shortage{border-color:#ef9a90;background:#fff0ee;color:var(--red)}
.stellen-pack-ledger{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.stellen-pack-ledger-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}.stellen-pack-ledger-head h4{margin:0;font-size:17px}.stellen-pack-ledger-head span{color:var(--muted);font-size:11px}.stellen-pack-ledger-scroll{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff}.stellen-pack-ledger table{width:100%;min-width:920px;border-collapse:collapse;font-size:11px}.stellen-pack-ledger th,.stellen-pack-ledger td{padding:7px 8px;border-bottom:1px solid #e7ecf2;text-align:left;vertical-align:top}.stellen-pack-ledger th{position:sticky;z-index:1;top:0;background:#edf3f8;color:#41536d;font-size:10px;text-transform:uppercase}.stellen-pack-ledger td strong,.stellen-pack-ledger td small{display:block}.stellen-pack-ledger td small{margin-top:2px;color:var(--muted);font-size:9px}.stellen-pack-ledger tr.is-correction{background:#fff9e8}.stellen-pack-ledger tr:last-child td{border-bottom:0}.stellen-pack-data-form .stellen-pack-fields{grid-template-columns:repeat(4,minmax(100px,1fr))}
.stellen-pack-ledger tr.is-projection{background:#eefaf2}.stellen-pack-ledger tr.is-projection td:first-child{border-left:3px solid #159447}
@media(max-width:1100px){.stellen-pack-data-form .stellen-pack-fields{grid-template-columns:repeat(2,minmax(100px,1fr))}.stellen-process-set-form{align-items:stretch;flex-direction:column}}
@media(max-width:720px){.stellen-pack-ledger-head{align-items:flex-start;flex-direction:column}.stellen-pack-data-form .stellen-pack-fields{grid-template-columns:1fr}.stellen-pack-proposal{max-width:none}}
@page{size:A4 landscape;margin:8mm}
@media print{html,body{width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important}body.stellen-print-medication *{visibility:hidden!important}body.stellen-print-medication .stellen-app,body.stellen-print-medication .stellen-main,body.stellen-print-medication .stellen-medication{position:static!important;display:block!important;width:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;transform:none!important;border:0!important;background:transparent!important;box-shadow:none!important}body.stellen-print-medication .stellen-print-sheet,body.stellen-print-medication .stellen-print-sheet *{visibility:visible!important}body.stellen-print-medication .stellen-print-sheet{display:block!important;position:fixed!important;left:0!important;top:0!important;width:281mm!important;height:194mm!important;margin:0!important;padding:0!important;overflow:hidden!important;color:#000!important;background:#fff!important;font-family:Arial,sans-serif!important}.stellen-print-header{display:flex;align-items:flex-end;justify-content:space-between;gap:10mm;margin:0 0 5mm;padding:0 0 3mm;border-bottom:2px solid #000}.stellen-print-header h1{margin:0 0 2mm;font-size:22pt;line-height:1}.stellen-print-header p{margin:0;font-size:13pt}.stellen-print-header small{font-size:9pt;white-space:nowrap}.stellen-print-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10.5pt}.stellen-print-table th,.stellen-print-table td{padding:3mm 2mm;border:1px solid #555;vertical-align:middle;text-align:center}.stellen-print-table th{background:#e8edf5!important;font-size:9pt;text-transform:uppercase;-webkit-print-color-adjust:exact;print-color-adjust:exact}.stellen-print-table th:first-child,.stellen-print-table td:first-child{width:17%;text-align:left}.stellen-print-table th:nth-child(2),.stellen-print-table td:nth-child(2){width:8%}.stellen-print-table th:last-child,.stellen-print-table td:last-child{width:13%;text-align:left}.stellen-print-table td>strong,.stellen-print-table td>small{display:block}.stellen-print-table td>strong{font-size:12pt}.stellen-print-table td>small{margin-top:1mm;font-size:7.5pt}.stellen-print-table tr{break-inside:avoid;page-break-inside:avoid}}
