/* Main content */
.main-content {
    width: 100%;
    max-width: 1200px;
    padding: 36px 20px;
    border-radius: var(--border-radius-esquinas-03);
    display: flex;
    flex-direction: column;
    gap: 112px;
    margin: 0 auto;
}

/* Content section */
.content-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* Header: título y subtítulo */
.header-section {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.header-section .titulo-h4 {
    color: var(--color-primary);
    font-family: var(--robo-font);
    font-weight: 600;
    font-size: var(--tamano-titulo-h4);
    line-height: var(--line-height-titulo-h4);
    padding: 8px 0;
    border-radius: 4px;
    margin-bottom: 0px !important;
}

.header-section .text-md-regular {
    padding: 4px 0;
    font-family: var(--inter-font);
    font-weight: 400;
    font-size: var(--tamano-text-md-regular);
    line-height: var(--line-height-text-md-regular);
    color: var(--color-primary-disable);
    margin-bottom: 0px !important;
}

/* Contenedor del buscador (select + input + botón) */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

/* Fila de búsqueda */
.search-row {
    display: flex;
    gap: var(--gap-2xl);
    align-items: center;
    width: 100%;
    max-width: 1150px;
}

/* Select */
#searchType {
    font-family: var(--inter-font);
    font-size: 14px;
    padding: 13px 12px;
    border-radius: var(--border-radius-esquinas-03);
    border: 1px solid var(--color-primary);
    background-color: var(--color-input-bg);
    color: var(--color-primary);
    max-width: 196px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.7892 4.80541C15.1038 5.17224 15.0614 5.72464 14.6946 6.03922L8.57262 11.2892C8.24501 11.5702 7.76149 11.5703 7.43374 11.2895L1.30573 6.0395C0.938748 5.7251 0.896122 5.17272 1.21053 4.80573C1.52493 4.43875 2.07731 4.39612 2.44429 4.71053L8.00274 9.47256L13.5554 4.7108C13.9222 4.39622 14.4746 4.43858 14.7892 4.80541Z" fill="%2300B451"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

#searchType:focus {
    outline: none;
    border-color: #00B451;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

/* Input */
#searchInput {
    font-family: var(--inter-font);
    font-size: 14px;
    padding: 12px 48px 12px 12px;
    border-radius: var(--border-radius-esquinas-03);
    border: 1px solid var(--color-primary);
    flex: 1;
    background-image: url('');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px 24px;
}

/* Container que envuelve pestañas y buscador */
.container {
    width: 100% !important;
    max-width: 1200px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    height: auto !important;
    opacity: 1 !important;
    padding-left: 0 !important;
}

.pestanas-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-nombre-row {
    display: flex;
    gap: 7px;
    width: 100%;
}

.search-nombre-row input {
    flex: 1;
    min-width: 0;
    max-height: 48px;
    padding: var(--padding-general);
    border-radius: var(--border-radius-esquinas-03);
    border: 1px solid var(--color-primary);
    font-family: var(--inter-font);
    font-size: var(--tamano-text-md-regular);
    line-height: var(--line-height-text-md-regular);
    color: var(--color-primary);
}

.search-nombre-row .input-wrapper input {
    width: 100%;
}

.search-nombre-row.full-width input {
    flex: 1 1 100%;
}

.search-row select,
.search-row input {
    flex: 1;
    min-width: 0;
}

.search-row .btn-search {
    flex: 0 0 auto;
}

/* <= 647px */
@media (max-width: 647px) {
    .search-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-row select {
        flex: 0 0 40%;
        min-width: 0;
    }

    .search-row input {
        flex: 0 0 60%;
        min-width: 0;
    }

    .search-row .btn-search {
        flex: 1 1 100%;
    }
}

.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

#input-result {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 6px;
    z-index: 5;
}

.button-container {
    display: flex;
    justify-content: center;
}

/* Estilos para tabla de resultados */
.resultados-container {
    width: 100%;
    max-width: 1200px;
    padding: 36px 20px;
    margin: 0 auto;
}

.resultados-container .content-section {
    gap: 24px;
}

