:root
{
    --a4-width: 210mm;
    --a4-height: 297mm;
    --a4-margins: 1cm;
    --manifest-scale: 75%;
    --manifest-shrink-in-duration: 0.5s;
    --stamp-delay: 0.1s;
    --stamp-duration: 1s;
    --manifest-go-out-delay: calc(var(--manifest-shrink-in-duration) + var(--stamp-delay) + var(--stamp-duration) + 1.15s);
    --manifest-go-out-duration: 0.2s;
    --table-padding: 3px 7px;
    --table-padding-less: 1px 6px; /* 1 pixel less than full padding */
    --key-font-size: 9pt;
    --value-font-size: 11pt;
}

*
{
    margin: 0;
}

body
{
    position: relative;
}

section
{
    position: relative;
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    align-items: stretch;
    justify-content: start;
}

@media not print
{
    section:not(.force-print) .printable,
    section:not(.force-print).printable
    {
        display: none !important;
    }
}
@media print
{
    section
    {
        width: var(--a4-width);
        height: var(--a4-height);
        aspect-ratio: calc(var(--a4-width) / var(--a4-height));
        padding: var(--a4-margins);
        box-sizing: border-box;
    }
    body.landscape section
    {
        width: var(--a4-height);
        height: var(--a4-width);
        aspect-ratio: calc(var(--a4-height) / var(--a4-width));
    }
    body.malformed:not(.force-print) section
    {
        display: none;
    }

    .non-printable
    {
        display: none !important;
    }
}

.bg
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.05;
    pointer-events: none;
}

#login
{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    gap: 8px;
}
#login > img
{
    width: 20vmin;
}

#login div:has(> #show-password)
{
    display: flex;
    flex-direction: row;
    gap: 6px;
}
#login input[type="submit"]
{
    margin-top: 12px;
}

header
{
    position: sticky;
    left: 0;
    top: 0;
    right: 0;
    height: 4em;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    background: linear-gradient(to bottom right,lavender 25%, whitesmoke 100%);
    color: black;

    text-align: center;
}
@media print
{
    header
    {
        background: white;
    }
}
header *
{
    margin: 0;
}
header > div
{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    height: 100%;
}
header img
{
    height: 100%;
    pointer-events: none;
}
header button
{
    border-radius: 100vmax;
}

.heading
{
    gap: 16px;
}
.heading p
{
    font-size: 9pt;
    line-height: 1.3em;
}

main
{
    display: flex;
    flex-direction: column;
}

