/* ============================================================
   formEnrollmentFormPrint.css
   Reimpresion de formulario de inscripcion (aspirante publico)
   Prefijo: efp-*  |  Consume tokens de theme-vars.css
   ============================================================ */

.efp-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 18px;
    color: var(--text-primary, #1f3a5f);
}

/* Hero institucional */
.efp-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    margin-bottom: 22px;
    background: var(--gradient-primary, linear-gradient(135deg, #1f3a5f 0%, #2e5f96 100%));
    color: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-md, 0 4px 14px rgba(0, 0, 0, .12));
}
.efp-hero img {
    height: 64px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}
.efp-hero-text h1 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .3px;
}
.efp-hero-text p {
    margin: 0;
    font-size: 12px;
    opacity: .85;
}

/* Tarjeta de busqueda */
.efp-search-card {
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-soft, #eef0f5);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(0, 0, 0, .06));
}
.efp-search-card h2 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: var(--primary, #1565c0);
    display: flex;
    align-items: center;
    gap: 8px;
}
.efp-search-card p {
    margin: 0 0 18px 0;
    font-size: 13px;
    color: var(--text-secondary, #4a5e7e);
}

.efp-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.efp-search-row > select,
.efp-search-row > input[type="text"] {
    flex: 1 1 220px;
    min-width: 200px;
    padding: 10px 12px;
    border: 1px solid var(--border, #c5cfe8);
    border-radius: 8px;
    background: var(--bg-page, #fafbfd);
    color: var(--text-primary, #1f3a5f);
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.efp-search-row > select:focus,
.efp-search-row > input[type="text"]:focus {
    outline: none;
    border-color: var(--primary, #1565c0);
    box-shadow: 0 0 0 3px var(--primary-soft, rgba(21, 101, 192, .15));
}

/* Botones */
.efp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.efp-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, .12)); }
.efp-btn:active { transform: translateY(0); }
.efp-btn-primary   { background: var(--gradient-primary, linear-gradient(135deg, #1565c0, #0b3d6d)); color: #fff; }
.efp-btn-secondary { background: var(--bg-page, #f4f6fb); color: var(--text-primary, #1f3a5f); border: 1px solid var(--border, #c5cfe8); }
.efp-btn-accent    { background: var(--accent, #f57c00); color: #fff; }
.efp-btn-success   { background: var(--success, #4CAF50); color: #fff; }

/* Cabecera del aspirante */
.efp-prs-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    margin-bottom: 16px;
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-soft, #eef0f5);
    border-radius: 12px;
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(0, 0, 0, .06));
}
.efp-prs-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-soft, rgba(21, 101, 192, .12));
    color: var(--primary, #1565c0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.efp-prs-info {
    flex: 1;
}
.efp-prs-info h3 {
    margin: 0 0 2px 0;
    font-size: 15px;
    color: var(--text-primary, #1f3a5f);
}
.efp-prs-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted, #7a8aaa);
}

/* Grid de cards */
.efp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.efp-card {
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-soft, #eef0f5);
    border-radius: 14px;
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(0, 0, 0, .06));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.efp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 6px 18px rgba(0, 0, 0, .12));
}
.efp-card-head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-soft, rgba(21, 101, 192, .08));
    border-bottom: 1px solid var(--border-soft, #eef0f5);
}
.efp-card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-primary, linear-gradient(135deg, #1565c0, #0b3d6d));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.efp-card-title-wrap { flex: 1; min-width: 0; }
.efp-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #1f3a5f);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.efp-card-sub {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: var(--text-muted, #7a8aaa);
}
.efp-card-body {
    margin: 0;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 12px;
    row-gap: 6px;
    font-size: 12.5px;
}
.efp-card-body dt {
    color: var(--text-muted, #7a8aaa);
    font-weight: 600;
}
.efp-card-body dd {
    margin: 0;
    color: var(--text-primary, #1f3a5f);
    word-break: break-word;
}
.efp-card-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--border-soft, #eef0f5);
    background: var(--bg-page, #fafbfd);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Chip de estado */
.efp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.efp-chip-success { background: var(--success-soft, rgba(76, 175, 80, .15)); color: var(--success, #2e7d32); }
.efp-chip-warning { background: var(--warning-soft, rgba(255, 152, 0, .15)); color: var(--warning, #ef6c00); }
.efp-chip-info    { background: var(--info-soft, rgba(2, 136, 209, .15));    color: var(--info,    #0277bd); }

.efp-spacer { flex: 1; }

/* Empty / no results */
.efp-empty {
    text-align: center;
    padding: 32px 18px;
    color: var(--text-muted, #7a8aaa);
    background: var(--bg-surface, #fff);
    border: 1px dashed var(--border, #c5cfe8);
    border-radius: 12px;
}
.efp-empty i {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-muted, #7a8aaa);
}
.efp-empty p { margin: 0; font-size: 13px; }

/* Responsive */
@media (max-width: 640px) {
    .efp-hero { flex-direction: column; text-align: center; }
    .efp-search-row > select,
    .efp-search-row > input[type="text"],
    .efp-search-row > button { width: 100%; flex: 1 1 100%; }
    .efp-prs-head { flex-wrap: wrap; }
}
