@font-face{font-family:Montserrat;src:url("fonts/Montserrat-Variable.ttf") format("truetype");font-weight:100 900;font-style:normal;font-display:swap}
:root{font-family:Montserrat,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#153b32;background:#f5f6f2;font-size:15px}*{box-sizing:border-box}body{margin:0}header{background:#123f34;color:white;padding:25px max(20px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}header small{color:#b6d0c7;letter-spacing:2px}h1{font-size:25px;margin:5px 0}h2{font-size:23px;margin:0 0 20px}h3{margin:10px 0;font-size:18px}main{max-width:1220px;margin:auto;padding:28px 20px 70px}button,.button{font:inherit;background:#17684b;color:white;border:1px solid transparent;border-radius:12px;padding:12px 17px;cursor:pointer;display:inline-block;text-decoration:none;font-weight:600}button:hover,.button:hover{filter:brightness(.94)}button:disabled{opacity:.45;cursor:default}.secondary{background:white;color:#254b40;border-color:#d4dfd9}.danger{background:#ae353f}.muted{color:#64776d;font-size:13px}.panel{background:white;border:1px solid #dce5de;border-radius:20px;padding:25px;margin:20px 0}.narrow{max-width:530px;margin:45px auto}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.toolbar form{margin:0}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.card{padding:20px;background:white;border:1px solid #dce5de;border-top:4px solid #3c9872;border-radius:16px;display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}.card.low{border-top-color:#d39a25}.card.empty{border-top-color:#c1444e}.card .qty{font-size:36px;font-weight:750;line-height:1.2;margin:15px 0}.card .qty small{font-size:14px;font-weight:400}.card button{margin-top:auto;width:100%}.badge{font-size:12px;color:#607a6b}.low .badge{color:#956517}.empty .badge{color:#b13745}label{display:block;margin:15px 0 6px;font-weight:600;font-size:14px}input,select,textarea{font:inherit;width:100%;padding:12px;border-radius:10px;border:1px solid #cbd8cf;background:white;color:#173e31}textarea{resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid #43866b;outline-offset:1px}.row{display:flex;gap:14px}.row>*{flex:1;min-width:0}.message{background:#e3f1e9;border:1px solid #abd0b7;padding:15px;border-radius:12px;margin:15px 0}.error{background:#fff0f0;border-color:#e2a6aa;color:#922936}nav{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}nav a{color:#255444;text-decoration:none;padding:10px 14px;border-radius:10px;background:#e7eee8}dialog{border:1px solid #d2ddd5;border-radius:22px;padding:25px;width:min(520px,94vw);color:inherit;max-height:90vh}dialog::backdrop{background:#102f2ac0;backdrop-filter:blur(3px)}.choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.choice{border:2px solid #dce5de;border-radius:13px;padding:14px;cursor:pointer}.choice input{width:auto}.choice.red{color:#b13040;background:#fff3f4}.choice.green{color:#136846;background:#edf8f2}.choice:has(input:checked){border-color:currentColor;box-shadow:0 0 0 1px currentColor}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}td,th{padding:13px 10px;border-bottom:1px solid #e6ebe5;vertical-align:top}th{white-space:nowrap;color:#64776d;font-weight:500}.positive{color:#14714e}.negative{color:#b32f42}.stats{display:flex;gap:28px;margin:20px 0;color:#536d61}.stats strong{font-size:22px;color:#174b38}.empty-state{padding:45px 20px;text-align:center;color:#6c7d71}.full{width:100%;margin-top:20px}summary{cursor:pointer;font-weight:650;padding:5px}header .secondary{font-size:12px;padding:8px 12px}code{overflow-wrap:anywhere}@media(max-width:900px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{padding:14px}.card h3{font-size:16px}.card button{font-size:13px;padding:11px 6px}h1{font-size:20px}header{padding:19px 16px}main{padding:20px 12px 50px}.panel{padding:18px}.stats{gap:14px;font-size:12px}.row{flex-wrap:wrap}.row>*{flex-basis:140px}}

[hidden]{display:none!important}input[type="checkbox"]{width:auto;margin-right:8px}
/* Klinik üst paneli: yerel SVG, hafif hareket, harici görsel isteği yok. */
header{position:relative;overflow:hidden;min-height:188px;background:radial-gradient(ellipse at 70% 20%,#216951 0%,transparent 55%),linear-gradient(115deg,#103e34,#0c302b);isolation:isolate;border-bottom:1px solid #326450}header .brand,header .account{position:relative;z-index:2}.brand{max-width:470px}header small{font-size:11px;letter-spacing:2.4px;color:#b3dacb}header h1{font-size:30px;letter-spacing:-.7px;margin:10px 0}.header-caption{font-size:13px;color:#add0c1;margin:9px 0 0}.medical-motion{position:absolute;pointer-events:none;width:480px;left:50%;top:10px;z-index:0;opacity:.85}.medical-motion svg{width:100%;height:auto;stroke:#a5e8cf;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.med-tile{fill:#b5ffe7;fill-opacity:.065;stroke:#93dfc3;stroke-opacity:.3}.pulse-base{stroke:#83d9b8;opacity:.12}.pulse-light{stroke:url(#pulse-gradient);stroke-dasharray:95 620;animation:heartbeat-trace 7s linear infinite;opacity:.7}.float-a{animation:medical-float 7s ease-in-out infinite}.float-b{animation:medical-float 9s ease-in-out -3s infinite}.float-c{animation:medical-float 8s ease-in-out -5s infinite}.orbit-dot{animation:soft-pulse 6s ease-in-out infinite}.dot-two{animation-delay:-3s}nav{padding:5px;background:#e7eee8;border-radius:15px;width:fit-content}nav a{background:transparent}nav a:hover{background:#fff}.card{box-shadow:0 4px 18px #143c3005;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-3px);box-shadow:0 12px 26px #143c3010}.card h3{letter-spacing:-.25px}.stats{padding:15px 20px;background:#eaf0e9;border:1px solid #dce6dc;border-radius:14px;width:fit-content}.card button:hover{background:#eaf4ed;border-color:#9ebead}@keyframes medical-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}@keyframes heartbeat-trace{from{stroke-dashoffset:715}to{stroke-dashoffset:0}}@keyframes soft-pulse{0%,100%{opacity:.3}50%{opacity:.9}}@media(max-width:900px){.medical-motion{left:42%;width:400px;opacity:.48}.brand{max-width:350px}}@media(max-width:650px){header{min-height:185px;align-items:flex-start;padding-top:24px}header h1{font-size:24px}header small{font-size:9px;letter-spacing:1.3px}.header-caption{max-width:240px;font-size:12px}.medical-motion{width:310px;left:36%;top:68px;opacity:.24}header .account{font-size:12px}.stats{width:100%;padding:14px 12px;justify-content:space-between}}@media(prefers-reduced-motion:reduce){.medical-motion *{animation:none!important}.card{transition:none}.card:hover{transform:none}}

/* Kartın tamamı seçim alanıdır; yerel radyo simgesi görsel olarak gizlenir. */
.choice{position:relative;display:flex;align-items:center;min-height:78px;line-height:1.5;margin-top:8px;text-align:left}
.choice input[type="radio"]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0;outline:none}
.choice:has(input:focus-visible){outline:2px solid currentColor;outline-offset:4px}
.choice:has(input:disabled){opacity:.45;cursor:not-allowed}
/* v5: klinik çalışma alanı */
:root{color:#10233f;background:#f5f8fb}body{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;min-height:100vh;padding:30px 18px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:34px;background:linear-gradient(150deg,#163953,#0d263f);border:0;overflow:auto}.brand{display:flex;gap:10px;align-items:center;color:#fff;text-decoration:none}.brand strong{font-size:17px;white-space:nowrap;letter-spacing:-.6px}.brand small{display:block;font-size:12px;letter-spacing:0;margin-top:7px;color:#acbfce}.brand-mark{font-size:48px;line-height:1;color:#16dfde;font-weight:500}nav{display:flex;flex-direction:column;gap:8px;width:100%;padding:0;background:none;border-radius:0}nav a{color:#cbdbe9;padding:17px 15px;border-radius:10px;font-size:14px;font-weight:550}nav a:hover{background:#ffffff12}nav a.active{background:#049fb3;color:white;box-shadow:0 6px 20px #0002}.account{margin-top:auto;font-size:13px;display:flex;flex-direction:column;gap:9px}.account small{letter-spacing:0}.avatar{background:#ffffff17;border:1px solid #ffffff20;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;color:#6ae5e7}.account button{background:#ffffff10;color:#d3e2ef;border-color:#ffffff20}main{margin:0 0 0 232px;padding:26px 28px 55px;max-width:1900px}h1{font-size:38px;letter-spacing:-1.5px;color:#091c36}h2{font-size:23px;letter-spacing:-.7px}.muted,.badge,th{color:#71849f}button{background:#008e9f;border-radius:9px}.secondary{color:#304e71;border-color:#d3ddeb}.danger{background:#c33a53}input,select,textarea{color:#243f61;border-color:#d8e1ed;border-radius:9px}input:focus,select:focus,textarea:focus{outline-color:#06a7b5}.hero{position:relative;min-height:222px;display:flex;align-items:center;margin:-26px -28px 0;padding:25px 28px 35px;overflow:hidden;background:linear-gradient(110deg,#fbfdff 15%,#eff7f7 80%)}.hero-copy{position:relative;z-index:2}.eyebrow{font-size:12px;color:#587599;margin:0 0 20px}.hero h1{font-size:48px;margin:0 0 9px;letter-spacing:-2px}.hero p:not(.eyebrow){font-size:18px;color:#647fa0;margin:0 0 20px}.hero button{font-size:12px;padding:10px 14px}.hero-art{position:absolute;width:420px;height:250px;right:0;bottom:0;opacity:.85}.hero-art span{position:absolute;inset:-60px 5px 0;background:#b6dfe077;border-radius:50%}.hero-art img{position:absolute;width:160px;filter:drop-shadow(0 10px 8px #32585f15);animation:medical-float 8s ease-in-out infinite}.hero-art img:nth-of-type(1){left:0;top:36px}.hero-art img:nth-of-type(2){left:140px;top:0;animation-delay:-2s}.hero-art img:nth-of-type(3){right:-12px;top:65px;animation-delay:-4s}.hero-art img:nth-of-type(4){left:75px;bottom:-30px;width:220px;animation-delay:-6s}.stock-tools{position:relative;display:flex;align-items:center;gap:20px;background:white;border:1px solid #e9edf3;box-shadow:0 5px 18px #17395407;padding:20px;border-radius:14px;margin:0 0 22px}.metric{display:flex;flex-direction:column;white-space:nowrap;padding-right:20px;border-right:1px solid #e4eaf2;font-size:11px;color:#62789a}.metric strong{font-size:29px;color:#142c4d;margin-bottom:3px}.metric.critical,.metric.critical strong{color:#d53c5a}.metric.warning,.metric.warning strong{color:#dc802c}.stock-tools input{min-width:100px;flex:1;width:0}.stock-tools select{width:180px;font-size:12px}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card,.card.low,.card.empty{border:1px solid #e9eef5;border-radius:15px;padding:18px;box-shadow:0 5px 20px #19354c06}.card:hover{box-shadow:0 12px 30px #15395010}.product-content{display:flex;gap:12px;align-items:center;flex:1}.product-image{width:42%;height:150px;object-fit:contain;flex-shrink:0;background:#fff;border-radius:10px;padding:6px;box-sizing:border-box}.product-info{flex:1;min-width:0}.card h3{font-size:15px;color:#142747;line-height:1.45;margin:9px 0 13px;padding-bottom:12px;border-bottom:1px solid #ecf0f6}.badge{font-size:10px}.stock-caption{font-size:12px;color:#6681a3}.card .qty{font-size:34px;letter-spacing:-1px;color:#075d72;margin:4px 0 8px}.card .qty small{font-size:12px;letter-spacing:0;color:#6681a3}.stock-status{font-size:9px;color:#8395aa}.empty .stock-status,.low .stock-status{color:#c84158}.product-location{font-size:10px;min-height:22px;color:#8394aa;padding:8px 0}.card-actions{display:flex;gap:9px;margin-top:9px}.card-actions button{font-size:11px;padding:12px 6px;white-space:nowrap;margin:0}.add-stock{color:#078b67;background:#f2fbf8;border-color:#7ed6b9}.use-stock{color:#bd3b53;background:#fff7f8;border-color:#efc8d0}.card .add-stock:hover{background:#e3f7ed;border-color:#078b67}.card .use-stock:hover{background:#ffebee;border-color:#bd3b53}.panel{border-color:#e3eaf3;border-radius:15px;box-shadow:0 4px 16px #16365304}.choice{justify-content:center;text-align:center}.choice:has(input:checked){box-shadow:none}.message{background:#edf9f7;border-color:#b7e3da}.error{background:#fff0f3;border-color:#edc4ce}dialog{border:1px solid #e2eaf3;box-shadow:0 30px 100px #07192f40;border-radius:20px}dialog::backdrop{background:#091e3c88;backdrop-filter:blur(6px)}dialog[open]{animation:dialog-in .28s cubic-bezier(.2,.8,.2,1)}dialog[open]::backdrop{animation:fade-in .25s ease}dialog.closing{animation:dialog-out .18s ease forwards}dialog.closing::backdrop{animation:fade-in .18s ease reverse forwards}@keyframes dialog-in{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes dialog-out{to{opacity:0;transform:translateY(15px) scale(.97)}}@keyframes fade-in{from{opacity:0}to{opacity:1}}.report-filter{display:flex;align-items:end;gap:20px;flex-wrap:wrap}.report-filter fieldset{border:0;margin:0;padding:0;flex:1}.report-filter legend{font-size:13px;font-weight:600}.periods{display:flex;gap:8px}.periods .choice{min-height:44px;font-size:12px;padding:12px;background:#f5f8fc;flex:1}.periods .choice:has(input:checked){color:#008d9e;border-color:#00a0ae;background:#edfafa}.report-filter input{min-height:44px}.report-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.report-stats .panel{margin:0;padding:22px}.report-stats strong{display:block;font-size:32px;margin-top:10px;color:#075d72}.report-range{font-size:12px;color:#647c97}.person-report{max-width:650px;margin:20px 0}.person-report div{display:flex;justify-content:space-between;font-size:13px}.person-report span{color:#70859c}.person-report meter{width:100%;height:15px;accent-color:#03a2ad}.narrow{margin-top:65px}td{font-size:12px}th{font-size:11px}
@media(min-width:1500px){.hero-art{right:80px;width:520px}.hero-art img{width:190px}.hero h1{font-size:55px}.product-image{height:180px}.card h3{font-size:17px}}
@media(max-width:1200px){.sidebar{width:205px;padding:26px 13px}.brand strong{font-size:15px}.brand-mark{font-size:38px}main{margin-left:205px;padding:24px 20px}.hero{margin:-24px -20px 0;padding-left:20px}.hero-art{opacity:.45;right:-100px}.hero-copy{max-width:75%}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-tools{flex-wrap:wrap;gap:14px}.stock-tools input{flex-basis:180px}.stock-tools select{flex:1}.hero h1{font-size:42px}}
@media(max-width:700px){.sidebar{position:relative;width:100%;min-height:0;padding:17px 16px;gap:17px;overflow:visible}.brand strong{font-size:18px}.brand small{font-size:11px}.brand-mark{font-size:40px}.sidebar nav{flex-direction:row;flex-wrap:nowrap;overflow:auto;margin:0;padding-bottom:3px;gap:5px}.sidebar nav a{padding:11px 12px;font-size:12px;white-space:nowrap}.account{position:absolute;right:16px;top:20px;gap:4px;font-size:11px;max-width:100px}.account .avatar,.account small{display:none}.account button{padding:5px 9px;font-size:10px}.account strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar:has(.account) .brand{max-width:calc(100% - 105px)}.sidebar:has(.account) .brand strong{font-size:15px}main{margin:0;padding:20px 14px 45px}.hero{margin:-20px -14px 0;padding:25px 16px;min-height:210px}.hero h1{font-size:36px}.hero p:not(.eyebrow){font-size:14px;line-height:1.5;max-width:245px}.hero-art{width:280px;right:-125px;opacity:.35}.hero-copy{max-width:90%}.stock-tools{padding:15px 12px;gap:12px;margin-top:0}.metric{font-size:10px;flex:1;padding-right:10px}.metric strong{font-size:25px}.stock-tools input,.stock-tools select{flex:1 1 135px;font-size:12px;width:100%}.grid{gap:12px}.card{padding:12px}.product-content{flex-direction:column;gap:0;align-items:stretch}.product-image{width:100%;height:120px}.card h3{font-size:13px;min-height:50px;margin:6px 0 10px;padding-bottom:8px}.badge{font-size:9px}.card .qty{font-size:29px}.card-actions{flex-direction:column;gap:7px}.card-actions button{font-size:11px;padding:10px 4px}.product-location{min-height:22px}.stock-status{font-size:9px}.report-stats{grid-template-columns:repeat(2,1fr);gap:10px}.report-stats .panel{padding:17px}.report-filter{gap:12px}.report-filter fieldset{flex-basis:100%}.periods{gap:5px}.periods .choice{font-size:10px;padding:10px 7px}.report-filter>div{flex:1}.report-filter button{font-size:12px}.narrow{margin-top:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.report-filter,button{display:none!important}main{margin:0;padding:0}.panel{box-shadow:none;break-inside:avoid}.scroll{overflow:visible}body{background:white}.report-stats{display:flex}.report-stats .panel{flex:1}td,th{font-size:9px;padding:6px}}
@media(max-width:700px){.sidebar .account{position:absolute;right:16px;top:20px;margin:0}.sidebar .brand{position:relative}}

/* v6: stok durumu filtreleri ve nabız simgesi */
.stock-tools button.metric{background:transparent;border:0;border-right:1px solid #e4eaf2;border-radius:8px;padding:8px 16px 8px 10px;font-weight:400;text-align:left;align-items:flex-start;transition:background .2s,box-shadow .2s;color:#62789a}
.stock-tools button.metric.critical{color:#d53c5a}.stock-tools button.metric.warning{color:#dc802c}
.stock-tools button.metric:hover{background:#f3f7fc;filter:none}.stock-tools button.metric[aria-pressed="true"]{background:#edf7fa;box-shadow:inset 0 -3px #008e9f}
.stock-tools button.metric.critical[aria-pressed="true"]{background:#fff0f4;box-shadow:inset 0 -3px #d53c5a}.stock-tools button.metric.warning[aria-pressed="true"]{background:#fff5e9;box-shadow:inset 0 -3px #dc802c}
.stock-tools button.metric:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.brand-mark{display:block;width:44px;height:48px;flex:0 0 44px}.brand-mark svg{width:100%;height:100%;overflow:visible;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.heart-trace-base{opacity:.4}.heart-trace{stroke-dasharray:28 72;animation:clinic-pulse 3s linear infinite}.heart-outline{stroke-width:2}
@keyframes clinic-pulse{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@media(max-width:1200px){.brand-mark{width:35px;flex-basis:35px}}
@media(max-width:700px){.stock-tools button.metric{padding:8px 6px}.brand-mark{width:35px;height:40px;flex-basis:35px}}
@media(prefers-reduced-motion:reduce){.heart-trace{animation:none;stroke-dasharray:none}}
