/* Contenedor del menú */
.menu, .btn-succes {
    background: linear-gradient(
        180deg,
        #064e3b 0%,
        #065f46 40%,
        #047857 100%
    );
    padding: 12px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* Lista */
.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Elementos */
.menu li {
    margin: 0;
}

/* Links */
.menu a {
    display: block;
    padding: 10px 18px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.08);
}


.menu a:hover {
    background: #ffffff;
    color: #064e3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}


.menu a.active {
    background: #ffffff;
    color: #064e3b;
}


h2 {
    margin: 20px 0 10px;
    font-weight: 700;
    color: #064e3b;
}

@media (max-width: 768px) {
    .menu ul {
        flex-direction: column;
    }

    .menu a {
        width: 90%;
        text-align: center;
    }
}

.dv-card__topbar{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    flex-wrap:wrap;
}

.dv-card__info{
    flex:1 1 auto;
    min-width:220px;
}

.dv-card__actions{
    margin-left:auto;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    flex:0 0 auto;
}

.dv-btn-edit{
    white-space:nowrap;
}

@media (max-width: 768px){
    .dv-card__topbar{
        flex-direction:column;
        align-items:stretch;
    }

    .dv-card__actions{
        margin-left:0;
        width:100%;
        justify-content:flex-end;
    }

    .dv-btn-edit{
        width:100%;
        max-width:220px;
    }
}

.pagoscxp-form .cxp-file-field {
    margin-bottom: 22px;
}

.pagoscxp-form .cxp-upload-panel {
    position: relative;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 118px;
    padding: 18px 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.pagoscxp-form .cxp-upload-panel:hover {
    border-color: var(--erp-teal-400);
    background: linear-gradient(180deg, #fff 0%, #f0fdfa 100%);
}

.pagoscxp-form .cxp-upload-panel:focus-within {
    border-color: var(--erp-teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .14);
}

.pagoscxp-form .cxp-upload-panel.has-file {
    border-style: solid;
    border-color: rgba(20, 184, 166, .45);
    background: #f0fdfa;
}

.pagoscxp-form .cxp-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(20, 184, 166, .12);
    color: var(--erp-teal-700);
    font-size: 1.35rem;
}

.pagoscxp-form .cxp-upload-panel.has-file .cxp-upload-icon {
    background: var(--erp-teal-600);
    color: #fff;
}

.pagoscxp-form .cxp-upload-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding-right: 168px;
}

.pagoscxp-form .cxp-upload-title {
    color: var(--erp-gray-800);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}

.pagoscxp-form .cxp-upload-status {
    max-width: 100%;
    color: var(--erp-gray-500);
    font-size: .88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pagoscxp-form .cxp-upload-panel.has-file .cxp-upload-status {
    color: var(--erp-teal-800);
    font-weight: 700;
}

.pagoscxp-form .cxp-upload-panel input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.pagoscxp-form .cxp-upload-clear {
    position: absolute;
    right: 128px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(220, 38, 38, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: var(--erp-danger);
    font-size: 1rem;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.pagoscxp-form .cxp-upload-panel.has-file .cxp-upload-clear {
    display: inline-flex;
}

.pagoscxp-form .cxp-upload-clear:hover,
.pagoscxp-form .cxp-upload-clear:focus {
    border-color: var(--erp-danger);
    background: #fef2f2;
    color: #b91c1c;
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 6px 14px rgba(185, 28, 28, .14);
    outline: none;
}

.pagoscxp-form .cxp-upload-panel::after {
    content: "Elegir archivo";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--erp-teal-600);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    pointer-events: none;
}

.pagoscxp-form .has-error .cxp-upload-panel {
    border-color: var(--erp-danger);
    background: #fff7f7;
}

@media (max-width: 575px) {
    .pagoscxp-form .cxp-upload-panel {
        grid-template-columns: 48px minmax(0, 1fr);
        min-height: 142px;
        align-items: start;
        padding: 16px;
    }

    .pagoscxp-form .cxp-upload-icon {
        width: 48px;
        height: 48px;
    }

    .pagoscxp-form .cxp-upload-copy {
        padding-right: 0;
    }

    .pagoscxp-form .cxp-upload-panel::after {
        right: 12px;
        top: auto;
        bottom: 12px;
        transform: none;
    }

    .pagoscxp-form .cxp-upload-clear {
        left: 126px;
        right: auto;
        top: auto;
        bottom: 12px;
        transform: none;
    }

    .pagoscxp-form .cxp-upload-clear:hover,
    .pagoscxp-form .cxp-upload-clear:focus {
        transform: scale(1.03);
    }
}
