/* JDE Complaints - Paxon brand styling.
   Colours, fonts and UI feedback colours follow the Paxon brand guide:
   Paxon Blue dominant, Warm Light Grey / White content zones, Dark Blue text, Orange as a sparing accent.
   Brand fonts: PP Valve Stencil Paxon (headlines, one weight: 400) and Haffer (text: 300/400/600/700), self-hosted
   copies in wwwroot/fonts/paxon (the same files paxon.com and developer.activeants.com serve; linking to paxon.com
   does not work reliably cross-origin). DM Sans (OFL, self-hosted) stays as the documented fallback. */

/* Paxon brand fonts */
@font-face { font-family: 'PP Valve Stencil Paxon'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/paxon/PPValveStencilPaxon.woff2') format('woff2'); }
@font-face { font-family: 'Haffer'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/paxon/Haffer-light.woff2') format('woff2'); }
@font-face { font-family: 'Haffer'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/paxon/Haffer.woff2') format('woff2'); }
@font-face { font-family: 'Haffer'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/paxon/Haffer-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Haffer'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/paxon/Haffer-bold.woff2') format('woff2'); }

/* Fallback: DM Sans */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans/dm-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans/dm-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans/dm-sans-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans/dm-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans/dm-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans/dm-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans/dm-sans-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans/dm-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    /* Paxon main colours */
    --paxon-blue: #006AEF;
    --paxon-tinted-blue: #0055CC;
    --dark-blue: #0B1A4D;
    --dark-tinted-blue: #020C2E;
    --warm-light-grey: #F6F3F0;
    --warm-grey: #E8E0DA;
    --white: #FFFFFF;
    --orange: #FFA64C;
    /* Functional palette (supporting tones) */
    --paxon-blue-20: #CCE1FC;
    --warm-mid-grey-1: #5B5652;
    /* UI feedback colours - only for messages and status indicators */
    --ui-error: #E62337;
    --ui-warning: #FFA64C;
    --ui-info: #006AEF;
    --ui-success: #1F9B34;
    --ui-message-bg: #F6F3F0;

    --font-headline: 'PP Valve Stencil Paxon', 'DM Sans', sans-serif;
    --font-body: 'Haffer', 'DM Sans', Arial, sans-serif;

    --radius: 10px;
    /* The logo SVG already contains the brand clear space around the artwork, so the file is used at full size. */
    --header-logo-height: 48px;
    --topbar-height: calc(var(--header-logo-height) + 16px);
    --content-pad-top: 2rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
    color: var(--dark-blue);
    background: var(--warm-light-grey);
}

a { color: var(--paxon-blue); text-underline-offset: 2px; }
a:hover { color: var(--paxon-tinted-blue); }

h1, .headline {
    font-family: var(--font-headline);
    font-weight: 400; /* the headline font has one weight; 700 would make the browser fake a bold */
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: 0;
    color: var(--paxon-blue);
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; line-height: 1.2; margin: 0 0 1rem; }
code { font-size: .85em; word-break: break-all; color: var(--warm-mid-grey-1); }

:focus-visible { outline: 3px solid var(--dark-blue); outline-offset: 2px; } /* 16:1 on the warm grey; orange was 1.7:1 */
.topbar :focus-visible { outline-color: var(--white); }

/* Keyboard users skip the menu (and land below the sticky bars). */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--dark-blue); color: var(--white); padding: .6rem 1rem; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: .5rem; }
#main:focus { outline: none; } /* the skip target itself, not a control */

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Fake mode warning ---------- */
.fake-banner {
    background: var(--ui-warning);
    color: var(--dark-blue);
    font-weight: 700;
    padding: .5rem 1.5rem;
}

/* ---------- Header (Paxon Blue dominant) ---------- */
.topbar {
    /* Always visible: the menu stays at the top while the page scrolls. */
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--topbar-height);
    padding: 0 1.5rem;
    background: var(--paxon-blue);
    color: var(--white);
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 0;
    color: var(--white);
    text-decoration: none;
}
.brand img { height: var(--header-logo-height); width: auto; display: block; }
.brand-app {
    font-weight: 600;
    font-size: 1rem;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .45);
}
.brand:hover { color: var(--white); }

.nav { display: flex; gap: .25rem; flex-wrap: wrap; align-self: stretch; }
.nav a {
    display: flex;
    align-items: center;
    padding: 0 .75rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    border-top: 3px solid transparent;
}
.nav a:hover { background: var(--paxon-tinted-blue); color: var(--white); }
.nav a.active { border-bottom-color: var(--orange); }

.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .5rem 0; }
.user-name { color: var(--white); font-weight: 500; }

/* Language switcher: segmented control on blue */
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; overflow: hidden; margin: 0; }
.lang-switch button {
    font: inherit;
    font-size: .8rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
}
.lang-switch button:hover { background: var(--paxon-tinted-blue); }
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--paxon-blue); }

/* ---------- Layout ---------- */
.content { padding: var(--content-pad-top) 1.5rem 3rem; max-width: 1840px; margin: 0 auto; } /* full HD (1920) minus margins */

.panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.25rem; }
.page-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: -0.5rem 0 1.25rem; }

/* ---------- Forms & buttons ---------- */
.stack { display: flex; flex-direction: column; gap: 1rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 500; color: var(--dark-blue); }
input, select {
    font: inherit;
    font-size: .95rem;
    padding: .55rem .75rem;
    border: 1px solid var(--warm-mid-grey-1);
    border-radius: 6px;
    color: var(--dark-blue);
    background: var(--white);
    min-height: 40px;
}
input[type="file"] { padding: .45rem; }

.btn, button.primary, button.secondary, .button-link {
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    min-height: 40px;
    padding: .5rem 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
button.primary, .btn-primary { background: var(--paxon-blue); border: 2px solid var(--paxon-blue); color: var(--white); }
button.primary:hover, .btn-primary:hover { background: var(--paxon-tinted-blue); border-color: var(--paxon-tinted-blue); color: var(--white); }
button.secondary, .button-link, .btn-secondary { background: var(--white); border: 2px solid var(--dark-blue); color: var(--dark-blue); }
button.secondary:hover, .button-link:hover, .btn-secondary:hover { background: var(--warm-light-grey); color: var(--dark-blue); }
/* Links that open a new window (Maya) get a small arrow. Screen readers already hear "(opens in a new window)". */
a[target="_blank"]::after {
    content: "\2197";
    content: "\2197" / "";
    display: inline-block;
    margin-left: .2em;
    font-size: .8em;
    line-height: 1;
    vertical-align: .15em;
    text-decoration: none;
}

.button-link.disabled { opacity: .4; cursor: default; pointer-events: none; }

/* Version history (and its link at the bottom of the dashboard) */
.version-history { max-width: 960px; }
.version-history-title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--dark-blue); margin: 0 0 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--warm-grey); }
.version-entry + .version-entry { margin-top: 1.5rem; }
.version-entry-head { display: flex; align-items: center; gap: .75rem; font-family: var(--font-body); font-size: 1rem; font-weight: 400; margin: 0 0 .35rem; }
.version-badge { background: var(--paxon-blue); color: var(--white); font-weight: 600; font-size: .8rem; padding: .15rem .55rem; border-radius: 4px; font-variant-numeric: tabular-nums; }
.version-date { color: var(--warm-mid-grey-1); font-variant-numeric: tabular-nums; }
.version-entry ul { margin: 0; padding-left: 1.4rem; line-height: 1.6; }
.version-link { margin: 2rem 0 0; text-align: center; font-size: .85rem; }
.version-link a { color: var(--warm-mid-grey-1); }

/* Keywords in the complaint texts (Paxon functional yellow) */
mark { background: #FFD763; color: inherit; padding: 0 .15em; border-radius: 3px; }

/* Maya block: the basket photo next to the shipment data; full size while hovered (same image, already loaded) */
/* Below the grey line: the shipment data over the full width of the Maya panel, with the basket photo in the top
   right corner over the empty space next to the (short) first values. Both sit in the same grid cell. */
.shipment-body { display: grid; padding-top: 1rem; border-top: 1px solid var(--warm-grey); }
.shipment-body > * { grid-area: 1 / 1; }
.shipment-body > .props.shipment { width: 100%; padding-top: 0; border-top: 0; }
.tracking-link { margin-left: .75rem; font-weight: 600; }
/* A small button next to a value, e.g. Mayasearch next to the Maya order. */
.button-link.button-small { min-height: 28px; padding: .1rem .75rem; font-size: .85rem; margin-left: .75rem; vertical-align: middle; }
.sla .sla-line { display: block; margin-top: .2rem; white-space: nowrap; }
/* Keeps one value (a date, a name) together; the line breaks between values, e.g. at " · ". */
.nowrap { white-space: nowrap; }

/* Suggested findings, below the Concentrix texts */
.findings-suggestion { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--warm-light-grey); border-left: 4px solid var(--paxon-blue); }
.findings-suggestion h2 { margin-top: 0; }
.suggestion-text p { margin: 0 0 .6rem; line-height: 1.5; }
.suggestion-choices, .suggestion-check { margin: .25rem 0 .75rem; padding-left: 1.25rem; }
.suggestion-check-title { margin: .5rem 0 0; font-weight: 600; }
.suggestion-check { color: var(--warm-mid-grey-1); }
select.suggested-change { outline: 2px solid var(--orange); outline-offset: 1px; }
.sla .sla-note { display: block; margin-top: .3rem; }
.basket-pic { width: 300px; max-width: 100%; margin: 0; position: relative; z-index: 1; justify-self: end; align-self: start; }
/* Small screens: the photo above the data instead of over it. */
@media (max-width: 900px) { .shipment-body { display: block; } .basket-pic { margin: 0 0 1rem; } .basket-pic img { transform-origin: top left !important; } }
.basket-pic a::after { content: none; }
.basket-pic img { display: block; width: 300px; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--warm-grey); cursor: zoom-in; position: relative; transform-origin: top right; transition: transform .15s ease-out; }
.basket-pic:hover img, .basket-pic a:focus-visible img { transform: scale(2.5); z-index: 60; box-shadow: 0 8px 32px rgba(11, 26, 77, .35); }
.basket-pic figcaption { margin-top: .35rem; }
/* One part of a value per line, e.g. port / picked / boxed. */
.value-line { display: block; white-space: nowrap; }
.value-line + .value-line { margin-top: .2rem; }
.basket-pic-placeholder {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 1px dashed var(--warm-mid-grey-1); border-radius: 6px; color: var(--warm-mid-grey-1); font-size: .9rem; padding: .4rem .75rem;
}

