﻿.headertext {
    text-transform: uppercase;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: bold;
}

.card-section {
    padding: 1em 0.5em;
}

.card {
    padding: 0.5em;
    margin: 0.5em;
}

.card-header, .card-body {
    text-align: center;
}

.card-header {
    text-transform: uppercase;
    font-weight: bold;
    padding: 0.2em;
    font-size: 1em;
    background: #ffffff;
    border: none;
}

.card-body {
    padding: 0.1em;

}

    .card-body.value {
        font-size: 1.8em;
        text-transform: uppercase;
        font-weight: bold;
        color: #2B80C4;
        line-height: 1em;
    }

.value-green {
    color: green !important;
}
.value-orange {
    color: orange !important;
}
.value-red {
    color: red !important;
}

.card-footer {
    text-align: center;
    background-color: #fff;
    border: none;
    padding: 0.2em;
}

.grai-barcode-footer {
    padding-top: 0.5rem;
}

.grai-barcode {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
}

.grai-barcode svg {
    display: block;
    width: 100%;
    height: 3rem;
    fill: #111111;
}

.below-card {
    color: white;
    text-align: center;
}

.specification-card {
    overflow: hidden;
}

.specification-image-card {
    padding: 0;
    text-align: center;
}

.specification-overview-text {
    text-align: justify;
    font-size: 1rem;
    line-height: 1.7;
}

.specification-overview-text p {
    margin: 0;
}

.specification-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.technical-drawing-preview-link {
    display: block;
    color: inherit;
}

.technical-drawing-preview-link:focus {
    outline: 3px solid #2B80C4;
    outline-offset: -3px;
}

.technical-drawing-preview {
    max-height: none;
}

.specification-overview-card {
    overflow: hidden;
}

.specification-overview-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: #2B80C4;
    text-decoration: none;
}

.specification-overview-link:hover,
.specification-overview-link:focus {
    color: #2B80C4;
    text-decoration: none;
}

.specification-overview-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 8rem;
    padding: 1rem 1rem 0.5rem;
}

.specification-overview-image {
    display: block;
    width: 100%;
    max-width: 10rem;
    max-height: 6rem;
    object-fit: contain;
}

.specification-overview-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 1rem 1rem;
}

.specification-overview-title {
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1.2;
    text-transform: uppercase;
}

.specification-overview-dimensions {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.specification-list {
    display: grid;
    grid-template-columns: minmax(6.25rem, max-content) minmax(0, 1fr);
    gap: 0.25rem 0.75rem;
    margin: 0;
    text-align: left;
}

.specification-list dt,
.specification-list dd {
    overflow-wrap: anywhere;
}

.specification-list dt {
    font-weight: bold;
}

.specification-list dd {
    margin: 0;
}

.specification-list-note-label {
    grid-column: 2;
}

.specification-list-note-value {
    grid-column: 2;
}

.markings-list {
    grid-template-columns: minmax(1.5rem, 2.25rem) 1fr;
    column-gap: 0.5rem;
}

.info-intro {
    font-size: 1rem;
    line-height: 1.5;
}

.topic-grid-card {
    display: flex;
    flex-direction: column;
}

.topic-grid-link-body {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.topic-grid-card-link {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    color: #2B80C4;
    text-decoration: none;
}

.topic-grid-card-link:hover,
.topic-grid-card-link:focus {
    color: #2B80C4;
    text-decoration: underline;
}

.start-pallet-receiving-flyin {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    isolation: isolate;
    padding: 2.25rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    pointer-events: none;
    transform: translateY(calc(100% + 1rem));
    transition: transform 240ms ease-out;
}

.start-pallet-receiving-flyin.is-visible {
    transform: translateY(0);
}

.start-pallet-receiving-flyin::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            to top,
            rgba(0, 32, 58, 0.48),
            rgba(0, 32, 58, 0.28) 62%,
            rgba(0, 32, 58, 0)
        );
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(
        to top,
        #000000 0,
        #000000 70%,
        rgba(0, 0, 0, 0)
    );
    mask-image: linear-gradient(
        to top,
        #000000 0,
        #000000 70%,
        rgba(0, 0, 0, 0)
    );
    content: "";
}

.start-pallet-receiving-flyin-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    width: min(100%, 34rem);
    margin: 0 auto;
    border: 1px solid rgba(0, 81, 146, 0.16);
    border-radius: 0.45rem;
    background-color: #ffffff;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.28);
    overflow: hidden;
    pointer-events: auto;
}

.start-pallet-receiving-flyin-link {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 1rem;
    color: #2B80C4;
    text-align: center;
    text-decoration: none;
}

.start-pallet-receiving-flyin-link:hover,
.start-pallet-receiving-flyin-link:focus {
    color: #2B80C4;
    text-decoration: underline;
}

.start-pallet-receiving-flyin-link span {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.1;
    text-transform: uppercase;
}

.start-pallet-receiving-flyin-link small {
    margin-top: 0.35rem;
    color: #1f2a33;
    font-size: 0.95rem;
    line-height: 1.25;
}

