/* ==========================================
   RESET Y ESTILOS BASE
   ========================================== */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fa;
    height: 100%;
}

main {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

/* ==========================================
   UTILIDADES Y LAYOUTS
   ========================================== */

.text-center {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.text-right {
    text-align: right;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sideleft {
    width: 240px;
    max-width: 240px;
    min-width: 240px;
    background-color: #ffffff;
    padding: 15px;
    color: #1d839b;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

.sideleft label { font-weight: bold; margin-top: 25px;}

.sideleft a {
    font-size: 13px;
    padding: 7px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    color: #0b4654;
    transition: all linear 0.2s;
    text-decoration: none;
}

.sideleft a:hover {
    background-color: rgba(181, 221, 230, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.content {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    background: linear-gradient(45deg, #ddeff3, transparent);
}

::placeholder {
    font-style: italic;
    color: #c5c5c5 !important;
  }

/* ==========================================
   HEADER Y TÍTULOS
   ========================================== */

.header {
    background: white;
    padding: 7px 27px;
    margin-bottom: 24px;
   
    margin-left: -32px;
    margin-top: -32px;
    margin-right: -32px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    
}

.header h1 {
    color: #1a202c;
    font-size: 24px;
    margin-bottom: 8px;
}

.header p {
    color: #718096;
    font-size: 14px;
}

.page-header {
    margin-bottom: 25px;
    background-color: #1e839b;
    position: sticky;
    top: 0;
    z-index: 99;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
    background-image: 
      linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.18) 100%),
      url(../img/bgdot.png);
    
}

.page-title {
    padding-left: 0px;
    font-size: 25px;
    color: #FFF;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}


.page-subtitle {
    padding-left: 0px;
    font-size: 14px;
    color: #FFF;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}


.page-header h1{
    font-size: 18px;
    padding-top: 2px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}




/* ==========================================
   CARDS Y CONTENEDORES
   ========================================== */

.select{
    width: 100%; padding: 7px; border: 1px solid #cbd5e0; border-radius: 4px; font-size: 13px;
}

.card {
    background: linear-gradient(180deg, #fbfbfb, #ffffff);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 20px 25px rgba(0, 60, 60, 0.2);
    margin-top: 10px;
}

.round-bordered {
    border-radius: 8px;
    border: 1px solid #fff;
    padding: 9px;
    background-color: #f2f9fb;
    position: relative;
    padding-top: 20px;
    min-height: 70px;
}

.minlabel {
    font-size: 13px;
    color: #1d839b;
    top: -10px;
    position: absolute;
    display: block;
    margin-left: 4px;
    background-color: #f2f9fb;
    padding: 3px;
    border-radius: 4px;
    padding-left: 16px;
    padding-right: 16px;
}

/* ==========================================
   FORMULARIOS Y INPUTS
   ========================================== */

.form-section {
    margin-bottom: 32px;
}

.form-section.toggleOff {
    display: none;
}

.form-section h2 {
    color: #1d839b;
    font-size: 18px;
    margin-bottom: 13px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="datetime-local"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #dde5ee;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #1d839b;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.form-row.f4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.field-text {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    width: 95%;
}

/* ==========================================
   UPLOAD DE ARCHIVOS
   ========================================== */

.file-upload {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 8px;
    text-align: left;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    border-color: #1d839b;
    background: #ebf8ff;
}

.file-upload.dragover {
    border-color: #1d839b;
    background: #bee3f8;
}

.file-upload-icon {
    font-size: 24px;
    margin-top: 5px;
    text-align: center;
}

.file-list {
    margin-top: 16px;
}

.file-item {
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f7fafc;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    background-color: #fff;
}

.file-item-remove {
    background: #fc8181;
    color: white;
    border: none;
    padding: 9px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* ==========================================
   BOTONES
   ========================================== */

.btn {
    padding: 7px 16px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    line-height: 1.3;
    max-width: 99%;
    min-height: 27px;
    position: relative;
    
}

.btn .bi{
    font-size: 18px;
    line-height: 0;
    margin-top: -7px;
    margin-bottom: -7px;
    text-align: center;
    margin-top: -5px;
    margin-bottom: -5px;
    margin-left: -5px;
    margin-right: 2px;
    display: inline-block;
}

.btn.inlineicon{
    display: flex;
    align-items: center;
    
}


.btn.inlineicon .bi{
    display: inline;
    margin-right: 6px;
    margin-left: 2px;
    font-size: 20px;
}

.btn-primary {
    background: #1fafd1;
    color: white;
}

.btn-primary:hover {
    background: #1aaaaa;
}

.btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    margin-right: 12px;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-view {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-view:hover {
    background: #cbd5e0;
}

.btn-search {
    padding: 6px 16px;
    background: #8daec9;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-search:hover {
    background: #209e94;
}

.btn-clear {
    padding: 14px 16px;
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.labelbtn {
    cursor: pointer;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

/* ==========================================
   TABS DE ESTADO
   ========================================== */

.status-tabs {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
    padding-bottom: 5px;
    padding-left: 5px;
}

.status-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s;
    font-size: 14px;
    opacity: 1;
}

.status-tab:hover {
    border-color: #d6e142;
    background: #f7fafc;
}

.status-tab.active {
    border-color: #1d839b;
    background: #ebf8ff;
    color: #1d839b;
}

.status-tab.highlight-warning {
    border-color: #ed8936;
}

.status-tab.highlight-warning.active {
    background: #fffaf0;
    border-color: #ed8936;
    color: #c05621;
}

.tab-icon {
    font-size: 18px;
}

.tab-label {
    font-weight: 600;
}

.tab-count {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.status-tab.active .tab-count {
    background: #4299e1;
    color: white;
}

.status-tab.highlight-warning .tab-count {
    background: #ed8936;
    color: white;
}



/* ==========================================
   BÚSQUEDA
   ========================================== */

.search-bar {
    /* Empty */
}

.search-form .input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.input-icon {
    padding: 0 12px;
    font-size: 18px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 6px;
    font-size: 14px;
    outline: none;
}

/* ==========================================
   ALERTAS
   ========================================== */

.alert {
    padding: 13px;
    border-radius: 6px;
    margin-bottom: 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* ==========================================
   LOADING Y SPINNER
   ========================================== */

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading.active {
    display: block;
}

.spinner {
    border: 4px solid #e2e8f0;
    border-top: 4px solid #1d839b;
    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);
    }
}

/* ==========================================
   RESULTADOS
   ========================================== */

.result {
    display: none;
    margin-top: 24px;
}

.result.active {
    display: block;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.result-label {
    color: #718096;
    font-weight: 600;
}

.result-value {
    color: #2d3748;
    font-family: monospace;
}

/* ==========================================
   LISTA DE PETICIONES / REQUESTS
   ========================================== */

.requests-list {
    padding: 15px;
}

.request-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.request-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.request-card.has-awaiting {
    border-color: #ed8936;
    background: linear-gradient(to right, #fffaf0 0%, white 100px);
}

.request-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.request-info {
    flex: 1;
}

.request-reference {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.request-reference a {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
}

.request-reference a:hover {
    color: #4299e1;
}

.badge-awaiting {
    background: #ed8936;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.request-client {
    color: #4a5568;
    margin-bottom: 4px;
}

.tax-id {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.request-contact {
    font-size: 13px;
    color: #718096;
}

.request-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 200px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.status-pending {
    background: #e2e8f0;
    color: #4a5568;
}

.status-awaiting {
    background: #feebc8;
    color: #c05621;
}

.status-completed {
    background: #c6f6d5;
    color: #276749;
}

.status-expired {
    background: #fed7d7;
    color: #c53030;
}

.status-progress {
    background: #bee3f8;
    color: #2b6cb0;
}

.docs-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    width: 80px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #48bb78;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: #718096;
}

.request-date {
    font-size: 12px;
    color: #a0aec0;
}

.request-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* ==========================================
   ESTADO VACÍO
   ========================================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: #4a5568;
    margin-bottom: 8px;
}

.empty-state p {
    color: #718096;
    margin-bottom: 24px;
}

/* ==========================================
   PAGINACIÓN
   ========================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px;
    background: white;
    border-radius: 10px;
}

.pagination-info {
    color: #718096;
    font-size: 14px;
}



.menuitem i,
nav label i {
    width: 1.2em;
    margin-right: 0.5em;
    text-align: center;
    opacity: 0.85;
}


/* ===== Tabla principal ===== */
.requests-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    font-size: 0.9rem;
    color: #2c2f33;
    margin-bottom: 150px;
}

/* ===== Cabecera ===== */
.requests-table thead th {
    position: sticky;
    top: 61px;
    z-index: 2;
    background-color: #f8f9fb;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid #e3e6ea;
    white-space: nowrap;
}

/* ===== Celdas ===== */
.requests-table tbody td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #edf0f2;
    vertical-align: middle;
    white-space: nowrap;
}

/* Permitir salto solo donde interesa */
.requests-table td:nth-child(4),
.requests-table td:nth-child(3) {
    white-space: normal;
}

/* ===== Hover fila ===== */
.requests-table tbody tr:hover {
    background-color: #f9fafb;
}

/* ===== Enlaces ===== */
.requests-table a {
    color: #0d6efd;
    text-decoration: none;
}

.requests-table a:hover {
    text-decoration: underline;
}

/* ===== Badges de estado ===== */
.requests-table .badge {
    font-weight: 500;
    padding: 0.35em 0.55em;
    font-size: 0.75rem;
    border-radius: 0.4rem;
}

/* Ajustes colores badge bootstrap */
.badge.bg-secondary { background-color: #e0e6ec; color: #6f7f9e;}
.badge.bg-warning   { background-color: #eee4cb; color: #a19739; }
.badge.bg-success   { background-color: #cee7da; color: #1d839b;}
.badge.bg-danger    { background-color: #e0b5ae; }
.badge.bg-info      { background-color: #cadeee; }

/* ===== Progreso documentos ===== */
.requests-table .progress {
    height: 6px;
    border-radius: 6px;
    background-color: #e9ecef;
    overflow: hidden;
}

.requests-table .progress-bar {
    background-color: #3bb273;
    transition: width 0.3s ease;
}

/* Texto x/y */
.requests-table .progress + .progress-text,
.requests-table .progress-text {
    font-size: 0.7rem;
    color: #6c757d;
}

/* ===== Botones de acción ===== */
.requests-table .btn {
    padding: 0.25rem 0.45rem;
    line-height: 1;
    border-radius: 0.35rem;
}

.requests-table .btn i {
    font-size: 0.9rem;
}

/* ===== Iconos ===== */
.requests-table i.bi {
    vertical-align: -0.12em;
    opacity: 0.85;
}

/* ===== Columnas alineadas ===== */
.requests-table td.text-center,
.requests-table th.text-center {
    text-align: center;
}

/* ===== Estado visual filas especiales ===== */
.requests-table tr.has-awaiting {
    background-color: #fff9e6;
}

.requests-table tr.has-awaiting:hover {
    background-color: #fff3cd;
}

/* ===== Empty state ===== */
.requests-table td[colspan] {
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* ===== Scroll horizontal elegante si se necesita ===== */
.table-responsive {
    overflow-x: auto;
}

/* ===== Ajuste visual general ===== */
.requests-table th:first-child,
.requests-table td:first-child {
    padding-left: 1rem;
}

.requests-table th:last-child,
.requests-table td:last-child {
    padding-right: 1rem;
}


.sitelogo{
    padding-bottom: 45px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .request-main {
        flex-direction: column;
    }
    
    .request-meta {
        align-items: flex-start;
        width: 100%;
    }
    
    .status-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .status-tab {
        flex-shrink: 0;
    }
}

/* ==========================================
   VERIFICATION METHOD OPTIONS
   ========================================== */

.verification-options {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 8px;
}

.radio-option {
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
    padding: 7px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.radio-option:hover {
    border-color: #4299e1;
    background: #ebf8ff;
}

.radio-option input[type="radio"] {
    margin-right: 8px;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #2b6cb0;
}

.radio-option:has(input:checked) {
    border-color: #4299e1;
    background: #ebf8ff;
}

.radio-label {
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
    /*display: flex;*/
    align-items: center;
    gap: 6px;
}

.radio-desc {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
    margin-left: 22px;
    display: block;
    padding-left: 2px; 
}


#btnSave .bi{
    font-size: 16px;
    display: inline;
    margin-right: 15px;
    margin-left: 5px;
}


.btn .bi-clipboard{
    font-size: 15px;
    display: inline;
    margin-left: 3px;
    margin-right: 2px;
}


button .bi{
    font-size: 16px;
    display: inline;
    margin-right: 15px;
    margin-left: 5px;
}


.btn.btn-sm.btn-outline-secondary .bi{
    margin-left: 1px;
}


.btn.btn-sm.btn-outline-primary{
    background-color: #eee;
    
}

.btn.btn-sm.btn-outline-primary:hover{
    background-color: #cfdbdd;
}

.btn.btn-sm.btn-outline-primary .bi{
    margin-left: 1px;    
}


#alertContainer{
    position: fixed;
    top: 0;
    z-index: 99;
}

@media (max-width: 576px) {
    .verification-options {
        flex-direction: column;
    }
    
    .radio-option {
        max-width: 100%;
    }
}