.resultados-container .titulo-h4 {
    color: var(--color-primary);
    font-family: var(--robo-font);
    font-weight: 600;
    font-size: var(--tamano-titulo-h4);
    line-height: var(--line-height-titulo-h4);
    margin-bottom: 16px;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tabla-resultados {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-family: var(--inter-font);
}

.tabla-resultados th,
.tabla-resultados td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.tabla-resultados th {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.tabla-resultados td {
    font-size: 14px;
    color: var(--color-primary);
}

/* Solo la primera columna (nombre) en una línea */
.tabla-resultados td:first-child {
    white-space: nowrap;
    min-width: 180px;
    width: auto;
}

/* Limitar ancho de la columna descripción */
.tabla-resultados td.descripcion-status {
    max-width: 300px;
    word-wrap: break-word;
}

.tabla-resultados tr:hover {
    background-color: #f9fafb;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-recepcionada {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-en-proceso {
    background-color: #fef3c7;
    color: #d97706;
}

.status-entregada {
    background-color: #dcfce7;
    color: #16a34a;
}

.hidden {
    display: none !important;
}


/*/////////GENERAL CSS///////////*
   

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* Variables CSS */
:root {
    --tamano-titulo-h4: 31px;
    --tamano-titulo-h3: 39px;
    --line-height-titulo-h4: 52px;
    --tamano-text-md-regular: 16px;
    --line-height-text-md-regular: 24px;
    --line-height-parrafo-bold: 28px;
    --border-radius-esquinas-03: 8px;
    --border-radius-esquinas-06: 24px;
    --color-primary: #35783C;
    --color-secondary: #F18A00;
    --color-primary-disable: #9BA5B7;
    --color-white: #FFFFFF;
    --color-black: #0A0A0A;
    --color-text-tertiary: #535862;
    --color-header: #FCFCFD;
    --color-background: #FCFCFD;
    --color-input-placeholder: #6B7280;
    --color-success: #C2D500;
    --color-error: #F23400;
    --background-success: rgba(194, 213, 0, 0.12);
    --background-error: rgba(242, 52, 0, 0.12);
    --color-warning: #D97706;
    --background-warning: #FEF3C7;
    --color-info: #1D4ED8;
    --background-info: #DBEAFE;
    --color-comment: #F2C500;
    --ring: 147 100% 21%;
    --padding-general: 12px 16px;
    --padding-top-bottom: 24px;
    --padding-header: 16px 24px;
    --padding-lg-3xl: 12px 24px;
    --gap-4xl: 32px;
    --gap-2xl: 16px;
    --robo-font: 'Roboto', sans-serif;
    --inter-font: 'Inter', sans-serif;
    --arimo-font: 'Arimo', sans-serif;
    --max-width: 1440px;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
}

/*TITULO H4*/
.titulo-h4 {
    font-family: var(--robo-font);
    font-weight: 600;
    font-size: var(--tamano-titulo-h4);
    line-height: var(--line-height-titulo-h4);
}

/*TITULO H3*/
.titulo-h3 {
    font-family: var(--robo-font);
    font-weight: 700;
    font-size: var(--tamano-titulo-h3);
    line-height: 100%;
    color: var(--color-primary)
}

/*Text MD - REGULAR*/
.text-md-regular {
    font-family: var(--inter-font);
    font-weight: 400;
    font-size: var(--tamano-text-md-regular);
    line-height: var(--line-height-text-md-regular);
}

/*Parrafo bold*/
.parrafo-bold {
    font-family: var(--inter-font);
    font-weight: 700;
    font-size: var(--tamano-text-md-regular);
    line-height: var(--line-height-parrafo-bold);
}

/*Boton primario*/
.btn-primario {
    padding: var(--padding-general);
    border-radius: var(--border-radius-esquinas-03);
    background-color: var(--color-primary);
    color: white;
    cursor: pointer;
    border: none;
    font-family: var(--inter-font);
    font-size: var(--tamano-text-md-regular);
}

/*Boton secundario*/
.btn-secundario {
    padding: var(--padding-general);
    border-radius: var(--border-radius-esquinas-03);
    background-color: var(--color-secondary);
    color: white;
    cursor: pointer;
    border: none;
    font-family: var(--inter-font);
    font-size: var(--tamano-text-md-regular);
}

.btn-terciario {
    padding: var(--padding-general);
    border-radius: var(--border-radius-esquinas-03);
    background-color: var(--color-secondary);
    cursor: pointer;
    color: var(--color-primary);
    border: none;
    font-family: var(--inter-font);
    font-size: var(--tamano-text-md-regular);
}

/*Boton fantasma*/
.btn-fantasma {
    padding: var(--padding-general);
    border-radius: var(--border-radius-esquinas-03);
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--inter-font);
    font-size: var(--tamano-text-md-regular);
}

.btn-back {
    font-family: var(--inter-font);
    font-weight: 700;
    font-size: var(--tamano-text-md-regular);
    /* padding            : var(--padding-general); */
    line-height: var(--line-height-parrafo-bold);
    background-color: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.color-md-regular {
    color: var(--color-primary)
}

.hidden {
    display: none;
}

.mensaje-error,
.mensaje-success,
.mensaje-warning,
.mensaje-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--padding-general);
    border-radius: var(--border-radius-esquinas-03);
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    font-family: var(--inter-font);
}

