/**
 * M2 Med Solutions - Onboarding Progress (Dashboard Card & Document Submission Box)
 */

/* Dashboard Progress Card */
.m2-obp-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px 24px;
    margin: 0 0 24px;
    box-shadow: 0 4px 14px rgba(1, 24, 40, 0.05);
}
.m2-obp-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.m2-obp-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0097CE;
    margin-bottom: 4px;
}
.m2-obp-title {
    margin: 0;
    font-size: 20px;
    color: #011828;
}
.m2-obp-pct {
    font-size: 28px;
    font-weight: 800;
    color: #0f766e;
    line-height: 1;
}
.m2-obp-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 14px 0 10px;
}
.m2-obp-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0097CE, #0f766e);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.m2-obp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 13px;
    color: #475569;
}
.m2-obp-todo {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.m2-obp-todo a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: #f8fafc;
    color: #011828;
    text-decoration: none;
    font-size: 14px;
}
.m2-obp-todo a:hover {
    border-color: #0097CE;
}
.m2-obp-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}
.m2-obp-tag.is-training { background: #e0f2fe; color: #0369a1; }
.m2-obp-tag.is-doc { background: #ede9fe; color: #5b21b6; }
.m2-obp-flag {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: #b91c1c;
}
.m2-obp-card.is-complete .m2-obp-title { color: #059669; }

/* Training Completion Box (hidden by default in onboarding-showcase.css; shown on required training) */
.m2-single-ob-completion-box.is-tracked {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0097CE;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 24px 0;
}
.m2-single-ob-completion-box.is-tracked.is-done { border-left-color: #059669; background: #f0fdf4; }
.m2-single-ob-completion-box .m2-completion-box-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 220px;
}
.m2-single-ob-completion-box .m2-completion-circle-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    background: #e0f2fe;
    color: #0369a1;
}
.m2-single-ob-completion-box.is-done .m2-completion-circle-icon { background: #dcfce7; color: #166534; }
.m2-single-ob-completion-box .m2-completion-heading { margin: 0 0 4px; font-size: 17px; color: #011828; }
.m2-single-ob-completion-box .m2-completion-sub { margin: 0; font-size: 14px; color: #64748b; }
.m2-single-ob-complete-btn {
    background: #0097CE;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.m2-single-ob-complete-btn:hover { background: #007fae; }
.m2-single-ob-complete-btn.is-done { background: #059669; }

/* Document Submission Box */
.m2-ob-doc-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #6366f1;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 24px 0;
}
.m2-ob-doc-box.is-approved { border-left-color: #059669; }
.m2-ob-doc-box.is-rejected { border-left-color: #ef4444; }
.m2-ob-doc-box.is-submitted { border-left-color: #0097CE; }
.m2-ob-doc-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}
.m2-ob-doc-icon { font-size: 26px; line-height: 1; }
.m2-ob-doc-head > div:nth-child(2) { flex: 1; min-width: 200px; }
.m2-ob-doc-title { margin: 0 0 4px; font-size: 17px; color: #011828; }
.m2-ob-doc-sub { margin: 0; font-size: 14px; color: #64748b; }
.m2-ob-doc-status {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
}
.m2-ob-doc-box.is-approved .m2-ob-doc-status { background: #dcfce7; color: #166534; }
.m2-ob-doc-box.is-rejected .m2-ob-doc-status { background: #fee2e2; color: #991b1b; }
.m2-ob-doc-box.is-submitted .m2-ob-doc-status { background: #e0f2fe; color: #0369a1; }
.m2-ob-doc-notice {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.m2-ob-doc-notice.is-success { background: #dcfce7; color: #166534; }
.m2-ob-doc-notice.is-error { background: #fee2e2; color: #991b1b; }
.m2-ob-doc-meta { margin: 14px 0 0; font-size: 13px; color: #475569; }
.m2-ob-doc-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 16px;
}
.m2-ob-doc-file { font-size: 14px; max-width: 100%; }
.m2-ob-doc-btn {
    display: inline-block;
    background: #0097CE;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 14px;
}
.m2-ob-doc-form .m2-ob-doc-btn { margin-top: 0; }
.m2-ob-doc-btn:hover { background: #007fae !important; }
.m2-ob-doc-hint { font-size: 12px; color: #94a3b8; }
