/* ============================================
   WIZARD STYLES - Base
   ============================================ */

div.resize_wizard_block_v2[wizard-type="mod"],
div.resize_wizard_block_v2[wizard-type="list"],
div.resize_wizard_block_v2[wizard-type="exp"] {
    margin-top: 0;
}

div.custom-list-container-wrap > div.wpte-lrf-block {
    width: 98.5%;
    padding: 0;
    box-shadow: none;
}

/* ============================================
   CONTENEDOR DE BOTON Y BUSCADOR
   ============================================ */

.list-header-container {
    display: flex;
    justify-content: space-around;
    gap: 1%;
    padding: 1%;
    margin-top: 10px;
}

/* ============================================
   CONTENEDOR DE LA LISTA
   ============================================ */

.lists_intern_tags,
.lists-intern-tags {
    width: 100%;
    padding: 1%;
    padding-top: 0;
    margin-top: 15px;
}

/* ============================================
   BARRA DE INFO ANTES DE LOS BOTONES
   ============================================ */

span.tab-title-container {
    display: grid;
    grid-template-columns: auto max-content;
    width: 98.5%;
    margin-bottom: 0.2em;
    margin-top: 0.75em;
    padding: 10px;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: #fff;
    text-align: left;
    text-transform: uppercase;
    font-weight: 500;
}

span.tab-title-container > span {
    margin-left: 0.5em;
}

span.tab-title-container span.tab-title-aux-info,
span.tab-title-container span.tab-title-actions {
    background-color: white;
    color: var(--secondary-color);
    padding: 0 .5em;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 15px;
    height: 30px;
}

span.tab-title-container span.tab-title-extra-actions {
    background-color: white;
    color: var(--secondary-color);
    padding: 0;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 15px;
    height: 30px;
}

span.tab-title-container span.tab-title-actions,
span.tab-title-container span.tab-title-extra-actions {
    cursor: pointer;
}

/* ============================================
   BOTONES AL PRINCIPIO DE LISTAS
   ============================================ */

div.custom_list_container_wrap div.custom-button-container,
div.custom-list-container-wrap div.custom-button-container {
    max-width: 45%;
    width: 100%;
    display: flex;
    gap: 10px;
}

div.custom_list_container_wrap .custom-button-container button.extra,
div.custom-list-container-wrap .custom-button-container button.extra {
    max-width: 10%;
    width: 10%;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
}

div.custom_list_container_wrap .custom-button-container button.default,
div.custom-list-container-wrap .custom-button-container button.default {
    max-width: 77%;
    width: 100%;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
}

div.custom_list_container_wrap .custom-button-container button.default span,
div.custom-list-container-wrap .custom-button-container button.default span {
    opacity: 1;
}

div.custom_list_container_wrap .custom-button-container button.extra:hover,
div.custom-list-container-wrap .custom-button-container button.extra:hover {
    min-width: 85%;
    transition: width 0.3s ease-in-out;
    overflow: hidden;
}

div.custom_list_container_wrap button.custom-button,
div.custom-list-container-wrap button.custom-button,
div#users_agency_summary_container button.custom-button {
    width: 100%;
    height: 50px;
    max-height: 50px;
    padding: 9.5px;
    border-radius: 3px;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--family-primary);
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    overflow: hidden;
}

div.custom_list_container_wrap button.custom-button.action,
div.custom-list-container-wrap button.custom-button.action,
div#users_agency_summary_container button.custom-button.action {
    cursor: pointer;
}

div.custom_list_container_wrap button.custom-button.action:hover,
div.custom-list-container-wrap button.custom-button.action:hover,
div#users_agency_summary_container button.custom-button.action:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: white;
}

div.custom_list_container_wrap button.custom-button.info,
div.custom-list-container-wrap button.custom-button.info {
    cursor: help;
    background-color: var(--primary-color-lightest);
    border: 1px solid var(--primary-color-lightest);
}

div.custom_list_container_wrap button.custom-button.info:hover,
div.custom-list-container-wrap button.custom-button.info:hover {
    background-color: var(--primary-color);
}

