:root {
    --bg: #f7f6f3;
    --card: #ffffff;
    --ink: #1a1a1a;
    --ink-2: #4a4a4a;
    --hint: #6a6a6a;
    --line: #e8e6e2;
    --accent: #1a1a1a;
    --accent-ink: #ffffff;
    --error-bg: #fef2f2;
    --error-ink: #991b1b;
    --success-bg: #f0fdf4;
    --success-ink: #14532d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    /* min() pins width to 640px on wide viewports and shrinks to the available
       width (viewport minus body padding) on narrow ones. `max-width: 100%`
       alone wasn't reliably shrinking inside the body's flex+align-items:center
       layout — this is deterministic across browsers. */
    width: min(640px, calc(100vw - 48px));
    background: var(--card);
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
header h1 { font-size: 22px; margin: 0 0 4px 0; font-weight: 600; }
header .sub { font-size: 13px; color: var(--hint); margin: 0; letter-spacing: 0.5px; text-transform: uppercase; }

h2 { font-size: 18px; margin: 0 0 8px 0; font-weight: 600; }
p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 16px 0; }
p.hint { font-size: 12px; color: var(--hint); margin-top: -8px; }

label {
    display: block;
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 14px;
}
label input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
}
label input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

button {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}
button.primary { background: var(--accent); color: var(--accent-ink); width: 100%; }
button.primary:hover { background: #000; }
button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
button.secondary:hover { background: #f4f4f5; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

form { margin-top: 4px; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.link-row {
    margin-top: 18px;
    font-size: 13px;
    text-align: center;
}
.link-row a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.banner {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}
.banner.error { background: var(--error-bg); color: var(--error-ink); }
.banner.success { background: var(--success-bg); color: var(--success-ink); }

.foot {
    margin-top: 24px;
    color: var(--hint);
    font-size: 11px;
    text-align: center;
}

/* ============================================================
   Phase 2 additions: wordmark, shell, hero, mini, avatar
   dropdown, skeletons, status pills, error banner.
   ============================================================ */

:root {
    --p-green:    #6BB14A;
    --p-green-bg: #dcfce7;
    --p-amber:    #d97706;
    --p-amber-bg: #fef3c7;
    --p-blue:     #2563eb;
    --p-blue-bg:  #dbeafe;
}

/* ---- Body override when the authed shell is mounted ----
   Phase 1's body uses flex centering for the auth card. The shell needs
   full-viewport grid behaviour, not centered. Scope override via :has(). */
body:has(.shell) {
    display: block;
    padding: 0;
}

/* ---- Wordmark ---- */
.wordmark { display: inline-flex; align-items: baseline; gap: 5px; }
.wordmark .alpha   { font-weight: 800; letter-spacing: 1px; color: var(--ink); }
.wordmark .decking { font-weight: 400; letter-spacing: 2px; color: var(--ink); }

/* ---- Auth card (Phase 1 layout but using new wordmark) ---- */
.auth-card header h1 { display: none; }  /* legacy text replaced by wordmark */

/* ---- Shell layout ---- */
.shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
}
.shell-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 10;
}
.shell-header .wordmark .alpha,
.shell-header .wordmark .decking { font-size: 16px; }

.shell-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 0;
}
.shell-main {
    padding: 28px 32px;
    min-height: calc(100vh - 64px);
}

@media (max-width: 767px) {
    .shell { grid-template-rows: auto 1fr auto; }
    .shell-body { grid-template-columns: 1fr; }
    .shell-sidebar { display: none; }
    .shell-main { padding: 20px 16px 16px 16px; }
}
@media (min-width: 768px) {
    .shell-bottomtabs { display: none; }
}

