/* HDL design system, layered over Bootstrap 5.3. Festival themes only re-set the colour tokens below. */

:root {
  --font-site: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  /* Colour */
  --field: #016939;
  --field-rgb: 1, 105, 57;
  --deep: #014d2a;
  --deep-rgb: 1, 77, 42;
  --ink: #051815;
  --ink-rgb: 5, 24, 21;
  --turmeric: #f6b62e;
  --turmeric-hover: #ffc94f;
  --turmeric-active: #e5a51d;
  --hero-soft: #bfe0cb;
  --wash: #f2f6f1;
  --soft: #e0f3e5;
  --line: #d5e0d7;
  --muted: #4d6058;

  /* One type scale for the website and both panels */
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --fs-2xl: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);

  /* Page column: full-bleed bands, content held to 1240px with a real margin on every screen */
  --gut: clamp(1.25rem, 5vw, 4rem);
  --page: 1240px;
  --pad: max(var(--gut), calc((100% - var(--page)) / 2));

  /* Shape and motion */
  --r-sm: .375rem;
  --r-md: .5rem;
  --r-lg: .875rem;
  --lift: 0 .75rem 1.75rem rgba(var(--ink-rgb), .1);
  --rest: 0 1px 2px rgba(var(--ink-rgb), .05);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --display: var(--font-site);
  --bs-primary: var(--field);
  --bs-primary-rgb: var(--field-rgb);
  --bs-font-sans-serif: var(--font-site);
  --bs-body-font-family: var(--font-site);
  --bs-body-font-size: var(--fs-base);
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ink);
  --bs-body-color-rgb: var(--ink-rgb);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
  --bs-link-color: var(--field);
  --bs-link-color-rgb: var(--field-rgb);
  --bs-link-hover-color: var(--deep);
  --bs-link-hover-color-rgb: var(--deep-rgb);
  --bs-border-radius: var(--r-sm);
  --bs-border-radius-lg: var(--r-md);
  --bs-focus-ring-color: rgba(246, 182, 46, .5);
}

/* Site-wide typeface: every element inherits Segoe UI from the root. */
html, body { font-family: var(--font-site); }
*, *::before, *::after { font-family: inherit; }