/* ============================================
   BUSCADOR
   ============================================ */

div.custom-searcher-container {
    width: 100%;
    max-width: 55%;
    height: 50px;
}

input.custom-searcher {
    width: 100%;
    height: 50px;
    padding-right: 110px;
    font-size: 16px;
    letter-spacing: 0.1em;
}

div.custom-searcher-container > div.searcher-action-container {
    position: relative;
    bottom: 90%;
    display: flex;
    gap: 5px;
    height: 40px;
    margin-top: auto;
    margin-right: 5px;
    margin-bottom: auto;
    float: right;
}

div.searcher-action-container > button.searcher-action {
    width: 50px;
    padding: 0;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
}

div.searcher-action-container > button.searcher-action:hover {
    background: white;
    color: var(--primary-color);
}

div.searcher-action-container > button.searcher-action.clear {
    display: none;
}

div.searcher-action-container > button.searcher-action svg,
div.searcher-action-container > button.searcher-action i {
    transition: all ease 0.2s;
}

div.searcher-action-container > button.searcher-action svg:hover,
div.searcher-action-container > button.searcher-action i:hover {
    transform: scale(1.25);
}

/* ============================================
   SPAN LISTA VACIA
   ============================================ */

p.empty-list {
    width: 85%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
}

/* ============================================
   SEPARADORES EN LISTA
   ============================================ */

span.list-separator {
    display: block;
    width: 100%;
    height: 47.5px;
    max-height: 47.5px;
    padding: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
    border-radius: 4px;
    color: #fff;
    background: var(--primary-color-light);
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
}

span.list-separator > span {
    display: inline-block;
    height: 30px;
    padding: 0 0.5em;
    margin-left: 15px;
    border-radius: 4px;
    color: var(--primary-color-light);
    background-color: #fff;
    font-weight: 700;
}

button.separator-button {
    display: inline-grid;
    position: absolute;
    right: 0;
    margin-right: 2.5em;
    padding: 5px;
    color: #fff;
    background-color: var(--primary-color);
    transform: rotate(0deg);
    border-radius: 5px;
    border: 1px solid var(--primary-color);
}

button.separator-button svg {
    transition: all 0.5s ease;
}

button.separator-button.active svg {
    transform: rotate(180deg);
}

/* ============================================
   ELEMENTOS DE LA LISTA
   ============================================ */

.lists_intern_tags span.one_line_grid,
.lists_intern_tags span.one-line-grid,
.lists-intern-tags span.one-line-grid {
    display: inline-grid;
    grid-template-rows: max-content;
    grid-template-columns: 1fr max-content;
    width: 99%;
    margin: 0.5%;
    padding: 0.5em;
    border: 1px dashed var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    background-color: white;
}

.lists-intern-tags span.one-line-grid i.pending-excel,
.lists-intern-tags span.one-line-grid svg.pending-excel,
.lists-intern-tags span.one-line-grid i.pending-word,
.lists-intern-tags span.one-line-grid svg.pending-word {
    color: #666;
}

.lists-intern-tags span.one-line-grid i.done-excel,
.lists-intern-tags span.one-line-grid svg.done-excel {
    color: #01953f;
}

.lists-intern-tags span.one-line-grid i.done-word,
.lists-intern-tags span.one-line-grid svg.done-word {
    color: #0095e7;
}

span.accordion-container.small {
    width: 48.5%;
    margin: 0.5%;
    grid-template-columns: 1fr max-content;
}