/* ---- Sidebar ---- */
.shell-sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 20px 12px;
    display: flex; flex-direction: column; gap: 4px;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; border-radius: 8px;
    font-size: 13.5px; color: var(--ink-2);
    text-decoration: none;
    background: transparent; border: 0; cursor: pointer;
    font-family: inherit; text-align: left; width: 100%;
}
.nav-item:hover { background: #f4f4f5; }
.nav-item.active { background: #f4f4f5; color: var(--ink); font-weight: 600; }
.nav-item.soon { opacity: 0.5; cursor: not-allowed; }
.nav-item.soon .pill {
    font-size: 9.5px; border: 1px solid currentColor;
    border-radius: 3px; padding: 1px 5px; margin-left: 6px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-spacer { flex: 1; }
.nav-item.signout { color: var(--hint); font-size: 12.5px; }

/* ---- Bottom tabs ---- */
.shell-bottomtabs {
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
}
.tab-item {
    flex: 1; padding: 10px 0;
    text-align: center; font-size: 11px; color: var(--hint);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none;
    background: transparent; border: 0; cursor: pointer;
    font-family: inherit;
}
.tab-item.active { color: var(--p-green); font-weight: 600; }
.tab-item.soon { opacity: 0.45; pointer-events: none; }
.tab-item svg { width: 20px; height: 20px; }

/* ---- Avatar button + dropdown ---- */
.avatar-btn { background: transparent; border: 0; padding: 0; cursor: pointer; }
.avatar {
    width: 28px; height: 28px;
    background: var(--ink); color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 500;
}
.avatar-menu {
    position: absolute; top: 58px; right: 20px;
    background: #fff; border: 1px solid var(--line);
    border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    width: 220px; padding: 6px; z-index: 20;
}
.avatar-menu-meta { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.avatar-menu-meta .label { font-size: 10px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.avatar-menu-meta .email { font-size: 13px; color: var(--ink); word-break: break-all; }
.avatar-menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; font-size: 13.5px; color: var(--ink);
    border-radius: 6px; text-decoration: none;
    background: transparent; border: 0; cursor: pointer; width: 100%;
    font-family: inherit; text-align: left;
}
.avatar-menu-item:hover { background: #f4f4f5; }
.avatar-menu-item svg { width: 16px; height: 16px; }

/* ---- Pages ---- */
.home-page, .me-page { max-width: 840px; margin: 0 auto; }
.home-page h1, .me-page h1 { font-size: 22px; margin: 0 0 4px 0; font-weight: 600; }
.page-sub { font-size: 13px; color: var(--hint); margin: 0 0 4px 0; }

/* ---- Hero card ---- */
.hero {
    background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 24px;
    margin-top: 18px;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hero-ref { font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.6px; }
.hero-heading { font-size: 19px; font-weight: 600; margin: 0 0 6px 0; }
.hero-date { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.hero-date strong { color: var(--ink); }
.hero-help { font-size: 12.5px; color: var(--hint); margin: 12px 0 0 0; }
.hero.hero-empty {
    text-align: center; padding: 40px 28px;
    background: linear-gradient(135deg, #fbfaf8 0%, #f4f4f5 100%);
}
.hero-empty-icon {
    width: 56px; height: 56px; background: #fff; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 14px; border: 1px solid var(--line);
}

/* ---- Status pills ---- */
.status-pill { font-size: 11px; padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.status-pill-received  { color: var(--p-amber); background: var(--p-amber-bg); }
.status-pill-scheduled { color: var(--p-blue);  background: var(--p-blue-bg); }
.status-pill-out       { color: var(--p-green); background: var(--p-green-bg); }
.status-pill-delivered { color: #14532d;        background: var(--p-green-bg); }
.status-pill-issue     { color: var(--p-amber); background: var(--p-amber-bg); }

/* ---- Progress bar ---- */
.progress { display: flex; gap: 4px; margin-top: 18px; }
.progress .seg { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.progress .seg-done, .progress .seg-current { background: var(--p-green); }
.progress .seg-issue { background: var(--p-amber); }
.progress-labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; gap: 4px; }
.progress-labels .lbl { font-size: 10px; color: var(--hint); }
.progress-labels .lbl.now { color: var(--ink); font-weight: 600; }

/* ---- Mini cards ---- */
.mini-section { margin-top: 22px; }
.mini-section-title { font-size: 12px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 10px 0; font-weight: 600; }
.mini {
    background: #fff; border: 1px solid var(--line);
    border-radius: 10px; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
    cursor: default;
}
.mini-left { display: flex; flex-direction: column; gap: 2px; }
.mini-ref { font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.5px; }
.mini-date { font-size: 13px; color: var(--ink); font-weight: 500; }
.status-mpill { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.status-mpill-received  { color: var(--p-amber); background: var(--p-amber-bg); }
.status-mpill-scheduled { color: var(--p-blue);  background: var(--p-blue-bg); }
.status-mpill-out       { color: var(--p-green); background: var(--p-green-bg); }
.status-mpill-delivered { color: #14532d;        background: var(--p-green-bg); }
.status-mpill-issue     { color: var(--p-amber); background: var(--p-amber-bg); }
.mini-more-note { font-size: 12px; color: var(--hint); margin-top: 10px; text-align: center; }

/* ---- My Details cards ---- */
.me-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 16px; }
.me-card-title { margin: 0 0 14px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--hint); }
.field { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.field:first-of-type { border-top: 0; padding-top: 4px; }
.field .lbl { font-size: 12px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.5px; }
.field .val { font-size: 14px; }
.field .dash { color: var(--hint); }
.verified { color: var(--p-green); font-size: 11px; margin-left: 8px; font-weight: 600; }
@media (max-width: 480px) {
    .field { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
    .field .lbl { font-size: 10.5px; }
}
.help-note {
    font-size: 12px; color: var(--hint); margin-top: 18px;
    padding: 12px; background: #fbfaf8; border-radius: 8px;
    border: 1px dashed var(--line);
}
.help-note strong { color: var(--ink-2); }
.help-note a { color: inherit; }

/* ---- Skeletons ---- */
.sk { background: var(--line); border-radius: 4px; animation: sk-pulse 1.2s ease-in-out infinite; }
.sk-line { height: 12px; }
.sk-w-40 { width: 40%; } .sk-w-50 { width: 50%; } .sk-w-60 { width: 60%; } .sk-w-70 { width: 70%; } .sk-w-80 { width: 80%; }
.sk-h-32 { height: 32px; }
.skeleton-hero { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 18px; }
.skeleton-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 16px; }
.sk-progress { display: flex; gap: 4px; margin-top: 18px; }
.sk-seg { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
@keyframes sk-pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---- Error banner ---- */
.error-banner { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 20px; margin-top: 18px; text-align: center; }
.error-banner p { margin: 0 0 12px 0; color: #991b1b; font-size: 14px; }
.error-banner .primary { background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 6px; border: 0; cursor: pointer; font-size: 13px; }

/* Override repeat: the .shell-bottomtabs base style above sets display: flex
   AFTER the earlier @media (min-width: 768px) { display: none } rule, so the
   base wins on desktop. Re-declare the desktop override here at the end of
   the file to restore the intended behaviour. */
@media (min-width: 768px) {
    .shell-bottomtabs { display: none; }
}

/* ============================================================
   Phase 3 additions: orders list, stepper-large, outcome banner,
   terminal pills, hero/mini link wrappers.
   ============================================================ */

/* ---- Orders list page ---- */
.orders-page { max-width: 840px; margin: 0 auto; }
.orders-page h1 { font-size: 22px; margin: 0 0 4px 0; font-weight: 600; }
.orders-section { margin-top: 22px; }
.orders-section-title {
    font-size: 12px; color: var(--hint); text-transform: uppercase;
    letter-spacing: 0.5px; margin: 0 0 10px 0; font-weight: 600;
}
.orders-more-note { font-size: 12px; color: var(--hint); margin-top: 10px; text-align: center; }

.order-row-link {
    display: block; text-decoration: none; color: inherit;
    border-radius: 10px; margin-bottom: 8px;
    transition: background 0.15s ease, transform 0.05s ease;
}
.order-row-link:hover { background: #fbfaf8; }
.order-row-link:active { transform: scale(0.998); }
.order-row {
    background: #fff; border: 1px solid var(--line);
    border-radius: 10px; padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
}
.order-row-left { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.order-row-ref  { font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.5px; }
.order-row-date { font-size: 13px; color: var(--ink); font-weight: 500; }
.order-row-chev {
    font-size: 22px; color: var(--hint); line-height: 1;
    font-family: -apple-system, sans-serif;
}

/* ---- Empty state ---- */
.orders-empty {
    text-align: center; padding: 48px 28px;
    background: linear-gradient(135deg, #fbfaf8 0%, #f4f4f5 100%);
    border: 1px solid var(--line); border-radius: 16px; margin-top: 22px;
}
.orders-empty-icon {
    width: 56px; height: 56px; background: #fff; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 14px; border: 1px solid var(--line);
}
.orders-empty-heading { font-size: 18px; font-weight: 600; margin: 0 0 6px 0; }
.orders-empty-help    { font-size: 13px; color: var(--hint); margin: 0; }

/* ---- Terminal status pills ---- */
.status-pill-completed,
.status-mpill-completed { color: #14532d; background: var(--p-green-bg); }
.status-pill-refunded,
.status-mpill-refunded  { color: #44403c; background: #f5f5f4; }
.status-pill-cancelled,
.status-mpill-cancelled { color: #4b5563; background: #f3f4f6; }

/* ---- Skeleton row used in list loading ---- */
.skeleton-row {
    background: #fff; border: 1px solid var(--line);
    border-radius: 10px; padding: 12px 16px; margin-bottom: 8px;
}

/* ---- Order detail page ---- */
.order-detail-page { max-width: 840px; margin: 0 auto; }
.back-link { display: inline-block; font-size: 13px; color: var(--hint); text-decoration: none; margin-bottom: 12px; }
.back-link:hover { color: var(--ink); }

.detail-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0 14px 0;
}
.detail-ref { font-size: 12px; color: var(--hint); text-transform: uppercase; letter-spacing: 0.6px; }

.detail-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 22px; margin-top: 14px;
}
.detail-card-title {
    margin: 0 0 12px 0; font-size: 12px; color: var(--hint);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.detail-date { font-size: 15px; color: var(--ink-2); margin: 0 0 8px 0; }
.detail-date strong { color: var(--ink); }

/* Stepper sized larger on the detail card (same DOM as Home hero). */
.stepper-large .progress { margin-top: 22px; }
.stepper-large .progress .seg { height: 6px; }
.stepper-large .progress-labels .lbl { font-size: 11.5px; }

/* Address + items */
.detail-address { font-size: 15px; color: var(--ink); margin: 0; line-height: 1.5; }
.items-list { list-style: none; padding: 0; margin: 0; }
.items-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 0; border-top: 1px solid var(--line);
    font-size: 14px;
}
.items-list li:first-child { border-top: 0; padding-top: 4px; }
.item-name { color: var(--ink); }
/* Match dashboard .wh-item-qty / .lo-item-qty exactly (style.css:5621/5304). */
.item-qty  {
    flex-shrink: 0;
    font-size: 0.75rem; font-weight: 600;
    color: #fff; background: #475569;
    padding: 0.15rem 0.5rem; border-radius: 4px;
    min-width: 1.75rem; text-align: center; white-space: nowrap;
}
.items-empty { font-size: 13px; color: var(--hint); margin: 0; }

/* Items card with Original Order + Items Breakdown subsections — edge-to-edge
   band labels (echoes dashboard .products-section-label, style.css:1209) with
   a portal-specific colored dot + subtitle to differentiate the two roles. */
.detail-card-items { padding: 0; overflow: hidden; }
.items-subsection + .items-subsection .items-subsection-head { border-top: 1px solid var(--line); }
.items-subsection-head {
    padding: 14px 22px 12px;
    background: #f8fafc; border-bottom: 1px solid var(--line);
}
.items-subsection-title {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 3px 0;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #64748b;
}
.items-subsection-title::before {
    content: ''; display: inline-block;
    width: 7px; height: 7px; border-radius: 50%;
    flex-shrink: 0;
}
.items-subsection--original   .items-subsection-title::before { background: var(--p-blue); }
.items-subsection--breakdown  .items-subsection-title::before { background: var(--p-green); }
.items-subsection-subtitle {
    margin: 0; padding-left: 15px;
    font-size: 12px; color: var(--hint); line-height: 1.3;
}
.detail-card-items .items-list li { padding: 12px 22px; border-top: 1px solid var(--line); }
.detail-card-items .items-list li:first-child { border-top: 0; }

/* Outcome banner */
.outcome-banner {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 32px 24px; text-align: center; margin-top: 14px;
}
.outcome-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 12px;
    background: #f4f4f5; color: var(--ink);
}
.outcome-banner.outcome-delivered .outcome-icon,
.outcome-banner.outcome-completed .outcome-icon { background: var(--p-green-bg); color: #14532d; }
.outcome-banner.outcome-refunded  .outcome-icon { background: #f5f5f4; color: #44403c; }
.outcome-banner.outcome-cancelled .outcome-icon { background: #f3f4f6; color: #4b5563; }
.outcome-heading { font-size: 20px; margin: 0 0 4px 0; font-weight: 600; }
.outcome-date    { font-size: 14px; color: var(--ink-2); margin: 0 0 8px 0; }
.outcome-sub     { font-size: 13.5px; color: var(--hint); margin: 0; max-width: 480px; margin-left: auto; margin-right: auto; }

/* 404 / not-found card on detail page */
.detail-notfound {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 40px 24px; text-align: center; margin-top: 14px;
}
.detail-notfound h2 { font-size: 18px; margin: 0 0 8px 0; font-weight: 600; }
.detail-notfound p  { font-size: 13.5px; color: var(--hint); margin: 0; }

/* ---- Home hero/mini become links in Phase 3 ---- */
.hero-link, .mini-link {
    display: block; text-decoration: none; color: inherit;
}
.hero-link { margin-top: 18px; }
.hero-link .hero { margin-top: 0; position: relative; transition: transform 0.05s ease; }
.hero-link:hover .hero { background: #fbfaf8; }
.hero-link:active .hero { transform: scale(0.998); }
.hero-chev {
    position: absolute; top: 18px; right: 20px;
    font-size: 22px; color: var(--hint); line-height: 1;
    font-family: -apple-system, sans-serif;
}

.mini-link .mini { margin-bottom: 0; transition: background 0.15s ease, transform 0.05s ease; cursor: pointer; }
.mini-link { margin-bottom: 8px; }
.mini-link:hover .mini { background: #fbfaf8; }
.mini-link:active .mini { transform: scale(0.998); }
.mini-chev {
    margin-left: 8px; font-size: 18px; color: var(--hint); line-height: 1;
    font-family: -apple-system, sans-serif;
}

/* ============================================================
   Phase 4: detail-page invoice card. The standalone invoices list
   view shipped briefly in this branch but was pulled — invoices
   live inside the order they belong to, accessed via the order
   detail page.
   ============================================================ */

/* ---- Detail-page invoice card ---- */
.detail-card.invoice-card { text-align: center; }
.detail-invoice-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px;
    background: var(--p-green-bg); color: #14532d;
    font-size: 15px; font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.05s ease;
}
.detail-invoice-cta:hover  { background: #d6f5dd; }
.detail-invoice-cta:active { transform: scale(0.98); }
.detail-invoice-cta-icon { font-size: 16px; line-height: 1; }
