@font-face {
    font-family: Manrope;
    src: url('fonts/manrope-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --pine: #123c2f;
    --accent: #137554;
    --accent-hover: #0d6548;
    --mint: #e8f5ee;
    --background: #f6f8f5;
    --surface: #fff;
    --ink: #17231d;
    --muted: #52665b;
    --line: #dfe8e1;
    --field: #809489;
    --green: #186447;
    --amber: #875118;
    --blue: #2a5479;
    --red: #9b3b36;
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-8: 32px;
    --radius: 14px;
    --shadow: 0 1px 2px #203c2910;
    --drawer-shadow: 0 14px 36px #193c3026;
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --rail: 216px;
    --top: 64px;
    --mobile-nav: 66px;
    font: 500 14px/1.55 Manrope, system-ui, sans-serif;
    background: var(--background);
    color: var(--ink);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ul, dl { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, a, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button, summary, .p-nav a, .p-card-action { user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
svg { display: block; flex: none; }
.p-sr, .p-skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.p-skip:focus { position: fixed; z-index: 80; top: 16px; left: 16px; padding: 12px; background: var(--surface); }

.p-shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100dvh; }
.p-sidebar { position: sticky; top: 0; height: 100dvh; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: var(--s-5); padding: 26px 17px 17px; background: var(--pine); color: #e8f3ec; }
.p-sidebar :focus-visible { outline-color: #c4eedb; }
.p-brand { display: flex; align-items: center; gap: 10px; padding-inline: 6px; text-decoration: none; font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.065em; color: white; }
.p-brandmark { display: grid; flex: none; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: #cce9d6; color: #184933; font-size: 22px; line-height: 1; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.p-brand-dot { color: #a9d9bf; }
.p-sidebar .p-brand { padding-bottom: 18px; border-bottom: 1px solid #ffffff26; }
.p-nav { display: grid; gap: 2px; }
.p-nav-heading { margin: 16px 10px 4px; color: #bbd6c8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .085em; }
.p-nav a { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 8px; text-decoration: none; color: #d2e7db; font-size: 13px; font-weight: 700; }
.p-sidebar .p-brand { min-height: 42px; letter-spacing: -.04em; }
.p-nav a svg { width: 18px; height: 18px; }
.p-nav a[aria-current] { background: #d6edda; color: var(--pine); }
.p-phone-nav, .p-mobile-brand { display: none; }
.p-rail-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 15px 7px 4px; border-top: 1px solid #ffffff24; color: #c4e0d1; font-size: 11px; }
.p-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-rail-footer .p-dot { color: #8ee2b4; }

.p-workspace { min-width: 0; }
.p-topbar { z-index: 12; position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--top); padding: 0 clamp(20px, 3.2vw, 40px); background: var(--surface); border-bottom: 1px solid var(--line); }
.p-breadcrumb { display: flex; align-items: center; gap: 11px; min-width: 0; font-size: 12px; font-weight: 800; }
.p-site-switch { min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--pine); text-decoration: none; }
.p-site-switch span, .p-current-page, .p-profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-site-switch svg { width: 17px; height: 17px; }
.p-site-switch svg:last-child { width: 12px; }
.p-profile-name { max-width: 20ch; }
.p-breadcrumb-sep { color: var(--muted); font-weight: 600; }
.p-breadcrumb-sep { opacity: .7; }
.p-top-actions { display: flex; flex: none; align-items: center; gap: 14px; }
.p-demo { display: flex; gap: 6px; align-items: center; padding: 5px 9px; border-radius: 999px; background: var(--mint); color: var(--green); font-size: 11px; font-weight: 800; }
.p-profile { position: relative; }
.p-profile summary { min-height: 44px; display: flex; align-items: center; list-style: none; gap: 9px; font-size: 12px; font-weight: 800; }
.p-profile summary::-webkit-details-marker { display: none; }
.p-profile summary svg { width: 14px; height: 14px; }
.p-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e4eee4; color: #245941; font-weight: 800; }
.p-profile-menu { display: grid; gap: 6px; position: absolute; right: 0; top: calc(100% + 8px); min-width: max-content; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--drawer-shadow); }
.p-main { max-width: 1536px; margin: 0 auto; min-width: 0; padding: 27px clamp(20px, 3.2vw, 40px) 85px; }
.p-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 23px; }
.p-heading h1 { overflow-wrap: anywhere; color: var(--ink); font-size: clamp(28px, 3.3vw, 38px); letter-spacing: -.055em; line-height: 1.18; font-weight: 800; }
.p-heading p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.p-inline-dot { margin-inline: 2px; }
.p-back { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; margin: -5px 0 5px; color: var(--accent); text-decoration: none; font-size: 12px; font-weight: 800; }
.p-back svg { width: 16px; height: 16px; }

.p-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.p-button { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 13px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: 12px; line-height: 1.3; font-weight: 800; transition: transform 120ms var(--ease-out), background-color 120ms ease; }
.p-button:active:not(:disabled), .p-product:active:not(:disabled), .p-stepper button:active { transform: scale(.98); }
.p-button svg { width: 17px; height: 17px; }
.p-button-primary { color: white; background: var(--accent); }
.p-button-secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.p-button:disabled { cursor: not-allowed; color: #52635a; background: #e9efea; }
.p-full { width: 100%; }
.p-icon-tile { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 9px; }
.p-icon-tile svg { width: 19px; height: 19px; }
.p-tone-green { background: #e4f3eb; color: var(--green); }
.p-tone-amber { background: #fcf0dd; color: var(--amber); }
.p-tone-blue { background: #e8f1fa; color: var(--blue); }
.p-tone-red { background: #fae9e6; color: var(--red); }
.p-tone-neutral { background: #edf1ed; color: #506259; }
.p-text-green { color: var(--green); }
.p-text-amber { color: var(--amber); }
.p-text-blue { color: var(--blue); }
.p-text-red { color: var(--red); }
.p-badge { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; min-height: 25px; padding: 3px 8px; border-radius: 999px; font-size: 10px; line-height: 1.3; font-weight: 800; white-space: nowrap; }
.p-badge svg { width: 13px; height: 13px; }
.p-notice { display: flex; gap: 9px; align-items: center; margin-bottom: 16px; padding: 10px 13px; border: 1px solid; border-radius: 9px; font-size: 13px; }
.p-notice ul { padding-left: 16px; }
.p-notice-success { background: var(--mint); color: var(--green); border-color: #cce3d4; }
.p-notice-error { background: #fae9e6; color: var(--red); border-color: #eed0ca; }

.p-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 17px; }
.p-metric { padding: 15px; }
.p-metric-label { display: flex; align-items: center; gap: 9px; }
.p-metric-label h2 { color: var(--muted); font-size: 12px; }
.p-metric-value { margin: 11px 0 5px; font-size: clamp(21px, 2vw, 30px); font-weight: 800; letter-spacing: -.05em; line-height: 1.18; font-variant-numeric: tabular-nums; }
.p-metric-value span { color: var(--muted); font-size: 10px; letter-spacing: .02em; }
.p-metric p { display: flex; flex-wrap: wrap; gap: 3px 6px; color: var(--muted); font-size: 10px; }
.p-insights { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 16px; margin-bottom: 17px; }
.p-performance, .p-attention { padding: 17px 18px; }
.p-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.p-panel-heading h2 { font-size: 17px; line-height: 1.27; letter-spacing: -.025em; font-weight: 800; }
.p-panel-heading p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.p-chart-select { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.p-chart-select svg { width: 15px; height: 15px; color: var(--muted); }
.p-chart-select select { min-height: 42px; border: 0; background: transparent; font-size: 11px; font-weight: 800; color: var(--ink); }
.p-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 1px 0 16px; color: var(--muted); font-size: 10px; font-weight: 700; }
.p-legend span { display: inline-flex; gap: 5px; align-items: center; }
.p-legend i { width: 8px; height: 8px; border-radius: 2px; background: #18805d; }
.p-legend span:nth-child(2) i { background: #a6d5b7; }
.p-chart { display: grid; grid-template-columns: 36px minmax(0, 1fr); height: 188px; padding-top: 1px; }
.p-chart-scale { display: flex; flex-direction: column; justify-content: space-between; padding: 0 3px 22px 0; transform: translateY(-6px); color: var(--muted); font-size: 10px; }
.p-chart-plot { position: relative; min-width: 0; }
.p-chart-grid { position: absolute; inset: 0 0 23px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.p-chart-grid i { border-top: 1px dashed #dfe8e1; }
.p-chart-grid i:last-child { border-top-style: solid; }
.p-chart-bars { display: grid; height: 100%; position: relative; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); gap: 4px; }
.p-chart-day { position: relative; min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) 22px; justify-items: center; }
.p-chart-pair { height: 100%; width: min(80%, 38px); display: flex; align-items: end; gap: 3px; justify-content: center; }
.p-chart-pair span { width: 45%; height: var(--bar-height); border-radius: 4px 4px 0 0; background: #18805d; }
.p-chart-pair span:nth-child(2) { background: #a6d5b7; }
.p-chart-dayname { padding-top: 6px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.p-chart-tip { display: none; z-index: 2; position: absolute; top: -17px; left: 50%; transform: translateX(-50%); padding: 4px 6px; border-radius: 5px; background: var(--pine); color: #fff; font-size: 9px; white-space: nowrap; }
.p-chart-day:focus-visible .p-chart-tip { display: block; }
.p-chart-day:first-child .p-chart-tip { left: 0; transform: none; }
.p-chart-day:last-child .p-chart-tip { left: auto; right: 0; transform: none; }
[data-chart-length="14"] .p-chart-day:nth-child(even):not(:last-child) .p-chart-dayname { visibility: hidden; }
.p-attention-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 13px 0; }
.p-attention-row .p-icon-tile { width: 32px; height: 32px; border-radius: 8px; }
.p-attention-row div strong, .p-attention-row div span { display: block; }
.p-attention-row strong { font-size: 11px; }
.p-attention-row div span { color: var(--muted); font-size: 10px; }
.p-activity { overflow: hidden; }
.p-activity .p-panel-heading, .p-history .p-panel-heading { padding: 17px 18px 0; }
.p-table-scroll { overflow: auto; }
.p-activity table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font-size: 11px; }
.p-activity th, .p-activity td { padding: 10px 15px; border-top: 1px solid var(--line); }
.p-activity thead { background: #f6f8f6; color: var(--muted); }
.p-activity tbody td { color: var(--muted); }
.p-activity .p-table-amount { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }

.p-filterbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 15px; }
.p-segments, .p-category-filters { display: flex; gap: 5px; overflow: auto; max-width: 100%; scrollbar-width: thin; }
.p-segments { padding: 3px; background: #eaf0ea; border-radius: 10px; }
.p-segments button, .p-category-filters button { min-height: 40px; flex: none; border: 1px solid transparent; padding: 6px 10px; border-radius: 7px; background: transparent; color: var(--muted); white-space: nowrap; font-size: 12px; font-weight: 800; }
.p-segments button[aria-pressed="true"] { background: var(--surface); border-color: var(--line); color: var(--accent); }
.p-category-filters { margin-bottom: 14px; padding: 1px 2px 5px; }
.p-category-filters button { min-height: 41px; border-color: var(--line); background: var(--surface); border-radius: 999px; }
.p-category-filters button[aria-pressed="true"] { background: var(--pine); color: #fff; border-color: var(--pine); }
.p-search { display: flex; gap: 8px; align-items: center; width: min(100%, 245px); min-width: 0; padding-inline: 11px; background: var(--surface); border: 1px solid var(--field); border-radius: 9px; color: var(--muted); }
.p-search svg { width: 16px; height: 16px; }
.p-search input { flex: 1; width: 100%; min-width: 0; min-height: 42px; border: 0; background: transparent; color: var(--ink); font-size: 13px; }
.p-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-search input:focus { outline: none; }
.p-empty { padding: 28px 14px; display: grid; gap: 7px; justify-items: center; text-align: center; }
.p-empty p { color: var(--muted); font-size: 12px; }
.p-table-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.p-table-stat { display: flex; gap: 10px; align-items: center; padding: 11px; text-align: left; color: var(--ink); }
.p-table-stat[aria-pressed="true"] { border-color: #6eaa8c; background: #f2f9f4; }
.p-table-stat strong, .p-table-stat strong + span { display: block; }
.p-table-stat strong { font-size: 21px; line-height: 1.17; font-weight: 800; font-variant-numeric: tabular-nums; }
.p-table-stat strong + span { color: var(--muted); font-size: 10px; font-weight: 800; }
.p-table-grid { display: grid; gap: 13px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-table-card { padding: 13px; }
.p-table-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; }
.p-table-details { display: grid; gap: 3px; min-height: 44px; margin: 4px 0 8px; font-size: 12px; }
.p-table-details strong { font-weight: 800; }
.p-table-details span { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; }
.p-table-details svg { width: 12px; height: 12px; }
.p-card-action { width: 100%; justify-content: space-between; min-height: 44px; font-size: 11px; text-align: left; }
.p-table-assigned { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 11px; }
.p-history { margin-top: 18px; }
.p-history-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 17px; border-top: 1px solid var(--line); font-size: 12px; }

.p-order-heading { margin-bottom: 17px; }
.p-order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, .46fr); align-items: start; gap: 20px; }
.p-order-closed { grid-template-columns: minmax(0, 620px); }
.p-catalogue { min-width: 0; }
.p-catalogue-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.p-catalogue-heading h2 { font-size: 20px; letter-spacing: -.035em; }
.p-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.p-product { position: relative; display: block; padding: 0; overflow: hidden; text-align: left; color: var(--ink); transition: transform 120ms var(--ease-out), border-color 120ms ease; }
.p-product:disabled { cursor: default; }
.p-product[data-selected] { border-color: #66af8a; }
.p-product-photo { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; background: #eaf1ea; overflow: hidden; }
.p-product-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.p-photo-fallback { color: #5d8a70; }
.p-product-photo:has(img:not([hidden])) .p-photo-fallback { visibility: hidden; }
.p-product:disabled img { filter: saturate(.55); opacity: .72; }
.p-product-count, .p-product-unavailable { position: absolute; top: 7px; left: 7px; }
.p-product-count { min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; background: var(--pine); color: #fff; font-size: 11px; font-weight: 800; }
.p-product-body { display: grid; min-width: 0; gap: 4px; padding: 9px 10px 8px; }
.p-product-name { font-size: 13px; font-weight: 800; line-height: 1.3; }
.p-product-meta { display: flex; justify-content: space-between; gap: 4px; align-items: center; min-height: 25px; color: var(--green); font-size: 12px; font-variant-numeric: tabular-nums; }
.p-product-plus { display: grid; place-items: center; width: 26px; height: 25px; background: var(--mint); border-radius: 7px; }
.p-product-plus svg { width: 16px; height: 16px; }
.p-order-side { position: sticky; top: calc(var(--top) + 13px); }
.p-cart { overflow: hidden; }
.p-cart-heading { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-bottom: 1px solid var(--line); gap: 6px; }
.p-cart-heading > div { display: flex; align-items: center; gap: 8px; }
.p-cart-heading h2 { font-size: 16px; letter-spacing: -.025em; }
.p-cart-heading .p-icon-tile { width: 30px; height: 30px; }
.p-cart-content { max-height: min(55dvh, 405px); overflow: auto; overscroll-behavior: contain; }
.p-cart-section { padding: 11px 13px; }
.p-cart-section + .p-cart-section { border-top: 1px solid var(--line); }
.p-cart-section h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.p-cart-section h3 span, [data-mobile-quantity] { padding: 1px 5px; border-radius: 5px; background: #edf2ed; color: #39574a; font-size: 10px; }
.p-cart-empty { display: flex; gap: 6px; align-items: center; min-height: 42px; padding: 7px; border: 1px dashed #c9dbce; border-radius: 8px; color: var(--muted); font-size: 11px; }
.p-cart-empty svg { width: 16px; height: 16px; }
.p-cart-lines { list-style: none; padding: 0; }
.p-draft-row, .p-sent-line { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 7px 0; color: var(--ink); font-size: 12px; }
.p-draft-row > div:first-child, .p-sent-line > div { min-width: 0; overflow-wrap: anywhere; }
.p-draft-row > div:first-child span, .p-sent-line > div span { display: block; color: var(--muted); font-size: 10px; }
.p-stepper, .p-quantity-control { flex: none; display: flex; align-items: center; gap: 1px; border: 1px solid var(--line); border-radius: 8px; }
.p-stepper button, .p-quantity-control button, .p-icon-button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 7px; background: transparent; color: var(--green); transition: transform 120ms var(--ease-out); }
.p-stepper button svg, .p-quantity-control button svg { width: 14px; height: 14px; }
.p-stepper output { min-width: 19px; text-align: center; font-size: 12px; font-weight: 800; }
.p-line-more { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.p-line-more summary { display: list-item; width: fit-content; padding: 5px 0; font-weight: 750; }
.p-line-more p { margin-block: 4px; }
.p-small-form { display: grid; gap: 8px; padding-top: 5px; }
.p-small-form label, .p-order-management label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.p-small-form input, .p-small-form select, .p-order-management input, .p-order-management select {
    width: 100%; min-height: 44px; padding: 6px 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--field); border-radius: 7px;
}
.p-cart-footer { display: grid; gap: 8px; padding: 11px 13px; border-top: 1px solid var(--line); background: var(--surface); }
.p-cart-subtotal, .p-cart-total { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.p-cart-subtotal { color: var(--muted); font-size: 11px; }
.p-cart-total { font-size: 12px; }
.p-cart-total strong:last-child { color: var(--green); font-size: 17px; white-space: nowrap; }
.p-order-management { margin-top: 20px; display: grid; gap: 8px; max-width: 650px; }
.p-order-management details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; }
.p-order-management summary { font-weight: 800; }
.p-order-management form { display: grid; gap: 8px; margin-top: 9px; }
.p-order-management button { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 800; }
.p-mobile-pick { display: none; }
.p-cart-dialog { width: min(100%, 560px); max-width: 100%; max-height: 88dvh; inset: auto 0 0; margin: 0 auto; padding: 9px 12px calc(12px + env(safe-area-inset-bottom, 0px)); overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 17px 17px 0 0; background: var(--surface); color: var(--ink); }
.p-cart-dialog::backdrop { background: #112d22a0; }
.p-dialog-top { display: flex; align-items: center; justify-content: space-between; padding: 0 0 6px 6px; }

.p-bar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: start; }
.p-ticket { overflow: hidden; }
.p-ticket-priority { border-top: 3px solid #cb9755; }
.p-ticket-header { display: flex; justify-content: space-between; gap: 7px; align-items: center; padding: 13px 13px 2px; }
.p-ticket-id { color: var(--muted); font-size: 10px; font-weight: 800; }
.p-ticket-header h2 { line-height: 1.18; font-size: 24px; letter-spacing: -.04em; }
.p-ticket-server { display: flex; gap: 5px; align-items: center; padding: 4px 13px 10px; color: var(--muted); font-size: 11px; }
.p-ticket-server svg { width: 14px; height: 14px; }
.p-ticket-line { padding: 9px 13px 8px; border-top: 1px solid var(--line); }
.p-ticket-item { display: flex; justify-content: space-between; gap: 7px; align-items: baseline; margin-bottom: 7px; }
.p-ticket-item strong { font-size: 13px; }
.p-ticket-item span { color: var(--muted); font-size: 10px; text-align: right; }
.p-ticket-delivery { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.p-ticket-delivery .p-button { padding-inline: 8px; font-size: 11px; }
.p-quantity-control input { width: 34px; height: 40px; padding: 0; background: none; border: 0; text-align: center; appearance: textfield; color: var(--ink); font-weight: 800; }
.p-quantity-control input::-webkit-inner-spin-button, .p-quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.p-rupture { margin-top: 4px; }
.pagination { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }

@media (hover: hover) and (pointer: fine) {
    .p-nav a:not([aria-current]):hover { background: #d8f4e323; }
    .p-button-primary:hover:not(:disabled) { background: var(--accent-hover); }
    .p-button-secondary:hover, .p-table-stat:hover { border-color: #9ab4a4; background: #f2f7f2; }
    .p-product:hover:not(:disabled) { border-color: #6da88b; }
    .p-chart-day:hover .p-chart-tip { display: block; }
}

@media (max-width: 1200px) {
    .p-shell { --rail: 190px; }
    .p-sidebar { padding-inline: 12px; }
    .p-table-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .p-bar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p-order-layout { gap: 12px; }
}
@media (max-width: 1000px) {
    .p-shell { --rail: 165px; }
    .p-topbar { padding-inline: 17px; }
    .p-insights { grid-template-columns: minmax(0, 1fr); }
    .p-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p-table-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .p-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p-breadcrumb-sep { display: none; }
    .p-breadcrumb { gap: 4px 10px; }
    .p-current-page { border-left: 1px solid var(--line); padding-left: 10px; }
    .p-profile-name { display: none; }
}
@media (max-width: 760px) {
    html { scroll-padding-block: 68px calc(var(--mobile-nav) + env(safe-area-inset-bottom, 0px) + 8px); }
    .p-shell { display: block; --top: 58px; }
    .p-sidebar { z-index: 14; position: fixed; inset: auto 0 0; height: auto; overflow: visible; padding: 0 max(12px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(12px, env(safe-area-inset-left, 0px)); background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); }
    .p-sidebar > :not(.p-phone-nav) { display: none; }
    .p-phone-nav { display: flex; gap: 4px; justify-content: center; }
    .p-phone-nav > a, .p-phone-more { min-width: 0; max-width: 140px; flex: 1; }
    .p-phone-nav > a, .p-phone-more > summary { display: flex; height: var(--mobile-nav); flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 800; text-decoration: none; }
    .p-phone-nav [aria-current], .p-phone-selected { color: var(--accent); box-shadow: inset 0 3px var(--accent); }
    .p-phone-nav a:active, .p-phone-more summary:active { background: var(--mint); }
    .p-phone-more > summary::-webkit-details-marker { display: none; }
    .p-phone-links { position: fixed; inset: auto 8px calc(var(--mobile-nav) + env(safe-area-inset-bottom, 0px) + 8px); z-index: 15; display: grid; gap: 3px; padding: 8px; max-height: min(55dvh, 440px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--drawer-shadow); }
    .p-phone-links a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); }
    .p-phone-links a[aria-current] { background: var(--mint); box-shadow: none; }
    .p-phone-nav svg { width: 19px; height: 19px; }
    .p-sidebar :focus-visible { outline-color: var(--accent); }
    .p-topbar { position: sticky; min-height: var(--top); padding: calc(6px + env(safe-area-inset-top, 0px)) 14px 6px; }
    .p-breadcrumb { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 0; }
    .p-mobile-brand { grid-row: 1 / 3; }
    .p-site-switch { grid-column: 2; grid-row: 1 / 3; min-height: 44px; align-items: start; padding: 3px 0 17px; }
    .p-site-switch svg { align-self: start; }
    .p-site-switch svg:first-child { display: none; }
    .p-current-page { pointer-events: none; grid-column: 2; grid-row: 2; align-self: end; border: 0; padding: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
    .p-mobile-brand { display: grid; width: 32px; height: 32px; font-size: 20px; }
    .p-top-actions { gap: 7px; }
    .p-profile summary { min-width: 44px; min-height: 44px; justify-content: center; }
    .p-profile summary svg { display: none; }
    .p-main { padding: 17px 14px calc(20px + var(--mobile-nav) + env(safe-area-inset-bottom, 0px)); }
    .p-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 15px; }
    .p-heading p { font-size: 12px; }
    .p-metrics, .p-insights { gap: 8px; }
    .p-metric { padding: 11px; }
    .p-metric-label { align-items: flex-start; gap: 6px; }
    .p-metric-label .p-icon-tile { width: 26px; height: 26px; }
    .p-metric-label .p-icon-tile svg { width: 15px; height: 15px; }
    .p-metric-value { margin-top: 8px; }
    .p-performance, .p-attention { padding: 13px; }
    .p-chart { grid-template-columns: 31px minmax(0, 1fr); }
    .p-chart-dayname { font-size: 8px; }
    .p-chart-select select { max-width: 107px; }
    .p-filterbar { align-items: stretch; }
    .p-filterbar .p-search { width: 100%; }
    .p-table-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .p-table-stat { gap: 5px; padding: 7px; }
    .p-table-stat .p-icon-tile { width: 27px; height: 27px; }
    .p-table-stat .p-icon-tile svg { width: 15px; height: 15px; }
    .p-table-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .p-table-card { padding: 9px; }
    .p-order-layout { grid-template-columns: minmax(0, 1fr); }
    .p-order-layout.p-js .p-order-side { display: none; }
    .p-order-layout.p-js { padding-bottom: 76px; }
    .p-order-side { position: static; }
    .p-catalogue-heading { align-items: stretch; flex-direction: column; }
    .p-catalogue-heading .p-search { width: 100%; }
    .p-product-grid { gap: 8px; }
    .p-product-body { padding: 7px 8px 6px; }
    .p-mobile-pick { position: fixed; display: block; z-index: 13; bottom: calc(var(--mobile-nav) + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; padding: 6px 12px; background: #f6f8f5f4; }
    .p-mobile-pick button { min-height: 47px; justify-content: flex-start; }
    .p-mobile-pick strong { margin-left: auto; font-size: 15px; }
    .p-cart-dialog .p-cart-content { max-height: min(54dvh, 470px); }
    .p-bar-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
    .p-segments button, .p-category-filters button, .p-stepper button, .p-quantity-control button, .p-icon-button, .p-line-more summary { min-height: 44px; }
    .p-stepper button, .p-quantity-control button, .p-icon-button { min-width: 44px; }
    .p-line-more summary { padding-top: 11px; }
    .p-search input, .p-small-form input, .p-small-form select, .p-order-management input, .p-order-management select, .p-quantity-control input { font-size: 16px; }
}
@media (pointer: coarse) {
    .p-search input, .p-small-form input, .p-small-form select, .p-quantity-control input, .p-chart-select select { font-size: max(16px, 1em); }
}
@media (prefers-reduced-motion: reduce) {
    .p-button, .p-product, .p-stepper button { transition: none; }
}


.p-insights-single { grid-template-columns: minmax(0, 1fr); }
.p-dashboard-link { text-decoration: none; }
.p-dashboard-link:focus-visible, .p-dashboard-shortcut:focus-visible { outline-offset: -3px; }
.p-dashboard-shortcut { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3); color: var(--ink); text-decoration: none; }
.p-dashboard-shortcut > svg { margin-left: auto; width: 16px; height: 16px; color: var(--accent); }
.p-chart-empty { min-height: 150px; display: grid; place-content: center; justify-items: center; gap: var(--s-2); color: var(--muted); padding: var(--s-3); text-align: center; }
.p-chart-grid b { position: absolute; bottom: var(--zero); left: 0; right: 0; border-top: 1px solid #b9ccc0; }
.p-chart-pair { position: relative; }
.p-chart-pair span { position: absolute; bottom: var(--bar-bottom); left: 0; }
.p-chart-pair span:nth-child(2) { left: auto; right: 0; }
