.p-portal {
  --p-paper: #f7f7f1;
  --p-surface: #fff;
  --p-border: #e4e8dc;
  --p-ink: #172d21;
  --p-muted: #59685b;
  --p-green: #2e672e;
  --p-dark: #081c17;
  --p-lime: #c1ff72;
  --p-tint: #ecf4e5;
  --p-round: 21px;
  color: var(--p-ink);
  background: var(--p-paper);
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100dvh;
  letter-spacing: -.015em;
}

.p-portal h1, .p-portal h2, .p-portal h3, .p-portal p, .p-portal ul, .p-portal ol, .p-portal dl { margin: 0; }
.p-portal [hidden] { display: none !important; }
.p-portal button, .p-portal input, .p-portal textarea, .p-portal select { font: inherit; }
.p-portal :focus-visible { outline: 2px solid #55984c; outline-offset: 3px; }
.p-portal :is(a, button, select) { -webkit-tap-highlight-color: transparent; }
.p-portal button, .p-portal select { cursor: pointer; }
.p-portal a { color: inherit; text-decoration: none; }
.p-portal .icon { flex: none; vertical-align: middle; }
.p-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }

.p-sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 26px 19px 19px; background: #fff; border-right: 1px solid var(--p-border); display: flex; flex-direction: column; align-items: stretch; z-index: 5; }
.p-brand { display: flex; align-items: center; gap: 9px; align-self: start; margin: 0 0 31px 4px; font-size: 25px; font-weight: 800; letter-spacing: -.08em; }
.p-brand > span:first-child { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: var(--p-lime); background: var(--p-dark); }
.p-brand .p-brand-period { margin-left: -8px; color: var(--p-green); }
.p-workspace { background: var(--p-paper); border: 1px solid var(--p-border); border-radius: 14px; display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 24px; }
.p-workspace-icon { color: var(--p-green); background: #e6f0dc; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.p-workspace small, .p-workspace strong { display: block; }
.p-workspace small { font-size: 10px; color: var(--p-muted); font-weight: 700; }
.p-workspace strong { font-size: 13px; font-weight: 800; }
.p-navigation { display: grid; gap: 4px; }
.p-nav-item { border: 0; color: #485849; font-weight: 720 !important; font-size: 13px !important; min-height: 44px; line-height: 1.15; padding: 0 11px; border-radius: 10px; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; transition: color .18s, background .18s; }
.p-nav-item:hover, .p-nav-item.is-active { background: var(--p-tint); color: #245026; }
.p-nav-item.is-active { box-shadow: inset 3px 0 0 #4f9d47; }
.p-sidebar-bottom { display: grid; gap: 3px; margin-top: auto; padding-top: 26px; }
.p-demo-pill { display: flex; align-items: center; gap: 7px; padding: 8px 10px; width: fit-content; margin-bottom: 8px; border-radius: 6px; background: #f4f6ee; font-size: 10px; font-weight: 800; color: #53674f; white-space: nowrap; }
.p-demo-pill span, .p-welcome-label span { width: 7px; height: 7px; border-radius: 50%; background: #73ab4d; }
.p-sidebar-bottom a { display: flex; align-items: center; gap: 10px; padding: 8px 11px; font-size: 12px; border-radius: 9px; color: var(--p-muted); font-weight: 700; }
.p-sidebar-bottom a:hover { background: var(--p-tint); color: var(--p-green); }
.p-overlay, .p-mobile-menu { display: none !important; }

.p-main { min-width: 0; display: flex; flex-direction: column; }
.p-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 68px; padding: 10px clamp(17px, 3vw, 44px); background: #fff; border-bottom: 1px solid var(--p-border); }
.p-crumb, .p-profile { display: flex; align-items: center; gap: 11px; font-size: 12px; color: var(--p-muted); }
.p-crumb strong, .p-profile [data-profile-name] { font-weight: 800; color: var(--p-ink); }
.p-profile { gap: 8px; }
.p-profile-avatar { width: 33px; height: 33px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #245026; background: #e9f2de; font-weight: 850; font-size: 10px; letter-spacing: .01em; }
.p-profile-switch { margin-right: 7px; }
.p-profile-switch select { font-size: 11px; font-weight: 800; color: #355637; border: 1px solid #dce6d4; border-radius: 8px; background: #f6f9f1; padding: 8px 6px 8px 8px; max-width: 158px; }
.p-content { width: min(100%, 1550px); margin: 0 auto; padding: 28px clamp(17px, 3vw, 44px) 42px; display: grid; gap: 18px; }
.p-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px clamp(17px, 3vw, 44px); border-top: 1px solid var(--p-border); margin-top: auto; color: var(--p-muted); font-size: 11px; }
.p-footer a:hover { text-decoration: underline; }
.p-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 6px 0 0; }
.p-page-heading h1 { font-size: clamp(29px, 3.5vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.07em; }
.p-page-heading h1:focus { outline: none; }
.p-page-heading p { margin-top: 9px; color: var(--p-muted); font-size: 14px; line-height: 1.5; }
.p-today { display: inline-flex; gap: 7px; align-items: center; padding: 8px 10px; color: var(--p-muted); border: 1px solid var(--p-border); background: #fff; border-radius: 8px; white-space: nowrap; font-size: 11px; }

.p-welcome { isolation: isolate; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, .62fr); align-items: center; min-height: 270px; padding: clamp(18px, 3.8vw, 44px); border-radius: 24px; background: radial-gradient(ellipse at 88% 38%, #254d28 0, #123420 37%, var(--p-dark) 79%); overflow: hidden; color: #f8ffef; }
.p-welcome-content { position: relative; z-index: 1; }
.p-welcome-label { display: flex; gap: 8px; align-items: center; color: #d4efc0; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.p-welcome-label span { background: var(--p-lime); }
.p-welcome h2 { max-width: 640px; font-size: clamp(34px, 5vw, 74px); line-height: .96; letter-spacing: -.086em; font-weight: 800; margin: 13px 0 12px; }
.p-welcome p { max-width: 365px; color: #d3e4cc; line-height: 1.5; font-size: 13px; margin-bottom: 19px; }
.p-welcome-art { position: relative; min-height: 156px; display: grid; place-items: center; }
.p-orbit { position: absolute; display: block; width: min(37vw, 420px); height: 154px; border: 1px solid #b6f77540; border-radius: 50%; box-shadow: 0 0 22px #b6f71809; }
.p-orbit-one { transform: rotate(-34deg); }
.p-orbit-two { transform: rotate(-12deg); }
.p-orbit-three { transform: rotate(15deg); }
.p-welcome-stat { display: flex; flex-direction: column; align-items: start; gap: 4px; position: relative; z-index: 1; min-width: 140px; padding: 18px 20px; color: var(--p-lime); background: #081c174c; border: 1px solid #c1ff7250; border-radius: 16px; backdrop-filter: blur(10px); box-shadow: 0 11px 40px #041f1966; transform: rotate(-5deg); }
.p-welcome-stat strong { color: #f8ffef; font-size: clamp(25px, 3vw, 45px); font-weight: 800; letter-spacing: -.082em; white-space: nowrap; }
.p-welcome-stat small { color: #d0e7c4; font-size: 11px; }

.p-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: fit-content; min-height: 40px; padding: 0 13px; background: #fff; color: var(--p-ink); border: 1px solid var(--p-border); border-radius: 9px; font-size: 12px !important; font-weight: 800 !important; line-height: 1.2 !important; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.p-button:hover { background: var(--p-tint); border-color: #d3e3ca; }
.p-button-primary { background: var(--p-dark); color: #fff; border-color: var(--p-dark); }
.p-button-primary:hover { background: #24533b; border-color: #24533b; }
.p-button-lime { background: var(--p-lime); color: var(--p-dark); border-color: var(--p-lime); }
.p-button-lime:hover { background: #a8e465; border-color: #a8e465; }
.p-button-quiet { border-color: transparent; background: transparent; color: var(--p-green); }
.p-button-small { min-height: 32px; padding: 0 8px; font-size: 11px !important; }
.p-icon-button { display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--p-border); color: var(--p-ink); border-radius: 9px; width: 37px; height: 37px; flex: none; }
.p-icon-button:hover { background: var(--p-tint); }

.p-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.p-metric-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-metric { background: #fff; border: 1px solid var(--p-border); border-radius: var(--p-round); padding: clamp(13px, 1.6vw, 23px); min-width: 0; display: flex; flex-direction: column; align-items: start; gap: 4px; }
.p-metric-icon { color: var(--p-green); background: #edf4e6; border-radius: 11px; width: 39px; height: 39px; display: inline-grid; place-items: center; flex: none; }
.p-metric .p-metric-icon { margin-bottom: 6px; }
.p-metric p { font-size: 12px; line-height: 1.3; font-weight: 750; color: var(--p-muted); }
.p-metric strong { font-size: clamp(22px, 2.43vw, 38px); letter-spacing: -.075em; line-height: 1.1; font-weight: 850; overflow-wrap: anywhere; }
.p-metric small { color: var(--p-muted); line-height: 1.35; font-size: 10px; }
.p-metric-accent { background: #eef6e5; border-color: #dce9d4; }
.p-metric-accent .p-metric-icon { background: #ddecce; }

.p-overview-grid, .p-location-layout, .p-calendar-layout, .p-form-layout { display: grid; grid-template-columns: minmax(0, 1.78fr) minmax(230px, 1fr); gap: 15px; align-items: start; }
.p-panel { min-width: 0; background: #fff; border: 1px solid var(--p-border); border-radius: var(--p-round); overflow: hidden; }
.p-panel-heading { display: flex; align-items: center; justify-content: space-between; align-items: start; gap: 6px; padding: 17px 18px 13px; }
.p-panel-heading h2, .p-calendar-heading h2, .p-location-details h2, .p-help-panel h2 { font-size: 18px; line-height: 1.25; letter-spacing: -.04em; font-weight: 850; }
.p-panel-heading p { color: var(--p-muted); font-size: 11px; line-height: 1.4; margin-top: 4px; }
.p-panel-heading .p-button { min-height: 32px; padding: 0 6px; font-size: 11px !important; }

.p-table-scroll { overflow-x: auto; }
.p-table { width: 100%; text-align: left; border-collapse: collapse; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.p-table th, .p-table td { padding: 11px 12px; border-top: 1px solid #edf0e9; }
.p-table th:first-child, .p-table td:first-child { padding-left: 18px; }
.p-table th:last-child, .p-table td:last-child { padding-right: 18px; }
.p-table th { color: var(--p-muted); font-weight: 750; background: #f7f8f4; font-size: 10px; }
.p-table tr:hover td { background: #fafbf7; }
.p-table strong, .p-table small { display: block; }
.p-table strong { font-weight: 820; }
.p-table small { color: var(--p-muted); margin-top: 3px; font-size: 10px; }
.p-table-person, .p-table-actions { display: flex; align-items: center; gap: 7px; }
.p-table-avatar { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: var(--p-green); background: var(--p-tint); }
.p-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: #f0f2ec; padding: 4px 7px; font-size: 10px; font-weight: 800; line-height: 1.25; white-space: nowrap; color: #4e6051; }
.p-badge.is-scheduled { color: #365d4d; background: #e8f1ee; }
.p-badge.is-pending { color: #664607; background: #fff3d7; }
.p-badge.is-completed { color: #2b5e24; background: #eaf4e2; }
.p-badge.is-cancelled { color: #824137; background: #f8eae7; }

.p-upcoming { display: grid; padding: 0 13px 11px; }
.p-upcoming > div { display: flex; align-items: center; gap: 8px; padding: 9px 3px; border-top: 1px solid #ebeee5; }
.p-upcoming > div > div { flex: 1; min-width: 0; }
.p-upcoming strong { font-size: 12px; line-height: 1.2; display: block; }
.p-upcoming small { display: block; font-size: 10px; color: var(--p-muted); margin-top: 4px; }
.p-date-chip { display: grid; justify-items: center; place-content: center; width: 36px; height: 40px; border-radius: 8px; color: #275528; background: #edf5e6; flex: none; }
.p-date-chip strong { font-size: 15px; }
.p-date-chip small { margin: 1px 0 0; }
.p-empty { padding: 16px 18px 24px; display: grid; justify-items: start; gap: 5px; }
.p-empty strong { font-size: 13px; margin-top: 4px; }
.p-empty p { color: var(--p-muted); line-height: 1.45; font-size: 12px; }
.p-empty .p-button { margin-top: 6px; }
.p-filters { padding: 13px 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-filters button { display: inline-flex; align-items: center; gap: 4px; border: 1px solid transparent; color: var(--p-muted); background: transparent; padding: 6px 8px; border-radius: 8px; font-size: 12px; font-weight: 750; }
.p-filters button:is(.is-active, :hover) { border-color: #dce8d5; color: #245026; background: #eef5e8; }
.p-filters button span { display: inline-grid; place-items: center; min-width: 19px; height: 18px; padding: 0 3px; border-radius: 999px; color: #3f663d; background: #e8f0e4; font-size: 10px; }

.p-form-layout { grid-template-columns: minmax(0, 1.9fr) minmax(220px, 1fr); }
.p-form { padding: 0 18px 19px; display: grid; gap: 15px; }
.p-form label, .p-route-controls label { display: grid; gap: 5px; font-size: 12px; font-weight: 780; }
.p-form label:has(.p-optional) { display: block; }
.p-form label:has(.p-optional) textarea { display: block; width: 100%; margin-top: 5px; }
.p-optional { font-size: 10px; color: var(--p-muted); font-weight: 600; }
.p-form input:not([type=radio]), .p-form select, .p-form textarea, .p-route-controls input, .p-lookup input { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid #dbe4d5; border-radius: 9px; color: var(--p-ink); background: #fcfdfb; font-size: 13px; }
.p-form textarea { resize: vertical; }
.p-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.p-fieldset legend { font-size: 12px; font-weight: 800; padding: 0 0 6px; }
.p-collection-method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.p-collection-method label { position: relative; display: flex; gap: 7px; align-items: center; min-height: 65px; padding: 8px; cursor: pointer; border: 1px solid #e1e9dc; border-radius: 11px; }
.p-collection-method label:has(input:checked) { background: #f0f6e9; border-color: #83ae77; }
.p-collection-method label:has(input:focus-visible) { outline: 2px solid #55984c; outline-offset: 2px; }
.p-collection-method input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.p-collection-method strong, .p-collection-method small { display: block; }
.p-collection-method strong { line-height: 1.15; }
.p-collection-method small { color: var(--p-muted); font-size: 10px; line-height: 1.2; font-weight: 600; margin-top: 4px; }
.p-choice-icon { color: var(--p-green); display: grid; place-items: center; width: 33px; height: 33px; background: #edf4e6; border-radius: 8px; flex: none; }
.p-pickup-address { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border-radius: 9px; background: var(--p-paper); color: var(--p-green); }
.p-pickup-address strong, .p-pickup-address small { display: block; }
.p-pickup-address strong { font-size: 12px; }
.p-pickup-address small { color: var(--p-muted); font-size: 11px; margin-top: 3px; }
.p-help-panel { background: #eaf4e2; border-radius: var(--p-round); border: 1px solid #dbe7d3; padding: 17px 18px; display: grid; gap: 10px; }
.p-help-panel .p-metric-icon { background: #dbedcc; }
.p-help-panel ol { padding-left: 17px; line-height: 1.5; font-size: 12px; }
.p-help-panel li + li { margin-top: 4px; }
.p-help-panel p, .p-note { font-size: 12px; line-height: 1.5; color: var(--p-muted); }
.p-inline-error { color: #9a352b; font-weight: 700; font-size: 12px; padding: 8px 10px; border-radius: 6px; background: #fcf0ed; }

.p-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 14px 16px; }
.p-calendar-heading h2 { text-transform: capitalize; }
.p-calendar-heading > div { display: flex; align-items: center; gap: 4px; }
.p-calendar-heading .p-button { min-height: 34px; }
.p-calendar-heading .p-icon-button { width: 34px; height: 34px; }
.p-weekdays, .p-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.p-weekdays { color: var(--p-muted); font-size: 10px; font-weight: 750; background: #f7f8f3; border-block: 1px solid #e8ede3; }
.p-weekdays span { padding: 7px 1px; text-align: center; }
.p-calendar-day { display: flex; flex-direction: column; align-items: start; gap: 4px; min-height: clamp(49px, 5.5vw, 84px); padding: 5px; color: var(--p-ink); background: #fff; border: 0; border-right: 1px solid #e8ede3; border-bottom: 1px solid #e8ede3; font-size: 11px !important; font-weight: 800 !important; }
.p-calendar-day:nth-child(7n) { border-right: 0; }
.p-calendar-day.is-outside { background: #f9faf7; color: #6a7869; }
.p-calendar-day:hover, .p-calendar-day.is-selected { background: #eef6e9; }
.p-calendar-day:focus-visible { outline-offset: -2px; }
.p-calendar-day > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; }
.p-calendar-day.is-today > span { color: #fff; background: var(--p-green); }
.p-calendar-day.is-selected:not(.is-today) > span { background: #dcebd4; }
.p-calendar-day small { display: block; color: var(--p-green); padding: 2px 4px; border-radius: 4px; background: #e5f2df; white-space: nowrap; }
.p-day-list { padding: 0 15px 12px; }
.p-day-list article { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; border-top: 1px solid var(--p-border); padding: 10px 0; }
.p-day-list article strong, .p-day-list article small { display: block; }
.p-day-list article strong { font-size: 13px; margin-top: 4px; }
.p-day-list article small { font-size: 11px; margin-top: 2px; color: var(--p-muted); }

.p-location-layout { grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr); }
.p-map-slot { padding: 0 11px 11px; min-width: 0; --eco-map-height: 360px; --eco-map-height-mobile: 285px; }
.p-location-details { padding: 18px; display: grid; gap: 9px; }
.p-location-details .p-overline { margin-top: 5px; font-size: 10px; letter-spacing: .12em; color: var(--p-green); text-transform: uppercase; font-weight: 850; }
.p-location-details > p { font-size: 13px; color: var(--p-muted); line-height: 1.45; }
.p-location-details .p-button { margin-top: 4px; }
.p-location-hours { display: flex; align-items: center; gap: 6px; padding: 9px; border-radius: 8px; background: var(--p-tint); color: #355637; font-size: 11px; font-weight: 750; }
.p-route-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; border: 1px solid var(--p-border); background: #fff; border-radius: 13px; padding: 12px; }
.p-route-controls label { min-width: 155px; }
.p-route-list { list-style: none; display: grid; gap: 4px; padding: 0 9px 9px; }
.p-route-list button { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; background: #fafbf8; border: 1px solid #eef0e9; border-radius: 8px; padding: 8px; color: var(--p-ink); }
.p-route-list button:hover, .p-route-list button.is-selected { background: var(--p-tint); border-color: #bcdbad; }
.p-route-list button > span:nth-child(2) { flex: 1; }
.p-route-list strong, .p-route-list small { display: block; }
.p-route-list strong { font-size: 12px; }
.p-route-list small { color: var(--p-muted); font-size: 10px; margin-top: 2px; }
.p-stop-number { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: #dceecf; color: #285a29; font-size: 11px; font-weight: 850; flex: none; }

.p-bars { display: grid; gap: 15px; padding: 7px 18px 20px; }
.p-bar-row > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; margin-bottom: 5px; }
.p-bar-row strong { font-weight: 800; }
.p-bar-row > div > span { color: var(--p-muted); white-space: nowrap; }
.p-track { height: 8px; background: #edf3e8; border-radius: 10px; overflow: hidden; }
.p-track span { display: block; height: 100%; background: linear-gradient(90deg, #2e672e, #7ab85c); border-radius: inherit; }
.p-points-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(17px, 4vw, 39px); border-radius: var(--p-round); background: radial-gradient(ellipse at 90% 20%, #356041, #102d1d 65%, var(--p-dark)); color: #fff; }
.p-points-card > div { display: grid; gap: 4px; }
.p-points-card > div > span:nth-child(2), .p-points-card p { color: #e2eed8; font-size: 13px; line-height: 1.45; }
.p-points-card strong { color: var(--p-lime); font-size: clamp(37px, 7vw, 75px); line-height: 1; letter-spacing: -.07em; font-weight: 800; white-space: nowrap; }
.p-points-card strong small { font-size: .46em; letter-spacing: -.035em; }
.p-points-card p { max-width: 250px; }
.p-positive { color: var(--p-green); }
.p-negative { color: #9a352b; }
.p-finance-split { display: flex; align-items: center; gap: clamp(14px, 4vw, 45px); padding: 7px 18px 22px; }
.p-donut { width: clamp(110px, 15vw, 190px); aspect-ratio: 1; flex: none; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#2e672e 0 40%, #4f9d47 40% 60%, #86bd57 60% 80%, #c1ff72 80%); }
.p-donut > div { display: grid; place-content: center; text-align: center; width: 74%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.p-donut strong { font-size: clamp(15px, 2vw, 22px); letter-spacing: -.065em; }
.p-donut small { font-size: 9px; color: var(--p-muted); }
.p-finance-split dl { width: min(100%, 490px); display: grid; }
.p-finance-split dl > div { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--p-border); font-size: 12px; }
.p-finance-split dt, .p-finance-split dd { display: flex; align-items: center; gap: 6px; }
.p-finance-split dt i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.p-finance-split dd { margin: 0; text-align: right; }
.p-finance-split dd span { color: var(--p-muted); font-size: 10px; }
.p-finance-split dd strong { min-width: 64px; }

.p-toast { position: fixed; bottom: 18px; right: 18px; z-index: 20; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 36px); background: var(--p-dark); color: #fff; border-radius: 11px; padding: 10px 13px; transform: translateY(120%); opacity: 0; pointer-events: none; transition: transform .22s, opacity .22s; font-size: 13px; font-weight: 750; }
.p-toast.is-visible { opacity: 1; transform: translateY(0); }
.p-toast .icon { color: var(--p-lime); }
.p-dialog { border: 1px solid var(--p-border); border-radius: 20px; color: var(--p-ink); background: #fff; width: min(100% - 22px, 500px); padding: 0; max-height: calc(100dvh - 20px); box-shadow: 0 20px 100px #071a1750; }
.p-dialog::backdrop { background: #081c1799; backdrop-filter: blur(4px); }
.p-dialog-content { padding: 18px; }
.p-dialog-content > header { display: flex; justify-content: space-between; align-items: start; gap: 5px; margin-bottom: 15px; }
.p-dialog-content h2 { font-size: 25px; letter-spacing: -.06em; }
.p-dialog-content header p { color: var(--p-muted); font-size: 12px; line-height: 1.4; margin-top: 3px; }
.p-dialog-content .p-form { padding: 0; }
.p-dialog-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.p-label-print { border: 1px solid #1d3928; border-radius: 10px; padding: 12px; margin-bottom: 15px; }
.p-label-brand { display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #d3dfd4; padding-bottom: 9px; }
.p-label-brand > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid #b5cabb; color: #2e672e; }
.p-label-brand strong, .p-label-brand small, .p-label-body strong { display: block; }
.p-label-brand strong { font-size: 21px; line-height: 1; letter-spacing: -.065em; }
.p-label-brand small, .p-label-body small { font-size: 11px; color: var(--p-muted); }
.p-label-body { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-label-body strong { font-size: 23px; letter-spacing: -.065em; }
.p-label-body p { font-size: 13px; margin-top: 2px; }
.p-label-qr svg { display: block; width: 126px; max-width: 100%; height: auto; }
.p-label-bottom { padding-top: 7px; border-top: 1px solid #d3dfd4; color: var(--p-muted); font-size: 11px; }
.p-lookup { display: flex; align-items: end; gap: 7px; padding: 12px 16px 0; }
.p-lookup label { display: grid; gap: 4px; font-size: 11px; font-weight: 750; }
.p-lookup input { min-width: 0; }
.p-lookup [data-form-error] { max-width: 180px; }
.p-lookup-result { display: grid; justify-items: start; gap: 8px; }
.p-lookup-result p { font-size: 13px; color: var(--p-muted); }
.p-lookup-result .p-table-actions { flex-wrap: wrap; }

@media (max-width: 1140px) {
  .p-portal { grid-template-columns: 210px minmax(0, 1fr); }
  .p-sidebar { padding-inline: 13px; }
  .p-overview-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .p-location-layout, .p-calendar-layout { grid-template-columns: minmax(0, 1fr); }
  .p-form-layout { grid-template-columns: minmax(0, 1fr) minmax(160px, .65fr); }
  .p-calendar-day small span { display: none; }
}

@media (max-width: 760px) {
  .p-portal { display: block; }
  .p-main { min-height: 100dvh; }
  .p-topbar { min-height: 57px; padding: 8px 13px; }
  .p-content { padding: 18px 13px 27px; gap: 13px; }
  .p-sidebar { position: fixed; inset: 0 auto 0 0; width: min(270px, 85vw); transform: translateX(-100%); visibility: hidden; transition: transform .23s ease, visibility .23s ease; z-index: 9; }
  .p-mobile-menu { display: inline-grid !important; }
  .p-sidebar-open .p-sidebar { transform: translateX(0); visibility: visible; }
  .p-sidebar-open .p-overlay { display: block !important; position: fixed; z-index: 8; inset: 0; border: 0; border-radius: 0; background: #081c1790; }
  .p-crumb { gap: 5px; }
  .p-crumb > span:not(:last-child) { display: none; }
  .p-page-heading { align-items: start; }
  .p-page-heading p { font-size: 13px; }
  .p-today { display: none; }
  .p-welcome { min-height: 210px; }
  .p-welcome h2 { font-size: clamp(35px, 6.7vw, 52px); }
  .p-welcome-stat { min-width: 105px; padding: 13px; }
  .p-welcome-stat strong { font-size: 28px; }
  .p-orbit { width: 200px; height: 95px; }
}

@media (max-width: 530px) {
  .p-topbar { gap: 6px; }
  .p-profile { gap: 4px; }
  .p-profile [data-profile-name] { display: none; }
  .p-profile-switch { margin-right: 1px; }
  .p-profile-switch select { max-width: 113px; }
  .p-page-heading { flex-direction: column; gap: 8px; }
  .p-welcome { grid-template-columns: minmax(0, 1fr); min-height: 220px; }
  .p-welcome-art { position: absolute; inset: auto 5% 9% auto; min-height: 70px; width: 75px; z-index: -1; }
  .p-welcome-stat { display: none; }
  .p-welcome p { max-width: 257px; }
  .p-welcome h2 { max-width: 310px; }
  .p-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .p-metric { border-radius: 13px; padding: 10px; }
  .p-metric-icon { width: 33px; height: 33px; border-radius: 8px; }
  .p-metric p { font-size: 11px; }
  .p-metric small { font-size: 9px; }
  .p-form-layout { grid-template-columns: 1fr; }
  .p-form, .p-panel-heading { padding-left: 12px; padding-right: 12px; }
  .p-calendar-day { min-height: 43px; }
  .p-calendar-day > span { width: 18px; height: 18px; }
  .p-points-card { flex-direction: column; align-items: start; gap: 9px; }
  .p-finance-split { flex-direction: column; }
  .p-lookup { flex-wrap: wrap; }
}

@media (max-width: 350px) {
  .p-profile-avatar { display: none; }
  .p-choice-icon { display: none; }
  .p-form-grid { grid-template-columns: 1fr; }
  .p-panel-heading .p-button .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .p-portal *, .p-portal *::before, .p-portal *::after { transition-duration: .01ms !important; }
}

@media print {
  body:has(.p-dialog[open] .p-label-print) { background: #fff; }
  body:has(.p-dialog[open] .p-label-print) .p-portal { display: block; min-height: auto; }
  .p-portal:has(.p-dialog[open] .p-label-print) > :not(.p-dialog),
  .p-dialog:has(.p-label-print) .p-dialog-content > :not(.p-label-print) { display: none !important; }
  .p-dialog[open]:has(.p-label-print) { position: static; display: block; width: 100%; max-width: none; max-height: none; margin: 0; box-shadow: none; border: 0; }
  .p-dialog[open]:has(.p-label-print)::backdrop { display: none; }
  .p-dialog:has(.p-label-print) .p-dialog-content { padding: 0; }
  .p-dialog .p-label-print { width: 95mm; max-width: 100%; break-inside: avoid; }
}

.p-projected { margin-top:22px; }
.p-projected > summary { padding: 3px 0; font-weight: 750; cursor:pointer; }
.p-projected[open] > summary { margin-bottom:16px; }
.p-fin-links { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin:0 0 16px; }
.p-fin-links a { display:inline-flex; align-items:center; gap:6px; color:#225633; font-weight:750; font-size:.8rem; text-decoration:underline; text-underline-offset:4px; }
.p-stock-form { margin-block: 10px 16px; padding-top: 12px; border-top: 1px solid var(--p-border); }
.p-stock-form fieldset { min-width: 0; display: grid; gap: 6px; border: 1px solid var(--p-border); border-radius: 7px; padding: 8px; }
.p-stock-form .p-stock-item { display: flex; align-items: center; gap: 8px; }
.p-stock-form .p-stock-item input { width: auto; height: auto; min-height: 0; }
