:root {
  --ink: #1d2928;
  --muted: #697572;
  --green: #b8ed74;
  --green-dark: #274b39;
  --paper: #f4fbfa;
  --line: #e7eeeb;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; font-family: Manrope, sans-serif; font-size: 20px; line-height: .9; font-weight: 800; letter-spacing: -.9px; }
.brand-name { color: var(--ink); font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.7px; }
.brand > span:last-child > span { color: #83c853; }
.brand small { display: block; padding-top: 5px; font: 700 7px "DM Sans", sans-serif; letter-spacing: 2px; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 11px; background: #dbf4c4; }
.brand-mark svg { width: 22px; fill: #345f3e; }
.search { display: flex; align-items: center; flex: 1; max-width: 320px; gap: 9px; padding: 10px 12px; border-radius: 7px; background: #f5f8f6; }
.search svg { width: 16px; flex: 0 0 auto; fill: none; stroke: #64736b; stroke-width: 1.7; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.search input::placeholder { color: #99a29e; }
.search kbd { padding: 3px 5px; border: 1px solid #e2e9e5; border-radius: 4px; color: #9ba49f; font: 9px "DM Sans", sans-serif; white-space: nowrap; }

main { overflow: hidden; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  align-items: center;
  max-width: 1320px;
  min-height: 510px;
  margin: 28px auto 0;
  padding: 45px 6.2%;
  overflow: hidden;
  border-radius: 14px;
  background: #c9efda;
}
.hero::before { position: absolute; right: 37%; bottom: -240px; width: 480px; height: 480px; border: 1px solid rgba(56,108,76,.14); border-radius: 50%; content: ""; }
 .section-kicker { color: #54805e; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(52px, 6.3vw, 82px); font-weight: 800; letter-spacing: -.075em; line-height: .99; }
.hero h1 span { color: #386745; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 43px; padding: 0 17px; border-radius: 5px; font-size: 10px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: #fff; background: #263d31; }
.button-dark:hover { background: #355844; }
.section-kicker { margin-bottom: 8px; font-size: 9px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { overflow: hidden; border: 1px solid #edf0ed; border-radius: 8px; background: #fff; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(36,64,44,.08); }
.product-card[hidden] { display: none; }
.price { font-size: 12px; font-weight: 800; }
.price del { margin-left: 5px; color: #9ba29d; font-size: 9px; font-weight: 400; }
.toast { position: fixed; z-index: 5; right: 22px; bottom: 22px; padding: 13px 18px; border-radius: 6px; color: #fff; background: #29493c; box-shadow: 0 8px 24px rgba(0,0,0,.16); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.message-list { max-width: 1160px; margin: 14px auto; padding: 0 12px; }
.message { margin: 0 0 8px; padding: 10px 13px; border-radius: 5px; font-size: 12px; }
.message-success { color: #315c37; background: #edf7e6; }
.message-error { color: #8b3939; background: #fbebeb; }
.message-info { color: #3d5d6b; background: #eaf3f6; }
.commerce-page { min-height: 100vh; background: #f8faf8; }
.commerce-header { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 max(5.5vw, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.back-link { color: #55705b; font-size: 11px; font-weight: 700; }
.commerce-main { max-width: 1160px; min-height: calc(100vh - 160px); margin: 0 auto; padding: 53px 12px 70px; }
.commerce-title { margin: 0 0 28px; font: 700 clamp(32px, 4vw, 46px) Manrope, sans-serif; letter-spacing: -.06em; }
.commerce-title em { color: #60915b; font-family: var(--serif); font-weight: 400; }
 .checkout-form-panel, .order-summary { border: 1px solid #e9efea; border-radius: 8px; background: #fff; }
.quantity-form { display: flex; align-items: center; gap: 6px; }
.quantity-form input { width: 55px; height: 29px; padding: 4px 6px; border: 1px solid #dce6dd; border-radius: 4px; }
.small-button { padding: 5px 8px; border: 0; border-radius: 4px; background: #eef5eb; color: #3e6947; font-size: 9px; font-weight: 700; cursor: pointer; }
.order-summary { position: sticky; top: 18px; padding: 20px; }
.order-summary h2 { margin: 0 0 18px; font-size: 15px; }
.summary-row, .summary-total { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 12px 0; color: #6e7972; font-size: 10px; }
.summary-row strong, .summary-total strong { color: var(--ink); }
.summary-row > span:last-child { text-align: right; }
.summary-total { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 700; }
.payment-note { margin: 15px 0; color: #859088; font-size: 9px; line-height: 1.6; }
.checkout-button { width: 100%; border: 0; cursor: pointer; }
.empty-cart { padding: 62px 20px; border: 1px solid #e9efea; border-radius: 8px; background: #fff; text-align: center; }
.empty-cart > span { display: grid; width: 48px; height: 48px; margin: 0 auto 15px; place-items: center; border-radius: 50%; color: #548052; background: #edf6e8; font-size: 25px; }
.empty-cart h2 { margin-bottom: 8px; font-size: 19px; }
.empty-cart p { margin-bottom: 20px; color: #829087; font-size: 12px; }
.commerce-footer { padding: 19px; border-top: 1px solid var(--line); color: #8a958e; background: #fff; font-size: 10px; text-align: center; }
.checkout-layout { grid-template-columns: minmax(0, 1.3fr) minmax(260px, .8fr); }
.checkout-form-panel { padding: 22px; }
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field:has(textarea), .payment-choice, .checkout-form > button { grid-column: 1 / -1; }
.form-field label, .payment-choice legend { color: #47584c; font-size: 10px; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; padding: 10px; border: 1px solid #dfe8e1; border-radius: 5px; background: #fff; font: 11px "DM Sans", sans-serif; }
.form-field input:focus, .form-field textarea:focus { border-color: #6c9b63; outline: 2px solid #e5f1de; }
.payment-choice { margin: 2px 0 0; padding: 13px; border: 1px solid #e5ece6; border-radius: 5px; }
.payment-choice label { display: block; margin-top: 9px; font-size: 11px; }
.payment-choice p { margin: 7px 0 0; color: #88938c; font-size: 9px; }
.field-error, .form-errors { color: #a33e3e; font-size: 10px; }
.form-errors { grid-column: 1 / -1; }
.checkout-line { font-size: 9px; }
.checkout-line b { color: #8b968e; }
.confirmation-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 16px; place-items: center; border-radius: 50%; color: #3d7047; background: #e6f4dd; font-size: 24px; }
.confirmation-copy { margin: -13px 0 24px; color: #68766c; font-size: 12px; }
.confirmation-summary { position: static; max-width: 520px; margin: 0 auto 22px; text-align: left; }
.confirmation-summary .summary-row:first-child strong { max-width: 65%; overflow-wrap: anywhere; text-align: right; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (min-width: 1440px) {
  .hero { margin-top: 36px; }
}
@media (max-width: 1000px) {
  .hero { margin-right: 20px; margin-left: 20px; padding-right: 4%; padding-left: 5%; }
}
@media (max-width: 700px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .search { order: 3; position: absolute; top: 75px; left: 18px; right: 18px; max-width: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin: 0 12px; padding: 37px 25px 0; }
  .hero h1 { font-size: clamp(47px, 13vw, 68px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .message-list { margin-right: 18px; margin-left: 18px; }
  .commerce-header { min-height: 66px; padding: 0 18px; }
  .commerce-main { min-height: calc(100vh - 150px); padding: 38px 18px 50px; }
   .checkout-layout { grid-template-columns: 1fr; gap: 14px; }
  .order-summary { position: static; padding: 17px; }
  .checkout-form-panel { padding: 15px; }
  .checkout-form { grid-template-columns: 1fr; gap: 12px; }
  .form-field:has(textarea), .payment-choice, .checkout-form > button { grid-column: auto; }
  .commerce-footer { padding: 15px 20px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

body { font-size: 16px; }
.brand { font-size: 21px; }
.brand small { font-size: 9px; }
.search input { font-size: 13px; }
.search kbd { font-size: 11px; }

.section-kicker { font-size: 11px; }
.button { font-size: 13px; }
.price { font-size: 15px; }
.price del { font-size: 12px; }
.message { font-size: 14px; }
.back-link { font-size: 13px; }
.small-button { font-size: 12px; }
.order-summary h2 { font-size: 17px; }
.summary-row,
.summary-total { font-size: 13px; }
.payment-note { font-size: 12px; }
.empty-cart h2 { font-size: 22px; }
.empty-cart p { font-size: 15px; }
.commerce-footer { font-size: 12px; }
.form-field label,
.payment-choice legend { font-size: 13px; }
.form-field input,
.form-field textarea { font-size: 14px; }
.payment-choice label { font-size: 13px; }
.payment-choice p { font-size: 12px; }
.field-error,
.form-errors,
.checkout-line { font-size: 12px; }
.confirmation-copy { font-size: 15px; }
.pharmacy-main { padding-top: 45px; }
.pharmacy-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.pharmacy-heading .commerce-title { margin-bottom: 8px; }
.pharmacy-intro { margin: 0; color: #68766c; font-size: 13px; line-height: 1.6; }
.pharmacy-panel { overflow: hidden; border: 1px solid #e9efea; border-radius: 8px; background: #fff; }
.pharmacy-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #edf1ee; }
.pharmacy-panel-heading h2 { margin: 0; font-size: 15px; }
.pharmacy-panel-heading > span { color: #738078; font-size: 12px; }
.pharmacy-table-wrap { overflow-x: auto; }
.pharmacy-table { width: 100%; border-collapse: collapse; text-align: left; }
.pharmacy-table th, .pharmacy-table td { padding: 15px 18px; border-bottom: 1px solid #edf1ee; vertical-align: top; font-size: 12px; }
.pharmacy-table th { color: #77827b; background: #f8faf8; font-size: 10px; font-weight: 700; }
.pharmacy-table tbody tr:last-child td { border-bottom: 0; }
.pharmacy-table td strong, .pharmacy-table td small { display: block; }
.pharmacy-table td strong { margin-bottom: 4px; font-size: 13px; }
.pharmacy-table td small { margin-top: 5px; color: #7f8b83; font-size: 11px; }
.pharmacy-table td a:not(.small-button) { overflow-wrap: anywhere; }
.pharmacy-empty { border: 0; border-radius: 0; }
.pharmacy-form-main { max-width: 760px; }
.pharmacy-form-main .commerce-title { margin-bottom: 8px; }
.pharmacy-form-panel { margin-top: 24px; padding: 24px; }
.pharmacy-address-field { grid-column: 1 / -1; }
.pharmacy-form-section-title { grid-column: 1 / -1; margin: 10px 0 -10px; padding-top: 18px; border-top: 1px solid #edf1ee; font-size: 15px; }
.pharmacy-form-panel .pharmacy-intro { grid-column: 1 / -1; }
.pharmacy-form-panel .form-field small { color: #7f8b83; font-size: 11px; }
.pharmacy-form-actions { display: flex; align-items: center; gap: 18px; grid-column: 1 / -1; margin-top: 4px; }
.pharmacy-delete-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid #edf1ee; }
.staff-nav { display: flex; align-items: center; gap: 8px; max-width: 1160px; margin: 0 auto; padding: 12px; border-bottom: 1px solid var(--line); }
.staff-nav a { padding: 9px 12px; border-radius: 5px; color: #5f7065; font-size: 12px; font-weight: 700; }
.staff-nav a[aria-current="page"] { color: #315c37; background: #edf7e6; }
.staff-nav a:last-child { margin-left: auto; }
.staff-nav form { margin-left: auto; }
.staff-nav form button { padding: 9px 12px; border: 0; border-radius: 5px; color: #8b3939; background: #fbebeb; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.staff-main { padding-top: 38px; }
.staff-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 25px; }
.staff-stat { display: flex; flex-direction: column; min-height: 135px; padding: 17px; border: 1px solid #e9efea; border-radius: 8px; background: #fff; }
.staff-stat > span { color: #68766c; font-size: 12px; font-weight: 600; }
.staff-stat strong { margin: 8px 0 3px; color: #29493c; font: 700 30px Manrope, sans-serif; }
.staff-stat small { margin-top: auto; color: #829088; font-size: 11px; line-height: 1.4; }
.staff-stat:hover { border-color: #b8d6b0; box-shadow: 0 5px 18px rgba(36,64,44,.06); }
.staff-recent-panel .pharmacy-panel-heading > a { color: #3e714a; font-size: 12px; font-weight: 700; }
.staff-table td { min-width: 110px; }
.order-status { display: inline-flex; padding: 5px 8px; border-radius: 20px; color: #506357; background: #eef2ef; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-placed { color: #795e19; background: #fff4d3; }
.status-processing { color: #315e82; background: #e6f2fb; }
.status-completed { color: #315c37; background: #edf7e6; }
.status-cancelled { color: #8b3939; background: #fbebeb; }
.status-pending { color: #795e19; background: #fff4d3; }
.status-approved { color: #315c37; background: #edf7e6; }
.status-rejected { color: #8b3939; background: #fbebeb; }
.pharmacy-actions form { display: inline-flex; gap: 5px; margin: 0 6px 6px 0; }
.pharmacy-reject-button { color: #8b3939; background: #fbebeb; }
.staff-filters { display: flex; align-items: end; gap: 12px; margin: 0 0 18px; padding: 15px; border: 1px solid #e9efea; border-radius: 8px; background: #fff; }
.staff-filters label { display: grid; gap: 6px; min-width: 190px; color: #526258; font-size: 11px; font-weight: 700; }
.staff-filters input, .staff-filters select, .status-update-form select, .inventory-update-form input[type="number"] { min-height: 36px; padding: 7px 9px; border: 1px solid #dfe7e1; border-radius: 5px; color: var(--ink); background: #fff; font: inherit; }
.staff-filters label:first-child { flex: 1; }
.staff-filters .back-link { padding-bottom: 9px; }
.status-update-form { display: grid; gap: 6px; min-width: 115px; margin-top: 9px; }
.status-update-form select { width: 100%; font-size: 11px; }
.staff-order-item { display: block; margin: 0 0 5px; }
.staff-pagination { display: flex; justify-content: center; align-items: center; gap: 15px; padding: 16px; color: #68766c; font-size: 12px; }
.inventory-table td[colspan="3"] { min-width: 290px; }
.inventory-update-form { display: flex; align-items: center; gap: 16px; }
.inventory-update-form input[type="number"] { width: 95px; }
.inventory-active { display: flex; align-items: center; gap: 7px; color: #526258; font-size: 12px; white-space: nowrap; }
.staff-login-page { display: flex; flex-direction: column; }
.staff-login-main { display: grid; flex: 1; place-items: center; padding: 55px 18px; background: radial-gradient(ellipse at 50% 0, #eaf6e3 0, #f8faf8 58%); }
.staff-login-card { width: min(100%, 450px); padding: 35px; border: 1px solid #e4ece5; border-radius: 12px; background: #fff; box-shadow: 0 18px 55px rgba(37,68,47,.08); }
.staff-login-icon { display: grid; width: 43px; height: 43px; margin-bottom: 25px; place-items: center; border-radius: 12px; color: #345f3e; background: #eaf6df; font-size: 25px; }
.staff-login-card .commerce-title { margin-bottom: 9px; font-size: 37px; }
.staff-login-copy { margin-bottom: 22px; color: #68766c; font-size: 13px; line-height: 1.6; }
.staff-login-form { display: grid; gap: 16px; }
.staff-login-form .form-field { display: grid; gap: 7px; }
.staff-login-form .form-field label { color: #405248; font-size: 12px; font-weight: 700; }
.staff-login-form .form-field input { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #dfe7e1; border-radius: 5px; color: var(--ink); background: #fff; }
.staff-login-form .form-field input:focus { outline: 2px solid #b8d9a9; outline-offset: 1px; }
.staff-login-form > button { width: 100%; margin-top: 3px; }
.staff-login-note { margin: 20px 0 0; color: #829088; font-size: 11px; text-align: center; }
.staff-login-card .message-list { margin: 0; padding: 0; }
.staff-login-page .commerce-footer a { color: #3e714a; font-weight: 700; }
.location-search-form { display: grid; gap: 9px; max-width: 760px; }
.location-search-form > label, .catalogue-filter label { color: #405248; font-size: 12px; font-weight: 700; }
 .catalogue-filter input, .catalogue-filter select { min-width: 0; min-height: 43px; padding: 9px 11px; border: 1px solid #dfe7e1; border-radius: 5px; color: var(--ink); background: #fff; }
.location-search-form button:disabled { cursor: wait; opacity: .65; }
.catalogue-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.catalogue-filter input { flex: 1 1 230px; }
.catalogue-filter select { flex: 0 1 190px; }

@media (max-width: 700px) {
  .catalogue-filter { align-items: stretch; flex-direction: column; }
  .catalogue-filter label { margin-top: 4px; }
  .catalogue-filter input, .catalogue-filter select, .catalogue-filter .button { width: 100%; }
  .staff-nav { gap: 2px; overflow-x: auto; padding: 8px 10px; }
    .staff-nav a { padding: 9px 8px; font-size: 11px; white-space: nowrap; }
    .staff-nav form { flex: 0 0 auto; }
    .staff-nav form button { padding: 9px 8px; font-size: 11px; white-space: nowrap; }
    .staff-main { padding-top: 28px; }
    .staff-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .staff-stat { min-height: 118px; padding: 13px; }
    .staff-stat strong { font-size: 25px; }
    .staff-filters { flex-wrap: wrap; align-items: end; gap: 9px; }
    .staff-filters label { min-width: 0; flex: 1 1 100%; }
    .staff-filters label:nth-child(2) { flex-basis: 52%; }
    .staff-table td { min-width: 120px; }
    .inventory-update-form { flex-wrap: wrap; gap: 10px; }
    .staff-login-main { padding: 35px 16px; }
    .staff-login-card { padding: 25px 20px; }
    .staff-login-card .commerce-title { font-size: 32px; }
  }
  .pharmacy-heading { align-items: flex-start; flex-direction: column; }
  .pharmacy-heading > .button { width: 100%; }
  .pharmacy-table { min-width: 700px; }
  .pharmacy-form-panel { padding: 18px; }

/* SwiftGo marketplace refresh */
:root { --ink: #20312a; --muted: #68766d; --green-dark: #244b36; --line: #dfe7df; --paper: #f4f8f3; }
body { color: var(--ink); font-family: "DM Sans", Arial, sans-serif; }
.brand-mark { border-radius: 50%; }
.search { max-width: 420px; border: 1px solid #e7eee8; border-radius: 24px; background: #f8faf8; }
.hero { max-width: 1360px; min-height: 455px; margin: 18px auto 0; padding: 45px 5.5%; border-radius: 12px; background: #e9f5eb; }
.hero h1 { max-width: 570px; font-size: clamp(42px, 5.1vw, 68px); line-height: 1.06; letter-spacing: -.06em; }
.button { min-height: 46px; padding: 0 20px; border-radius: 7px; font-size: 13px; }
.button-dark { background: var(--green-dark); }
.location-search-form { max-width: none; }
 .catalogue-filter input, .catalogue-filter select { min-height: 46px; border-radius: 7px; font-size: 14px; }
.catalogue-filter { gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.catalogue-filter label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.catalogue-filter input { flex: 1 1 300px; }
.catalogue-filter select { flex: 0 1 190px; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { display: flex; min-width: 0; flex-direction: column; border-color: var(--line); border-radius: 9px; }
.price { display: block; margin-bottom: 10px; color: #173f30; font-size: 16px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #91bd83; outline-offset: 2px; }
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .search { top: 68px; left: 16px; right: 16px; padding: 9px 12px; }
  .hero { margin: 0 12px; padding: 31px 22px 0; }
  .hero h1 { font-size: clamp(40px, 11vw, 54px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}
@media (max-width: 375px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Pharmacy workspace visual system */
.commerce-page:has(.pharmacy-nav) { min-height: 100vh; color: #203a32; background: #f5f9f6; }
.commerce-page:has(.pharmacy-nav) .commerce-header { min-height: 76px; padding: 0 max(4vw, calc((100vw - 1360px)/2)); border-bottom: 1px solid #e7eee9; }
.workspace-brand-caption { align-self: center; margin: 19px 0 0 -190px; color: #698277; font-size: 12px; pointer-events: none; }
.commerce-page:has(.pharmacy-nav) .staff-nav.pharmacy-nav { max-width: none; min-height: 66px; gap: clamp(12px, 2vw, 30px); padding: 0 max(4vw, calc((100vw - 1360px)/2)); border-bottom: 1px solid #e3ece5; background: #f2f8f3; }
.pharmacy-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 12px; color: #42695a; font-size: 14px; white-space: nowrap; }
.pharmacy-nav a[aria-current="page"] { position: relative; color: #245d3c; background: #e3f3dc; }
.pharmacy-nav a[aria-current="page"]::after { position: absolute; bottom: -11px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: #60a65b; content: ""; }
.workspace-nav-icon { color: #3c7657; font-size: 20px; line-height: 1; }
.pharmacy-nav form { margin-left: auto; }
.pharmacy-nav form button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 19px; border-radius: 13px; color: #bd3838; background: #fff0ef; font-size: 14px; }
.message-dismiss { margin-left: auto; border: 0; color: inherit; background: none; font-size: 21px; cursor: pointer; }

/* Customer storefront: branch search first, branch catalogue after selection */
.has-selected-branch .message-list .message-success { display: none; }
@media (max-width: 850px) {
  .commerce-page:has(.pharmacy-nav) .commerce-header { padding: 0 20px; }
  .commerce-page:has(.pharmacy-nav) .staff-nav.pharmacy-nav { gap: 6px; overflow-x: auto; padding: 8px 14px; }
  .pharmacy-nav a { min-height: 40px; padding: 0 10px; font-size: 12px; }
  .pharmacy-nav form { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  .workspace-brand-caption { display: none; }
  .commerce-page:has(.pharmacy-nav) .commerce-header { min-height: 64px; padding: 0 14px; }
}

/* Responsive dashboard sidebar shared by pharmacy and staff workspaces. */
.commerce-page.has-workspace-sidebar { overflow-x: hidden; }
.commerce-page.has-workspace-sidebar .commerce-header { justify-content: flex-start; gap: 16px; }
.commerce-page.has-workspace-sidebar .commerce-header > .back-link { margin-left: auto; }
.staff-nav a:focus-visible,
.staff-nav form button:focus-visible { outline: 3px solid #90c994; outline-offset: 2px; }
.commerce-page.has-workspace-sidebar .staff-nav[data-workspace-sidebar] { position: fixed; z-index: 42; top: 76px; bottom: 0; left: 0; display: flex; width: 258px; max-width: none; min-height: 0; flex-direction: column; align-items: stretch; gap: 8px; overflow-x: hidden; overflow-y: auto; padding: 15px; border: 0; border-right: 1px solid #2b6048; border-radius: 0; color: #fff; background: #173f2d; box-shadow: 4px 0 18px rgba(18, 55, 37, .12); }
.workspace-sidebar-brand { display: flex; min-height: 52px; align-items: center; gap: 11px; margin: 0 0 11px; padding: 0 5px 13px; border-bottom: 1px solid rgba(255,255,255,.17); color: #fff !important; font-size: 15px !important; font-weight: 800 !important; }
.workspace-sidebar-brand-mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: #173f2d; background: #dff4d0; font-size: 30px; font-weight: 700; line-height: 1; }
.workspace-sidebar-label { overflow: hidden; white-space: nowrap; }
.commerce-page.has-workspace-sidebar .staff-nav[data-workspace-sidebar] > a:not(.workspace-sidebar-brand) { display: flex; min-width: 0; min-height: 46px; align-items: center; gap: 13px; overflow: hidden; padding: 0 10px; border-radius: 10px; color: #e8f1eb; font-size: 14px; font-weight: 600; text-decoration: none; }
.commerce-page.has-workspace-sidebar .staff-nav[data-workspace-sidebar] > a:not(.workspace-sidebar-brand):hover { color: #fff; background: rgba(255,255,255,.1); }
.commerce-page.has-workspace-sidebar .staff-nav[data-workspace-sidebar] > a[aria-current="page"] { color: #173f2d; background: #eaf5e3; }
.commerce-page.has-workspace-sidebar .staff-nav[data-workspace-sidebar] > a[aria-current="page"]::after { display: none; }
.commerce-page.has-workspace-sidebar .workspace-nav-icon { display: inline-grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; color: inherit; font-size: 19px; line-height: 1; }
.commerce-page.has-workspace-sidebar .staff-nav[data-workspace-sidebar] form { width: 100%; margin: auto 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.17); }
.commerce-page.has-workspace-sidebar .staff-nav[data-workspace-sidebar] form button { display: flex; width: 100%; min-height: 46px; align-items: center; gap: 13px; padding: 0 10px; border: 0; border-radius: 10px; color: #fff; background: transparent; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.commerce-page.has-workspace-sidebar .staff-nav[data-workspace-sidebar] form button:hover { background: rgba(255,255,255,.1); }
.commerce-page.has-workspace-sidebar .commerce-main { width: auto; max-width: none; margin-right: 3vw; margin-left: calc(258px + 3vw); }
.commerce-page.has-workspace-sidebar .commerce-footer { margin-left: 258px; }
@media (max-width: 850px) {
  .commerce-page.has-workspace-sidebar { overflow-x: hidden; }
  .commerce-page.has-workspace-sidebar .commerce-header { position: relative; z-index: 51; justify-content: flex-start; gap: 8px; }
  .commerce-page.has-workspace-sidebar .staff-nav[data-workspace-sidebar] { position: relative; z-index: 1; top: auto; bottom: auto; left: auto; width: auto; max-width: none; min-height: 0; margin: 0 14px 18px; padding: 14px; border: 0; border-radius: 14px; box-shadow: 0 6px 20px rgba(18,55,37,.1); }
  .commerce-page.has-workspace-sidebar .workspace-sidebar-brand { margin-bottom: 8px; }
  .commerce-page.has-workspace-sidebar .commerce-main,
  .commerce-page.has-workspace-sidebar .commerce-footer { width: auto; margin: 0; }
}

/* Pharmacy inventory page */
 .inventory-search { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #dfe9e9; border-radius: 9px; color: #526f84; background: #fff; font: inherit; font-size: 13px; }
.inventory-search { display: flex; align-items: center; gap: 10px; }
.inventory-search > span:not(.visually-hidden) { color: #6d8ca0; font-size: 22px; }
.inventory-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #233f54; background: transparent; font: inherit; font-size: 13px; }
.inventory-search input::placeholder { color: #8ba0b1; }
.inventory-table { width: 100%; min-width: 980px; border-collapse: collapse; color: #536f82; font-size: 12px; }
.inventory-table thead { background: #f3f8f7; }
.inventory-table th { padding: 15px 13px; color: #547084; font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.inventory-table td { height: 82px; padding: 11px 13px; border-top: 1px solid #e7eff1; white-space: nowrap; }
@media (max-width: 1050px) { .inventory-search { grid-column: 1 / -1; } }
@media (max-width: 700px) { .inventory-search { grid-column: auto; } }