span.span-info {
    margin-left: 1em;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

span.span-info > span {
    display: block;
    height: 31.5px;
    line-height: 30px;
    overflow: hidden;
}

input.text-aligned-center
{
    text-align: center;
}

/* ============================================
   BOTONES DE ACCIONES EN LISTA
   ============================================ */

div.action-container {
    margin: 0.5%;
    justify-content: center;
}

div.action-container.small {
    display: grid;
    gap: 0.2em;
    grid-template-columns: max-content;
}

div.action-container.small.block {
    grid-template-columns: max-content max-content;
}

div.action-container.small.three-block {
    grid-template-columns: max-content max-content max-content;
}

div.action-container.full {
    display: flex;
    align-items: center;
}

.list-action-button {
    width: 40px;
    height: 47.5px;
    min-width: 40px;
    max-height: 47.5px;
    padding: 10px;
    margin-right: 0.2em;
    border-radius: 4px;
    color: #fff;
    background-color: var(--primary-color);
    text-align: center;
    align-self: center;
    cursor: pointer;
}

.list-action-button.auto-width {
    width: auto;
}

.list-action-button.wtk-green-light,
span.custom-span.reverse.wtk-green-light {
    background-color: #32b67a;
    border: 1px solid #32b67a;
    color: white;
}

.list-action-button.wtk-green,
span.custom-span.reverse.wtk-green {
    background-color: #01953f;
    border: 1px solid #01953f;
    color: white;
}

.list-action-button.wtk-purple,
span.custom-span.reverse.wtk-purple {
    background-color: #7465ff;
    border: 1px solid #7465ff;
    color: white;
}

.list-action-button.wtk-red,
span.custom-span.reverse.wtk-red {
    background-color: #eb3f39;
    border: 1px solid #eb3f39;
    color: white;
}

.list-action-button.wtk-brown,
span.custom-span.reverse.wtk-brown {
    background-color: #cb6532;
    border: 1px solid #cb6532;
    color: white;
}

.list-action-button.reverse {
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid var(--primary-color);
}

.list-action-button.delete {
    background-color: red;
}

.list-action-button.disabled {
    background-color: #848484;
    cursor: no-drop;
}

.list-action-button.inner {
    justify-self: end;
    grid-column: -1;
}

.list-action-button i {
    pointer-events: none;
}

.action-container.inner {
    justify-self: end;
    grid-column: -1;
}

.tab-loading-pending {
    position: relative;
}

.tab-loading-pending::after {
    content: "Cargando funciones...";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffeb3b;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 100;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes wtk-beat-effect {
    0%, 100% {
        transform: scale(var(--beat-scale-start, 0.8));
    }
    50% {
        transform: scale(var(--beat-scale-end, 1));
    }
}

.wtk-beat-effect {
    animation: wtk-beat-effect var(--beat-duration, 0.75s) ease-in-out infinite;
}

@keyframes wtk-bounce-effect {
    0%, 100% {
        transform: translateY(0) scale(1, 1);
    }
    40% {
        transform: translateY(-20px) scale(1, 1.1);
    }
    60% {
        transform: translateY(-10px) scale(1, 0.95);
    }
    80% {
        transform: translateY(0) scale(1, 0.98);
    }
}

.wtk-bounce-effect {
    animation: wtk-bounce-effect 1s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}

/* ============================================
   WTK LIST V2 - ESTILOS CORREGIDOS
   ============================================ */

.wpte-lrf-block-wrap .wpte-lrf-block .wtk-list-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wtk-data-grid .wtk-grid-two-columns,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-grid-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.wtk-data-grid .wtk-grid-one-columns,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-list-one-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator {
    display: block;
    margin-bottom: 20px;
}

.wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color-light);
    padding: 12px 18px;
    border-left: 5px solid var(--primary-color-lightest);
    border-right: 5px solid var(--primary-color-lightest);
    border-top: 1px solid var(--primary-color-lightest);
    border-bottom: 1px solid var(--primary-color-lightest);
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 52px;
}

.wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-info {
    display: inline-grid;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: auto 1fr 1fr auto;
    text-align: center;
}

.wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-info i,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-info svg {
    color: white;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
}

.wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-date,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-count,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-text {
    font-weight: 500;
    color: var(--primary-color);
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-toggle:hover {
    background: rgba(255, 100, 0, 0.8);
    transform: scale(1.05);
}

/* ============================================
   CARDS - Modo normal
   ============================================ */

.wtk-data-grid .wtk-data-card,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-data-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #edf2f7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0.25em;
    transition: all 0.3s ease;
}

.wtk-data-grid .wtk-data-card:hover,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-data-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ffe0cc;
}