.mensaje-error::before,
.mensaje-success::before,
.mensaje-warning::before,
.mensaje-info::before {
    content: "";
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Estados */
.mensaje-error {
    background-color: var(--background-error);
    color: var(--color-error);
}

.mensaje-error::before {
    mask : url("") no-repeat center;
    -webkit-mask : url("") no-repeat center;
    background-color: var(--color-error);
}

.mensaje-success {
    background-color: var(--background-success);
    color: var(--color-success);
}

.mensaje-success::before {
    mask : url("") no-repeat center;
    -webkit-mask : url("") no-repeat center;
    background-color: var(--color-success);
}

.mensaje-warning {
    background-color: var(--background-warning);
    color: var(--color-warning);
}

.mensaje-warning::before {
    mask : url("") no-repeat center;
    -webkit-mask : url("") no-repeat center;
    background-color: var(--color-warning);
}

.mensaje-info {
    background-color: var(--background-info);
    color: var(--color-info);
}

.mensaje-info::before {
    mask : url("") no-repeat center;
    -webkit-mask : url("") no-repeat center;
    background-color: var(--color-info);
}

.sin-icono::before {
    display: none !important;
}


.input-general {
    width: 100%;
    border-radius: 6px;
    padding: var(--padding-general);
    border: 1px solid var(--color-primary);
    background-color: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
    font-size: var(--tamano-text-md-regular);
    font-family: var(--inter-font);
    font-weight: 400;
}

.input-general::placeholder {
    color: var(--color-primary-disable);
}

.input-general-disabled {
    width: 100%;
    border-radius: 6px;
    padding: var(--padding-general);
    border: 1px solid var(--color-primary-disable);
    background-color: var(--color-secondary);
    color: var(--color-primary-disable);
    cursor: pointer;
    font-size: var(--tamano-text-md-regular);
    font-family: var(--inter-font);
    font-weight: 400;
}

.select-general {
    width: 100%;
    background-image : url('');
    background-repeat: no-repeat;
    background-position: right 12px center;
    border-radius: 6px;
    padding: var(--padding-general);
    border: 1px solid var(--color-primary);
    background-color: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font-size: var(--tamano-text-md-regular);
    font-family: var(--inter-font);
    font-weight: 400;
}

.select-general-disabled {
    width: 100%;
    background-image : url('');
    background-repeat: no-repeat;
    background-position: right 12px center;
    border-radius: 6px;
    padding: var(--padding-general);
    border: 1px solid var(--color-primary-disable);
    background-color: var(--color-secondary);
    color: var(--color-primary-disable);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font-size: var(--tamano-text-md-regular);
    font-family: var(--inter-font);
    font-weight: 400;
}

.input-upload {
    cursor: pointer;
    background-image : url('');
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.textarea-general {
    width: 100%;
    border-radius: 6px;
    padding: var(--padding-general);
    border: 1px solid var(--color-primary);
    background-color: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
    font-size: var(--tamano-text-md-regular);
    font-family: var(--inter-font);
    font-weight: 400;
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
}

.textarea-general::placeholder {
    color: var(--color-primary-disable);
}

.required {
    color: var(--color-error);
}

/* Estilos específicos para el loader */
.loader-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loader-overlay.hidden {
    display: none;
}

.loader-spinner {
    border: 4px solid var(--color-primary-disable);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body {
  line-height: 1 !important;
}
                              