.start-pallet-receiving-flyin-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid #d8e2ea;
    color: #526574;
    background-color: #ffffff;
    font-size: 1.1rem;
}

.start-pallet-receiving-flyin-dismiss:hover,
.start-pallet-receiving-flyin-dismiss:focus {
    color: #005192;
    background-color: #eef4f8;
}

.card-body.value > a {
    color: #2B80C4;
}

.card-body.value > a:hover,
.card-body.value > a:focus {
    color: #2B80C4;
}

.topic-summary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #2B80C4;
    line-height: 1.3;
    text-transform: none;
}

.topic-detail-body {
    text-align: justify;
    font-size: 1rem;
    line-height: 1.7;
}

.topic-detail-body p {
    margin: 0;
}

.ppwr-intro-text {
    text-align: justify;
    font-size: 1rem;
    line-height: 1.7;
}

.ppwr-intro-text p {
    margin: 0;
}

.ppwr-intro-note {
    margin-top: 1rem !important;
    font-size: 0.85rem;
    line-height: 1.55;
}

.topic-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
}

.topic-header-title {
    margin: 0;
    text-align: center;
}

.topic-back-button {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border: 1px solid #ffffff;
    border-radius: 0.25rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.topic-back-button:hover,
.topic-back-button:focus {
    color: #ffffff;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.receive-app {
    color: #ffffff;
}

.receive-shell {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

.receive-titlebar {
    margin-bottom: 1rem;
}

.receive-titlebar h1 {
    margin: 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0;
}

.receive-steps {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.receive-steps li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.45rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    font-weight: bold;
    text-transform: uppercase;
}

.receive-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
}

.receive-steps li.active,
.receive-steps li.complete {
    color: #005192;
    background-color: #ffffff;
}

.receive-steps li.active span,
.receive-steps li.complete span {
    color: #ffffff;
    background-color: #2B80C4;
}

.receive-panel {
    display: none;
    padding: 1rem;
    border-radius: 0.45rem;
    background-color: #ffffff;
    color: #1f2a33;
}

.receive-panel.active {
    display: block;
}

.receive-panel-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.receive-panel h2 {
    margin: 0;
    color: #005192;
    font-size: 1.45rem;
    font-weight: bold;
}

.receive-subheader {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.quality-list {
    display: grid;
    gap: 0.75rem;
}

.quality-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
}

.quality-row label {
    margin: 0;
    font-size: 1.15rem;
    font-weight: bold;
}

.quality-control-band {
    display: grid;
    grid-template-columns: 2.75rem minmax(3.75rem, 1fr) 2.75rem;
    align-items: center;
    height: 3.75rem;
    border-radius: 0.4rem;
    background-color: var(--quality-color);
}

.quality-control-single {
    grid-template-columns: minmax(3.75rem, 1fr);
}

.quality-row button,
.quality-row input {
    border: 0;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
}

.quality-row button {
    align-self: stretch;
    height: 100%;
    color: #111111;
    background-color: rgba(255, 255, 255, 0.16);
}

.quality-row button:first-child {
    border-right: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 0.4rem 0 0 0.4rem;
}

.quality-row button:last-child {
    border-left: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 0 0.4rem 0.4rem 0;
}

.quality-row button:hover,
.quality-row button:focus {
    background-color: rgba(255, 255, 255, 0.28);
}

.quality-row input {
    justify-self: center;
    width: min(7rem, 100%);
    height: 2.5rem;
    border: 2px solid rgba(0, 0, 0, 0.16);
    border-radius: 0.35rem;
    color: #111111;
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    -moz-appearance: textfield;
}

.quality-control-single input[type="text"] {
    width: calc(100% - 1.5rem);
    max-width: none;
    padding: 0 0.75rem;
    font-size: 1rem;
    font-weight: normal;
    text-align: left;
}

.quality-row input::-webkit-outer-spin-button,
.quality-row input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.quality-new { --quality-color: #39a935; }
.quality-total { --quality-color: #9b7a55; }
.quality-a { --quality-color: #a8ca0d; }
.quality-b { --quality-color: #ffd500; }
.quality-c { --quality-color: #f59c00; }
.quality-d { --quality-color: #d91016; }
.quality-other { --quality-color: #cfcfcf; }

.quality-total {
    margin-bottom: 1rem;
}

.quality-total input[readonly] {
    background-color: #f8fbfd;
    font-weight: bold;
}

.quality-total-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.55),
        1px -1px 0 rgba(0, 0, 0, 0.55),
        -1px 1px 0 rgba(0, 0, 0, 0.55),
        1px 1px 0 rgba(0, 0, 0, 0.55);
}

.receive-remarks-heading {
    margin-top: 1rem;
}

.quality-remarks {
    grid-template-columns: minmax(0, 1fr);
}

.quality-remarks .quality-control-band {
    width: 100%;
}

.receive-quality-heading {
    margin: 0.25rem 0;
    color: #005192;
    font-size: 1.45rem;
    font-weight: bold;
}

.receive-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.receive-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    font-weight: bold;
}

.receive-field-full {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.receive-field span {
    color: #243746;
}

.receive-field strong {
    color: #d91016;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.receive-field input,
.receive-field textarea {
    width: 100%;
    border: 1px solid #b9c6d0;
    border-radius: 0.35rem;
    padding: 0.65rem 0.75rem;
    color: #1f2a33;
    font: inherit;
    font-weight: normal;
}

.receive-field textarea {
    resize: vertical;
}

.receive-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.receive-summary-card {
    padding: 0;
}

.receive-summary-card h3 {
    margin: 0 0 0.75rem;
    color: #005192;
    font-size: 1.05rem;
    font-weight: bold;
    text-transform: uppercase;
}

.summary-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.summary-metric {
    min-height: 5rem;
    padding: 0.75rem;
    border-radius: 0.4rem;
    background-color: #eef4f8;
    color: #005192;
}

.summary-metric-primary {
    background-color: #9b7a55;
    color: #ffffff;
}

.summary-metric span,
.summary-note span,
.summary-detail-row span {
    display: block;
    color: inherit;
    font-size: 0.82rem;
    font-weight: bold;
    text-transform: uppercase;
}

.summary-metric-primary span,
.summary-metric-primary strong {
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.65),
        1px -1px 0 rgba(0, 0, 0, 0.65),
        -1px 1px 0 rgba(0, 0, 0, 0.65),
        1px 1px 0 rgba(0, 0, 0, 0.65);
}

.summary-metric strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 2rem;
    line-height: 1;
}

.summary-quality-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.summary-quality-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 5rem;
    padding: 0.75rem 0.45rem;
    border-radius: 0.4rem;
    background-color: var(--quality-color);
    color: #ffffff;
}

.summary-quality-chip-empty {
    background-color: #d7dde2;
}

.summary-quality-chip-empty .summary-quality-pair span,
.summary-quality-chip-empty .summary-quality-pair strong {
    text-shadow: none;
}

.summary-quality-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.summary-quality-pair span,
.summary-quality-pair strong {
    min-width: 0;
    font-weight: bold;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.65),
        1px -1px 0 rgba(0, 0, 0, 0.65),
        -1px 1px 0 rgba(0, 0, 0, 0.65),
        1px 1px 0 rgba(0, 0, 0, 0.65);
}

.summary-quality-pair span {
    position: absolute;
    top: 0.55rem;
    left: 0.65rem;
    font-size: 1rem;
    line-height: 1;
    text-transform: uppercase;
}

.summary-quality-pair strong {
    font-size: 2rem;
    line-height: 1;
}

.summary-empty,
.summary-note,
.summary-detail-row {
    padding: 0.75rem;
    border-radius: 0.4rem;
    background-color: #f8fbfd;
}

.summary-empty {
    color: #526574;
    font-weight: bold;
    text-align: center;
}

.summary-note {
    margin-top: 0.75rem;
}

.summary-note strong,
.summary-detail-row strong {
    display: block;
    margin-top: 0.25rem;
    color: #1f2a33;
    font-size: 1.05rem;
    font-weight: normal;
    overflow-wrap: anywhere;
}

.summary-detail-row + .summary-detail-row {
    margin-top: 0.5rem;
}

.receive-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
}

.receive-actions .btn {
    min-width: 8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.receive-submit-status {
    color: #f8fbfd;
    font-weight: bold;
}

.receive-submit-status-error {
    margin-top: 1rem;
    color: #ffd9d9;
}

.receive-submit-status-success {
    margin-top: 1rem;
    color: inherit;
}

.receive-submit-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #f6fff7 0%, #e2f6e5 100%);
    border: 1px solid rgba(45, 125, 50, 0.22);
    color: #1f2a33;
    box-shadow: 0 0.65rem 1.5rem rgba(0, 0, 0, 0.12);
}

.receive-submit-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background-color: #2f9e44;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    box-shadow: 0 0.35rem 0.8rem rgba(47, 158, 68, 0.3);
}

.receive-submit-card-copy {
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.45;
}

.receive-submit-card-copy strong {
    color: #155724;
    font-size: 1.02rem;
}

.receive-submit-card-copy a {
    color: #005192;
    font-weight: bold;
    text-decoration: underline;
}

.receive-email-top {
    margin: 0 0 1rem;
}

@media (max-width: 420px) {
    .specification-list {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .specification-list-note-label,
    .specification-list-note-value {
        grid-column: 1;
    }

    .specification-list dd {
        margin-bottom: 0.35rem;
    }

    .topic-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        min-height: 0;
        padding-top: 0.25rem;
    }

    .topic-header-title {
        width: 100%;
        text-align: center;
    }

    .topic-back-button {
        position: static;
        transform: none;
        align-self: flex-start;
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    body {
        margin-bottom: 0;
    }

    .footer {
        position: static;
        white-space: normal;
        line-height: 1.5;
        padding: 0.75rem 0;
        text-align: center;
    }

    .start-pallet-receiving-flyin-link {
        padding: 0.75rem 0.65rem;
    }

    .start-pallet-receiving-flyin-link span {
        font-size: 1.05rem;
    }

    .start-pallet-receiving-flyin-link small {
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .start-pallet-receiving-flyin {
        transition: none;
    }
}