.wtk-data-grid .wtk-grid-two-columns .wtk-data-card,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-grid-two-columns .wtk-data-card {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
}

.wtk-data-grid .wtk-grid-two-columns .wtk-card-content,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-grid-two-columns .wtk-card-content {
    flex: 1;
}

.wtk-data-grid .wtk-grid-two-columns .wtk-card-actions,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-grid-two-columns .wtk-card-actions {
    justify-content: flex-end;
    border-top: 1px solid #edf2f7;
    padding-top: 10px;
    margin-top: 8px;
    gap: 20px;
    padding-right: 10px;
}

/* ============================================
   Contenido interno de las cards
   ============================================ */

.wtk-data-grid .wtk-card-content,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wtk-data-grid .wtk-card-info-group,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-card-info-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wtk-data-grid .wtk-card-info-row,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-card-info-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f9fafc;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    line-height: 1.4;
}

.wtk-data-grid .wtk-card-info-icon,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-card-icon {
    color: var(--primary-color);
    font-size: 13px;
    width: 18px;
    text-align: center;
}

.wtk-data-grid .wtk-card-info-value,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-card-info-value {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

.wtk-data-grid .wtk-card-actions,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.wtk-data-grid .wtk-action-btn,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-action-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

span.lowercase {
    text-transform: lowercase;
}

.wtk-col-span-full {
    grid-column: 1 / -1;
}

.wtk-col-span-full .demo-box {
    border: 2px dashed var(--gcid-body-color,#212224);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--gcid-body-color,#212224);
    font-weight: 500;
    font-size: 14px;
}

.wtk-data-grid .wtk-action-btn:hover,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-action-btn:hover {
    background: #fff0e6;
    color: var(--primary-color);
    transform: scale(1.05);
}

.wtk-data-grid .wtk-action-btn.delete:hover,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-action-btn.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.wtk-data-grid .wtk-action-btn.auto-width,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-action-btn.auto-width {
    width: auto;
    height: auto;
    border-radius: 5px;
}

/* ============================================
   Responsive - Móvil
   ============================================ */

@media (max-width: 768px) {
    .wpte-lrf-block-wrap .wpte-lrf-block .wtk-grid-two-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .wpte-lrf-block-wrap .wpte-lrf-block .wtk-data-card {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
    }
    
    .wpte-lrf-block-wrap .wpte-lrf-block .wtk-card-actions {
        justify-content: flex-end;
        border-top: 1px solid #edf2f7;
        padding-top: 10px;
        margin-top: 4px;
    }
    
    .wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-info {
        gap: 8px;
    }
    
    .wpte-lrf-block-wrap .wpte-lrf-block .wtk-separator-header {
        padding: 10px 14px;
    }
}

/* Estado vacío */
.wtk-data-grid .wtk-empty-list,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-empty-list {
    text-align: center;
    padding: 48px 24px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    color: var(--primary-color);
}

.wtk-data-grid .wtk-empty-list i,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-empty-list i {
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.4;
    margin-bottom: 16px;
    display: block;
}

.wtk-data-grid .wtk-empty-list p,
.wpte-lrf-block-wrap .wpte-lrf-block .wtk-empty-list p {
    margin: 0;
    font-size: 13px;
}

.wpte-lrf-block-wrap .wpte-lrf-block .wtk-collapsible-content {
    transition: all 0.25s ease;
}

/* ============================================
   WTK LIST V2 - Estilos modernos
   ============================================ */

.wtk-list-container-v2 {
    margin-top: 20px;
}

.resize_wizard_block_v2 .wtk-section-title,
.wtk-list-container-v2 .wtk-section-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: -1.5em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resize_wizard_block_v2 .wtk-section-form-title-container {
    padding-bottom: 1.25em;
    padding-left: 1.25em;
}

.resize_wizard_block_v2 .wtk-section-title::before,
.wtk-list-container-v2 .wtk-section-title::before {
    content: '';
    width: 4px;
    height: 23px;
    background: var(--primary-color);
    border-radius: 2px;
}

.wtk-list-block-v2 {
    background: transparent;
    padding: 0;
}

.wtk-actions-bar-modern {
    margin-bottom: 24px;
}

.wtk-layout-single,
.wtk-layout-double {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 1%;
}

.wtk-layout-multi {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1%;
}

.wtk-buttons-row {
    display: flex;
    justify-content: flex-start;
}

.wtk-search-row {
    width: 100%;
}

.wtk-buttons-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.wtk-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    height: 38px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    white-space: nowrap;
    background: transparent;
}

.wtk-btn-modern .wtk-btn-icon {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
}

.wtk-btn-modern .wtk-btn-text {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: var(--secondary-font);
}

.wtk-btn-primary {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.wtk-btn-info {
    background: #f8fafc;
    color: #475569;
    border: 1px solid var(--primary-color);
}

.wtk-btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.wtk-btn-primary:hover,
.wtk-btn-secondary:hover,
.wtk-btn-info:hover {
    background: var(--primary-color-lightest);
    border-color: var(--primary-color-lightest);
    color: var(--primary-color);
}

.wtk-search-group {
    position: relative;
}

.wtk-search-input-wrapper {
    position: relative;
    width: 100%;
}

.wtk-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 1;
}

.wtk-search-input-wrapper .wtk-search-input-modern {
    border: none;
    border-bottom: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 0 0 0 28px;
    padding-left: 2.5em;
    height: 32px;
    background: transparent;
    color: var(--primary-color);
    line-height: 26px;
    font-size: 14px;
}

.wtk-search-input-wrapper .wtk-search-input-modern::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 12px;
}

