/* =========================================
   VISITOR INDEX — COMPACT RECEIPT
   Site chrome still comes from ../css/style.css
========================================= */

.visitor-index-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.visitor-index-title {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 40;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%);
}

.visitor-index-section {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 92px 190px 80px;
}

.visitor-receipt {
    width: min(820px, 100%);
    margin: 0 auto;

    color: inherit;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.visitor-receipt,
.visitor-receipt * {
    color: inherit;
}

.visitor-receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.visitor-receipt-header p {
    margin: 0;
    padding: 0;
}

.visitor-receipt-service {
    font-weight: 700;
}

.visitor-receipt-rule {
    width: 100%;
    height: 7px;
    margin: 2px 0 0;
    overflow: hidden;
    color: transparent !important;
    font-size: 0;
    line-height: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.72);
    opacity: 0.52;
}

.visitor-receipt-rule::before {
    content: "";
}

.visitor-receipt-rule.thin {
    height: 7px;
    margin-top: 1px;
}

.visitor-receipt-bottom-rule {
    margin-top: 2px;
}

.visitor-index-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 72px;
    row-gap: 0;
    margin: 0;
    padding: 0;
}

.visitor-index-summary p {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin: 0;
    padding: 0;
    line-height: 1.05;
}

.visitor-index-summary p span:first-child {
    opacity: 1;
}

.visitor-index-table-heading,
.visitor-index-row {
    display: grid;
    grid-template-columns:
        0.62fr
        1.18fr
        0.72fr
        1.28fr;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.visitor-index-table-heading {
    opacity: 1;
    line-height: 1.05;
}

.visitor-index-table-heading span:last-child,
.visitor-index-row-time {
    text-align: right;
}

.visitor-index-list {
    width: 100%;
    margin: 0;
    padding: 0;
}

.visitor-index-row {
    min-height: 0;
    padding: 1px 0;
    line-height: 1.05;
}

.visitor-index-empty {
    margin: 1px 0;
    padding: 0;
    opacity: 1;
    line-height: 1.05;
}

.visitor-receipt-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 0;
    opacity: 1;
    line-height: 1.05;
}

.visitor-index-status {
    position: fixed;
    right: var(--interface-x);
    bottom: var(--interface-y);
    z-index: 40;
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .visitor-index-title {
        position: absolute;
        top: 78px;
        width: calc(100% - 40px);
        font-size: 12px;
        text-align: center;
        white-space: normal;
    }

    .visitor-index-section {
        min-height: 100svh;
        padding: 118px 16px 72px;
    }

    .visitor-receipt {
        width: 100%;
        font-size: 10px;
    }

    .visitor-index-summary {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .visitor-index-table-heading,
    .visitor-index-row {
        grid-template-columns:
            0.65fr
            0.95fr
            0.72fr
            1.3fr;
        gap: 7px;
        font-size: 10px;
    }

    .visitor-receipt-header,
    .visitor-receipt-footer {
        display: flex;
    }

    .visitor-index-status {
        display: none;
    }
}
