/* ============================================================
   PLANO DE AÇÃO — modal_cadastrar_plano_acao + painel_mentoria_plano_acao
   Font: Open Sans | Cores: var(--primary)
   ============================================================ */

/* ---------- TOPBAR (list modal) ---------- */
.pla-topbar {
    padding: 10px 16px;
    border-bottom: 1px solid #eef1f5;
    background: #f7f9fb;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* ---------- LIST AREA ---------- */
.pla-list-area {
    min-height: 200px;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
}
.pla-list-area::-webkit-scrollbar { width: 4px; }
.pla-list-area::-webkit-scrollbar-track { background: transparent; }
.pla-list-area::-webkit-scrollbar-thumb { background: #dde3ea; border-radius: 2px; }

/* ---------- PLAN CARD (list row) ---------- */
.pla-card {
    border-left: 4px solid var(--primary, #4a5f7f);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: box-shadow .12s, transform .12s;
}
.pla-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.11);
    transform: translateY(-1px);
}
.pla-card:last-child { margin-bottom: 0; }

.pla-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.pla-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    font-family: 'Open Sans', sans-serif;
    flex: 1;
    line-height: 1.4;
}

.pla-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.pla-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #5a6473;
    font-family: 'Open Sans', sans-serif;
}

.pla-meta-item i { color: var(--primary, #4a5f7f); font-size: 10px; }

.pla-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: flex-end;
}

/* ---------- STATUS BADGES ---------- */
.pla-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    white-space: nowrap;
}
.pla-badge--em-andamento {
    background: rgba(var(--primary-rgb, 74,95,127), .1);
    color: var(--primary, #4a5f7f);
    border: 1px solid var(--primary, #4a5f7f);
}
.pla-badge--finalizado {
    background: #e8f8ee;
    color: #27864f;
    border: 1px solid #27864f;
}

/* ---------- PROGRESS BAR (form) ---------- */
.pla-progress-wrap {
    margin: 8px 0 4px;
}

.pla-progress-track {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #eef1f5;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    accent-color: var(--primary, #4a5f7f);
}
.pla-progress-track::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary, #4a5f7f);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    border: 2px solid #fff;
}
.pla-progress-track::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary, #4a5f7f);
    cursor: pointer;
    border: 2px solid #fff;
}

.pla-progress-label {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.pla-perc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 4px 12px;
    background: var(--primary, #4a5f7f);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
}

/* ---------- TEXT VIEW (read-only display) ---------- */
.pla-text-view {
    background: #f7f9fb;
    border: 1px solid #eef1f5;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #4c5968;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.55;
    margin-top: 6px;
    min-height: 38px;
}

/* ---------- FORM SECTION DIVIDER ---------- */
.pla-section-divider {
    border: none;
    border-top: 1px solid #eef1f5;
    margin: 16px 0;
}

/* ---------- EMPTY STATE ---------- */
.pla-empty {
    padding: 40px 20px;
    text-align: center;
    color: #9baab6;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}
.pla-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    color: #dde3ea;
}

/* ---------- TABLE OVERRIDES (list table) ---------- */
#painel_mentoria_plano_acao .table-responsive {
    border-radius: 6px;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #eef1f5;
}
#painel_mentoria_plano_acao .table {
    margin-bottom: 0;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
}
#painel_mentoria_plano_acao .table thead th {
    background: #f7f9fb;
    color: #2d3748;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 2px solid #eef1f5;
    padding: 10px 12px;
    white-space: nowrap;
}
#painel_mentoria_plano_acao .table tbody td {
    color: #4c5968;
    padding: 10px 12px;
    vertical-align: middle;
    border-color: #eef1f5;
    font-size: 12px;
}
#painel_mentoria_plano_acao .table-striped > tbody > tr:nth-of-type(odd) {
    background: #fafbfd;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .pla-card-header { flex-direction: column; gap: 8px; }
    .pla-card-actions { justify-content: flex-start; }
}


.btn_salvar_plano_acao_mentoria{
    width: 100%;
}

/* ---------- CARD ADMIN — detail rows ---------- */
.pla-card-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: #5a6473;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 2px;
    margin-top: 8px;
}
.pla-card-detail-value {
    font-size: 12px;
    color: #2d3748;
    margin-bottom: 4px;
}