.wtk-search-input-wrapper .wtk-search-input-modern:focus {
    border-bottom-color: #94a3b8;
    outline: none;
}

.wtk-switch-v2 {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.wtk-switch-v2 input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wtk-slider-v2 {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.2s;
    border-radius: 34px;
}

.wtk-slider-v2:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input:checked + .wtk-slider-v2,
input.checked + .wtk-slider-v2 {
    background-color: #22c55e;
}

input:checked + .wtk-slider-v2:before,
input.checked + .wtk-slider-v2:before {
    transform: translateX(20px);
}

.wtk-round-v2 {
    border-radius: 34px;
}

.wtk-header-totalizer,
.wtk-header-tab-buttons,
.wtk-header-extra-empty {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-right: 10px;
}

.wtk-exp-actions-group {
    margin-left: 6px;
}

.resize_wizard_block_v2 .wtk-exp-edit-btn,
.resize_wizard_block_v2 .wtk-exp-save-btn,
.resize_wizard_block_v2 .wtk-exp-cancel-btn,
.resize_wizard_block_v2 .wtk-tab-icon-btn {
    border: none;
    font-size: 14px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary-color);
}

.resize_wizard_block_v2 .wtk-tab-title-container .wtk-exp-edit-btn:hover,
.resize_wizard_block_v2 .wtk-tab-title-container .wtk-exp-save-btn:hover,
.resize_wizard_block_v2 .wtk-tab-title-container .wtk-exp-cancel-btn:hover,
.resize_wizard_block_v2 .wtk-tab-title-container .wtk-tab-icon-btn:hover {
    background: #fff0e6;
    color: var(--primary-color);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .wtk-layout-single,
    .wtk-layout-double {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wtk-buttons-group {
        justify-content: flex-start;
    }
    
    .wtk-search-group {
        width: 100%;
        flex: 1 1 100%;
    }
    
    .wtk-btn-modern {
        white-space: normal;
        padding: 6px 12px;
    }
}

.wtk-tab-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color-lightest);
    border-right: 5px solid var(--primary-color-lightest);
    border-top: 1px solid var(--primary-color-lightest);
    border-bottom: 1px solid var(--primary-color-lightest);
}

.wtk-tab-title-container > span:first-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wtk-tab-title-container .fas.fa-hand-point-right {
    color: #cbd5e1;
    font-size: 12px;
}

.wtk-tab-title-container #current-object-plural,
.wtk-header-totalizer {
    background: var(--primary-color);
    padding: 0 8px 0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
}

