/* =========================================================
   LEARNHIVE ATTENDANCE
   Relies on core's student-dashboard.css for tokens, fields,
   buttons and notices.
   ========================================================= */

.learnhive-attendance {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 70px;

    color: var(--lh-text);
    font-family: inherit;
}

.learnhive-attendance *,
.learnhive-attendance *::before,
.learnhive-attendance *::after {
    box-sizing: border-box;
}

.lh-att-card {
    margin-bottom: 24px;
    padding: 26px;

    background: var(--lh-surface);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-md);
    box-shadow: var(--lh-shadow-sm);
}

.lh-att-card h2 {
    margin: 0 0 14px;
    color: var(--lh-navy);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.learnhive-attendance .learnhive-field select,
.learnhive-attendance .learnhive-field input[type="date"] {
    width: 100%;
    padding: 11px 14px;
    color: var(--lh-text);
    background: #ffffff;
    border: 1px solid var(--lh-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

.learnhive-attendance .learnhive-field select:focus,
.learnhive-attendance .learnhive-field input[type="date"]:focus {
    outline: none;
    border-color: var(--lh-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.lh-att-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 20px;
    color: var(--lh-text);
    font-size: 14px;
    font-weight: 600;
}

/* Task list */
.lh-att-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lh-att-row {
    display: grid;
    grid-template-columns: 2fr 1.4fr 0.8fr;
    gap: 16px;
    align-items: center;

    padding: 14px 16px;
    background: var(--lh-surface);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
}

.lh-att-name strong {
    display: block;
    color: var(--lh-navy);
    font-size: 14px;
    font-weight: 700;
}

.lh-att-name span {
    color: var(--lh-muted);
    font-size: 12px;
}

.lh-att-meta {
    color: var(--lh-navy);
    font-size: 14px;
    font-weight: 600;
}

.lh-att-label {
    display: none;
}

@media (max-width: 640px) {

    .lh-att-row {
        grid-template-columns: 1fr 1fr;
    }

    .lh-att-name {
        grid-column: 1 / -1;
    }

    .lh-att-label {
        display: block;
        margin-bottom: 2px;
        color: var(--lh-muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

}


/* =========================================================
   STUDENT CHECK-IN (Phase 2)
   ========================================================= */

.lh-att-thankyou {
    padding: 40px 28px;
    text-align: center;

    background: var(--lh-surface);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-md);
    box-shadow: var(--lh-shadow-sm);
}

.lh-att-thankyou h2 {
    margin: 0 0 18px;
    color: var(--lh-navy);
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.lh-att-day {
    margin-bottom: 16px;
    padding: 20px 22px;

    background: var(--lh-surface);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-md);
    box-shadow: var(--lh-shadow-sm);
}

.lh-att-daylabel {
    color: var(--lh-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.lh-att-question {
    color: var(--lh-navy);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 14px;
}

.lh-att-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lh-att-option {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    border: 1px solid var(--lh-border);
    border-radius: 10px;

    color: var(--lh-text);
    font-size: 14px;
    cursor: pointer;
    transition: border-color var(--lh-transition), background var(--lh-transition);
}

.lh-att-option:hover {
    border-color: #cbd5e1;
}

.lh-att-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--lh-primary);
    flex: 0 0 auto;
}

/* Signature pad */
.lh-att-sig {
    margin: 6px 0 14px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

#lh-sig-canvas {
    display: block;
    width: 100%;
    height: 180px;
    touch-action: none; /* let finger-draw work without scrolling the page */
    cursor: crosshair;
}

.learnhive-button-light {
    color: var(--lh-primary) !important;
    background: var(--lh-primary-light);
    box-shadow: none;
}

.learnhive-button-light:hover {
    color: var(--lh-primary-dark) !important;
    background: #b8f0e6;
    box-shadow: none;
}

#lh-att-submit {
    margin-top: 8px;
}


/* =========================================================
   REGISTERS (instructor / admin view + print)
   ========================================================= */

.lh-reg-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.lh-reg-filter label {
    color: var(--lh-navy);
    font-size: 13px;
    font-weight: 600;
}

.lh-reg-filter select {
    padding: 9px 12px;
    color: var(--lh-text);
    background: #ffffff;
    border: 1px solid var(--lh-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}

.lh-reg-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.lh-reg-sheet {
    padding: 24px;
    background: var(--lh-surface);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-md);
    box-shadow: var(--lh-shadow-sm);
}

.lh-reg-head {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--lh-border);
}

.lh-reg-brand {
    color: var(--lh-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.lh-reg-head h1 {
    margin: 0 0 4px;
    color: var(--lh-navy);
    font-size: 22px;
    font-weight: 750;
}

.lh-reg-head p {
    margin: 2px 0;
    color: var(--lh-text);
    font-size: 14px;
}

.lh-reg-q {
    color: var(--lh-muted) !important;
    font-size: 13px !important;
}

.lh-reg-scroll {
    overflow-x: auto;
}

.lh-reg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.lh-reg-table th,
.lh-reg-table td {
    padding: 8px 10px;
    border: 1px solid var(--lh-border);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.lh-reg-table th {
    background: #f1f5f9;
    color: var(--lh-navy);
    font-weight: 700;
    font-size: 12px;
}

.lh-reg-learner {
    font-weight: 700;
    color: var(--lh-navy);
}

.lh-reg-attended { color: var(--lh-success); font-weight: 700; }
.lh-reg-leave    { color: var(--lh-warning); font-weight: 700; }
.lh-reg-none     { color: var(--lh-light-text); }

.lh-reg-sig img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 120px;
}

@media print {

    .site-header,
    #masthead,
    .site-footer,
    #colophon,
    .ast-mobile-header-wrap,
    .main-navigation,
    .ast-breadcrumbs,
    .lh-reg-actions,
    .lh-reg-filter {
        display: none !important;
    }

    .learnhive-attendance {
        padding: 0 !important;
        max-width: none !important;
    }

    .lh-reg-sheet {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .lh-reg-table {
        font-size: 11px;
    }

    .lh-reg-table th,
    .lh-reg-table td {
        padding: 5px 6px;
    }

    body {
        background: #ffffff !important;
    }
}
