.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hero-search{background:#fff;border:1px solid var(--line);border-radius:16px;padding:.6rem;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.5rem;box-shadow:var(--shadow);margin-bottom:1.2rem}.hero-search>span{font-size:1.7rem;color:var(--muted);padding-left:.55rem}.hero-search input{border:0;outline:0;min-width:0;font-size:1.05rem;padding:.8rem;background:transparent}.find-search-panel .hero-search{margin-bottom:.8rem}.find-filters{margin-bottom:1rem}.result-meta{color:var(--muted);margin:1rem 0}.medicine-results{display:flex;flex-direction:column;gap:1rem}.medicine-result{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem}.medicine-result-head{display:flex;justify-content:space-between;gap:1rem;align-items:start}.medicine-result-head h2{margin-bottom:.2rem}.medicine-result-head p{margin:0;color:var(--muted)}.medicine-result-actions{display:flex;justify-content:flex-end;gap:.55rem;margin-top:1rem}.total-pill{border-radius:999px;padding:.35rem .7rem;background:var(--bg);color:var(--muted);font-size:.78rem;font-weight:700}.lot-result-list{margin-top:1rem;border-top:1px solid var(--line)}.lot-result{display:grid;grid-template-columns:auto 1fr auto auto;gap:1rem;align-items:center;padding:.8rem 0;border-bottom:1px solid var(--line)}.lot-result:last-child{border-bottom:0}.lot-result strong,.lot-result small{display:block}.lot-result small{color:var(--muted)}.box-chip{background:var(--navy);color:#fff;padding:.45rem .65rem;border-radius:9px;font-family:var(--display);font-weight:800}.fefo-badge{font-size:.72rem;color:var(--primary);background:var(--primary-soft);padding:.25rem .5rem;border-radius:999px}.find-empty{margin-top:1rem}.view-selector{width:max-content;margin-bottom:.5rem}.definition-list.single{grid-template-columns:1fr}.note-box{background:var(--amber-soft);border-radius:11px;padding:.85rem;margin-top:1rem;color:#76501b}
@media(max-width:720px){.hero-search{grid-template-columns:auto 1fr}.hero-search .btn{grid-column:1/3}.lot-result{grid-template-columns:auto 1fr auto}.fefo-badge{grid-column:2/4;width:max-content}.medicine-result-head{display:block}.medicine-result-actions{align-items:stretch;flex-direction:column}.medicine-result-actions .btn{width:100%}.total-pill{display:inline-block;margin-top:.6rem}.view-selector{width:100%;max-width:100%;overflow-x:auto}}
.full-field{grid-column:1/-1}.fields-muted{opacity:.38;pointer-events:none}.delivery-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.5fr);gap:1rem;align-items:start}.delivery-summary{position:sticky;top:96px}.delivery-summary dl{margin:1rem 0}.delivery-summary dl div{padding:.75rem 0;border-top:1px solid var(--line)}.delivery-summary dt{font-size:.72rem;color:var(--muted);text-transform:uppercase;font-weight:700}.delivery-summary dd{margin:.2rem 0 0;font-weight:700}.quantity-field{max-width:160px}.inline-details{border:1px solid var(--line);border-radius:12px;margin-top:.8rem}.inline-details summary{cursor:pointer;padding:.8rem 1rem;font-weight:700;color:var(--primary)}.inline-details>div{padding:0 1rem 1rem}.delivery-item-large{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--line)}.delivery-item-large h3{margin:0}.delivery-item-large p{margin:0;color:var(--muted)}.restock-card{max-width:1040px}
.restock-card .form-section{padding:1.25rem;border:1px solid var(--line);border-radius:16px;margin-bottom:1.25rem}.restock-card .form-section legend{padding:0 .45rem}.restock-card .manual-section{background:linear-gradient(145deg,#f3fbf8,#fff);border-color:#c9ded9}.restock-card .automatic-section{background:#f8fbfa}.manual-grid{grid-template-columns:repeat(4,1fr)}.existing-medicine-field{max-width:760px}.picker-divider{display:flex;align-items:center;gap:.8rem;margin:1.15rem 0;color:var(--faint);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.picker-divider:before,.picker-divider:after{content:"";height:1px;background:var(--line);flex:1}.aifa-combobox{position:relative;max-width:900px}.aifa-combobox>.form-control{padding-left:2.65rem;padding-right:3rem;font-size:1rem;min-height:52px;border-color:#a9c9c3;box-shadow:0 5px 18px rgba(22,49,47,.05)}.aifa-combobox>.form-control:focus{border-color:var(--primary)}.aifa-combobox.is-disabled{opacity:.5}.aifa-search-icon{position:absolute;left:.95rem;top:.62rem;font-size:1.45rem;color:var(--primary);z-index:1}.aifa-clear{position:absolute;right:.65rem;top:.58rem;width:34px;height:34px;border:0;border-radius:9px;background:var(--bg);color:var(--muted);font-size:1.25rem;cursor:pointer}.aifa-clear:hover{background:var(--line);color:var(--ink)}.aifa-results{position:absolute;left:0;right:0;top:calc(100% + .4rem);z-index:30;max-height:390px;overflow-y:auto;background:#fff;border:1px solid #bfd4d0;border-radius:14px;padding:.4rem;box-shadow:0 18px 45px rgba(22,49,47,.17)}.aifa-result{display:flex;flex-direction:column;width:100%;padding:.78rem .85rem;border:0;border-radius:10px;background:#fff;text-align:left;cursor:pointer}.aifa-result:hover,.aifa-result.is-active{background:var(--primary-soft)}.aifa-result strong{font-family:var(--display);font-size:.93rem}.aifa-result span{color:var(--ink);font-size:.85rem}.aifa-result small{color:var(--muted);font-size:.76rem;margin-top:.15rem}.aifa-results-status{margin:0;padding:1rem;color:var(--muted);text-align:center}.aifa-selection{display:grid;grid-template-columns:auto 1fr;gap:.75rem;align-items:center;margin-top:1rem;padding:.85rem 1rem;border:1px solid #b7d9d2;border-radius:12px;background:var(--primary-soft)}.aifa-selection.is-empty{border-style:dashed;background:#fafcfc;color:var(--muted)}.aifa-selection-mark{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:#fff;font-weight:900}.aifa-selection.is-empty .aifa-selection-mark{background:#dfe8e6;color:#82908e}.aifa-selection strong,.aifa-selection small{display:block}.aifa-selection small{color:var(--muted);margin-top:.1rem}.automatic-section input[readonly]{background:#edf3f1;color:#40514f;border-color:#d4e0de}.aifa-meta{display:grid;grid-template-columns:1.2fr 1fr .45fr 1.5fr;gap:.65rem;margin:1rem 0 0}.aifa-meta div{padding:.75rem;background:#fff;border:1px solid var(--line);border-radius:10px}.aifa-meta dt{font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800}.aifa-meta dd{margin:.2rem 0 0;font-size:.84rem;font-weight:650;overflow-wrap:anywhere}.aifa-documents{display:flex;gap:.55rem;margin-top:.75rem}.manual-medicine-toggle{display:flex;align-items:flex-start;gap:.75rem;margin-top:1.25rem;padding:1rem;border-top:1px solid var(--line);cursor:pointer}.manual-medicine-toggle input{margin-top:.2rem}.manual-medicine-toggle strong,.manual-medicine-toggle small{display:block}.manual-medicine-toggle small{color:var(--muted);font-weight:400}.manual-medicine-extra{padding-top:.5rem}
@media(max-width:900px){.delivery-layout{grid-template-columns:1fr}.delivery-summary{position:static;order:-1}.manual-grid{grid-template-columns:1fr 1fr}.aifa-meta{grid-template-columns:1fr 1fr}}@media(max-width:720px){.inline-form{display:block}.inline-form .btn{margin-top:.7rem;width:100%}.restock-card .form-section{padding:1rem}.manual-grid,.aifa-meta{grid-template-columns:1fr}.aifa-results{max-height:320px}.aifa-documents{flex-direction:column}.aifa-documents .btn{width:100%}}
.row-actions{display:flex;gap:.4rem;justify-content:flex-end}.row-actions form{margin:0}
.panel-spaced{margin-top:1rem}.movement-inline{display:inline-flex;padding:.25rem .5rem;border-radius:8px;font-weight:800}.movement-inline.positive{background:var(--primary-soft);color:var(--primary)}.movement-inline.negative{background:var(--red-soft);color:var(--red)}.remove-form{display:grid;grid-template-columns:180px 1fr auto;gap:.7rem;align-items:end}.inventory-input{max-width:120px;font-weight:800;font-size:1.1rem}.inventory-reason{margin-top:1rem;max-width:none}.lot-summary{margin-bottom:1rem}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;color:var(--muted);padding:1rem}.pagination a{color:var(--primary);font-weight:700}code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:var(--bg);padding:.15rem .35rem;border-radius:5px}
@media(max-width:720px){.remove-form{display:block}.remove-form>*{margin-top:.65rem}.row-actions{justify-content:flex-start}}
.guidance-head{margin-bottom:.75rem}.guidance-warning{max-width:920px}.guidance-start,.guidance-flow{max-width:920px}.choice-cards{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.choice-cards label,.problem-grid label{cursor:pointer}.choice-cards input,.problem-grid input{position:absolute;opacity:0}.choice-cards label>span,.problem-grid label>span{display:block;border:1px solid var(--line);border-radius:14px;padding:1rem;background:#fff;transition:.15s}.choice-cards label>span{text-align:center}.choice-cards b,.choice-cards small,.problem-grid small{display:block}.choice-cards small,.problem-grid small{color:var(--muted);margin-top:.25rem}.choice-cards input:checked+span,.problem-grid input:checked+span{border-color:var(--primary);box-shadow:0 0 0 3px rgba(12,102,94,.12);background:var(--primary-soft)}.problem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}.problem-grid label>span{height:100%;font-weight:700}.guidance-context{display:flex;align-items:center;gap:.7rem;padding-bottom:1rem;margin-bottom:1.25rem;border-bottom:1px solid var(--line)}.guidance-context a{margin-left:auto;color:var(--primary);font-weight:700}.guide-question{margin-bottom:1rem}.guidance-result{margin-top:1.2rem;max-width:920px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem}.red-flag-card{display:grid;grid-template-columns:auto 1fr;gap:1rem;background:var(--red-soft);border:1px solid #efcaca;border-radius:16px;padding:1.25rem}.red-flag-icon{width:52px;height:52px;background:var(--red);color:#fff;border-radius:50%;display:grid;place-items:center;font-size:1.7rem;font-weight:800}.guidance-lots{display:flex;flex-direction:column}.guidance-lots article{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:1rem;border-top:1px solid var(--line);padding:.9rem 0}.guidance-lots h3,.guidance-lots p{margin:0}.guidance-lots p{color:var(--muted)}.admin-cards{display:flex;flex-direction:column;gap:.7rem}.admin-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1rem;display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:1rem}.admin-card-icon{width:42px;height:42px;border-radius:12px;background:var(--primary-soft);color:var(--primary);font-size:1.3rem;font-weight:800;display:grid;place-items:center}.admin-card strong,.admin-card small{display:block}.admin-card small{color:var(--muted)}.admin-list{display:flex;flex-direction:column}.admin-list>a{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;padding:.75rem 0;border-top:1px solid var(--line)}.admin-list>a:first-child{border-top:0}.admin-list strong,.admin-list small{display:block}.admin-list small{color:var(--muted)}.order-chip{width:32px;height:32px;border-radius:9px;background:var(--bg);display:grid;place-items:center;font-weight:800}.rule-dot{width:11px;height:11px;border-radius:50%;background:var(--primary)}.rule-dot.red{background:var(--red)}.rule-form{max-width:1050px}.condition-builder{border:1px solid var(--line);border-radius:14px;padding:1rem;margin-top:1.5rem}.condition-builder legend{font-family:var(--display);font-weight:800;padding:0 .4rem}.condition-row{display:grid;grid-template-columns:1fr 200px 1fr auto;gap:.7rem;padding:.8rem 0;border-top:1px solid var(--line)}
@media(max-width:720px){.choice-cards,.problem-grid{grid-template-columns:1fr}.guidance-lots article{grid-template-columns:auto 1fr}.guidance-lots article>a{grid-column:1/3}.condition-row{grid-template-columns:1fr}.admin-card{grid-template-columns:auto 1fr}.admin-card>*:nth-last-child(-n+2){grid-column:2}}
.delivery-form-card{max-width:1120px;margin:0 auto}.delivery-section{border-bottom:1px solid var(--line);padding-bottom:1.7rem;margin-bottom:1.7rem}.delivery-section legend{font-size:1.3rem}.operator-section{background:linear-gradient(145deg,var(--primary-soft),#fff);border:1px solid #c5ddd8;border-radius:15px;padding:1.1rem 1.2rem;margin-bottom:1.7rem}.assisted-picker-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.75rem}.new-assisted-button{height:45px}.delivery-combobox{position:relative}.delivery-combobox>.form-control{padding-right:3.2rem;min-height:48px}.combobox-search-button{position:absolute;right:.35rem;top:.35rem;width:38px;height:38px;border:0;border-radius:9px;background:var(--primary-soft);color:var(--primary);font-size:1.35rem;font-weight:800;cursor:pointer}.combobox-search-button:hover,.combobox-search-button:focus-visible{background:var(--primary);color:#fff;outline:2px solid rgba(19,130,119,.18)}.delivery-suggestions{position:absolute;z-index:35;top:calc(100% + .35rem);left:0;right:0;max-height:360px;overflow-y:auto;background:#fff;border:1px solid #bfd4d0;border-radius:13px;padding:.35rem;box-shadow:0 18px 42px rgba(22,49,47,.18)}.delivery-suggestion{width:100%;border:0;background:#fff;border-radius:9px;padding:.7rem .8rem;text-align:left;display:flex;flex-direction:column;cursor:pointer}.delivery-suggestion:hover,.delivery-suggestion.is-active{background:var(--primary-soft)}.delivery-suggestion strong{font-family:var(--display)}.delivery-suggestion span{font-size:.82rem}.delivery-suggestion small{color:var(--muted);font-size:.75rem}.delivery-suggestions-status{padding:.9rem;margin:0;text-align:center;color:var(--muted)}.assisted-selection,.delivery-line-selection{margin-top:.7rem;border:1px solid #cbdedb;border-radius:11px;background:#f8fbfa;padding:.75rem .85rem;display:flex;align-items:center;gap:.7rem}.assisted-selection>span{width:32px;height:32px;border-radius:9px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-weight:800}.assisted-selection strong,.assisted-selection small,.delivery-line-selection strong,.delivery-line-selection small{display:block}.assisted-selection small,.delivery-line-selection small{color:var(--muted)}.assisted-selection.is-empty,.delivery-line-selection.is-empty{border-style:dashed;color:var(--muted)}.delivery-lines{display:flex;flex-direction:column;gap:.9rem}.delivery-line{border:1px solid var(--line);border-radius:14px;padding:1rem;background:#fbfdfd}.delivery-line[hidden]{display:none}.delivery-line-hidden{display:none}.delivery-line-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.delivery-line-head h3{margin:0;font-size:1.02rem}.line-remove{border:0;background:transparent;color:var(--red);font-size:.8rem;font-weight:750;cursor:pointer}.delivery-line-grid{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:.75rem;align-items:end}.delivery-line-selection{justify-content:space-between}.fefo-preview{margin-top:.65rem;padding:.7rem .8rem;background:var(--primary-soft);border-radius:10px;font-size:.79rem}.fefo-preview strong,.fefo-preview span{display:block}.fefo-preview span{color:var(--muted);margin-top:.12rem}.fefo-preview .text-danger{color:var(--red)}.add-delivery-line{margin-top:.9rem}.duplicate-notice{margin:.8rem 0 0}.delivery-review{background:#f7faf9;border:1px solid #cbdedb;border-radius:16px;padding:1.15rem;margin-top:.5rem}.delivery-review dl{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:0 0 1rem}.delivery-review dl>div{background:#fff;border:1px solid var(--line);border-radius:10px;padding:.75rem}.delivery-review .summary-medicines{grid-column:1/-1}.delivery-review dt{font-size:.68rem;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.07em}.delivery-review dd{margin:.2rem 0 0;font-weight:700}.delivery-review [data-summary-medicines]{display:flex;flex-direction:column;gap:.2rem}.delivery-submit{display:flex;justify-content:flex-end;gap:.7rem;align-items:center;margin-top:1rem}.selection-modal{width:min(760px,calc(100% - 2rem));max-height:min(86vh,850px);border:0;border-radius:20px;padding:1.25rem;background:#fff;color:var(--ink);box-shadow:0 25px 80px rgba(12,43,40,.28)}.selection-modal::backdrop{background:rgba(9,37,35,.52);backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:.8rem;margin-bottom:1rem}.modal-head h2{font-size:1.45rem}.modal-close{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:1.4rem;cursor:pointer}.modal-search{position:relative;margin-bottom:.8rem}.modal-search input{padding-right:2.6rem}.modal-search>span{position:absolute;right:.9rem;top:.52rem;color:var(--primary);font-size:1.25rem}.modal-results{display:flex;flex-direction:column;gap:.45rem;min-height:160px;max-height:58vh;overflow-y:auto;padding:.1rem}.modal-results>.delivery-suggestion{border:1px solid var(--line)}.modal-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1rem}.medicine-modal{width:min(880px,calc(100% - 2rem))}.medicine-modal-result{border:1px solid var(--line);border-radius:13px;padding:.85rem}.medicine-modal-result-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.medicine-modal-result-head strong,.medicine-modal-result-head small{display:block}.medicine-modal-result-head small{color:var(--muted)}.modal-lot-list{margin-top:.65rem;border-top:1px solid var(--line)}.modal-lot-list>div{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.55rem 0;border-bottom:1px solid #edf2f1;font-size:.78rem}.modal-lot-list>div:last-child{border-bottom:0}
@media(max-width:900px){.delivery-form-card{max-width:none}.selection-modal{max-height:92vh}.modal-results{max-height:62vh}}
@media(max-width:720px){.assisted-picker-row{grid-template-columns:1fr}.new-assisted-button{width:100%}.delivery-line-grid{grid-template-columns:1fr 90px}.delivery-line-selection{align-items:flex-start;flex-direction:column}.delivery-review dl{grid-template-columns:1fr}.delivery-review .summary-medicines{grid-column:auto}.delivery-submit{position:sticky;bottom:4.25rem;z-index:10;background:#fff;border-top:1px solid var(--line);padding:.8rem 0}.delivery-submit .btn{flex:1}.selection-modal{width:calc(100% - 1rem);padding:1rem;border-radius:16px}.medicine-modal-result-head,.modal-lot-list>div{align-items:stretch;flex-direction:column}.modal-lot-list .btn{width:100%}}

[data-occasional-operator][hidden]{display:none!important}.assisted-delivery-data{margin-top:1rem}.delivery-validation{margin:1rem 0 0}.assisted-personal-panel{margin-bottom:1rem}.assisted-personal-data{grid-template-columns:repeat(3,minmax(0,1fr))}.delivery-sheet-modal{width:min(820px,calc(100% - 2rem))}.sheet-personal-data{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin:0}.sheet-personal-data>div{background:#f6faf9;border:1px solid var(--line);border-radius:11px;padding:.75rem}.sheet-personal-data dt{font-size:.68rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.sheet-personal-data dd{margin:.18rem 0 0;font-weight:750}.sheet-products{margin-top:1.3rem}.sheet-products h3{margin-bottom:.5rem}.sheet-products article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem 1rem;padding:.8rem 0;border-top:1px solid var(--line)}.sheet-products article strong,.sheet-products article small{display:block}.sheet-products article small{color:var(--muted)}.sheet-products article ul{grid-column:1/-1;margin:.25rem 0 0;padding-left:1.2rem;color:var(--muted);font-size:.82rem}.sheet-quantity{font-family:var(--display);font-weight:850;color:var(--primary)}.sheet-footer-meta{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;border-top:1px solid var(--line);padding-top:.8rem;color:var(--muted);font-size:.84rem}.assisted-deliveries-panel .table-card{margin-bottom:0}
@media(max-width:720px){.assisted-personal-data,.sheet-personal-data{grid-template-columns:1fr}.delivery-sheet-modal{width:calc(100% - 1rem)}.sheet-products article{grid-template-columns:1fr auto}}
.delivery-register-items{display:block;color:var(--muted);margin-top:.2rem;max-width:520px}.delivery-product-group{padding:1rem 0;border-top:1px solid var(--line)}.delivery-product-group:first-of-type{border-top:0;padding-top:0}.delivery-product-group>h3,.delivery-product-group>p{margin:0}.delivery-product-group>p{color:var(--muted);font-size:.85rem}.delivery-allocation{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.7rem;margin-top:.65rem;padding:.65rem;background:var(--bg);border-radius:11px}.delivery-allocation strong,.delivery-allocation small{display:block}.delivery-allocation small{color:var(--muted)}
.guidance-disclaimer{display:flex;align-items:center;gap:.6rem;max-width:920px;padding:.7rem .85rem;margin-bottom:1rem;border:1px solid #cfe0dd;border-radius:11px;background:#f8fbfa;font-size:.82rem}.guidance-disclaimer strong{color:var(--primary)}.guidance-disclaimer span{color:var(--muted)}.guidance-source{display:block;color:var(--primary);font-size:.8rem;font-weight:700;margin:-.4rem 0 .8rem}.guidance-products{display:flex;flex-direction:column}.guidance-products article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:1rem;padding:1rem 0;border-top:1px solid var(--line)}.guidance-products h3,.guidance-products p{margin:0}.guidance-products p,.guidance-products small{color:var(--muted)}.guidance-products small{display:block}.guidance-product-stock{text-align:right}.guidance-product-stock strong,.guidance-product-stock span{display:block}.guidance-product-stock span{color:var(--muted);font-size:.8rem}
@media(max-width:720px){.guidance-disclaimer{align-items:flex-start;flex-direction:column;gap:.1rem}.guidance-products article{grid-template-columns:1fr}.guidance-product-stock{text-align:left}.guidance-products article .btn{width:100%}}

.drug-name-with-leaflet{display:inline-flex;align-items:center;gap:.38rem;max-width:100%;vertical-align:middle}.drug-name-with-leaflet .drug-name{min-width:0}.leaflet-icon{display:inline-grid;place-items:center;flex:0 0 auto;width:27px;height:27px;border:1px solid #bfd5d1;border-radius:8px;background:#f4faf8;color:var(--primary);font-size:.86rem;line-height:1;transition:.15s}.leaflet-icon:hover,.leaflet-icon:focus-visible{background:var(--primary);border-color:var(--primary);color:#fff;outline:3px solid rgba(19,130,119,.16);outline-offset:1px}.leaflet-icon.is-unlinked{background:#f3f5f5;border-color:#d7dfde;color:#7f8c8a}.document-icon.large{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--primary-soft);color:var(--primary);font-size:1.7rem}.document-icon.muted{background:#edf1f1;color:#7f8c8a}.leaflet-fallback{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;max-width:760px}.leaflet-fallback h2,.leaflet-fallback p{flex-basis:calc(100% - 75px)}.leaflet-fallback .btn{margin-top:.35rem}

.guidance-app{width:min(980px,100%);margin:0 auto}.guidance-app-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:.8rem}.guidance-app-head h1{margin-bottom:0}.guidance-stage{padding:clamp(1.25rem,4vw,2.4rem);min-height:380px;display:flex;flex-direction:column}.guidance-step-label{color:var(--primary);font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800}.guidance-stage h2{font-size:clamp(1.5rem,3vw,2.15rem);margin:.55rem 0 .35rem}.guidance-help{color:var(--muted);max-width:680px}.guidance-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1.1rem 0}.guidance-choices.is-loading{opacity:.55;pointer-events:none}.guidance-choice{min-height:78px;border:1px solid #c8d9d6;border-radius:14px;background:#fff;padding:1rem 1.1rem;text-align:left;cursor:pointer;transition:.15s}.guidance-choice:hover,.guidance-choice:focus-visible{border-color:var(--primary);background:var(--primary-soft);outline:3px solid rgba(19,130,119,.12);outline-offset:1px}.guidance-choice.is-selected{border-color:var(--primary);background:var(--primary-soft);box-shadow:inset 0 0 0 1px var(--primary)}.guidance-choice strong,.guidance-choice small{display:block}.guidance-choice strong{text-transform:uppercase;letter-spacing:.02em}.guidance-choice small{color:var(--muted);margin-top:.2rem}.guidance-nav{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:1rem}.guidance-progress{height:5px;background:#dfe9e7;border-radius:999px;overflow:hidden;margin:0 0 1rem}.guidance-progress span{display:block;height:100%;width:0;background:var(--primary);border-radius:inherit;transition:width .25s ease}.guidance-version{margin:1rem 0;text-align:center;color:var(--muted);font-size:.76rem}.guidance-final-card{margin-top:1rem}.guidance-final-nav{display:flex;justify-content:flex-start;margin-top:1rem}.guidance-products{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:0 1.2rem}.guidance-products article{grid-template-columns:minmax(0,1fr) minmax(190px,auto) minmax(170px,auto)}.guidance-why,.guidance-warnings{margin-top:.5rem;font-size:.8rem}.guidance-why summary,.guidance-warnings summary{cursor:pointer;color:var(--primary);font-weight:750}.guidance-why p,.guidance-warnings p{margin:.45rem 0}.guidance-why a{display:block;color:var(--primary);margin-top:.25rem}.guidance-product-actions{display:flex;flex-direction:column;align-items:stretch;gap:.55rem}.guidance-product-actions .btn{width:100%}
@media(max-width:760px){.guidance-app-head{align-items:flex-start}.guidance-choices{grid-template-columns:1fr}.guidance-stage{min-height:460px}.guidance-choice{min-height:72px}.guidance-products article{grid-template-columns:1fr}.guidance-product-stock{text-align:left}.guidance-product-actions{width:100%}.leaflet-fallback{display:block}.leaflet-fallback h2,.leaflet-fallback p{margin-top:.8rem}.drug-name-with-leaflet{align-items:flex-start}}

.restock-total-grid{max-width:650px;margin-bottom:1rem}.restock-expiry-table{display:flex;flex-direction:column;gap:.5rem;max-width:760px;margin-bottom:.75rem}.restock-expiry-head,.restock-expiry-row{display:grid;grid-template-columns:minmax(140px,.35fr) minmax(220px,.65fr) 110px;gap:.65rem;align-items:center}.restock-expiry-head{padding:0 .2rem;color:var(--muted);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.restock-expiry-row{padding:.65rem;border:1px solid var(--line);border-radius:12px;background:#fff}.restock-expiry-row .field{margin:0}.restock-expiry-delete input{display:none}.restock-allocation-status{max-width:760px;margin:.75rem 0 1rem;padding:.65rem .8rem;border-radius:10px;background:var(--bg);color:var(--muted);font-weight:700;font-size:.84rem}.restock-allocation-status.is-pending{background:var(--amber-soft);color:#85500d}.restock-allocation-status.is-error{background:var(--red-soft);color:var(--red)}.restock-allocation-status.is-complete{background:var(--primary-soft);color:var(--primary)}
@media(max-width:720px){.restock-expiry-head{display:none}.restock-expiry-row{grid-template-columns:1fr 1fr}.restock-expiry-delete{grid-column:1/-1}.restock-expiry-delete .line-remove{width:100%;text-align:left}}

/* Restock compatto: un solo campo per catalogo ufficiale e farmaci registrati. */
.catalog-picker-row{display:grid;grid-template-columns:minmax(0,1fr) 52px;gap:.55rem;max-width:900px;align-items:stretch}.catalog-picker-row .aifa-combobox{max-width:none}.registered-picker{position:relative}.registered-toggle{width:52px;height:52px;border:1px solid #a9c9c3;border-radius:11px;background:#fff;color:var(--primary);cursor:pointer;font-size:1.45rem;display:grid;place-items:center}.registered-toggle:hover,.registered-toggle:focus-visible,.registered-toggle[aria-expanded="true"]{background:var(--primary-soft);border-color:var(--primary);outline:0}.registered-toggle:disabled{opacity:.45;cursor:not-allowed}.registered-menu{position:absolute;right:0;top:calc(100% + .45rem);z-index:42;width:min(430px,calc(100vw - 2rem));max-height:390px;overflow:auto;background:#fff;border:1px solid #bfd4d0;border-radius:14px;padding:.75rem;box-shadow:0 18px 45px rgba(22,49,47,.17)}.registered-menu>strong,.registered-menu>small{display:block}.registered-menu>small{color:var(--muted);margin:.12rem 0 .65rem}.registered-options{display:flex;flex-direction:column;gap:.25rem}.registered-options button{border:0;border-radius:9px;background:#fff;padding:.65rem .7rem;text-align:left;cursor:pointer}.registered-options button:hover,.registered-options button:focus-visible{background:var(--primary-soft);outline:0}.registered-options button strong,.registered-options button small{display:block}.registered-options button small,.registered-empty{color:var(--muted)}.registered-empty{padding:.65rem}.restock-stock-block{margin-top:1.35rem;padding-top:1.25rem;border-top:1px solid #c9ded9}.restock-stock-block h2{font-size:1.02rem;margin-bottom:.2rem}.stock-notes-field{margin-top:1.15rem;padding-top:1rem;border-top:1px solid var(--line)}
.aifa-combobox input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}

/* Restock essenziale: dati ufficiali disponibili solo quando servono. */
.restock-aifa-details{margin:0 0 1.25rem;border:1px solid var(--line);border-radius:14px;background:#f8fbfa;overflow:hidden}.restock-aifa-details>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1rem;cursor:pointer;list-style:none}.restock-aifa-details>summary::-webkit-details-marker{display:none}.restock-aifa-details>summary:hover,.restock-aifa-details>summary:focus-visible{background:#f1f7f5;outline:0}.restock-aifa-details>summary strong,.restock-aifa-details>summary small{display:block}.restock-aifa-details>summary small{color:var(--muted);font-size:.78rem;margin-top:.1rem}.restock-aifa-details .details-chevron{width:30px;height:30px;border-radius:8px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:1.1rem;transition:transform .18s ease}.restock-aifa-details[open] .details-chevron{transform:rotate(180deg)}.restock-aifa-details-body{padding:1rem;border-top:1px solid var(--line)}.restock-notes-section{padding:1.1rem!important;border:1px solid var(--line)!important;border-radius:14px!important;background:#fff!important}.restock-notes-section legend{padding:0 .45rem}.restock-card>.restock-aifa-details+ .restock-notes-section{margin-top:0}

/* Consegna più lineare: meno contenitori visivi e riepilogo compatto. */
.delivery-form-card{padding-top:1.45rem}.delivery-form-card .delivery-section{padding-bottom:1.35rem;margin-bottom:1.35rem}.delivery-form-card .operator-section{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 1.35rem}.delivery-form-card .assisted-selection{padding:.62rem .75rem;background:#fbfdfd}.delivery-form-card .delivery-line{padding:.85rem .9rem;background:#fff}.delivery-edit-notice{margin-bottom:1.35rem}.delivery-review{background:transparent;border:1px solid var(--line);border-left:4px solid var(--primary);border-radius:12px;padding:.85rem 1rem;margin-top:.25rem}.delivery-review-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.7rem}.delivery-review-head .eyebrow{margin:0 0 .05rem}.delivery-review-head>small{color:var(--muted);font-size:.76rem}.delivery-review dl{grid-template-columns:.8fr .9fr 2fr;gap:0;margin:0}.delivery-review dl>div{background:transparent;border:0;border-left:1px solid var(--line);border-radius:0;padding:.35rem .8rem}.delivery-review dl>div:first-child{border-left:0;padding-left:0}.delivery-review .summary-medicines{grid-column:auto}.delivery-review-more{border-top:1px solid var(--line);margin-top:.65rem;padding-top:.55rem}.delivery-review-more>summary{color:var(--primary);font-size:.78rem;font-weight:750;cursor:pointer;list-style-position:inside}.delivery-review-more dl{grid-template-columns:1fr 1fr 1.3fr;margin-top:.55rem}.delivery-submit{position:sticky;bottom:1rem;z-index:12;width:max-content;margin-left:auto;padding:.55rem;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:13px;box-shadow:0 10px 28px rgba(22,49,47,.12);backdrop-filter:blur(10px)}.historical-manual-entry{min-width:0}.manual-entry-toggle{border:0;background:transparent;color:var(--primary);font-size:.78rem;font-weight:750;padding:.5rem 0 0;cursor:pointer}.manual-entry-toggle:hover,.manual-entry-toggle:focus-visible{text-decoration:underline;outline:0}.modal-manual-action{border-top:1px solid var(--line);padding-top:.85rem}.delivery-line-grid>.historical-manual-entry{grid-column:1}

@media(max-width:720px){.restock-aifa-details-body{padding:.8rem}.restock-notes-section .form-grid{grid-template-columns:1fr}.delivery-review-head{align-items:flex-start;flex-direction:column;gap:.2rem}.delivery-review dl,.delivery-review-more dl{grid-template-columns:1fr}.delivery-review dl>div,.delivery-review dl>div:first-child{border-left:0;border-top:1px solid var(--line);padding:.45rem 0}.delivery-review dl>div:first-child{border-top:0}.delivery-review .summary-medicines{grid-column:auto}.delivery-submit{bottom:4.25rem;width:100%;padding:.7rem}.delivery-line-grid>.historical-manual-entry{grid-column:auto}}

/* Risultati Trova in schede compatte. */
.medicine-tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(275px,1fr));gap:.8rem;align-items:stretch}.medicine-tile{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:15px;padding:1rem;box-shadow:0 4px 16px rgba(22,49,47,.035);transition:.16s ease}.medicine-tile:hover{border-color:#bdd3cf;box-shadow:0 8px 24px rgba(22,49,47,.08);transform:translateY(-2px)}.medicine-tile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.65rem}.medicine-tile-head h2{font-size:1rem;line-height:1.25;margin:0}.medicine-tile-head p{font-size:.78rem;color:var(--muted);margin:.22rem 0 0;line-height:1.3}.medicine-tile-head .total-pill{flex:none;min-width:34px;text-align:center;background:var(--primary-soft);color:var(--primary)}.medicine-tile-meta{display:flex;gap:.3rem;flex-wrap:wrap;margin:.65rem 0}.medicine-tile-meta span{padding:.18rem .42rem;border-radius:6px;background:var(--bg);color:var(--muted);font-size:.67rem}.compact-stock-list{display:flex;flex-direction:column;border-top:1px solid var(--line);margin-top:.15rem}.compact-stock-row{display:grid;grid-template-columns:auto auto 1fr auto;gap:.55rem;align-items:center;padding:.48rem 0;border-bottom:1px solid #edf2f1;font-size:.76rem}.compact-stock-row strong,.compact-stock-row small{display:block}.compact-stock-row small{color:var(--muted);font-size:.65rem}.compact-shelf{width:34px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:800}.compact-fefo{font-size:.62rem;font-weight:800;color:var(--primary);background:var(--primary-soft);border-radius:999px;padding:.18rem .35rem}.compact-fefo.is-alert{color:var(--red);background:var(--red-soft)}.more-stock{font-size:.72rem;color:var(--primary);font-weight:700;padding:.48rem 0}.compact-empty-stock{padding:.75rem;background:var(--amber-soft);color:#85500d;border-radius:9px;font-size:.75rem}.medicine-tile-actions{display:flex;gap:.45rem;margin-top:auto;padding-top:.75rem}.medicine-tile-actions .btn{flex:1}.medicine-grid-empty{grid-column:1/-1}

@media(max-width:720px){.catalog-picker-row{grid-template-columns:minmax(0,1fr) 48px}.registered-toggle{width:48px;height:52px}.medicine-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.medicine-tile{padding:.75rem}.medicine-tile-head{display:block}.medicine-tile-head .total-pill{display:inline-block;margin-top:.4rem}.medicine-tile-meta{display:none}.compact-stock-row{grid-template-columns:auto auto 1fr}.compact-fefo{display:none}.medicine-tile-actions{flex-direction:column}.medicine-tile-actions .btn{width:100%}}
@media(max-width:430px){.medicine-tile-grid{grid-template-columns:1fr}}

/* Trova: una sola sintesi per prodotto; scadenze e scaffali restano consultabili. */
.compact-stock-list{gap:.45rem;border-top:0}
.compact-stock-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;padding:.5rem;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.compact-stock-overview>span{min-width:0;display:flex;flex-direction:column;gap:.12rem}
.compact-stock-overview small{color:var(--muted);font-size:.58rem;font-weight:750;text-transform:uppercase;letter-spacing:.035em}
.compact-stock-overview strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;font-variant-numeric:tabular-nums}
.compact-stock-details{border-top:1px solid var(--line)}
.compact-stock-details>summary{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:.5rem;cursor:pointer;color:var(--primary);font-size:.72rem;font-weight:750;list-style:none}
.compact-stock-details>summary::-webkit-details-marker{display:none}
.compact-stock-details>summary:before{content:"›";flex:none;transition:transform .16s ease}
.compact-stock-details[open]>summary:before{transform:rotate(90deg)}
.compact-stock-details>summary>span{margin-right:auto}
.compact-stock-details>summary small{color:var(--muted);font-size:.62rem;font-weight:650}
.compact-stock-groups{max-height:220px;overflow:auto;border-top:1px solid var(--line)}
.compact-stock-groups .compact-stock-row:last-child{border-bottom:0}
.medicine-tile-actions form{display:flex;flex:1;margin:0}
.medicine-tile-actions form .btn{width:100%}

@media(max-width:720px){.compact-stock-overview{padding:.45rem}.compact-stock-overview small{font-size:.54rem}.compact-stock-overview strong{font-size:.7rem}}

/* Navigazione contestuale comune a tutte le pagine interne. */
.page-back-nav{display:flex;align-items:center;min-height:36px;margin:0 0 .65rem}
.page-back-link{min-height:36px;display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .7rem .35rem .55rem;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.74);color:var(--muted);font-size:.78rem;font-weight:750;box-shadow:0 3px 10px rgba(22,49,47,.04);cursor:pointer;appearance:none;transition:.16s ease}
.page-back-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.page-back-link:hover{color:var(--primary);border-color:#b8d2ce;background:#fff;transform:translateX(-1px)}
.page-back-link:focus-visible{outline:3px solid rgba(19,130,119,.18);outline-offset:1px}
@media(max-width:720px){.page-back-nav{margin-bottom:.45rem}.page-back-link{min-height:34px;padding:.3rem .65rem .3rem .5rem}}

/* Stock: una riga per prodotto, con le singole scadenze consultabili. */
.stock-grouped-table{table-layout:fixed}
.stock-grouped-table th:nth-child(1){width:31%}.stock-grouped-table th:nth-child(2){width:23%}.stock-grouped-table th:nth-child(3){width:12%}.stock-grouped-table th:nth-child(4){width:12%}.stock-grouped-table th:nth-child(5){width:12%}.stock-grouped-table th:nth-child(6){width:10%}
.stock-next-expiry{display:inline-block;font-weight:800;font-variant-numeric:tabular-nums}
.stock-expiry-disclosure{margin-top:.3rem;max-width:430px}
.stock-expiry-disclosure>summary{display:inline-flex;align-items:center;gap:.35rem;color:var(--primary);font-size:.72rem;font-weight:750;cursor:pointer;list-style:none}
.stock-expiry-disclosure>summary::-webkit-details-marker{display:none}
.stock-expiry-disclosure>summary:before{content:"›";transition:transform .16s ease}
.stock-expiry-disclosure[open]>summary:before{transform:rotate(90deg)}
.stock-expiry-list{display:flex;flex-direction:column;gap:.28rem;margin-top:.45rem;padding:.45rem;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.stock-expiry-item{display:grid;grid-template-columns:minmax(96px,1fr) 76px auto;align-items:center;gap:.55rem;padding:.35rem .4rem;border-radius:7px;background:#fff}
.stock-expiry-item>span>strong,.stock-expiry-item>span>small{display:block}.stock-expiry-item>span>small{color:var(--muted);font-size:.62rem}.stock-expiry-item .badge{justify-self:end}
.stock-merged-note{grid-column:1/-1;color:var(--muted);font-size:.62rem}
.stock-shelf-link{display:inline-flex;min-width:28px;justify-content:center}
.stock-row-actions{display:flex;flex-direction:column;gap:.35rem;align-items:stretch}.stock-row-actions form{display:flex;margin:0}.stock-row-actions .btn{width:100%}
.lot-registration-date{display:block;margin-top:.18rem;color:var(--muted);font-size:.64rem;white-space:nowrap}.lot-row-actions{display:flex;align-items:center;gap:.4rem}.lot-row-actions form{display:flex;margin:0}.btn-icon-danger{width:36px;height:36px;display:inline-grid;place-items:center;flex:0 0 36px;padding:0;border:1px solid #edc8cb;border-radius:10px;background:var(--red-soft);color:var(--red);cursor:pointer;transition:.16s ease}.btn-icon-danger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.btn-icon-danger:hover{border-color:var(--red);background:#f9dfe1}.btn-icon-danger:focus-visible{outline:3px solid rgba(190,54,61,.18);outline-offset:1px}
.medicine-delete-zone>summary{cursor:pointer;color:var(--red);font-weight:800;list-style:none}.medicine-delete-zone>summary::-webkit-details-marker{display:none}.medicine-delete-zone>summary:before{content:"›";display:inline-block;margin-right:.5rem;transition:transform .16s ease}.medicine-delete-zone[open]>summary:before{transform:rotate(90deg)}.medicine-delete-zone>div{padding-top:.9rem}.medicine-delete-zone>div p{max-width:980px}
@media(max-width:900px){.stock-grouped-table{table-layout:auto}.stock-expiry-disclosure{display:inline-block;margin:.15rem 0 0 .45rem;vertical-align:middle}.stock-expiry-list{min-width:min(430px,70vw)}}
@media(max-width:720px){.stock-expiry-disclosure{display:block;margin:.35rem 0 0}.stock-expiry-list{min-width:0}.stock-expiry-item{grid-template-columns:minmax(90px,1fr) 70px auto}.stock-grouped-table td[data-label]:before{vertical-align:top}}
.historical-date-section{border-color:#efd4a8!important;background:#fffaf2}.historical-date-field{max-width:360px}

@media(min-width:721px){.delivery-submit{position:static;bottom:auto;background:#fff;backdrop-filter:none}}

/* Selettore catalogo/manuale del Restock. */
/* Riepilogo dei prodotti abituali nella scheda assistito. */
.assisted-medicines-panel{margin-top:1rem}.assisted-medicine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.assisted-medicine-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.75rem;padding:.85rem;border:1px solid var(--line);border-radius:12px;background:#fbfdfd;transition:.16s}.assisted-medicine-card:hover,.assisted-medicine-card:focus-visible{border-color:#b7d3ce;background:var(--primary-soft);transform:translateY(-1px);outline:0}.assisted-medicine-mark{width:34px;height:34px;border-radius:10px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-weight:850}.assisted-medicine-card strong,.assisted-medicine-card small{display:block}.assisted-medicine-card strong{font-size:.9rem}.assisted-medicine-card small{color:var(--muted);font-size:.72rem;margin-top:.1rem}.assisted-medicines-empty{grid-column:1/-1}
.restock-mode-toggle{display:flex;align-items:center;gap:.75rem;width:max-content;max-width:100%;margin:0 0 1rem;padding:.72rem .85rem;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer}.restock-mode-toggle>input{position:absolute;opacity:0;pointer-events:none}.restock-mode-switch{position:relative;flex:0 0 auto;width:42px;height:24px;border-radius:999px;background:#cbd8d6;transition:.18s}.restock-mode-switch:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(22,49,47,.2);transition:.18s}.restock-mode-toggle>input:checked+.restock-mode-switch{background:var(--primary)}.restock-mode-toggle>input:checked+.restock-mode-switch:after{transform:translateX(18px)}.restock-mode-toggle>input:focus-visible+.restock-mode-switch{outline:3px solid rgba(19,130,119,.18);outline-offset:2px}.restock-mode-toggle strong,.restock-mode-toggle small{display:block}.restock-mode-toggle small{color:var(--muted);font-weight:400;font-size:.76rem}.restock-manual-entry{max-width:900px;padding:1rem;border:1px solid #efd4a8;border-radius:13px;background:#fffaf2}.restock-manual-entry .form-control{font-size:1rem;min-height:52px;border-color:#d9bd8f}
@media(max-width:720px){.restock-mode-toggle{width:100%;align-items:flex-start}.assisted-medicine-grid{grid-template-columns:1fr}}

/* Ricerca rapida accessibile dentro la tassonomia completa dei sintomi. */
.symptom-search-field{min-width:240px!important;flex:1.25!important}.symptom-typeahead{position:relative}.symptom-typeahead>.form-control{padding-right:2.55rem}.symptom-search-clear{position:absolute;right:.4rem;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:1.25rem;cursor:pointer;z-index:2}.symptom-search-clear:hover,.symptom-search-clear:focus-visible{background:var(--primary-soft);color:var(--primary);outline:2px solid rgba(19,130,119,.18)}.symptom-suggestions{min-width:min(430px,calc(100vw - 2rem));z-index:46}.symptom-suggestion small{margin-top:.12rem}.symptom-suggestion strong{font-size:.88rem}
@media(max-width:720px){.symptom-search-field{min-width:100%!important}.symptom-suggestions{min-width:100%}}

/* Ambito della tassonomia sintomi: per impostazione predefinita solo ciò che è disponibile. */
.symptom-list-field{position:relative;min-width:235px!important}.symptom-menu{position:relative}.symptom-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:.7rem;width:100%;min-height:45px;padding:.72rem .8rem;border:1px solid #cfdcda;border-radius:10px;background:#fff;cursor:pointer;list-style:none;font-weight:500}.symptom-menu>summary::-webkit-details-marker{display:none}.symptom-menu>summary:hover,.symptom-menu>summary:focus-visible,.symptom-menu[open]>summary{border-color:var(--primary);outline:3px solid rgba(19,130,119,.14);outline-offset:1px}.symptom-menu-chevron{color:var(--primary);transition:transform .16s}.symptom-menu[open] .symptom-menu-chevron{transform:rotate(180deg)}.symptom-menu-popover{position:absolute;left:0;right:0;top:calc(100% + .45rem);z-index:48;min-width:310px;max-height:390px;display:flex;flex-direction:column;border:1px solid #bfd4d0;border-radius:13px;background:#fff;box-shadow:0 18px 45px rgba(22,49,47,.17);overflow:hidden}.symptom-menu-options{overflow:auto;padding:.45rem}.symptom-menu-group{display:block;padding:.55rem .55rem .28rem;color:var(--faint);font-size:.64rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.symptom-menu-option{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.7rem;width:100%;padding:.58rem .6rem;border:0;border-radius:8px;background:#fff;text-align:left;cursor:pointer}.symptom-menu-option:hover,.symptom-menu-option:focus-visible{background:var(--primary-soft);outline:0}.symptom-menu-option.is-selected{background:var(--primary-soft);color:var(--primary);font-weight:750}.symptom-menu-option small{color:var(--muted);font-size:.67rem;font-weight:600}.symptom-scope-toggle{display:flex;align-items:center;gap:.5rem;margin:0;padding:.72rem .85rem;border-top:1px solid var(--line);background:#f8fbfa;color:var(--ink);font-size:.75rem!important;font-weight:700!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer}.symptom-scope-toggle input{width:17px;height:17px;margin:0;accent-color:var(--primary)}
@media(max-width:720px){.symptom-menu-popover{position:fixed;left:1rem;right:1rem;top:auto;bottom:5.25rem;max-height:min(520px,65vh);min-width:0}.symptom-menu>summary{border-radius:8px}}

/* Selezione visuale del tema nelle Impostazioni. */
.settings-form{max-width:1050px}.settings-theme-section,.settings-general-section{border:0;margin:0 0 1.25rem;padding:1.25rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.settings-theme-section legend,.settings-general-section legend{padding:0 .35rem;font-family:var(--display);font-weight:800;font-size:1.1rem}.theme-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.theme-choice{position:relative;display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:1rem;padding:1rem;border:2px solid var(--line);border-radius:15px;background:#fff;cursor:pointer;transition:.18s}.theme-choice:hover{border-color:#b2ccc7;transform:translateY(-1px)}.theme-choice>input{position:absolute;opacity:0;pointer-events:none}.theme-choice:has(input:checked){border-color:var(--primary);box-shadow:0 0 0 3px rgba(19,130,119,.11)}.theme-choice:has(input:focus-visible){outline:3px solid rgba(19,130,119,.22);outline-offset:2px}.theme-choice-copy strong,.theme-choice-copy small{display:block}.theme-choice-copy strong{font-family:var(--display);font-size:1rem}.theme-choice-copy small{color:var(--muted);font-size:.78rem;line-height:1.4;margin-top:.2rem}.theme-choice-check{width:28px;height:28px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:transparent}.theme-choice:has(input:checked) .theme-choice-check{background:var(--primary);border-color:var(--primary);color:#fff}.theme-preview{position:relative;display:grid;grid-template-columns:29px 1fr;grid-template-rows:19px 35px 24px;width:150px;height:84px;overflow:hidden;border:1px solid #cfdad8;border-radius:8px;background:#f4f8f7}.theme-preview-rail{display:none}.theme-preview-head{grid-column:1/-1;background:#fff;border-bottom:1px solid #dfe9e7}.theme-preview-action{position:absolute;top:28px;height:25px;border-radius:4px}.theme-preview-action.one{left:9px;right:77px;background:#dcedea}.theme-preview-action.two{left:78px;right:9px;background:#e7f0f6}.theme-preview-card{position:absolute;bottom:8px;height:16px;border-radius:3px;background:#fff;border:1px solid #dfe9e7}.theme-preview-card.one{left:9px;width:39px}.theme-preview-card.two{left:55px;width:39px}.theme-preview-card.three{left:101px;width:39px}.theme-choice-operator .theme-preview{grid-template-columns:31px 1fr;background:#f4f1ea;border-radius:3px}.theme-choice-operator .theme-preview-rail{display:block;grid-row:1/-1;background:#17243a}.theme-choice-operator .theme-preview-head{grid-column:2;background:#fff}.theme-choice-operator .theme-preview-action.one{left:40px;right:58px;background:#2f68e8;border-radius:2px}.theme-choice-operator .theme-preview-action.two{left:98px;right:8px;background:#1e304b;border-radius:2px}.theme-choice-operator .theme-preview-card.one{left:40px;width:30px;border-radius:1px}.theme-choice-operator .theme-preview-card.two{left:75px;width:30px;border-radius:1px}.theme-choice-operator .theme-preview-card.three{left:110px;width:30px;border-radius:1px}
@media(max-width:820px){.theme-choice-grid{grid-template-columns:1fr}.theme-choice{grid-template-columns:130px 1fr auto}.theme-preview{width:130px}.theme-preview-card.three{display:none}}
@media(max-width:520px){.theme-choice{grid-template-columns:1fr auto}.theme-preview{grid-column:1/-1;width:100%;height:92px}.theme-choice-copy{grid-column:1}.theme-choice-check{grid-column:2;grid-row:2}.settings-theme-section,.settings-general-section{padding:.9rem}}
.theme-choice-liquid-operator .theme-preview{background:linear-gradient(145deg,#eaf7f4,#edf2fb);border-color:rgba(255,255,255,.9);border-radius:11px}.theme-choice-liquid-operator .theme-preview-head{position:absolute;left:16px;right:16px;top:8px;height:16px;border:1px solid rgba(255,255,255,.92);border-radius:999px;background:rgba(255,255,255,.58);box-shadow:0 4px 12px rgba(28,73,69,.1)}.theme-choice-liquid-operator .theme-preview-action{top:31px;border:1px solid rgba(255,255,255,.84);border-radius:8px;box-shadow:inset 0 1px rgba(255,255,255,.9)}.theme-choice-liquid-operator .theme-preview-action.one{left:10px;right:78px;background:rgba(18,121,110,.78)}.theme-choice-liquid-operator .theme-preview-action.two{left:78px;right:10px;background:rgba(255,255,255,.65)}.theme-choice-liquid-operator .theme-preview-card{bottom:7px;border-radius:6px;background:rgba(255,255,255,.66);border-color:rgba(255,255,255,.9)}