/* ============================================
   WTK DATA GRID - Contenedor principal
   ============================================ */

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .wtk-data-grid {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f2f5;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .line-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .line-grid .mb5px {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 0;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .line-grid .lowercase {
    text-transform: lowercase;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .line-grid .custom-span.reverse,
.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .line-grid .custom-span {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    background: #f8fafc;
    padding: 13px 10px;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    transition: all 0.2s ease;
    align-content: center;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .line-grid .custom-span.reverse:hover {
    background: var(--primary-color-light);
    border-color: var(--primary-color-lightest);
    border-left: 4px solid var(--primary-color-lightest);
    border-right: 4px solid var(--primary-color-lightest);
    color: white;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .traveler-passport-validity {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    width: auto;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .wtk-green {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .wtk-red {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .line-grid a {
    text-decoration: none;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .line-grid a .custom-span.reverse {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .line-grid a .custom-span.reverse:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .wtk-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .wtk-input-wrap input[type="checkbox"],
.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .wtk-input-wrap input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .wtk-input-wrap input[type="checkbox"]:checked + label::after {
    content: '';
    position: absolute;
    left: 24px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .wtk-input-wrap input:checked + label::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .wtk-input-wrap label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    background: white;
    color: var(--primary-color-darkest);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
    min-height: 44px;
    cursor: pointer;
    user-select: none;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .wtk-input-wrap label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #e3e3e3;
    border-radius: 10px;
    background: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 .quill-container {
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #eef2f6;
    padding: 8px;
}

/* Responsive para grids */
@media (max-width: 1200px) {
    .wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 div[style*="grid-template-columns: repeat(4, 23.7%)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    .wpte-lrf-block-wrap.custom-list-container-wrap.wtk-list-container-v2 div[style*="grid-template-columns: repeat(2, 49%)"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Efectos hover para cards */
.wtk-grid-two-columns .wtk-data-card.accordion-container:hover {
    border-top: 4px solid var(--primary-color-light);
    border-bottom: 4px solid var(--primary-color-light);
    transition: background 0.3s ease;
}

.wtk-list-one-column .wtk-data-card.accordion-container:hover {
    border-left: 4px solid var(--primary-color-light);
    border-right: 4px solid var(--primary-color-light);
    transition: background 0.3s ease;
}

/* ============================================
   ESTILOS PARA EL BLOQUE DE PAGOS
   ============================================ */

.wte-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.wte-payment-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease;
}

.wte-payment-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wte-payment-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    display: grid;
    grid-template-columns: 80% 20%;
}

.wte-payment-header > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wte-payment-body .wte-invoice-item > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 72%;
}

.wte-payment-header div.wtk-header-tab-buttons span.wtk-gen-btn,
.wte-payment-body div.wte-invoice-item div.wtk-header-tab-buttons span.wtk-gen-btn,
.wte-payment-body div.wte-payment-item div.wtk-header-tab-buttons span.wtk-gen-btn {
    border: none;
    font-size: 14px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary-color);
}

.wte-payment-body div.wte-invoice-item div.wtk-header-tab-buttons,
.wte-payment-body div.wte-payment-item div.wtk-header-tab-buttons {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding-right: 0;
    min-width: 26%;
}

.wte-payment-header div.wtk-header-tab-buttons span.wtk-gen-btn:hover,
.wte-payment-body div.wte-invoice-item div.wtk-header-tab-buttons span.wtk-gen-btn:hover,
.wte-payment-body div.wte-payment-item div.wtk-header-tab-buttons span.wtk-gen-btn:hover {
    background: #fff0e6;
    color: var(--primary-color);
    transform: scale(1.05);
}

#primary .page .entry-content .wte-payment-card .wte-payment-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

#primary .page .entry-content .wte-payment-card table.wte-concept-table td.amount-row {
    padding: 0 1vw 0 0;
    text-align: right;
    font-size: 15px;
    min-width: 25%;
}

#primary .page .entry-content .wte-payment-card table.wte-concept-table td.amount-row-total {
    padding: 0 1vw 0 0;
    text-align: right;
    background: var(--primary-color);
    font-size: 15px;
    min-width: 25%;
}

#primary .page .entry-content .wte-payment-card table.wte-concept-table tr td:not(.amount-summary-row):not(.amount-row):not(.amount-row-total):not(.amount-summary-total-row) {
    padding: 0.25vw 1.5vw;
}

#primary .page .entry-content .wte-payment-card table.wte-concept-table td.amount-summary-total-row {
    padding: 0.25vw 1vw;
    background: var(--primary-color);
}

#primary .page .entry-content .wte-payment-card table.wte-concept-table td.amount-summary-total-row strong {
    color: white;
}

#primary .page .entry-content .wte-payment-card table.wte-concept-table td.amount-summary-row {
    padding: 0.25vw 1vw;
}

#primary .page .entry-content .wte-payment-card table.wte-concept-table td.amount-row-total strong {
    color: white;
    font-size: 15px;
}

#primary .page .entry-content .wte-payment-card table.wte-concept-table td.amount-row strong,
#primary .page .entry-content .wte-payment-card table.wte-concept-table td.amount-summary-row strong {
    color: var(--primary-color);
    font-size: 15px;
}

#primary .page .entry-content .wte-payment-card .wte-payment-header h3 i {
    color: var(--primary-color);
    font-size: 18px;
}

