/* Provider surfaces share the staff dashboard theme. Clinical states, dose
   results and the compact POS scroll/cart layout retain their own rules. */
@font-face{font-family:DiataSeasons;src:url('/inventory/provider-seasons.otf') format('opentype');font-weight:400;font-display:swap}
body.provider-app,
body.provider-order-app {
  --navy:#20307f;
  --bg:#fff;
  --line:#dbe3ef;
  --line2:#cbd7e7;
  background:#fff;
  color:#18234d;
  font:400 14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body.provider-app .main {
  max-width:898px;
  padding:28px 24px 50px;
}

body .provider-dashboard {
  --provider-navy:#20307f;
  --provider-ink:#18234d;
  --provider-muted:#56657c;
  --provider-line:#dbe3ef;
  --provider-soft:#f3f7fd;
  max-width:850px;
  font:400 14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--provider-ink);
}

body .provider-dashboard .provider-topnav {
  align-items:center;
  flex-wrap:wrap;
  margin:0 0 22px;
  gap:10px;
}

body .provider-dashboard .provider-topnav a {
  min-height:44px;
  border:1px solid #dbe3ef;
  border-radius:10px;
  padding:10px 14px;
  color:#20307f;
  font:600 14px/1.35 Inter,system-ui,sans-serif;
  text-decoration:none;
}

body .provider-dashboard .provider-heading {
  text-align:left;
  margin:0 0 26px;
}

body .provider-dashboard .provider-heading .station-wordmark {
  text-align:left;
  color:#20307f;
  font:700 11px/1.5 Inter,system-ui,sans-serif;
  letter-spacing:.2em;
}

#main .provider-dashboard .provider-heading h1 {
  margin:18px 0 0;
  color:#20307f;
  text-align:left;
  font:600 36px/1.15 Georgia,serif;
  letter-spacing:0;
  white-space:normal;
  overflow-wrap:anywhere;
}

body .provider-dashboard .provider-heading p {
  margin:8px 0 0;
  color:#56657c;
  font:400 15px/1.5 Inter,system-ui,sans-serif;
}

body .provider-dashboard :is(.provider-primary,.provider-tool-section .station-grid) {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

body .provider-dashboard .provider-primary {
  margin:0 0 28px;
}

body .provider-dashboard .provider-tile,
body .provider-dashboard .provider-primary .provider-tile,
body .provider-dashboard .provider-tool-section .provider-tile {
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  column-gap:14px;
  align-items:start;
  align-content:center;
  min-width:0;
  min-height:94px;
  width:100%;
  margin:0;
  padding:17px;
  border:1px solid #dbe3ef;
  border-radius:14px;
  background:#fff;
  color:#20307f;
  box-shadow:none;
  text-align:left;
  text-decoration:none;
  font:inherit;
  transition:background .13s,border-color .13s;
}

body .provider-dashboard .provider-tile .station-icon {
  grid-column:1;
  grid-row:1 / span 3;
  align-self:center;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  margin:0;
  border-radius:11px;
  background:#edf4fc;
  color:#20307f;
}

body .provider-dashboard .provider-tile .station-icon svg {
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

body .provider-dashboard .provider-tile .station-name {
  grid-column:2;
  margin:0;
  color:#20307f;
  font:600 18px/1.3 Inter,system-ui,sans-serif;
  letter-spacing:0;
  overflow-wrap:anywhere;
}

body .provider-dashboard .provider-tile p,
body .provider-dashboard .provider-primary .provider-tile p {
  grid-column:2;
  margin:4px 0 0;
  color:#56657c;
  font:400 14px/1.4 Inter,system-ui,sans-serif;
}

body .provider-dashboard .provider-primary .provider-tool-context {
  grid-column:2;
  margin:5px 0 0;
  color:#56657c;
  font:500 12px/1.4 Inter,system-ui,sans-serif;
}

body .provider-dashboard .provider-tile:hover {
  background:#f3f7fd;
  border-color:#a8bee1;
  box-shadow:none;
  transform:none;
}

body .provider-dashboard .provider-tile:active {
  transform:none;
}

body .provider-dashboard .provider-tool-section {
  margin:26px 0 0;
}

#main .provider-dashboard .provider-section-heading h2 {
  margin:0;
  color:#20307f;
  font:600 21px/1.25 Georgia,serif;
  letter-spacing:0;
}

body .provider-dashboard .provider-section-heading p {
  color:#56657c;
  font:400 14px/1.5 Inter,system-ui,sans-serif;
}

/* The document launcher keeps its secure editor links and familiar staff cards. */
#main .provider-documents .ops-app-head h1 {
  color:#20307f;
  font:600 32px/1.2 Georgia,serif;
  letter-spacing:0;
}

body .provider-documents .provider-document-card {
  border:1px solid #dbe3ef;
  border-radius:14px;
  padding:20px;
  color:#18234d;
  box-shadow:none;
  text-decoration:none;
}

#main .provider-documents .provider-document-card h2 {
  margin:16px 0 8px;
  color:#20307f;
  font:600 18px/1.4 Inter,system-ui,sans-serif;
  letter-spacing:0;
}

body .provider-documents .provider-document-card p {
  color:#56657c;
  font:400 14px/1.5 Inter,system-ui,sans-serif;
}

body .provider-documents .provider-document-card .station-icon {
  background:#edf4fc;
  color:#20307f;
  border-radius:11px;
}

/* Provider food reference and pricing dialogs use the same working form. */
body .mcard.provider {
  --navy:#20307f;
  --line:#dbe3ef;
  --line2:#cbd7e7;
  border:1px solid #dbe3ef;
  border-radius:14px;
  box-shadow:none;
  color:#18234d;
  font:400 14px/1.5 Inter,system-ui,sans-serif;
}

body .mcard.provider h2 {
  text-align:left;
  color:#20307f;
  font:600 28px/1.2 Georgia,serif;
  letter-spacing:0;
  overflow-wrap:anywhere;
}

body .mcard.provider .msub {
  text-align:left;
  color:#56657c;
  font:400 14px/1.5 Inter,system-ui,sans-serif;
}