/* Maya block: warehouse steps, order lines, postal code candidates */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.timeline li { display: inline-flex; gap: .35rem; align-items: baseline; }
.timeline li:not(:last-child)::after { content: "\2192"; color: var(--warm-mid-grey-1); margin-left: .5rem; }
.timeline-step { font-weight: 500; }
.transit::before { content: "\00B7"; margin-right: .35rem; }
.order-lines-title { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.lines-grid .num, .lines-grid th.num { text-align: right; }
.lines-grid tr.line-differs td { background: #FFF4E5; }
.candidates { margin: .5rem 0 1rem; }
.candidates-grid td { vertical-align: middle; }

/* Complaint detail: back to the list, previous / next in the list's order */
.detail-nav {
    /* Stays visible under the menu bar while the complaint page scrolls, so previous / next are always at hand. */
    /* It starts flush under the menu bar (cancelling the content's top padding) and carries that space inside, so its
       resting and sticky positions are identical: nothing moves when the page starts to scroll. */
    position: sticky; top: var(--topbar-height); z-index: 40;
    background: var(--warm-light-grey);
    margin: calc(-1 * var(--content-pad-top)) 0 .75rem; padding: calc(var(--content-pad-top) - .5rem) 0 .75rem;
    min-height: 3rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.detail-nav h1 { margin: 0; font-size: 1.6rem; display: inline-flex; align-items: center; gap: .6rem; }
.detail-nav-steps { display: inline-flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.detail-nav-steps .button-link { min-height: 40px; padding: .35rem 1rem; }
.detail-nav-steps .muted { font-variant-numeric: tabular-nums; min-width: 5.5em; text-align: center; } /* "9 of 73" keeps its width */

.btn-on-blue { background: transparent; border: 1px solid rgba(255, 255, 255, .7); color: var(--white); min-height: 32px; padding: .25rem .9rem; font-size: .85rem; }
.btn-on-blue:hover { background: var(--paxon-tinted-blue); }
form.inline { display: inline-flex; align-items: flex-end; gap: .5rem; margin: 0; flex-wrap: wrap; }

.filters {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
    background: var(--white); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem;
}

/* ---------- Messages (UI feedback colours) ---------- */
.alert {
    background: var(--ui-message-bg);
    border: 1px solid var(--warm-grey);
    border-left: 5px solid var(--ui-info);
    border-radius: 6px;
    padding: .75rem 1rem;
    margin: 0 0 1.25rem;
}
.alert-error { border-left-color: var(--ui-error); }
.alert-warning { border-left-color: var(--ui-warning); }
.alert-info { border-left-color: var(--ui-info); }
.alert-success { border-left-color: var(--ui-success); }
.muted { color: var(--warm-mid-grey-1); }

/* ---------- Status badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--warm-grey);
    color: var(--dark-blue);
    white-space: nowrap;
    vertical-align: middle;
}
.badge::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--warm-mid-grey-1); }
.badge-info::before { background: var(--ui-info); }
.badge-warning::before { background: var(--ui-warning); }
.badge-success::before { background: var(--ui-success); }
.badge-error::before { background: var(--ui-error); }

/* ---------- Dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.stat {
    background: var(--white);
    border-radius: var(--radius);
    border-top: 4px solid var(--paxon-blue);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    text-decoration: none;
    color: var(--dark-blue);
}
a.stat:hover { background: var(--paxon-blue-20); color: var(--dark-blue); }
.stat-accent { border-top-color: var(--orange); }
.stat-value { font-family: var(--font-headline); font-size: 2.5rem; line-height: 1; color: var(--paxon-blue); font-weight: 400; }
.stat-label { color: var(--warm-mid-grey-1); font-weight: 500; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--white); margin-bottom: 1rem; }
.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { text-align: left; padding: .65rem .8rem; vertical-align: top; }
.grid th { background: var(--paxon-blue); color: var(--white); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.grid tbody tr:nth-child(even) { background: var(--warm-light-grey); }
.grid tbody tr:hover { background: var(--paxon-blue-20); }
/* Whole row clickable without JavaScript: the row's one link is stretched over the row. */
.grid tr.row-link { position: relative; cursor: pointer; }
.grid tr.row-link .row-link-target::after { content: ""; position: absolute; inset: 0; }
.grid tr.row-link:focus-within { outline: 3px solid var(--dark-blue); outline-offset: -3px; }
.grid tr.row-link .row-link-target:focus-visible { outline: none; }
.grid { font-variant-numeric: tabular-nums; } /* dates and numbers line up in columns */
.grid td.num, .grid th.num { text-align: right; }

.pager { display: flex; gap: 1rem; align-items: center; margin-top: .5rem; }

/* ---------- Detail lists ---------- */
.props { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0 0 1.25rem; }
.props dt { color: var(--warm-mid-grey-1); font-weight: 500; }
.props dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.pre { white-space: pre-line; overflow-wrap: anywhere; margin-top: 0; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.props.shipment { padding-top: 1rem; border-top: 1px solid var(--warm-grey); }

/* ---------- Sign-in pages: full Paxon Blue ---------- */
.auth-page { min-height: 100vh; background: var(--paxon-blue); display: flex; flex-direction: column; }
.auth-page .topbar { background: transparent; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 3rem 1.5rem; }
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: 14px;
    padding: 2.5rem;
}
.auth-card h1 { font-size: 2.5rem; }
.auth-card .primary { width: 100%; }

@media (max-width: 720px) {
    h1, .headline { font-size: 1.75rem; }
    :root { --content-pad-top: 1.25rem; }
    .content { padding: var(--content-pad-top) 1rem 2rem; }
    .topbar { padding: 0 1rem; }
    .columns { grid-template-columns: 1fr; }
    .props { grid-template-columns: 1fr; }
    .auth-card { padding: 1.75rem; }
}

/* Maya shipment column on the complaint list: badges stack instead of widening the table. */
.shipment-cell { min-width: 9rem; }
.shipment-cell .badge { margin: .1rem 0; }

/* Destructive admin actions: kept visually separate and marked with the UI error colour. */
.panel-danger { border-left: 4px solid var(--ui-error); }
.danger-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.danger-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
.danger-form input { max-width: 12rem; }
button.danger {
    min-height: 44px; padding: .5rem 1.2rem; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer;
    background: var(--ui-error); border: 2px solid var(--ui-error); color: var(--white);
}
button.danger:hover { filter: brightness(.9); }
button.danger:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Advanced complaint grid ---------- */
.js-only { display: none; }
html.js .js-only { display: inline-block; }
.grid-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.grid-toolbar-spacer { flex: 1 1 auto; }
.grid-toolbar button:disabled { opacity: .5; cursor: not-allowed; }
.inline-label { flex-direction: row; align-items: center; gap: .5rem; }
.inline-label select { min-height: 36px; padding: .3rem .5rem; }

.grid-advanced th { vertical-align: bottom; }
.sort-link { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.sort-link:hover, .sort-link:focus-visible { text-decoration: underline; color: var(--white); }
.sort-indicator { font-size: .7rem; opacity: .65; }
th[aria-sort] .sort-indicator { opacity: 1; }

.grid-advanced .filter-row td { background: var(--paxon-blue-20); padding: .4rem .5rem; vertical-align: middle; }
.grid-advanced .filter-row input, .grid-advanced .filter-row select {
    width: 100%; min-width: 6.5rem; min-height: 34px; padding: .25rem .45rem; font-size: .85rem;
}
.grid-advanced .filter-row .date-range { display: flex; flex-direction: column; gap: .3rem; min-width: 9.5rem; }

/* Multi-select filter (status): a summary that looks like the other dropdowns, with checkboxes below it. */
.multi-select { position: relative; min-width: 9rem; }
.multi-select summary {
    list-style: none; cursor: pointer; min-height: 34px; padding: .3rem 1.8rem .3rem .45rem; font-size: .85rem;
    background: var(--white); border: 1px solid var(--warm-grey); border-radius: 6px; white-space: nowrap;
    position: relative; color: var(--dark-blue);
}
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary::after { content: "▾"; position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); font-size: .8rem; }
.multi-select[open] summary { border-color: var(--paxon-blue); }
.multi-select-options {
    position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; padding: .35rem 0;
    background: var(--white); border: 1px solid var(--warm-grey); border-radius: 6px; box-shadow: 0 8px 24px rgba(11, 26, 77, .15);
}
.multi-select-options label {
    display: flex; flex-direction: row; align-items: center; gap: .5rem; padding: .3rem .75rem; margin: 0;
    font-size: .85rem; font-weight: 400; white-space: nowrap; cursor: pointer; color: var(--dark-blue);
}
html.js .multi-select-options .multi-select-all { display: flex; border-bottom: 1px solid var(--warm-grey); padding-bottom: .45rem; margin-bottom: .2rem; }
.multi-select-options label:hover { background: var(--paxon-blue-20); }
.grid-advanced .filter-row .multi-select-options input { width: 1rem; min-width: 0; height: 1rem; min-height: 0; accent-color: var(--paxon-blue); }

/* Investigation result on the complaint page: root cause, evidence, responsible and action in one form. */
/* Assignment and status panel: details on the left, the fields to fill in at the top right (one column when narrow). */
.status-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem 1.5rem; align-items: start; }
.status-info { min-width: 0; }
.detail-edit { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.detail-edit .edit-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem 1rem; }
.detail-edit .edit-fields label { min-width: 0; }
.detail-edit .edit-fields select { width: 100%; }
.detail-edit .edit-save { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .9rem; border-top: 1px solid var(--warm-grey); }
.detail-edit .required-legend { margin: 0; flex: 1 1 14rem; }
.days-input { width: 6rem; }

/* (?) next to a field: the explanation shows on hover and on keyboard focus (text from data-help). */
.field-help {
    position: relative; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
    width: 1.05rem; height: 1.05rem; margin-left: .3rem; border: 1.5px solid var(--paxon-blue); border-radius: 50%;
    color: var(--paxon-blue); background: var(--white); font-size: .68rem; font-weight: 700; line-height: 1; cursor: help;
    font-family: var(--font-body);
}
.field-help:hover, .field-help:focus-visible { background: var(--paxon-blue); color: var(--white); outline: none; }
.field-help:hover::after, .field-help:focus-visible::after {
    content: attr(data-help); position: absolute; z-index: 40; left: -.5rem; top: calc(100% + 8px);
    width: 19rem; max-width: 75vw; padding: .6rem .75rem; border-radius: 6px; box-shadow: 0 8px 24px rgba(11, 26, 77, .25);
    background: var(--dark-blue); color: var(--white); font-size: .8rem; font-weight: 400; line-height: 1.4;
    text-align: left; white-space: normal; letter-spacing: 0; text-transform: none; pointer-events: none;
}
h2 .field-help { font-size: .68rem; }

/* A button with an explanation on hover and keyboard focus (text from data-help), opening below its right edge. */
.has-help { position: relative; }
.has-help:hover::after, .has-help:focus-visible::after {
    content: attr(data-help); position: absolute; z-index: 40; right: 0; top: calc(100% + 8px);
    width: 21rem; max-width: 80vw; padding: .6rem .75rem; border-radius: 6px; box-shadow: 0 8px 24px rgba(11, 26, 77, .25);
    background: var(--dark-blue); color: var(--white); font-size: .8rem; font-weight: 400; line-height: 1.4;
    text-align: left; white-space: normal; pointer-events: none;
}
/* For buttons on the left of a bar: the explanation opens to the right. */
.has-help.help-left:hover::after, .has-help.help-left:focus-visible::after { right: auto; left: 0; }

/* Fields Resolved and Closed need, and what is still missing on an open complaint. */
.required-mark { color: #E62337; font-weight: 600; margin-left: .1rem; cursor: help; }
.ready-check {
    margin: .25rem 0 1rem; padding: .6rem .85rem; border-left: 4px solid #FFA64C; border-radius: 4px;
    background: var(--warm-light-grey); font-size: .9rem;
}
.ready-check p { margin: 0; }
.ready-check-title { font-weight: 600; margin-bottom: .3rem !important; }
.ready-check ul { list-style: none; margin: 0; padding: 0; }
.ready-check li { padding: .1rem 0 .1rem 1.4rem; position: relative; }
.ready-check li::before { position: absolute; left: 0; font-weight: 700; }
.ready-check li.ok::before { content: "✓"; color: #1F9B34; }
.ready-check li.missing::before { content: "✗"; color: #E62337; }
.ready-check.ready { border-left-color: #1F9B34; }

/* The checkbox sits above the row's stretched link, so ticking it does not open the complaint. */
.grid .select-cell { position: relative; z-index: 1; width: 2.5rem; text-align: center; vertical-align: middle; }
.grid .select-cell input { width: 1.15rem; height: 1.15rem; min-height: 0; cursor: pointer; accent-color: var(--paxon-blue); }
.grid tbody tr.selected { background: var(--paxon-blue-20); }
.grid td.nowrap { white-space: nowrap; }
.grid td.empty { text-align: center; padding: 1.5rem; color: var(--warm-mid-grey-1); }

/* ---------- Help page ---------- */
.lead { font-size: 1.05rem; max-width: 70ch; margin: 0 0 1.25rem; }
.help-toc ol { margin: 0; padding-left: 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .3rem 2rem; }
.help-toc li { margin: 0; }
.help-section { scroll-margin-top: 1rem; }
/* Anchors (#findings, help sections) land below the sticky menu. */
html { scroll-padding-top: calc(var(--header-logo-height) + 88px); } /* menu bar plus the complaint page's sticky navigation */
.help-section ul, .help-section ol { margin: .25rem 0 .5rem; padding-left: 1.25rem; max-width: 80ch; }
.help-section li { margin: .4rem 0; line-height: 1.5; }

/* Process diagram on the help page (inline SVG; colours from the Paxon palette) */
.process-diagram { margin: 1rem 0 .5rem; }
.process-diagram svg { display: block; width: 100%; max-width: 960px; height: auto; }
.flow-lane { fill: var(--white); }
.flow-lane-alt { fill: var(--warm-light-grey); }
.flow-lane-line { stroke: var(--warm-grey); stroke-width: 1; }
.flow-lane-title { fill: var(--dark-blue); font-weight: 700; font-size: 15px; font-family: var(--font-body); }
.flow-box { fill: var(--white); stroke: var(--paxon-blue); stroke-width: 1.5; }
.flow-box-auto { fill: var(--paxon-blue-20); }
.flow-decision { fill: var(--white); stroke: var(--orange); stroke-width: 2; }
.flow-text { fill: var(--dark-blue); font-size: 13px; font-family: var(--font-body); }
.flow-edge { fill: none; stroke: var(--warm-mid-grey-1); stroke-width: 1.5; }
.flow-arrowhead { fill: var(--warm-mid-grey-1); }
.flow-edge-label { fill: var(--warm-mid-grey-1); font-size: 12px; font-weight: 600; font-family: var(--font-body); }
.flow-start { fill: var(--dark-blue); }
.flow-end-ring { fill: none; stroke: var(--dark-blue); stroke-width: 2; }
.process-steps summary { cursor: pointer; color: var(--paxon-blue); }

/* ---------- Manual shipment id and findings ---------- */
.manual-shipment { border-left: 4px solid var(--paxon-blue); padding: .25rem 0 .25rem .9rem; margin: 0 0 1rem; }
.manual-shipment-form { margin-top: .5rem; }
/* Wide enough for the placeholder (a Maya link fits too); never wider than the screen. */
form.inline.manual-shipment-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.manual-shipment-form label { flex: 0 1 30rem; }
.manual-shipment-form input { width: 100%; min-width: min(26rem, 100%); }
.looked-up-at { margin-left: .4em; }
.small { font-size: .85rem; }
.findings-saved-at { margin-left: .3em; }

.findings-form .actions { margin-top: .75rem; display: flex; align-items: center; gap: 1rem; }
/* No attachments: findings are text only. Extra specificity because trix.css loads after this file. */
trix-toolbar .trix-button-row .trix-button-group--file-tools { display: none; }
trix-toolbar .trix-button-row { flex-wrap: wrap; }
trix-editor.findings-editor {
    min-height: 12rem; max-height: 60vh; overflow-y: auto; background: var(--white);
    border: 1px solid var(--warm-mid-grey-1); border-radius: 6px; padding: .75rem 1rem; line-height: 1.5;
}
trix-editor.findings-editor:focus { outline: 3px solid var(--dark-blue); outline-offset: 1px; }
.findings-content, trix-editor.findings-editor { color: var(--dark-blue); }
.findings-content h1, trix-editor h1 { font-size: 1.2rem; margin: .5rem 0; }
.findings-content blockquote, trix-editor blockquote { border-left: 3px solid var(--warm-grey); margin: .5rem 0; padding-left: .75rem; }
.findings-content pre, trix-editor pre { background: var(--warm-light-grey); padding: .5rem; border-radius: 4px; white-space: pre-wrap; }
.findings-saved { background: var(--white); border: 1px solid var(--warm-grey); border-radius: 6px; padding: .75rem 1rem; margin-top: .5rem; }

/* ---------- Assignment rules (admin) ---------- */
.rules-grid td { vertical-align: middle; }
.rules-grid select { min-height: 34px; padding: .25rem .45rem; }
.rules-grid .rule-actions { white-space: nowrap; display: flex; gap: .5rem; }
.rules-grid tr.rule-disabled td:not(.rule-actions):not(.select-cell) { color: var(--warm-mid-grey-1); text-decoration: line-through; }
.rule-add { padding: 1rem 0; background: transparent; margin-bottom: .25rem; }
.panel h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; }

/* ---------- Live updates ---------- */
.live-indicator { font-size: .85rem; color: var(--dark-blue); display: inline-flex; align-items: center; gap: .4rem; }
.live-indicator[hidden] { display: none; }
.live-progress { width: 8rem; height: .5rem; border: 0; border-radius: 4px; background: var(--paxon-blue-20); overflow: hidden; accent-color: var(--paxon-blue); }
.live-progress::-webkit-progress-bar { background: var(--paxon-blue-20); border-radius: 4px; }
.live-progress::-webkit-progress-value { background: var(--paxon-blue); border-radius: 4px; transition: width .6s ease; }
.live-progress::-moz-progress-bar { background: var(--paxon-blue); border-radius: 4px; }
.live-progress[hidden] { display: none; }
.live-indicator::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ui-info); animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.grid tbody tr.live-updated td { transition: background-color 1.2s ease; background-color: var(--paxon-blue-20); }
@media (prefers-reduced-motion: reduce) {
    .live-indicator::before { animation: none; }
    .grid tbody tr.live-updated td { transition: none; }
}

/* ---------- Upload: feedback while the browser reads the chosen file and while it uploads ---------- */
.upload-status { margin: -.25rem 0 0; font-size: .9rem; color: var(--dark-blue); display: flex; align-items: center; gap: .45rem; min-height: 1.4rem; }
.upload-status[hidden] { display: none; }
.upload-status.is-busy::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ui-info); animation: live-pulse 1.4s ease-in-out infinite; flex: none; }
.upload-status.is-ready { font-weight: 600; }
.upload-recent { margin-top: 2rem; }
.upload-recent h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
button.primary.is-busy { cursor: progress; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .upload-status.is-busy::before { animation: none; } }

/* ---------- Reasons ---------- */
.reported-reason { display: block; font-size: .78rem; color: var(--warm-mid-grey-1); }
.rules-grid input[name=name] { min-height: 34px; padding: .25rem .45rem; width: 100%; min-width: 14rem; }

/* ---------- Reason model suggestions ---------- */
.model-suggestion { display: block; font-size: .8rem; color: var(--paxon-blue); margin: .15rem 0; }
.model-suggestion::before { content: "\2726 "; }
.reason-review { margin-top: .4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.reason-review p { flex-basis: 100%; margin: 0; }

/* ---------- Root causes ---------- */
.root-cause-name { display: block; font-size: .78rem; color: var(--warm-mid-grey-1); margin-top: .2rem; }

/* ---------- Dashboard ---------- */
.dashboard-filters { margin-bottom: 1.25rem; }
.stat-paxon { border-top-color: #DE237A; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.dashboard-grid .panel { margin-bottom: 0; }
.chart-panel h2 { margin-top: 0; }
.chart-wide { grid-column: 1 / -1; }
.chart-box { position: relative; height: 300px; }
.chart-wide .chart-box { height: 340px; }
.chart-empty .chart-box { display: none; }
.chart-empty::after { content: "-"; color: var(--warm-mid-grey-1); }
@media (max-width: 720px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* Carrier tracking events of a shipment (native <dialog>, opened by tracking-popup.js). */
.tracking-dialog {
    position: fixed; inset: auto; margin: 0; z-index: 60;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    overflow: auto;
    border: 0;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    background: var(--white);
    color: var(--dark-blue);
    box-shadow: 0 12px 40px rgba(11, 26, 77, .25);
}
/* The title bar is the drag handle (tracking-popup.js); arrow keys move it when it has focus. */
.tracking-dialog-header {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin: -1.25rem -1.5rem .75rem; padding: .75rem 1.5rem; border-radius: var(--radius) var(--radius) 0 0;
    background: var(--warm-light-grey); cursor: move; touch-action: none; user-select: none;
}
.tracking-dialog-header:focus-visible { outline: 3px solid var(--paxon-blue); outline-offset: -3px; }
.tracking-dialog-header h3 { margin: 0; }
.tracking-dialog-header .drag-hint { flex: 1; text-align: right; }
.tracking-dialog.dragging { box-shadow: 0 18px 48px rgba(11, 26, 77, .35); opacity: .97; }

/* Shipment timeline (ShipmentTimelineView): SVG, positions as attributes; colours here. */
/* At the top of a shipment: the dividing line goes above the timeline instead of above the data. */
.shipment-timeline { margin: 0; padding: 1rem 0 .75rem; border-top: 1px solid var(--warm-grey); }
.shipment-timeline + .shipment-body { border-top: 0; padding-top: .25rem; }
.shipment-timeline .timeline-title { margin: 0 0 .25rem; }
.timeline-svg { display: block; overflow: visible; font-family: var(--font-body); }
.timeline-day-line { stroke: var(--warm-grey); stroke-width: 1; }
.timeline-day { font-size: 10px; fill: var(--warm-mid-grey-1); }
.timeline-weekend-label { fill: #9B9691; }
.timeline-part { stroke: #FFFFFF; stroke-width: 1; }
.timeline-pickpack { fill: #157A28; }
.timeline-delivery { fill: var(--ui-success); }
.timeline-pickpacklate, .timeline-deliverylate { fill: var(--ui-error); }
.timeline-deliveryunknown { fill: var(--warm-grey); }
.timeline-returned { fill: var(--orange); }
.timeline-open { fill-opacity: .55; }
.timeline-weekend { fill: #FFFFFF; fill-opacity: .3; pointer-events: none; }
.timeline-part-label { font-size: 11.5px; font-weight: 600; fill: #FFFFFF; pointer-events: none; }
.timeline-label-deliveryunknown, .timeline-label-returned { fill: var(--dark-blue); }
.timeline-event { fill: #FFFFFF; stroke: var(--dark-blue); stroke-width: 2; }
.timeline-event-exception { fill: var(--orange); }
.timeline-marker-line { stroke: var(--dark-blue); stroke-width: 1.5; }
.timeline-marker { font-size: 11.5px; font-weight: 600; fill: var(--dark-blue); }
.timeline-marker-time { font-size: 10.5px; fill: var(--warm-mid-grey-1); }
.timeline-marker-shipby, .timeline-marker-expecteddelivery { fill: var(--warm-mid-grey-1); stroke: var(--warm-mid-grey-1); stroke-dasharray: 3 2; }
text.timeline-marker-shipby, text.timeline-marker-expecteddelivery { stroke: none; }
.timeline-marker-complaintopened { fill: var(--paxon-blue); stroke: var(--paxon-blue); }
text.timeline-marker-complaintopened { stroke: none; }
.timeline-caption { margin: .25rem 0 0; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: .35rem 0 0; padding: 0; font-size: .8rem; color: var(--warm-mid-grey-1); }
.timeline-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.timeline-swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; }
.timeline-swatch-pickpack { background: #157A28; }
.timeline-swatch-delivery { background: var(--ui-success); }
.timeline-swatch-pickpacklate, .timeline-swatch-deliverylate { background: var(--ui-error); }
.timeline-swatch-deliveryunknown { background: var(--warm-grey); }
.timeline-swatch-returned { background: var(--orange); }
.timeline-swatch-event { background: #FFFFFF; border: 2px solid var(--dark-blue); border-radius: 50%; }

/* Timeline tooltip (timeline-tooltip.js): one box, positioned by the script; the arrow points at --arrow-x. */
.timeline-tooltip {
    position: absolute; z-index: 70; max-width: 20rem; padding: .55rem .75rem; border-radius: 8px;
    background: var(--dark-blue); color: var(--white); box-shadow: 0 10px 28px rgba(11, 26, 77, .3);
    font-size: .8rem; line-height: 1.45; pointer-events: none;
}
.timeline-tooltip[hidden] { display: none; }
.timeline-tooltip strong { display: block; margin-bottom: .2rem; font-size: .85rem; }
.timeline-tooltip div { color: #DCE6F7; }
.timeline-tooltip::after {
    content: ""; position: absolute; left: var(--arrow-x, 50%); top: 100%; transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: var(--dark-blue);
}
.timeline-tooltip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--dark-blue); }
.shipment-timeline [data-tip-title] { cursor: default; outline: none; }
.timeline-part.tip-active, .timeline-part:focus-visible { stroke: var(--dark-blue); stroke-width: 2; }
.timeline-event.tip-active, .timeline-event:focus-visible { stroke-width: 3; }
.timeline-marker-group.tip-active .timeline-marker, .timeline-marker-group:focus-visible .timeline-marker { text-decoration: underline; }
.timeline-marker-group.tip-active .timeline-marker-line, .timeline-marker-group:focus-visible .timeline-marker-line { stroke-width: 2.5; }

/* A row of the shipment's data that takes the full width: the label above, the content below (12 Nov 2026). */
.props dt.full-row { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.props dd.full-row { grid-column: 1 / -1; margin-bottom: .35rem; }

/* Progress steps (ProgressSteps): circles joined by a line, label, date and time centred below. */
.steps { display: flex; list-style: none; margin: .4rem 0 .2rem; padding: 0; overflow-x: auto; }
.step { position: relative; flex: 1 1 0; min-width: 4.75rem; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .15rem; }
.step + .step::before { content: ""; position: absolute; top: 11px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 2px; background: var(--ui-success); }
.step-pending + .step::before, .step.step-pending::before, .step.step-skipped::before { background: var(--warm-grey); }
.step.step-late::before { background: var(--ui-error); }
.step.step-warning::before { background: var(--orange); }
.step-icon { position: relative; z-index: 1; display: block; width: 24px; height: 24px; margin-bottom: .35rem; }
.step-icon svg { display: block; }
.step-done .step-icon circle { fill: var(--ui-success); }
.step-done .step-icon path { stroke: #FFFFFF; }
.step-late .step-icon circle { fill: var(--ui-error); }
.step-late .step-icon path { stroke: #FFFFFF; }
.step-warning .step-icon circle { fill: var(--orange); }
.step-warning .step-icon path { stroke: var(--dark-blue); }
.step-pending .step-icon circle { fill: #FFFFFF; stroke: var(--warm-grey); stroke-width: 2; }
.step-skipped .step-icon circle { fill: #FFFFFF; stroke: #9B9691; stroke-width: 1.6; }
.step-skipped .step-icon path { stroke: #9B9691; }
.step-target .step-icon circle { fill: #FFFFFF; stroke: var(--dark-blue); stroke-width: 1.6; }
.step-target .step-icon path { fill: var(--dark-blue); stroke: var(--dark-blue); }
.step-label { font-weight: 600; font-size: .85rem; color: var(--dark-blue); line-height: 1.2; }
.step-pending .step-label, .step-skipped .step-label { color: var(--warm-mid-grey-1); font-weight: 500; }
.step-date { font-size: .72rem; color: var(--warm-mid-grey-1); margin-top: .15rem; }
.step-time { font-size: .8rem; font-weight: 600; color: var(--dark-blue); white-space: nowrap; }
.step-note { font-size: .72rem; margin-top: .1rem; color: var(--warm-mid-grey-1); line-height: 1.2; }
.step-late .step-note { color: var(--ui-error); font-weight: 600; }
.sla-late { color: var(--ui-error); font-size: .9rem; }
.props dt.full-row .step-verdict-note { font-weight: 400; }
.full-row .sla-note, .full-row .sla-line { display: block; margin-top: .3rem; }

/* Text search above the complaint list. */
.grid-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; margin-bottom: .75rem; }
.grid-search label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--warm-mid-grey-1); }
.grid-search-text { flex: 1 1 22rem; max-width: 36rem; }
.grid-search-text input { width: 100%; }

/* A column of panels inside .columns (the complaint page's right column: texts and suggestion, then the findings). */
.column-stack { gap: 1.25rem; align-content: start; }
.column-stack > .panel { margin: 0; }
