/* NTP frontend design system: shared components and existing portal-layout compatibility.
 * All frontend control styles are owned here. Keep workflow/data logic in their modules. */
:root{--ntp-state-pending:#0b9fce;--ntp-state-pending-bg:#e2f5ff;--ntp-state-success:#1aae34;--ntp-state-success-bg:#eaf9e8;--ntp-state-attention:#d67b00;--ntp-state-attention-bg:#fff5df;--ntp-state-rejected:#b93434;--ntp-state-rejected-bg:#ffe9e7;--ntp-state-neutral:#68706d}
.ntp-logged-in-contact-field{display:none!important}
.ntp-token-control{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.ntp-token-value{font-family:monospace;padding:.35rem .55rem;border:1px solid #d9ddd9;border-radius:4px;background:#fff;word-break:break-all}.ntp-order-list{display:grid;gap:12px}.ntp-order-card{display:grid;grid-template-columns:minmax(140px,1.4fr) minmax(120px,.8fr) minmax(140px,1fr) auto;gap:16px;align-items:center;padding:16px;border:1px solid #e0e3df;border-radius:10px;background:#fff}.ntp-status{display:inline-block;padding:.35rem .65rem;border-radius:999px;background:#edf4e9}.ntp-order-tracking{margin-top:2rem;padding:1rem;border:1px solid #e0e3df;border-radius:10px}@media(max-width:700px){.ntp-order-card{grid-template-columns:1fr 1fr}.ntp-order-card>div:last-child{text-align:right}}
.ntp-order-prescription.is-disabled{opacity:.55;cursor:not-allowed}.ntp-order-attention{grid-column:1/-1;padding:.75rem 1rem;border-radius:8px;background:#fff1ef;color:#b53131}.ntp-order-attention strong{color:#b53131}
/* Native NTP portal forms */
.ntp-native-form{display:grid;gap:18px;color:#1d1c23}.ntp-form-card{padding:24px;border:1px solid #d8dedb;border-radius:12px;background:#fff}.ntp-form-card h3{margin:0 0 8px;color:#1d1c23;font-size:22px}.ntp-form-card__heading{margin-bottom:20px}.ntp-form-card__heading p{margin:4px 0 0;color:#68706d}.ntp-form-card__heading--split{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.ntp-form-status{display:inline-flex;padding:6px 10px;border-radius:999px;background:#edf5ef;color:#003234;font-size:13px;font-weight:700}.ntp-form-grid,.ntp-readonly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ntp-field{display:flex;flex-direction:column;gap:7px}.ntp-field--full{grid-column:1/-1;margin-top:18px}.ntp-field label{font-weight:650;color:#283431}.ntp-choice-row{display:flex;flex-wrap:wrap;gap:16px 22px}.ntp-choice-row label{font-weight:500}.ntp-form-actions{display:flex;justify-content:flex-end;margin-top:22px}.ntp-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 22px;border:1px solid #003234;border-radius:999px;background:#003234;color:#fff;font-weight:700;cursor:pointer}.ntp-button:hover{background:#0b4943;color:#fff}.ntp-readonly-item{padding:14px 16px;border-radius:8px;background:#f5f8f6}.ntp-readonly-item span{display:block;margin-bottom:3px;color:#6e7773;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.ntp-readonly-item strong{display:block;font-weight:650}.ntp-readonly-note{margin-top:18px;padding:15px 17px;border-left:4px solid #003234;border-radius:7px;background:#f1f7f3}.ntp-readonly-note p{margin:6px 0 0}.ntp-readonly-note--attention{border-left-color:#b65f00;background:#fff6e8}.ntp-token-review{margin-top:18px}.ntp-batch-summary{margin:0 0 12px}.ntp-token-batch{display:grid;gap:10px}.ntp-token-batch__item{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding:12px 0;border-top:1px solid #e6ebe8}.ntp-token-batch__item:first-child{border-top:0}.ntp-token-batch__label{font-weight:700}.ntp-token-batch__current{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}.ntp-token-batch__link{margin-left:auto}.ntp-review-scope,.ntp-review-minimal-note{margin:4px 0 18px}.ntp-help,.ntp-native-form .ntp-help{margin:0!important;padding:0!important;font-family:inherit!important;font-size:12px!important;font-weight:400!important;line-height:1.4!important;color:var(--ntp-text-secondary,#6e7773)!important}.ntp-form-notice{margin:0 0 18px;padding:14px 16px;border-left:4px solid #003234;border-radius:7px;background:#f1f7f3}.ntp-form-notice--error{border-left-color:#b53131;background:#fff1ef;color:#8b2525}.ntp-review-message-fields[hidden],.ntp-review-approve-fields[hidden]{display:none!important}@media(max-width:700px){.ntp-form-grid,.ntp-readonly-grid{grid-template-columns:1fr}.ntp-form-card{padding:18px}.ntp-form-card__heading--split{display:block}.ntp-form-status{margin-top:10px}.ntp-form-actions{justify-content:stretch}.ntp-button{width:100%}}

/* NTP enhanced select lists. Ordinary inputs/textareas remain theme-driven. */
.ntp-native-form .select2-container{width:100%!important;max-width:100%}
.ntp-native-form .select2-container .select2-selection--single{display:flex;align-items:center;min-height:48px;height:auto;border:1px solid #aeb8b4;border-radius:5px;background:#fff}
.ntp-native-form .select2-container .select2-selection--single .select2-selection__rendered{width:100%;padding:10px 42px 10px 14px;line-height:1.4;color:inherit}
.ntp-native-form .select2-container .select2-selection--single .select2-selection__arrow{top:50%;right:10px;height:24px;transform:translateY(-50%)}
.ntp-native-form .select2-container--open .select2-selection--single,.ntp-native-form .select2-container--focus .select2-selection--single{border-color:#003234;box-shadow:0 0 0 1px #003234}
.ntp-native-form .select2-container .select2-selection--multiple{min-height:48px;border:1px solid #aeb8b4;border-radius:5px;background:#fff}
.ntp-native-form .select2-container .select2-selection--multiple .select2-selection__rendered{padding:5px 8px}
.ntp-native-form .select2-container--open .select2-selection--multiple,.ntp-native-form .select2-container--focus .select2-selection--multiple{border-color:#003234;box-shadow:0 0 0 1px #003234}
.select2-container .select2-dropdown{border-color:#aeb8b4;border-radius:5px;background:#fff}
.select2-container .select2-search--dropdown{padding:8px}
.select2-container .select2-search--dropdown .select2-search__field{min-height:42px;padding:8px 10px;border:1px solid #aeb8b4;border-radius:4px}
.select2-container .select2-results__option{padding:9px 12px}
.select2-container .select2-results__option--highlighted[aria-selected]{background:#003234;color:#fff}

/* v0.9.6 batch-centric pharmacist review */
.ntp-script-review-form .ntp-review-card{padding:30px}
.ntp-script-review-form .ntp-review-heading{margin-bottom:28px}
.ntp-script-review-form .ntp-review-heading h3{font-size:clamp(32px,4vw,46px);line-height:1.05;color:#003234}
.ntp-script-review-form .ntp-review-heading p{font-size:16px}
.ntp-script-review-form .ntp-form-status{padding:8px 15px;border-radius:999px}
.ntp-script-review-form .ntp-form-status--pending{background:#e2f5ff;color:#0b9fce}
.ntp-script-review-form .ntp-form-status--needs_information{background:#fff5df;color:#d67b00}
.ntp-script-review-form .ntp-form-status--approved{background:#eaf9e8;color:#1aae34}
.ntp-script-review-form .ntp-form-status--rejected{background:#ffe9e7;color:#b93434}
.ntp-review-layout{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.55fr);gap:36px;align-items:start}
.ntp-review-patient-card{overflow:hidden;border-radius:12px;background:#f5f8f6}
.ntp-review-patient-card__header{padding:26px 22px 22px;text-align:center;border-bottom:1px dashed #e0e6e2}
.ntp-review-patient-card__header strong{display:block;font-size:22px;line-height:1.2;color:#111;font-weight:700}
.ntp-review-patient-card__header span{display:block;margin-top:6px;color:#838783;font-size:14px}
.ntp-review-patient-card__header .ntp-patient-profile-link{display:inline-block;color:inherit;text-decoration:none}
.ntp-review-patient-card__header .ntp-patient-profile-link:hover strong,.ntp-review-patient-card__header .ntp-patient-profile-link:focus-visible strong{text-decoration:underline;text-underline-offset:3px}
.ntp-review-patient-card__header .ntp-patient-profile-link:focus-visible{outline:2px solid var(--ntp-primary,#003f3f);outline-offset:4px;border-radius:2px}
.ntp-review-patient-card__details{margin:0;padding:20px 18px 24px}
.ntp-review-patient-card__details>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:8px 0}
.ntp-review-patient-card__details dt{margin:0;color:#898f8c;font-weight:400}
.ntp-review-patient-card__details dd{margin:0;color:#1d1c23;overflow-wrap:anywhere}
.ntp-review-patient-card__details dd.ntp-patient-phone{font-weight:700}
.ntp-script-related-orders dd{display:flex;flex-wrap:wrap;gap:2px 5px}
.ntp-script-related-orders a{color:var(--ntp-primary,#003f3f);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.ntp-script-related-orders a:hover,.ntp-script-related-orders a:focus-visible{color:#006266}
.ntp-script-related-orders a:focus-visible{outline:2px solid var(--ntp-focus-ring);outline-offset:2px}
.ntp-review-workflow{min-width:0}
:is(.ntp-escript-tabs,.ntp-tabs.ntp-tabs--underline){display:flex!important;align-items:stretch!important;flex-wrap:nowrap!important;gap:34px!important;margin:0 0 24px!important;padding:0!important;border:0!important;border-bottom:1px solid #dce2df!important;background:transparent!important;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin}
:is(.ntp-escript-tab,.ntp-tabs.ntp-tabs--underline [role=tab]){appearance:none!important;display:flex!important;flex:0 0 auto!important;gap:7px;align-items:center;min-height:0!important;width:auto!important;padding:0 0 14px!important;margin:0 0 -1px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:#888!important;font:inherit!important;font-weight:700!important;line-height:1.4!important;text-decoration:none!important;white-space:nowrap;scroll-snap-align:start;box-shadow:none!important;cursor:pointer}
:is(.ntp-escript-tab:hover,.ntp-tabs.ntp-tabs--underline [role=tab]:hover){color:#003234!important;background:transparent!important}
:is(.ntp-escript-tab.is-current,.ntp-tabs.ntp-tabs--underline [role=tab][aria-selected=true]){border-bottom-color:#003234!important;color:#111!important;background:transparent!important}
:is(.ntp-escript-tab,.ntp-tabs.ntp-tabs--underline [role=tab]):focus-visible{outline:2px solid var(--ntp-control-primary,#003234)!important;outline-offset:-2px!important}
.ntp-escript-tab small{padding:2px 6px;border-radius:999px;background:#f0f3f1;font-size:10px;font-weight:700}
.ntp-review-token-row{margin:0 0 22px}
.ntp-review-token-row .ntp-token-control{gap:12px;flex-wrap:nowrap}
.ntp-token-button-icon{flex:0 0 24px;fill:currentColor}
.ntp-review-token-row .ntp-token-value{flex:1;min-height:44px;display:flex;align-items:center;padding:9px 14px;border:1px solid #d6dcda;border-radius:7px;background:#fff;font-family:inherit;font-size:16px}
.ntp-review-token-row .ntp-token-value[hidden]{display:none}
.ntp-review-scope{margin:0 0 20px!important;max-width:760px;line-height:1.5}
.ntp-review-action-field{margin-top:0}
.ntp-review-action-label{display:block;margin-bottom:8px}
.ntp-review-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ntp-review-choice{position:relative;display:block!important;cursor:pointer}
.ntp-review-choice input{position:absolute;opacity:0;pointer-events:none}
.ntp-review-choice__content{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:11px 16px;border:1px solid #d8dedb;border-radius:8px;background:#fff;color:#1d1c23;font-weight:600;transition:border-color .15s ease,background .15s ease,color .15s ease}
.ntp-review-choice__text{min-width:0}
.ntp-review-choice__state{position:relative;width:18px;height:18px;flex:0 0 18px;border:1px solid #d8dedb;border-radius:50%;background:#fff;box-sizing:border-box}
.ntp-review-choice__checked-icon{position:absolute;inset:-1px;width:18px;height:18px;opacity:0;transition:opacity .12s ease;color:currentColor}
.ntp-review-choice--approve input:checked+.ntp-review-choice__content{border-color:#a8e9b1;background:#effdf0;color:#1bbd36}
.ntp-review-choice--attention input:checked+.ntp-review-choice__content{border-color:#ffd1a3;background:#fff8ef;color:#f06a00}
.ntp-review-choice--reject input:checked+.ntp-review-choice__content{border-color:#efb8b8;background:#fff0ef;color:#bb3535}
.ntp-review-choice input:checked+.ntp-review-choice__content .ntp-review-choice__state{border-color:transparent;background:transparent}
.ntp-review-choice input:checked+.ntp-review-choice__content .ntp-review-choice__checked-icon{opacity:1}
.ntp-review-choice input:focus-visible+.ntp-review-choice__content{outline:2px solid currentColor;outline-offset:2px}
.ntp-review-fields{margin-top:20px;gap:16px}
.ntp-review-submit{justify-content:flex-start;margin-top:28px}
.ntp-review-submit .ntp-button{min-width:150px}
.ntp-token-unavailable{display:inline-block;padding:10px 12px;border-radius:7px;background:#f5f8f6;color:#68706d}

/* Make SelectWoo's searchable product selector unmistakable. */
.ntp-native-form .ntp-product-select+.select2-container .select2-selection--single{min-height:52px}
.select2-container--open .select2-search--dropdown{display:block!important;background:#fff}
.select2-container--open .select2-search--dropdown .select2-search__field{display:block!important;width:100%;min-height:44px;box-sizing:border-box}

@media(max-width:900px){
  .ntp-review-layout{grid-template-columns:1fr;gap:24px}
  .ntp-review-patient-card__details>div{grid-template-columns:110px minmax(0,1fr)}
}
@media(max-width:700px){
  .ntp-script-review-form .ntp-review-card{padding:18px}
  .ntp-review-actions{grid-template-columns:1fr}
  :is(.ntp-escript-tabs,.ntp-tabs.ntp-tabs--underline){gap:22px!important}
  .ntp-review-token-row .ntp-token-control{align-items:stretch;flex-direction:column}
  .ntp-review-token-row .ntp-reveal-prescription-token,.ntp-review-token-row .ntp-reveal-token,.ntp-review-token-row .ntp-hide-token{width:100%}
}

/* v0.9.6: keep long eScript batches usable without wrapping the tab row. */
.ntp-escript-tabs::-webkit-scrollbar{height:6px}
.ntp-escript-tabs::-webkit-scrollbar-track{background:transparent}
.ntp-escript-tabs::-webkit-scrollbar-thumb{background:#cfd8d3;border-radius:999px}

/* v0.9.7: selected Review Outcome radios use the supplied checkbox-radio-form.svg icon geometry. */


/* v0.9.8: review-state polish. */
/* Inactive controls are deliberately lighter; selected/current states retain emphasis. */
.ntp-review-choice__content{font-weight:400}
.ntp-review-choice input:checked+.ntp-review-choice__content{font-weight:600}
.ntp-escript-tab{font-weight:400}
.ntp-escript-tab.is-current{font-weight:700}

/* Status pills use a compact state dot, matching the portal status language. */
.ntp-form-status{align-items:center;gap:7px}
.ntp-status-dot{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:currentColor}
.ntp-escript-tab-status{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:600;line-height:1.25}
.ntp-escript-tab-status .ntp-status-dot{width:6px;height:6px;flex-basis:6px}
.ntp-escript-tab-status--needs_information{background:#fff5df;color:#d67b00}
.ntp-escript-tab-status--approved{background:#eaf9e8;color:#1aae34}
.ntp-escript-tab-status--rejected{background:#ffe9e7;color:#b93434}

/* Ticket-style patient summary divider: dashed rule with half-circle edge cut-outs. */
.ntp-review-patient-card__header{position:relative;border-bottom:1px dashed #e0e6e2}
.ntp-review-patient-card__details>.ntp-review-patient-card__divider{display:block;grid-column:1/-1;border-top:1px dashed #e0e6e2;margin:10px 0 6px;padding:0}
.ntp-review-patient-card__header::before,
.ntp-review-patient-card__header::after{content:"";position:absolute;z-index:2;bottom:-13px;width:26px;height:26px;border-radius:50%;background:#fff}
.ntp-review-patient-card__header::before{left:-13px}
.ntp-review-patient-card__header::after{right:-13px}

/* v0.9.9: pharmacist review refinements. */
/* Agreed desktop proportions and patient detail label width. */
.ntp-review-layout{grid-template-columns:minmax(260px,.8fr) minmax(0,1.55fr)}
.ntp-review-patient-card__details>div{grid-template-columns:90px minmax(0,1fr)}

/* Main status pill keeps its state colour but no longer carries a dot. */
.ntp-form-status{gap:0}

/* eScript tab typography stays neutral; only the status dot carries state colour. */
.ntp-escript-tab,.ntp-escript-tab small{font-weight:400}
.ntp-escript-tabs a.ntp-escript-tab{color:#818181}
.ntp-escript-tabs a.ntp-escript-tab:hover{color:#505552}
.ntp-escript-tabs a.ntp-escript-tab.is-current{color:#000;font-weight:600}
.ntp-escript-tab small{padding:4px 12px;line-height:1.2}
.ntp-escript-tab-status,
.ntp-escript-tab-status--needs_information,
.ntp-escript-tab-status--approved,
.ntp-escript-tab-status--rejected{background:#f0f3f1;color:#68706d}
.ntp-escript-tab-status--needs_information .ntp-status-dot{background:#d67b00}
.ntp-escript-tab-status--approved .ntp-status-dot{background:#1aae34}
.ntp-escript-tab-status--rejected .ntp-status-dot{background:#b93434}

/* Review Outcome cards: equal height, lighter inactive copy, and state colours. */
.ntp-review-action-label{display:none}
.ntp-review-actions{align-items:stretch}
.ntp-review-choice{display:flex!important;height:100%}
.ntp-review-choice__content{flex:1;min-height:72px;height:100%;box-sizing:border-box;font-weight:400}
.ntp-review-choice input:checked+.ntp-review-choice__content{font-weight:600}
.ntp-review-choice--attention input:checked+.ntp-review-choice__content{border-color:#f0ca85;background:#fff5df;color:#d67b00}

/* Agreed form spacing / SelectWoo treatment. */
.ntp-review-message-fields{margin-top:28px}
.ntp-native-form .select2-container .select2-selection--single{border-color:#dedede}
.ntp-script-review-form .ntp-field--full{margin-top:8px}
.ntp-script-review-form .ntp-field p{margin:0}
.ntp-script-review-form .ntp-review-approve-fields .ntp-review-prescriber-heading{margin-top:24px!important;padding-top:0!important;border-top:0}


/* Pharmacist product management and the shared add/edit product dialog. */
.ntp-field-label-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.ntp-product-add-inline,.ntp-product-text-action{padding:0;border:0;background:none;color:#003234;font:inherit;font-weight:650;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ntp-product-manager{color:#1d1c23}.ntp-product-manager__header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.ntp-product-manager__header h2{margin:0}.ntp-product-manager__header p{margin:6px 0 0;color:#68706d}.ntp-product-manager__filters{display:flex;gap:10px;margin-bottom:20px}.ntp-product-manager__filters a{padding:7px 13px;border-radius:999px;color:#53605c}.ntp-product-manager__filters a.is-active{background:#e8f0ec;color:#003234;font-weight:700}.ntp-product-list{border-top:1px solid #dfe4e1}.ntp-product-row{display:grid;grid-template-columns:64px minmax(190px,1.5fr) minmax(120px,1fr) minmax(100px,.7fr) minmax(90px,.6fr) auto auto;gap:18px;align-items:center;padding:16px 0;border-bottom:1px solid #dfe4e1}.ntp-product-row.is-archived{opacity:.68}.ntp-product-row__image{width:56px;height:56px;overflow:hidden;border-radius:8px;background:#f2f5f3}.ntp-product-row__image img{width:100%;height:100%;object-fit:cover}.ntp-product-row__identity{display:flex;flex-direction:column;gap:4px}.ntp-product-row__identity small,.ntp-product-row__label{color:#7b8581}.ntp-product-row__label{display:block;margin-bottom:3px;font-size:12px;text-transform:uppercase;letter-spacing:.03em}.ntp-product-row__status span{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eaf9e8;color:#168b2c;font-size:12px;font-weight:700}.ntp-product-row.is-archived .ntp-product-row__status span{background:#f0f2f1;color:#68706d}.ntp-product-row__actions{display:flex;align-items:center;gap:12px}.ntp-product-row__actions form{margin:0}.ntp-product-empty{padding:30px;border:1px dashed #ccd4d0;border-radius:10px;text-align:center;color:#68706d}.ntp-modal-open{overflow:hidden}:is(.ntp-product-modal,div.ntp-modal){position:fixed;z-index:999999;inset:0;display:grid;place-items:center;padding:24px}:is(.ntp-product-modal,.ntp-modal)[hidden]{display:none}:is(.ntp-product-modal__backdrop,.ntp-modal__backdrop){position:absolute;inset:0;background:rgba(22,30,27,.58)}:is(.ntp-product-modal__dialog,.ntp-modal__dialog){position:relative;width:min(760px,100%);max-height:calc(100vh - 48px);overflow:auto;padding:34px;border-radius:18px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.24)}:is(.ntp-product-modal__dialog,.ntp-modal__dialog) h2{margin:0 44px 24px 0}:is(.ntp-product-modal__close,.ntp-modal__close){position:absolute;top:18px;right:20px;width:40px;height:40px;border:0;background:none;color:#1d1c23;font-size:34px;line-height:1;cursor:pointer}.ntp-product-modal__message{padding:11px 14px;border-radius:7px;background:#eaf9e8;color:#168b2c}.ntp-product-modal__message.is-error{background:#ffe9e7;color:#b93434}.ntp-product-image-preview{display:flex;align-items:center;gap:12px;margin-top:8px}.ntp-product-image-preview img{width:54px;height:54px;border-radius:7px;object-fit:cover}.ntp-product-image-preview label{font-size:13px;font-weight:400}.ntp-product-form input[type=file]{padding:9px;border:1px solid #dedede;border-radius:6px}.ntp-preferred-clinic-button-wrap{display:inline-flex;flex-direction:column;align-items:flex-start;gap:7px}.ntp-preferred-clinic-form{margin:0}.ntp-preferred-clinic-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:10px 22px;border:1px solid currentColor;border-radius:999px;background:transparent;color:#003234;font:inherit;cursor:pointer}.ntp-preferred-clinic-button:hover{background:#eff6f2}.ntp-preferred-clinic-button:disabled{cursor:default;opacity:1}.ntp-preferred-clinic-button--active{background:#eff6f2}.ntp-preferred-clinic-button__icon{flex:0 0 24px}.ntp-preferred-clinic-button__notice{color:#168b2c;font-size:13px}

/* Elementor's default tablet breakpoint: do not keep the two-column review squeezed below 1024px. */
@media(max-width:1024px){
  .ntp-review-layout{grid-template-columns:1fr;gap:28px}
  .ntp-review-patient-card__details>div{grid-template-columns:90px minmax(0,1fr)}
}

/* Elementor's default mobile breakpoint. */
@media(max-width:768px){
  .ntp-script-review-form .ntp-review-card{padding:18px}
  .ntp-script-review-form .ntp-review-heading{display:block}
  .ntp-script-review-form .ntp-form-status{margin-top:10px}
  .ntp-review-actions{grid-template-columns:1fr}
  .ntp-script-review-form .ntp-form-grid{grid-template-columns:1fr}
  :is(.ntp-escript-tabs,.ntp-tabs.ntp-tabs--underline){gap:22px!important}
  .ntp-review-token-row .ntp-token-control{align-items:stretch;flex-direction:column}
  .ntp-review-token-row .ntp-reveal-prescription-token,.ntp-review-token-row .ntp-reveal-token,.ntp-review-token-row .ntp-hide-token{width:100%}
  .ntp-product-manager__header{display:block}.ntp-product-manager__header .ntp-button{margin-top:16px;width:100%}.ntp-product-row{grid-template-columns:56px 1fr auto}.ntp-product-row>div:not(.ntp-product-row__image):not(.ntp-product-row__identity):not(.ntp-product-row__actions){grid-column:2/-1}.ntp-product-row__actions{grid-column:2/-1;justify-content:flex-start}:is(.ntp-product-modal,.ntp-modal){padding:12px}:is(.ntp-product-modal__dialog,.ntp-modal__dialog){max-height:calc(100vh - 24px);padding:24px 18px}:is(.ntp-product-modal__dialog,.ntp-modal__dialog) .ntp-form-grid{grid-template-columns:1fr}
}

/* v0.9.10: one workflow-state palette across NTP and the configured Forminator intake. */
.ntp-script-review-form .ntp-form-status--pending{background:var(--ntp-state-pending-bg);color:var(--ntp-state-pending)}
.ntp-script-review-form .ntp-form-status--needs_information{background:var(--ntp-state-attention-bg);color:var(--ntp-state-attention)}
.ntp-script-review-form .ntp-form-status--approved{background:var(--ntp-state-success-bg);color:var(--ntp-state-success)}
.ntp-script-review-form .ntp-form-status--rejected{background:var(--ntp-state-rejected-bg);color:var(--ntp-state-rejected)}
.ntp-escript-tab-status{background:#f0f3f1;color:var(--ntp-state-neutral)}
.ntp-escript-tab-status--needs_information .ntp-status-dot{background:var(--ntp-state-attention)}
.ntp-escript-tab-status--approved .ntp-status-dot{background:var(--ntp-state-success)}
.ntp-escript-tab-status--rejected .ntp-status-dot{background:var(--ntp-state-rejected)}
.ntp-review-choice--approve input:checked+.ntp-review-choice__content{border-color:#a8e9b1;background:var(--ntp-state-success-bg);color:var(--ntp-state-success)}
.ntp-review-choice--attention input:checked+.ntp-review-choice__content{border-color:#f0ca85;background:var(--ntp-state-attention-bg);color:var(--ntp-state-attention)}
.ntp-review-choice--reject input:checked+.ntp-review-choice__content{border-color:#efb8b8;background:var(--ntp-state-rejected-bg);color:var(--ntp-state-rejected)}
.ntp-form-notice{border-left-color:var(--ntp-state-success);background:var(--ntp-state-success-bg);color:#35513d}
.ntp-form-notice--success{border-left-color:var(--ntp-state-success);background:var(--ntp-state-success-bg);color:#35513d}
.ntp-form-notice--attention{border-left-color:var(--ntp-state-attention);background:var(--ntp-state-attention-bg);color:#6f4c12}
.ntp-form-notice--rejected,.ntp-form-notice--error{border-left-color:var(--ntp-state-rejected);background:var(--ntp-state-rejected-bg);color:#7d2c2c}
.ntp-form-notice--info{border-left-color:var(--ntp-state-pending);background:var(--ntp-state-pending-bg);color:#23637a}
.ntp-status--attention{background:var(--ntp-state-attention-bg);color:var(--ntp-state-attention)}
.ntp-order-attention{background:var(--ntp-state-attention-bg);color:#6f4c12}.ntp-order-attention strong{color:var(--ntp-state-attention)}
.ntp-readonly-note--attention{border-left-color:var(--ntp-state-attention);background:var(--ntp-state-attention-bg)}
/* Forminator's own custom colour setting has higher specificity, hence !important. */
.ntp-escript-intake-form .forminator-response-message.forminator-success{background:var(--ntp-state-success-bg)!important;border-color:var(--ntp-state-success)!important;color:#35513d!important}
.ntp-escript-intake-form .forminator-response-message.forminator-error{background:var(--ntp-state-rejected-bg)!important;border-color:var(--ntp-state-rejected)!important;color:#7d2c2c!important}

/* v0.9.11 Order Update mirrors the Script Review workflow. */
.ntp-order-update-form .ntp-review-card{padding:30px}
.ntp-order-update-form .ntp-review-heading{margin-bottom:28px}
.ntp-order-update-form .ntp-review-heading h3{font-size:clamp(32px,4vw,46px);line-height:1.05;color:#003234}
.ntp-order-update-form .ntp-review-heading p{font-size:16px}
.ntp-order-update-form .ntp-form-status{padding:8px 15px;border-radius:999px}
.ntp-order-update-form .ntp-form-status--received{background:var(--ntp-state-pending-bg);color:var(--ntp-state-pending)}
.ntp-script-review-form .ntp-form-status--review-overdue,.ntp-form-status--review-overdue,.ntp-order-update-form .ntp-form-status--stock,.ntp-order-update-form .ntp-form-status--attention{background:var(--ntp-state-attention-bg);color:var(--ntp-state-attention)}
.ntp-order-update-form .ntp-form-status--ready{background:var(--ntp-state-success-bg);color:var(--ntp-state-success)}
.ntp-order-update-form .ntp-form-status--dispatched,
.ntp-order-update-form .ntp-form-status--collected{background:var(--ntp-state-success-bg);color:var(--ntp-state-success)}
.ntp-order-update-form .ntp-review-choice--ready input:checked+.ntp-review-choice__content{border-color:#9dd9ee;background:var(--ntp-state-pending-bg);color:var(--ntp-state-pending)}
.ntp-review-actions.ntp-review-actions--pairs{grid-template-columns:repeat(2,minmax(0,1fr))}
.ntp-order-update-form .ntp-order-secondary-status{margin-top:26px}
.ntp-order-update-form .ntp-order-secondary-status select{width:100%;min-height:48px;padding:10px 16px;border:1px solid #9da8a3;border-radius:4px;background:#fff;color:#303633}
.ntp-order-update-form .ntp-order-more-options[hidden]{display:none!important}
.ntp-order-update-form .ntp-order-more-options .ntp-order-secondary-status{margin-top:18px}
.ntp-order-update-form .ntp-order-tracking-fields[hidden],
.ntp-order-update-form .ntp-order-message-field[hidden]{display:none!important}
.ntp-order-update-form .ntp-order-tracking-fields{margin-top:28px}
.ntp-order-update-form .ntp-order-message-field{margin-top:28px}
.ntp-order-update-form .ntp-field p{margin:0}
.ntp-order-summary-card__details{padding:0}
.ntp-order-card-section{padding:22px 20px}
.ntp-order-card-section+.ntp-order-card-section{border-top:1px dashed #d8e0dc}
.ntp-order-card-section h4{margin:0 0 14px;color:#1d1c23;font-size:16px;font-weight:700;line-height:1.3}
/* Heading hooks: --contact, --details and --addresses may be hidden independently. */
.ntp-order-card-section dl{margin:0}
.ntp-order-card-section dl>div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px;padding:6px 0}
.ntp-order-card-section dt{margin:0;color:#898f8c;font-weight:400}
.ntp-order-card-section dd{margin:0;color:#1d1c23;overflow-wrap:anywhere}
.ntp-order-card-items{display:grid;gap:8px;margin:0 0 12px;padding:0 0 14px;border-bottom:1px solid #e4e9e6;list-style:none}
.ntp-order-card-items>li{display:block;min-width:0}
.ntp-order-card-items span{min-width:0;color:#1d1c23;overflow-wrap:anywhere}
.ntp-order-card-items small{color:#777;font:inherit;white-space:nowrap}
.ntp-order-card-items strong{flex:0 0 auto;font-weight:600;white-space:nowrap}
.ntp-order-card-item-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.ntp-order-card-item-meta{margin-top:3px;color:#777;font-size:12px;line-height:1.4}
.ntp-order-card-item-meta p{margin:0}
.ntp-order-card-item-meta ul{margin:0;padding:0;list-style:none}
.ntp-order-card-item-meta li{display:block}
.ntp-order-card-section .ntp-order-card-total{margin-top:6px;padding-top:12px;border-top:1px solid #e4e9e6;font-weight:700}
.ntp-order-card-section .ntp-order-card-total dt,.ntp-order-card-section .ntp-order-card-total dd{color:#1d1c23;font-weight:700}
.ntp-order-card-section .ntp-order-card-note{display:block;margin-top:8px;padding-top:12px;border-top:1px solid #e4e9e6}
.ntp-order-card-section .ntp-order-card-note dt{margin-bottom:5px}
.ntp-order-card-addresses{display:grid;gap:18px}
.ntp-order-card-addresses h5{margin:0 0 5px;color:#898f8c;font-size:13px;font-weight:600}
.ntp-order-card-addresses address{margin:0;color:#1d1c23;font-style:normal;line-height:1.5;overflow-wrap:anywhere}
.ntp-order-complete-state{padding:22px;border-radius:10px;background:var(--ntp-state-success-bg);color:#35513d}
.ntp-order-complete-state h4{margin:0 0 6px;color:var(--ntp-state-success);font-size:20px}
.ntp-order-complete-state p{margin:0}
@media(max-width:768px){
  .ntp-order-update-form .ntp-review-card{padding:18px}
  .ntp-order-update-form .ntp-review-heading{display:block}
  .ntp-order-update-form .ntp-form-status{margin-top:10px}
  .ntp-order-update-form .ntp-review-actions,
  .ntp-review-actions.ntp-review-actions--pairs{grid-template-columns:1fr}
  .ntp-order-update-form .ntp-form-grid{grid-template-columns:1fr}
  .ntp-order-card-section{padding:20px 18px}
  .ntp-order-card-section dl>div{grid-template-columns:100px minmax(0,1fr)}
}
/* Staff Script Request dashboard status helpers. */
.ntp-staff-submission-status{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.2}
.ntp-staff-submission-status--pending{background:var(--ntp-state-pending-bg);color:var(--ntp-state-pending)}
.ntp-staff-submission-status--review-overdue,.ntp-staff-submission-status--action-required{background:var(--ntp-state-attention-bg);color:var(--ntp-state-attention)}
.ntp-staff-submission-status--approved{background:var(--ntp-state-success-bg);color:var(--ntp-state-success)}
.ntp-staff-submission-status--rejected{background:var(--ntp-state-rejected-bg);color:var(--ntp-state-rejected)}
.ntp-status-info{position:relative;display:inline-flex;vertical-align:middle}
.ntp-status-info__trigger{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px!important;width:auto;height:auto;padding:5px 10px!important;border:0!important;border-radius:999px!important;background:var(--ntp-state-attention-bg)!important;color:var(--ntp-state-attention)!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;line-height:1.2!important;cursor:pointer;transition:background-color .15s ease,color .15s ease}
.ntp-status-info__trigger:hover,.ntp-status-info__trigger:focus-visible{outline:0;background:var(--ntp-state-attention)!important;color:#fff!important}
.ntp-status-info__icon{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:15px;min-width:15px;height:15px;min-height:15px;flex:0 0 15px;margin:0!important;border:1.5px solid currentColor;border-radius:50%;font:700 10px/1 Arial,sans-serif}
.ntp-status-info__trigger>span:not(.ntp-status-info__icon){flex:0 1 auto;min-width:0;width:auto;text-align:left!important}
.ntp-status-info__source{display:none!important}
.ntp-status-info__heading,.ntp-status-info__message{display:block}
.ntp-status-info__heading{margin-bottom:5px;color:#252a28;font-weight:700}
.ntp-status-info__message{white-space:pre-line}
.ntp-status-note-modal{position:fixed;z-index:100000;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(16,31,29,.58)}
.ntp-status-note-modal[hidden]{display:none}
.ntp-status-note-modal__dialog{position:relative;box-sizing:border-box;width:min(100%,480px);max-height:min(70vh,520px);overflow:auto;padding:30px 26px 26px;border-radius:14px;background:#fff;color:#3f4442;font-size:15px;line-height:1.55;text-align:left;box-shadow:0 18px 55px rgba(0,0,0,.28)}
.ntp-status-note-modal__close{position:absolute;top:10px;right:10px;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#003f3f!important;font:400 25px/1 Arial,sans-serif!important;cursor:pointer}
.ntp-status-note-modal__close:hover,.ntp-status-note-modal__close:focus-visible{outline:0;background:#edf3f1!important}
.ntp-status-note-modal .ntp-status-info__heading{padding-right:36px;font-size:17px}
html.ntp-status-note-is-open,body.ntp-status-note-is-open{overflow:hidden}
@media(max-width:600px){
  .ntp-status-note-modal{align-items:flex-end;padding:14px}
  .ntp-status-note-modal__dialog{width:100%;max-height:72vh;padding:28px 20px 22px;border-radius:16px}
}
.ntp-staff-order-status{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.2}
.ntp-staff-order-status--order-received{background:var(--ntp-state-pending-bg);color:var(--ntp-state-pending)}
.ntp-staff-order-status--review-overdue,.ntp-staff-order-status--awaiting-stock,.ntp-staff-order-status--action-required{background:var(--ntp-state-attention-bg);color:var(--ntp-state-attention)}
.ntp-staff-order-status--ready,.ntp-staff-order-status--dispatched,.ntp-staff-order-status--complete{background:var(--ntp-state-success-bg);color:var(--ntp-state-success)}
.ntp-staff-order-status--failed,.ntp-staff-order-status--cancelled{background:var(--ntp-state-rejected-bg);color:var(--ntp-state-rejected)}
.ntp-staff-order-status--refunded{background:#f0f3f1;color:var(--ntp-state-neutral)}
/* Staff order pills: keep NTP state colours authoritative inside Elementor listings. */
.ntp-staff-order-status--order-received{background:var(--ntp-state-pending-bg)!important;color:var(--ntp-state-pending)!important}
.ntp-staff-order-status--review-overdue,.ntp-staff-order-status--awaiting-stock,.ntp-staff-order-status--action-required{background:var(--ntp-state-attention-bg)!important;color:var(--ntp-state-attention)!important}
.ntp-staff-order-status--ready,.ntp-staff-order-status--dispatched,.ntp-staff-order-status--complete{background:var(--ntp-state-success-bg)!important;color:var(--ntp-state-success)!important}
.ntp-staff-order-status--failed,.ntp-staff-order-status--cancelled{background:var(--ntp-state-rejected-bg)!important;color:var(--ntp-state-rejected)!important}
.ntp-add-to-order-error {
    display: block;
    margin-top: 8px;
    color: #b42318;
    font-size: 14px;
}

/* Native patient renewal modal, opened by [ntp_prescription_action]. */
html.ntp-renewal-modal-is-open,
body.ntp-renewal-modal-is-open{overflow:hidden}
.ntp-renewal-modal{width:min(760px,calc(100vw - 48px));max-width:none;margin:auto;padding:0;border:0;border-radius:20px;background:#fff;color:#1d1c23;box-shadow:0 24px 80px rgba(0,0,0,.22);overflow:visible}
.ntp-renewal-modal::backdrop{background:rgba(35,39,37,.58)}
.ntp-renewal-modal__panel{position:relative;padding:46px 50px 50px}
.ntp-renewal-modal__close{position:absolute;top:28px;right:30px;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:transparent;color:#111;font:300 43px/1 Arial,sans-serif;cursor:pointer}
.ntp-renewal-modal__close:hover{background:#f0f3f1}
.ntp-renewal-modal__close:focus-visible{outline:2px solid #003234;outline-offset:2px}
.ntp-renewal-modal__title{margin:0 70px 14px 0;color:#111;font-size:clamp(30px,4vw,42px);font-weight:700;line-height:1.15}
.ntp-renewal-modal__intro{margin:0;max-width:760px;color:#656565;font-size:20px;line-height:1.5}
.ntp-renewal-modal__content{margin-top:34px}
.ntp-renewal-modal .ntp-renewal-options{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.ntp-renewal-modal .ntp-renewal-options form{margin:0}
.ntp-renewal-modal .ntp-renewal-options .button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin:0;padding:12px 24px;border:1px solid #003234;border-radius:999px;background:#003234;color:#fff;text-decoration:none;cursor:pointer}
.ntp-renewal-modal .ntp-renewal-options .button:hover{background:#002c2d;color:#fff}
.ntp-renewal-modal .ntp-renewal-options__archive{background:#fff;color:#003234}
.ntp-renewal-modal .ntp-renewal-options__archive:hover{background:#f0f3f1;color:#003234}
@media(max-width:600px){
  .ntp-renewal-modal{width:calc(100vw - 24px);border-radius:16px}
  .ntp-renewal-modal__panel{padding:32px 24px 28px}
  .ntp-renewal-modal__close{top:16px;right:16px}
  .ntp-renewal-modal__title{margin-right:50px;font-size:30px}
  .ntp-renewal-modal__intro{font-size:17px}
  .ntp-renewal-modal .ntp-renewal-options{align-items:stretch;flex-direction:column}
  .ntp-renewal-modal .ntp-renewal-options form,
  .ntp-renewal-modal .ntp-renewal-options .button{width:100%}
}

/* Shared pharmacist prescription editor. */
html.ntp-prescription-modal-is-open,
body.ntp-prescription-modal-is-open{overflow:hidden}
.ntp-prescription-modal{width:min(760px,calc(100vw - 48px));max-width:none;margin:auto;padding:0;border:0;border-radius:20px;background:#fff;color:#1d1c23;box-shadow:0 24px 80px rgba(0,0,0,.22)}
.ntp-prescription-modal::backdrop{background:rgba(35,39,37,.58)}
.ntp-prescription-modal__panel{position:relative;max-height:calc(100vh - 48px);overflow:auto;padding:46px 50px 50px}
.ntp-prescription-modal__close{position:absolute;top:24px;right:26px}
.ntp-prescription-modal__title{margin:0 56px 28px 0;color:var(--e-global-color-secondary,#003234);font-family:"aktiv-grotesk",Sans-Serif;font-size:20px;font-weight:700;line-height:1.5em}
.ntp-prescription-edit-actions{display:flex;align-items:center;justify-content:space-between;gap:18px}
.ntp-prescription-edit-archive{margin-left:auto;color:#a12c2c}
.ntp-prescription-edit-archive[hidden]{display:none!important}
@media(max-width:600px){
  .ntp-prescription-modal{width:calc(100vw - 24px);border-radius:16px}
  .ntp-prescription-modal__panel{max-height:calc(100vh - 24px);padding:32px 24px 28px}
  .ntp-prescription-modal__close{top:14px;right:14px}
  .ntp-prescription-edit-actions{align-items:stretch;flex-direction:column}
  .ntp-prescription-edit-actions button{width:100%;margin-left:0}
}

/* Native account-preferences modal, opened by [ntp_preferences_button]. */
html.ntp-preferences-modal-is-open,
body.ntp-preferences-modal-is-open{overflow:hidden}
:is(.ntp-preferences-modal,.ntp-modal--medium){width:min(760px,calc(100vw - 48px));max-width:none;margin:auto;padding:0;border:0;border-radius:20px;background:#fff;color:#1d1c23;box-shadow:0 24px 80px rgba(0,0,0,.22);overflow:visible}
:is(.ntp-preferences-modal,.ntp-modal--medium)::backdrop{background:rgba(35,39,37,.58)}
.ntp-preferences-modal__panel{position:relative;padding:46px 50px 50px}
.ntp-preferences-modal__close{position:absolute;top:24px;right:26px}
.ntp-preferences-modal__title{margin:0;padding-right:56px;color:var(--e-global-color-secondary,#003234);font-family:"aktiv-grotesk",Sans-Serif;font-size:20px;font-weight:700;line-height:1.5em}
.ntp-preferences-modal__intro{margin:8px 56px 0 0;color:#60605e}
.ntp-preferences-modal__content{margin-top:28px}
.ntp-preferences-modal .ntp-form-card{padding:0;border:0;box-shadow:none}
.ntp-preferences-modal .ntp-form-actions{margin-bottom:0}
@media(max-width:600px){
  :is(.ntp-preferences-modal,.ntp-modal--medium){width:calc(100vw - 24px);border-radius:16px}
  .ntp-preferences-modal__panel{padding:32px 24px 28px}
  .ntp-preferences-modal__close{top:14px;right:14px}
  .ntp-preferences-modal__intro{margin-right:42px}
}

/* v0.9.87: shared NTP interface design system. */
:root{--ntp-primary:#003234;--ntp-primary-hover:#c1d7c7;--ntp-primary-foreground:#fff;--ntp-hover-foreground:#003234;--ntp-secondary-surface:#fff;--ntp-secondary-hover:var(--ntp-primary-hover);--ntp-disabled:#ccc;--ntp-heading:#000;--ntp-body:#60605e;--ntp-field-label:#777;--ntp-tertiary:#777;--ntp-control-border:#ccc;--ntp-control-radius:999px;--ntp-focus-ring:rgba(0,50,52,.24);--ntp-modal-surface:#fff;--ntp-modal-overlay:rgba(22,30,27,.58)}
.ntp-primary-button,.ntp-secondary-button,.ntp-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:0;padding:6px 18px;border:2px solid var(--ntp-primary);border-radius:var(--ntp-control-radius);font:inherit;font-weight:400!important;line-height:1.2;text-align:center;text-decoration:none;box-shadow:none;appearance:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.ntp-primary-button,.ntp-button:not(.ntp-button--secondary):not(.ntp-secondary-button){background:var(--ntp-primary);color:var(--ntp-primary-foreground)}
.ntp-primary-button:hover,.ntp-primary-button:focus-visible,.ntp-button:not(.ntp-button--secondary):not(.ntp-secondary-button):hover,.ntp-button:not(.ntp-button--secondary):not(.ntp-secondary-button):focus-visible{border-color:var(--ntp-primary-hover);background:var(--ntp-primary-hover);color:var(--ntp-hover-foreground)}
.ntp-secondary-button,.ntp-button--secondary{border-width:1px;border-color:var(--ntp-primary);background:var(--ntp-secondary-surface);color:var(--ntp-primary);font-weight:400}
.ntp-secondary-button:hover,.ntp-secondary-button:focus-visible,.ntp-button--secondary:hover,.ntp-button--secondary:focus-visible{border-color:var(--ntp-primary-hover);background:var(--ntp-primary-hover);color:var(--ntp-hover-foreground)}
.ntp-tertiary-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:6px 18px;border:0;border-radius:0;background:transparent;color:var(--ntp-tertiary);font:inherit;font-weight:400;line-height:1.25;text-decoration:none;box-shadow:none;appearance:none}
.ntp-tertiary-button:hover,.ntp-tertiary-button:focus-visible{background:transparent;color:var(--ntp-primary);text-decoration:underline;text-underline-offset:4px}
.ntp-primary-button:focus-visible,.ntp-secondary-button:focus-visible,.ntp-tertiary-button:focus-visible,.ntp-button:focus-visible,.ntp-modal-close:focus-visible{outline:3px solid var(--ntp-focus-ring);outline-offset:3px}
.ntp-primary-button:disabled,.ntp-secondary-button:disabled,.ntp-button:disabled,[aria-disabled="true"].ntp-primary-button,[aria-disabled="true"].ntp-secondary-button{border-color:var(--ntp-disabled);background:var(--ntp-disabled);color:#fff;font-weight:400!important;opacity:1;cursor:not-allowed}
.ntp-tertiary-button:disabled,[aria-disabled="true"].ntp-tertiary-button{opacity:.55;cursor:not-allowed}
.ntp-modal-dialog{box-sizing:border-box;border-radius:18px;background:var(--ntp-modal-surface)}
.ntp-modal-backdrop{background:var(--ntp-modal-overlay)}
.ntp-modal-close{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:44px!important;min-width:44px;height:44px!important;min-height:44px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#111!important;font:300 32px/1 Arial,sans-serif!important;text-decoration:none;box-shadow:none!important;appearance:none;cursor:pointer;transition:color .18s ease,opacity .18s ease}
.ntp-modal-close:hover,.ntp-modal-close:focus-visible{background:transparent!important;color:var(--ntp-primary)!important;opacity:.72}
.ntp-form-select{box-sizing:border-box;width:100%;min-height:48px;padding:10px 42px 10px 14px;border:1px solid var(--ntp-control-border);border-radius:5px;background:#fff;color:#1d1c23;font:inherit}
.ntp-native-form .ntp-field input[type=file]{box-sizing:border-box;width:100%;padding:9px;border:1px solid var(--ntp-control-border);border-radius:5px;background:#fff;color:#1d1c23;font:inherit}
.ntp-product-form .select2-container{width:100%!important;max-width:100%}
.ntp-product-form .select2-container .select2-selection--single{display:flex;align-items:center;min-height:48px;height:auto;border:1px solid var(--ntp-control-border);border-radius:5px;background:#fff}
.ntp-product-form .select2-container .select2-selection--single .select2-selection__rendered{width:100%;padding:10px 42px 10px 14px;line-height:1.4;color:#1d1c23}
.ntp-product-form .select2-container .select2-selection--single .select2-selection__arrow{top:50%;right:10px;height:24px;transform:translateY(-50%)}
.ntp-product-form .select2-container--open .select2-selection--single,.ntp-product-form .select2-container--focus .select2-selection--single{border-color:var(--ntp-primary);box-shadow:0 0 0 2px var(--ntp-focus-ring)}
.ntp-preferred-clinic-button--active.ntp-secondary-button{background:#eff6f2}
@media(max-width:600px){.ntp-renewal-modal .ntp-primary-button,.ntp-renewal-modal .ntp-secondary-button,.ntp-renewal-modal .ntp-tertiary-button{width:100%}}

/* v0.9.89: shared compact controls, form labels and popup typography. */
.ntp-native-form .ntp-field>label,.ntp-native-form .ntp-field-label-row>label{color:var(--ntp-field-label)!important;font-weight:400!important}
.ntp-native-form .ntp-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.ntp-native-form .ntp-field textarea,.ntp-native-form .ntp-field select,.ntp-form-select,.ntp-native-form .select2-container .select2-selection--single,.ntp-native-form .select2-container .select2-selection--multiple{border-color:var(--ntp-control-border)!important}
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) h2,.ntp-renewal-modal__title{margin:0;padding-right:56px;color:var(--e-global-color-secondary,var(--ntp-primary));font-family:"aktiv-grotesk",Sans-Serif;font-size:20px;font-weight:700;line-height:1.5em}

/* v0.9.90: consolidated interface colours and unforced action heights. */
.ntp-native-form,.ntp-product-manager,.ntp-modal-dialog{color:var(--ntp-body)}
.ntp-form-card h3,.ntp-review-patient-card__header strong,.ntp-order-card-section h4,.ntp-product-manager h2{color:var(--ntp-heading)}
.ntp-renewal-modal__intro{color:var(--ntp-body)}
.ntp-renewal-modal .ntp-renewal-options .ntp-primary-button,.ntp-renewal-modal .ntp-renewal-options .ntp-secondary-button,.ntp-renewal-modal .ntp-renewal-options .ntp-tertiary-button,.ntp-review-token-row .ntp-reveal-prescription-token,.ntp-review-token-row .ntp-reveal-token,.ntp-review-token-row .ntp-hide-token{min-height:0}

/* v0.9.91: corrected shared button weight/hover and workflow title typography. */
.ntp-script-review-form .ntp-review-heading h3,.ntp-order-update-form .ntp-review-heading h3{color:var(--ntp-heading);font-size:32px;line-height:1.15}

/* v0.9.93: standalone product-listing actions. */
.ntp-product-status-form{display:inline-flex;margin:0}
.ntp-product-status-form .ntp-product-status-select{width:auto;min-width:142px;min-height:44px;padding-top:8px;padding-bottom:8px}
.ntp-product-status-form .ntp-product-status-select.is-submitting{pointer-events:none;opacity:.65}
.ntp-price-required{color:#a65b00;font-weight:650}

/* v0.9.94: SelectWoo appends its results to body; keep them above the NTP modal. */
body.ntp-modal-open>.select2-container--open,
body.ntp-preferences-modal-is-open>.select2-container--open,
body.ntp-prescription-modal-is-open>.select2-container--open{z-index:1000001!important}
.ntp-product-form [data-ntp-product-submit].is-saving::before{content:"";width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ntp-button-spin .7s linear infinite}
@keyframes ntp-button-spin{to{transform:rotate(360deg)}}
.ntp-form-submit-is-active{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;pointer-events:none}
.ntp-form-submit-is-active::before{content:"";width:14px;height:14px;flex:0 0 14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ntp-button-spin .7s linear infinite}
form[data-ntp-submitting="1"] button[type="submit"],form[data-ntp-submitting="1"] input[type="submit"]{pointer-events:none}
.ntp-add-prescription-to-cart.is-loading{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;pointer-events:none}
.ntp-add-prescription-to-cart.is-loading::before{content:"";width:14px;height:14px;flex:0 0 14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ntp-button-spin .7s linear infinite}
.ntp-prescriber-internal{display:inline-flex;margin:8px 0 0;padding:4px 9px;border-radius:999px;background:#eaf9e8;color:#168b2c;font-size:12px;font-weight:700}
.ntp-prescriber-internal[hidden]{display:none}
.ntp-prescriber-manual{margin-top:8px}
.ntp-prescriber-manual[hidden]{display:none!important}
.ntp-prescriber-manual input{box-sizing:border-box;width:100%}
.ntp-review-prescription-edit-heading h4{margin:0;color:var(--ntp-heading);font-size:20px;line-height:1.3}
.ntp-prescription-date-summary{display:flex;flex-direction:row;align-items:center;gap:16px;margin-top:2px;padding:8px 10px;border-radius:6px;background:var(--ntp-state-attention-bg);color:#24332b;font-size:12px;line-height:1.45}
.ntp-prescription-date-summary[hidden]{display:none!important}
.ntp-prescription-date-summary strong{font-weight:600}
.ntp-new-script-context strong{display:block}.ntp-new-script-context p{margin:5px 0 0}
.ntp-order-item-dispensing{display:grid;gap:8px;margin-top:8px;padding-bottom:7px;color:#1d1c23;font-size:12px}.ntp-order-card-items>li+li{padding-top:10px;border-top:1px solid #e4e9e6}.ntp-order-item-dispensing__summary{display:flex;flex-wrap:wrap;gap:4px 7px;line-height:1.45}.ntp-order-item-dispensing__prescription-link{color:#003234;font-weight:700;text-decoration:underline;text-underline-offset:2px}.ntp-order-item-dispensing__prescription-link:hover,.ntp-order-item-dispensing__prescription-link:focus-visible{color:#006266}.ntp-order-item-dispensing__prescription-link:focus-visible{outline:2px solid var(--ntp-focus-ring);outline-offset:2px}.ntp-order-item-dispensing__token .ntp-token-control{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%;flex-wrap:wrap}.ntp-order-item-dispensing__token .ntp-reveal-prescription-token,.ntp-order-item-dispensing__token .ntp-hide-token{min-height:0!important;padding:0!important;border:0!important;background:transparent!important;color:#1d1c23!important;font:inherit!important;text-decoration:underline;text-underline-offset:2px;box-shadow:none!important}.ntp-order-item-dispensing__token .ntp-token-value{box-sizing:border-box;flex:1 1 180px;min-width:0;max-width:100%;padding:5px 7px;font-size:11px;line-height:1.35;overflow-wrap:anywhere;word-break:break-all}.ntp-order-item-dispensing__token .ntp-token-value[hidden],:is(.ntp-order-item-dispensing__token,.ntp-token-control) .ntp-copy-token[hidden]{display:none!important}:is(.ntp-order-item-dispensing__token,.ntp-token-control) .ntp-copy-token{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:28px;min-height:28px;padding:2px;border:0;border-radius:5px;background:transparent;color:#003234;box-shadow:none;cursor:pointer}:is(.ntp-order-item-dispensing__token,.ntp-token-control) .ntp-copy-token:hover,:is(.ntp-order-item-dispensing__token,.ntp-token-control) .ntp-copy-token:focus-visible{background:#e5f0e8;color:#003234}:is(.ntp-order-item-dispensing__token,.ntp-token-control) .ntp-copy-token:focus-visible{outline:2px solid var(--ntp-focus-ring);outline-offset:2px}:is(.ntp-order-item-dispensing__token,.ntp-token-control) .ntp-copy-token.is-copied{background:#e5f0e8}:is(.ntp-order-item-dispensing__token,.ntp-token-control) .ntp-copy-token svg{width:20px;height:20px;fill:currentColor}.ntp-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.ntp-order-item-dispensing__warning{margin:0;padding:7px 8px;border-left:3px solid var(--ntp-state-attention,#c66a00);background:var(--ntp-state-attention-bg,#fff5dc);color:#71440c;font-weight:600}.ntp-updated-repeat-token{margin-top:2px;padding-top:8px;border-top:1px solid #d8dedb}.ntp-updated-repeat-token summary{color:#003234;font-weight:700;cursor:pointer}.ntp-updated-repeat-token .ntp-field{margin-top:9px}.ntp-order-item-dispensing .ntp-updated-repeat-token input{box-sizing:border-box;width:100%}
.ntp-date-summary-separator{align-self:stretch;width:1px;background:#e0b967}
@media(max-width:640px){.ntp-prescription-date-summary{flex-wrap:wrap;gap:6px 10px}.ntp-date-summary-separator{display:none}.ntp-order-item-dispensing__token .ntp-token-value{flex-basis:100%;order:3}:is(.ntp-order-item-dispensing__token,.ntp-token-control) .ntp-copy-token{margin-left:auto}}
.ntp-product-manager__header-actions,.ntp-catalogue-import__actions{display:flex;align-items:center;gap:12px}.ntp-product-row.is-inactive{opacity:.82}.ntp-product-row.is-inactive .ntp-product-row__status span{background:var(--ntp-state-attention-bg,#fff3d6);color:var(--ntp-state-attention,#9a5b00)}.ntp-product-row__status{display:flex;flex-direction:column;gap:3px}.ntp-product-row__status small{color:#7b8581;font-size:11px}.ntp-catalogue-import{margin:0 0 24px}.ntp-catalogue-import[hidden],.ntp-inactive-product-notice[hidden]{display:none!important}.ntp-catalogue-summary ul{margin:8px 0 0;padding-left:20px}.ntp-catalogue-summary .is-warning{color:var(--ntp-state-attention,#9a5b00)}.ntp-inactive-product-notice [data-ntp-activate-message]{display:block;margin-top:4px}

/* v0.9.114: optional patient 2FA reminder; colours come from the shared attention notice. */
.ntp-2fa-reminder{display:flex;align-items:center;justify-content:space-between;gap:18px}
.ntp-2fa-reminder[hidden]{display:none!important}
.ntp-2fa-reminder__content{min-width:0}.ntp-2fa-reminder__content strong{display:block}.ntp-2fa-reminder__content p{margin:4px 0 0}
.ntp-2fa-reminder__actions{display:flex;flex:0 0 auto;align-items:center;gap:10px}.ntp-2fa-reminder__dismiss{margin:0}
.ntp-2fa-reminder .ntp-primary-button,.ntp-2fa-reminder .ntp-primary-button:visited{color:var(--ntp-primary-foreground)!important}.ntp-2fa-reminder .ntp-primary-button:hover,.ntp-2fa-reminder .ntp-primary-button:focus-visible{color:var(--ntp-hover-foreground)!important}
@media(max-width:640px){.ntp-2fa-reminder{align-items:stretch;flex-direction:column}.ntp-2fa-reminder__actions{flex-wrap:wrap}.ntp-2fa-reminder__actions .ntp-primary-button,.ntp-2fa-reminder__actions .ntp-tertiary-button{width:100%}.ntp-2fa-reminder__dismiss{flex:1 1 100%}}
.ntp-patient-account-actions {
  display: grid;
  gap: 20px;
}

.ntp-patient-account-actions__summary,
.ntp-patient-account-actions__buttons,
.ntp-patient-access-action,
.ntp-patient-status-form,
.ntp-patient-email-correction-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ntp-patient-account-actions__summary small {
  flex-basis: 100%;
  color: var(--ntp-text-muted, #687370);
}

.ntp-patient-account-actions form,
.ntp-patient-access-action,
.ntp-patient-status-form,
.ntp-patient-email-correction-form,
.ntp-patient-account-actions label {
  margin: 0;
}

.ntp-patient-status-form label,
.ntp-patient-email-correction-form label {
  display: grid;
  gap: 6px;
}

@media (max-width: 767px) {
  .ntp-patient-account-actions__buttons,
  .ntp-patient-account-actions__buttons form,
  .ntp-patient-account-actions__buttons .ntp-button {
    width: 100%;
  }
}
/* Native pharmacist Product Manager — inherits the portal's existing palette and type. */
.ntp-product-native{width:100%;background:transparent;color:inherit;font:inherit}
.ntp-product-native__filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}
.ntp-product-native__filters>input,.ntp-product-native__filters>select,.ntp-product-native__dropdown>summary{width:100%;min-height:47px;padding:11px 13px;border:1px solid #ccc;border-radius:8px;background:transparent;color:inherit;font:inherit;box-sizing:border-box}
.ntp-product-native__filters>input:focus,.ntp-product-native__filters>select:focus,.ntp-product-native__dropdown:focus-within>summary{outline:1px solid var(--ntp-primary,#003234);outline-offset:0}
.ntp-product-native__dropdown{position:relative;min-width:0}
.ntp-product-native__dropdown>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;white-space:nowrap;overflow:hidden}
.ntp-product-native__dropdown>summary::-webkit-details-marker{display:none}
.ntp-product-native__dropdown>summary:after{content:"";border:5px solid transparent;border-top-color:currentColor;transform:translateY(3px);margin-left:10px}
.ntp-product-native__dropdown[open]>summary:after{transform:translateY(-3px) rotate(180deg)}
.ntp-product-native__choices{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;max-height:275px;overflow:auto;padding:12px 14px;background:#fff;border:1px solid #e1e1e1;border-radius:6px;box-shadow:0 3px 12px #0000000d}
.ntp-product-native__choices label{display:flex;align-items:center;gap:10px;margin:0;padding:8px 0;color:inherit;font-size:inherit;cursor:pointer}
.ntp-product-native__choices input[type=checkbox]{accent-color:var(--ntp-primary,#003234);width:17px;height:17px;flex:none}
.ntp-product-native__brand-search{width:100%;min-height:40px;margin:0 0 8px;padding:8px 10px;border:1px solid #ccc;border-radius:6px;font:inherit}
:is(.ntp-product-native__chips,.ntp-active-filters){display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}:is(.ntp-product-native__chips,.ntp-active-filters)[hidden]{display:none}
:is(.ntp-product-native__chips,.ntp-active-filters) button{border:0;border-radius:4px;padding:6px 9px;color:var(--ntp-primary,#003234);background:#e0ebe4;font:inherit;font-size:13px;cursor:pointer}
.ntp-product-native__head,.ntp-product-native__row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1.4fr) minmax(0,.75fr) minmax(0,1.25fr) 90px;gap:16px;align-items:center}
.ntp-product-native__head{border-bottom:1px solid #d9ddda;padding:9px 10px;color:#747b7a;font-size:13px}
.ntp-product-native__head span:last-child{text-align:right}
.ntp-product-native__row{padding:13px 10px;border-bottom:1px solid #e1e4e2;min-height:52px;font-size:14px;line-height:1.4!important}
.ntp-product-native__product{display:flex;align-items:center;min-width:0;gap:10px}.ntp-product-native__product strong{font-weight:650;display:block;line-height:1.4}.ntp-product-native__product small:not(.ntp-editing-indicator),.ntp-product-native__detail small:not(.ntp-editing-indicator){display:block;margin-top:5px;color:#849099;font-size:12px}
.ntp-product-native__image{flex:0 0 38px;align-self:flex-start;display:flex;align-items:center;justify-content:center}.ntp-product-native__image img{display:block;max-height:38px;max-width:38px;object-fit:contain}
.ntp-product-native__category{display:flex;gap:8px;align-items:center}.ntp-product-native__category img{width:28px;height:28px;object-fit:contain;border-radius:6px}
.ntp-product-native__label{display:none}.ntp-product-native__action{text-align:right}.ntp-product-native__action .ntp-button{border-radius:999px;padding:9px 20px;min-height:0}
.ntp-product-native__empty{padding:30px 10px;text-align:center;color:#849099}
:is(.ntp-product-native__pages,.ntp-pagination){display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:16px}:is(.ntp-product-native__pages,.ntp-pagination) :is(a,button){border:0;background:transparent;color:#849099;font:inherit;padding:8px 12px;cursor:pointer;border-radius:999px}:is(.ntp-product-native__pages,.ntp-pagination) :is(a,button)[aria-current=page]{background:var(--ntp-primary,#003234);color:#fff}
.ntp-product-native-editor-placeholder{padding:18px;border:1px dashed #ccd4d0;border-radius:8px;color:#68706d}
@media(max-width:1024px){.ntp-product-native__filters{grid-template-columns:1fr}.ntp-product-native__head{display:none}.ntp-product-native__row{display:grid;grid-template-columns:1fr;gap:14px;padding:24px 0}.ntp-product-native__product{font-size:20px}.ntp-product-native__detail{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;align-items:center}.ntp-product-native__label{display:block;color:#666}.ntp-product-native__action{text-align:initial}.ntp-product-native__action .ntp-button{width:100%}.ntp-product-native__product{padding-bottom:18px;border-bottom:1px dashed #ddd}.ntp-product-native__choices{position:relative;top:3px}}
@media(max-width:767px){.ntp-product-native__detail{grid-template-columns:minmax(100px,35%) minmax(0,1fr)}.ntp-product-native__row{font-size:14px}}

/* v0.9.165 — Product Manager polish; scoped to avoid theme/global button rules. */
.ntp-product-native, .ntp-product-native *{box-sizing:border-box}
.ntp-product-native__filters{min-width:0;align-items:stretch}
.ntp-product-native__filters>*{min-width:0;max-width:100%;margin:0!important}
.ntp-product-native__filters>input[data-ntp-product-search],.ntp-product-native__filters>select[data-ntp-product-sort],.ntp-product-native__dropdown>summary{display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;height:47px!important;min-height:47px!important;padding:10px 13px!important;border:1px solid #ccc!important;border-radius:8px!important;background-color:transparent!important;color:inherit!important;font:inherit!important;line-height:1.3!important;box-shadow:none!important}
.ntp-product-native__dropdown>summary{align-items:center;justify-content:space-between;gap:9px;text-overflow:ellipsis;overflow:hidden}
.ntp-product-native__dropdown>summary:after{flex:0 0 auto}
.ntp-product-native__filters select[data-ntp-product-sort]{appearance:auto!important;-webkit-appearance:auto!important}
.ntp-product-native__choices{max-height:300px;background:#fff}
.ntp-product-native__choices label{font-weight:300!important;font-size:inherit!important;line-height:1.45!important;color:inherit!important}
.ntp-product-native__choices input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;position:relative!important;display:inline-grid!important;place-items:center!important;flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;margin:0!important;border:1px solid #c5cac6!important;border-radius:3px!important;background:transparent!important;box-shadow:none!important;cursor:pointer}
.ntp-product-native__choices input[type=checkbox]:checked{background:var(--ntp-primary,#003234)!important;border-color:var(--ntp-primary,#003234)!important}
.ntp-product-native__choices input[type=checkbox]:checked:after{content:'';display:block;width:9px;height:5px;border-left:2px solid white;border-bottom:2px solid white;transform:translateY(-1px) rotate(-45deg)}
.ntp-product-native__choices input[type=checkbox]:focus-visible{outline:2px solid var(--ntp-primary,#003234);outline-offset:2px}
.ntp-product-native__dropdown[open]{z-index:50}
:is(.ntp-product-native__chips,.ntp-active-filters){gap:6px;margin:0 0 12px}
:is(.ntp-product-native__chips,.ntp-active-filters) button,:is(.ntp-product-native__chips,.ntp-active-filters) button:hover,:is(.ntp-product-native__chips,.ntp-active-filters) button:focus{display:inline-flex!important;align-items:center!important;width:auto!important;min-height:0!important;height:auto!important;margin:0!important;padding:6px 9px!important;border:0!important;border-radius:4px!important;background:#e0ebe4!important;color:var(--ntp-primary,#003234)!important;font:inherit!important;font-size:13px!important;font-weight:400!important;line-height:1.4!important;box-shadow:none!important;cursor:pointer}
:is(.ntp-product-native__chips,.ntp-active-filters) button .ntp-chip-remove{margin-left:8px;color:#83928b;font-size:17px;font-weight:600;line-height:1}
.ntp-product-native__head,.ntp-product-native__row{align-items:start}
.ntp-product-native__row{align-items:center}
.ntp-product-native__product{align-items:flex-start}
.ntp-product-native__identity{min-width:0;align-self:flex-start}
.ntp-product-native__name,.ntp-product-native__name:hover,.ntp-product-native__name:focus{display:block!important;max-width:100%;min-height:0!important;width:auto!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font:inherit!important;font-size:14px!important;font-weight:650!important;line-height:1.4!important;text-align:left!important;box-shadow:none!important;cursor:pointer}
.ntp-product-native__name:hover{text-decoration:underline!important;text-underline-offset:2px}
.ntp-product-native__product small:not(.ntp-editing-indicator),.ntp-product-native__detail small:not(.ntp-editing-indicator){margin:2px 0 0!important;padding:0!important;font-size:12px;line-height:1.4}
.ntp-product-native__image{align-self:flex-start}
.ntp-product-native__category img{border-radius:8px}
.ntp-product-native__empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:160px;padding:35px 10px;color:#898781}
.ntp-product-native__empty img{height:30px;width:30px;opacity:.7}
:is(.ntp-product-native__pages,.ntp-pagination){gap:6px}
:is(.ntp-product-native__pages,.ntp-pagination) :is(a,button),:is(.ntp-product-native__pages,.ntp-pagination) :is(a,button):hover,:is(.ntp-product-native__pages,.ntp-pagination) :is(a,button):focus{display:inline-flex!important;justify-content:center!important;align-items:center!important;flex:0 0 auto!important;width:auto!important;min-width:34px!important;height:34px!important;min-height:34px!important;margin:0!important;padding:6px 10px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#849099!important;font:inherit!important;font-size:14px!important;font-weight:400!important;line-height:1!important;box-shadow:none!important;text-decoration:none!important;cursor:pointer}
:is(.ntp-product-native__pages,.ntp-pagination) :is(a,button)[aria-current="page"],:is(.ntp-product-native__pages,.ntp-pagination) :is(a,button)[aria-current="page"]:hover,:is(.ntp-product-native__pages,.ntp-pagination) :is(a,button)[aria-current="page"]:focus{background:var(--ntp-primary,#003234)!important;color:white!important}
@media(max-width:1024px){.ntp-product-native__name,.ntp-product-native__name:hover,.ntp-product-native__name:focus{font-size:14px!important}.ntp-product-native__choices{position:absolute;top:calc(100% + 4px)}.ntp-product-native__row{gap:14px}.ntp-product-native__image{align-self:flex-start}.ntp-product-native__detail{align-items:start}}

/* v0.9.166 — Shared pharmacist listing design system.
   Scope all tokens to :is(.ntp-staff-list,.ntp-list) to avoid injecting colours or overrides elsewhere.
   Future pharmacist listings can opt in to these tokens and component classes. */
:is(.ntp-staff-list,.ntp-list){
  --ntp-list-accent:var(--ntp-primary,#003234);
  --ntp-list-border:#cccccc;
  --ntp-list-divider:#dedede;
  --ntp-list-muted:#777777;
  --ntp-list-chip-bg:#e0ebe4;
  --ntp-list-radius:8px;
  --ntp-list-control-height:47px;
  --ntp-list-control-weight:300;
  min-width:0;
}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;align-items:start!important;width:100%!important;min-width:0!important;
}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters>*{
  display:block!important;grid-column:auto;grid-row:auto;position:relative;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;box-sizing:border-box!important;
}
/* Three dropdowns, then a two-column search and one-column sort. */
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters>[data-ntp-product-search]{grid-column:span 2!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters>[data-ntp-product-sort]{grid-column:span 1!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters>input[data-ntp-product-search],
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters>select[data-ntp-product-sort],
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__dropdown>summary{
  display:flex!important;align-items:center!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:var(--ntp-list-control-height)!important;min-height:var(--ntp-list-control-height)!important;
  padding:10px 13px!important;margin:0!important;box-sizing:border-box!important;
  border:1px solid var(--ntp-list-border)!important;border-radius:var(--ntp-list-radius)!important;
  background:transparent!important;box-shadow:none!important;
  font-family:inherit!important;font-size:inherit!important;font-weight:var(--ntp-list-control-weight)!important;line-height:1.3!important;
  color:inherit!important;letter-spacing:normal!important;
}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters>input[data-ntp-product-search]{
  display:block!important;appearance:none!important;-webkit-appearance:none!important;
}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters>input[data-ntp-product-search]::placeholder{
  color:#849099!important;font-weight:300!important;opacity:1;
}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters>select[data-ntp-product-sort]{
  display:block!important;-webkit-appearance:auto!important;appearance:auto!important;
}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__dropdown>summary{justify-content:space-between!important;cursor:pointer!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__choices{z-index:60;max-height:300px;overflow-y:auto;background:#fff;border-radius:var(--ntp-list-radius)}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__choices label{font-weight:300!important;color:inherit!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__choices input[type=checkbox]{
  appearance:none!important;-webkit-appearance:none!important;display:grid!important;place-items:center!important;
  flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;
  padding:0!important;margin:0!important;border:1px solid #c5cac6!important;border-radius:3px!important;
  background:#fff!important;box-shadow:none!important;
}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__choices input[type=checkbox]:checked{background:var(--ntp-list-accent)!important;border-color:var(--ntp-list-accent)!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__choices input[type=checkbox]:checked::after{content:'';display:block;width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__category img{width:28px;height:28px;border-radius:8px!important;overflow:hidden!important;object-fit:cover!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__empty{color:#777777!important;min-height:160px}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__empty img{width:30px;height:30px;opacity:1;filter:none}
:is(.ntp-staff-list,.ntp-list) :is(.ntp-product-native__chips,.ntp-active-filters) button{background:var(--ntp-list-chip-bg)!important;color:var(--ntp-list-accent)!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__content{position:relative;min-height:70px}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__content[aria-busy=true]::before{
  content:'';position:absolute;inset:0;z-index:20;background:rgba(255,255,255,.74);pointer-events:all;
}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__content[aria-busy=true]::after{
  content:'';position:absolute;z-index:21;top:40px;left:calc(50% - 17px);width:34px;height:34px;
  border:4px solid #e0ebe4;border-top-color:var(--ntp-list-accent);border-radius:50%;
  animation:ntp-staff-list-spin .7s linear infinite;pointer-events:none;
}
@keyframes ntp-staff-list-spin{to{transform:rotate(360deg)}}
:is(.ntp-staff-list,.ntp-list) .ntp-staff-list__loading-label{
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
:is(.ntp-staff-list,.ntp-list) .ntp-staff-list__loading-label[hidden]{display:none}
@media(max-width:1024px){
  :is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters{grid-template-columns:minmax(0,1fr)!important}
  :is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters>[data-ntp-product-search],
  :is(.ntp-staff-list,.ntp-list) .ntp-product-native__filters>[data-ntp-product-sort]{grid-column:auto!important}
}
@media(prefers-reduced-motion:reduce){:is(.ntp-staff-list,.ntp-list) .ntp-product-native__content[aria-busy=true]::after{animation-duration:1.6s}}

/* v0.9.167 — Shared NTP list empty state and actionable pharmacist rows. */
.ntp-empty-state{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:7px;min-height:160px;padding:32px 10px;
  color:#777777;font-size:14px;font-weight:400;line-height:1.5;text-align:center;
  background:transparent;border:0;
}
.ntp-empty-state .ntp-empty-state__icon{
  display:block;width:32px;height:32px;max-width:32px;max-height:32px;
  opacity:1;filter:none;
}
.ntp-empty-state .ntp-empty-state__text{font-size:14px!important;font-weight:400!important;color:#777777!important;margin:0!important}
:is(.ntp-staff-list,.ntp-list) :is(.ntp-product-native__row[data-ntp-edit-row],:is(.ntp-patient-list__row,.ntp-list-grid__row)[data-ntp-patient-row],.ntp-list-grid__row[data-ntp-record-row]){cursor:pointer;transition:background-color .15s ease}
:is(.ntp-staff-list,.ntp-list) :is(.ntp-product-native__row[data-ntp-edit-row],:is(.ntp-patient-list__row,.ntp-list-grid__row)[data-ntp-patient-row],.ntp-list-grid__row[data-ntp-record-row]):hover{background:var(--ntp-list-row-hover,#f3f5f3)}
:is(.ntp-staff-list,.ntp-list) :is(.ntp-product-native__row[data-ntp-edit-row],:is(.ntp-patient-list__row,.ntp-list-grid__row)[data-ntp-patient-row],.ntp-list-grid__row[data-ntp-record-row]):focus-visible{outline:2px solid var(--ntp-list-accent,#003234);outline-offset:-2px;background:var(--ntp-list-row-hover,#f3f5f3)}
@media(prefers-reduced-motion:reduce){:is(.ntp-staff-list,.ntp-list) :is(.ntp-product-native__row[data-ntp-edit-row],:is(.ntp-patient-list__row,.ntp-list-grid__row)[data-ntp-patient-row],.ntp-list-grid__row[data-ntp-record-row]){transition:none}}

/* v0.9.168 — Shared empty-state icon sizing and non-blocking product save feedback. */
.ntp-empty-state .ntp-empty-state__icon{
  width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;
}
.ntp-product-save-toast{
  position:fixed;z-index:1000001;right:20px;bottom:20px;
  max-width:min(420px,calc(100vw - 40px));
  padding:12px 18px;border-radius:8px;
  box-shadow:0 6px 24px rgba(0,0,0,.12);
  pointer-events:none;
}
.ntp-product-save-toast[hidden]{display:none!important}

/* v0.9.169 shared NTP notice component: preserve existing status colours. */
.ntp-form-notice,.ntp-product-modal__message {
  box-sizing:border-box; padding:12px 16px; border-radius:8px;
  font-size:14px; line-height:1.5;
}
.ntp-product-modal__message[hidden]{display:none!important}

/* Product editor refinements — reuse the existing NTP design system. */
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) .ntp-product-form .ntp-field--full{margin-top:0!important}
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) .ntp-product-form .ntp-form-grid{row-gap:14px}
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) .ntp-product-modal__message,
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) .ntp-product-modal__message.is-error{
  box-sizing:border-box!important;padding:12px 16px!important;margin:0 0 18px!important;
  border-radius:8px!important;font-size:14px!important;line-height:1.5!important;
}
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) [data-ntp-custom-brand][hidden]{display:none!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__row--new{background:var(--ntp-list-row-hover,#f3f5f3)}

/* v0.9.171: modal alert spacing and SelectWoo new-brand companion field. */
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) .ntp-product-modal__message:not([hidden]){margin-top:0!important;margin-bottom:18px!important}
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) [data-ntp-custom-brand][data-ntp-brand-visible]{display:flex!important}
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) [data-ntp-custom-brand][hidden]{display:none!important}

/* v0.9.172: use one consistent gap after the modal title, whether or not the alert is visible. */
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) [data-ntp-product-title]{margin:0 44px 24px 0!important;}
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) [data-ntp-product-title]:has(+ .ntp-product-modal__message:not([hidden])){margin-bottom:0!important;}
:is(.ntp-product-modal__dialog,.ntp-modal__dialog) .ntp-product-modal__message:not([hidden]){margin-top:0!important;margin-bottom:18px!important;}

/* v0.9.173 — reusable staff list bulk-selection controls; no additional palette. */
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__head,:is(.ntp-staff-list,.ntp-list) .ntp-product-native__row{grid-template-columns:24px minmax(0,3fr) minmax(0,1.4fr) minmax(0,.75fr) minmax(0,1.25fr) 90px;column-gap:12px}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select{display:flex;align-items:center;justify-content:center;align-self:center}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select label{margin:0;line-height:0;cursor:pointer}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;margin:0!important;border:1px solid #c5cac6!important;border-radius:3px!important;background:transparent!important;display:inline-grid!important;place-items:center!important;cursor:pointer;box-shadow:none!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select input[type=checkbox]:checked{background:var(--ntp-list-accent,#003234)!important;border-color:var(--ntp-list-accent,#003234)!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select input[type=checkbox]:checked:after{content:'';width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select input[type=checkbox]:focus-visible{outline:2px solid var(--ntp-list-accent,#003234);outline-offset:2px}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__bulk{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 14px;font-size:14px}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__bulk[hidden],:is(.ntp-staff-list,.ntp-list) .ntp-product-native__bulk-message[hidden]{display:none!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__bulk select{width:auto;min-width:145px;min-height:36px;margin:0;padding:6px 9px;border:1px solid #ccc;border-radius:8px;background:transparent;color:inherit;font:inherit;font-weight:300}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__bulk .ntp-button{width:auto!important;min-width:0!important;min-height:36px!important;padding:6px 15px!important;margin:0!important;font-size:14px!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__bulk-clear{width:auto!important;min-height:0!important;margin:0!important;padding:4px!important;background:transparent!important;color:inherit!important;border:0!important;text-decoration:underline;font:inherit!important;font-size:13px!important}
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__bulk-message{flex-basis:100%;color:#777;font-size:14px}
@media(max-width:1024px){:is(.ntp-staff-list,.ntp-list) .ntp-product-native__row{grid-template-columns:24px minmax(0,1fr);column-gap:14px}:is(.ntp-staff-list,.ntp-list) .ntp-product-native__row>.ntp-product-native__select{grid-row:1;grid-column:1;align-self:start;margin-top:10px}:is(.ntp-staff-list,.ntp-list) .ntp-product-native__row>.ntp-product-native__product{grid-row:1;grid-column:2}:is(.ntp-staff-list,.ntp-list) .ntp-product-native__row>.ntp-product-native__detail,:is(.ntp-staff-list,.ntp-list) .ntp-product-native__row>.ntp-product-native__action{grid-column:2}}

/* v0.9.174 — shared pharmacist-list selection: fixed-size, theme-resistant square checkbox. */
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select,
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select label{
  min-width:20px!important; width:20px!important; min-height:20px!important;
  display:inline-flex!important; flex:0 0 20px!important;
  align-items:center!important; justify-content:center!important;
  margin:0!important; padding:0!important; line-height:1!important;
}
.ntp-native-form input.ntp-selection-checkbox,
.ntp-price-changes input.ntp-selection-checkbox,
.ntp-price-protection input.ntp-selection-checkbox,
.ntp-catalogue-import .ntp-catalogue-price-review input.ntp-selection-checkbox,
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select input[type="checkbox"]{
  appearance:none!important; -webkit-appearance:none!important;
  box-sizing:border-box!important; display:block!important;
  inline-size:20px!important; block-size:20px!important;
  width:20px!important; height:20px!important;
  min-width:20px!important; min-height:20px!important;
  max-width:20px!important; max-height:20px!important;
  flex:0 0 20px!important; aspect-ratio:1/1!important;
  margin:0!important; padding:0!important; position:relative!important;
  transform:none!important; border:1px solid #c5cac6!important;
  border-radius:4px!important; background:#fff!important;
  box-shadow:none!important; vertical-align:middle!important;
  cursor:pointer!important;
}
.ntp-native-form input.ntp-selection-checkbox:checked,
.ntp-price-changes input.ntp-selection-checkbox:checked,
.ntp-price-protection input.ntp-selection-checkbox:checked,
.ntp-catalogue-import .ntp-catalogue-price-review input.ntp-selection-checkbox:checked,
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select input[type="checkbox"]:checked{
  background:var(--ntp-list-accent,#003234)!important;
  border-color:var(--ntp-list-accent,#003234)!important;
}
.ntp-native-form input.ntp-selection-checkbox:checked::after,
.ntp-price-changes input.ntp-selection-checkbox:checked::after,
.ntp-price-protection input.ntp-selection-checkbox:checked::after,
.ntp-catalogue-import .ntp-catalogue-price-review input.ntp-selection-checkbox:checked::after,
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select input[type="checkbox"]:checked::after{
  content:""!important; display:block!important;
  position:absolute!important; left:5px!important; top:5px!important;
  width:8px!important; height:5px!important;
  border:0!important; border-left:2px solid #fff!important;
  border-bottom:2px solid #fff!important;
  transform:rotate(-45deg)!important;
  background:transparent!important; box-shadow:none!important;
}
.ntp-native-form input.ntp-selection-checkbox:focus-visible,
.ntp-price-changes input.ntp-selection-checkbox:focus-visible,
.ntp-price-protection input.ntp-selection-checkbox:focus-visible,
.ntp-catalogue-import .ntp-catalogue-price-review input.ntp-selection-checkbox:focus-visible,
:is(.ntp-staff-list,.ntp-list) .ntp-product-native__select input[type="checkbox"]:focus-visible{
  outline:2px solid var(--ntp-list-accent,#003234)!important;outline-offset:3px!important;
}

/* Catalogue import price review — shared NTP controls and existing palette. */
.ntp-catalogue-price-review{margin:16px 0 20px}
.ntp-catalogue-import .ntp-form-card__heading h3,
.ntp-catalogue-import .ntp-catalogue-price-review h4{margin:0 0 8px!important;font-size:18px!important;line-height:1.3!important;font-weight:700!important;color:var(--ntp-heading,#1d1c23)!important}
.ntp-catalogue-price-review p{margin:0 0 12px;font-size:14px;line-height:1.5}
.ntp-catalogue-price-review__select{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:14px}
.ntp-catalogue-price-review__scroll{overflow-x:auto;max-height:390px;overflow-y:auto;border:1px solid #ddd;border-radius:8px}
.ntp-catalogue-price-review__table{width:100%;border-collapse:collapse;font-size:14px;background:transparent}
.ntp-catalogue-price-review__table th,.ntp-catalogue-price-review__table td{padding:10px 12px;border-bottom:1px solid #e5e5e5;text-align:left;vertical-align:middle}
.ntp-catalogue-price-review__table th{font-weight:600}
.ntp-catalogue-price-review__note{margin:10px 0 0!important;color:var(--ntp-text-secondary,#777)}

/* Import completion replaces the preview and reuses existing notice styles. */
.ntp-catalogue-price-review[hidden],.ntp-catalogue-summary[hidden],[data-ntp-catalogue-progress][hidden]{display:none!important}
.ntp-catalogue-import__actions{flex-wrap:wrap}
.ntp-catalogue-import [data-ntp-catalogue-progress]{margin-top:16px}
.ntp-selection-checkbox:disabled{opacity:.55;cursor:default!important}


/* Reusable component APIs and theme-resistant variants. */
/* Shared NTP controls. Explicit resets keep theme button rules out of these components. */
:root{
  --ntp-control-primary:#003234;
  --ntp-control-primary-hover:#0b4943;
  --ntp-tab-background:#FFFFFF4D;
  --ntp-tab-active-background:#fff;
  --ntp-button-radius:999px;
  --ntp-button-font-size:14px;
  --ntp-button-hover-background:#C1D7C7;
  --ntp-button-hover-text:#003234;
}
.ntp-button,
.ntp-primary-button,
.ntp-secondary-button,
.ntp-tertiary-button,
.ntp-order-pay #order_review #payment #place_order{
  appearance:none!important;-webkit-appearance:none!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;gap:8px!important;width:auto!important;max-width:100%!important;
  min-height:40px!important;margin:0!important;padding:10px 18px!important;
  border:1px solid var(--ntp-control-primary)!important;border-radius:var(--ntp-button-radius)!important;
  background:var(--ntp-control-primary)!important;background-image:none!important;color:#fff!important;
  font-family:inherit!important;font-size:var(--ntp-button-font-size)!important;font-weight:400!important;
  line-height:1.3!important;letter-spacing:normal!important;text-transform:none!important;
  text-decoration:none!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer!important;
}
.ntp-button:hover:where(:not(:disabled):not([aria-disabled=true])),.ntp-primary-button:hover:where(:not(:disabled):not([aria-disabled=true])),
.ntp-order-pay #order_review #payment #place_order:is(:hover,:focus-visible):where(:not(:disabled):not([aria-disabled=true])){
  background:var(--ntp-button-hover-background)!important;border-color:var(--ntp-button-hover-background)!important;color:var(--ntp-button-hover-text)!important;
}
.ntp-button.ntp-button--secondary,.ntp-secondary-button{
  background:transparent!important;color:var(--ntp-control-primary)!important;border-color:var(--ntp-control-primary)!important;
}
.ntp-button.ntp-button--secondary:hover:where(:not(:disabled):not([aria-disabled=true])),.ntp-secondary-button:hover:where(:not(:disabled):not([aria-disabled=true])){
  background:var(--ntp-button-hover-background)!important;color:var(--ntp-button-hover-text)!important;border-color:transparent!important;
}
.ntp-button:focus-visible,.ntp-primary-button:focus-visible,.ntp-secondary-button:focus-visible,.ntp-tertiary-button:focus-visible,
.ntp-order-pay #order_review #payment #place_order:focus-visible{
  outline:2px solid var(--ntp-control-primary)!important;outline-offset:3px!important;
}
.ntp-button:disabled,.ntp-button[aria-disabled=true],.ntp-tertiary-button:disabled,
.ntp-order-pay #order_review #payment #place_order:is(:disabled,[aria-disabled=true]){
  opacity:.5!important;cursor:default!important;
}
/* Reusable tabs: .ntp-tabs container, .ntp-tab controls, aria-selected or .is-active. */
.ntp-tabs,.ntp-catalogue-tabs{
  display:flex!important;align-items:stretch!important;gap:4px!important;flex-wrap:nowrap!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;
  overflow-x:auto;scrollbar-width:thin;
}
.ntp-tabs .ntp-tab,.ntp-tabs [role=tab],.ntp-catalogue-tabs [role=tab]{
  appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
  min-height:44px!important;width:auto!important;margin:0!important;padding:10px 16px!important;
  border:0!important;border-radius:5px 5px 0 0!important;
  background:var(--ntp-tab-background)!important;background-image:none!important;color:var(--ntp-control-primary)!important;
  font:inherit!important;font-weight:500!important;line-height:1.4!important;letter-spacing:normal!important;
  text-transform:none!important;text-decoration:none!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer!important;
}
.ntp-tabs .ntp-tab:hover,.ntp-tabs [role=tab]:hover,.ntp-catalogue-tabs [role=tab]:hover{
  background:var(--ntp-control-primary)!important;color:#fff!important;
}
.ntp-tabs .ntp-tab.is-active,.ntp-tabs [aria-selected=true],.ntp-catalogue-tabs [aria-selected=true]{
  background:var(--ntp-tab-active-background)!important;color:var(--ntp-control-primary)!important;
}
.ntp-tabs .ntp-tab:focus-visible,.ntp-tabs [role=tab]:focus-visible,.ntp-catalogue-tabs [role=tab]:focus-visible{
  outline:2px solid var(--ntp-control-primary)!important;outline-offset:-3px!important;
}
[data-ntp-catalogue-pane][hidden]{display:none!important}
.ntp-catalogue-workspace .ntp-form-card{border-radius:0 12px 12px 12px!important}
/* Shared card headings; data tables retain their normal body font. */
.ntp-catalogue-workspace .ntp-form-card h3,
.ntp-price-changes.ntp-form-card h3{
  margin:0 0 8px!important;padding:0!important;font-family:inherit!important;
  font-size:18px!important;font-weight:700!important;line-height:1.3!important;
  color:#1d1c23!important;letter-spacing:normal!important;text-transform:none!important;
}
.ntp-price-changes__actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0}
.ntp-data-table-scroll,.ntp-price-changes__scroll{
  display:block!important;width:100%!important;overflow-x:auto!important;
  border:1px solid var(--ntp-control-border,#d8dedb)!important;border-radius:8px!important;
}
.ntp-data-table,.ntp-price-changes table{
  display:table!important;width:100%!important;min-width:840px!important;margin:0!important;
  table-layout:auto!important;border-collapse:collapse!important;border-spacing:0!important;
  background:#fff!important;font:inherit!important;font-size:14px!important;line-height:1.5!important;
}
.ntp-data-table th,.ntp-data-table td,.ntp-price-changes th,.ntp-price-changes td{
  display:table-cell!important;padding:12px 14px!important;margin:0!important;
  border:0!important;border-bottom:1px solid var(--ntp-control-border,#d8dedb)!important;
  text-align:left!important;vertical-align:middle!important;word-break:normal!important;
  color:inherit!important;background:transparent!important;
}
.ntp-data-table th,.ntp-price-changes th{font-weight:600!important;white-space:nowrap}
.ntp-data-table th:first-child,.ntp-data-table td:first-child{width:44px!important}
.ntp-price-changes td:nth-child(2){min-width:210px}
.ntp-price-changes td:nth-child(3),.ntp-price-changes td:nth-child(4),.ntp-price-changes td:nth-child(5){white-space:nowrap}
.ntp-price-changes td:last-child{min-width:175px}
.ntp-price-changes td small{display:block;color:var(--ntp-text-secondary,#68706d);margin-top:4px}
.ntp-price-changes td .ntp-button{margin:3px 4px 3px 0!important}
.ntp-price-changes td .ntp-button--tertiary{min-height:0!important;padding:0!important}
.ntp-price-changes .ntp-empty-state{padding:24px 0;color:var(--ntp-text-secondary,#68706d)}

.ntp-price-changes input.ntp-selection-checkbox{
  appearance:none!important;-webkit-appearance:none!important;position:relative!important;
  display:block!important;width:20px!important;height:20px!important;min-width:20px!important;
  min-height:20px!important;max-width:20px!important;max-height:20px!important;
  box-sizing:border-box!important;margin:0!important;padding:0!important;border:1px solid #c5cac6!important;
  border-radius:4px!important;background:#fff!important;box-shadow:none!important;cursor:pointer!important;
}
.ntp-price-changes input.ntp-selection-checkbox:checked{background:var(--ntp-control-primary)!important;border-color:var(--ntp-control-primary)!important}
.ntp-price-changes input.ntp-selection-checkbox::before{content:none!important;display:none!important}
.ntp-price-changes input.ntp-selection-checkbox:checked::after{
  content:""!important;position:absolute!important;display:block!important;left:5px!important;top:5px!important;
  width:8px!important;height:5px!important;border:0!important;border-left:2px solid #fff!important;border-bottom:2px solid #fff!important;
  transform:rotate(-45deg)!important;background:transparent!important;
}
.ntp-price-changes input.ntp-selection-checkbox:focus-visible{outline:2px solid var(--ntp-control-primary)!important;outline-offset:3px!important}
/* Native checkbox semantics provide an accessible, reusable on/off switch. */
.ntp-switch{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;margin:0!important;font-weight:500!important;cursor:pointer!important}
.ntp-native-form .ntp-field .ntp-switch input[type=checkbox]{
  appearance:none!important;-webkit-appearance:none!important;position:relative!important;
  display:inline-block!important;flex:0 0 40px!important;box-sizing:border-box!important;
  width:40px!important;min-width:40px!important;max-width:40px!important;height:24px!important;min-height:24px!important;max-height:24px!important;
  padding:0!important;margin:0!important;border:1px solid #aeb8b4!important;border-radius:999px!important;
  background:#d8dedb!important;background-image:none!important;box-shadow:none!important;transform:none!important;cursor:pointer!important;
}
.ntp-native-form .ntp-field .ntp-switch input[type=checkbox]::after{
  content:""!important;position:absolute!important;display:block!important;box-sizing:border-box!important;
  width:18px!important;height:18px!important;left:2px!important;top:2px!important;border:0!important;border-radius:50%!important;
  background:#fff!important;transform:none!important;box-shadow:0 1px 2px #00000026!important;transition:left .15s;
}
.ntp-native-form .ntp-field .ntp-switch input[type=checkbox]::before{content:none!important;display:none!important}
.ntp-native-form .ntp-field .ntp-switch input[type=checkbox]:checked{background:var(--ntp-control-primary)!important;border-color:var(--ntp-control-primary)!important}
.ntp-native-form .ntp-field .ntp-switch input[type=checkbox]:checked::after{left:18px!important}
.ntp-native-form .ntp-field .ntp-switch input[type=checkbox]:focus-visible{outline:2px solid var(--ntp-control-primary)!important;outline-offset:3px!important}
.ntp-price-protection{display:flex!important;flex-direction:column!important;gap:5px!important;margin-top:4px!important}
.ntp-product-price-field .ntp-price-protection .ntp-help{font-size:12px!important;line-height:1.4!important}
.ntp-product-pending-price{font-size:13px;margin-top:6px;color:var(--ntp-control-primary)}
.ntp-product-pending-price[hidden]{display:none!important}
.ntp-inactive-product-notice{line-height:1.6!important}
.ntp-inactive-product-notice [data-ntp-activate-product]{margin-left:5px!important}
.ntp-product-native__bulk{flex-wrap:wrap}
.ntp-pending-price-notice{display:block;font-size:13px;margin-top:6px}
.ntp-pending-price-notice a{color:var(--ntp-control-primary);text-decoration:underline}
.ntp-price-review-page{max-width:1200px;margin:32px auto;padding:0 20px}
.ntp-button[hidden],.ntp-primary-button[hidden],.ntp-secondary-button[hidden],.ntp-tertiary-button[hidden],
.ntp-tabs [role=tab][hidden],.ntp-tabs .ntp-tab[hidden]{display:none!important}
@media(max-width:700px){.ntp-form-actions>.ntp-button:not(.ntp-button--tertiary){width:100%!important}}

/* Shared compact actions and inline attention notices. */
.ntp-button.ntp-button--small{min-height:34px!important;padding:7px 16px!important;font-size:14px!important;line-height:1.2!important}
.ntp-catalogue-workspace .ntp-form-card{border:0!important;box-shadow:none!important}
.ntp-inline-notice{display:block;box-sizing:border-box;margin:6px 0 0!important;padding:12px 16px!important;border:0!important;border-radius:8px!important;font-size:14px!important;line-height:1.6!important}
.ntp-inline-notice--attention{background:var(--ntp-state-attention-bg,#fff5df)!important;color:var(--ntp-body,#68706d)!important}
.ntp-inline-notice .ntp-tertiary-button{margin-left:5px!important;font-size:inherit!important}
.ntp-inline-notice[hidden]{display:none!important}
.ntp-order-item>.ntp-pending-price-notice{grid-column:1/-1}
/* Closely grouped inline notices share spacing and semantic colour variants. */
.ntp-notice-stack{display:flex!important;flex-direction:column!important;gap:6px!important;margin:0!important;padding:0!important}
.ntp-notice-stack:not(:has(> :not([hidden]))){display:none!important}
.ntp-notice-stack>.ntp-inline-notice,
.ntp-notice-stack>[data-ntp-product-pending-price],
.ntp-notice-stack>[data-ntp-product-pending-price]>.ntp-inline-notice{margin:0!important}
.ntp-inline-notice--error{background:var(--ntp-state-rejected-bg,#ffe9e7)!important;color:#7d2c2c!important}
.ntp-native-form .ntp-field--emphasised>label{font-weight:600!important;color:var(--ntp-control-primary)!important}
/* Canonical tertiary action: anchors and buttons share every visual state. */
:is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action),
.ntp-native-form :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action),
.ntp-inline-notice :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action),
.ntp-native-form .ntp-inline-notice :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action){
  appearance:none!important;-webkit-appearance:none!important;display:inline!important;
  box-sizing:border-box!important;width:auto!important;min-width:0!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;background-image:none!important;color:var(--ntp-control-primary)!important;
  font:inherit!important;font-size:var(--ntp-tertiary-font-size,inherit)!important;font-weight:400!important;line-height:1.5!important;letter-spacing:normal!important;text-transform:none!important;
  text-decoration-line:underline!important;text-decoration-style:solid!important;text-decoration-color:currentColor!important;
  text-decoration-thickness:1px!important;text-underline-offset:3px!important;text-decoration-skip-ink:auto!important;
  box-shadow:none!important;text-shadow:none!important;transform:none!important;cursor:pointer!important;
  transition:color .15s ease!important;
}
:is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):hover,
.ntp-native-form :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):hover,
.ntp-inline-notice :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):hover,
.ntp-native-form .ntp-inline-notice :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):hover{background:transparent!important;color:var(--ntp-control-primary-hover)!important;text-decoration-color:currentColor!important}
:is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):focus-visible,
.ntp-native-form :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):focus-visible,
.ntp-inline-notice :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):focus-visible,
.ntp-native-form .ntp-inline-notice :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):focus-visible{outline:2px solid var(--ntp-control-primary)!important;outline-offset:3px!important}
:is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):is(:disabled,[aria-disabled=true]),
.ntp-native-form :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):is(:disabled,[aria-disabled=true]),
.ntp-inline-notice :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):is(:disabled,[aria-disabled=true]),
.ntp-native-form .ntp-inline-notice :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action):is(:disabled,[aria-disabled=true]){opacity:.5!important;cursor:default!important}
:is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action)[hidden],
.ntp-native-form :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action)[hidden],
.ntp-inline-notice :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action)[hidden],
.ntp-native-form .ntp-inline-notice :is(a,button,summary):is(.ntp-tertiary-button,.ntp-button--tertiary,.ntp-product-text-action)[hidden]{display:none!important}

/* Reusable matched heading/description treatment for workflow cards. */
.ntp-form-card .ntp-form-card__heading--standard h3{
  margin:0!important;padding:0!important;font-family:inherit!important;
  font-size:18px!important;line-height:1.3!important;font-weight:700!important;
  color:var(--ntp-heading,#1d1c23)!important;letter-spacing:normal!important;text-transform:none!important;
}
.ntp-form-card .ntp-form-card__heading--standard p{
  margin:0!important;font-family:inherit!important;font-size:inherit!important;
  line-height:1.5!important;font-weight:400!important;color:var(--ntp-text-secondary,#68706d)!important;
}

/* Explicit gaps prevent paragraph/heading margin collapse in workflow cards. */
.ntp-form-card .ntp-form-card__heading--standard{
  display:grid!important;gap:8px!important;margin:0 0 20px!important;padding:0!important;
}
/* Reusable list footer and page-size control. */
.ntp-list-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin-top:16px}
.ntp-list-footer :is(.ntp-pagination,.ntp-product-native__pages){margin:0}
.ntp-page-size, :is(.ntp-staff-list,.ntp-list) .ntp-page-size{display:inline-flex!important;align-items:center;gap:10px;margin:0!important;color:var(--ntp-pagination-muted,#849099)!important;font-family:inherit!important;font-size:14px!important;font-weight:400!important;line-height:1.3!important}
.ntp-page-size select{appearance:auto!important;width:auto!important;min-width:72px!important;min-height:36px!important;height:auto!important;margin:0!important;padding:6px 9px!important;border:1px solid #ccc!important;border-radius:8px!important;background:transparent!important;color:inherit!important;font:inherit!important;line-height:1.3!important;box-shadow:none!important}
.ntp-page-size select:focus-visible{outline:2px solid var(--ntp-control-primary,#003234)!important;outline-offset:2px!important}

/* Quiet metadata links inherit their surrounding status text, rather than action typography. */
a.ntp-status-link,
a.ntp-status-link:visited,
a.ntp-status-link:focus{
  display:inline!important;margin:0!important;padding:0!important;border:0!important;
  background:transparent!important;color:inherit!important;font:inherit!important;line-height:inherit!important;
  text-decoration:none!important;box-shadow:none!important;cursor:pointer!important;
  transition:color .15s ease!important;
}
a.ntp-status-link:hover{color:var(--ntp-control-primary,#003234)!important;text-decoration:none!important}
a.ntp-status-link:focus-visible{outline:2px solid var(--ntp-control-primary,#003234)!important;outline-offset:3px!important}

/* Native dialogs must retain the browser's closed state, independently of overlay aliases. */
dialog.ntp-modal:not([open]){display:none!important}
dialog.ntp-modal[open]{max-height:calc(100dvh - 24px);overflow-y:auto}
/* Shared panel header: use for tab cards and popup headings. */
.ntp-panel{padding:0!important}
.ntp-panel .ntp-panel__header{
  position:relative;display:block!important;box-sizing:border-box;
  padding:20px 20px 14px!important;margin:0!important;
  border-bottom:1px solid #CCCCCC4D!important;
}
.ntp-panel .ntp-panel__header .ntp-panel__title{
  margin:0!important;padding:0!important;font-family:inherit!important;
  font-size:12px!important;font-weight:600!important;letter-spacing:0.5px!important;
  line-height:1.4!important;text-transform:uppercase!important;color:var(--ntp-heading,#1d1c23)!important;
}
.ntp-panel .ntp-panel__header:has(.ntp-modal-close){padding-right:64px!important}
.ntp-panel .ntp-panel__header .ntp-modal-close{position:absolute;top:6px!important;right:10px!important;margin:0!important}
.ntp-panel .ntp-panel__body{padding:20px!important}
.ntp-panel .ntp-panel__intro{margin:0 0 20px!important;color:var(--ntp-text-secondary,#68706d)}
.ntp-panel .ntp-preferences-modal__content,.ntp-panel .ntp-renewal-modal__content{margin-top:0!important}

/* Pagination hover changes only inactive, enabled page-link text. */
:is(.ntp-product-native__pages,.ntp-pagination) :is(a,button):not([aria-current="page"]):hover:where(:not(:disabled):not([aria-disabled=true])){
  color:var(--ntp-control-primary,#003234)!important;
}

/* Shared staff-list controls and patient listing layout. */
.ntp-list .ntp-list-control{
  display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;
  height:var(--ntp-list-control-height,47px)!important;margin:0!important;padding:10px 13px!important;
  border:1px solid var(--ntp-list-border,#ccc)!important;border-radius:var(--ntp-list-radius,8px)!important;
  background:transparent!important;color:inherit!important;font:inherit!important;
  font-weight:var(--ntp-list-control-weight,300)!important;line-height:1.3!important;box-shadow:none!important;
}
.ntp-list .ntp-list-control::placeholder{color:#849099!important;opacity:1}
.ntp-list .ntp-list-control:focus-visible{outline:2px solid var(--ntp-control-primary)!important;outline-offset:2px!important}
:is(.ntp-patient-list,.ntp-record-list) [hidden]{display:none!important}
:is(.ntp-patient-list,.ntp-record-list) .ntp-list-filters{display:grid;grid-template-columns:repeat(var(--ntp-filter-columns,2),minmax(0,1fr));gap:10px;margin:0 0 20px}
:is(.ntp-patient-list,.ntp-record-list) .ntp-list-filters__search{grid-column:1/-1}
.ntp-patient-list{--ntp-patient-columns:minmax(0,1.5fr) minmax(0,1.5fr) minmax(0,.75fr) minmax(0,.85fr) 88px}
.ntp-patient-list--intake{--ntp-patient-columns:minmax(0,1.5fr) minmax(0,1.5fr) minmax(0,.75fr) minmax(0,.85fr) 260px}
:is(.ntp-patient-list__head,.ntp-list-grid__head),:is(.ntp-patient-list__row,.ntp-list-grid__row){display:grid;grid-template-columns:var(--ntp-list-columns,var(--ntp-patient-columns));gap:20px;align-items:center;margin:0}
:is(.ntp-patient-list__head,.ntp-list-grid__head)>span:last-child{text-align:right}
:is(.ntp-patient-list__head,.ntp-list-grid__head){padding:14px 10px;color:var(--ntp-list-muted,#777);border-bottom:1px solid var(--ntp-list-border,#ccc);font-size:13px}
:is(.ntp-patient-list__row,.ntp-list-grid__row){padding:16px 10px;border-bottom:1px solid var(--ntp-list-divider,#dedede);font-size:14px;color:#1d1c23;line-height:1.4!important}
:is(.ntp-patient-list__identity,.ntp-list-identity){display:flex;align-items:center;gap:10px;min-width:0}
.ntp-list-avatar{width:38px;height:38px;flex:0 0 38px;align-self:flex-start}
:is(.ntp-patient-list__name,.ntp-list-name),:is(.ntp-patient-list__name,.ntp-list-name):visited{font:inherit!important;font-weight:650!important;color:inherit!important;text-decoration:none!important;overflow-wrap:anywhere}
:is(.ntp-patient-list__name,.ntp-list-name):not(.ntp-list-name--static):hover{color:var(--ntp-control-primary)!important}
:is(.ntp-patient-list__name,.ntp-list-name):focus-visible{outline:2px solid var(--ntp-control-primary);outline-offset:3px}
.ntp-patient-list__email{overflow-wrap:anywhere;min-width:0}
:is(.ntp-patient-list__action,.ntp-list-action){text-align:right}
.ntp-list-mobile-label{display:none}
:is(.ntp-status-badge,.ntp-tag){display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;padding:4px 9px;border-radius:999px;font-size:12px;line-height:1.4;font-weight:400}
/* Shared status pills: centred wrapping content across every list and workflow. */
:is(.ntp-status-badge,.ntp-staff-submission-status,.ntp-staff-order-status,.ntp-status-info__trigger){box-sizing:border-box;max-width:100%;align-items:center;justify-content:center;text-align:center}
.ntp-status-badge--success{color:var(--ntp-state-success);background:var(--ntp-state-success-bg)}
.ntp-status-badge--pending{color:var(--ntp-state-pending);background:var(--ntp-state-pending-bg)}
.ntp-status-badge--attention{color:var(--ntp-state-attention);background:var(--ntp-state-attention-bg)}
.ntp-status-badge--error{color:var(--ntp-state-rejected);background:var(--ntp-state-rejected-bg)}
.ntp-status-badge__icon{display:inline-block;width:14px;min-width:14px;height:14px;min-height:14px;flex:0 0 14px;background:currentColor}
.ntp-status-badge__icon--check{-webkit-mask:url('../images/ntp-status-check.svg') center/contain no-repeat;mask:url('../images/ntp-status-check.svg') center/contain no-repeat}
.ntp-status-badge__icon--cancel{-webkit-mask:url('../images/ntp-status-cancel.svg') center/contain no-repeat;mask:url('../images/ntp-status-cancel.svg') center/contain no-repeat}
.ntp-list-count{margin:10px 0 0!important;color:#849099;font-size:12px}
@media(max-width:1024px){
  :is(.ntp-patient-list,.ntp-record-list) .ntp-list-filters{grid-template-columns:minmax(0,1fr)}
  :is(.ntp-patient-list__head,.ntp-list-grid__head){display:none}
  :is(.ntp-patient-list__row,.ntp-list-grid__row){grid-template-columns:minmax(0,1fr);gap:14px;padding:24px 10px}
  :is(.ntp-patient-list__row,.ntp-list-grid__row)>*{grid-column:1;min-width:0}
  :is(.ntp-patient-list__identity,.ntp-list-identity){padding-bottom:18px;border-bottom:1px dashed var(--ntp-list-divider,#ddd)}
  .ntp-patient-list__email,:is(.ntp-patient-list__detail,.ntp-list-detail){display:grid;grid-template-columns:60px minmax(0,1fr);gap:10px;align-items:start}
  .ntp-list-mobile-label{display:block;color:var(--ntp-list-muted);font-size:12px;margin:0}
  :is(.ntp-patient-list__action,.ntp-list-action){text-align:left}
  :is(.ntp-patient-list__action,.ntp-list-action) .ntp-button{width:100%!important}
}

/* Reusable quiet contact links and the same actionable-row treatment as Product Manager. */
.ntp-list-contact-link,.ntp-list-contact-link:visited{color:inherit!important;font:inherit!important;text-decoration:none!important;overflow-wrap:anywhere}
.ntp-list-contact-link:hover{color:var(--ntp-control-primary)!important}
.ntp-list-contact-link:focus-visible{outline:2px solid var(--ntp-control-primary);outline-offset:3px}

/* Record lists reuse the directory grid; only column geometry differs. */
.ntp-record-list{--ntp-list-columns:minmax(0,2.3fr) minmax(0,.9fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr) 88px}
.ntp-record-list--scripts{--ntp-list-columns:minmax(0,2.3fr) minmax(0,.9fr) minmax(0,.75fr) minmax(0,.9fr) minmax(0,1.7fr) 88px}
.ntp-record-list--with-search{--ntp-filter-columns:3}
.ntp-record-list--without-search{--ntp-filter-columns:2}
.ntp-list .ntp-list-meta{display:block;margin-top:3px;color:#849099;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.ntp-list-identity>div{min-width:0;overflow-wrap:anywhere}

.ntp-record-list--prescriptions{--ntp-list-columns:minmax(0,4fr) minmax(0,1.1fr) minmax(0,.7fr) minmax(0,.9fr) minmax(0,1.4fr) 88px}

/* Shared read-only taxonomy tags and neutral status badges. */
:root{--ntp-tag-category-text:#4c24ed;--ntp-tag-category-background:#d8cef4;--ntp-state-neutral-bg:#f0f3f1}
.ntp-status-badge--neutral{color:var(--ntp-state-neutral);background:var(--ntp-state-neutral-bg)}
.ntp-tag-list{display:flex;flex-wrap:wrap;gap:6px}
.ntp-tag--category{color:var(--ntp-tag-category-text);background:var(--ntp-tag-category-background)}

/* Medicine-name popup triggers share link typography without theme button surfaces. */
button.ntp-list-name,button.ntp-list-name:hover,button.ntp-list-name:focus{display:inline!important;width:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important;line-height:inherit!important;letter-spacing:inherit!important;text-transform:none!important;cursor:pointer!important}

/* Shared popup forms use grid gaps without adding a second margin layer. */
.ntp-modal .ntp-native-form{margin:0!important}
.ntp-native-form>.ntp-form-notice{margin:0!important}
.ntp-form-notice[hidden]{display:none!important}
.ntp-modal .ntp-native-form>.ntp-form-grid>.ntp-field--full:first-child{margin-top:0!important}
.ntp-modal .ntp-native-form>.ntp-form-actions{margin-top:0!important}
/* A native-dialog dropdown layer sits outside scrolling form panels. */
dialog.ntp-select-dialog{overflow:visible!important}
.ntp-select-dialog>.ntp-modal-dialog{max-height:calc(100dvh - var(--ntp-modal-viewport-gap,48px))!important;overflow:auto}
.ntp-select-layer{position:absolute;inset:0;z-index:1000002;overflow:visible;pointer-events:none}
.ntp-select-layer>.select2-container{position:absolute!important;left:var(--ntp-select-left,0px)!important;top:var(--ntp-select-top,0px)!important;width:var(--ntp-select-width,100%)!important;max-width:none!important;pointer-events:auto}
.ntp-select-layer .select2-dropdown{position:relative!important;left:0!important;top:0!important;bottom:auto!important;width:100%!important;max-height:var(--ntp-select-height,340px);overflow:hidden}
.ntp-select-layer .select2-results__options{max-height:var(--ntp-select-results-height,200px)!important;overflow-y:auto!important;overscroll-behavior:contain}
:is(.ntp-modal,.ntp-product-modal) .ntp-form-actions{justify-content:flex-end!important;gap:8px;flex-wrap:wrap}
:is(.ntp-modal,.ntp-product-modal) .ntp-form-actions .ntp-button{width:auto!important;max-width:100%}
@media(max-width:700px){.ntp-select-dialog{--ntp-modal-viewport-gap:24px}}

/* Shared confirmation sections use existing fields/notices and hidden-state rules. */
.ntp-confirmation-fields{margin:14px 0 0;padding:0;border:0}
.ntp-confirmation-fields legend{grid-column:1/-1;font:inherit;font-weight:600;margin-bottom:10px;color:#000!important}
.ntp-confirmation-fields[hidden],[data-ntp-rx-lifecycle][hidden]{display:none!important}
.ntp-checkbox-label{display:flex!important;align-items:flex-start;gap:8px;font:inherit!important;font-weight:400!important}
.ntp-checkbox-label input{flex:0 0 auto;margin-top:3px}
.ntp-native-form input.ntp-selection-checkbox::before{content:none!important;display:none!important}

.ntp-prescription-status--deactivated{color:var(--ntp-state-rejected)}
.ntp-prescription-status--product_unavailable{color:var(--ntp-state-neutral)}

.ntp-confirmation-fields>.ntp-field--full{margin-top:0!important}

/* Shared native-form hidden state must survive theme display rules. */
.ntp-native-form [hidden]{display:none!important}

.ntp-native-form>.ntp-review-token-row{margin:0}

/* Reusable token toolbar: inline actions/value, with a readable narrow layout. */
.ntp-token-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) 28px auto;align-items:center;gap:10px 12px;min-width:0}
.ntp-token-toolbar>.ntp-token-toolbar__host,.ntp-token-toolbar .ntp-token-control{display:contents}
.ntp-token-toolbar :is(.ntp-reveal-token,.ntp-reveal-prescription-token,.ntp-hide-token){grid-column:1;grid-row:1;justify-self:start}
.ntp-token-toolbar>[data-ntp-rx-token-edit]{grid-column:4;grid-row:1;justify-self:end}
.ntp-token-toolbar .ntp-token-value{grid-column:2;grid-row:1;min-width:0;width:100%;min-height:36px;box-sizing:border-box;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.ntp-token-toolbar .ntp-copy-token{grid-column:3;grid-row:1;justify-self:center}
.ntp-token-toolbar__host>.ntp-help{grid-column:1/4;grid-row:1}
@media(max-width:600px){
  .ntp-token-toolbar{grid-template-columns:minmax(0,1fr) 28px}
  .ntp-token-toolbar :is(.ntp-reveal-token,.ntp-reveal-prescription-token,.ntp-hide-token){grid-column:1/-1;grid-row:1}
  .ntp-token-toolbar .ntp-token-value{grid-column:1;grid-row:2}
  .ntp-token-toolbar .ntp-copy-token{grid-column:2;grid-row:2}
  .ntp-token-toolbar>[data-ntp-rx-token-edit]{grid-column:1/-1;grid-row:3;justify-self:start}
  .ntp-token-toolbar__host>.ntp-help{grid-column:1/-1;grid-row:1}
}

/* Label-adjacent form actions share compact typography and wrap together. */
.ntp-field-label-row{flex-wrap:wrap}
.ntp-field-label-actions{align-items:center;margin-left:auto;font-size:14px;line-height:1.4}
/* Compact text actions reuse the canonical tertiary normal/hover/focus states. */
.ntp-button.ntp-button--tertiary.ntp-button--compact-link,
.ntp-native-form .ntp-button.ntp-button--tertiary.ntp-button--compact-link{font-size:14px!important;font-weight:400!important}
.ntp-secondary-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin:20px 0 0!important}

/* Reusable follow-up emphasis, retaining the shared row hover and focus treatment. */
.ntp-status-stack{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.ntp-list-row--attention{--ntp-list-row-hover:var(--ntp-list-attention-row-hover-bg,#fffaf0);background:var(--ntp-list-attention-row-bg,#fffcf7);box-shadow:inset 3px 0 0 var(--ntp-state-attention,#d67b00)}

.ntp-status-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px}

.ntp-status-row>.ntp-form-status{margin:0!important}

.ntp-review-choice--stock input:checked+.ntp-review-choice__content{border-color:var(--ntp-state-attention);background:var(--ntp-state-attention-bg);color:var(--ntp-state-attention)}

.ntp-pharmacy-contact{display:block;margin-top:8px;line-height:1.4}

.ntp-pharmacy-contact__links{display:block;margin-top:4px}

.ntp-pharmacy-contact__name{color:var(--ntp-control-primary,#003234)}

/* Compact repeating field groups use grid gaps instead of stacked margins. */
.ntp-form-card.ntp-form-card--compact{padding:16px;margin:0}
.ntp-form-grid--compact{gap:12px}
.ntp-form-grid--compact>.ntp-field--full,.ntp-form-grid--compact>.ntp-form-actions{margin-top:0}

/* Shared patient notification cards: native dashboard carousel and detail notices. */
.ntp-notifications{display:grid;gap:10px;min-width:0;width:100%;font-family:inherit}
.ntp-notifications [hidden]{display:none!important}
.ntp-notice-card{--ntp-notice-color:var(--ntp-state-pending,#009fc8);--ntp-notice-background:var(--ntp-state-pending-bg,#e2f5ff);box-sizing:border-box;min-width:0;padding:20px;border:0;border-radius:16px;background:var(--ntp-notice-background);color:var(--ntp-body,#626460);line-height:1.4}
.ntp-notice-card--info{--ntp-notice-color:var(--ntp-state-pending,#009fc8);--ntp-notice-background:var(--ntp-state-pending-bg,#e2f5ff)}
.ntp-notice-card--success{--ntp-notice-color:var(--ntp-state-success,#19b52b);--ntp-notice-background:var(--ntp-state-success-bg,#eaf7e8)}
.ntp-notice-card--warning{--ntp-notice-color:var(--ntp-state-attention,#e67e00);--ntp-notice-background:var(--ntp-state-attention-bg,#fff8e9)}
.ntp-notice-card--error{--ntp-notice-color:var(--ntp-state-rejected,#b62e31);--ntp-notice-background:var(--ntp-state-rejected-bg,#ffedeb)}
.ntp-notice-card__header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 0 12px!important;padding:0;border:0}
.ntp-notice-card__heading{display:flex;align-items:center;gap:6px;min-width:0;color:var(--ntp-notice-color);font-size:14px;font-weight:600;line-height:1.4}
.ntp-notice-icon{flex:0 0 16px;width:16px;height:16px;margin-top:0;background:currentColor;mask:var(--ntp-notice-icon) center/contain no-repeat;-webkit-mask:var(--ntp-notice-icon) center/contain no-repeat}
.ntp-notice-icon--schedule{--ntp-notice-icon:url('../icons/notification-schedule.svg')}
.ntp-notice-icon--cancel{--ntp-notice-icon:url('../icons/notification-cancel.svg')}
.ntp-notice-card__tools{display:flex;align-items:center;gap:4px;flex:0 0 auto;margin-top:-6px;margin-right:-6px}
.ntp-notice-card__tools form{margin:0!important;padding:0!important;display:flex}
.ntp-notice-card__count{font-size:12px!important;font-weight:400;color:var(--ntp-body,#626460);white-space:nowrap;line-height:1.4}
.ntp-notifications .ntp-notice-control{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:32px;width:32px;min-height:32px;height:32px;margin:0;padding:0!important;border:0!important;border-radius:50%;background:transparent!important;color:#000!important;font-family:inherit!important;font-size:24px!important;font-weight:400!important;line-height:1!important;box-shadow:none!important;text-decoration:none!important;cursor:pointer}
.ntp-notifications .ntp-notice-control:hover:not(:disabled){background:transparent!important;color:var(--ntp-primary,#003234)!important}
.ntp-notifications .ntp-notice-control:focus-visible{outline:2px solid var(--ntp-focus-ring,#003234);outline-offset:2px}
.ntp-notifications .ntp-notice-control:disabled{opacity:.35;cursor:default}
.ntp-notice-card__content{display:grid;gap:6px;min-width:0}
.ntp-notice-card .ntp-notice-card__title{margin:0!important;padding:0!important;font-size:16px!important;font-weight:600!important;line-height:1.4!important;color:var(--ntp-notice-color)!important;overflow-wrap:anywhere}
.ntp-notice-card .ntp-notice-card__message{margin:0!important;padding:0!important;font-size:14px!important;font-weight:400!important;line-height:1.4!important;color:var(--ntp-body,#626460)!important;overflow-wrap:anywhere}
.ntp-notice-card__actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px}
.ntp-notice-card__actions .ntp-button.ntp-button--small{box-sizing:border-box;flex:0 1 auto;min-width:0;max-width:100%;min-height:32px!important;width:auto!important;padding:6px 12px!important;font-size:14px!important;font-weight:400!important;line-height:1.25!important;white-space:normal;text-align:center}
.ntp-notifications__navigation{display:flex;align-items:center;gap:2px}
.ntp-notice-arrow{width:20px;height:20px;background:currentColor;mask:var(--ntp-notice-arrow) center/contain no-repeat;-webkit-mask:var(--ntp-notice-arrow) center/contain no-repeat}
.ntp-notice-arrow--previous{--ntp-notice-arrow:url('../icons/notification-arrow-left.svg')}
.ntp-notice-arrow--next{--ntp-notice-arrow:url('../icons/notification-arrow-right.svg')}
@media(max-width:480px){.ntp-notice-card{padding:16px}.ntp-notice-card__header{gap:6px}.ntp-notifications .ntp-notice-control{min-width:28px;width:28px;min-height:28px;height:28px}.ntp-notice-card__heading{font-size:13px}.ntp-notice-card__count{font-size:12px!important}.ntp-notice-card__tools{gap:2px}.ntp-notice-card__actions .ntp-button.ntp-button--small{padding:6px 10px!important;font-size:14px!important}}

.ntp-notice-card .ntp-notice-card__metadata{margin:0!important;padding:0!important;font-size:12px!important;font-weight:400!important;line-height:1.4!important;color:var(--ntp-body,#626460)!important}

.ntp-notice-card .ntp-notice-card__message.ntp-notice-card__message--emphasised{font-size:16px!important;font-weight:600!important;color:var(--ntp-notice-color)!important}

/* Shared sliding track keeps notice cards and page content stable during navigation. */
.ntp-notifications.is-enhanced .ntp-notifications__viewport{overflow:hidden;height:var(--ntp-carousel-height,auto);border-radius:16px;touch-action:pan-y}
.ntp-notifications.is-enhanced .ntp-notifications__track{display:flex;align-items:flex-start;gap:var(--ntp-notice-gap,20px);transition:transform 400ms cubic-bezier(.25,.1,.25,1);will-change:transform}
.ntp-notifications.is-enhanced .ntp-notice-card{flex:0 0 100%;width:100%;min-height:var(--ntp-carousel-height,0px)}
.ntp-notifications.is-dragging .ntp-notifications__track{user-select:none;transition:none}
@media(prefers-reduced-motion:reduce){.ntp-notifications.is-enhanced .ntp-notifications__track{transition:none!important}}

/* Shared compact summary list: identity/message left, semantic status right. */
.ntp-list-summary{list-style:none!important;margin:0!important;padding:0!important}
.ntp-list-summary__row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px 20px;padding:20px 10px;margin:0!important;border-bottom:1px solid var(--ntp-list-divider,#dedede);font-size:14px;line-height:1.4!important;color:#1d1c23}
.ntp-list-summary__content{display:grid;gap:6px;min-width:0}
.ntp-list-summary__content>p{margin:0!important;padding:0!important;font-size:14px!important;line-height:1.4!important}
.ntp-list-summary__meta,.ntp-list-summary__message{color:var(--ntp-list-muted,#849099);overflow-wrap:anywhere}
.ntp-list-summary__content>.ntp-tertiary-button{justify-self:start;font-size:14px!important;line-height:1.4!important}
.ntp-status-badge__icon--schedule{-webkit-mask:url('../icons/notification-schedule.svg') center/contain no-repeat;mask:url('../icons/notification-schedule.svg') center/contain no-repeat}
@media(max-width:1024px){.ntp-list-summary__row{grid-template-columns:minmax(0,1fr);gap:12px;padding:20px 10px}.ntp-list-summary__row>.ntp-status-badge{grid-row:1;justify-self:start}}

.ntp-pagination :is(a,button):focus-visible{outline:2px solid var(--ntp-focus-ring,#003234);outline-offset:2px}

/* Shared patient workflow copy: standard update, optional personal note and sign-off. */
.ntp-patient-message{display:block;line-height:inherit}
.ntp-patient-message__standard{display:block;margin:0}
.ntp-patient-message__estimate{display:block;margin:0 0 6px;line-height:1.4}
.ntp-patient-message__note{display:block;margin-top:0;white-space:normal}
/* Personal messages share brand typography and the existing pale-green surface. */
:root{--ntp-signature-font-family:"fenway-banner-vf",sans-serif;--ntp-signature-font-size:14px;--ntp-personal-message-font-size:17px;--ntp-signature-font-weight:700;--ntp-personal-message-background:var(--ntp-list-chip-bg,#e0ebe4)}
.ntp-patient-message--signed{position:relative;box-sizing:border-box;margin-top:14px;padding:14px 16px;border-radius:14px;background:var(--ntp-personal-message-background);overflow-wrap:anywhere}
.ntp-patient-message--signed::before{content:"";position:absolute;left:24px;top:-12px;width:14px;height:13px;background:var(--ntp-personal-message-background);clip-path:polygon(50% 0,100% 100%,0 100%)}
.ntp-patient-message--signed .ntp-patient-message__note,.ntp-patient-message__signature{color:var(--ntp-control-primary,#003234)!important;font-family:var(--ntp-signature-font-family)!important;font-size:var(--ntp-signature-font-size)!important;font-style:italic!important;line-height:1.4!important}
.ntp-patient-message--signed .ntp-patient-message__note{font-size:var(--ntp-personal-message-font-size)!important;font-weight:400!important}
.ntp-patient-message__signature{display:block;margin-top:6px;font-weight:var(--ntp-signature-font-weight)!important}
.ntp-patient-message__signature-text{min-width:0;overflow-wrap:anywhere}

/* Shared optional message emoji chooser, alongside the existing field label. */
.ntp-emoji-picker{display:none;position:relative;margin-left:auto}
.ntp-emoji-enabled .ntp-emoji-picker{display:block}
.ntp-emoji-picker>summary{list-style:none;white-space:nowrap}
.ntp-emoji-picker>summary::-webkit-details-marker{display:none}
.ntp-emoji-picker__choices{position:absolute;right:0;top:calc(100% + 6px);z-index:5;display:flex;gap:6px;padding:8px;background:var(--ntp-modal-surface,#fff);border:1px solid var(--ntp-control-border,#ccc);border-radius:8px}
.ntp-emoji-picker:not([open])>.ntp-emoji-picker__choices{display:none}
.ntp-emoji-picker__choices .ntp-button{width:36px!important;min-width:36px;min-height:36px;padding:6px!important;font-size:18px!important;line-height:1!important}

/* Label-adjacent help reuses the existing info modal and fixed circle icon. */
.ntp-field-label-with-help{display:inline-flex;align-items:center;gap:2px;min-width:0}
.ntp-native-form .ntp-field-label-with-help>label{color:var(--ntp-field-label)!important;font-weight:400!important}
.ntp-field-info .ntp-status-info__trigger{width:24px!important;height:28px!important;min-height:28px!important;padding:4px 2px!important;border-radius:4px!important;background:transparent!important;color:var(--ntp-field-label,#777)!important;font-weight:400!important}
.ntp-field-info .ntp-status-info__trigger:hover{background:transparent!important;color:var(--ntp-control-primary-hover,#c1d7c7)!important}
.ntp-field-info .ntp-status-info__trigger:focus-visible{outline:2px solid var(--ntp-control-primary,#003234)!important;outline-offset:2px!important;background:transparent!important}

/* Optional help belongs to the same underline-tab item and shares its baseline/state. */
.ntp-tabs--underline .ntp-tab-with-help{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;padding:0 0 14px;margin:0 0 -1px;border-bottom:2px solid transparent;scroll-snap-align:start}
.ntp-tabs--underline .ntp-tab-with-help>[role=tab]{padding:0!important;margin:0!important;border-bottom:0!important}
.ntp-tabs--underline .ntp-tab-with-help:has(>[role=tab][aria-selected=true]){border-bottom-color:var(--ntp-control-primary,#003234)}
.ntp-tabs--underline .ntp-tab-with-help>.ntp-field-info{display:inline-flex;align-items:center;margin:0}
.ntp-tabs--underline .ntp-tab-with-help .ntp-status-info__trigger{height:24px!important;min-height:24px!important}
.ntp-checkbox-with-help{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.ntp-checkbox-with-help>.ntp-checkbox-label{margin:0!important}
.ntp-checkbox-with-help[hidden]{display:none!important}

:root{--ntp-field-info-opacity:.5}
.ntp-field-info .ntp-status-info__icon{opacity:var(--ntp-field-info-opacity)}
.ntp-field-info .ntp-status-info__trigger:is(:hover,:focus-visible) .ntp-status-info__icon{opacity:1}

/* Shared label height keeps adjacent fields aligned with or without an info icon. */
:root{--ntp-field-label-min-height:28px}
.ntp-native-form .ntp-field>:is(label,.ntp-field-label-row,.ntp-field-label-with-help){box-sizing:border-box;min-height:var(--ntp-field-label-min-height)}
.ntp-native-form .ntp-field>label[for]:not(.ntp-checkbox-label):not(.ntp-switch):not([hidden]):not(.screen-reader-text){display:flex;align-items:center}

.ntp-choice-with-help{display:inline-flex;align-items:center;gap:2px}
.ntp-native-form .ntp-field--emphasised .ntp-field-label-with-help>label{font-weight:600!important;color:var(--ntp-control-primary)!important}

/* Non-error review cue; follows the existing editor section's hidden state. */
.ntp-native-form:has([data-ntp-review-scope]:not([hidden])) [data-ntp-review-field] :is(input,select,.select2-selection){background-color:var(--ntp-state-attention-bg,#fff5df)!important;border-color:var(--ntp-state-attention,#d67b00)!important}

/* Account reason uses the shared full-width field and multiline input. */
.ntp-patient-status-form{width:100%;align-items:flex-start}
.ntp-patient-status-form>.ntp-field{flex:1 0 100%;min-width:0;width:100%}
.ntp-patient-status-form textarea{box-sizing:border-box;width:100%;min-height:100px;resize:vertical}

/* Shared record summary: compact identity and aligned read-only facts. */
.ntp-record-summary{display:grid;gap:18px;min-width:0;margin-top:12px}
.ntp-record-summary__identity{display:flex;align-items:center;gap:12px;min-width:0}
.ntp-record-summary__identity h3{margin:0!important;font-size:24px!important;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.ntp-record-summary__identity img.ntp-record-summary__image{width:44px;height:44px;flex:0 0 44px;object-fit:contain;border-radius:var(--ntp-record-image-radius,10px)!important}
.ntp-record-summary .ntp-record-summary__facts{padding:0}
.ntp-record-summary .ntp-record-summary__facts>div{grid-template-columns:180px minmax(0,1fr);border-bottom:1px solid #cccccc4d;padding:10px 0;line-height:1.5}
.ntp-record-summary__facts>div:last-child{border-bottom:0}
.ntp-field>.ntp-field-label-with-help{align-self:flex-start;width:fit-content;max-width:100%;justify-content:flex-start}
.ntp-field-label-with-help>label{flex:0 1 auto!important;width:auto!important}
/* Shared validation feedback, shown only after an attempted submission. */
:root{--ntp-field-error:#c62d2d}
.ntp-input-invalid,.ntp-input-invalid+.select2-container .select2-selection,form[class*="ntp-"][data-ntp-validation-attempted="1"] .ntp-field .ntp-input-invalid,form[class*="ntp-"][data-ntp-validation-attempted="1"] .ntp-field:has(.ntp-input-invalid) .select2-selection{border-color:var(--ntp-field-error)!important}
.ntp-field-error{display:block;margin:4px 0 0!important;color:var(--ntp-field-error)!important;font-size:12px!important;line-height:1.4}

@media(max-width:767px){.ntp-record-summary .ntp-record-summary__facts>div{grid-template-columns:90px minmax(0,1fr)}}
/* Error state follows the canonical native-input selectors, overriding normal borders. */
.ntp-native-form .ntp-field input.ntp-input-invalid:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.ntp-native-form .ntp-field textarea.ntp-input-invalid,
.ntp-native-form .ntp-field select.ntp-input-invalid{border-color:var(--ntp-field-error)!important}
.ntp-field-error{box-sizing:border-box;background:var(--ntp-state-rejected-bg)!important;padding:7px 10px!important;border-radius:4px;width:100%}
.ntp-section-title{box-sizing:border-box;width:100%;margin:0!important;padding:0 0 14px!important;border-bottom:1px solid var(--ntp-section-divider,#cccccc4d)!important;color:var(--ntp-heading,#000)!important;font-size:var(--ntp-section-heading-size,18px)!important;font-weight:600!important;line-height:1.5!important}

.ntp-record-summary__facts :is(dt,dd){line-height:1.5!important}

/* One spacing owner for contextual form sections; tab typography is separate. */
.ntp-native-form .ntp-form-section{margin-top:24px!important;gap:16px}

:root{--ntp-section-heading-size:18px;--ntp-section-divider:#cccccc4d}
:is(.ntp-escript-tab,.ntp-tabs.ntp-tabs--underline [role=tab]){font-size:var(--ntp-section-heading-size)!important;line-height:1.5!important}

/* Keep nested field headings at the shared size despite theme heading rules. */
.ntp-native-form :is(.ntp-form-grid,.ntp-field) h4.ntp-section-title{font-size:var(--ntp-section-heading-size,18px)!important;font-weight:600!important;line-height:1.5!important}

/* Payment/outcome states reuse the shared status palette. */
.ntp-order-update-form .ntp-form-status--error{background:var(--ntp-state-rejected-bg);color:var(--ntp-state-rejected)}
.ntp-order-update-form .ntp-form-status--info{background:var(--ntp-state-pending-bg);color:var(--ntp-state-pending)}
.ntp-order-update-form .ntp-form-status--neutral{background:var(--ntp-state-neutral-bg);color:var(--ntp-state-neutral)}

/* Shared map-link and approved-prescription context spacing. */
a.ntp-map-link{display:table!important;margin-top:4px!important}
.ntp-review-patient-card__details a.ntp-map-link{margin-left:auto!important}
.ntp-script-review-form .ntp-record-summary__identity{margin-bottom:12px!important}
.ntp-script-review-form .ntp-record-summary__identity+.ntp-review-scope{margin-top:0!important;margin-bottom:16px!important}
.ntp-script-review-form .ntp-record-summary__identity+.ntp-review-token-row{margin-top:24px!important}
.ntp-script-review-form .ntp-review-scope+.ntp-review-token-row{margin-top:24px!important}
.ntp-staff-order-status--pending{background:var(--ntp-state-attention-bg)!important;color:var(--ntp-state-attention)!important}
.ntp-staff-order-status--on-hold{background:var(--ntp-state-attention-bg)!important;color:var(--ntp-state-attention)!important}

/* Needs attention is a display state; the underlying order lock still controls purchasing. */
.ntp-prescription-status--needs_attention{color:var(--ntp-state-rejected)}
.ntp-prescription-attention-info{display:inline-flex;vertical-align:middle;margin-left:4px}
.ntp-prescription-attention-info .ntp-status-info__trigger{color:inherit}

/* Shared patient order-note controls follow the status colour without a pill background. */
.ntp-prescription-status.ntp-prescription-status--awaiting_stock{color:var(--ntp-state-attention)!important}
.ntp-prescription-order-info{display:inline-flex;vertical-align:middle;margin-left:4px;color:inherit}
.ntp-prescription-order-info .ntp-status-info__trigger{width:24px!important;height:28px!important;min-height:28px!important;padding:4px 2px!important;border-radius:4px!important;background:transparent!important;color:inherit!important}
.ntp-prescription-order-info .ntp-status-info__trigger:hover{background:transparent!important;color:var(--ntp-control-primary)!important}
.ntp-prescription-order-info .ntp-status-info__trigger:focus-visible{background:transparent!important;color:inherit!important;outline:2px solid currentColor!important;outline-offset:2px!important}
/* Bare card-label shortcode has no enclosing coloured status element. */
.ntp-prescription-order-info--attention{color:var(--ntp-state-rejected)}
.ntp-prescription-order-info--stock{color:var(--ntp-state-attention)}
.ntp-notice-card__message--unboxed .ntp-patient-message--signed{background:transparent;margin-top:0;padding:0;border-radius:0}
.ntp-notice-card__message--unboxed .ntp-patient-message--signed::before{display:none}
.ntp-status-note-modal [data-ntp-status-note-message]>.ntp-patient-message+.ntp-pharmacy-contact{margin-top:16px}

/* Treat status text and its information control as one aligned inline unit. */
.ntp-prescription-status--with-info{display:inline-flex!important;align-items:center!important;gap:0!important;vertical-align:middle}
.ntp-prescription-status--with-info .ntp-prescription-order-info{flex:0 0 auto;margin:0!important;align-self:center}
.ntp-prescription-status--with-info .ntp-status-info__trigger{height:24px!important;min-height:24px!important;padding:0!important;line-height:1!important;transform:translateY(-1px)}

/* Wide prescription notices can place public contact links alongside the pharmacy name. */
@media(min-width:1025px){
 .ntp-notice-card__message--unboxed .ntp-pharmacy-contact{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:4px}
 .ntp-notice-card__message--unboxed .ntp-pharmacy-contact__links{margin-top:0}
}

/* Payment states override pharmacy-note colours without changing the order lock. */
.ntp-prescription-status--pending_payment{color:var(--ntp-state-attention)}
.ntp-prescription-status--on_hold{color:var(--ntp-state-attention)}
.ntp-order-status--pending{color:var(--ntp-state-attention)}
.ntp-order-status--on-hold{color:var(--ntp-state-attention)}

/* Shared order state colours: payment waits are attention, not informational pending. */
.ntp-order-status--pending,.ntp-order-status--on-hold{color:var(--ntp-state-attention)!important;background:var(--ntp-state-attention-bg)!important}
.ntp-form-notice--neutral{border-left-color:var(--ntp-state-neutral);background:var(--ntp-state-neutral-bg);color:var(--ntp-state-neutral)}
.ntp-form-notice--neutral .ntp-section-heading{color:inherit!important}
/* Elementor final milestone: use ntp-order-stage on the step, __title / __icon on its widgets.
   The ancestor already carries [ntp_order_state]; never recolour the whole timeline. */
.ntp-order-stage{--ntp-order-stage-color:var(--ntp-state-neutral)}
:is(.pending,.on-hold,.awaiting-stock) .ntp-order-stage{--ntp-order-stage-color:var(--ntp-state-attention);--ntp-order-stage-title-color:var(--ntp-state-attention)}
.action-required .ntp-order-stage{--ntp-order-stage-title-color:var(--ntp-state-rejected)}
:is(.action-required,.failed,.cancelled) .ntp-order-stage{--ntp-order-stage-color:var(--ntp-state-rejected)}
:is(.ready,.dispatched,.complete) .ntp-order-stage{--ntp-order-stage-color:var(--ntp-state-success)}
:is(.ready,.dispatched,.complete,.failed,.cancelled,.refunded) .ntp-order-stage{--ntp-order-stage-title-color:#000}
:is(.pending,.on-hold,.awaiting-stock,.action-required,.ready,.dispatched,.complete,.failed,.cancelled,.refunded) .ntp-order-stage .ntp-order-stage__title{color:var(--ntp-order-stage-title-color)!important}
:is(.pending,.on-hold,.awaiting-stock,.action-required,.ready,.dispatched,.complete,.failed,.cancelled,.refunded) .ntp-order-stage .ntp-order-stage__title .elementor-heading-title{color:var(--ntp-order-stage-title-color)!important}
.ntp-order-stage .ntp-order-stage__icon,.ntp-order-stage .ntp-order-stage__icon .elementor-icon{color:var(--ntp-order-stage-color)!important;border-color:var(--ntp-order-stage-color)!important}
.ntp-order-stage .ntp-order-stage__icon svg{fill:currentColor}

/* Inactive final-step headings use the listing colour. */
.ntp-order-stage-label:is(.ntp-order-stage-label--ready,.ntp-order-stage-label--dispatched,.ntp-order-stage-label--complete,.ntp-order-stage-label--failed,.ntp-order-stage-label--cancelled,.ntp-order-stage-label--refunded){color:#000!important}
.ntp-order-stage-label--pending,.ntp-order-stage-label--on-hold,.ntp-order-stage-label--awaiting-stock{color:var(--ntp-state-attention)!important}
.ntp-order-stage-label--action-required{color:var(--ntp-state-rejected)!important}
.ntp-prescription-order-info--payment{color:var(--ntp-state-attention)}

/* Order status pills reuse shared badge sizing, centring, colours and fixed icons. */
.ntp-status-badge__icon--schedule{-webkit-mask:url('../icons/notification-schedule.svg') center/contain no-repeat;mask:url('../icons/notification-schedule.svg') center/contain no-repeat}
.ntp-status-badge--neutral{color:var(--ntp-state-neutral);background:#f0f3f1}

/* Shared editing activity: neutral surface, opaque readable text. */
.ntp-form-notice.ntp-editing-notice {
  background: rgba(0, 50, 52, .045);
  border: 0;
  border-radius: 8px;
  color: var(--ntp-primary, #003234);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  grid-column: 1 / -1;
}
.ntp-editing-notice[hidden] { display: none !important; }
.ntp-editing-notice__editor { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.ntp-editing-notice__lock { display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; background: currentColor; mask: url('../icons/lock.svg') center / contain no-repeat; -webkit-mask: url('../icons/lock.svg') center / contain no-repeat; }

/* Compact advisory activity in all pharmacist record lists. */
.ntp-editing-indicator { display: flex; align-items: center; gap: 5px; color: var(--ntp-primary, #003234); font-size: 12px; font-weight: 400; line-height: 1.4; margin-top: 6px; }
.ntp-editing-indicator[hidden] { display: none !important; }
.ntp-editing-indicator .ntp-editing-notice__lock { width: 14px; height: 14px; flex-basis: 14px; }

/* Shared pre-send confirmation: native dialog owns focus trapping and dismissal. */
dialog:is(.ntp-email-confirmation,.ntp-patient-confirmation){width:min(540px,calc(100vw - 32px));box-sizing:border-box;border:0;border-radius:18px;background:#fff;color:#1d1c23}
dialog:is(.ntp-email-confirmation,.ntp-patient-confirmation)::backdrop{background:rgba(22,30,27,.58)}
:is(.ntp-email-confirmation,.ntp-patient-confirmation) .ntp-panel__body p{margin:0 0 14px;line-height:1.5;overflow-wrap:anywhere}
.ntp-email-preferences{display:grid;gap:20px}

/* Shared preference rows: label/help left, existing switch right. */
.ntp-email-preferences .ntp-preference-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;padding-bottom:16px;border-bottom:1px dashed var(--ntp-control-border)}
.ntp-preference-row__text{min-width:0}
.ntp-native-form .ntp-preference-row__text>label{display:block;margin:0 0 4px;font-weight:400;color:#000!important;line-height:1.4}
.ntp-native-form .ntp-preference-row__text>.ntp-help{margin:0!important}
.ntp-preference-row>.ntp-switch{padding-top:2px}

/* Patient Settings saves align right; staff Account Actions keep their existing alignment. */
.ntp-email-preferences--patient>.ntp-form-actions{justify-content:flex-end!important}

/* Keep reminder choices and their shared save action visually connected. */
.ntp-email-preferences>.ntp-form-actions{margin-top:0!important}

/* Explicit email choice: stable spacing, highlighted only while selected. */
.ntp-checkbox-label.ntp-checkbox-label--email-choice{box-sizing:border-box;width:100%;padding:8px 10px;border-radius:4px;background:transparent}
.ntp-checkbox-label--email-choice:has(input:checked){background:var(--ntp-state-success-bg)}

/* Reusable summary lists: identity left, compact actions right. */
.ntp-action-stack{display:grid;gap:18px;margin-bottom:20px}
.ntp-action-stack>.ntp-form-notice{margin-bottom:0}
.ntp-form-actions.ntp-form-actions--inline{justify-content:flex-start;margin-top:0;gap:8px}
.ntp-list-grid__row.ntp-list-grid__row--summary{grid-template-columns:minmax(0,1fr) auto;gap:18px}
.ntp-list-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px}
.ntp-list-row-actions>.ntp-native-form{margin:0;min-width:0}
@media(max-width:1024px){
 .ntp-list-grid__row.ntp-list-grid__row--summary{grid-template-columns:minmax(0,1fr)}
 .ntp-list-row-actions{justify-content:flex-start}
}

/* Shared determinate progress: use real completed work, never a timed animation. */
.ntp-progress-group{display:grid;gap:6px}
.ntp-progress-group>.ntp-help{margin:0!important}
.ntp-progress{appearance:none;display:block;width:100%;height:10px;border:0;border-radius:6px;overflow:hidden;background:var(--ntp-control-border,#dedede);color:var(--ntp-primary,#003f3f)}
.ntp-progress::-webkit-progress-bar{background:var(--ntp-control-border,#dedede);border-radius:6px}
.ntp-progress::-webkit-progress-value{background:var(--ntp-primary,#003f3f);border-radius:6px}
.ntp-progress::-moz-progress-bar{background:var(--ntp-primary,#003f3f);border-radius:6px}

.ntp-summary-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start;margin-bottom:20px}
.ntp-summary-toolbar>.ntp-panel__intro{margin:0!important}
.ntp-button.ntp-button--danger{background:transparent!important;border-color:var(--ntp-state-rejected)!important;color:var(--ntp-state-rejected)!important}
.ntp-button.ntp-button--danger:hover{background:var(--ntp-state-rejected)!important;color:#fff!important}
.ntp-data-table.ntp-data-table--comparison{table-layout:fixed;width:100%}
.ntp-data-table--comparison :is(th,td){white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.ntp-list-grid__head.ntp-list-grid__row--summary{grid-template-columns:minmax(0,1fr) auto}
@media(max-width:1024px){.ntp-summary-toolbar{grid-template-columns:minmax(0,1fr)}}

.ntp-action-stack:empty{display:none}

.ntp-form-actions.ntp-form-actions--inline{align-items:center}
.ntp-progress,.ntp-progress::-webkit-progress-bar{background:#f1f1f1}

/* Reusable compact action aligned opposite a panel title. */
.ntp-panel .ntp-panel__header.ntp-panel__header--with-action{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
}
.ntp-panel .ntp-panel__header .ntp-panel__action{
  flex:0 0 auto!important;margin:0 0 0 auto!important;padding:0!important;
  font-size:14px!important;line-height:1.4!important;min-height:0!important;
}

/* Staff prescription intake */
.ntp-intake-layout{display:grid;grid-template-columns:minmax(185px,1fr) minmax(0,3fr);gap:24px;align-items:start}
.ntp-intake-summary{min-width:0;overflow-wrap:anywhere;padding-top:5px}
.ntp-intake-layout>.ntp-intake-panel{min-width:0;background:#fff;border-radius:18px;overflow:hidden}
.ntp-intake-layout .ntp-section-title{font-family:inherit!important}
.ntp-native-form .ntp-form-grid--flush{margin-top:0;gap:16px}
.ntp-native-form .ntp-form-grid--flush>.ntp-field--full{margin-top:0}
.ntp-intake-summary ol{display:grid;gap:18px;list-style:none;margin:0 0 18px;padding:0}
.ntp-intake-summary li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px}
.ntp-intake-step-details{margin-top:5px;color:var(--ntp-body);font-size:14px;white-space:pre-line}
.ntp-intake-step-details span{display:block}
.ntp-intake-step-details:not(:has(span:not(:empty))){margin-top:0}
.ntp-intake-shipping{text-align:left;margin-bottom:8px}
.ntp-intake-shipping:not([open])>:not(summary),.ntp-intake-shipping:not([open]) .ntp-intake-shipping-open,.ntp-intake-shipping[open] .ntp-intake-shipping-closed{display:none!important}
.ntp-intake-shipping summary{cursor:pointer;list-style:none}
.ntp-intake-shipping summary::-webkit-details-marker{display:none}
.ntp-native-form .ntp-intake-shipping-fields{margin-top:16px}
.ntp-intake-step-number{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ntp-button-hover-background,#c1d7c7);color:var(--ntp-control-primary,#003234)}
.ntp-intake-summary [aria-current="step"] .ntp-intake-step-number{background:var(--ntp-control-primary,#003234);color:#fff}
.ntp-intake-layout:not(.ntp-intake-layout--prescription) [data-ntp-intake-progress="2"] .ntp-intake-step-number{opacity:.5}
:is(.ntp-intake-layout--prescription [data-ntp-intake-progress="1"],.ntp-intake-layout--complete li) .ntp-intake-step-number{background:var(--ntp-control-primary,#003234);color:#fff;font-size:0;line-height:0;display:flex;align-items:center;justify-content:center}
:is(.ntp-intake-layout--prescription [data-ntp-intake-progress="1"],.ntp-intake-layout--complete li) .ntp-intake-step-number::after{content:"";grid-area:1/1;width:18px;height:18px;background:currentColor;mask:url("../images/ntp-step-check.svg") center/contain no-repeat}
.ntp-intake-price{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #cccccc4d;padding-top:12px}
.ntp-intake-layout [hidden]{display:none!important}
.ntp-intake-panel .ntp-form-actions{justify-content:space-between}
@media(max-width:767px){.ntp-intake-layout{grid-template-columns:minmax(0,1fr);gap:16px}}

.ntp-locked-field{position:relative;min-width:0}
.ntp-native-form .ntp-locked-field input{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:none;padding-inline-end:40px}
.ntp-locked-field .ntp-editing-notice__lock{position:absolute;inset-inline-end:14px;top:50%;transform:translateY(-50%);color:var(--ntp-body);opacity:.6;pointer-events:none}

.ntp-section-title--with-action{flex-wrap:wrap;gap:8px 16px}
.ntp-section-title--with-action>h4{margin:0!important;font:inherit!important;color:inherit!important}
.ntp-section-title--with-action>.ntp-button{--ntp-tertiary-font-size:16px;margin-inline-start:auto!important}

@media(min-width:1025px){
  .ntp-patient-list--intake .ntp-patient-list__action.ntp-list-row-actions{flex-wrap:nowrap}
  .ntp-patient-list--intake .ntp-list-row-actions>.ntp-button{width:auto!important;white-space:nowrap}
}
.ntp-patient-confirmation__identity{display:grid;gap:4px;text-align:center;padding:24px 16px;margin:18px 0 14px;overflow-wrap:anywhere}
.ntp-patient-confirmation__identity strong{font-size:20px;color:var(--ntp-heading,#000)}
.ntp-patient-confirmation__identity span{font-size:14px;color:var(--ntp-text-muted,#687370)}
.ntp-patient-confirmation .ntp-form-actions{display:flex;justify-content:flex-end;flex-wrap:wrap}

.ntp-record-list--orders .ntp-list-detail del{text-decoration:line-through}

/* WooCommerce’s existing order payment form. Scope the adapter to order-pay. */
.ntp-order-pay #order_review .shop_table{border:1px solid var(--ntp-control-border,#ccc);border-radius:var(--ntp-modal-radius,18px);border-collapse:separate;border-spacing:0;background:var(--ntp-secondary-surface,#fff)}
.ntp-order-pay #order_review .shop_table :is(th,td){padding:12px 16px;border-color:var(--ntp-section-divider,#cccccc4d);overflow-wrap:anywhere}
.ntp-order-pay #order_review #payment{background:var(--ntp-secondary-surface,#fff);border:1px solid var(--ntp-control-border,#ccc);border-radius:var(--ntp-modal-radius,18px)}
.ntp-order-pay #order_review #payment .payment_box{background:#f5f8f6;color:var(--ntp-body)}
.ntp-order-pay #order_review #payment .payment_box::before{border-bottom-color:#f5f8f6}
.ntp-order-pay #order_review #payment :is(.payment_methods,.form-row){border-color:var(--ntp-section-divider,#cccccc4d)}
.ntp-order-pay #order_review #payment .woocommerce-privacy-policy-link{color:var(--ntp-primary);text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.ntp-order-pay #order_review .shop_table :is(th,td){padding:8px}.ntp-order-pay #order_review #payment #place_order{width:100%!important}}

.ntp-refund-items{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;align-items:baseline;padding-top:8px}
.ntp-refund-items__label{grid-column:1}
.ntp-refund-items__amount{grid-column:2;justify-self:end;text-align:end}
