.checkin-layout {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    color: #1e293b;
    overflow-wrap: anywhere;
}

.checkin-layout * {
    box-sizing: border-box;
}

.checkin-heading {
    margin-bottom: 24px;
}

.checkin-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.checkin-heading p,
.checkin-help {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.checkin-card {
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.checkin-verify-card {
    max-width: 460px;
    margin: 48px auto;
}

.checkin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    border-radius: 16px;
    color: #2563eb;
    background: #eff6ff;
}

.checkin-icon svg {
    width: 28px;
    height: 28px;
}

.checkin-form {
    display: grid;
    gap: 24px;
}

.checkin-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.checkin-field input,
.checkin-field textarea,
.checkin-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    background: #fff;
    font: inherit;
    font-size: 16px;
}

.checkin-field textarea {
    min-height: 156px;
    resize: vertical;
}

.checkin-field input:focus,
.checkin-field textarea:focus,
.checkin-field select:focus {
    border-color: #2563eb;
    outline: 3px solid #dbeafe;
    outline-offset: 1px;
}

.checkin-field input[type="file"] {
    padding: 10px;
    font-size: 14px;
}

.checkin-primary,
.checkin-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.checkin-primary {
    color: #fff;
    background: #2563eb;
}

.checkin-primary:hover {
    background: #1d4ed8;
}

.checkin-secondary {
    color: #475569;
    background: #f1f5f9;
}

.checkin-primary:focus-visible,
.checkin-secondary:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.checkin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkin-form > .checkin-primary {
    width: 100%;
}

.checkin-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.checkin-details dt {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 13px;
}

.checkin-details dd {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.checkin-table-container {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}

.checkin-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.checkin-table th {
    padding: 16px;
    color: #64748b;
    background: #f8fafc;
    font-weight: 600;
}

.checkin-table td {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

.checkin-table .checkin-primary {
    min-width: 96px;
    white-space: nowrap;
}

.checkin-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.checkin-status-pending {
    color: #b45309;
    background: #fffbeb;
}

.checkin-status-active {
    color: #1d4ed8;
    background: #eff6ff;
}

.checkin-status-done {
    color: #15803d;
    background: #f0fdf4;
}

.checkin-empty {
    padding: 48px 24px;
    text-align: center;
    color: #64748b;
}

@media (max-width: 767px) {
    .checkin-heading {
        margin-bottom: 20px;
    }

    .checkin-heading h1 {
        font-size: 24px;
    }

    .checkin-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .checkin-verify-card {
        margin: 20px auto;
    }

    .checkin-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .checkin-actions > a,
    .checkin-actions > button {
        width: 100%;
    }

    .checkin-table-container {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .checkin-table,
    .checkin-table tbody {
        display: block;
        min-width: 0;
    }

    .checkin-table thead {
        display: none;
    }

    .checkin-table tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-bottom: 16px;
        padding: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    }

    .checkin-table td {
        display: block;
        padding: 0;
        border: 0;
    }

    .checkin-table td[data-label]::before {
        display: block;
        margin-bottom: 6px;
        color: #64748b;
        font-size: 12px;
        content: attr(data-label);
    }

    .checkin-table .record-time,
    .checkin-table .record-action {
        grid-column: 1 / -1;
    }

    .checkin-table .checkin-primary {
        width: 100%;
    }
}
