/* Estilos del componente compartido CapaEditorHeader (AF / Inv / SFCap / SFGPP) */

.wl-capa-header {
    margin-bottom: 1rem;
}

.wl-capa-header .wl-gold-line {
    height: 3px;
    background: #D4A853;
    margin-bottom: 0.75rem;
    border-radius: 2px;
}

.wl-capa-header .wl-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 0.85rem;
    color: #667085;
    margin-bottom: .3rem;
    flex-wrap: wrap;
}

.wl-capa-header .wl-breadcrumb a {
    color: #1E3A5F;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.wl-capa-header .wl-breadcrumb a:hover {
    text-decoration: underline;
}

.wl-capa-header .wl-capa-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E3A5F;
    margin: 0;
    line-height: 1.2;
}

.wl-capa-header .wl-capa-subtitle {
    font-size: 0.9rem;
    color: #667085;
    margin-top: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.wl-capa-header .wl-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #eff4fb;
    color: #1E3A5F;
    border: 1px solid #d4dff0;
    white-space: nowrap;
}

.wl-capa-header .wl-chip-ok {
    background: #e6f4ea;
    color: #1e7e34;
    border-color: #b7dfc2;
}

.wl-capa-header .wl-chip-err {
    background: #fde9e9;
    color: #b42318;
    border-color: #f5c7c7;
}

.wl-capa-header .wl-chip-warn {
    background: #fff8e1;
    color: #805b00;
    border-color: #f2dfa0;
}

.wl-capa-header .wl-kpi-card {
    background: white;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    height: 100%;
}

.wl-capa-header .wl-kpi-card.danger {
    border: 2px solid #dc3545;
}

.wl-capa-header .wl-kpi-card.success {
    border: 2px solid #198754;
}

.wl-capa-header .wl-kpi-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #667085;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: .25rem;
}

.wl-capa-header .wl-kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1E3A5F;
    line-height: 1.2;
}

.wl-capa-header .wl-kpi-value.text-danger { color: #b42318; }
.wl-capa-header .wl-kpi-value.text-success { color: #198754; }

/* Botón "Más" del menú desplegable */
.wl-capa-header .wl-mas-btn {
    background: #f4f5f7;
    border: 1px solid #d0d5dd;
    color: #344054;
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.wl-capa-header .wl-mas-btn:hover {
    background: #e9eaec;
}

.wl-capa-header .wl-mas-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 220px;
    z-index: 1050;
    padding: 0.25rem 0;
    margin-top: 4px;
}

.wl-capa-header .wl-mas-menu .wl-mas-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    color: #344054;
    cursor: pointer;
    background: none;
    border: 0;
    width: 100%;
    text-align: left;
}

.wl-capa-header .wl-mas-menu .wl-mas-item:hover {
    background: #f4f5f7;
}

.wl-capa-header .wl-mas-menu .wl-mas-item-danger {
    color: #b42318;
}

.wl-capa-header .wl-mas-menu hr {
    margin: 0.25rem 0;
    border: 0;
    border-top: 1px solid #e4e7ec;
}

.wl-capa-header .wl-mas-wrapper {
    position: relative;
    display: inline-block;
}
