/* TLMS Power Tools 3.0 - shared Tutor LMS 4 student dashboard UI */
.tlmspt-student-page {
    width: 100%;
    max-width: 100%;
}

.tlmspt-student-page-title {
    margin: 0 0 22px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
    color: #0f172a;
}

.tlmspt-student-page-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.tlmspt-student-panel {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
}

.tlmspt-student-panel--padded {
    padding: 20px;
}

.tlmspt-student-table-panel {
    overflow: hidden;
}

.tlmspt-student-table-panel .tutor-dashboard-content-inner {
    margin: 0;
    padding: 0;
}

.tlmspt-student-table-panel .tutor-table-responsive {
    margin: 0;
}

@media (max-width: 767px) {
    .tlmspt-student-page-title {
        margin-bottom: 16px;
        font-size: 17px;
    }

    .tlmspt-student-page-stack {
        gap: 16px;
    }

    .tlmspt-student-panel--padded {
        padding: 16px;
    }
}


/* Student dashboard pagination shared by Certificate Validity and My Quiz Attempts. */
.tlmspt-student-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.tlmspt-student-pagination-summary {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.tlmspt-student-pagination-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.tlmspt-page-link {
    min-width: 36px;
    min-height: 36px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7deea;
    border-radius: 7px;
    background: #fff;
    color: #1d4ed8;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.tlmspt-page-link:hover,
.tlmspt-page-link:focus {
    border-color: #2563eb;
    color: #1d4ed8;
    background: #eff6ff;
}

.tlmspt-page-link.is-current {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    cursor: default;
}

.tlmspt-page-nav {
    padding-left: 13px;
    padding-right: 13px;
}

.tlmspt-page-ellipsis {
    color: #64748b;
    padding: 0 2px;
}

.tlmspt-student-history-course {
    margin: 4px 0 2px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}

@media (max-width: 767px) {
    .tlmspt-student-pagination {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .tlmspt-student-pagination-summary {
        text-align: center;
    }

    .tlmspt-student-pagination-links {
        justify-content: center;
    }
}

/* My Credentials — restored student badge/credential presentation. */
.tlmspt-my-credentials-wrap{display:flex;flex-direction:column;gap:20px}.tlmspt-my-credentials-heading h3{margin:0 0 6px;font-size:24px;line-height:1.25;color:#0f172a}.tlmspt-my-credentials-heading p{margin:0;color:#64748b}.tlmspt-credentials-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tlmspt-credential-card{display:grid;grid-template-columns:120px 1fr;gap:18px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:18px;box-shadow:0 1px 2px rgba(15,23,42,.04)}.tlmspt-credential-card-media{display:flex;align-items:flex-start;justify-content:center}.tlmspt-credential-card-media img{display:block;max-width:110px;max-height:110px;width:auto;height:auto;object-fit:contain}.tlmspt-credential-placeholder{display:flex;align-items:center;justify-content:center;width:96px;height:96px;border-radius:50%;background:#f8fafc;font-size:42px}.tlmspt-credential-card-body h4{margin:0 0 4px;font-size:18px;line-height:1.3;color:#0f172a}.tlmspt-credential-issuer{margin:0 0 12px;color:#64748b;font-size:13px}.tlmspt-credential-meta{margin:0;display:grid;gap:9px}.tlmspt-credential-meta div{display:grid;grid-template-columns:130px 1fr;gap:8px}.tlmspt-credential-meta dt{font-size:12px;color:#64748b}.tlmspt-credential-meta dd{margin:0;font-size:13px;color:#0f172a}.tlmspt-credential-meta small{display:block;margin-top:4px;color:#64748b}.tlmspt-credential-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}@media(max-width:991px){.tlmspt-credentials-grid{grid-template-columns:1fr}}@media(max-width:575px){.tlmspt-credential-card{grid-template-columns:1fr}.tlmspt-credential-card-media{justify-content:flex-start}.tlmspt-credential-meta div{grid-template-columns:1fr}}

/* My Credentials — Tutor LMS 4 aligned layout */
.tlmspt-mycred-wrap{display:flex;flex-direction:column;gap:20px}
.tlmspt-mycred-intro h3{margin:0 0 6px;font-size:24px;line-height:1.25;color:#0f172a}
.tlmspt-mycred-intro p{margin:0;color:#64748b}
.tlmspt-mycred-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tlmspt-mycred-stat{border:1px solid #e7e9ef;border-radius:10px;background:#fff;padding:18px}
.tlmspt-mycred-stat strong{display:block;font-size:24px;line-height:1.1;color:#0f172a;margin-bottom:5px}
.tlmspt-mycred-stat span{font-size:13px;color:#64748b}
.tlmspt-mycred-table-wrap{overflow-x:auto;border:1px solid #e7e9ef;border-radius:10px;background:#fff}
.tlmspt-mycred-table{width:100%;min-width:980px;border-collapse:collapse}
.tlmspt-mycred-table th,.tlmspt-mycred-table td{padding:16px 14px;border-bottom:1px solid #eef0f4;text-align:left;vertical-align:middle}
.tlmspt-mycred-table th{font-size:12px;text-transform:uppercase;letter-spacing:.02em;color:#64748b;background:#fafbfc;white-space:nowrap}
.tlmspt-mycred-table tr:last-child td{border-bottom:0}
.tlmspt-mycred-course-cell{min-width:260px}
.tlmspt-mycred-course-title{display:block;font-size:16px;line-height:1.45;color:#0f172a;font-weight:700}
.tlmspt-mycred-course-subtitle{display:block;margin-top:4px;font-size:13px;color:#64748b}
.tlmspt-mycred-validity-cell,.tlmspt-mycred-publication-cell{display:flex;flex-direction:column;gap:8px;min-width:170px}
.tlmspt-mycred-secondary-text{font-size:13px;line-height:1.45;color:#64748b}
.tlmspt-mycred-publication-badge{display:inline-flex;align-items:center;width:fit-content;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.tlmspt-mycred-publication-badge.is-published{background:#ecfdf3;color:#027a48}
.tlmspt-mycred-publication-badge.is-unavailable{background:#f3f4f6;color:#475569}
.tlmspt-mycred-actions{display:flex;gap:8px;flex-wrap:wrap;min-width:280px}
.tlmspt-mycred-actions .tutor-btn{min-height:38px;padding:8px 14px;text-decoration:none;white-space:nowrap}
.tlmspt-mycred-actions .tlmspt-mycred-outline-btn{background:#fff!important;border:1px solid #2563eb!important;color:#1d4ed8!important;font-weight:600}
.tlmspt-mycred-actions .tlmspt-mycred-outline-btn:hover,.tlmspt-mycred-actions .tlmspt-mycred-outline-btn:focus{background:#eff6ff!important;border-color:#1d4ed8!important;color:#1d4ed8!important}
.tlmspt-mycred-actions .tlmspt-mycred-text-btn{background:transparent!important;border:1px solid transparent!important;color:#0f172a!important;font-weight:600;padding-left:6px;padding-right:6px}
.tlmspt-mycred-actions .tlmspt-mycred-text-btn:hover,.tlmspt-mycred-actions .tlmspt-mycred-text-btn:focus{color:#1d4ed8!important;background:transparent!important}
.tlmspt-mycred-mobile-list{display:none}
.tlmspt-mycred-mobile-card{border:1px solid #e7e9ef;border-radius:10px;background:#fff;padding:16px}
.tlmspt-mycred-mobile-head h4{margin:0 0 6px;font-size:18px;line-height:1.35;color:#0f172a}
.tlmspt-mycred-mobile-head p{margin:0 0 14px;font-size:13px;color:#64748b}
.tlmspt-mycred-mobile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;margin-bottom:16px}
.tlmspt-mycred-mobile-label{display:block;margin-bottom:5px;font-size:11px;line-height:1.35;color:#64748b;text-transform:uppercase;letter-spacing:.03em}
.tlmspt-mycred-mobile-value{display:block;font-size:14px;line-height:1.45;color:#0f172a}
@media(max-width:991px){.tlmspt-mycred-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.tlmspt-mycred-intro h3{font-size:22px}.tlmspt-mycred-summary{grid-template-columns:1fr 1fr}.tlmspt-mycred-table-wrap{display:none}.tlmspt-mycred-mobile-list{display:flex;flex-direction:column;gap:12px}.tlmspt-mycred-mobile-grid{grid-template-columns:1fr 1fr}.tlmspt-mycred-actions{min-width:0}}
@media(max-width:575px){.tlmspt-mycred-summary{grid-template-columns:1fr}.tlmspt-mycred-mobile-grid{grid-template-columns:1fr}.tlmspt-mycred-actions .tutor-btn,.tlmspt-mycred-actions .tlmspt-mycred-text-btn{width:100%;justify-content:center;padding-left:14px;padding-right:14px}}