.wte-payment-body {
    padding: 24px;
}

.wte-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.wte-summary-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wte-summary-card .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}

.wte-summary-card .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.wte-concept-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wte-concept-table tr:first-child td:first-child {
    border-top-left-radius: 12px;
}

.wte-concept-table tr:first-child td:last-child {
    border-top-right-radius: 12px;
}

.wte-concept-table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.wte-concept-table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.wte-concept-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.wte-concept-table tr:last-child {
    border-bottom: none;
}

.wte-concept-table td {
    padding: 14px 16px;
}

.wte-concept-table td:first-child {
    color: #475569;
    font-size: 15px;
    font-weight: 500;
}

.wte-concept-table td:last-child {
    text-align: right;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-color);
}

.wte-concept-table tr.section-header td {
    background: var(--primary-color-light);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
}

.wte-concept-table tr.section-header td:first-child,
.wte-concept-table tr.section-header td:last-child {
    color: var(--primary-color);
    font-weight: 700;
}

.wte-concept-table tr.total-row td {
    padding-top: 16px;
    padding-bottom: 16px;
    font-weight: 700;
    font-size: 15px;
    background: white;
}

.wte-concept-table tr.highlight-row td {
    background: var(--primary-color-light);
    font-weight: 700;
    font-size: 15px;
}

.wte-concept-table tr.highlight-row td:first-child,
.wte-concept-table tr.highlight-row td:last-child {
    color: var(--primary-color);
}

.wte-payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 50%;
}

.wte-payment-amount {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
    text-align: right;
    max-width: 24%;
    width: 24%;
}

.wte-invoice-list,
.wte-payment-list {
    margin-top: -15px;
}

.wte-payment-item,
.wte-invoice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #e2e8f0;
}

.wte-invoice-item > span:not(.wte-action-btn),
.wte-payment-item .wte-payment-info > span:not(.wte-action-btn) {
    font-size: 15px;
}

.wte-right-column .wte-payment-card:first-child {
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .wte-two-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .wte-summary-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .resize_wizard_block_v2[wizard-type="mod"] .wizard .content,
    .resize_wizard_block_v2[wizard-type="list"] .wizard .content,
    .resize_wizard_block_v2[wizard-type="exp"] .wizard .content {
        padding: 16px;
    }
    
    .wte-payment-body {
        padding: 16px;
    }
    
    .wte-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .wte-summary-card {
        padding: 12px 16px;
    }
    
    .wte-summary-card .value {
        font-size: 20px;
    }
    
    .wte-payment-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        max-width: 60%;
        width: 60%;
    }
    
    .wte-concept-table td {
        padding: 10px 12px;
    }
    
    .wte-concept-table td:first-child {
        font-size: 13px;
    }
    
    .wte-concept-table td:last-child {
        font-size: 13px;
    }
}