:root {
    --page-x: 50px;
    --block-gap: 32px;
    --stack-gap: 12px;
    --section-gap: 36px;
    --control-width: 320px;
    --font-book: 'Wuerth Sans', futura, -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --color-red: #cc0000;
    --color-blue: #0093dd;
    --color-blue-hover: #007ab7;
    --color-line: #d1d3d4;
}

@font-face {
    font-family: 'Wuerth Sans';
    src: url('../fonts/WuerthSansVF-Standard.woff2') format('woff2'),
    url('../fonts/WuerthSansVF-Standard.woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    padding: 40px;
    font-family: var(--font-book);
    font-size: 18px;
    background: #ececec;
    color: #000000;
}

.card {
    max-width: 980px;
    margin: 0 auto;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #ffffff;
    padding-bottom: var(--section-gap);
}

.card:has(> .footer) {
    padding-bottom: 0;
}

.header {
    padding: var(--section-gap) var(--page-x) 0;
}

.header .logo {
    display: block;
    width: 300px;
    max-width: 60%;
    height: auto;
}

.header .title {
    margin: 20px 0 0;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.3;
}

.content {
    display: flex;
    padding: var(--section-gap) var(--page-x);
    gap: 40px;
}

.content .intro {
    flex: 1.3;
    line-height: 1.6;
}

.content .intro > p:first-child {
    margin-top: 0;
}

.content .intro > p:last-child {
    margin-bottom: 0;
}

.divider {
    width: 1px;
    background: var(--color-line);
    align-self: stretch;
}

.content .actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: stretch;
    gap: var(--block-gap);
}

.action-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--stack-gap);
    width: 100%;
}

.action-block > form,
.actions > form {
    margin: 0;
    width: 100%;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--stack-gap);
    margin: 0;
    width: 100%;
}

.form--blocks {
    gap: var(--block-gap);
}

.form .action-block {
    width: 100%;
}

.action-caption,
.field-label,
.summary-label {
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    align-self: stretch;
}

.field-label,
.summary-label {
    font-weight: 700;
}

.content--stack {
    flex-direction: column;
    align-items: stretch;
    gap: var(--block-gap);
}

.content--stack .intro {
    flex: none;
}

.content--stack .actions {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.content--stack .action-block,
.content--stack .form {
    width: var(--control-width);
    max-width: 100%;
}

.content--stack .btn {
    max-width: var(--control-width);
    margin-left: auto;
    margin-right: auto;
}

.field-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid var(--color-line);
    border-radius: 4px;
}

.field-input[readonly] {
    background: #ffffff;
}

.field-input--code {
    background: #f4f7fa;
    border: 2px solid var(--color-blue);
    font-family: "Courier New", monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.field-hint {
    font-size: 15px;
    color: #555555;
}

.radio-row {
    display: flex;
    gap: 24px;
    font-size: 16px;
}

.btn {
    display: block;
    width: 100%;
    padding: 9px 12px 8px;
    background: var(--color-blue);
    color: #ffffff;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid var(--color-blue);
    border-radius: 25px;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn:hover {
    background: var(--color-blue-hover);
    border-color: var(--color-blue-hover);
}

.btn--red {
    background: #ffffff;
    color: var(--color-red);
    border-color: var(--color-red);
}

.btn--red:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: #ffffff;
}

.btn--inline {
    display: inline-block;
    width: auto;
    padding: 5px 20px 4px;
    font-size: 16px;
}


.stack {
    display: flex;
    flex-direction: column;
    gap: var(--block-gap);
}

.progress {
    width: var(--control-width);
    max-width: 100%;
    height: 14px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.req-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    table-layout: fixed;
}

.req-table th {
    background: var(--color-red);
    color: #ffffff;
    text-align: left;
    padding: 10px 12px;
}

.req-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
    overflow-wrap: break-word;
}

.req-table tr:hover td {
    background: #f7f7f7;
}

.req-table td.cell-warn {
    color: #b3261e;
    font-weight: 600;
}

/* Keeps "(login)" together on its own line; only breaks inside when it alone exceeds the column */
.req-table .cell-login {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.req-table td.cell-break {
    overflow-wrap: anywhere;
}

.req-table td.cell-time {
    white-space: nowrap;
    padding-right: 20px;
}

.req-table td.cell-action {
    text-align: right;
    white-space: nowrap;
    padding-left: 24px;
}

.req-table .col-name {
    width: 19%;
}

.req-table .col-email {
    width: 26%;
}

.req-table .col-type {
    width: 11%;
}

.req-table .col-time {
    width: 20%;
}

.req-table .col-action {
    width: 18%;
}

@media (max-width: 760px) {
    .req-table,
    .req-table tbody,
    .req-table tr,
    .req-table td {
        display: block;
        width: auto;
    }

    .req-table thead,
    .req-table colgroup {
        display: none;
    }

    .req-table tr {
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        margin-bottom: 12px;
        padding: 4px 0;
    }

    .req-table td {
        border-bottom: none;
        padding: 6px 12px;
    }

    .req-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        font-size: 14px;
        color: #555555;
    }

    .req-table td.cell-action {
        text-align: left;
        padding-left: 12px;
    }
}

.summary {
    width: var(--control-width);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--stack-gap);
}

.summary-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}


.summary-value {
    font-size: 19px;
    overflow-wrap: anywhere;
}

.summary-detail {
    font-size: 15px;
    color: #555555;
    overflow-wrap: anywhere;
}

.error {
    margin: var(--section-gap) var(--page-x) 0;
    padding: 12px 16px;
    background: #fdecea;
    border: 1px solid #f5c6c2;
    border-radius: 4px;
    color: #b3261e;
    font-size: 16px;
}

.back-bar {
    padding: 0 var(--page-x);
    font-size: 17px;
}

.back-bar a {
    color: var(--color-blue);
}

.back-bar a + a {
    margin-left: 16px;
}

/* Card footer: language switch on the left, signed-in user and logout on the right */
.footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
    /* margin-top: var(--section-gap);*/
    margin-top: 10px !important;
    padding: 18px var(--page-x);
    border-top: 1px solid #e0e0e0;
    font-size: 16px;
}

.footer-user {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer form {
    margin: 0;
}

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

.footer-lang {
    margin-right: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.footer-lang-label {
    color: #666;
}

.lang-link {
    color: var(--color-blue);
    text-decoration: none;
}

.lang-link:hover {
    text-decoration: underline;
}

.lang-link--active {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    cursor: default;
}

.lang-sep {
    color: #c0c0c0;
}

@media (max-width: 780px) {
    body {
        padding: 16px;
    }

    .card {
        --page-x: 20px;
    }

    .content {
        flex-direction: column;
    }

    .divider {
        width: 100%;
        height: 1px;
    }
}