/* Page transitions between pages, in browsers that support them */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .18s ease-in both; }
::view-transition-new(root) { animation: page-in .32s var(--ease) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
.site-head { view-transition-name: site-head; }
.side { view-transition-name: side; }
::view-transition-group(site-head), ::view-transition-group(side) { animation: none; }
::view-transition-old(site-head), ::view-transition-old(side) { display: none; }
::view-transition-new(site-head), ::view-transition-new(side) { animation: none; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.012em; line-height: 1.18; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.text-body-secondary { color: var(--muted) !important; }
.skip { position: absolute; z-index: 1100; background: var(--turmeric); color: var(--ink); padding: .6rem 1rem; }
a { transition: color .15s; }

/* Reveal on scroll, added by app.js only to elements below the fold */
.rv { opacity: 0; transform: translateY(18px); }
.rv-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv-1 { transition-delay: .07s; } .rv-2 { transition-delay: .14s; } .rv-3 { transition-delay: .21s; }

/* Next page on its way */
.page-bar { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1090; pointer-events: none; background: var(--turmeric); transform: scaleX(0); transform-origin: left; opacity: 0; }
.page-bar.is-on { opacity: 1; animation: page-bar 2.4s var(--ease) both; }
@keyframes page-bar { from { transform: scaleX(.08); } to { transform: scaleX(.9); } }

/* Bootstrap components in HDL colours */
.btn { overflow-wrap: normal; font-weight: 600; font-size: var(--fs-base); min-height: 42px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 .35rem .85rem rgba(var(--ink-rgb), .14); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-sm { min-height: 36px; font-size: var(--fs-sm); }
.btn-lg { min-height: 50px; font-size: var(--fs-base); padding-inline: 1.5rem; }
.btn-primary { --bs-btn-bg: var(--field); --bs-btn-border-color: var(--field); --bs-btn-hover-bg: var(--deep); --bs-btn-hover-border-color: var(--deep); --bs-btn-active-bg: var(--deep); --bs-btn-active-border-color: var(--deep); --bs-btn-disabled-bg: var(--field); --bs-btn-disabled-border-color: var(--field); }
.btn-outline-primary { --bs-btn-color: var(--deep); --bs-btn-border-color: var(--field); --bs-btn-hover-bg: var(--field); --bs-btn-hover-border-color: var(--field); --bs-btn-active-bg: var(--deep); --bs-btn-active-border-color: var(--deep); }
.btn-accent { --bs-btn-bg: var(--turmeric); --bs-btn-color: var(--ink); --bs-btn-border-color: var(--turmeric); --bs-btn-hover-bg: var(--turmeric-hover); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: var(--turmeric-hover); --bs-btn-active-bg: var(--turmeric-active); --bs-btn-active-color: var(--ink); --bs-btn-active-border-color: var(--turmeric-active); }
.btn-link { --bs-btn-color: var(--field); --bs-btn-hover-color: var(--deep); }
.btn-link:hover { box-shadow: none; transform: none; }
.btn-link.link-danger { --bs-btn-color: #b02a37; --bs-btn-hover-color: #842029; }
.is-busy { opacity: .75; pointer-events: none; }
.form-control, .form-select { border-color: #8ca197; min-height: 42px; border-radius: var(--r-md); font-size: var(--fs-base); transition: border-color .15s, box-shadow .15s; }
.form-control:focus, .form-select:focus { border-color: var(--field); box-shadow: 0 0 0 .2rem rgba(var(--field-rgb), .2); }
.form-check-input { width: 20px; height: 20px; flex: none; border-color: #8ca197; margin-top: 0; }
.form-check-input:checked { background-color: var(--field); border-color: var(--field); }
.form-label { font-weight: 600; font-size: var(--fs-sm); }
.form-text { font-size: var(--fs-sm); color: var(--muted); }
legend { font-size: var(--fs-md); font-weight: 700; margin-bottom: .6rem; }
.page-link { --bs-pagination-color: var(--field); --bs-pagination-hover-color: var(--deep); --bs-pagination-active-bg: var(--field); --bs-pagination-active-border-color: var(--field); --bs-pagination-focus-color: var(--deep); color: var(--field); }
.pagination { --bs-pagination-active-bg: var(--field); --bs-pagination-active-border-color: var(--field); }
.progress { --bs-progress-bar-bg: var(--field); --bs-progress-bg: var(--wash); }
.card { --bs-card-border-color: var(--line); --bs-card-border-radius: var(--r-lg); --bs-card-inner-border-radius: calc(var(--r-lg) - 1px); box-shadow: var(--rest); }
.card h2 { font-size: var(--fs-md); }
.toast-success { --bs-toast-bg: var(--deep); --bs-toast-color: #fff; background: var(--deep); color: #fff; }
.toast-error { --bs-toast-bg: #b02a37; --bs-toast-color: #fff; background: #b02a37; color: #fff; }
.toast { animation: rise .3s var(--ease) both; }
.badge { font-size: var(--fs-xs); font-weight: 600; }
.alert { border-radius: var(--r-md); }
.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: 0 1.5rem 3rem rgba(var(--ink-rgb), .25); }

/* Layout pieces that repeat */
.vstack > form, .field { min-width: 0; }
.field { display: flex; flex-direction: column; }
fieldset { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.form-check-row { display: flex; gap: .6rem; align-items: flex-start; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.form-narrow { max-width: 30rem; }
.gut { padding-inline: var(--pad); }

/* Public header */
.site-head { --bs-navbar-toggler-focus-width: .15rem; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-head.is-scrolled { box-shadow: 0 .4rem 1.25rem rgba(var(--ink-rgb), .09); }
.site-head .navbar-brand img { display: block; height: 44px; width: auto; }
.site-head .navbar-collapse { transition: height .28s var(--ease); }
.site-head .nav-link { position: relative; color: var(--ink); font-weight: 500; font-size: var(--fs-base); }
.site-head .nav-link::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .2rem; height: 2px; background: var(--field); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-head .nav-link:hover, .site-head .nav-link.active { color: var(--field); }
.site-head .nav-link:hover::after, .site-head .nav-link.active::after { transform: scaleX(1); }
.site-head .navbar-toggler { border-color: var(--line); }

/* Hero: what the portal does, and how one order moves through it */
.hero { position: relative; background: var(--deep); color: #fff; padding: clamp(3.25rem, 7vw, 6.5rem) var(--pad); overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 5vw, 5rem); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.hero-grid::before { content: ""; position: absolute; z-index: -1; top: 50%; right: -9rem; width: 36rem; height: 36rem; margin-top: -18rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 0 0 4.5rem rgba(255, 255, 255, .025), 0 0 0 9rem rgba(255, 255, 255, .02); pointer-events: none; }
.hero h1 { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.08; letter-spacing: -.022em; max-width: 15em; margin-bottom: 1.25rem; animation: rise .7s var(--ease) both; }
.hero-lead { font-size: var(--fs-md); line-height: 1.6; max-width: 34rem; color: #e6f1ea; margin-bottom: 2rem; animation: rise .7s .08s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; animation: rise .7s .16s var(--ease) both; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2rem 0 0; padding: 0; font-size: var(--fs-sm); color: var(--hero-soft); animation: rise .7s .24s var(--ease) both; }
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before { content: ""; flex: none; width: .4rem; height: .4rem; border-radius: 50%; background: var(--turmeric); }
.hero-flow { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, .28); animation: rise .8s .15s var(--ease) both; }
.hero-flow-title { font-weight: 700; font-size: var(--fs-md); margin-bottom: 1.5rem; }
.hero-flow ol { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.hero-flow li { counter-increment: flow; position: relative; display: flex; flex-direction: column; padding: 0 0 1.5rem 3.25rem; min-height: 3.75rem; }
.hero-flow li:last-child { padding-bottom: 0; min-height: 0; }
.hero-flow li::before { content: counter(flow); position: absolute; z-index: 1; left: 0; top: 0; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; background: var(--field); color: #fff; font-weight: 700; font-size: var(--fs-sm); animation: flow-dot .45s var(--ease) both; }
.hero-flow li::after { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.25rem; bottom: 0; width: 2px; background: var(--line); transform-origin: top; animation: flow-line .4s linear both; }
.hero-flow li:last-child::after { display: none; }
.hero-flow li:last-child::before { background: var(--turmeric); color: var(--ink); }
.hero-flow li:nth-child(1)::before { animation-delay: .5s; } .hero-flow li:nth-child(1)::after { animation-delay: .75s; }
.hero-flow li:nth-child(2)::before { animation-delay: 1s; } .hero-flow li:nth-child(2)::after { animation-delay: 1.25s; }
.hero-flow li:nth-child(3)::before { animation-delay: 1.5s; } .hero-flow li:nth-child(3)::after { animation-delay: 1.75s; }
.hero-flow li:nth-child(4)::before { animation-delay: 2s; }
.hero-flow strong { font-size: var(--fs-base); line-height: 1.3; }
.hero-flow span { font-size: var(--fs-sm); color: var(--muted); }
@keyframes flow-dot { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flow-line { from { transform: scaleY(0); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 20em; }
  .hero-grid::before { display: none; }
}
@media (max-width: 479.98px) {
  .hero-cta .btn { width: 100%; }
  .hero-points { flex-direction: column; }
}

/* Categories, in their own section */
.cat-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; }
.cat-list a, .cat-list span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1.05rem; border: 1px solid var(--line); border-radius: 2rem; background: #fff; color: var(--ink); font-weight: 500; }
.cat-list a { text-decoration: none; border-color: var(--field); color: var(--deep); font-weight: 600; transition: background-color .18s, color .18s, transform .18s var(--ease); }
.cat-list a:hover { background: var(--field); color: #fff; transform: translateY(-2px); }

/* Public bands */
.band { padding: clamp(3rem, 6vw, 5.5rem) var(--pad); }
.band-tint { background: var(--wash); }
.band-green { background: var(--field); color: #fff; }
.band-title, .band h2.h-band { font-size: var(--fs-xl); }
.band-title { margin-bottom: .6rem; }
.band-intro { max-width: 44rem; color: var(--muted); font-size: var(--fs-md); margin-bottom: 1.75rem; }
.band-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.lead-text { font-size: var(--fs-md); max-width: 44rem; }
.narrow { max-width: 44rem; margin: 0 auto; padding: 4rem var(--gut); min-height: 40vh; }
.narrow h1 { margin-bottom: 1rem; }
.feature-grid { display: grid; gap: 0 clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.feature { padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--line); }
.feature h3 { margin-bottom: .45rem; }
.feature p { color: var(--muted); margin: 0; }
/* The five steps really are a sequence, so they are numbered and joined by a line. */
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.step { counter-increment: s; position: relative; padding-top: 3.5rem; }
.step::before { content: counter(s); position: absolute; top: 0; left: 0; z-index: 1; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--field); color: #fff; font-weight: 700; }
.step::after { content: ""; position: absolute; top: 1.2rem; left: 2.5rem; right: -1.75rem; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
@media (max-width: 1199.98px) { .step::after { display: none; } }
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); }
.plain-list { margin: 0; padding: 0; list-style: none; font-size: var(--fs-md); }
.plain-list li { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.plain-list li:last-child { border-bottom: 0; }
.big-link { font-weight: 700; font-size: clamp(1.125rem, 1rem + .7vw, 1.5rem); }

/* Footer */
.site-foot { background: var(--ink); color: #c9d8cf; padding: clamp(3rem, 5vw, 4.5rem) var(--pad) 1.5rem; font-size: var(--fs-sm); }
.site-foot a { color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease), color .15s; }
.site-foot a:hover { color: var(--turmeric); background-size: 100% 1px; }
.foot-grid { display: grid; gap: 2.25rem clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.foot-brand img { display: block; margin-bottom: 1rem; }
.foot-brand p { max-width: 20rem; margin: 0; }
.site-foot h2 { font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: .85rem; }
.site-foot ul { margin: 0; }
.site-foot li { margin-bottom: .5rem; }
.site-foot address { margin-bottom: .75rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--fs-xs); }
.foot-legal p { margin: 0; }
.foot-legal span + span { margin-left: 1.25rem; white-space: nowrap; }
@media (max-width: 991.98px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } .foot-legal span { display: block; } .foot-legal span + span { margin-left: 0; } }

/* Sign-in, registration and password pages: one layout for suppliers and staff */
.auth-shell { display: grid; grid-template-columns: minmax(20rem, 33%) minmax(0, 1fr); min-height: calc(100vh - 4.25rem); }
.auth-aside { background: var(--deep); color: #fff; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3.5rem); }
.auth-aside-in { position: sticky; top: 7rem; max-width: 24rem; margin-left: auto; animation: rise .6s var(--ease) both; }
.auth-aside-title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 1.75rem; }
.auth-aside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; color: #e6f1ea; }
.auth-aside li { position: relative; padding-left: 1.75rem; }
.auth-aside li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.05rem; height: 1.05rem; background: var(--turmeric); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / contain no-repeat; }
.auth-main { background: #fff; padding: clamp(2rem, 5vw, 4.5rem) var(--gut); display: flex; justify-content: center; align-items: flex-start; }
.auth { width: 100%; max-width: 27rem; animation: rise .5s var(--ease) both; }
.auth:has(form[enctype]), .auth:has(.picker) { max-width: 46rem; }
.auth h1 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); margin-bottom: .5rem; }
.auth-intro { color: var(--muted); margin-bottom: 1.75rem; }
.auth-links { margin: 1.25rem 0 0; font-size: var(--fs-sm); text-align: center; }
.auth-links + .auth-links { margin-top: .4rem; }
.auth .form-control:not([type=file]), .auth .form-select { min-height: 48px; }
.auth .btn-primary { min-height: 50px; }
.auth .pw-toggle { min-width: 4.25rem; }

/* The three registration stages */
.auth-steps { list-style: none; counter-reset: st; display: flex; gap: .5rem; margin: 0 0 2rem; padding: 0; }
.auth-steps li { counter-increment: st; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.auth-steps li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.auth-steps li.is-now { color: var(--deep); }
.auth-steps li.is-now::before, .auth-steps li.is-done::before { background: var(--field); }

/* Sections of a long form */
.form-section { gap: 1rem; padding-top: 1.5rem; box-shadow: inset 0 1px 0 var(--line); }
.form-section:first-of-type { padding-top: 0; box-shadow: none; }
.form-section legend { font-size: var(--fs-md); margin-bottom: 0; }
.form-section .row { --bs-gutter-y: 1rem; }

@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-aside { padding: 1.5rem var(--gut); }
  .auth-aside-in { position: static; max-width: none; margin: 0; }
  .auth-aside-title { font-size: var(--fs-lg); margin: 0; }
  .auth-aside ul { display: none; }
}

/* App shell, the same for the admin and supplier panels */
.app { background: var(--wash); min-height: 100vh; }
.side { --bs-offcanvas-width: 17rem; --bs-offcanvas-bg: var(--deep); --bs-offcanvas-color: #fff; background-color: var(--deep) !important; color: #fff; }
.side-brand { padding: .2rem .7rem 1.1rem; }
.side-brand img { display: block; width: 100px; height: auto; }
.side-group + .side-group { margin-top: 1.1rem; }
.side-heading { margin: 0 0 .3rem; padding: 0 .7rem; font-size: var(--fs-xs); font-weight: 600; color: #a8cdb6; }
.side .nav-link { display: flex; align-items: center; gap: .65rem; padding: .5rem .7rem; margin-bottom: 2px; border-radius: var(--r-md); color: #e0efe6; font-weight: 500; font-size: var(--fs-sm); transition: background-color .15s, color .15s, transform .18s var(--ease); }
.side .nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; transform: translateX(2px); }
.side .nav-link.active { background: var(--turmeric); color: var(--ink); font-weight: 700; transform: none; }
.nav-icon { flex: none; }
.side-foot { margin-top: 1.25rem; padding: .9rem .7rem 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.side-foot p { margin: 0 0 .5rem; font-size: var(--fs-sm); color: #d6ebdc; }
.main-col { min-width: 0; }
.top { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; padding: .8rem var(--gut); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top h1 { font-size: var(--fs-lg); min-width: 0; flex: 1 1 12rem; }
.top-site { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.content { padding: 1.5rem var(--gut) 3rem; max-width: 92rem; margin-inline: auto; display: flex; flex-direction: column; gap: 1.25rem; animation: enter .3s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.crumb { margin: 0; font-size: var(--fs-sm); }
.crumb a::before { content: "‹ "; }
.page-intro { max-width: 62rem; }
.live-note { font-size: var(--fs-xs); margin-top: -.5rem !important; }
@media (min-width: 992px) {
  .side { flex: 0 0 15.5rem; width: 15.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .side .offcanvas-body { padding: 1.1rem .8rem; overflow: visible; min-height: 100%; }
  .main-col { width: calc(100% - 15.5rem); }
  .top, .content { padding-inline: clamp(1.25rem, 2.5vw, 2.5rem); }
}

/* Festival theme controls in the admin panel */
.fest-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }
.fest-card { overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.fest-card.is-on { border-color: var(--field); box-shadow: 0 0 0 1px var(--field), var(--lift); }
.fest-swatch { display: flex; height: 3.5rem; }
.fest-swatch i { flex: 1; }
.fest-swatch-diwali i:nth-child(1) { background: #3a0f2c; } .fest-swatch-diwali i:nth-child(2) { background: #8a1c3f; } .fest-swatch-diwali i:nth-child(3) { background: #f7b733; }
.fest-swatch-sankranti i:nth-child(1) { background: #0a3c73; } .fest-swatch-sankranti i:nth-child(2) { background: #0c5ea8; } .fest-swatch-sankranti i:nth-child(3) { background: #ff9f1c; }
.fest-swatch-christmas i:nth-child(1) { background: #0f3d2e; } .fest-swatch-christmas i:nth-child(2) { background: #a51c30; } .fest-swatch-christmas i:nth-child(3) { background: #e9c46a; }
.fest-swatch-republic i:nth-child(1) { background: #ff9933; } .fest-swatch-republic i:nth-child(2) { background: #0a2a66; } .fest-swatch-republic i:nth-child(3) { background: #138808; }
.fest-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.fest-card-head h2 { margin: 0; }
.fest-greeting { font-size: var(--fs-sm); }
.fest-switch { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; padding: .25rem 0; min-height: 36px; font-weight: 600; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; }
.fest-switch .spinner-border { display: none; }
.fest-track { position: relative; display: block; width: 2.75rem; height: 1.5rem; border-radius: 1rem; background: #8ca197; transition: background-color .22s; }
.fest-thumb { position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(var(--ink-rgb), .3); transition: transform .22s var(--ease); }
.fest-switch[aria-checked="true"] { color: var(--field); }
.fest-switch[aria-checked="true"] .fest-track { background: var(--field); }
.fest-switch[aria-checked="true"] .fest-thumb { transform: translateX(1.25rem); }

/* Figures */
.two-col { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .9rem 1.4rem; margin: 0; }
.facts dt { font-size: .86rem; color: var(--muted); font-weight: 400; }
.facts dd { margin: 0; font-weight: 500; }
.stat { color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
a.stat:hover { border-color: var(--field); transform: translateY(-2px); color: var(--ink); }
.stat .card-body { display: flex; flex-direction: column; gap: .15rem; }
.stat strong { font: 700 clamp(1.3rem, 1.95vw, 1.75rem)/1.15 var(--display); white-space: nowrap; overflow-wrap: normal; }
.stat span { color: var(--muted); font-size: .94rem; }
.stat-alert { border-left: 5px solid var(--turmeric); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.chips li { background: var(--wash); border: 1px solid var(--line); border-radius: .35rem; padding: .15rem .6rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.bars { display: grid; gap: .55rem; }
.bars li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 2.5rem; gap: .7rem; align-items: center; }
.bar-n { text-align: right; font-weight: 600; }
.w-0 { width: 0; } .w-10 { width: 10%; } .w-20 { width: 20%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; } .w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-90 { width: 90%; }

/* Toolbars and tables */
.results { display: flex; flex-direction: column; gap: .8rem; min-height: 6rem; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: .5rem; overflow-x: auto; }
.card-body .table-wrap { border: 0; border-radius: 0; }
.table > thead > tr > th { font-size: .88rem; font-weight: 600; color: var(--muted); background: #f8faf8; white-space: nowrap; }
.table thead th a { color: inherit; text-decoration: none; }
.table thead th a:hover { color: var(--field); text-decoration: underline; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot th, .table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; font-weight: 500; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-check { width: 2.5rem; }
.cell-thumb img { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: .35rem; }
.cell-actions { text-align: right; white-space: nowrap; }
.row-edit { display: flex; gap: .5rem; align-items: center; max-width: 24rem; }
.inline-add { display: flex; flex-flow: row wrap; gap: .75rem; align-items: flex-end; }
.inline-add .field { flex: 1 1 14rem; }
.qty-field { display: inline-flex; gap: .5rem; align-items: center; max-width: 13rem; }
.bulk { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: 0 0 .7rem; }
.bulk .form-label { margin: 0 !important; }
.bulk select { width: auto; }
.empty { border-style: dashed; border-color: #9db1a6; padding-block: 2rem; }
.card-body .empty { border: 0; padding-block: 1rem; }

/* Inquiries, catalogue, pickers */
.inq-list { display: flex; flex-direction: column; gap: .7rem; }
.inq { flex-flow: row wrap; gap: .75rem 1.25rem; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; transition: border-color .15s; }
.inq:hover { border-color: var(--field); }
.inq h3 { font-size: 1.08rem; margin-bottom: .15rem; }
.inq-main { flex: 1 1 16rem; min-width: 0; }
.inq-main p { margin-bottom: .3rem; font-size: .94rem; }
.inq-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1rem; }
.inq-side { display: flex; align-items: center; gap: .7rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .9rem; }
.product { overflow: hidden; padding-bottom: .8rem; transition: border-color .15s, transform .15s; }
.product:hover { border-color: var(--field); transform: translateY(-2px); }
.product img, .card-noimg { display: block; width: 100%; height: 150px; object-fit: cover; background: var(--wash); }
.product h2, .product h3, .product p { padding-inline: .9rem; }
.product h2, .product h3 { font-size: 1.05rem; margin: .7rem 0 .15rem; }
.product p { margin: 0; font-size: .93rem; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .6rem; }
.pick { display: flex; align-items: center; gap: .65rem; background: #fff; border: 1.5px solid var(--line); border-radius: .5rem; padding: .6rem .8rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pick:hover { border-color: var(--field); }
.pick:has(input:checked) { border-color: var(--field); background: var(--soft); }
.pick img { width: 48px; height: 48px; object-fit: cover; border-radius: .35rem; }
.pick span { display: flex; flex-direction: column; min-width: 0; }
.pick small { color: var(--muted); }
.doc-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: .9rem 0; }
.doc-row figure { width: 11rem; }
.doc-row img, .doc-row .card-noimg { width: 100%; height: 110px; object-fit: contain; background: var(--wash); border: 1px solid var(--line); border-radius: .35rem; display: block; }
.doc-row figcaption { font-size: .9rem; color: var(--muted); margin-top: .25rem; }
.thumb-lg { max-width: 12rem; border-radius: .35rem; margin-top: .5rem; display: block; }
.quote-table input { min-width: 7rem; max-width: 11rem; }

/* Negotiation thread */
.thread { display: flex; flex-direction: column; gap: .9rem; }
.offers { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--line); display: flex; flex-direction: column; gap: .9rem; }
.offer { position: relative; padding: .8rem 1rem; background: var(--wash); border-radius: .5rem; max-width: 40rem; }
.offer::before { content: ""; position: absolute; left: calc(-1.1rem - 8px); top: 1.1rem; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--field); }
.offer-mine { background: var(--soft); }
.offer-top { display: flex; flex-wrap: wrap; gap: .3rem .75rem; justify-content: space-between; align-items: center; font-weight: 600; }
.offer-price { font: 700 1.5rem/1.2 var(--display); margin: .3rem 0; }
.offer p:not(.offer-price) { margin-bottom: .35rem; }
.offer-time { font-size: .85rem; color: var(--muted); margin: 0 !important; }
.offer-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; }
.reveal > summary { list-style: none; width: fit-content; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal[open] > summary { margin-bottom: .75rem; }

/* Purchase order */
.po-body { background: var(--wash); padding: 1rem; }
.po-tools { max-width: 52rem; margin: 0 auto 1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.po-gst { display: flex; align-items: center; gap: .5rem; }
.po-gst .form-label { margin: 0 !important; }
.po-gst input { width: 7rem; }
.po-note { max-width: 52rem; margin: 0 auto 1rem; }
.po { max-width: 52rem; margin: 0 auto; background: #fff; padding: clamp(1rem, 3vw, 2.25rem); border: 1px solid var(--line); }
.po-head { display: block; width: 100%; height: auto; margin-bottom: 1.2rem; }
.po h1 { font-size: 1.45rem; margin: 0; }
.po h2 { font: 700 .98rem var(--bs-body-font-family); margin: 0 0 .3rem; letter-spacing: 0; }
.po-title, .po-meta, .po-foot { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.po-title { align-items: baseline; margin-bottom: 1rem; }
.po-title p { margin: 0; font-weight: 600; }
.po-meta p, .po-foot p { margin: 0 0 .15rem; }
.po-right { text-align: right; }
.po-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.po-table th, .po-table td { border: 1px solid #8ca197; padding: .45rem .6rem; text-align: left; }
.po-table th { background: #eef1ef; }
.po-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.po-totals { margin: 0 0 1.75rem auto; width: min(100%, 22rem); }
.po-totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.po-totals dt { font-weight: 400; }
.po-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.po-grand { border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.12rem; margin-top: .3rem; padding-top: .4rem !important; }
.po-grand dt { font-weight: 700; }
.po-grand dd { color: var(--field); }
.po-foot { align-items: flex-end; }
.po-sign { text-align: center; }
.po-stamp { display: block; width: 100px; height: 100px; object-fit: contain; margin: 0 auto .3rem; }
.po-signature { display: block; width: 120px; height: 55px; object-fit: contain; margin: 0 auto .3rem; }

@media (max-width: 720px) {
  /* Tables become stacked rows, so nothing scrolls sideways. */
  .table-wrap { overflow: visible; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table, .table tbody, .table tfoot, .table tr, .table td, .table tfoot th { display: block; width: 100%; }
  .table tbody tr, .table tfoot tr { padding: .4rem 0; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td, .table tfoot th { border: 0; padding: .3rem .85rem; text-align: left; }
  .table td.num { text-align: left; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: .82rem; color: var(--muted); }
  .table tfoot th { display: none; }
  .cell-actions { text-align: left; }
  .quote-table input, .row-edit { max-width: 100%; }
  .po-right { text-align: left; }
  .form-actions .btn, .inline-add .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

@media print {
  .no-print { display: none !important; }
  .po-body { background: #fff; padding: 0; }
  .po { border: 0; padding: 0; max-width: none; }
  .po-grand dd { color: var(--ink); }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


/* Refinements to the kept sections above */
.stat { transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); }
a.stat:hover { box-shadow: var(--lift); transform: translateY(-3px); }
.stat strong { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; line-height: 1.15; }
.stat span { font-size: var(--fs-sm); }
.toolbar { box-shadow: var(--rest); }
.table-wrap { border-radius: var(--r-lg); box-shadow: var(--rest); }
.card-body .table-wrap { box-shadow: none; }
.table > thead > tr > th { font-size: var(--fs-sm); background: var(--wash); }
.table > tbody > tr > td { transition: background-color .12s; }
.chips li { font-size: var(--fs-sm); }

/* Product photos: never cropped, always on a clean frame of the same shape */
.product { overflow: hidden; padding-bottom: 1rem; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.product:hover { border-color: var(--field); box-shadow: var(--lift); transform: translateY(-4px); }
.product-frame { aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.product-frame img { display: block; width: 100%; height: 100%; object-fit: contain; padding: .6rem; background: #fff; transition: transform .45s var(--ease), opacity .4s; }
.product-frame:not(.is-loaded) { background: linear-gradient(100deg, var(--wash) 30%, #fff 50%, var(--wash) 70%) 0 0 / 200% 100%; animation: shimmer 1.3s linear infinite; }
.product-frame:not(.is-loaded) img { opacity: 0; }
.product-frame:has(.card-noimg) { animation: none; }
.product:hover .product-frame img { transform: scale(1.05); }
@keyframes shimmer { to { background-position: -200% 0; } }
.product .card-noimg { width: 100%; height: 100%; background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ca197' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l9-5 9 5v8l-9 5-9-5zM3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E") center / 3.25rem no-repeat; }
.product h2, .product h3 { font-size: var(--fs-base); font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: .85rem 0 .2rem; }
.product p { font-size: var(--fs-sm); }
.cell-thumb img { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.pick img { object-fit: contain; background: #fff; }
.thumb-lg { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: .4rem; }

@media print {
  .page-bar { display: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* Header buttons: same height, same type, side by side */
.nav-actions { display: flex; gap: .5rem; margin: .75rem 0 .5rem; }
.nav-actions .btn { flex: 1 1 0; min-height: 40px; padding: .35rem 1.1rem; font-size: var(--fs-sm); white-space: nowrap; }
@media (min-width: 1200px) {
  .nav-actions { margin: 0 0 0 .75rem; }
  .nav-actions .btn { flex: 0 0 auto; }
}
@media (max-width: 359.98px) { .nav-actions { flex-direction: column; } }

/* Field states, shared by every form */
.form-control:hover:not(:focus):not(.is-invalid), .form-select:hover:not(:focus):not(.is-invalid) { border-color: var(--field); }
.form-control.is-valid, .form-select.is-valid { border-color: var(--field); }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 .2rem rgba(176, 42, 55, .2); }
.form-check-input.is-invalid { border-color: #b02a37; }
.field-error { flex-basis: 100%; margin: .35rem 0 0; font-size: var(--fs-sm); font-weight: 500; color: #b02a37; }
.form-check-row { flex-wrap: wrap; align-items: center; }
.form-check-row .field-error { margin-top: 0; }
input[type=file].form-control { padding: .35rem; min-height: 48px; cursor: pointer; }
input[type=file].form-control::file-selector-button { margin: 0 .75rem 0 0; padding: .4rem .9rem; border: 0; border-radius: var(--r-sm); background: var(--wash); color: var(--deep); font-weight: 600; font-size: var(--fs-sm); transition: background-color .15s; }
input[type=file].form-control:hover::file-selector-button { background: var(--soft); }
.input-group .btn:hover, .input-group .btn:active { transform: none; box-shadow: none; }
.input-group > .form-control.is-valid, .input-group > .form-control.is-invalid { z-index: 3; }

/* Inline name editors in the Categories and Units tables */
.row-edit { max-width: 30rem; }
.row-edit .form-control { flex: 1 1 auto; width: auto; min-width: 0; }
.row-edit .btn { flex: none; min-width: 4.5rem; min-height: 42px; }

/* Searchable select */
.combo { position: relative; }
.combo .form-select { cursor: text; text-overflow: ellipsis; }
.combo-list { position: absolute; z-index: 30; top: calc(100% + .3rem); left: 0; right: 0; min-width: min(22rem, 85vw); max-height: 17rem; overflow-y: auto; margin: 0; padding: .3rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--lift); animation: rise .16s var(--ease) both; }
.combo-list[hidden] { display: none; }
.combo-list li { padding: .5rem .7rem; border-radius: var(--r-sm); cursor: pointer; font-size: var(--fs-sm); }
.combo-list li:hover, .combo-list li.is-active { background: var(--soft); }
.combo-none { margin: 0; padding: .6rem .7rem; font-size: var(--fs-sm); color: var(--muted); }

/* Notifications */
.notif-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 1rem; background: #b02a37; color: #fff; font-size: .6875rem; font-weight: 700; line-height: 1; }
.notif-badge[hidden] { display: none; }
.side .nav-link .notif-badge { margin-left: auto; }
.top-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--deep); transition: border-color .15s, background-color .15s; }
.top-bell:hover { border-color: var(--field); background: var(--wash); color: var(--deep); }
.top-bell .notif-badge { position: absolute; top: -.4rem; right: -.4rem; box-shadow: 0 0 0 2px #fff; }
.top-bell .nav-icon { width: 20px; height: 20px; }
.notif-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.notif-tabs { display: inline-flex; padding: .2rem; gap: .2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.notif-tabs a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .25rem .85rem; border-radius: var(--r-sm); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
.notif-tabs a:hover { background: var(--wash); color: var(--ink); }
.notif-tabs a.is-on { background: var(--field); color: #fff; }
.notif-tabs span { font-weight: 500; opacity: .85; }
.notif-bulk { display: flex; flex-wrap: wrap; gap: .5rem; }
.notif-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--rest); }
.notif { position: relative; display: grid; grid-template-columns: .625rem minmax(0, 1fr) auto; gap: .35rem .9rem; align-items: start; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.notif:last-child { border-bottom: 0; }
.notif.is-unread { background: var(--soft); box-shadow: inset 3px 0 0 var(--field); }
.notif-dot { width: .625rem; height: .625rem; margin-top: .4rem; border-radius: 50%; border: 1.5px solid #8ca197; }
.notif.is-unread .notif-dot { background: var(--field); border-color: var(--field); }
.notif-title { margin: 0 0 .2rem; font-size: var(--fs-base); font-weight: 500; letter-spacing: 0; line-height: 1.35; color: var(--muted); }
.notif.is-unread .notif-title { font-weight: 700; color: var(--ink); }
.notif-open { padding: 0; border: 0; background: none; color: var(--deep); font: inherit; text-align: left; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.notif-open:hover { color: var(--field); }
.notif-open .spinner-border { display: none; }
.notif-message { margin: 0 0 .3rem; font-size: var(--fs-sm); max-width: 62ch; }
.notif-meta { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.notif-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem; }
.notif-actions .btn { min-height: 32px; padding: .1rem .5rem; white-space: nowrap; }
@media (max-width: 575.98px) {
  .notif { grid-template-columns: .625rem minmax(0, 1fr); padding: .9rem; }
  .notif-actions { grid-column: 2; justify-content: flex-start; margin-left: -.5rem; }
  .notif-bulk { width: 100%; }
  .notif-bulk form { flex: 1 1 0; }
  .notif-bulk .btn { width: 100%; }
  .top-site { display: none; }
}

/* Website menu on phones and tablets: it opens over the page instead of pushing it down */
@media (max-width: 1199.98px) {
  .site-head .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1rem 1.75rem rgba(var(--ink-rgb), .14); max-height: calc(100vh - 4.5rem); max-height: calc(100dvh - 4.5rem); overflow-y: auto; overscroll-behavior: contain; }
  .site-head .navbar-collapse.collapsing { overflow: hidden; }
  .site-head .navbar-collapse > .navbar-nav { padding: .5rem var(--gut) .9rem; }
}

/* Panel header on phones and tablets: [Menu] [Title…] [Action] [Bell] on one line */
@media (max-width: 991.98px) {
  .top { flex-wrap: nowrap; gap: .5rem; padding-block: .6rem; }
  .top > .btn { flex: none; padding-inline: .7rem; }
  .top h1 { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--fs-md); }
  /* The action button never shrinks or clips: only the title gives way */
  .top-action { flex: none; display: flex; }
  .top-action .btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; white-space: nowrap; }
  .top-action .nav-icon { width: 16px; height: 16px; }
  .top-site { display: none; }
  .top-bell { flex: none; }
}
@media (max-width: 359.98px) {
  .top { gap: .35rem; }
  .top > .btn { padding-inline: .5rem; }
  .top-action .btn { padding-inline: .55rem; }
}

/* Image compression note under a file field */
.compress-note { margin: .3rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
.compress-note.is-busy::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .35rem; vertical-align: -.05rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Required fields: a red asterisk after the label ---------- */
.req::after { content: " *"; color: #c0262d; font-weight: 700; }
.req-mark { color: #c0262d; font-weight: 700; }

/* ---------- Download links for the mobile applications ---------- */
.foot-download { display: inline-flex; align-items: center; gap: .4rem; }
.side .side-download { margin-top: .75rem; border: 1px solid rgba(255, 255, 255, .25); justify-content: flex-start; }
.side .side-download:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Create inquiry: product search and product lines ---------- */
.product-search { position: relative; max-width: 36rem; }
.search-results { position: absolute; z-index: 20; top: calc(100% - 1.4rem); left: 0; right: 0; margin: 0; padding: .25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--lift); max-height: 18rem; overflow-y: auto; }
.search-results [role=option] { display: flex; flex-direction: column; padding: .5rem .65rem; border-radius: var(--r-sm); cursor: pointer; }
.search-results [role=option] small { color: var(--muted); }
.search-results [role=option]:hover, .search-results [role=option].active { background: var(--soft); }
.search-results .search-none { padding: .5rem .65rem; color: var(--muted); font-size: var(--fs-sm); }
.inq-lines { display: grid; gap: .75rem; }
.inq-line { border: 1px solid var(--line); border-radius: var(--r-md); padding: .75rem .9rem; background: var(--wash); }
.inq-line-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.inq-line [data-line-total] { background: #fff; font-weight: 700; }
.inq-line .form-label { font-size: var(--fs-xs); }

/* ---------- Quotations: the three lowest totals ---------- */
tr.rank-gold > td { background: #fff4cc !important; }
tr.rank-silver > td { background: #eef0f3 !important; }
tr.rank-bronze > td { background: #f7e3d2 !important; }
tr.rank-gold > td:first-child { box-shadow: inset 4px 0 0 #d4a017; }
tr.rank-silver > td:first-child { box-shadow: inset 4px 0 0 #9aa3ad; }
tr.rank-bronze > td:first-child { box-shadow: inset 4px 0 0 #b0703a; }
.rank-badge { display: inline-block; margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.rank-badge-gold { background: #d4a017; color: #2b2000; }
.rank-badge-silver { background: #9aa3ad; color: #10151a; }
.rank-badge-bronze { background: #b0703a; color: #fff; }

/* ---------- Product import summary ---------- */
.import-summary { border-top: 1px solid var(--line); padding-top: 1rem; }
.import-summary h3 { font-size: var(--fs-md); }
