/* ==========================================================================
   SUPPLIER PORTAL (2026-11-23) - sign in / sign up / reset / dashboard
   In the panel's dress: deep navy brand band with the star lattice and the
   stepped merlon edge, a light patterned ground, white cards, label | value
   rows as the booking cards. Phone first; the sign-in pages split into
   brand | form from 992px.
   ========================================================================== */
:root {
    --sp-brand: #1b3768;
    --sp-brand-deep: #122749;
    --sp-accent: #2f5d96;
    --sp-ink: #0f172a;
    --sp-ink-2: #334155;
    --sp-ink-3: #64748b;
    --sp-ink-4: #94a3b8;
    --sp-line: #d6deec;
    --sp-surface: #ffffff;
    --sp-ground: #eef2f8;
    --sp-tint: color-mix(in srgb, var(--sp-accent) 7%, #fff);
    --sp-tline: color-mix(in srgb, var(--sp-accent) 30%, var(--sp-line));
    --sp-head: "Plus Jakarta Sans", system-ui, sans-serif;
    --sp-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --sp-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.05'%3E%3Cpath d='M20 5.86 22.26 14.55 30 10 25.45 17.74 34.14 20 25.45 22.26 30 30 22.26 25.45 20 34.14 17.74 25.45 10 30 14.55 22.26 5.86 20 14.55 17.74 10 10 17.74 14.55Z'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cpath d='M0 16.6 3.4 20 0 23.4-3.4 20ZM40 16.6 43.4 20 40 23.4 36.6 20ZM20-3.4 23.4 0 20 3.4 16.6 0ZM20 36.6 23.4 40 20 43.4 16.6 40Z'/%3E%3C/g%3E%3C/svg%3E");
    --sp-crest: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 18'%3E%3Cpath d='M0,18 L0,13 L4,13 L4,8 L8,8 L8,3 L12,0 L16,3 L16,8 L20,8 L20,13 L24,13 L24,18 Z' fill='%23000'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
.sp-body {
    min-height: 100vh; min-height: 100dvh;
    background: var(--sp-ground); color: var(--sp-ink);
    font: 400 15px/1.5 var(--sp-font);
    -webkit-font-smoothing: antialiased;
}
.sp-body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-color: var(--sp-accent); opacity: .055;
    -webkit-mask-image: var(--sp-lattice); mask-image: var(--sp-lattice);
    -webkit-mask-size: 26px 26px; mask-size: 26px 26px;
}
a { color: var(--sp-accent); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- shared bits -------------------------------------------------------- */
.sp-logo {
    display: inline-grid; place-items: center; flex: none;
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
    color: #fbbf24; font-size: 1.5rem;
}
.sp-logo-sm { width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; }
.sp-crest {
    position: absolute; left: 0; right: 0; bottom: -8px; height: 9px; pointer-events: none;
    background: var(--sp-brand-deep);
    -webkit-mask: var(--sp-crest) 0 100% / auto 9px repeat-x; mask: var(--sp-crest) 0 100% / auto 9px repeat-x;
    transform: scaleY(-1);
}
.sp-band { position: relative; background: var(--sp-brand-deep); color: #fff; isolation: isolate; }

/* ---- auth pages --------------------------------------------------------- */
.sp-auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.sp-auth-brand {
    position: relative; isolation: isolate;
    background: var(--sp-brand-deep); color: #fff;
    padding: 28px 20px 30px;
}
.sp-auth-brand::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-color: #fff; opacity: .06;
    -webkit-mask-image: var(--sp-lattice); mask-image: var(--sp-lattice);
    -webkit-mask-size: 26px 26px; mask-size: 26px 26px;
}
.sp-auth-brand-in { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 0 auto; }
.sp-brand-name { font: 800 1.25rem/1.2 var(--sp-head); }
.sp-brand-tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.sp-auth-brand-in > div { display: grid; gap: 2px; }
.sp-brand-points { display: none; }

.sp-auth-main { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; padding: 24px 12px 20px; }
.sp-auth-card {
    width: 100%; max-width: 520px;
    padding: 22px 18px;
    background: var(--sp-surface); border: 1px solid var(--sp-tline); border-radius: 18px;
    box-shadow: 0 18px 40px -24px rgba(17, 26, 46, .45);
}
.sp-auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sp-auth-head .sp-logo { background: var(--sp-brand); border: 0; display: none; }
.sp-auth-head h1 { margin: 0; font: 800 1.35rem/1.2 var(--sp-head); color: var(--sp-ink); }
.sp-auth-head p { margin: 4px 0 0; font-size: .88rem; color: var(--sp-ink-3); }
.sp-auth-foot { margin: 16px 0 0; font-size: .76rem; color: var(--sp-ink-4); text-align: center; }

/* alerts */
.sp-alert {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
    font-size: .86rem; line-height: 1.45; border: 1px solid;
}
.sp-alert > i { margin-top: 2px; }
.sp-alert.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.sp-alert.is-ok    { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.sp-alert.is-info  { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.sp-alert.is-warn  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.sp-alert a { color: inherit; text-decoration: underline; }

/* form */
.sp-form { display: grid; gap: 14px; }
.sp-sec {
    margin-top: 4px; padding-bottom: 6px; border-bottom: 1px dashed var(--sp-tline);
    font: 800 .7rem/1.2 var(--sp-font); letter-spacing: .1em; text-transform: uppercase;
    color: color-mix(in srgb, var(--sp-accent) 75%, var(--sp-ink));
}
.sp-field { display: grid; gap: 6px; min-width: 0; }
.sp-field > span:first-child, .sp-field-row {
    font: 700 .74rem/1.2 var(--sp-font); letter-spacing: .05em; text-transform: uppercase;
    color: color-mix(in srgb, var(--sp-accent) 70%, var(--sp-ink));
}
.sp-field em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--sp-ink-4); }
.sp-field-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sp-field-row a { font-size: .78rem; text-transform: none; letter-spacing: 0; }
.sp-input {
    position: relative; display: flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 0 12px;
    background: var(--sp-tint); border: 1px solid var(--sp-tline); border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sp-input:focus-within { background: #fff; border-color: var(--sp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-accent) 20%, transparent); }
.sp-input > i { flex: none; width: 16px; text-align: center; color: var(--sp-accent); }
.sp-input input {
    flex: 1 1 auto; min-width: 0; height: 46px; padding: 0;
    border: 0; outline: 0; background: transparent;
    font: 500 .95rem var(--sp-font); color: var(--sp-ink);
}
.sp-input input::placeholder { color: var(--sp-ink-4); font-weight: 400; }
.sp-eye {
    flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-right: -6px;
    border: 0; border-radius: 9px; background: transparent; color: var(--sp-ink-3); cursor: pointer;
}
.sp-eye:hover { background: color-mix(in srgb, var(--sp-accent) 10%, #fff); color: var(--sp-accent); }
.sp-row2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.sp-phone { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; }
.sp-isd input { text-align: center; font-weight: 700; }

.sp-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sp-type { position: relative; cursor: pointer; }
.sp-type input { position: absolute; opacity: 0; pointer-events: none; }
.sp-type > span {
    display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px;
    border: 1px solid var(--sp-tline); border-radius: 12px; background: var(--sp-tint);
    font: 600 .86rem/1.2 var(--sp-font); color: var(--sp-ink-2);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sp-type > span i { flex: none; width: 18px; text-align: center; color: var(--sp-accent); }
.sp-type input:checked + span { background: var(--sp-brand); border-color: var(--sp-brand); color: #fff; }
.sp-type input:checked + span i { color: #fbbf24; }
.sp-type input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sp-accent) 25%, transparent); }

.sp-check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--sp-ink-2); cursor: pointer; }
.sp-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sp-brand); }

.sp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 20px; border: 0; border-radius: 12px;
    font: 800 .95rem/1 var(--sp-font); cursor: pointer; text-decoration: none !important;
}
.sp-btn-primary { width: 100%; background: var(--sp-brand); color: #fff; box-shadow: 0 10px 22px -12px rgba(27, 55, 104, .8); }
.sp-btn-primary:hover { filter: brightness(1.12); }
.sp-switch {
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sp-line);
    text-align: center; font-size: .88rem; color: var(--sp-ink-3);
}

/* confirmation panels */
.sp-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 6px 0 2px; }
.sp-done h2 { margin: 4px 0 0; font: 800 1.15rem/1.3 var(--sp-head); }
.sp-done p { margin: 0 0 8px; font-size: .9rem; color: var(--sp-ink-2); }
.sp-done-ico {
    display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: #fffbeb; color: #d97706; font-size: 1.6rem; border: 1px solid #fde68a;
}
.sp-done-ico.is-ok   { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.sp-done-ico.is-mail { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.sp-done-ico.is-bad  { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

@media (min-width: 480px) {
    .sp-auth-card { padding: 26px 24px; }
    .sp-row2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .sp-auth-wrap { flex-direction: row; }
    .sp-auth-brand { flex: 0 0 42%; display: flex; align-items: center; padding: 48px; }
    .sp-auth-brand-in { flex-direction: column; align-items: flex-start; gap: 18px; max-width: 420px; }
    .sp-auth-brand .sp-logo { width: 72px; height: 72px; border-radius: 20px; font-size: 1.9rem; }
    .sp-brand-name { font-size: 2rem; }
    .sp-brand-points { display: grid; gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .95rem; color: rgba(255, 255, 255, .88); }
    .sp-brand-points li { display: flex; gap: 12px; align-items: center; }
    .sp-brand-points i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fbbf24; }
    .sp-auth-brand .sp-crest { display: none; }
    .sp-auth-main { justify-content: center; padding: 40px 24px; overflow-y: auto; }
    .sp-auth-card { max-width: 540px; padding: 32px; }
    .sp-auth-head .sp-logo { display: inline-grid; color: #fbbf24; }
}

/* ---- signed-in pages ---------------------------------------------------- */
.sp-top { position: relative; isolation: isolate; background: var(--sp-brand-deep); color: #fff; }
.sp-top::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-color: #fff; opacity: .06;
    -webkit-mask-image: var(--sp-lattice); mask-image: var(--sp-lattice);
    -webkit-mask-size: 26px 26px; mask-size: 26px 26px;
}
.sp-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 14px 14px 18px; }
.sp-top-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff !important; text-decoration: none !important; }
.sp-top-brand > span:last-child { display: grid; min-width: 0; line-height: 1.2; }
.sp-top-brand b { font: 800 1rem/1.2 var(--sp-head); }
.sp-top-brand small { font-size: .76rem; color: rgba(255, 255, 255, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-top-who { display: flex; align-items: center; gap: 8px; flex: none; }
.sp-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fbbf24; color: var(--sp-brand-deep); font: 800 .95rem var(--sp-head); }
.sp-top-out {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; background: rgba(255, 255, 255, .1);
    color: #fff !important; font-size: .84rem; text-decoration: none !important;
}
.sp-top-out span { display: none; }

.sp-app-main { max-width: 1100px; margin: 0 auto; padding: 22px 10px 24px; }
.sp-app-foot { padding: 0 12px 24px; text-align: center; font-size: .76rem; color: var(--sp-ink-4); }

.sp-hello {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    margin: 0 0 16px; padding: 16px; border-radius: 16px;
    background: var(--sp-surface); border: 1px solid var(--sp-tline);
}
.sp-hello-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-accent); }
.sp-hello h1 { margin: 2px 0; font: 800 1.35rem/1.2 var(--sp-head); }
.sp-hello p { margin: 0; font-size: .88rem; color: var(--sp-ink-3); }
.sp-hello p i { color: var(--sp-accent); }
.sp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.sp-pill.is-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.sp-grid { display: grid; gap: 14px; }
.sp-side { display: grid; gap: 14px; align-content: start; }
.sp-card {
    overflow: hidden; padding: 14px;
    background: var(--sp-surface); border: 1px solid var(--sp-tline); border-radius: 18px;
    box-shadow: 0 6px 18px -12px rgba(17, 26, 46, .35);
}
.sp-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 1rem/1.2 var(--sp-head); }
.sp-card h2 i { color: var(--sp-accent); }

