
/* CONTENEDOR PRINCIPAL */
.app_container {
  display: flex;
  min-height: 100vh;
  background-color: #f8faf9;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary) 0%, #006b33 100%);
    display: flex;
    flex-direction: column;
    padding: 20px 0px;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar_header {
    padding: 0 24px;
}

.sidebar-mini .sidebar {
  width: 80px;
}

.brand_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  margin-bottom: 20px;
}

.logo_img {
  width: 150px;
}

.collapse_btn {
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-mini .collapse_btn {
  margin: 0 auto;
}

.sidebar_nav {
    flex-grow: 1;
    padding-top: 24px;
    margin-bottom: 24px;
    border-top: 1px solid #0000001a;
}

.nav_item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;    
    transition: 0.4s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
}

.nav_item img{
    width: 24px;
}

.nav_item span{
    color: #fff;
    font-size: 1em;
    line-height: 24px;
    font-weight: 500;
}

.nav_item.active{
    background: rgba(255, 255, 255, 0.20);
}

.nav_item.active:before{
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--secondary);
}

.nav_item:hover {
    background: color-mix(in oklab, #fff 10%, transparent);;
}

.sidebar-mini .nav_label {
  display: none;
}

.sidebar-mini .nav_item {
  justify-content: center;
  padding: 12px 0;
}

.nav_icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.logout_btn {
    background: var(--secondary);
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.logout_btn:hover {
    background: var(--secondary-hover);
}

.logout_btn img {
    width: 20px;
}

.logout_btn span {
    color: #ffffff;
    font-size: 1.1em;
}

.sidebar-mini .logout_btn .nav_label {
  display: none;
}

/* CONTENIDO */
.main_content {
    position: relative;
    flex-grow: 1;
    padding: 32px 20px;
    max-width: calc(100% - 260px);
}

.sidebar-mini .main_content {
  max-width: calc(100% - 80px);
}

.card_white {
    border-top: 4px solid var(--primary);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
    margin-bottom: 32px;
    padding: 36px 32px;
}
.card_white.hero_card {
    height: 240px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 25px;
}

.main_title {
    color: var(--primary);
    text-align: center;    
    font-size: 2.25em;
    font-style: normal;
    font-weight: 600;
    line-height: 40px; /* 111.111% */
    letter-spacing: 0.9px;
}

.upload_button {
    background: var(--primary);
    border-radius: 10px;
    border: none;
    padding: 8px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    width: fit-content;
    font-family: 'Montserrat-Medium', sans-serif;
}

.upload_button img {
    width: 24px;
    font-weight: 500;
    font-size: 1.2em;
    line-height: 28px
}

.upload_button span {
    color: #ffffff;
}

.upload_button:hover{
    background: var(--primary-hover);
}

p.upload_hint {
    color: #6A7282;
    font-size: 1.250em;
}

.icon_inline {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.section_subtitle {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
    line-height: 32px; 
}

/* LOTES */
.lot_row {
    cursor: pointer;
    display: flex;
    padding: 25px 25px;
    align-items: center;
    flex-shrink: 0;
    border: 1.6px solid #E5E7EB;
    border-radius: 10px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.lot_row .lot_info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lot-active, .lot_row:hover {
    border: 1.6px solid var(--primary);
    background: #F0FDF4;
}

.lot_left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lot_icon {
    width: 24px;
    stroke: #ccc;
    fill: none;
    stroke-width: 2;
}

.info_group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;               
    min-width: 140px;
}

.info_group span {
    font-size: 0.875rem;
    color: #6A7282;
    font-size: 1.125rem;
    line-height: 25px;
}

.info_group strong {
    color: #101828;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 25px;

}

.yellow-text {
    color: var(--secondary) !important;
}

.lot_right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn_delete_lote {
    background: var(--secondary);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    line-height: 24px;
}

.btn_delete_lote:hover {
    background: var(--secondary-hover);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
}

.btn_delete_lote img {
    width: 20px;
}

.chevron {
    cursor: pointer;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    margin-left: 15px;
}

.chevron.down {
    transform: rotate(45deg);
}

.chevron.right {
    transform: rotate(-45deg);
}

/* TABLA */
.table_card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.table_header_blue {
    background: var(--primary);
    color: #ffffff;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1.250rem;
}

.table_overflow {
    overflow-x: auto;
    background: #fff;
}

.styled_table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.styled_table thead tr {
    padding: 16px 24px;
    background-color: #f6f3f4;
}

.styled_table th {
    text-align: left;
    padding: 16px 24px;
    background: #fafafa;
    color: #7f8c8d;
    font-size: 0.875rem;
    line-height: 20px;
    border-bottom: 1px solid #eee;
}

.styled_table td {  
    padding: 16px 24px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.85rem;
    color: #364153;
}

.td-green {
    color: var(--primary) !important;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    z-index: 1000;
  }

  .mobile-open .sidebar {
    transform: translateX(0);
  }

  .overlay_bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
  }

  .mobile_toggle {
    display: block !important;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 800;
    background: var(--primary);
    border: none;
    padding: 10px;
    border-radius: 8px;
  }

  .main_content {
    max-width: 100% !important;
    padding: 80px 20px 20px;
  }
}

.mobile_toggle {
  display: none;
}

.icon_white {
  width: 24px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
}

/* Contenedor de fondo (Overlay) */
    .modal_confirm_overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
    }

    /* Caja del Popup */
    .modal_confirm_container {
        background-color: #ffffff;
        width: 100%;
        max-width: 450px;
        border-radius: 16px;
        padding: 36px 32px;
        text-align: center;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        border-top: 4px solid var(--secondary);
        animation: modal3DReveal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        perspective: 1000px; /* Necesario para el efecto 3D */
    }

   /* La nueva animación */
    @keyframes modal3DReveal {
        from {
            opacity: 0;
            transform: translateY(30px) scale(0.9) rotateX(-15deg);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1) rotateX(0deg);
        }
    }

    /* Icono de advertencia circular */
    .modal_confirm_container .icon_circle {
        width: 64px;
        height: 64px;
        background-color: #F5F6D9;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 25px;
    }

    .modal_confirm_container .icon_circle img {
        width: 32px;
        height: 32px;
    }

    /* Títulos y textos */
    .modal_confirm_container .title {
        color: #101828;
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 15px;
        line-height: 32px;
    }

    .modal_confirm_container .description {
        color: #4A5565;
        font-size: 1rem;
        line-height: 24px;
        margin-bottom: 30px;
    }

    /* Contenedor de botones */
    .modal_confirm_container .actions {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    /* Botones con herencia */
    .modal_confirm_container .btn_base {
        flex: 1;
        padding: 24px 54px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;        
        transition: 0.4s ease-in-out;
        border: none;
        line-height: 24px;
    }

    .modal_confirm_container .btn_cancel {
        border: 1.6px solid #D1D5DC;
        color: #364153;
        font-size: 1em;
    }

    .modal_confirm_container .btn_cancel:hover {
        background-color: #fbf9fa;
    }

    .modal_confirm_container .btn_confirm {
        background-color: var(--secondary);
        color: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    }

    .modal_confirm_container .btn_confirm:hover {
        background-color: var(--secondary-hover);
    }

    /* Retiro de polizas */
    .header_flex {
        display: flex;
        justify-content: space-between; /* Empuja el título a la izquierda y botones a la derecha */
        align-items: center;            /* Centra verticalmente los elementos */
        width: 100%;
        margin-bottom: 24px;
    }

    .header_flex .section_subtitle {
        font-size: 2.250rem;
    }

    .header_actions {
        display: flex;
        gap: 12px;                     /* Espacio exacto entre el botón amarillo y el verde */
        align-items: center;
    }

    .header_actions button,   .header_actions a {        
        width: 230px;
        color: #ffffff;
        border: none;
        padding: 8px 24px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        transition: 0.4s ease-in-out;
        line-height: 24px;
    }


    .btn_delete_safe {
        background: var(--secondary);
    }

    .btn_delete_safe:hover {
        background: var(--secondary-hover);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    }

    .btn_delete_safe img {
        width: 20px;
    }

    .btn_download_excel {
        background: var(--primary);
    }

    .btn_download_excel:hover {
        background: var(--primary-hover);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    }

    .btn_download_excel img {
        width: 20px;
    }

    .search_filter_bar {
        display: flex;
        gap: 16px;       /* Espacio entre el input y el select */
        align-items: center;
        width: 100%;
        margin-top: 24px; /* Separación respecto a la fila del título */
    }

    /* Contenedor del input para posicionar la lupa */
    .input_search_container {
        position: relative;
        flex-grow: 1;    /* Hace que el buscador se estire todo lo posible */
        display: flex;
        align-items: center;
    }

    .search_icon {
        position: absolute;
        left: 16px;
        width: 18px;
        height: 18px;
        opacity: 0.4;    /* Color gris suave para la lupa */
    }

    .input_search {
        width: 100%;
        height: 48px;
        padding: 12px 16px 12px 48px;
        border: 1.6px solid #E5E7EB;
        border-radius: 10px;
        font-size: 1rem;
        color: #364153;
        outline: none;
        transition: border-color 0.3s;
    }

    .input_search:focus {
        border-color: var(--primary); /* Cambia al verde de tu marca al hacer clic */
    }

    /* Estilo para el Selector */
    .select_custom {
        min-width: 20%;
        height: 48px;
        padding: 12px 16px;
        border: 1.6px solid #E5E7EB; /* Borde verde según tu imagen */
        border-radius: 10px;
        background-color: #ffffff;
        color: #364153;
        font-size: 1rem;
        cursor: pointer;
        outline: none;
        appearance: none; /* Quitamos el diseño por defecto del navegador */
        background-image: url("data:image/svg+xml,..."); /* Aquí puedes poner tu flecha personalizada */
        background-repeat: no-repeat;
        background-position: right 12px center;
    }

    .input_search:focus, .select_custom:focus {
        border-color: var(--primary);
    }

    /* MassWithdrawal */
    /* Contenedor principal del bloque */
    .mass_withdrawal_section {
        display: flex;
        flex-direction: column;
        align-items: center;    /* Centra horizontalmente todo el bloque */
        justify-content: center;
        text-align: center;
        gap: 24px;              /* Espaciado uniforme entre título, botones y texto */
        padding: 52px 48px;
    }

    .main_title_green {
        color: var(--primary);
        font-size: 1.8rem;
        font-weight: 700;
        margin: 0;
        letter-spacing: 1px;
    }

    /* Contenedor de los botones */
    .mass_actions {
        display: flex;
        gap: 20px;              /* Espacio entre el botón verde y amarillo */
        flex-wrap: wrap;        /* Por si en móvil no caben uno al lado del otro */
        justify-content: center;
    }

    .mass_actions button, .mass_actions a {
        padding: 8px 28px;
        border-radius: 12px;
        border: none;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-size: 1.125rem;
        color: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
        transition: 0.4s ease-in-out;
    }

    .mass_actions button img, .mass_actions a img {
        width: 24px;
    }

    .btn_green {
        background-color: var(--primary);
    }

    .btn_yellow {
        background-color: var(--secondary);
    }    

    .mass_actions .btn_green:hover {
        background-color: var(--primary-hover);
    }

    .mass_actions .btn_yellow:hover {
        background-color: var(--secondary-hover);
    }

    
    /* Contenedor principal para manejar el borde redondeado */
    .table_container {
        border-radius: 12px 12px 0 0; /* Redondea solo las esquinas superiores */
        overflow: hidden;             /* Obliga al contenido a respetar el borde */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .styled_table {
        width: 100%;
        border-collapse: collapse;
        background-color: white;
    }

    .policies_issiued .styled_table th {
        background-color: var(--primary);
        padding: 18px 20px;
        color: #ffffff;
        font-size: 0.85rem;
        font-weight: 600;
        text-align: left;
        line-height: 1.2;
        border: none;
    }

    /* Opcional: Ajustar anchos específicos si lo necesitas */
    .styled_table th:first-child { 
        padding-left: 30px;        /* Más espacio al inicio */
        width: 70px;
    }

    /* Texto de instrucciones inferior */
    .instruction_text {
        max-width: 600px;       /* Limitamos el ancho para que sea legible */
        color: #4A5565;
        font-size: 1rem;
        margin: 0;
    }

    .instruction_text strong {
        color: #364153;
    }
    ._header_table {
        background-color: var(--secondary); 
        height: 72px;
        padding: 0 24px;
        display: flex;
        justify-content: space-between; /* Título a la izquierda, botón a la derecha */
        align-items: center;
        border-radius: 12px 12px 0 0;  /* Redondeado arriba */
    }

    ._header_table h2 {
        color: #ffffff;
        margin: 0;
        font-size: 1.250rem;
        font-weight: 600;
        line-height: 28px;
    }

    /* El botón blanco dentro del header amarillo */
    ._header_table .btn_yellow {
        background-color: #ffffff;  
        color: var(--secondary);               
        border: none;
        padding: 10px 20px;
        border-radius: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-size: 1rem;
        transition: background-color 0.3s ease;
    }

    ._header_table .btn_yellow:hover {
        background-color: #f8f8f8;    /* Gris muy claro al pasar el mouse */
    }

    ._header_table .btn_yellow img {
        width: 20px;
        /* Si el icono es original negro, este filter lo vuelve amarillo */
        /* Si ya es amarillo, quita esta línea */
        filter: invert(72%) sepia(85%) saturate(350%) hue-rotate(24deg) brightness(91%) contrast(88%);
    }

    .mass_withdrawal_table .styled_table th {        
        background-color: #f6f3f4;
        color: #364153;
    }
/* El carril gris */
.progress_bar_container {
    position: absolute;
    top: 9px;
    width: 96%;
    height: 16px;
    background-color: #E5E7EB;
    border-radius: 50px;       /* Forma de cápsula */
    overflow: hidden;          /* Esto es clave para que el relleno no se salga */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* El relleno de color */
.progress_bar_fill {
    height: 100%;
    /* Graduación con tus colores: Verde a Amarillo */
    background: linear-gradient(90deg, #00833f 0%, #b8be14 100%);
    border-radius: 50px 0 0 50px; /* Redondeado al inicio */
    position: relative;
    transition: width 0.6s ease-in-out; /* Animación fluida */
    display: flex;
    justify-content: flex-end; /* Coloca la luz al final del relleno */
}

/* El borde de luz/brillo al final (el toque bonito) */
.progress_bar_light {
    width: 20px;
    height: 100%;
    background: white;
    filter: blur(8px);
    opacity: 0.5;
    margin-right: -10px; /* Hace que el brillo sobresalga un poco en la punta */
}

/* Animación opcional: un brillo que pasa de vez en cuando */
.progress_bar_fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: progress-shimmer 2s infinite;
}

.icn_edit img{
    width: 20px;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Contenedor con el redondeado de tus imágenes */
.form_card {
    background: white;
    padding: 35px;
    border-radius: 25px; /* Redondeado pronunciado como tus cards */
    border-top: 5px solid var(--primary-green); /* Línea verde superior */
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 650px;
    margin: 20px auto;
}

.form_title {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

/* Grupos y etiquetas */
.form_group {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form_group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form_row {
    display: flex;
    gap: 20px;
}

/* Inputs y Selects con el estilo de tus buscadores */
.input_custom, .select_custom {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1.6px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    color: #364153;
    outline: none;
    transition: border-color 0.3s;
}

.input_custom:focus, .select_custom:focus {
    border-color: var(--primary);
}

/* Botones */
.form_actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}

.form_actions img{
    width: 20px;
}

.btn_submit {
    background: var(--primary);
    border-radius: 10px;
    color: #ffffff;
    border: none;
    padding: 8px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    width: 200px;
    font-family: 'Montserrat-Medium', sans-serif;
}

.btn_cancel_form {
    background: var(--secondary);
    width: 200px;
    color: #ffffff;
    border: none;
    padding: 8px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    line-height: 24px;
}

.btn_submit:hover {
    background: var(--primary-hover);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
}

.btn_cancel:hover {
    background: var(--secondary-hover);
}

span.type_mimes {
    margin-top: -25px;
    color: #6A7282;
}

/* Sobreescribir los colores base de vue-toastification */
.Vue-Toastification__toast--success {
  background-color: var(--primary) !important; /* Tu color de éxito */
  color: white;
}

.Vue-Toastification__toast--error {
  background-color: var(--secondary) !important; /* Tu color de error */
}

.Vue-Toastification__toast--warning {
  background-color: #d97706 !important; /* Tu color de alerta */
}

@media(max-width: 1024px){
    .main_title {
        font-size: 1.75em;
        line-height: 26px;
    }

    .collapse_btn {
        display: none;
    }
}

@media(max-width: 768px){
    .main_title {
        font-size: 1.25em;
    }
}