body .mcard.provider>.mrule,
body .mcard.provider:has(#providerFoodList)>.mrule,
body .mcard.provider:has(#providerPriceHost)>.mrule {
  width:100%;
  height:1px;
  margin:16px 0;
  border-radius:0;
  background:#dbe3ef;
}

body .mcard.provider .btn {
  min-height:44px;
  padding:10px 14px;
  border-radius:10px;
  box-shadow:none;
  font:600 14px/1.35 Inter,system-ui,sans-serif;
}

body .mcard.provider :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  min-height:48px;
  max-width:100%;
  border:1px solid #cbd7e7;
  border-radius:10px;
  background:#fff;
  color:#18234d;
  font:400 16px/1.4 Inter,system-ui,sans-serif;
}

body .mcard.provider .provider-food-row {
  border:1px solid #dbe3ef;
  border-radius:14px;
}

body .mcard.provider .provider-food-row summary {
  min-height:44px;
}

body :is(.provider-dashboard,.provider-documents,.mcard.provider,.provider-ordering) :is(button,a,input,select,textarea,summary):focus-visible {
  outline:3px solid #abc9e5;
  outline-offset:3px;
}

/* Keep the POS dense enough for iPad; change its palette and heading only. */
body .provider-ordering {
  --po-navy:#20307f;
  --po-ink:#18234d;
  --po-muted:#56657c;
  --po-line:#dbe3ef;
}

body .provider-ordering .po-heading h1 {
  color:#20307f;
  font:600 28px/1.2 Georgia,serif;
  letter-spacing:0;
}

body .provider-ordering :is(.po-patient-start,.po-cart,.po-product-tile,.po-sheet) {
  border-radius:14px;
  box-shadow:none;
}

body .provider-ordering :is(.po-patient-start h2,.po-sheet-head h2) {
  color:#20307f;
  font:600 22px/1.25 Georgia,serif;
  letter-spacing:0;
}

@media(max-width:620px) {
  body.provider-app .main {padding:22px 16px 40px}
  #main .provider-dashboard .provider-heading h1 {font-size:32px}
  body .provider-dashboard .provider-heading p {font-size:14px}
  body .provider-dashboard :is(.provider-primary,.provider-tool-section .station-grid) {grid-template-columns:1fr;gap:10px}
  body .provider-dashboard .provider-tile,
  body .provider-dashboard .provider-primary .provider-tile,
  body .provider-dashboard .provider-tool-section .provider-tile {min-height:88px;padding:15px;column-gap:12px}
  body .provider-dashboard .provider-tile .station-name {font-size:17px}
  body .provider-dashboard .provider-section-heading {display:block}
  body .provider-dashboard .provider-section-heading p {margin:4px 0 0}
  #main .provider-documents .ops-app-head h1 {font-size:28px}
  #main .provider-documents .provider-document-card h2 {font-size:17px}
}

@media(max-width:720px) {
  body .provider-ordering .po-heading h1 {font-size:24px}
}

@media(max-height:550px) and (min-width:721px) {
  body .provider-ordering .po-heading h1 {font-size:22px}
}

