/* Wink theme: pink, lime green and plum (taken from the brand photo), on top of Bootstrap 5.
   Shared by Wink Admin and Wink for Business (the Portal keeps the same tokens in its own app.css). */
:root {
    --wink-pink: #c8287f;          /* main colour: buttons, links, active menu item (white text on it is readable) */
    --wink-pink-bright: #e6399b;   /* decoration only (marks, borders), not for text */
    --wink-pink-dark: #a01f66;     /* hover / pressed */
    --wink-pink-soft: #fde7f2;     /* tinted backgrounds */
    --wink-lime: #a6ce39;          /* second colour: decoration only */
    --wink-lime-dark: #4d7c0f;     /* green text and "good" accents */
    --wink-lime-soft: #f1f8dc;
    --wink-plum: #3d1432;          /* side menus */
    --wink-plum-2: #5a1f4a;
    --wink-sun: #f4c20d;           /* the star in the logo */
    --wink-bg: #f8f6f8;
    --wink-line: #ece4ea;
    --wink-surface: #fff;          /* cards, panels */
    --wink-topbar: rgba(255, 255, 255, .92);
    --wink-glow-pink: #fbd3e8;     /* sign-in page background */
    --wink-glow-lime: #e4f3bf;
    --bs-primary: var(--wink-pink);
    --bs-primary-rgb: 200, 40, 127;
    --bs-link-color: var(--wink-pink);
    --bs-link-color-rgb: 200, 40, 127;
    --bs-link-hover-color: var(--wink-pink-dark);
    --bs-link-hover-color-rgb: 160, 31, 102;
    --bs-success: var(--wink-lime-dark);
    --bs-success-rgb: 77, 124, 15;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: var(--bs-link-color);
}

body { background: var(--wink-bg); }

.btn-primary {
    --bs-btn-bg: var(--wink-pink);
    --bs-btn-border-color: var(--wink-pink);
    --bs-btn-hover-bg: var(--wink-pink-dark);
    --bs-btn-hover-border-color: var(--wink-pink-dark);
    --bs-btn-active-bg: var(--wink-pink-dark);
    --bs-btn-active-border-color: var(--wink-pink-dark);
    --bs-btn-disabled-bg: #e48fbd;
    --bs-btn-disabled-border-color: #e48fbd;
}

.btn-outline-primary {
    --bs-btn-color: var(--wink-pink);
    --bs-btn-border-color: #ef9fc9;
    --bs-btn-hover-bg: var(--wink-pink);
    --bs-btn-hover-border-color: var(--wink-pink);
    --bs-btn-active-bg: var(--wink-pink-dark);
    --bs-btn-active-border-color: var(--wink-pink-dark);
}