/* the booking cards' strip + label | value rows */
.sp-card:has(> .sp-card-strip) { padding: 0; background: color-mix(in srgb, var(--sp-accent) 5%, #fff); }
.sp-card-strip { display: flex; align-items: stretch; min-height: 44px; border-bottom: 1px solid var(--sp-tline); background: var(--sp-tint); }
.sp-strip-ref { flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--sp-brand); color: #fff; font: 800 12.5px/1 var(--sp-font); letter-spacing: .03em; }
.sp-strip-mid { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 10px; font: 700 13px/1.2 var(--sp-font); }
.sp-strip-mid i { color: var(--sp-accent); }
.sp-strip-mid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-strip-st { flex: none; display: flex; align-items: center; padding: 0 14px; background: linear-gradient(180deg, #34d399, #059669); color: #fff; font: 800 11px/1 var(--sp-font); letter-spacing: .06em; text-transform: uppercase; }
.sp-rows { --rw: 104px; margin: 10px 12px 12px; overflow: hidden; border: 1px solid var(--sp-tline); border-radius: 12px; background: #fff; }
.sp-rows-head { display: grid; gap: 3px; padding: 11px 14px; border-bottom: 1px solid var(--sp-tline); }
.sp-rows-head span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-accent); }
.sp-rows-head b { font-size: 14.5px; font-weight: 600; color: var(--sp-ink); overflow-wrap: anywhere; }
.sp-rows dl { margin: 0; }
.sp-rows dl > div {
    display: grid; grid-template-columns: var(--rw) minmax(0, 1fr); min-height: 42px;
    border-bottom: 1px solid color-mix(in srgb, var(--sp-accent) 20%, var(--sp-line));
    background: linear-gradient(90deg, var(--sp-tint) 0 var(--rw), var(--sp-tline) var(--rw) calc(var(--rw) + 1px), #fff calc(var(--rw) + 1px));
}
.sp-rows dl > div:last-child { border-bottom: 0; }
.sp-rows dt { display: flex; align-items: center; justify-content: flex-end; margin: 0; padding: 8px 12px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-align: right; color: color-mix(in srgb, var(--sp-accent) 70%, var(--sp-ink)); }
.sp-rows dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; margin: 0; padding: 8px 12px; font-size: 13px; color: var(--sp-ink-2); overflow-wrap: anywhere; }
.sp-rows dd i { color: var(--sp-accent); font-size: 12px; }
.sp-rows dd b { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--sp-ink); }
.sp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--sp-tline); background: var(--sp-tint); font-size: 11.5px; font-weight: 700; color: var(--sp-accent); }
.sp-note { display: flex; gap: 8px; align-items: center; margin: 0 12px 12px; font-size: .8rem; color: var(--sp-ink-3); }
.sp-note i { color: var(--sp-accent); }

.sp-soon ul, .sp-activity { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sp-soon li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sp-tint); border: 1px solid var(--sp-tline); font-size: .88rem; color: var(--sp-ink-2); }
.sp-soon li i { width: 18px; text-align: center; color: var(--sp-accent); }
.sp-activity li { display: flex; align-items: center; gap: 10px; }
.sp-act-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--sp-tint); color: var(--sp-accent); }
.sp-activity b { display: block; font-size: .86rem; }
.sp-activity small { display: block; font-size: .74rem; color: var(--sp-ink-3); }
.sp-muted { margin: 0; font-size: .86rem; color: var(--sp-ink-3); }

@media (min-width: 576px) {
    .sp-top-out span { display: inline; }
    .sp-app-main { padding: 26px 16px; }
}
@media (min-width: 992px) {
    .sp-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
    .sp-hello { padding: 20px 22px; }
    .sp-hello h1 { font-size: 1.6rem; }
}