/* Provider commerce: clear reading sizes, quiet surfaces, reachable checkout. */
body.provider-order-app{background:#f5f7fa;color:#17234b;padding:20px}
body.provider-order-app .provider-ordering{--po-text-size:20px;--po-small-size:max(12px,calc(var(--po-text-size) - 2px));--po-label-size:max(12px,calc(var(--po-text-size) - 4px));--po-navy:#20307f;--po-ink:#17234b;--po-muted:#46556b;--po-line:#d7dfe9;font:400 var(--po-text-size)/1.45 Inter,-apple-system,BlinkMacSystemFont,sans-serif;gap:14px}
body.provider-order-app .provider-ordering :is(button,input,select,textarea){font-size:var(--po-text-size);min-height:56px;border-radius:12px}
body.provider-order-app .provider-ordering button{font-weight:500;padding:12px 16px}
body.provider-order-app .provider-ordering button:disabled{opacity:1;color:#67748a;background:#eef1f5;border-color:#d7dfe9}
body.provider-order-app .provider-ordering :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #005bc4;outline-offset:3px}
body.provider-order-app .po-heading{min-height:64px;flex-wrap:wrap;gap:12px}
body.provider-order-app .po-brand-lockup{display:flex;align-items:center;gap:20px}
body.provider-order-app .po-brand-name{font:400 calc(var(--po-text-size) + 14px)/1 DiataSeasons,Georgia,serif;color:#20307f;letter-spacing:-.04em}
body.provider-order-app .po-brand-lockup>div{border-left:1px solid #cbd5e3;padding-left:20px}
body.provider-order-app .po-brand-lockup .po-eyebrow{font-size:var(--po-label-size);letter-spacing:.15em;margin-bottom:1px;color:#46556b}
body.provider-order-app .po-heading h1{font:400 calc(var(--po-text-size) + 12px)/1.1 DiataSeasons,Georgia,serif;color:#20307f}
body.provider-order-app .po-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
body.provider-order-app .po-heading-actions .po-back{font-size:var(--po-small-size);border-color:transparent}
body.provider-order-app .po-heading-actions .po-text-size{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:transparent}
body.provider-order-app .po-text-size-label,body.provider-order-app .po-text-size output{font-size:var(--po-small-size);color:var(--po-muted)}
body.provider-order-app .po-text-size button{min-width:56px;padding:10px;font-size:var(--po-text-size)}
body.provider-order-app .po-text-size output{min-width:4ch;text-align:center;white-space:nowrap}
body.provider-order-app .po-patient-bar{padding:12px 16px;background:#eef2f8;border:0;border-radius:16px;gap:16px}
body.provider-order-app .po-patient-button{min-height:64px;min-width:220px!important;max-width:360px!important;background:transparent;border-color:transparent;padding:4px 8px}
body.provider-order-app .po-patient-button strong{font-size:calc(var(--po-text-size) + 2px);font-weight:600}
body.provider-order-app .po-patient-button small{font-size:var(--po-small-size);max-width:280px;color:#46556b}
body.provider-order-app .po-avatar{width:44px;height:44px;flex-basis:44px;border-radius:50%;font-size:var(--po-small-size);background:#e0e7f2;color:#20307f}
body.provider-order-app .po-quick-context .po-eyebrow{font-size:var(--po-label-size);line-height:1.3}
body.provider-order-app .po-quick-context strong{font-size:var(--po-small-size);line-height:1.4;font-weight:500}
body.provider-order-app .po-context-actions{flex-wrap:wrap;gap:8px}
body.provider-order-app .po-context-actions button{font-size:var(--po-small-size);white-space:normal;background:#fff;border-color:#cbd7e7;min-height:56px}
body.provider-order-app .po-account-line{font-size:var(--po-small-size);line-height:1.4;min-height:56px;margin:0;padding:0 12px;border-radius:10px;background:#fff;border:1px solid #e2e7ef}
body.provider-order-app .po-account-line button{font-size:var(--po-small-size);min-height:56px}
body.provider-order-app .po-overview{padding:14px 18px;max-height:128px;border-color:#e2e7ef;border-radius:14px}
body.provider-order-app .po-overview :is(h2,h3,p,strong,span,small){font-size:var(--po-small-size);line-height:1.4}
body.provider-order-app .po-supply-heading{flex-wrap:wrap}
body.provider-order-app .po-supply-heading button{font-size:var(--po-small-size);min-height:56px}
body.provider-order-app .po-layout{grid-template-columns:minmax(0,1fr) 360px;gap:20px}
body.provider-order-app .po-catalog-controls{gap:12px;padding-bottom:14px}
body.provider-order-app .po-filters{gap:8px;flex-wrap:wrap;overflow:visible}
body.provider-order-app .po-filters button{font-size:var(--po-small-size)!important;min-height:56px;padding:12px 14px!important;flex:1 1 auto;background:transparent;border-color:transparent}
body.provider-order-app .po-filters button[aria-pressed=true]{background:#20307f;color:#fff;border-color:#20307f}
body.provider-order-app .po-family-filters{display:flex;gap:8px;flex-wrap:wrap}
body.provider-order-app .po-family-filters button{font-size:var(--po-small-size);min-height:56px}
body.provider-order-app .po-products{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;gap:16px;padding:2px 4px 18px}
body.provider-order-app .po-product-tile.po-product{border-color:#e1e6ed;border-radius:16px;box-shadow:0 2px 6px #17234b04;min-height:178px;height:max-content}
body.provider-order-app .provider-ordering .po-product-tap{font-size:var(--po-text-size);min-height:178px;padding:18px!important;gap:10px;border-radius:0;line-height:1.4;flex:0 0 auto}
body.provider-order-app .provider-ordering .po-product-tap:has(.po-product-art){min-height:310px}
body.provider-order-app .po-product-tap:hover:not(:disabled){background:#fbfcfe}
body.provider-order-app .po-tile-name{font-size:var(--po-text-size);font-weight:500;overflow-wrap:anywhere}
body.provider-order-app .po-tile-dose{font-size:calc(var(--po-text-size) + 8px);font-weight:600}
body.provider-order-app .po-tile-package{font-size:var(--po-small-size);line-height:1.4}
body.provider-order-app .po-tile-price{font-size:calc(var(--po-text-size) + 2px);font-weight:500;padding-top:8px}
body.provider-order-app .po-tile-preference{font-size:var(--po-small-size);line-height:1.4}
body.provider-order-app .po-product-art{display:grid;place-items:center;flex:0 0 110px;width:100%;height:110px;background:#f5f7fb;border-radius:10px;overflow:hidden;margin-bottom:6px}
body.provider-order-app .po-product-art img{width:100%;height:100%;object-fit:contain}
body.provider-order-app .po-product-art:has(img[hidden]){display:none}
body.provider-order-app .po-product-more{font-size:var(--po-small-size);min-height:56px}
body.provider-order-app .po-cart{border-color:#dce3ec;border-radius:18px;box-shadow:0 6px 24px #17234b06}
body.provider-order-app .po-section-head{padding:18px 20px;min-height:64px}
body.provider-order-app .po-section-head h2{font:400 calc(var(--po-text-size) + 10px)/1.2 DiataSeasons,Georgia,serif}
body.provider-order-app .po-status{font-size:var(--po-small-size);padding:6px 9px;font-weight:500}
body.provider-order-app .po-cart-items{padding:0 20px;min-height:72px}
body.provider-order-app .po-cart-line{padding:20px 0;gap:14px}
body.provider-order-app .po-cart-line strong{font-size:var(--po-text-size);line-height:1.4;font-weight:500}
body.provider-order-app .po-cart-line small,body.provider-order-app .po-cart-line span:not(.po-sr-only){font-size:var(--po-small-size);line-height:1.4}
body.provider-order-app .po-cart-line>div:first-child{padding-right:0}
body.provider-order-app .po-quantity-stepper button{min-width:56px;min-height:56px;font-size:calc(var(--po-text-size) + 4px)}
body.provider-order-app .po-quantity-stepper input{width:58px;min-height:56px;font-size:var(--po-text-size)!important}
body.provider-order-app .po-cart-footer{display:flex;flex-direction:column;flex:0 1 auto;max-height:78%;overflow:hidden!important;padding:16px 20px 20px}
body.provider-order-app .po-cart-status{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1}
body.provider-order-app .po-cart-checkout,body.provider-order-app .po-subtotal{flex:0 0 auto}
body.provider-order-app .po-subtotal{font-size:var(--po-small-size);margin-bottom:14px;align-items:baseline}
body.provider-order-app .po-subtotal strong{font-size:calc(var(--po-text-size) + 10px);font-weight:500;letter-spacing:0}
body.provider-order-app .po-fulfillment button{min-height:56px;font-size:var(--po-text-size)}
body.provider-order-app .po-primary{min-height:60px;font-size:var(--po-text-size);border-radius:12px}
body.provider-order-app a.po-primary{display:flex;align-items:center;justify-content:center;text-decoration:none;padding:12px}
body.provider-order-app :is(.po-order-notice,.po-action-message,.po-muted,.po-error,.po-price-note,.po-empty,.po-review-note,.po-review-note p,.po-review-note>strong,.po-cart-empty p,.po-review-note.ready){font-size:var(--po-small-size)!important;line-height:1.45}
body.provider-order-app .po-confirm{font-size:var(--po-small-size);min-height:56px}
body.provider-order-app .po-reminders .po-eyebrow,body.provider-order-app .po-reminder-chip,body.provider-order-app .po-reminder-chip strong,body.provider-order-app .po-reminder-chip small{font-size:var(--po-small-size);white-space:normal}
body.provider-order-app .po-reminder-chip{min-height:56px;max-width:360px}
body.provider-order-app .po-sheet{max-width:760px;border-radius:20px;max-height:calc(100dvh - 32px)}
body.provider-order-app .po-sheet-head{padding:18px 22px}
body.provider-order-app .po-sheet-head h2{font:400 calc(var(--po-text-size) + 10px)/1.2 DiataSeasons,Georgia,serif}
body.provider-order-app .po-sheet-head button{min-width:56px;min-height:56px}
body.provider-order-app .po-sheet-body{padding:22px}
body.provider-order-app .po-sheet :is(p,small,label,.po-context-strip,.po-history-item strong,.po-history-item span,.po-history-item small,.po-history-categories h3,.po-source,.po-preference-chip){font-size:var(--po-small-size);line-height:1.45}
body.provider-order-app .po-patient-results strong,body.provider-order-app .po-option-button strong{font-size:var(--po-text-size)}
body.provider-order-app .po-patient-results small,body.provider-order-app .po-option-button small{font-size:var(--po-small-size)}
@media(min-width:721px) and (max-width:1024px) and (min-height:901px){
 body.provider-order-app .po-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(200px,1fr) 350px;gap:16px}
 body.provider-order-app .po-cart{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,42%);grid-template-rows:64px minmax(0,1fr)}
 body.provider-order-app .po-cart .po-section-head{grid-column:1/-1}
 body.provider-order-app .po-cart-items{grid-column:1;grid-row:2;min-height:0}
 body.provider-order-app .po-cart-footer{grid-column:2;grid-row:2;max-height:none;border-left:1px solid #d7dfe9;border-top:0}
 body.provider-order-app .po-patient-bar{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 body.provider-order-app .po-patient-bar .po-patient-summary strong{font-size:var(--po-small-size)}
}
@media(min-width:721px) and (max-height:900px){
 body.provider-order-app .po-overview{max-height:76px;padding:10px 16px}
 body.provider-order-app .po-layout{grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:minmax(0,1fr)}
 body.provider-order-app .po-cart{display:flex}
 body.provider-order-app .po-patient-bar{padding:8px 12px}
}
@media(max-width:720px){
 body.provider-order-app{padding:14px}
 body.provider-order-app .provider-ordering{height:auto;gap:16px}
 body.provider-order-app .po-heading{align-items:start}
 body.provider-order-app .po-heading-actions{width:100%}
 body.provider-order-app .po-layout{display:flex;flex-direction:column}
 body.provider-order-app .po-catalog{min-height:400px}
 body.provider-order-app .po-products{grid-template-columns:repeat(2,minmax(0,1fr));max-height:55dvh}
 body.provider-order-app .po-cart{display:flex;min-height:380px}
 body.provider-order-app .po-cart-items{min-height:72px;max-height:360px}
 body.provider-order-app .po-cart-footer{max-height:none;overflow:visible!important}
 body.provider-order-app .po-cart-status{overflow:visible}
 body.provider-order-app .po-patient-bar{flex-wrap:wrap;gap:12px}
 body.provider-order-app .po-patient-button{max-width:100%!important;min-width:0!important;width:100%}
 body.provider-order-app .po-patient-summary{width:100%;flex-basis:100%}
 body.provider-order-app .po-context-actions{margin-left:0}
 body.provider-order-app .po-overview{max-height:180px;grid-template-columns:1fr}
}
@media(max-width:420px){body.provider-order-app .po-products{grid-template-columns:1fr}body.provider-order-app .po-heading-actions button{flex:1}body.provider-order-app .po-history-categories{grid-template-columns:1fr}}
@media(min-width:721px) and (max-height:650px){
 body.provider-order-app{height:auto;min-height:100dvh;overflow:auto}
 body.provider-order-app #providerOrderingHost{height:auto;min-height:calc(100dvh - 40px)}
 body.provider-order-app .provider-ordering{height:auto}
 body.provider-order-app .po-layout{min-height:480px}
 body.provider-order-app .po-products{max-height:480px}
 body.provider-order-app .po-cart{max-height:540px}
}
@media(min-width:721px) and (max-width:1024px) and (min-height:901px) and (max-height:1100px){
 body.provider-order-app{height:auto;min-height:100dvh;overflow:auto}
 body.provider-order-app #providerOrderingHost{height:auto;min-height:calc(100dvh - 40px)}
 body.provider-order-app .provider-ordering{height:auto}
 body.provider-order-app .po-layout{grid-template-rows:400px 350px;flex:0 0 auto}
}

/* Provider-only neutral states; status words and clinical decisions stay exact. */
body.provider-order-app :is(.po-reminder-chip,.po-tile-count,.po-tile-preference,.po-preference-chip,.po-status.success,.po-saved,.po-shopify-link){background:#eef2f8;color:#20307f;border-color:#cbd7e7}
body.provider-order-app :is(.po-reminder-chip small,.po-history-item span,.po-reminder h3,.po-review-note.ready,.po-account-line,.po-account-line button){color:#20307f}
body.provider-order-app .po-preference-choice button[aria-pressed=true]{background:#e5ebf5;border-color:#8297bd;color:#20307f}
body.provider-order-app .provider-ordering :is(.po-sheet-body,.po-option-sheet,.po-count-form,.po-offer,.po-reminder,.po-draft-detail,.po-history-unavailable,.po-order-recovery){font-size:var(--po-text-size)}
body.provider-order-app .provider-ordering :is(label,summary,.po-offer small,.po-draft-row,.po-draft-row small,.po-handoff p,.po-count-recovery code,.po-tile-count,.po-product-tap .po-eyebrow){font-size:var(--po-small-size)!important;line-height:1.45}
body.provider-order-app .provider-ordering :is(.po-heading,.po-heading-actions,.po-brand-lockup,.po-patient-bar,.po-context-actions,.po-cart,.po-cart-items,.po-cart-footer,.po-sheet,.po-sheet-body,.po-option-button,.po-history-categories,.po-preference-item,.po-fulfillment){min-width:0}
body.provider-order-app .provider-ordering :is(button,a,p,strong,span,small,label,output){overflow-wrap:anywhere}
body.provider-order-app .po-option-button{flex-wrap:wrap}
body.provider-order-app .po-patient-button>span:not(.po-avatar){min-width:0}
body.provider-order-app .po-preference-choice{flex-wrap:wrap}
body.provider-order-app .po-subtotal{flex-wrap:wrap;gap:8px}
body.provider-order-app .po-cart-line .po-line-total{white-space:normal}
/* Portrait uses one document scroll: full-width products then an unclipped cart. */
@media(max-width:1024px) and (orientation:portrait), (max-width:720px){
 body.provider-order-app{height:auto;min-height:100dvh;overflow:auto}
 body.provider-order-app #providerOrderingHost,body.provider-order-app .provider-ordering{height:auto;min-height:calc(100dvh - 40px)}
 body.provider-order-app .po-layout{display:flex;flex-direction:column;flex:0 0 auto;min-height:0;gap:20px}
 body.provider-order-app .po-catalog{min-height:0;overflow:visible}
 body.provider-order-app .po-catalog-controls{display:flex;flex-direction:column;align-items:stretch}
 body.provider-order-app .po-products{grid-template-columns:repeat(2,minmax(0,1fr));max-height:55dvh;min-height:180px;flex:none}
 body.provider-order-app .po-cart{display:flex;max-height:none;min-height:0;overflow:visible}
 body.provider-order-app .po-cart-items{max-height:none;min-height:0;overflow:visible}
 body.provider-order-app .po-cart-footer{max-height:none;overflow:visible!important;border-left:0;border-top:1px solid #d7dfe9}
 body.provider-order-app .po-cart-status{overflow:visible;flex:0 0 auto}
 body.provider-order-app .po-patient-bar{display:flex;flex-wrap:wrap}
 body.provider-order-app .po-patient-button{max-width:100%!important;width:100%}
 body.provider-order-app .po-context-actions{flex-wrap:wrap;margin-left:0;justify-content:flex-start}
 body.provider-order-app .po-overview{grid-template-columns:1fr;max-height:180px}
 body.provider-order-app .po-history-categories{grid-template-columns:1fr}
}
@media(max-width:460px){
 body.provider-order-app{padding:12px}
 body.provider-order-app .po-products{grid-template-columns:1fr}
 body.provider-order-app .po-heading-actions{width:100%}
 body.provider-order-app .po-heading-actions .po-text-size{width:100%}
 body.provider-order-app .po-brand-lockup{gap:12px}
 body.provider-order-app .po-brand-lockup>div{padding-left:12px}
 body.provider-order-app .po-brand-name{font-size:calc(var(--po-text-size) + 10px)}
 body.provider-order-app .po-cart-line{display:flex;flex-wrap:wrap}
 body.provider-order-app .po-cart-line>div:first-child{flex:1 1 100%}
 body.provider-order-app .po-cart-line .po-line-total{margin-left:auto}
 body.provider-order-app .po-fulfillment{flex-wrap:wrap}
}

/* Device-only display controls: one-pixel steps, explicit numeric size. */
body.provider-order-app .po-text-size-value{display:flex;align-items:center;gap:6px;margin:0;font-size:var(--po-small-size)}
body.provider-order-app .provider-ordering .po-text-size-value input{width:4.5ch;min-width:70px;min-height:44px;padding:8px;text-align:center;font-size:var(--po-text-size)}
body.provider-order-app .po-text-size button{min-width:44px;min-height:44px}

/* Two focused Provider views; source data remains patient-bound and read-only. */
body.provider-order-app .po-workspace-nav{display:flex;flex-wrap:wrap;gap:10px;flex:0 0 auto}
body.provider-order-app .po-workspace-nav button{min-height:56px;min-width:140px;font-size:var(--po-text-size)}
body.provider-order-app .po-workspace-nav button[aria-pressed=true]{background:#20307f;color:#fff;border-color:#20307f}
body.provider-order-app .po-patient-account{min-width:0;min-height:0;flex:1;overflow-wrap:anywhere;overflow-y:auto}
body.provider-order-app .po-account-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
body.provider-order-app .po-account-heading h2{font:400 calc(var(--po-text-size) + 8px)/1.2 DiataSeasons,Georgia,serif;color:#20307f;margin:12px 0}
body.provider-order-app .po-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.provider-order-app .po-account-section{min-width:0;border:1px solid #d7dfe9;border-radius:16px;background:#fff;padding:20px;margin-top:16px;font-size:var(--po-text-size);line-height:1.5}
body.provider-order-app .po-account-section h2{font:400 calc(var(--po-text-size) + 6px)/1.25 DiataSeasons,Georgia,serif;color:#20307f;margin:0 0 14px}
body.provider-order-app .po-account-section h3{font-size:var(--po-text-size);margin:14px 0 8px;color:#20307f}
body.provider-order-app .po-account-section :is(p,li,small){font-size:var(--po-small-size);line-height:1.5;overflow-wrap:anywhere}
body.provider-order-app .po-plan+.po-plan{border-top:1px solid #d7dfe9;margin-top:16px;padding-top:16px}
body.provider-order-app .po-quantity-stepper input{width:max(58px,calc(3ch + 16px))}
@media(max-width:720px){body.provider-order-app .po-account-grid{grid-template-columns:1fr}body.provider-order-app .po-workspace-nav button{flex:1}body.provider-order-app .po-account-section{padding:16px}}

body.provider-order-app .po-history-order{display:flex;width:100%;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:10px 0;padding:18px;text-align:left;min-width:0;background:#fff}
body.provider-order-app .po-history-order strong,body.provider-order-app .po-history-order small{display:block;overflow-wrap:anywhere}
body.provider-order-app .po-history-order.attention{background:#fff0f1;border-color:#eab9c0;color:#7f2837}
body.provider-order-app .po-history-order.attention:hover{background:#ffe8eb;border-color:#d7a0a9}
body.provider-order-app .po-history-state{font-size:var(--po-small-size);line-height:1.45}
body.provider-order-app .po-history-attention{background:#fff0f1;color:#7f2837;border-radius:10px;padding:12px}
body.provider-order-app .po-original-note{white-space:pre-wrap;overflow-wrap:anywhere}
body.provider-order-app .po-text-size-error{font-size:12px;line-height:1.4;color:#7f2837;flex:1 1 100%}

body.provider-order-app .po-shipping-selection{padding:14px 0;min-width:0;font-size:var(--po-small-size)}
body.provider-order-app .po-shipping-selection h3{font-size:var(--po-text-size);margin:12px 0;color:#20307f}
body.provider-order-app .po-shipping-selection :is(p,small){font-size:var(--po-small-size);line-height:1.45}
body.provider-order-app .po-shipping-selection>button{margin:8px 0;width:100%;white-space:normal}
body.provider-order-app .po-address-options,body.provider-order-app .po-rate-options{display:grid;gap:10px;min-width:0}
body.provider-order-app .po-address-options button{display:block;text-align:left;min-width:0;overflow-wrap:anywhere}
body.provider-order-app .po-address-options :is(strong,small){display:block;font-weight:400}
body.provider-order-app .po-address-options button[aria-pressed=true],body.provider-order-app .po-rate-options button[aria-pressed=true]{background:#e5ebf5;border-color:#8297bd;color:#20307f}
body.provider-order-app .po-rate-options button{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;min-width:0;text-align:left}
body.provider-order-app .po-quote-summary{display:grid;gap:8px;margin:16px 0}
body.provider-order-app .po-quote-summary>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
body.provider-order-app .po-quote-summary :is(dt,dd){margin:0;min-width:0;font-size:var(--po-small-size);overflow-wrap:anywhere}
body.provider-order-app .po-quote-summary>div:last-child{border-top:1px solid #cbd7e7;padding-top:10px;font-weight:600}

@media(max-width:1024px) and (orientation:portrait), (max-width:720px){body.provider-order-app .po-patient-account{flex:0 0 auto;overflow:visible}}

body.provider-order-app .po-compact-patient-context{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;font-size:var(--po-small-size);color:#56657c;min-width:0}
body.provider-order-app .po-compact-patient-context>span{overflow-wrap:anywhere}
body.provider-order-app .po-compact-patient-context button{font-size:var(--po-small-size);min-height:44px}

body.provider-order-app .po-copay-choice{display:grid;gap:14px;min-width:0}
body.provider-order-app .po-copay-choice select{display:block;width:100%;min-width:0;min-height:56px;padding:12px;font-size:var(--po-text-size);color:#20307f;background:#fff;border:1px solid #aebed5;border-radius:10px}
body.provider-order-app .po-copay-choice>button{min-height:56px}

/* Compact Food rows keep native selection and patient evidence in view. */
body.provider-order-app .po-food-context{display:block;flex:0 0 auto;border:1px solid #d7dfe9;border-radius:12px;background:#fff}
body.provider-order-app .po-food-context-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 14px 12px}
body.provider-order-app .po-food-context-body>section{min-width:0}
body.provider-order-app .po-food-context h2{font-size:var(--po-small-size);line-height:1.4;margin:0 0 8px;color:#20307f}
body.provider-order-app .po-food-context :is(p,li,strong,small){font-size:var(--po-small-size);line-height:1.4;overflow-wrap:anywhere}
body.provider-order-app .po-food-context :is(p,ul){margin:6px 0;padding:0;list-style:none}
body.provider-order-app .po-food-context li+li{margin-top:8px}
body.provider-order-app .po-food-context small{display:block;color:var(--po-muted)}
body.provider-order-app .po-food-context button{font-size:var(--po-small-size);min-height:44px;margin-top:6px;padding:6px 10px}
body.provider-order-app .po-food-products{grid-template-columns:minmax(0,1fr);gap:8px}
body.provider-order-app .po-product-tile.food{display:grid;grid-template-columns:minmax(0,1fr) 44px;min-height:0!important;border-radius:12px}
body.provider-order-app .provider-ordering .food .po-product-tap{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;min-height:72px!important;padding:10px 12px!important;gap:12px}
body.provider-order-app .provider-ordering .food .po-product-tap:has(.po-product-art){grid-template-columns:48px minmax(0,1fr)}
body.provider-order-app .food .po-product-art{width:48px;height:48px;flex-basis:48px;margin:0;border-radius:6px}
body.provider-order-app .po-food-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:3px 12px;min-width:0}
body.provider-order-app .food .po-tile-name{grid-column:1;font-size:var(--po-text-size)}
body.provider-order-app .food .po-tile-package{grid-column:1;grid-row:2}
body.provider-order-app .food .po-tile-price{grid-column:2;grid-row:1/3;margin:0;padding:0;font-size:var(--po-text-size)}
body.provider-order-app .food .po-tile-preference{grid-column:1/-1;justify-self:start}
body.provider-order-app .food .po-product-more{border-top:0;border-left:1px solid #d7dfe9;min-height:44px;padding:6px!important}
@media(max-width:600px){body.provider-order-app .po-food-context-body{grid-template-columns:minmax(0,1fr)}body.provider-order-app .po-heading-actions{gap:6px}body.provider-order-app .po-heading-actions .po-text-size{gap:4px}}
@media(max-width:460px){body.provider-order-app .po-food-copy{grid-template-columns:minmax(0,1fr)}body.provider-order-app .food .po-tile-price{grid-column:1;grid-row:auto}body.provider-order-app .food .po-tile-package{grid-row:auto}}

/* Separate custom service form; catalog selection remains its own order. */
body.provider-order-app .po-custom-launch{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body.provider-order-app .po-custom-launch :is(button,small){font-size:var(--po-small-size)}
body.provider-order-app .po-custom-launch button{min-height:44px}
body.provider-order-app .po-custom-order{max-width:700px;min-width:0;background:#fff;border:1px solid #d7dfe9;border-radius:14px;padding:20px}
body.provider-order-app .po-custom-order h2{font:400 calc(var(--po-text-size) + 6px)/1.2 DiataSeasons,Georgia,serif;color:#20307f;margin:0 0 14px}
body.provider-order-app .po-custom-order label{display:block;margin:14px 0 6px}
body.provider-order-app .po-custom-order input{display:block;width:100%;min-width:0;padding:12px}
body.provider-order-app .po-custom-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
body.provider-order-app .po-custom-actions>*{min-width:0;white-space:normal}

/* Food context stays available in one disclosure without duplicate chrome. */
body.provider-order-app .po-food-context summary{min-height:44px;padding:8px 14px;cursor:pointer;font-size:var(--po-small-size);line-height:1.4}
body.provider-order-app .po-food-context summary strong{font-weight:500}
body.provider-order-app .po-food-context summary span{color:var(--po-muted);margin-left:10px}
body.provider-order-app .po-food-patient{gap:6px 14px;padding:8px 12px}
body.provider-order-app .po-food-patient .po-patient-button{min-height:56px;min-width:0!important;max-width:none!important;padding:0;flex:1 1 240px;width:auto}
body.provider-order-app .po-food-patient .po-compact-patient-context{flex:1 1 240px;gap:4px 12px;font-size:var(--po-small-size)}
body.provider-order-app .provider-ordering .po-context-actions button,body.provider-order-app .provider-ordering .po-heading-actions .po-back{font-size:max(14px,var(--po-small-size))!important;min-height:44px;padding:8px 12px}
@media(max-width:600px){body.provider-order-app .po-food-patient .po-patient-button{flex-basis:100%;min-height:52px}body.provider-order-app .po-food-patient .po-compact-patient-context{flex-basis:100%}body.provider-order-app .po-food-context summary span{display:block;margin-left:0}}

body.provider-order-app :is(.po-brand-name,.po-avatar,.po-text-size button){white-space:nowrap;overflow-wrap:normal;word-break:normal;flex-shrink:0}
body.provider-order-app .po-avatar{width:max(44px,2.6ch);flex-basis:max(44px,2.6ch)}
body.provider-order-app .po-text-size button{min-width:44px;width:max-content}
@media(max-width:460px){body.provider-order-app .po-brand-lockup{flex-wrap:wrap;min-width:0}body.provider-order-app .po-brand-lockup>div{border-left:0;padding-left:0}body.provider-order-app .po-reminders{display:block}body.provider-order-app .po-reminders>.po-eyebrow{display:block;margin-bottom:8px}body.provider-order-app .po-reminder-list{display:block;width:100%;min-width:0}body.provider-order-app .po-reminder-chip{display:block;width:100%;max-width:none;min-width:0;text-align:left}body.provider-order-app .po-reminder-chip :is(strong,small){display:block;word-break:normal;overflow-wrap:break-word}}

/* Provider home launcher: shared staff-card hierarchy. */
body .provider-dashboard .provider-tile,
body .provider-dashboard .provider-primary .provider-tile,
body .provider-dashboard .provider-tool-section .provider-tile{grid-template-columns:42px minmax(0,1fr) 18px}
body .provider-dashboard .provider-launch-arrow{grid-column:3;grid-row:1/span 3;align-self:center;justify-self:end;color:#20307f;font-size:20px;line-height:1}
body .provider-dashboard .provider-topnav button{min-height:44px;padding:10px 16px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;color:#20307f;font:600 14px/1.35 Inter,system-ui,sans-serif;cursor:pointer}
body .provider-dashboard .provider-primary .provider-tool-context:empty{display:none}
@media(max-width:600px){body .provider-dashboard .provider-tile,body .provider-dashboard .provider-primary .provider-tile,body .provider-dashboard .provider-tool-section .provider-tile{column-gap:10px}}

/* The final served theme honors the same text-size setting as New Order. */
body .provider-dashboard{font:400 var(--provider-text-size,18px)/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body .provider-dashboard .provider-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;text-align:left}
#main .provider-dashboard .provider-heading h1{margin:8px 0;font-size:1.9em}
body .provider-dashboard .provider-heading p{font-size:.85em}
#main .provider-dashboard .provider-section-heading h2{font-size:1.1em}
body .provider-dashboard .provider-section-heading p{font-size:.75em}
body .provider-dashboard :is(.provider-primary,.provider-tool-section .station-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,16em),1fr))}
body .provider-dashboard .provider-tool-section[data-provider-group="connections"]{margin-top:0;margin-bottom:26px}
body .provider-dashboard [data-provider-group="connections"] .station-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,11em),1fr))}
body .provider-dashboard .provider-tile .station-name{font-size:1em}
body .provider-dashboard .provider-tile p,body .provider-dashboard .provider-primary .provider-tile p{font-size:.8em;overflow-wrap:anywhere}
body .provider-dashboard .provider-launch-arrow{font-size:1.2em}
body .provider-dashboard [data-provider-group="connections"] .provider-tile{min-height:78px;padding:13px}
body .provider-dashboard [data-provider-group="connections"] .provider-tile p{display:none}
body .provider-dashboard [data-provider-group="connections"] .station-name{font-size:.88em}
body .provider-dashboard .provider-walkthrough{display:inline-flex;align-items:center;min-height:44px;margin-top:10px;padding:8px 12px;border:1px solid var(--provider-line);border-radius:9px;color:var(--provider-navy);font:600 .8em/1.4 Inter,sans-serif;text-decoration:none}
body .provider-dashboard .provider-walkthrough:hover{background:var(--provider-soft)}
body .provider-dashboard .provider-tool-context,.provider-sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.provider-text-size{flex:0 0 auto;font:500 14px/1.4 Inter,sans-serif;color:var(--provider-navy)}
.provider-text-size>label{display:block;margin:0 0 6px}
.provider-text-size>div{display:flex;align-items:center;gap:6px}
.provider-text-size button,.provider-text-size input{width:46px;min-height:44px;margin:0;padding:8px 4px;border:1px solid var(--provider-line);border-radius:9px;background:#fff;color:var(--provider-navy);font:600 16px/1.3 Inter,sans-serif;text-align:center}
.provider-text-size input{width:56px;-moz-appearance:textfield}
.provider-text-size input::-webkit-inner-spin-button{appearance:none;margin:0}
.provider-text-size button{cursor:pointer}
.provider-text-size button:disabled{opacity:.45;cursor:default}
@media(max-width:600px){body .provider-dashboard .provider-heading{flex-direction:column;gap:14px}body .provider-dashboard :is(.provider-primary,.provider-tool-section .station-grid),body .provider-dashboard [data-provider-group="connections"] .station-grid{grid-template-columns:1fr}body .provider-dashboard [data-provider-group="connections"] .station-grid{gap:7px}body .provider-dashboard [data-provider-group="connections"] .provider-tile{min-height:64px}}

/* Provider home keeps readable type without scaling its gutters or controls. */
body .provider-dashboard{font-size:var(--provider-text-size,16px);max-width:944px}
body .provider-dashboard .provider-heading{gap:20px;padding-bottom:8px}
body .provider-dashboard .provider-pin-entry{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;margin:12px 10px 0 0;border-radius:10px;background:#20307f;color:#fff;text-decoration:none;font:600 14px/1.35 Inter,system-ui,sans-serif}
body .provider-dashboard .provider-walkthrough{font-size:14px}
body .provider-dashboard .provider-tile{padding:20px!important;min-width:0}
body .provider-dashboard .provider-tile :is(h3,.station-name){font-size:clamp(16px,var(--provider-text-size,16px),24px)!important;line-height:1.35;overflow-wrap:anywhere}
body .provider-dashboard .provider-tile p{font-size:clamp(14px,calc(var(--provider-text-size,16px) - 2px),22px)!important;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:600px){body.provider-app .main{padding:24px 16px 40px}body .provider-dashboard .station-grid{grid-template-columns:minmax(0,1fr)!important}body .provider-dashboard .provider-tile{padding:18px!important}}

/* The cart uses the same bounded display preference and top-left return. */
body.provider-order-app .provider-ordering .po-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;align-items:center}
body.provider-order-app .provider-ordering .po-heading>.po-back{grid-column:1;grid-row:1;justify-self:start;min-height:44px;font-size:14px!important;padding:10px 14px}
body.provider-order-app .provider-ordering .po-heading>.po-heading-actions{grid-column:2;grid-row:1;min-width:0}
body.provider-order-app .provider-ordering .po-heading>.po-brand-lockup{grid-column:1/-1;grid-row:2;min-width:0}
body.provider-order-app .provider-ordering .po-heading>.po-workspace-nav{grid-column:1/-1;grid-row:3;min-width:0;flex-wrap:wrap}
@media(max-width:600px){body.provider-order-app .provider-ordering .po-heading{grid-template-columns:minmax(0,1fr)}body.provider-order-app .provider-ordering .po-heading>.po-heading-actions{grid-column:1;grid-row:2;justify-content:flex-start}body.provider-order-app .provider-ordering .po-heading>.po-brand-lockup{grid-row:3}body.provider-order-app .provider-ordering .po-heading>.po-workspace-nav{grid-row:4}}

html body.provider-order-app main.provider-ordering{padding:16px 24px}
html body.provider-order-app .po-heading>.po-back{align-self:start}
@media(max-width:600px){html body.provider-order-app main.provider-ordering{padding:16px}}

/* Decision counts are distinct from older-copy/printing work and unknown is not zero. */
body .provider-dashboard .provider-attention-count{grid-column:2;display:block;margin-top:10px;font:600 clamp(14px,calc(var(--provider-text-size,16px) - 1px),23px)/1.4 Inter,system-ui,sans-serif;color:#20307f;overflow-wrap:anywhere}
body .provider-dashboard .provider-tile.needs-attention{background:#25317b;border-color:#25317b;color:#fff}
body .provider-dashboard .provider-tile.needs-attention :is(.station-name,p,.provider-attention-count,.provider-launch-arrow){color:#fff}
body .provider-dashboard .provider-tile.needs-attention .station-icon{background:#fff;color:#25317b}
body .provider-dashboard .provider-tile.needs-attention:hover{background:#1c266b}
body .provider-dashboard .provider-tool-section,
body .provider-dashboard .provider-tool-section[data-provider-group="connections"]{margin-top:32px}
body .provider-dashboard .provider-section-heading{gap:12px;padding-block:4px 2px;margin-bottom:16px}
body .provider-dashboard .provider-section-heading p{margin:0;line-height:1.5}
body .provider-dashboard .provider-tile{align-content:start;row-gap:2px}
body .provider-dashboard .provider-tile:active{background:#e5e9f5;border-color:#20307f;box-shadow:inset 0 2px 5px #17234226;transform:translateY(1px)}
body .provider-dashboard .provider-tile.needs-attention:active{background:#17215e}
@media(prefers-reduced-motion:reduce){body .provider-dashboard .provider-tile:active{transform:none}}
@media(max-width:600px){body .provider-dashboard .provider-section-heading{display:block;padding-top:8px}body .provider-dashboard .provider-section-heading p{margin-top:8px}body .provider-dashboard .provider-tool-section{margin-top:28px}}
