/* =========================================================
   AVE FÉNIX · V12
   ========================================================= */

/* ---------------------------------------------------------
   Consulta: paginación de plataformas
   --------------------------------------------------------- */

#platform-pagination {
    min-height: 38px;
    margin-top: 2px !important;
    margin-bottom: 14px !important;
}

.af-v12-platform-pagination {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.af-v12-page-arrow {
    width: 35px;
    height: 35px;
    min-width: 35px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d7e0eb;
    border-radius: 11px;
    background: #ffffff;
    color: #334155;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .08);
    cursor: pointer;
    transition:
        transform .18s ease,
        border-color .18s ease,
        color .18s ease,
        box-shadow .18s ease;
}

.af-v12-page-arrow:hover {
    color: #dc2626;
    border-color: rgba(220, 38, 38, .45);
    box-shadow: 0 7px 18px rgba(220, 38, 38, .13);
    transform: translateY(-1px);
}

.af-v12-page-arrow:active {
    transform: translateY(0) scale(.96);
}

.af-v12-page-arrow:disabled {
    opacity: .38;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.af-v12-page-indicator {
    min-width: 160px;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 750;
    text-align: center;
}

#resultsModal[hidden],
#resultsModal[aria-hidden="true"] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

#resultsModal[aria-hidden="false"] {
    pointer-events: auto !important;
    visibility: visible !important;
}

/* ---------------------------------------------------------
   Consulta: modal del mensaje ligeramente mayor
   --------------------------------------------------------- */

#resultsModal {
    padding: 74px 18px 62px !important;
}

#resultsModal .modal-content-container {
    width: min(930px, calc(100vw - 36px)) !important;
    max-width: 930px !important;
    max-height: calc(100vh - 150px) !important;
    margin: auto !important;
}

#resultsModal .modal-content-container > div {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
}

#resultsModal .modal-content-container .prose {
    max-width: 100% !important;
}

#resultsModal .modal-content-container
.border.rounded-lg.bg-gray-50,
#resultsModal .modal-content-container
.border.rounded-lg.p-4.bg-gray-50 {
    max-height: 430px !important;
}

/* ---------------------------------------------------------
   Gestionar Cuentas: una sola línea y orden solicitado
   --------------------------------------------------------- */

#afV11AccountFilterLine,
.af-v11-account-filterline,
.af-v12-account-toolbar {
    width: 100% !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    padding: 0 !important;
    margin: 0 0 11px !important;
}

.af-v12-account-toolbar > *,
#afV11AccountFilterLine > *,
.af-v11-account-filterline > * {
    min-width: 0 !important;
    margin: 0 !important;
}

.af-v12-filter-search {
    flex: 1 1 320px !important;
    min-width: 260px !important;
    order: 10 !important;
}

.af-v12-filter-search input {
    width: 100% !important;
    max-width: none !important;
}

.af-v12-filter-platform {
    flex: 0 1 125px !important;
    width: 125px !important;
    order: 20 !important;
}

.af-v12-filter-client {
    flex: 0 1 125px !important;
    width: 125px !important;
    order: 30 !important;
}

.af-v12-filter-state {
    flex: 0 1 190px !important;
    width: 190px !important;
    order: 40 !important;
}

.af-v12-filter-show {
    flex: 0 0 115px !important;
    width: 115px !important;
    order: 50 !important;
}

.af-v12-filter-clear {
    flex: 0 0 auto !important;
    width: auto !important;
    order: 60 !important;
}

.af-v12-account-toolbar select,
.af-v12-account-toolbar input,
#afV11AccountFilterLine select,
#afV11AccountFilterLine input,
.af-v11-account-filterline select,
.af-v11-account-filterline input {
    min-height: 39px !important;
}

.af-v12-account-toolbar label,
#afV11AccountFilterLine label,
.af-v11-account-filterline label {
    white-space: nowrap;
}

.af-v12-multi-filter-group {
    display: flex !important;
    align-items: flex-end !important;
    gap: 9px !important;
    flex: 0 1 auto !important;
}

/* ---------------------------------------------------------
   Marca Blanca: alineación SMTP
   --------------------------------------------------------- */

.af-v12-smtp-pair {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
}

.af-v12-smtp-pair > label:first-child {
    min-height: 19px;
}

.af-v12-smtp-pair input {
    width: 100% !important;
    min-height: 42px !important;
}

.af-v12-smtp-pair small {
    display: block;
    min-height: 34px;
    margin-top: 6px;
    line-height: 1.35;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1240px) {
    #afV11AccountFilterLine,
    .af-v11-account-filterline,
    .af-v12-account-toolbar {
        flex-wrap: wrap !important;
    }

    .af-v12-filter-search {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 720px) {
    #resultsModal {
        padding: 68px 10px 54px !important;
    }

    #resultsModal .modal-content-container {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 126px) !important;
    }

    #afV11AccountFilterLine,
    .af-v11-account-filterline,
    .af-v12-account-toolbar {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .af-v12-filter-search,
    .af-v12-filter-platform,
    .af-v12-filter-client,
    .af-v12-filter-state,
    .af-v12-filter-show,
    .af-v12-filter-clear {
        width: 100% !important;
        max-width: none !important;
    }
}