/* Fluffy Puffy design system: app shell, shared components and page layouts.
   Presentation only. Markup hooks come from Tailwind utilities and fp-* classes in the views. */

:root {
    --fp-brand: #5192dd;
    --fp-brand-600: #4481c7;
    --fp-brand-700: #3a6db0;
    --fp-brand-800: #2f5a93;
    --fp-brand-50: #f1f6fd;
    --fp-brand-100: #e2edfb;
    --fp-brand-200: #c9ddf6;
    --fp-brand-300: #9fc2ee;
    --fp-ring: rgba(81, 146, 221, .22);
    --fp-brand-solid: #5192dd;
    --fp-solid-600: #4481c7;
    --fp-solid: #3a6db0;
    --fp-solid-hover: #2f5a93;

    --fp-ink: #1c2f47;
    --fp-ink-2: #3a4f68;
    --fp-muted: #66798f;
    --fp-subtle: #74869b;
    --fp-line: #e4eaf2;
    --fp-line-strong: #d2dce8;
    --fp-canvas: #f4f7fb;
    --fp-surface: #ffffff;
    --fp-surface-2: #f8fafd;

    --fp-radius-sm: 8px;
    --fp-radius: 12px;
    --fp-radius-lg: 16px;
    --fp-shadow-sm: 0 1px 2px rgba(20, 42, 72, .05);
    --fp-shadow: 0 1px 2px rgba(20, 42, 72, .04), 0 4px 16px rgba(20, 42, 72, .05);
    --fp-shadow-lg: 0 24px 60px rgba(20, 42, 72, .16);

    --fp-sidebar-w: 256px;
    --fp-sidebar-rail: 76px;
    --fp-topbar-h: 64px;
    --fp-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ------------------------------------------------------------------ base */

body.fp-ui {
    font-family: var(--fp-font);
    color: var(--fp-ink);
    background: var(--fp-canvas);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
}

.fp-ui h1, .fp-ui h2, .fp-ui h3 { color: var(--fp-ink); letter-spacing: -.02em; }
.fp-ui :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--fp-brand-300); outline-offset: 2px; }
.fp-ui button { cursor: pointer; }
.fp-ui button:disabled { cursor: not-allowed; opacity: .55; }
.fp-ui :is(a, button) { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.fp-ui ::selection { background: var(--fp-brand-200); }

.fp-skip { position: fixed; top: -80px; left: 16px; z-index: 9999; background: var(--fpd-ffffff-b, #fff); color: var(--fp-brand-700); padding: 12px 20px; border-radius: 10px; box-shadow: var(--fp-shadow-lg); font-weight: 600; }
.fp-skip:focus { top: 12px; }

/* ------------------------------------------------------------- app shell */

body.fp-app { margin: 0; height: 100vh; height: 100dvh; display: flex; overflow: hidden; }

.fp-sidebar {
    width: var(--fp-sidebar-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--fp-solid-600) 0%, var(--fp-solid) 100%);
    color: #fff;
    z-index: 50;
    transition: width .2s ease, transform .25s ease;
}
.fp-sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; color: #fff; text-decoration: none; min-height: 76px; }
.fp-sidebar-logo { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: var(--fpd-ffffff-b, #fff); border-radius: 13px; box-shadow: 0 6px 16px rgba(10, 30, 60, .18); }
.fp-sidebar-logo img { width: 40px; height: 40px; object-fit: contain; }
.fp-sidebar-title { display: block; font-size: 15px; font-weight: 750; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; }
.fp-sidebar-sub { display: block; font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .78); white-space: nowrap; }

.fp-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.fp-nav-section { margin: 18px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.fp-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 9px 12px;
    margin-bottom: 2px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
    white-space: nowrap;
}
.fp-nav-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.fp-nav-link:hover { background: rgba(255, 255, 255, .13); }
.fp-nav-link[aria-current="page"] { background: var(--fpd-ffffff-b, #fff); color: var(--fp-brand-700); font-weight: 650; box-shadow: 0 6px 16px rgba(10, 30, 60, .14); }

.fp-sidebar-footer { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .16); }
.fp-powered-sidebar { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 10px; padding: 0 4px 10px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fp-powered-label { font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.fp-powered-sidebar img { display: block; width: 138px; height: auto; filter: brightness(0) invert(1); }
.fp-user { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 12px; }
.fp-avatar { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 14px; font-weight: 700; }
.fp-user-meta { min-width: 0; flex: 1; }
.fp-user-name { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-user-role { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.fp-logout { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #fff; }
.fp-logout:hover { background: rgba(255, 255, 255, .16); }
.fp-logout svg { width: 19px; height: 19px; }

/* Collapsed rail (desktop) */
body.fp-sidebar-collapsed .fp-sidebar { width: var(--fp-sidebar-rail); }
body.fp-sidebar-collapsed .fp-sidebar :is(.fp-label, .fp-sidebar-text, .fp-user-meta) { display: none; }
body.fp-sidebar-collapsed .fp-sidebar-brand { justify-content: center; padding-inline: 0; }
body.fp-sidebar-collapsed .fp-nav-section { height: 1px; margin: 14px 10px; overflow: hidden; color: transparent; background: rgba(255, 255, 255, .18); }
body.fp-sidebar-collapsed .fp-nav-link { justify-content: center; padding-inline: 0; }
body.fp-sidebar-collapsed .fp-user { flex-direction: column; padding: 4px 0; }
body.fp-sidebar-collapsed .fp-powered-label { display: none; }
body.fp-sidebar-collapsed .fp-powered-sidebar { margin-bottom: 8px; padding: 0 0 8px; }
body.fp-sidebar-collapsed .fp-powered-sidebar img { width: 48px; }

.fp-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.fp-topbar {
    height: var(--fp-topbar-h);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--fp-line);
    z-index: 30;
}
.fp-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--fp-line); border-radius: 10px; background: var(--fpd-ffffff-b, #fff); color: var(--fp-ink-2); }
.fp-icon-btn:hover { background: var(--fp-brand-50); border-color: var(--fp-brand-200); color: var(--fp-brand-700); }
.fp-icon-btn svg { width: 20px; height: 20px; }

.fp-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--fp-muted); }
.fp-crumbs a { color: var(--fp-muted); text-decoration: none; }
.fp-crumbs a:hover { color: var(--fp-brand-700); }
.fp-crumbs svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--fp-subtle); }
.fp-crumbs strong { color: var(--fp-ink); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fp-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.fp-shift-pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 5px 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid; }
.fp-shift-pill.is-open { background: var(--fpd-effcf4-b, #effcf4); border-color: var(--fpd-c8eed6-b, #c8eed6); color: var(--fpd-17663a-t, #17663a); }
.fp-shift-pill.is-closed { background: var(--fpd-fff8ee-b, #fff8ee); border-color: var(--fpd-fbdcb4-b, #fbdcb4); color: var(--fpd-934a10-t, #934a10); padding-right: 14px; }
.fp-shift-pill .fp-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.fp-shift-pill.is-open .fp-dot { background: #22c55e; animation: fp-pulse 2.4s ease-in-out infinite; }
.fp-shift-pill.is-closed .fp-dot { background: #f59e0b; }
.fp-shift-pill a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--fpd-ffffff-b, #fff); border: 1px solid var(--fpd-f0d2d2-b, #f0d2d2); color: var(--fpd-b42318-t, #b42318); font-size: 12.5px; font-weight: 650; text-decoration: none; }
.fp-shift-pill a:hover { background: var(--fpd-fff1f0-b, #fff1f0); }
.fp-shift-pill.is-closed a { border-color: var(--fpd-fbdcb4-b, #fbdcb4); color: var(--fpd-934a10-t, #934a10); }
.fp-shift-pill.is-closed a:hover { background: var(--fpd-fff1de-b, #fff1de); }
@keyframes fp-pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, .08); } }

.fp-topbar-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--fp-solid); color: #fff; font-size: 13.5px; font-weight: 650; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(58, 109, 176, .25); }
.fp-topbar-btn:hover { background: var(--fp-solid-hover); }
.fp-topbar-btn svg { width: 18px; height: 18px; }
.fp-date { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--fp-ink-2); font-size: 13px; font-weight: 550; white-space: nowrap; }
.fp-date svg { width: 17px; height: 17px; color: var(--fp-brand-600); }

.fp-content { flex: 1; min-height: 0; overflow-y: auto; position: relative; background: var(--fp-canvas); scroll-behavior: smooth; }
.fp-content-inner { min-height: 100%; }

.fp-backdrop { display: none; }
.fp-footer { max-width: 1440px; margin: 0 auto; padding: 0 32px 28px; color: var(--fp-subtle); font-size: 12.5px; }

/* --------------------------------------------------------- flash alerts */

.fp-flash-stack { display: grid; gap: 10px; max-width: 1440px; margin: 0 auto; padding: 20px 32px 0; }
.fp-flash { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px 13px 16px; border: 1px solid; border-radius: var(--fp-radius); background: var(--fpd-ffffff-b, #fff); font-size: 14px; line-height: 1.5; box-shadow: var(--fp-shadow-sm); animation: fp-slide-in .25s ease; }
.fp-flash > svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.fp-flash > p { flex: 1; margin: 0; }
.fp-flash button { display: grid; place-items: center; width: 28px; height: 28px; margin: -3px -3px 0 0; border: 0; border-radius: 8px; background: transparent; color: inherit; opacity: .65; }
.fp-flash button:hover { opacity: 1; background: rgba(0, 0, 0, .05); }
.fp-flash button svg { width: 16px; height: 16px; }
.fp-flash.is-success { background: var(--fpd-f0fdf4-b, #f0fdf4); border-color: var(--fpd-bbf0cf-b, #bbf0cf); color: var(--fpd-166534-t, #166534); }
.fp-flash.is-error { background: var(--fpd-fef3f2-b, #fef3f2); border-color: var(--fpd-fbd0cc-b, #fbd0cc); color: var(--fpd-a8231b-t, #a8231b); }
.fp-flash.is-info { background: var(--fp-brand-50); border-color: var(--fp-brand-200); color: var(--fp-brand-800); }
.fp-flash.is-warning { background: var(--fpd-fffaeb-b, #fffaeb); border-color: var(--fpd-fbe2a8-b, #fbe2a8); color: var(--fpd-8a4b0b-t, #8a4b0b); }
.fp-flash.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
@keyframes fp-slide-in { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------------------ page frame */

.fp-page { max-width: 1440px; margin: 0 auto; padding: 28px 32px 48px; min-width: 0; }
.fp-page > :is(.p-4, .p-6, .p-8):not(.bg-white) { padding: 0; }
.fp-page > :is(.px-4, .px-6):not(.bg-white) { padding-left: 0; padding-right: 0; }
.fp-page > .container { max-width: none; padding: 0; }
.fp-page > div:first-of-type:not(.workspace-context) { min-width: 0; }

.workspace-context { margin: 0 0 6px; }
.workspace-context-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fp-brand-700); }
.workspace-context-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fp-brand-solid); }
.workspace-context-description { display: none; }
.fp-page:has(.fp-eyebrow) > .workspace-context { display: none; }

.fp-page h1 { font-size: 27px; line-height: 1.25; font-weight: 750; letter-spacing: -.025em; color: var(--fp-ink); }
.fp-page h1 + p, .fp-page h1 + .text-gray-600, .fp-page h1 + .text-gray-500 { color: var(--fp-muted); font-size: 14.5px; margin-top: 4px; }
.fp-page h2 { color: var(--fp-ink); font-weight: 700; }
.fp-page .flex.justify-between { gap: 16px; flex-wrap: wrap; }

.fp-eyebrow { margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fp-brand-700); }

/* ------------------------------------------------------------------ cards */

.fp-content :is(div, section, article, form, aside).bg-white:is(.rounded, .rounded-md, .rounded-lg, .rounded-xl, .shadow, .shadow-sm, .shadow-md, .shadow-lg) {
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    box-shadow: var(--fp-shadow);
}
.fp-content .bg-white > .border-b:first-child { border-bottom-color: var(--fp-line); }
.fp-content :is(.bg-gray-50, .bg-gray-100).rounded-lg,
.fp-content :is(.bg-gray-50, .bg-gray-100).rounded-xl,
.fp-content :is(.bg-gray-50, .bg-gray-100).rounded-md { background: var(--fp-surface-2); border: 1px solid var(--fp-line); border-radius: var(--fp-radius); }
.fp-content .border-gray-200, .fp-content .border-gray-100, .fp-content .divide-gray-200 > * + * { border-color: var(--fp-line); }

/* Stat values read as numbers */
.fp-content :is(.text-2xl, .text-3xl, .text-xl).font-bold { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* --------------------------------------------------------------- buttons */

.fp-content :is(a, button, input[type="submit"], input[type="button"])[class*="bg-"]:is([class*="px-"], [class*="py-"]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    line-height: 1.3;
}
.fp-content :is(a, button, input[type="submit"])[class*="bg-"].uppercase { font-size: 13px; }
.fp-content :is(a, button, input[type="submit"])[class*="bg-"][class*="py-2"]:not([class*="text-xs"]):not(.w-full) { min-height: 40px; }
.fp-content :is(a, button)[class*="bg-"]:active:not(:disabled) { transform: translateY(1px); }

/* Primary: brand blue */
.fp-content :is(a, button, input[type="submit"]):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-primary, .bg-primary-dark) {
    background-color: var(--fp-solid);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(20, 42, 72, .08), 0 4px 12px rgba(58, 109, 176, .18);
}
.fp-content :is(a, button, input[type="submit"]):is(.bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-primary, .bg-primary-dark):hover:not(:disabled) { background-color: var(--fp-solid-hover); }

/* Secondary: neutral outline */
.fp-content :is(a, button):is(.bg-gray-100, .bg-gray-200, .bg-gray-300, .bg-gray-500, .bg-gray-600):is([class*="px-"]) {
    background-color: var(--fpd-ffffff-b, #fff);
    color: var(--fp-ink-2);
    border: 1px solid var(--fp-line-strong);
    box-shadow: var(--fp-shadow-sm);
}
.fp-content :is(a, button):is(.bg-gray-100, .bg-gray-200, .bg-gray-300, .bg-gray-500, .bg-gray-600):is([class*="px-"]):hover:not(:disabled) { background-color: var(--fp-surface-2); border-color: var(--fp-subtle); color: var(--fp-ink); }

/* Success, danger and warning keep their meaning */
.fp-content :is(a, button, input[type="submit"]):is(.bg-green-500, .bg-green-600, .bg-green-700) { background-color: #16a34a; color: #fff; box-shadow: 0 4px 12px rgba(22, 163, 74, .18); }
.fp-content :is(a, button, input[type="submit"]):is(.bg-green-500, .bg-green-600, .bg-green-700):hover:not(:disabled) { background-color: #15803d; }
.fp-content :is(a, button, input[type="submit"]):is(.bg-red-500, .bg-red-600, .bg-red-700) { background-color: #dc2626; color: #fff; box-shadow: 0 4px 12px rgba(220, 38, 38, .16); }
.fp-content :is(a, button, input[type="submit"]):is(.bg-red-500, .bg-red-600, .bg-red-700):hover:not(:disabled) { background-color: #b91c1c; }
.fp-content :is(a, button):is(.bg-yellow-500, .bg-yellow-600, .bg-amber-600, .bg-orange-500) { background-color: #b45309; color: #fff; }
.fp-content :is(a, button):is(.bg-yellow-500, .bg-yellow-600, .bg-amber-600, .bg-orange-500):hover:not(:disabled) { background-color: #92400e; }
.fp-page :is(.bg-red-600, .bg-red-700, .bg-green-600, .bg-blue-600, .bg-primary).text-white :is(h1, h2, h3) { color: #fff; }

/* Soft tinted buttons (bg-*-100 with coloured text) */
.fp-content :is(a, button):is(.bg-blue-100, .bg-blue-50):is([class*="px-"]) { background-color: var(--fp-brand-50); color: var(--fp-brand-700); border: 1px solid var(--fp-brand-200); }
.fp-content :is(a, button):is(.bg-blue-100, .bg-blue-50):is([class*="px-"]):hover { background-color: var(--fp-brand-100); }

/* Plain text links inside content */
.fp-content :is(a.text-blue-600, a.text-blue-500, a.text-primary, button.text-blue-600, button.text-primary):not([class*="bg-"]) { color: var(--fp-brand-700); font-weight: 600; }
.fp-content :is(a.text-blue-600, a.text-blue-500, a.text-primary):not([class*="bg-"]):hover { color: var(--fp-brand-800); }
.fp-content .text-primary { color: var(--fp-brand-700); }
.fp-content .bg-primary-light { background-color: var(--fp-brand-100); }

/* ----------------------------------------------------------------- forms */

.fp-content :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="range"]), select, textarea) {
    padding: 10px 13px;
}
.fp-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="range"]),
.fp-content select,
.fp-content textarea {
    min-height: 44px;
    max-width: 100%;
    border: 1px solid var(--fp-line-strong);
    border-radius: 10px;
    background-color: var(--fpd-ffffff-b, #fff);
    color: var(--fp-ink);
    font-size: 14px;
    box-shadow: var(--fp-shadow-sm);
    transition: border-color .15s, box-shadow .15s;
}
.fp-content :is(input, select, textarea):hover:not(:disabled):not(:focus) { border-color: var(--fp-subtle); }
.fp-content :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus { outline: none; border-color: var(--fp-brand-solid); box-shadow: 0 0 0 4px var(--fp-ring); }
.fp-content :is(input, select, textarea):disabled,
.fp-content :is(input, textarea)[readonly] { background-color: var(--fp-surface-2); color: var(--fp-muted); }
.fp-content :is(input, textarea)::placeholder { color: var(--fp-subtle); }
.fp-content :is(input, select, textarea).border-red-500 { border-color: #e5484d; }
.fp-content :is(input, select, textarea).border-red-500:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .16); }
.fp-content input[type="checkbox"], .fp-content input[type="radio"] { width: 17px; height: 17px; accent-color: var(--fp-brand-700); cursor: pointer; }
.fp-content label { color: var(--fp-ink-2); font-weight: 600; font-size: 13.5px; }
.fp-content label:has(> input[type="checkbox"]), .fp-content label:has(> input[type="radio"]) { font-weight: 500; cursor: pointer; }
.fp-content .text-red-500.text-xs, .fp-content .text-red-600.text-sm, .fp-content p.text-red-500 { font-weight: 500; }

.fp-fieldset { border: 1px solid var(--fp-line); border-radius: var(--fp-radius); padding: 24px; margin: 0 0 24px; background: var(--fpd-ffffff-b, #fff); }
.fp-fieldset legend { padding: 0 10px; font-size: 14.5px; font-weight: 700; color: var(--fp-ink); }
.fp-section-heading { margin: 24px 0 16px !important; padding-bottom: 12px; font-size: 15.5px !important; border-bottom: 1px solid var(--fp-line); color: var(--fp-ink) !important; }

/* ---------------------------------------------------------------- tables */

.fp-content table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.fp-content thead th {
    background: var(--fp-surface-2);
    color: var(--fp-muted);
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--fp-line);
}
.fp-content thead { background: transparent; }
.fp-content tbody { background: var(--fpd-ffffff-b, #fff); }
.fp-content tbody td { border-bottom: 1px solid var(--fp-line); color: var(--fp-ink-2); vertical-align: middle; }
.fp-content tbody tr:last-child td { border-bottom: 0; }
.fp-content tbody tr { transition: background-color .12s; }
.fp-content tbody tr:hover > td { background-color: var(--fp-brand-50); }
.fp-content .divide-y > tr + tr { border-top: 0; }
.fp-content .overflow-x-auto:has(> table) { border: 1px solid var(--fp-line); border-radius: var(--fp-radius); background: var(--fpd-ffffff-b, #fff); scrollbar-width: thin; scrollbar-color: var(--fp-line-strong) transparent; }
.fp-content .bg-white:is(.rounded-lg, .rounded-xl, .shadow-md) > .overflow-x-auto:has(> table) { border-width: 0; border-radius: 0 0 var(--fp-radius-lg) var(--fp-radius-lg); }
.fp-content td:last-child :is(a, button):not([class*="bg-"]) { font-weight: 600; }

/* ---------------------------------------------------------------- badges */

.fp-content span.rounded-full[class*="bg-"]:is([class*="px-"], .inline-flex) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(20, 42, 72, .06);
}
.fp-content span.rounded-full:is(.bg-blue-100, .bg-primary-light) { background-color: var(--fp-brand-100); color: var(--fp-brand-800); }

/* ---------------------------------------------------- inline page alerts */

.fp-content .border-l-4 { border-width: 1px; border-left-width: 4px; border-radius: var(--fp-radius); font-size: 14px; }
.fp-content .border-l-4:is(.bg-yellow-50, .bg-yellow-100) { border-color: var(--fpd-fbe2a8-b, #fbe2a8); border-left-color: #f5b324; }
.fp-content .border-l-4:is(.bg-blue-50, .bg-blue-100) { border-color: var(--fp-brand-200); border-left-color: var(--fp-brand); }
.fp-content .border-l-4:is(.bg-green-50, .bg-green-100) { border-color: var(--fpd-bbf0cf-b, #bbf0cf); border-left-color: #22c55e; }
.fp-content .border-l-4:is(.bg-red-50, .bg-red-100) { border-color: var(--fpd-fbd0cc-b, #fbd0cc); border-left-color: #ef4444; }
.fp-content .rounded-xl:is(.bg-green-50, .bg-yellow-50, .bg-blue-50, .bg-red-50) { border-radius: var(--fp-radius-lg); }

/* Empty states */
.fp-content .text-center:is(.py-8, .py-10, .py-12) { margin: 8px; padding: 40px 24px; border: 1px dashed var(--fp-line-strong); border-radius: var(--fp-radius-lg); background: var(--fp-surface-2); color: var(--fp-muted); }
.fp-content .text-center:is(.py-8, .py-10, .py-12) svg { color: var(--fp-brand-300); }

/* ------------------------------------------------------------ pagination */

.fp-content nav[role="navigation"] { margin-top: 4px; }
.fp-content nav[role="navigation"] :is(a, span > span) { border-color: var(--fp-line) !important; }
.fp-content nav[role="navigation"] .shadow-sm { box-shadow: none; }
.fp-content nav[role="navigation"] .rounded-l-md { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.fp-content nav[role="navigation"] .rounded-r-md { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.fp-content nav[role="navigation"] a:hover { background: var(--fp-brand-50); color: var(--fp-brand-700); }
.fp-content nav[role="navigation"] span[aria-current="page"] > span { background: var(--fp-solid) !important; color: #fff !important; border-color: var(--fp-solid) !important; }

/* ------------------------------------------------------- page: dashboard */

.fp-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 28px; }
.fp-shortcuts > a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius-lg);
    background: var(--fpd-ffffff-b, #fff);
    color: var(--fp-ink);
    text-decoration: none;
    box-shadow: var(--fp-shadow);
}
.fp-shortcuts > a:hover { border-color: var(--fp-brand-300); box-shadow: 0 10px 28px rgba(58, 109, 176, .13); transform: translateY(-2px); }
.fp-shortcuts > a:first-child { background: linear-gradient(135deg, var(--fp-solid-600), var(--fp-solid)); border-color: transparent; color: #fff; }
.fp-shortcuts > a:first-child small { color: rgba(255, 255, 255, .82); }
.fp-shortcuts > a:first-child .fp-shortcut-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.fp-shortcuts > a:first-child > span:last-child { color: #fff; }
.fp-shortcuts strong { display: block; font-size: 15px; font-weight: 650; }
.fp-shortcuts small { display: block; margin-top: 2px; font-size: 13px; color: var(--fp-muted); }
.fp-shortcuts > a > span:last-child { margin-left: auto; color: var(--fp-brand-600); font-size: 18px; transition: transform .15s; }
.fp-shortcuts > a:hover > span:last-child { transform: translateX(3px); }
.fp-shortcut-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--fp-brand-50); color: var(--fp-brand-700); font-size: 22px; }
.fp-shortcut-icon svg { width: 22px; height: 22px; }

.fp-dashboard > .grid > div { padding: 22px !important; }

/* ------------------------------------------------- page: sessions & sales */

.fp-context-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--fp-brand-200); border-radius: var(--fp-radius); background: var(--fp-brand-50); color: var(--fp-brand-800); font-size: 14px; }
.fp-context-strip > span:last-child { color: var(--fp-muted); }
.fp-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); animation: fp-pulse 2.4s ease-in-out infinite; }

.fp-sales-ledger { padding: 0; }
.fp-page-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.fp-page-intro p:not(.fp-eyebrow) { color: var(--fp-muted); font-size: 14.5px; }
.fp-soft-badge { padding: 7px 14px; border-radius: 999px; background: var(--fp-brand-100); color: var(--fp-brand-800); font-size: 13px; font-weight: 650; }

.fp-management > div:first-of-type { padding-bottom: 20px; border-bottom: 1px solid var(--fp-line); }
.fp-management table td:nth-child(2) { font-weight: 650; color: var(--fp-ink); }

/* Checkout (point of sale) */
.fp-checkout { gap: 20px; height: auto !important; min-height: 100%; }
.fp-checkout > div:first-child { width: 64%; padding: 0; overflow: visible; }
.fp-checkout > div:nth-child(2) { width: 36%; min-width: 300px; align-self: flex-start; position: sticky; top: 16px; overflow: visible; border: 1px solid var(--fp-line); border-radius: var(--fp-radius-lg); background: var(--fpd-ffffff-b, #fff); box-shadow: var(--fp-shadow); }
.fp-checkout > div:nth-child(2) > div:first-child { background: var(--fp-brand-50); border-radius: var(--fp-radius-lg) var(--fp-radius-lg) 0 0; }
.fp-checkout > div:nth-child(2) > div:last-child { background: var(--fp-surface-2); border-radius: 0 0 var(--fp-radius-lg) var(--fp-radius-lg); }
.fp-checkout .grid-cols-4 { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.fp-checkout .product-item { display: grid; align-items: center; min-height: 132px; padding: 18px 16px; border: 1px solid var(--fp-line); border-radius: 14px; background: var(--fpd-ffffff-b, #fff); box-shadow: var(--fp-shadow-sm); cursor: pointer; }
.fp-checkout .product-item:hover { border-color: var(--fp-brand-300); background: var(--fp-brand-50); box-shadow: 0 8px 22px rgba(58, 109, 176, .12); transform: translateY(-2px); }
.fp-checkout .product-item .text-center { text-align: left; }
.fp-checkout .product-item .text-lg { margin: 8px 0 2px; font-size: 20px; font-weight: 750; color: var(--fp-brand-700); }
.fp-checkout #total-price { font-size: 26px; font-weight: 800; color: var(--fp-brand-800); font-variant-numeric: tabular-nums; }
.fp-checkout #usd-payment-section, .fp-checkout #lbp-payment-section { padding: 14px; border: 1px solid var(--fp-line); border-radius: var(--fp-radius); background: var(--fpd-ffffff-b, #fff); }
.fp-checkout label:has(input[name="payment_method"]) { flex: 1; padding: 10px 16px; border: 1px solid var(--fp-line-strong); border-radius: 10px; background: var(--fpd-ffffff-b, #fff); cursor: pointer; }
.fp-checkout label:has(input[name="payment_method"]:checked) { border-color: var(--fp-brand-solid); background: var(--fp-brand-50); box-shadow: 0 0 0 3px var(--fp-ring); }
.fp-checkout #pay-button { min-height: 48px; font-size: 14px; }
.fp-checkout #pay-button:disabled { background: var(--fpd-dfe7f1-b, #dfe7f1) !important; color: var(--fpd-7d90a6-t, #7d90a6); box-shadow: none; }
.fp-pos-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.fp-pos-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fp-sale-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 22px; }
.fp-sale-types > :is(button, a) {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 16px 12px 12px;
    border: 1px solid var(--fp-line-strong);
    border-radius: 14px;
    background: var(--fpd-ffffff-b, #fff);
    color: var(--fp-ink);
    text-align: left;
    text-decoration: none;
    box-shadow: var(--fp-shadow-sm);
}
.fp-sale-types > :is(button, a) > svg { width: 38px; height: 38px; flex-shrink: 0; padding: 9px; border-radius: 10px; background: var(--fp-brand-50); color: var(--fp-brand-700); }
.fp-sale-types strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.3; }
.fp-sale-types small { display: block; font-size: 12px; color: var(--fp-muted); }
.fp-sale-types > :is(button, a):hover { border-color: var(--fp-brand-300); background: var(--fp-brand-50); }
.fp-sale-types > [aria-pressed="true"] { border-color: var(--fp-brand-solid); background: var(--fp-brand-50); box-shadow: 0 0 0 3px var(--fp-ring); }
.fp-sale-types > [aria-pressed="true"] > svg { background: var(--fp-solid); color: #fff; }
.fp-history-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--fp-line-strong); border-radius: 10px; background: var(--fpd-ffffff-b, #fff); color: var(--fp-ink-2); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--fp-shadow-sm); white-space: nowrap; }
.fp-history-btn:hover { border-color: var(--fp-brand-300); background: var(--fp-brand-50); color: var(--fp-brand-700); }
.fp-history-btn svg { width: 18px; height: 18px; color: var(--fp-brand-600); }
.fp-page-checkout { max-width: none; }
.fp-shell > .border-b:not(.fp-topbar) { flex-wrap: wrap; gap: 8px 16px; padding: 10px 24px; }
.fp-shell > .border-b:not(.fp-topbar) > div { flex-wrap: wrap; gap: 8px; min-width: 0; }
.fp-page-checkout .fp-checkout { padding: 0; }

/* Edit session items */
.fp-edit-items { max-width: 960px; }
.fp-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--fp-line); flex-wrap: wrap; }
.fp-edit-head h2 { font-size: 16px; }
.fp-edit-head p { font-size: 13px; color: var(--fp-muted); }
.fp-edit-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--fp-brand-200); border-radius: 10px; background: var(--fp-brand-50); color: var(--fp-brand-700); font-size: 13px; font-weight: 600; text-decoration: none; }
.fp-edit-link:hover { background: var(--fp-brand-100); }
.fp-edit-link svg { width: 16px; height: 16px; }
.fp-edit-list { padding: 6px 0; }
.fp-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px 40px; align-items: center; gap: 16px; padding: 12px 22px; transition: background-color .15s, opacity .15s; }
.fp-edit-row + .fp-edit-row { border-top: 1px solid var(--fp-line); }
.fp-edit-row.is-selected { background: var(--fp-brand-50); }
.fp-edit-row.is-removed { opacity: .55; }
.fp-edit-row.is-removed .fp-edit-name strong { text-decoration: line-through; }
.fp-edit-name strong { display: block; font-size: 14.5px; font-weight: 650; color: var(--fp-ink); }
.fp-edit-name strong em { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--fpd-fff4e5-b, #fff4e5); color: var(--fpd-934a10-t, #934a10); font-size: 11px; font-style: normal; font-weight: 600; }
.fp-edit-name small { display: block; font-size: 12.5px; color: var(--fp-muted); }
.fp-edit-error { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--fpd-b42318-t, #b42318); }
.fp-edit-subtotal { text-align: right; font-weight: 700; color: var(--fp-ink); font-variant-numeric: tabular-nums; }
.fp-edit-remove { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--fp-subtle); }
.fp-edit-remove:hover { border-color: var(--fpd-f6d4d1-b, #f6d4d1); background: var(--fpd-fef3f2-b, #fef3f2); color: var(--fpd-b42318-t, #b42318); }
.fp-edit-remove svg { width: 16px; height: 16px; }
.fp-qty { display: inline-flex; align-items: center; border: 1px solid var(--fp-line-strong); border-radius: 10px; background: var(--fpd-ffffff-b, #fff); overflow: hidden; box-shadow: var(--fp-shadow-sm); }
.fp-qty button { width: 38px; height: 40px; border: 0; background: var(--fp-surface-2); color: var(--fp-ink-2); font-size: 18px; font-weight: 600; }
.fp-qty button:hover { background: var(--fp-brand-100); color: var(--fp-brand-700); }
.fp-content .fp-qty input { width: 64px; min-height: 40px; padding: 0 4px; border: 0; border-radius: 0; box-shadow: none; text-align: center; font-weight: 650; -moz-appearance: textfield; }
.fp-content .fp-qty input:focus { box-shadow: inset 0 0 0 2px var(--fp-brand); }
.fp-qty input::-webkit-outer-spin-button, .fp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fp-edit-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 20px; border: 1px solid var(--fp-line); border-radius: var(--fp-radius-lg); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); box-shadow: 0 -6px 24px rgba(20, 42, 72, .08); }
.fp-edit-footer > div:first-child { display: flex; gap: 20px; font-size: 13.5px; color: var(--fp-muted); }
.fp-edit-footer strong { margin-left: 6px; color: var(--fp-ink); font-size: 16px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .fp-edit-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
    .fp-edit-subtotal { grid-column: 1; text-align: left; }
    .fp-edit-remove { justify-self: end; }
}

/* Edit session (time, billing, continue playing) */
.fp-edit-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 18px 22px 22px; }
.fp-edit-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fp-edit-field.is-wide { grid-column: 1 / -1; }
.fp-edit-field > label, .fp-edit-label { font-size: 13px; font-weight: 600; color: var(--fp-ink-2); }
.fp-edit-field input, .fp-edit-field select, .fp-edit-field textarea { box-sizing: border-box; }
.fp-edit-hint { min-height: 1em; font-size: 12.5px; color: var(--fp-muted); }
.fp-edit-locked { grid-column: span 2; padding: 12px 14px; border: 1px dashed var(--fp-line-strong); border-radius: var(--fp-radius); background: var(--fp-surface-2); }
.fp-edit-locked strong { font-size: 14.5px; color: var(--fp-ink); }
.fp-edit-locked small { font-size: 12.5px; color: var(--fp-muted); }
.fp-time-summary { padding: 6px 12px; border-radius: 999px; background: var(--fpd-e9f8ef-b, #e9f8ef); color: var(--fpd-17663a-t, #17663a); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fp-time-summary.is-warning { background: var(--fpd-fff4e5-b, #fff4e5); color: var(--fpd-934a10-t, #934a10); }
.fp-time-summary:empty { display: none; }
.fp-hour-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-hour-chips button { padding: 8px 14px; border: 1px solid var(--fp-line-strong); border-radius: 999px; background: var(--fp-surface); color: var(--fp-ink-2); font: 600 13px var(--fp-font); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.fp-hour-chips button:hover { border-color: var(--fp-brand-300); background: var(--fp-brand-50); color: var(--fp-brand-700); }
.fp-hour-chips button[aria-pressed="true"] { border-color: var(--fp-brand-solid); background: var(--fp-brand-solid); color: #fff; }
.fp-hour-chips button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--fp-ring); }
.fp-hour-chips.is-small { margin-top: 4px; }
.fp-hour-chips.is-small button { padding: 5px 11px; font-size: 12.5px; }
.fp-continue { display: flex; gap: 16px; padding: 20px 22px; border: 1px solid var(--fp-brand-200); border-radius: var(--fp-radius-lg); background: linear-gradient(135deg, var(--fp-brand-50), var(--fpd-ffffff-b, #fff) 70%); box-shadow: var(--fp-shadow-sm); }
.fp-continue-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--fp-brand-solid); color: #fff; }
.fp-continue-icon svg { width: 22px; height: 22px; }
.fp-continue-body { flex: 1; min-width: 0; }
.fp-continue-body h2 { font-size: 16px; font-weight: 700; color: var(--fp-ink); }
.fp-continue-body p { margin: 4px 0 14px; font-size: 13.5px; color: var(--fp-muted); max-width: 640px; }
.fp-continue-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fp-continue-custom { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--fp-ink-2); }
.fp-continue-custom input { width: 84px; box-sizing: border-box; }
.fp-continue-preview { font-size: 13px; font-weight: 600; color: var(--fp-brand-700); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
    .fp-edit-locked { grid-column: auto; }
    .fp-continue { flex-direction: column; }
}

/* In-app alert / confirm dialogs (public/js/dialogs.js) */
.fp-popup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(15, 30, 52, .45); backdrop-filter: blur(3px); animation: fp-fade-in .16s ease-out; }
.fp-popup.is-leaving { opacity: 0; transition: opacity .14s ease-in; }
.fp-popup.is-leaving .fp-popup-card { transform: translateY(6px) scale(.97); transition: transform .14s ease-in; }
body.fp-popup-open { overflow: hidden; }
.fp-popup-card { width: min(400px, 100%); box-sizing: border-box; padding: 28px 24px 22px; border-radius: var(--fp-radius-lg); background: var(--fp-surface); box-shadow: var(--fp-shadow-lg); text-align: center; font-family: var(--fp-font); color: var(--fp-ink); animation: fp-pop-in .2s cubic-bezier(.2, .9, .3, 1.2); }
.fp-popup-icon { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; }
.fp-popup-icon svg { width: 26px; height: 26px; }
.fp-popup-card.is-danger .fp-popup-icon { background: var(--fpd-fef3f2-b, #fef3f2); color: var(--fpd-d92d20-t, #d92d20); box-shadow: 0 0 0 8px var(--fpd-fffbfa-b, #fffbfa); }
.fp-popup-card.is-warning .fp-popup-icon { background: var(--fpd-fff4e5-b, #fff4e5); color: var(--fpd-d97706-t, #d97706); box-shadow: 0 0 0 8px var(--fpd-fffaf2-b, #fffaf2); }
.fp-popup-card.is-info .fp-popup-icon { background: var(--fp-brand-50); color: var(--fp-brand); box-shadow: 0 0 0 8px var(--fpd-f8fbfe-b, #f8fbfe); }
.fp-popup-card.is-success .fp-popup-icon { background: var(--fpd-e9f8ef-b, #e9f8ef); color: var(--fpd-17a34a-t, #17a34a); box-shadow: 0 0 0 8px var(--fpd-f5fcf8-b, #f5fcf8); }
.fp-popup-card h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.fp-popup-card p { margin: 0 0 22px; color: var(--fp-muted); font-size: .93rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.fp-popup-actions { display: flex; gap: 10px; }
.fp-popup-btn { flex: 1; padding: 10px 14px; border: 1px solid transparent; border-radius: var(--fp-radius-sm); font: 600 .92rem var(--fp-font); cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.fp-popup-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--fp-ring); }
.fp-popup-btn.is-cancel { border-color: var(--fp-line-strong); background: var(--fp-surface); color: var(--fp-ink-2); }
.fp-popup-btn.is-cancel:hover { background: var(--fp-surface-2); }
.fp-popup-btn.is-ok { background: var(--fp-brand-solid); color: #fff; }
.fp-popup-btn.is-ok:hover { background: var(--fp-solid); }
.fp-popup-card.is-danger .fp-popup-btn.is-ok { background: #d92d20; }
.fp-popup-card.is-danger .fp-popup-btn.is-ok:hover { background: #b42318; }
.fp-popup-card.is-danger .fp-popup-btn.is-ok:focus-visible { box-shadow: 0 0 0 3px rgba(217, 45, 32, .25); }
@media (prefers-reduced-motion: reduce) { .fp-popup, .fp-popup-card { animation: none; } }

/* Play time up popup (sessions list) */
.fp-timeup { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(15, 30, 52, .45); backdrop-filter: blur(3px); animation: fp-fade-in .18s ease-out; }
.fp-timeup[hidden] { display: none; }
body.fp-timeup-open { overflow: hidden; }
.fp-timeup-card { width: min(420px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-sizing: border-box; padding: 28px 24px 22px; border-radius: var(--fp-radius-lg); background: var(--fp-surface); box-shadow: var(--fp-shadow-lg); text-align: center; font-family: var(--fp-font); color: var(--fp-ink); animation: fp-pop-in .22s cubic-bezier(.2, .9, .3, 1.2); }
.fp-timeup-icon { width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--fpd-fff4e5-b, #fff4e5); color: var(--fpd-d97706-t, #d97706); box-shadow: 0 0 0 8px var(--fpd-fffaf2-b, #fffaf2); animation: fp-ring 1.2s ease-in-out 2; }
.fp-timeup-icon svg { width: 30px; height: 30px; }
.fp-timeup h2 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 700; }
.fp-timeup p { margin: 0 0 16px; color: var(--fp-muted); font-size: .92rem; }
.fp-timeup-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; text-align: left; }
.fp-timeup-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--fp-line); border-radius: var(--fp-radius); background: var(--fp-surface-2); font-weight: 600; }
.fp-timeup-list a { flex: none; padding: 7px 12px; border-radius: var(--fp-radius-sm); background: var(--fp-brand-solid); color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; }
.fp-timeup-list a:hover, .fp-timeup-list a:focus-visible { background: var(--fp-solid); outline: none; box-shadow: 0 0 0 3px var(--fp-ring); }
.fp-timeup-item-actions { display: flex; flex: none; gap: 6px; }
.fp-timeup-list a.is-secondary { border: 1px solid var(--fp-brand-200); background: var(--fp-brand-50); color: var(--fp-brand-700); }
.fp-timeup-list a.is-secondary:hover, .fp-timeup-list a.is-secondary:focus-visible { background: var(--fp-brand-100); }
.fp-timeup-actions { display: flex; justify-content: center; }
.fp-timeup-dismiss { width: 100%; padding: 10px 14px; border: 1px solid var(--fp-line-strong); border-radius: var(--fp-radius-sm); background: var(--fp-surface); color: var(--fp-ink-2); font: 600 .9rem var(--fp-font); cursor: pointer; }
.fp-timeup-dismiss:hover { background: var(--fp-surface-2); }
.fp-timeup-dismiss:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--fp-ring); }
@keyframes fp-fade-in { from { opacity: 0; } }
@keyframes fp-pop-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes fp-ring { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-12deg); } 40%, 80% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .fp-timeup, .fp-timeup-card, .fp-timeup-icon { animation: none; } }

/* Reports, details and charts */
.fp-page-report > .grid > div, .fp-page-detail > .grid > div { border-radius: var(--fp-radius-lg); }
.fp-content .chart-container { padding: 16px; border: 1px solid var(--fp-line); border-radius: var(--fp-radius-lg); background: var(--fpd-ffffff-b, #fff); }

/* ----------------------------------------------------------------- login */

.fp-login *, .fp-login *::before, .fp-login *::after,
.fp-portal *, .fp-portal *::before, .fp-portal *::after { box-sizing: border-box; }
body.fp-login { min-height: 100vh; min-height: 100dvh; margin: 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); background:
    radial-gradient(900px 420px at 88% 8%, var(--fp-brand-100), transparent 62%),
    radial-gradient(700px 380px at 100% 100%, var(--fp-brand-50), transparent 58%),
    var(--fp-canvas); }
.fp-login-hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: 44px 48px 40px; overflow: hidden; color: #fff; background:
    radial-gradient(520px 320px at 110% -10%, rgba(255, 255, 255, .2), transparent 60%),
    linear-gradient(155deg, #6aa8e8 0%, var(--fp-brand-solid) 34%, var(--fp-solid) 78%, #274e82 100%); }
.fp-login-hero::before, .fp-login-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.fp-login-hero::before { width: 520px; height: 520px; right: -180px; top: -160px; }
.fp-login-hero::after { width: 380px; height: 380px; left: -140px; bottom: -150px; }
.fp-login-hero > * { position: relative; z-index: 1; }
.fp-login-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fp-login-logo { width: 168px; padding: 14px; border-radius: 24px; background: var(--fpd-ffffff-b, #fff); box-shadow: 0 18px 40px rgba(10, 30, 60, .22); }
.fp-login-logo img { display: block; width: 100%; height: auto; }
.fp-login-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.fp-login-kicker { margin: 0 0 10px; color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.fp-login-hero h2 { margin: 0 0 14px; color: #fff; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.fp-login-hero-copy > p:not(.fp-login-kicker) { max-width: 440px; margin: 0; color: rgba(255, 255, 255, .86); font-size: 16.5px; line-height: 1.65; }
.fp-login-points { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; max-width: 440px; list-style: none; }
.fp-login-points li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.fp-login-point-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; }
.fp-login-point-icon svg { width: 20px; height: 20px; }
.fp-login-points strong { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.fp-login-points small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .74); font-size: 12.5px; }
.fp-login-hero-foot { margin: 0; color: rgba(255, 255, 255, .62); font-size: 13px; font-weight: 600; }
.fp-login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px; }
.fp-login-card { width: 100%; max-width: 440px; padding: 36px 34px 28px; border: 1px solid var(--fp-line); border-radius: 24px; background: var(--fp-surface); box-shadow: 0 20px 60px rgba(28, 47, 71, .08); }
.fp-login-card .fp-login-mobile-logo { display: none; }
.fp-login-card-kicker { margin: 0 0 8px; color: var(--fp-brand-700); font-size: 11.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.fp-login-card h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.fp-login-card > p { margin: 0 0 26px; color: var(--fp-muted); font-size: 15px; }
.fp-login-card label { display: block; margin-bottom: 7px; color: var(--fp-ink-2); font-size: 13.5px; font-weight: 650; }
.fp-field { position: relative; margin-bottom: 16px; }
.fp-field > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--fp-subtle); pointer-events: none; }
.fp-field input { width: 100%; height: 50px; padding: 0 44px; border: 1px solid var(--fp-line-strong); border-radius: 14px; background: var(--fp-surface-2); color: var(--fp-ink); font-size: 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.fp-field input:hover { border-color: var(--fp-brand-300); }
.fp-field input:focus { outline: none; background: var(--fp-surface); border-color: var(--fp-brand-solid); box-shadow: 0 0 0 4px var(--fp-ring); }
.fp-field input::placeholder { color: var(--fp-subtle); }
.fp-password-toggle { position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; transform: translateY(-50%); border: 0; border-radius: 10px; background: transparent; color: var(--fp-muted); }
.fp-password-toggle:hover, .fp-password-toggle.is-on { background: var(--fp-brand-50); color: var(--fp-brand-700); }
.fp-password-toggle svg { width: 18px; height: 18px; }
.fp-login-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 6px; border: 0; border-radius: 14px; background: var(--fp-solid); color: #fff; font-size: 15.5px; font-weight: 750; box-shadow: 0 12px 28px rgba(58, 109, 176, .28); }
.fp-login-submit:hover { background: var(--fp-solid-hover); transform: translateY(-1px); }
.fp-login-submit:active { transform: none; }
.fp-login-submit svg { width: 18px; height: 18px; }
.fp-login-error { display: flex; gap: 10px; margin-bottom: 20px; padding: 12px 14px; border: 1px solid var(--fpd-fbd0cc-b, #fbd0cc); border-radius: 14px; background: var(--fpd-fef3f2-b, #fef3f2); color: var(--fpd-a8231b-t, #a8231b); font-size: 14px; }
.fp-login-error svg { width: 20px; height: 20px; flex-shrink: 0; }
.fp-login-error ul { margin: 0; padding: 0; list-style: none; }
.fp-powered { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--fp-line); color: var(--fp-subtle); font-size: 12px; }
.fp-powered img { width: 128px; height: auto; filter: brightness(0); }

/* ---------------------------------------------------------------- portal */

.fp-portal { min-height: 100vh; margin: 0; padding: 32px 6vw 56px; font-family: var(--fp-font); color: var(--fp-ink); background: radial-gradient(1100px 520px at 85% -10%, var(--fp-brand-100), transparent 60%), radial-gradient(800px 480px at -10% 110%, var(--fp-brand-50), transparent 60%), var(--fpd-ffffff-b, #fff); -webkit-font-smoothing: antialiased; }
.fp-portal header { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1160px; margin: 0 auto; }
.fp-portal-brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.fp-portal-brand img { width: 46px; height: 46px; padding: 3px; border-radius: 13px; background: var(--fpd-ffffff-b, #fff); box-shadow: var(--fp-shadow); object-fit: contain; }
.fp-portal-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fp-brand-700); }
.fp-portal main { max-width: 1160px; margin: 72px auto 0; }
.fp-portal h1 { max-width: 760px; margin: 18px 0 20px; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; font-weight: 800; letter-spacing: -.045em; }
.fp-portal h1 span { color: var(--fp-brand-600); }
.fp-portal .lead { max-width: 560px; color: var(--fp-muted); font-size: 18px; line-height: 1.7; }
.fp-portal .portal-button { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; padding: 15px 26px; border-radius: 12px; background: var(--fp-solid); color: #fff; font-weight: 650; text-decoration: none; box-shadow: 0 12px 28px rgba(58, 109, 176, .28); transition: background-color .15s, transform .15s; }
.fp-portal .portal-button:hover { background: var(--fp-solid-hover); transform: translateY(-1px); }
.fp-portal .portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.fp-portal .portal-card { padding: 26px; border: 1px solid var(--fp-line); border-radius: 20px; background: rgba(255, 255, 255, .85); box-shadow: var(--fp-shadow); }
.fp-portal .portal-card b { display: block; margin: 16px 0 8px; font-size: 18px; letter-spacing: -.01em; }
.fp-portal .portal-card p { margin: 0; color: var(--fp-muted); line-height: 1.65; }
.fp-portal .portal-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--fp-brand-50); color: var(--fp-brand-700); }
.fp-portal .portal-icon svg { width: 24px; height: 24px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
    .fp-shortcuts { grid-template-columns: 1fr; }
    .fp-date { display: none; }
}

@media (max-width: 1023px) {
    .fp-sidebar { position: fixed; inset: 0 auto 0 0; width: min(84vw, var(--fp-sidebar-w)) !important; transform: translateX(-100%); box-shadow: var(--fp-shadow-lg); }
    body.fp-nav-open .fp-sidebar { transform: none; }
    body.fp-sidebar-collapsed .fp-sidebar :is(.fp-label, .fp-sidebar-text, .fp-user-meta) { display: block; }
    body.fp-sidebar-collapsed .fp-nav-link { justify-content: flex-start; padding-inline: 12px; }
    body.fp-sidebar-collapsed .fp-nav-section { height: auto; margin: 18px 12px 6px; color: rgba(255, 255, 255, .7); background: none; }
    body.fp-sidebar-collapsed .fp-sidebar-brand { justify-content: flex-start; padding-inline: 18px; }
    body.fp-sidebar-collapsed .fp-user { flex-direction: row; padding: 6px 6px 6px 8px; }
    body.fp-sidebar-collapsed .fp-powered-label { display: block; }
    body.fp-sidebar-collapsed .fp-powered-sidebar img { width: 138px; }
    .fp-backdrop { position: fixed; inset: 0; z-index: 45; display: block; background: rgba(15, 33, 58, .45); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
    body.fp-nav-open .fp-backdrop { opacity: 1; pointer-events: auto; }
    .fp-checkout { flex-direction: column; }
    .fp-checkout > div:first-child, .fp-checkout > div:nth-child(2) { width: 100%; min-width: 0; position: static; }
}

@media (max-width: 900px) {
    body.fp-login { grid-template-columns: 1fr; }
    .fp-login-hero { min-height: auto; padding: 28px 22px 56px; gap: 22px; }
    .fp-login-logo { width: 132px; padding: 10px; border-radius: 20px; }
    .fp-login-hero h2 { font-size: 32px; }
    .fp-login-hero-copy > p:not(.fp-login-kicker) { font-size: 15px; }
    .fp-login-points, .fp-login-hero-foot { display: none; }
    .fp-login-panel { padding: 0 16px 36px; margin-top: -36px; }
    .fp-login-card { padding: 28px 22px 22px; }
    .fp-login-card .fp-login-mobile-logo { display: none; }
    .fp-login-card-kicker, .fp-login-card h1, .fp-login-card > p { text-align: center; }
    .fp-portal .portal-grid { grid-template-columns: 1fr; }
    .fp-portal main { margin-top: 44px; }
}

@media (max-width: 767px) {
    .fp-login-hero { padding: 22px 18px 48px; }
    .fp-login-hero-top { align-items: flex-start; }
    .fp-login-hero h2 { font-size: 28px; }
    .fp-topbar { padding: 0 14px; gap: 10px; }
    .fp-crumbs { display: none; }
    .fp-topbar-btn .fp-label, .fp-shift-pill .fp-label { display: none; }
    .fp-topbar-btn { padding: 0 11px; }
    .fp-shift-pill.is-open { padding-left: 12px; }
    .fp-page { padding: 20px 16px 40px; }
    .fp-flash-stack { padding: 14px 16px 0; }
    .fp-page h1 { font-size: 23px; }
    .fp-fieldset { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .fp-ui *, .fp-ui *::before, .fp-ui *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
    .fp-sidebar, .fp-topbar, .fp-flash-stack, .fp-backdrop, .workspace-context, .fp-shortcuts, .fp-form-guide, .fp-dialog, .fp-popup { display: none !important; }
    body.fp-app, .fp-shell, .fp-content { display: block; height: auto !important; overflow: visible !important; background: var(--fpd-ffffff-b, #fff) !important; }
    .fp-page { padding: 0; max-width: none; }
    .fp-content :is(div, section).bg-white { box-shadow: none !important; }
}

/* Icon-only row actions */
.fp-icon-action { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; vertical-align: middle; }
.fp-icon-action svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* Payment channel: cash vs Whish Money */
.fp-channel { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.fp-channel-label { display: block; padding: 0; margin-bottom: .45rem; font-size: .875rem; font-weight: 700; color: var(--fp-ink, #1f2937); }
.fp-channel-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; }
.fp-channel-option { position: relative; cursor: pointer; }
.fp-channel-option input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.fp-channel-card { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border: 1.5px solid var(--fp-line, #e5e7eb); border-radius: var(--fp-radius-md, .75rem); background: var(--fpd-ffffff-b, #fff); font-weight: 600; color: var(--fp-ink, #1f2937); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.fp-channel-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .6rem; flex: none; background: var(--fpd-f3f4f6-b, #f3f4f6); color: var(--fpd-6b7280-t, #6b7280); }
.fp-channel-icon svg { width: 1.15rem; height: 1.15rem; }
.fp-channel-option:hover .fp-channel-card { border-color: var(--fpd-cbd5e1-b, #cbd5e1); }
.fp-channel-option input:focus-visible + .fp-channel-card { outline: 3px solid color-mix(in srgb, var(--fp-brand, #2563eb) 35%, transparent); outline-offset: 2px; }
.fp-channel-option.is-cash input:checked + .fp-channel-card { border-color: #16a34a; background: var(--fpd-f0fdf4-b, #f0fdf4); box-shadow: 0 0 0 3px rgb(22 163 74 / .12); }
.fp-channel-option.is-cash input:checked + .fp-channel-card .fp-channel-icon { background: #16a34a; color: #fff; }
.fp-channel-option.is-whish input:checked + .fp-channel-card { border-color: #e11d48; background: var(--fpd-fff1f2-b, #fff1f2); box-shadow: 0 0 0 3px rgb(225 29 72 / .12); }
.fp-channel-option.is-whish input:checked + .fp-channel-card .fp-channel-icon { background: #e11d48; color: #fff; }

.fp-channel-badge { display: inline-flex; align-items: center; gap: .3rem; margin-left: .3rem; padding: .1rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.25rem; white-space: nowrap; background: var(--fpd-f0fdf4-b, #f0fdf4); color: var(--fpd-15803d-t, #15803d); border: 1px solid var(--fpd-bbf7d0-b, #bbf7d0); }
.fp-channel-badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.fp-channel-badge.is-whish { background: var(--fpd-fff1f2-b, #fff1f2); color: var(--fpd-be123c-t, #be123c); border-color: var(--fpd-fecdd3-b, #fecdd3); }
p > .fp-channel-badge:first-child { margin-left: 0; }

.fp-channel-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; }
.fp-channel-summary-item { display: flex; flex-direction: column; gap: .25rem; padding: .7rem .8rem; border-radius: var(--fp-radius-md, .75rem); background: var(--fpd-ffffff-b, #fff); border: 1px solid var(--fp-line, #e5e7eb); }
.fp-channel-summary-item .fp-channel-badge { margin-left: 0; align-self: flex-start; }
.fp-channel-summary-item strong { font-size: 1rem; color: var(--fp-ink, #1f2937); }
.fp-channel-summary-item small { color: var(--fpd-6b7280-t, #6b7280); font-size: .75rem; }

/* Admin dashboard: this month at a glance */
.fp-dash-money { margin-bottom: 1.5rem; padding: 1.1rem 1.2rem; background: var(--fp-surface); border: 1px solid var(--fp-line); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-shadow); }
.fp-dash-money-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .85rem; }
.fp-dash-money-head h2 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--fp-ink); }
.fp-dash-money-head a { font-size: .85rem; font-weight: 700; color: var(--fp-brand); }
.fp-dash-money-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .65rem; }
.fp-dash-stat { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border-radius: var(--fp-radius); background: var(--fp-canvas); border: 1px solid transparent; text-decoration: none; transition: border-color .15s, background-color .15s; }
.fp-dash-stat:hover { border-color: var(--fp-brand-solid); background: var(--fpd-ffffff-b, #fff); }
.fp-dash-stat span { font-size: .78rem; font-weight: 600; color: var(--fp-muted); }
.fp-dash-stat strong { font-size: 1.3rem; font-weight: 800; color: var(--fp-ink); }
.fp-dash-stat small { font-size: .74rem; font-weight: 700; }
.fp-dash-stat small.is-up { color: var(--fpd-15803d-t, #15803d); }
.fp-dash-stat small.is-down { color: var(--fpd-be123c-t, #be123c); }
.fp-dash-today { margin: .85rem 0 0; font-size: .86rem; color: var(--fp-muted); }
.fp-dash-today strong { color: var(--fp-ink); }

/* POS cart: fits the screen, only the item list scrolls */
.fp-checkout > div.fp-cart { display: flex; flex-direction: column; height: calc(100dvh - var(--fp-topbar-h) - 132px); min-height: 400px; overflow: hidden; }
.fp-cart-head { flex: none; padding: 12px 16px 8px; border-bottom: 1px solid var(--fp-line); }
.fp-cart-head h2 { font-size: 15px; font-weight: 700; }
.fp-cart-cols { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--fp-muted); }
.fp-cart .fp-cart-placeholder { flex: none; margin: 12px; padding: 14px; }
.fp-cart-items { flex: 1 1 auto; min-height: 80px; overflow-y: auto; padding: 4px 8px; }
.fp-cart-items .order-item { padding: 6px 4px; font-size: 13.5px; }
.fp-cart-items .order-item button { min-height: 0; }
.fp-cart-footer { flex: none; display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--fp-line); }
.fp-cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fp-cart-total > span { font-size: 13px; font-weight: 600; color: var(--fp-muted); }
.fp-checkout .fp-cart-total #total-price { font-size: 22px; line-height: 1.2; }
.fp-cart-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fp-cart-selects label { display: grid; gap: 3px; min-width: 0; font-size: 11.5px; font-weight: 600; color: var(--fp-muted); }
.fp-content .fp-cart-selects select { min-height: 36px; padding: 6px 28px 6px 10px; font-size: 13px; width: 100%; }
.fp-checkout #usd-payment-section.fp-cart-pay, .fp-checkout #lbp-payment-section.fp-cart-pay { padding: 10px; }
.fp-cart-pay > * + * { margin-top: 6px; }
.fp-cart-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--fp-ink-2); }
.fp-cart-row strong { color: var(--fp-ink); font-variant-numeric: tabular-nums; }
.fp-content .fp-cart-pay input { width: 100%; min-height: 38px; padding: 7px 11px; font-size: 14px; }
.fp-checkout .fp-cart #pay-button { min-height: 42px; }
.fp-checkout .product-item { min-height: 104px; padding: 12px 14px; }
.fp-checkout .product-item .text-lg { margin: 4px 0 0; font-size: 17px; }
.fp-checkout .grid-cols-4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fp-sale-types { margin-bottom: 16px; }
.fp-sale-types > :is(button, a) { padding: 8px 12px 8px 8px; }
.fp-sale-types > :is(button, a) > svg { width: 32px; height: 32px; padding: 7px; }
@media (max-width: 1023px) {
    .fp-checkout > div.fp-cart { height: auto; min-height: 0; overflow: visible; }
    .fp-cart-items { max-height: 40vh; }
}

/* Receipt printed / ready notice (components/receipt-notice) */
.fp-receipt-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; max-width: 1440px; margin: 12px auto 0; padding: 10px 16px; width: calc(100% - 64px); border: 1px solid var(--fp-brand-200); border-radius: var(--fp-radius); background: var(--fp-brand-50); color: var(--fp-brand-800); font-size: 14px; font-weight: 600; }
.fp-receipt-notice svg { width: 18px; height: 18px; flex: none; }
.fp-receipt-notice span { flex: 1; min-width: 0; }
.fp-receipt-notice a { padding: 6px 12px; border: 1px solid var(--fp-brand-200); border-radius: 8px; background: var(--fp-surface); color: var(--fp-brand-700); font-size: 13px; text-decoration: none; }
.fp-receipt-notice a:hover { background: var(--fp-brand-100); }
@media (max-width: 767px) { .fp-receipt-notice { width: calc(100% - 32px); } }
@media print { .fp-receipt-notice { display: none !important; } }

.fp-shift-pill.is-open.is-stale { background: var(--fpd-fff8ee-b, #fff8ee); border-color: var(--fpd-fbdcb4-b, #fbdcb4); color: var(--fpd-934a10-t, #934a10); }
.fp-shift-pill.is-open.is-stale .fp-dot { background: #f59e0b; }
.fp-stale-shift { border-color: var(--fpd-fbdcb4-b, #fbdcb4); background: var(--fpd-fff8ee-b, #fff8ee); color: var(--fpd-934a10-t, #934a10); }
.fp-stale-shift span { font-weight: 600; }
.fp-stale-shift a { border-color: var(--fpd-fbdcb4-b, #fbdcb4); color: var(--fpd-934a10-t, #934a10); font-weight: 700; white-space: nowrap; }
.fp-stale-shift a:hover { background: var(--fpd-fff1de-b, #fff1de); }

.fp-printer-missing { border-color: var(--fpd-fbdcb4-b, #fbdcb4); background: var(--fpd-fff8ee-b, #fff8ee); color: var(--fpd-934a10-t, #934a10); }
.fp-printer-missing a { border-color: var(--fpd-fbdcb4-b, #fbdcb4); color: var(--fpd-934a10-t, #934a10); font-weight: 700; white-space: nowrap; }
.fp-printer-missing a:hover { background: var(--fpd-fff1de-b, #fff1de); }
.fp-printer-ready:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fpd-c8eed6-b, #c8eed6); background: var(--fpd-effcf4-b, #effcf4); color: var(--fpd-17663a-t, #17663a); font-size: 13px; font-weight: 600; white-space: nowrap; }
.fp-printer-ready .fp-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
@media (max-width: 1100px) { .fp-printer-ready .fp-label { display: none; } }