footer
{
    margin-top: auto;
    background-color: #333;
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;

    gap: 8px;
}
@media print
{
    footer
    {
        justify-content: space-between;
        background-color: white;
    }
}
footer ul,
footer ol
{
    text-align: initial;
    width: 80%;
    padding-inline-start: 16px;
}
footer p:not(#signature)
{
    font-size: small;
}
footer ul
{
    font-size: 8pt;
}
#signature
{
    min-width: 20%;
    width: 20%;
    max-width: 20%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
body:not(.success.success-driver.success-vehicle) section:not(#manifest) footer #signature > #issuer,
body:not(.success.success-driver.success-vehicle) section:not(#manifest) footer #signature > #date
{
    visibility: hidden;
}
#issuer
{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#signature > #issuer,
#signature > #date
{
	line-height: 1.5em;
}
#clock
{
    position: absolute;
    inset-inline-end: 0;
    background-color: white;
    color: black;
    box-shadow: white 0px 0px 3px;
    font-weight: bolder;
    border-start-start-radius: 100vmax;
    border-end-start-radius: 100vmax;
    display: flex;
    justify-content: stretch;
    align-items: center;
    gap: 8px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
}
#clock > #date
{
    padding-inline-start: 16px;
}
#clock > #time
{
    padding-inline: 16px 16px;
    background-color: #111;
    color: white;
    border-start-start-radius: 100vmax;
    border-end-start-radius: 100vmax;
}
footer
{
    position: relative;
    overflow: hidden;
}

.grid
{
    display: grid;
    padding: 8px;
    padding-bottom: 0;
    gap: 8px;
}
.grid > div > p:nth-child(2)
{
    height: 1lh;
    display: -webkit-box;
    overflow: hidden;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.grid:nth-of-type(2)
{
    grid-template-columns: 1fr 1fr;
}
@media print
{
	.grid:nth-of-type(2)
	{
		grid-template-columns: 1fr 2fr 1fr;
	}
}
.grid:nth-of-type(2) > p
{
    text-align: center;
	font-weight: bold;
}
.grid:nth-of-type(3)
{
    grid-template-columns: 1fr 1fr;
}
.grid:nth-of-type(4)
{
    grid-template-columns: 1fr 1fr 1fr;
}
.grid:nth-of-type(5)
{
    grid-template-columns: 1fr 1fr 1fr;
}
.grid:nth-of-type(3) > div > p:nth-child(2)
{
    height: 2lh;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}
.grid > div
{
    border: 1px solid lavender;
    box-shadow: 0 0 4px 0px lavender;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(to bottom right,#333 25%, black 100%);
}
@media print
{
    .grid > div
    {
        border-color: #ccc;
        box-shadow: none;
        background: white;
    }
}
.grid > div > p
{
    padding: var(--table-padding);
}
.grid > div > p:nth-child(1)
{
    color: black;
    background: linear-gradient(to bottom right,lavender 25%, whitesmoke 100%);
}
@media print
{
    .grid > div > p:nth-child(1)
    {
        background: #eee;
        font-size: var(--key-font-size);
        line-height: 1.5em;
        text-align: center;
    }
}
.grid > div > p:nth-child(2)
{
    color: lavender;
}
@media print
{
    .grid > div > p:nth-child(2)
    {
        color: black;
        font-size: var(--value-font-size);
        line-height: 1.5em;
    }
}
body:not(.success) section:not(#manifest) .grid > div > p:nth-child(2):not([alt]),
body.bulk-print section:not(#manifest) .grid > div > p:nth-child(2):not([alt])
{
    visibility: hidden;
}

main div:has(> .table)
{
    margin: 8px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 4px 0px lavender;
    border: 1px solid lavender;
    background: linear-gradient(to bottom right,#333 25%, black 100%);
}
@media not print
{
    .table[disabled] thead
    {
        opacity: 0.5;
    }
}
.table
{
    display: table;
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}
@media print
{
    main div:has(> .table)
    {
        border-color: #ccc;
        box-shadow: none;
        background: white;
    }
}
main div:has(> .table) + p,
main div:has(> .table) + p + p
{
    color: yellow;
    margin-inline: 8px;
}
@media print
{
    main div:has(> .table) + p,
    main div:has(> .table) + p + p
    {
        color: black;
        font-size: 8pt;
    }
}
main div:has(> .table:not([disabled])) + p,
main div:not(:has(#passenger.manual)) + p + p
{
    display: none;
}
.table thead
{
    color: black;
    background: linear-gradient(to bottom right,lavender 25%, whitesmoke 100%);
}
@media print
{
    .table thead
    {
        background: #eee;
        font-size: var(--key-font-size);
        line-height: 1.5em;
    }
}
.table th,
.table td
{
    font-weight: normal;
    padding: var(--table-padding);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table td
{
    color: lavender;
    height: 1lh;
}
.table tbody #passenger:last-child td:not([alt])
{
    visibility: hidden;
}
@media not print
{
	section:not(#manifest) #passenger.empty
	{
		display: none;
	}
    .table tbody #passenger:hover
    {
        background: linear-gradient(to right, #ffffff55 0%, transparent 25%, transparent 50%, #ffffff55 100%);
    }
    .table tbody #passenger:has(> td#remove:hover),
    .table tbody #passenger:has(> td#remove:focus)
    {
        background: linear-gradient(to right, #ff000055 0%, transparent 25%, transparent 50%, #ff000055 100%);
    }
    .table tbody #passenger:hover > td#remove,
    .table tbody #passenger > td#remove:focus
    {
        opacity: 1;
    }
}
section:not(#manifest) .table:has(tfoot #passenger[hidden]) tbody:has(#passenger:nth-child(2)) #passenger:last-child,
section:not(#manifest) .table:has(tfoot #passenger:not([hidden])) tbody #passenger:last-child,
#manifest .table tbody:has(#passenger:nth-child(2)) #passenger:last-child
{
    display: none;
}
@media print
{
    .table td
    {
        color: black;
        font-size: var(--value-font-size);
        line-height: 1.5em;
    }
}

.table tbody #passenger:not(:nth-last-child(-n + 2)),
.table thead
{
    border-block-end: 1px solid lavender;
}
@media print
{
    .table tbody #passenger:not(:nth-last-child(-n + 2)),
    .table thead
    {
        border-block-end-color: #ccc;
    }
}

.table th:not(:last-child),
.table td:not(:last-child)
{
    border-inline-end: 1px solid lavender;
}
@media print
{
    .table th:not(:nth-last-child(-n + 2)),
    .table td:not(:nth-last-child(-n + 2))
    {
        border-inline-end-color: #ccc;
    }
    .table th:nth-last-child(-n + 2),
    .table td:nth-last-child(-n + 2)
    {
        border-inline-end: none;
    }
}

#id
{
    width: 30%;
}
#name
{
    width: 50%;
}
#nationality
{
    width: 20%;
}
#remove
{
    width: 5%;
    text-align: center;
}
body.bulk-print td#id,
body.bulk-print td#name,
body.bulk-print td#nationality,
body.bulk-print td#remove
{
    visibility: hidden;
}
td#remove
{
    background: linear-gradient(to top right, red 0%, darkred 75%);
    cursor: pointer;
    opacity: 0.8;
}
td#remove:hover,
td#remove:focus
{
    box-shadow: white 0px 0px 16px;
}

#qrcode-scanner
{
    position: absolute;
    inset: 0;
}
body.scanning #qrcode-scanner,
body.loading #qrcode-scanner > p:nth-of-type(1),
body:not(.scanning, .loading) #qrcode-scanner > p:nth-of-type(2),
body:has(#overlays):not(.scanning) > section > *
{
    display: none;
}
#qrcode-scanner > video
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}
#qrcode-scanner > p
{
    position: absolute;
    inset: 0;
    text-align: center;
    align-content: center;
    color: white;
    background-color: black;
    cursor: pointer;
    user-select: none;
    font-size: xx-large;
    line-height: 2em;
    padding: 32px;
}
body.loading #qrcode-scanner > p
{
    cursor: auto;
}

.scan-region-highlight-svg
{
    stroke: white !important;
}

#footer
{
	position: relative;
	display: flex;
	flex-direction: column;
}
#footer #qrcode
{
    position: relative;
    border: 1px solid black;
    width: 4.5em;
    height: 4.5em;
    aspect-ratio: 1;
    align-self: center;
    border-radius: 4px;
    border-end-start-radius: 0;
    border-end-end-radius: 0;
    box-sizing: border-box;
}
#footer #qrcode > *:not(p)
{
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    transform: translate(-50%, -50%);
}
#footer #qrcode > p
{
    position: absolute;
    bottom: -1px;
    inset-inline-end: 100%;
    padding-inline: 24px 16px;
    background-color: black;
    color: white;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: bolder;
    font-size: 10pt;
    /* min-width: 16ch; */
    min-width: 7ch;
    width: max-content;
    border-end-start-radius: 100vmax;
}
#footer #qrcode > p#sequence
{
    inset-inline-end: unset;
    border-end-start-radius: unset;

    padding-inline: 16px 24px;
    inset-inline-start: 100%;
    border-end-end-radius: 100vmax;
}
#label
{
	position: absolute;
	inset-inline-start: 0;
	bottom: 0;
}
#first-page:not(.printable, #manifest) #label:nth-of-type(2),
#first-page.printable:not(#manifest) #label:nth-of-type(1),
#manifest #label
{
	display: none;
}
#footer #qrcode::before
{
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    height: 1px;
    width: 50vw;
    background-color: currentColor;
}
#footer #qrcode::after
{
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    height: 1px;
    width: 50vw;
    background-color: currentColor;
}

#second-page #qrcode
{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid black;
    height: 25vmin;
    aspect-ratio: 1;
    border-radius: 16px;
    box-sizing: border-box;
}
#second-page #qrcode > *
{
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    transform: translate(-50%, -50%);
}
body:not(.success) section:not(#manifest) #qrcode > *:not(p)
{
    visibility: hidden;
}

#title
{
    position: relative;
    text-align: center;
    align-self: center;
    margin-top: 7px;
    padding-block: 4px 8px;
    font-weight: normal;
    color: whitesmoke;
    font-size: 14pt;
}
@media print
{
    #title
    {
        margin-top: 8px;
        color: black;
    }
}
#title::before
{
    content: '';
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    height: 3px;
    width: 50vw;
    background-color: currentColor;
    /* transform: translateY(-50%); */
}
#title::after
{
    content: '';
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    height: 3px;
    width: 50vw;
    background-color: currentColor;
    /* transform: translateY(-50%); */
}

#close,
#qrcode-scanner > button
{
    position: relative;
    width: calc(2em + 8px);
    height: calc(2em + 8px);
    padding: 0;
    background: red;
    border-radius: 100vmax;
}
#close:hover,
#close:focus,
#qrcode-scanner > button:hover,
#qrcode-scanner > button:focus
{
    background: darkred;
}
#close::before,
#qrcode-scanner > button::before
{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    height: 2px;
    background-color: white;
    transform: translate(-50%, -50%) rotate(45deg);
}
#close::after,
#qrcode-scanner > button::after
{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    height: 2px;
    background-color: white;
    transform: translate(-50%, -50%) rotate(-45deg);
}
#qrcode-scanner > button
{
    border-radius: 0;
    aspect-ratio: 3 / 5;
    height: 4.5em;
}

#completions
{
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 16px;
}
#completions > ul
{
    padding: 0;
    list-style-type: none;
    width: max-content;
}
#completions > ul > li
{
    display: flex;
    flex-direction: row;
    align-items: baseline;
}
#completions > ul > li::before
{
    content: "✔";
    font-size: 0.75em;
    color: transparent;
    margin-inline-end: 8px;
    background-color: dimgray;
    width: 1em;
    height: 1em;
    border-radius: 100vmax;
    padding: 3px;

    display: flex;
    align-items: center;
    justify-content: center;
}
#completions > ul > li[value="scanning"]::before
{
    content: "•••";
    color: darkgray;
}
body.success section:not(#manifest) #completions > ul > li[value="yes"]::before
{
    background-color: green;
    color: white;
    box-shadow: lime 0px 0px 6px;
}
#completions button
{
    width: max-content;
    padding: 16px 64px;
    font-size: 1.5em;
    font-weight: bold;
}
#completions button:not(:disabled)
{
    box-shadow: white 0px 0px 4px;
    text-shadow: 0px 0px 2px white;
    border: 1px solid white;
}

body:not(.success-driver) section:not(#manifest) .driver,
body:not(.success-vehicle) section:not(#manifest) .vehicle
{
    visibility: hidden;
}

#overlays
{
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background-color: #00000000;
    transition: background-color 0.5s ease;
    will-change: background-color;
}
#overlays > *
{
    pointer-events: all;
}
#overlays.fade-in
{
    background-color: #00000077;
    pointer-events: all;
}

#manifest
{
    position: absolute;
    top: 50%;
    left: 50%;
    filter: brightness(100%);
    transform: translate(-50%, -50%) scale(var(--manifest-scale));
    user-select: none;
    animation: shrink-in var(--manifest-shrink-in-duration) ease-out,
        go-out var(--manifest-go-out-duration) ease-in var(--manifest-go-out-delay);
}
#manifest.inspect
{
    user-select: auto;
}
@keyframes shrink-in
{
    0%
    {
        filter: brightness(0%);
        transform: translate(-50%, -50%) scale(500%);
    }
    35%
    {
        filter: brightness(0%);
    }
    100%
    {
        filter: brightness(100%);
        transform: translate(-50%, -50%) scale(var(--manifest-scale));
    }
}
@keyframes go-out
{
    0%
    {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(var(--manifest-scale));
    }
    100%
    {
        top: 40%;
        left: 0;
        transform: translate(-100%, -50%) scale(var(--manifest-scale)) rotate(-10deg);
    }
}

#stamp
{
    position: absolute;
    top: 40%;
    left: 100%;
    filter: drop-shadow(#00000066 0px 42px 32px);
    transform: translate(0, -50%) scale(55%) rotate(10deg);
    animation:
        come var(--stamp-duration) ease calc(var(--manifest-shrink-in-duration) + var(--stamp-delay)),
        go var(--manifest-go-out-duration) ease var(--manifest-go-out-delay);
    animation-fill-mode: forwards;
    pointer-events: none;
    z-index: 1;
}
#overlays:not(.fade-in) > #stamp,
#overlays:has(#manifest.inspect) #stamp
{
    display: none;
}
@keyframes come
{
    0%
    {
        top: 40%;
        left: 100%;
        transform: translate(0, -50%) scale(55%) rotate(10deg);
        filter: drop-shadow(#00000066 0px 42px 32px);
    }
    40%
    {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(55%) rotate(-30deg);
        filter: drop-shadow(#00000066 0px 42px 32px);
    }
    60%
    {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(45%) rotate(-30deg);
        filter: drop-shadow(#00000066 0px 16px 8px);
    }
    70%
    {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(55%) rotate(-30deg);
        filter: drop-shadow(#00000066 0px 42px 32px);
    }
    100%
    {
        top: 50%;
        left: 80%;
        transform: translate(-50%, -50%) scale(55%) rotate(-10deg);
        filter: drop-shadow(#00000066 0px 42px 32px);
    }
}
@keyframes go
{
    0%
    {
        top: 50%;
        left: 80%;
        transform: translate(-50%, -50%) scale(55%) rotate(-10deg);
        filter: drop-shadow(#00000066 0px 42px 32px);
    }
    100%
    {
        top: 60%;
        left: 100%;
        transform: translate(0, -50%) scale(55%) rotate(10deg);
        filter: drop-shadow(#00000066 0px 42px 32px);
    }
}

#approved
{
    position: absolute;
    top: 50%;
    left: 50%;
    height: 3.25cm;
    padding-bottom: 8px;
    transform: translate(-50%, -50%) rotate(-30deg);
    animation: appear calc(var(--manifest-shrink-in-duration) + var(--stamp-delay) + var(--stamp-duration) * 0.6) linear;
    mix-blend-mode: hard-light;
    pointer-events: none;
}
section:not(#manifest) #approved,
#manifest.inspect #approved
{
    display: none;
}
@keyframes appear
{
    0%   {display: none;}
    100% {display: none;}
}

#overlays > #close
{
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 1;
}
#overlays:has(#manifest:not(.inspect)) > #close
{
    display: none;
}

.unknown > #nationality
{
    color: red;
}

#incorrect-creds
{
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    animation: fade-out 3s ease 3s forwards;
    pointer-events: none;
}
@keyframes fade-out
{
    0% {opacity: 1;}
    100% {opacity: 0;}
}

.table tfoot
{
    border-block-start: 1px solid lavender;
}
.table tfoot #passenger input
{
    width: 100%;
    height: 100%;
    padding: var(--table-padding);
    margin: 0;
    background: none;
    border: none;
    color: white;
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
    outline: none;
}
.table tfoot #passenger input::placeholder
{
    color: currentColor;
}
.table tfoot #passenger input:focus
{
    border: 1px solid white;
    padding: var(--table-padding-less);
}
.table tfoot #passenger input:hover,
.table tfoot #passenger input:focus
{
    background-color: #ffffff11;
}
.table tfoot #passenger td
{
    padding: 0;
}
@media not print
{
    .table tfoot #passenger:hover,
    .table tfoot #passenger:has(> td#add:focus),
    .table tfoot #passenger:has(> td > input:focus)
    {
        background: linear-gradient(to right, #00ff0055 0%, transparent 25%, transparent 50%, #00ff0055 100%);
    }
    .table tfoot #passenger:hover > td#add,
    .table tfoot #passenger > td#add:focus
    {
        opacity: 1;
    }
}
td#add
{
    text-align: center;
    background: linear-gradient(to top right, limegreen 0%, darkgreen 75%);
    cursor: pointer;
    opacity: 0.6;
    font-size: x-large;
}
td#add:hover,
td#add:focus
{
    box-shadow: white 0px 0px 16px;
}

#user-name
{
    cursor: pointer;
}

@media print
{
    body:not(.bulk-print).ink-only section:not(#manifest) *
    {
        visibility: hidden;
    }
    body:not(.bulk-print).ink-only section:not(#manifest) .grid > div > p:nth-child(2),
    body:not(.bulk-print).ink-only section:not(#manifest) .table tbody #passenger > td,
    body:not(.bulk-print).ink-only.success.success-driver.success-vehicle section:not(#manifest) #signature > #issuer,
    body:not(.bulk-print).ink-only.success.success-driver.success-vehicle section:not(#manifest) #signature > #date
    {
        visibility: visible !important;
        background: none !important;
        background-color: none !important;
    }
    body:not(.pre-scan).ink-only #qrcode > *:not(p)
    {
        visibility: visible !important;
    }
}

body.bulk-print #clear,
body.bulk-print #completions h1,
body.bulk-print #completions ul
{
    display: none;
}

body:not(.pre-scan, .scanner) #scanned-manifest,
body:not(.pre-scan) #completions > h1:nth-child(3),
body.pre-scan #completions > h1:nth-child(2),
body:not(.scanner) #completions > h1:nth-child(1),
body.scanner #completions > h1:nth-child(2),
body.inspector #completions > h1:nth-child(1),
body.scanner #completions > ul > #scanned-ids,
body.inspector #completions > ul > *:not(#scanned-manifest),
body.scanner #completions > #print,
body.scanner section:not(#manifest) .grid,
body.scanner section:not(#manifest) main > div:has(.table),
body.inspector #clear,
body:not(.scanner) #completions > div:last-child
{
    display: none;
}

body.scanner section:not(#manifest) #completions #scanned-manifest::before
{
	content: "";
    background-color: yellow;
    box-shadow: gold 0px 0px 6px;
}

body:not(.passenger-scan) section:not(#manifest) main div:has(> .table)
{
	display: none;
}
body:not(.passenger-scan) section:not(#manifest) main div:has(> .table) + p
{
	display: none;
}