.btn-success { --bs-btn-bg: var(--wink-lime-dark); --bs-btn-border-color: var(--wink-lime-dark); --bs-btn-hover-bg: #3f6610; --bs-btn-hover-border-color: #3f6610; }
.text-bg-success { background-color: var(--wink-lime-dark) !important; }
.page-link { color: var(--wink-pink); }
.active > .page-link, .page-link.active { background-color: var(--wink-pink); border-color: var(--wink-pink); }
.form-check-input:checked { background-color: var(--wink-pink); border-color: var(--wink-pink); }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { color: var(--wink-pink); }
.nav-pills .nav-link.active { background-color: var(--wink-pink); color: #fff; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: #ef9fc9;
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(200, 40, 127, .45);
}

/* ---- Dark mode ------------------------------------------------------------------------------------------------
   theme.js sets <html data-bs-theme="dark"> (the person's choice, or the device's when they chose "auto").
   Bootstrap switches its own colours; these lines tune them to Wink's plum and make the light-only bits follow. */
[data-bs-theme=dark] {
    color-scheme: dark;
    --wink-bg: #160d13;
    --wink-surface: #22141d;
    --wink-line: #3a2633;
    --wink-topbar: rgba(34, 20, 29, .92);
    --wink-pink-soft: rgba(230, 57, 155, .16);
    --wink-lime-soft: rgba(166, 206, 57, .14);
    --wink-lime-dark: #9ccb3b;          /* readable green on dark */
    --wink-glow-pink: #4a1638;
    --wink-glow-lime: #2a3a10;
    --bs-body-bg: #160d13;
    --bs-body-bg-rgb: 22, 13, 19;
    --bs-body-color: #eee3ea;
    --bs-body-color-rgb: 238, 227, 234;
    --bs-emphasis-color: #fff;
    --bs-secondary-color: rgba(238, 227, 234, .68);
    --bs-secondary-bg: #2c1b26;
    --bs-tertiary-bg: #22141d;
    --bs-border-color: #3a2633;
    --bs-link-color: #f27ab9;           /* lighter pink: readable on dark */
    --bs-link-color-rgb: 242, 122, 185;
    --bs-link-hover-color: #f7a6d0;
    --bs-link-hover-color-rgb: 247, 166, 208;
    --bs-success: #9ccb3b;
    --bs-success-rgb: 156, 203, 59;
}
[data-bs-theme=dark] .card { --bs-card-bg: var(--wink-surface); --bs-card-border-color: var(--wink-line); }
[data-bs-theme=dark] .modal { --bs-modal-bg: var(--wink-surface); }
[data-bs-theme=dark] .dropdown-menu { --bs-dropdown-bg: var(--wink-surface); }
[data-bs-theme=dark] .btn-outline-primary { --bs-btn-color: #f27ab9; --bs-btn-border-color: rgba(242, 122, 185, .5); }
[data-bs-theme=dark] .btn-success { --bs-btn-bg: #4d7c0f; --bs-btn-border-color: #4d7c0f; }
[data-bs-theme=dark] .text-bg-success { background-color: #4d7c0f !important; }
[data-bs-theme=dark] .text-bg-light { color: var(--bs-body-color) !important; background-color: var(--bs-secondary-bg) !important; }
[data-bs-theme=dark] .table-light { --bs-table-bg: var(--bs-secondary-bg); --bs-table-color: var(--bs-body-color); --bs-table-border-color: var(--wink-line); }
[data-bs-theme=dark] .bg-white { background-color: var(--wink-surface) !important; }
[data-bs-theme=dark] .btn-light { --bs-btn-bg: var(--bs-secondary-bg); --bs-btn-border-color: var(--wink-line); --bs-btn-color: var(--bs-body-color); --bs-btn-hover-bg: #3a2633; --bs-btn-hover-color: #fff; }
[data-bs-theme=dark] .page-link, [data-bs-theme=dark] .nav-tabs .nav-link.active { color: var(--bs-link-color); }
[data-bs-theme=dark] .active > .page-link, [data-bs-theme=dark] .page-link.active { color: #fff; }
[data-bs-theme=dark] .shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, .45) !important; }

/* The theme button shows the current choice. */
.wink-theme-btn i { display: none; }
[data-wink-mode=auto] .wink-theme-btn .theme-auto,
[data-wink-mode=light] .wink-theme-btn .theme-light,
[data-wink-mode=dark] .wink-theme-btn .theme-dark,
html:not([data-wink-mode]) .wink-theme-btn .theme-auto { display: inline-block; }

/* The Wink logo and wordmark (logo: branding/svg/wink-A1-lime-pink-rounded.svg; word: Nunito Black). */
.wink-logo { width: 2rem; height: 2rem; flex: none; display: block; }
.wink-word { font-family: Nunito, system-ui, sans-serif; font-weight: 900; letter-spacing: -.01em; }

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* --- Pass designer ------------------------------------------------------------------------ */
.designer-thumb{width:56px;height:56px;border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;font-size:1.4rem}
.designer-thumb.round{border-radius:50%}
.designer-thumb img{max-width:80%;max-height:80%;object-fit:contain}
/* Measured from an iPhone on iOS 27 (points = px): the poster is 329 x 448 and shows the 358-wide artwork cropped
   at the sides; the QR sits at 207-347; Wallet shades the bottom band from 338. */
.pass-poster{position:relative;width:329px;height:448px;border-radius:16px;overflow:hidden;text-align:left;box-shadow:0 10px 30px rgba(0,0,0,.25);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif}
.pass-poster .art{position:absolute;left:-14.5px;top:0;width:358px;height:448px}
.pass-poster .top{position:absolute;left:16px;right:16px;top:14px;display:flex;justify-content:space-between;align-items:flex-start}
.pass-poster .logo{display:flex;align-items:center;gap:8px;font-weight:700;font-size:19px;min-height:30px}
.pass-poster .logo img{height:30px;max-width:126px;object-fit:contain}
.pass-poster .qr{position:absolute;left:94.5px;top:207px;width:140px;height:140px;background:#fff;border-radius:6px;padding:8px}
.pass-poster .qr img{width:100%;height:100%;image-rendering:pixelated}
.pass-poster .band{position:absolute;left:0;right:0;top:338px;bottom:0;background:rgba(0,0,0,.10);padding:28px 16px 0}
.pass-poster .field .lbl,.pass-classic .field .lbl{font-size:11px;font-weight:600}
.pass-poster .field .val{font-size:14px}.pass-poster .field .val.big{font-size:19px}
.pass-poster .field.foot{position:absolute;bottom:12px;font-size:13px}
.pass-classic{width:320px;border-radius:12px;overflow:hidden;text-align:left;box-shadow:0 10px 30px rgba(0,0,0,.25);font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;padding-bottom:14px}
.pass-classic .top{display:flex;align-items:center;gap:8px;height:52px;padding:0 12px;font-weight:600;font-size:16px}
.pass-classic .top img{height:36px;max-width:136px;object-fit:contain}
.pass-classic .strip{width:320px;height:123px;display:block}
.pass-classic .row-fields{display:flex;gap:12px;padding:10px 12px;flex-wrap:wrap}
.pass-classic .field .val{font-size:13px}
.pass-classic .qr{width:128px;height:128px;margin:6px auto 0;background:#fff;border-radius:6px;padding:8px}
.pass-classic .qr img{width:100%;height:100%;image-rendering:pixelated}
.notif{width:320px;background:rgba(127,127,127,.12);border-radius:14px;padding:10px}
.notif img{width:32px;height:32px;border-radius:8px}

/* Steady layout: long values are cut with "…" instead of pushing the logo and fields around (e.g. a frozen card's status). */
.pass-poster .top{height:44px}
.pass-poster .logo{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap}
.pass-poster .logo span{overflow:hidden;text-overflow:ellipsis}
.pass-poster .top .field{flex:0 0 auto;max-width:48%;overflow:hidden}
.pass-poster .top .field .val,.pass-poster .top .field .lbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pass-poster .band .field .val{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pass-poster .band .field.foot{left:16px;right:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pass-classic .top{white-space:nowrap;overflow:hidden}
.pass-classic .row-fields{flex-wrap:nowrap;overflow:hidden;min-height:52px}
.pass-classic .row-fields .field{min-width:0;flex:1 1 0}
.pass-classic .row-fields .field .val,.pass-classic .row-fields .field .lbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pass-back{width:300px;max-height:620px;overflow:auto;text-align:left;background:var(--bs-body-bg,#fff);border:1px solid rgba(127,127,127,.25);border-radius:14px;padding:12px 14px;font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif}
.pass-back .head{display:flex;gap:10px;align-items:center;padding-bottom:10px;border-bottom:1px solid rgba(127,127,127,.2);margin-bottom:4px;font-size:13px}
.pass-back .head img{width:36px;height:36px;border-radius:8px}
.pass-back .item{padding:8px 0;border-bottom:1px solid rgba(127,127,127,.15);font-size:13px}
.pass-back .item .lbl{font-size:11px;color:#888;text-transform:uppercase}
.pass-back .item .val{white-space:pre-line}
.pass-back .item.action{color:#0a7aff}

/* Uploaded pictures on a checkerboard, so their transparent parts are visible. */
.designer-thumb.has-img{background-color:#fff !important;background-image:linear-gradient(45deg,#d9d9d9 25%,transparent 25%),linear-gradient(-45deg,#d9d9d9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d9d9d9 75%),linear-gradient(-45deg,transparent 75%,#d9d9d9 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0}

/* Previews stacked on the right, kept in view (scrolling on their own) while the left side is edited. */
.designer-previews{position:sticky;top:1rem;max-height:calc(100vh - 2rem);overflow-y:auto;padding:4px 4px 16px}
@media (max-width: 991.98px){.designer-previews{position:static;max-height:none;overflow:visible}}

/* ---- iOS 27 poster, measured on an iPhone 17 Pro (iOS 27, Nov 2026; 1 pt = 1 px here) ----------------------------
   Pass 365 x 485. Artwork 358 x 448 scaled to fill it (x1.084 => 388 x 486), centred, ~12 pt cropped each side.
   Wallet shades the top behind the header (black ~29% at the top, gone by ~160 pt) and the bottom band from 369 pt
   (~8% darker). QR box: 155 x 155 at (106, 223), ~10 pt quiet zone. Text: store name top-left at 15 pt, header block
   right-aligned 15 pt from the edge, band label at 405, value at 420, footer at 467. */
.pass-poster{width:365px;height:485px;border-radius:12px}
.pass-poster .art{left:-11.7px;top:0;width:388.4px;height:485.7px}
.pass-poster .shade-top{position:absolute;left:0;right:0;top:0;height:160px;background:linear-gradient(to bottom,rgba(0,0,0,.29),rgba(0,0,0,0));pointer-events:none}
.pass-poster .top{left:15px;right:15px;top:8px;height:40px;align-items:flex-start}
.pass-poster .logo{font-size:17px;font-weight:700;line-height:1.2;margin-top:6px;gap:8px;min-height:0}
.pass-poster .logo img{height:30px;max-width:126px}
.pass-poster .top .field .lbl{font-size:13px;font-weight:700;line-height:1.25;letter-spacing:.02em;text-transform:uppercase}
.pass-poster .top .field .val{font-size:16px;line-height:1.3}
.pass-poster .qr{left:105.7px;top:223.3px;width:155px;height:155px;border-radius:4px;padding:10px;z-index:2}
.pass-poster .band{top:369px;background:rgba(0,0,0,.08);padding:0}
.pass-poster .band .field:not(.foot){position:absolute;left:15px;right:15px;top:36px}
.pass-poster .band .field:not(.foot) .lbl{font-size:13px;font-weight:400;line-height:1.2}
.pass-poster .band .field:not(.foot) .val.big{font-size:19px;line-height:1.3}
.pass-poster .band .field.foot{top:98px;bottom:auto;left:15px;font-size:14px}
/* Classic card (iOS 26 and earlier): drawn from Apple's store-card layout (header 50 pt logo row, 375 x 144 strip,
   one row of fields, barcode at the bottom) at the same 365 pt width; not measured on a device. */
.pass-classic{width:365px;border-radius:12px}
.pass-classic .top{height:56px;padding:0 15px}
.pass-classic .strip{width:365px;height:140px}
.pass-classic .row-fields{padding:10px 15px}
.pass-classic .qr{width:155px;height:155px;padding:10px;border-radius:4px;margin-top:20px}
.notif{width:365px}
.pass-poster .qr,.pass-classic .qr{padding:10.3px}
.pass-poster .qr,.pass-classic .qr{box-sizing:border-box}
.pass-poster .top .field .lbl{text-transform:none}
/* Measured: the poster's logo and name share 113 pt (from 15 to ~128 pt); the name is cut with "…" after that. */
.pass-poster .logo{flex:0 1 auto;max-width:113px;gap:10px;font-size:19px}
.pass-poster .logo img{flex-shrink:0}
.pass-poster .logo span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
