/* ===== SIDEBAR ESTILO MODERNO ===== */

:root {
    --white:        #ffffff;
    --border:       #e0e0e0;
    --r-lg:         12px;
    --r-sm:         6px;
    --shadow-xs:    0 2px 4px rgba(0,0,0,0.05);
 
    --primary-light:#ebebff;
    --text:         #333333;
	    --primary: #4F3FAA;
}

.sidebar {
    background-color: #f5f5f7;
}

.sidebar .nav {
    padding: 15px 10px;
}

/* Título MENU en gris claro */
.sidebar .nav-heading {
    font-size: 12px;
    color: #b5b5b5;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Items del menú */
.sidebar .nav li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: none !important;
    text-decoration: none;
}

/* Eliminar cualquier barra lateral del tema */
.sidebar .nav li.active a,
.sidebar .nav li a:focus,
.sidebar .nav li a:active {
    border-left: none !important;
}

/* Hover */
.sidebar .nav li a:hover {
    background-color: #e8e8ef;
}

/* Item activo */
.sidebar .nav li.active a {
   /* background: linear-gradient(90deg, #5f46c7, #6b4fd6);*/
	 background-color: #4F3FAA;

    color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Íconos */
.sidebar .nav li a em {
    margin-right: 10px;
    font-size: 16px;
}

/* Ícono activo */
.sidebar .nav li.active a em {
    color: #fff;
}

/* Texto activo */
.sidebar .nav li.active span {
    color: #fff;
}

.sidebar .nav > li.active {
    border-left: none !important;
    background-color: transparent !important;
}


/* ===== USER BOX NAVBAR ===== */

.user-box {
    padding: 10px 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
	padding-right:15px;
}

.user-text {
    text-align: right;
    line-height: 1;
}

.user-name {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px; /* controla la cercanía */
}

.user-role {
    font-size: 10px;
    opacity: 0.85;
    margin-top: 0;
	color: #3Ec1c1;
}
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #3Ec1c1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    letter-spacing: 1px;
    color: #2c2c2c;
	    border: 2px solid black;
		
}


.user-link {
    text-decoration: none;
    color: inherit;
}

.user-link:hover {
    text-decoration: none;
}

.user-box {
    padding: 0 !important;
    height: 50px;
    display: flex;
    align-items: center;
}

.nav > li > a:hover {
    background-color: #fff;
}

.user-link {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 50px;
    background: transparent !important;
    text-decoration: none;
    color: inherit;
}

.user-link:hover,
.user-link:focus,
.user-link:active {
    background: transparent !important;
    color: #fff !important;
}
/* Quitar fondo blanco al hover en iconos del topbar */
.topnavbar .nav > li > a:hover,
.topnavbar .nav > li > a:focus,
.topnavbar .nav > li > a:active {
    background-color: transparent !important;
    color: #fff !important;
}

.stat-card{
  position: relative;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 12px 14px;
  min-height: 70px;
}

.stat-title{
  font-size: 11px;
  letter-spacing: .5px;
  color: #777;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-value{
  font-size: 22px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}

/* Icono esquina inferior derecha */
.stat-icon.br{
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 16px;
  color: #cfcfcf;
}

/* Variante BORRADORES */
.stat-warning{
  border-color: #f0c9a2;
}
.stat-warning .stat-title,
.stat-warning .stat-icon{
  color: #f39c12;
}

/* Variante COMPLETADOS (gris, no verde) */
.stat-gray{
  border-color: #dcdcdc;
}
.stat-gray .stat-title,
.stat-gray .stat-icon{
  color: #9e9e9e;
}


	.topnavbar {
	background-color: #4F3FAA !important;
	background-image: linear-gradient(to right, #4F3FAA 0%, #4F3FAA 100%) !important;
	}
	
	.topnavbar .nav-wrapper {
	background-image: linear-gradient(to right, #4F3FAA 0%, #4F3FAA 100%) !important;
	}
	
	
	.aside-collapsed .sidebar>.nav>li, .aside-collapsed-text .sidebar>.nav>li {
    width: 48px !important;
	
}

.aside-collapsed .sidebar>.nav>li>a, .aside-collapsed-text .sidebar>.nav>li>a, .aside-collapsed .sidebar>.nav>li>.nav-item, .aside-collapsed-text .sidebar>.nav>li>.nav-item {
     padding: 13px 17px !important;
  }
  
  
  .navbar-brand-wrapper {
    display: flex;
    align-items: center;
}

.navbar-brand-wrapper .nav {
    margin-right: 10px;
}

.brand-logo img,
.brand-logo-collapsed img {
    max-height: 40px;
}

@media only screen and (min-width: 768px) {
    .aside-collapsed .topnavbar .navbar-header .brand-logo-collapsed {
        display: contents;
    }
}
.topnavbar .navbar-header .brand-logo {
    display: block;
    padding: 5px 15px 5px 0px;
}

.nav>li>a {

    padding: 10px 0px 10px 11px;
}
.navbar-brand-wrapper
{
	height:50px !important;
}


/* ===================================================
   ESTILOS PERSONALIZADOS PARA TABS DE CLIENTES
   (SIN RESPONSIVE)
   ================================================== */

/* Contenedor de tabs */
#clientTabs {
    border-bottom: 2px solid #e0e0e0;
    margin-top: 10px;
    padding-left: 0;
}

/* Items de navegación */
#clientTabs .nav-item {
    margin-bottom: 0;
    margin-right: 5px;
}

/* Enlaces de tabs */
#clientTabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

/* Efecto hover en tabs inactivos */
#clientTabs .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
    border-bottom-color: #dee2e6;
}

/* Tab activo */
#clientTabs .nav-link.active {
    color: #4F3FAA;
    font-weight: 600;
    background-color: transparent;
    border-bottom: 3px solid #4F3FAA;
}

/* Iconos dentro de los tabs */
#clientTabs .nav-link i {
    margin-right: 6px;
    font-size: 14px;
}

/* Badge o número dentro del tab (ejemplo: "13") */
#clientTabs .nav-link .badge {
    background-color: #6c757d;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
    vertical-align: middle;
}

/* Badge en tab activo */
#clientTabs .nav-link.active .badge {
    background-color: #4F3FAA;
}

/* Contenido de tabs */
.tab-content {
    margin-top: 20px;
    padding: 15px 0;
}

/*TABLAS*/
.table>thead>tr {
    border-bottom:none;
}

.br {
     border-right: 0px solid rgba(0, 0, 0, 0.12);
}


/* Forzar ocultación de tabs inactivos */
.tab-content > .tab-pane {
    display: none;
}

.tab-content > .tab-pane.active {
    display: block;
}

/* Estilo para el contenedor del buscador */
.dataTables_filter {
    float: left !important;
    text-align: left !important;
    width: 50% !important;
    margin-bottom: 15px;
}

/* Estilo para el input del buscador */
.dataTables_filter input {
    width: 100% !important;
    max-width: 400px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Estilo para el label */
.dataTables_filter label {
    width: 100%;
    font-weight: normal;
}


/* Estilo para el input de búsqueda */
.input-group .input-group-text {
    background-color: #fff;
    border-right: 0;
}


.input-group .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.input-group:focus-within .input-group-text {
    border-color: #86b7fe;
}

.input-group:focus-within .form-control {
    border-color: #86b7fe;
}
.form-control-nuevo{
	 border: 1px solid #d9dee7 !important;        /* borde suave gris */
  border-radius: 10px !important;              /* esquinas redondeadas */
 
  background: #fff !important; 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important; 
  transition: all 0.2s ease !important; 
}

.select2-container--default .select2-selection--multiple {
	 border: 1px solid #d9dee7 !important;        /* borde suave gris */
  border-radius: 10px !important;              /* esquinas redondeadas */
  
  background: #fff !important; 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important; 
  transition: all 0.2s ease !important; 
}
	
	

/* Modal Container */
.modal-filtros-avanzados .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Header */
.modal-header-filtros {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
}

.modal-title-filtros {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-title-filtros i {
    color: #4F3FAA;
    margin-right: 8px;
}

.close-filtros {
    font-size: 28px;
    font-weight: 300;
    color: #6c757d;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.close-filtros:hover {
    opacity: 1;
}

/* Body */
.modal-body-filtros {
    padding: 30px;
    background-color: #ffffff;
}

.label-filtro {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.input-filtro,
.select-filtro {
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    color: #374151;
    background-color: #ffffff;
    transition: all 0.2s;
}

.input-filtro:focus,
.select-filtro:focus {
    border-color: #4F3FAA;
    box-shadow: 0 0 0 3px rgba(79, 63, 170, 0.1);
    outline: none;
}

.input-filtro::placeholder {
    color: #9ca3af;
}

/* Botones de Gestión */
.gestion-buttons-group {
    display: flex;
    gap: 12px;
}

.btn-gestion {
    flex: 1;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-gestion:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.btn-gestion.active,
.btn-gestion-active {
    background-color: #4F3FAA !important;
    color: #ffffff !important;
    border-color: #4F3FAA !important;
}

.btn-gestion i {
    font-size: 16px;
}

/* Footer */
.modal-footer-filtros {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 30px;
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: space-between;
}

.btn-limpiar-filtros-modal {
    height: 44px;
    padding: 0 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-limpiar-filtros-modal:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.btn-limpiar-filtros-modal i {
    font-size: 16px;
}

.btn-aplicar-filtros-modal {
    height: 44px;
    padding: 0 32px;
    border: none;
    border-radius: 8px;
    background-color: #4F3FAA;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-aplicar-filtros-modal:hover {
    background-color: #3f3288;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 63, 170, 0.3);
	   color: #ffffff !important;  /* <-- AGREGAR ESTA LÍNEA */
}

.btn-aplicar-filtros-modal i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .gestion-buttons-group {
        flex-direction: column;
    }
    
    .modal-footer-filtros {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-limpiar-filtros-modal,
    .btn-aplicar-filtros-modal {
        width: 100%;
        justify-content: center;
    }
}


/* ========================================
   FICHA DE CLIENTE - ESTILOS
   ======================================== */

/* ============================= */
/* HEADER: FICHA DE CLIENTE */
/* ============================= */
.ficha-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px 0;
    padding-top:0px;
    border-bottom: 2px solid #e0e0e0;
}

.ficha-header-left {
    flex: 1;
}

.ficha-titulo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.ficha-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}

.chip-id {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.chip-estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.estado-borrador {
    background-color: #fef5e7;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.estado-registrado {
    background-color: #d4edda;
    color: #28a745;
    border: 1px solid #28a745;
}

.estado-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.texto-ayuda-borrador {
    font-size: 13px;
    color: #555;
    margin: 5px 0 0 0;
    font-weight: 500;
}

/* Indicador de progreso circular */
.ficha-header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}






/* ============================= */
/* LAYOUT DE 2 COLUMNAS */
/* ============================= */
.ficha-layout {
    margin-left: -10px;
    margin-right: -10px;
}

.columna-principal {
    padding: 0 10px;
}

.columna-lateral {
    padding: 0 10px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* ============================= */
/* SECCIONES (CARDS) */
/* ============================= */
/* ============================= */
/* SECCIONES (CARDS) */
/* ============================= */
.seccion-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 0;
    box-shadow: var(--shadow-xs);
    margin-bottom: 16px;
}
.seccion-card:last-child {
    margin-bottom: 0;
}
.seccion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    margin-bottom: 0;
     border-bottom: 1px solid var(--border);
}
.seccion-icono {
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);

    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 16px;
}
.seccion-titulo {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text);
    margin: 0;
    flex: 1;
}
.badge-required {
    background-color: #dc3545;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}
.btn-primary {
    background: var(--primary);
}
.badge-primary {
    color: var(--primary);
    background: var(--primary-light);
}
.seccion-body {
    padding: 0 24px 24px 24px;
}

.badge-required {
    background-color: #dc3545;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}
.btn-primary
{
	 
	    background: #4F3FAA;
}
.badge-primary
{
	color:#4F3FAA ;
	    background: aliceblue;
}

.seccion-body {
    padding: 20px;
}

/* ============================= */
/* FORMULARIOS */
/* ============================= */
.form-label-required {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
    display: block;
}

.form-label-required::after {
    content: ' *';
    color: #dc3545;
}

.label-ayuda {
    color: #dc3545;
    font-size: 14px;
}

.campo-obligatorio {
   /* border-left: 3px solid #5b5bf0;*/
}

.campo-obligatorio:focus {
    border-left-color: #3b3bd0;
    box-shadow: 0 0 0 0.2rem rgba(91, 91, 240, 0.15);
}

.campo-vacio {
    border-color: #dc3545 !important;
    border-left-color: #dc3545 !important;
}

.error-message {
    display: block;
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
}

/* ============================= */
/* ACCORDION */
/* ============================= */
.accordion-section {
    margin-top: 15px;
}

.accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #5b5bf0;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.accordion-toggle:hover {
    color: #3b3bd0;
    text-decoration: none;
}

.accordion-toggle i {
    transition: transform 0.3s ease;
}

.accordion-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.collapse {
    overflow: hidden;
    transition: height 0.3s ease;
}

/* ============================= */
/* SEGMENTED CONTROL (Gestión) */
/* ============================= */
.segmented-control {
    display: flex;
    width: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.segmented-control input[type="radio"] {
    display: none;
}

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #d0d0d0;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background-color: transparent;
}

.segmented-control label:last-child {
    border-right: none;
}

.segmented-control label:hover {
    background-color: #e9ecef;
}

.segmented-control input[type="radio"]:checked + label {
    background-color: #5b5bf0; /* Fondo morado */
    color: #ffffff; /* Letras blancas */
    font-weight: 600;
}

.segmented-control input[type="radio"]:checked + label i {
    color: #ffffff; /* Ícono en blanco */
}

.segmented-control label i {
    margin-right: 5px;
    font-size: 16px;
}

.segmented-control.campo-vacio {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* ============================= */
/* RESULTADO (solo lectura) */
/* ============================= */
.resultado-readonly {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.etiqueta-resultado {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.etiqueta-resultado:empty::before {
    content: '--';
    color: #999;
}

/* Tooltip personalizado */
.tooltip-icon {
    cursor: help;
    color: #999;
    margin-left: 5px;
    font-size: 14px;
}

.tooltip-icon:hover {
    color: #5b5bf0;
}

/* ============================= */
/* COBERTURA GEOGRÁFICA (Cards) */
/* ============================= */
.cobertura-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.cobertura-input {
    display: none;
}

.cobertura-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin: 0;
}

.cobertura-card i {
    font-size: 32px;
    color: #999;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.cobertura-card span {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    transition: color 0.2s ease;
}

.cobertura-card:hover {
    border-color: #5b5bf0;
    background-color: #f8f8ff;
}

.cobertura-input:checked + .cobertura-card {
    border-color: #5b5bf0;
    background-color: #f0f0ff;
    box-shadow: 0 4px 8px rgba(91, 91, 240, 0.2);
}

.cobertura-input:checked + .cobertura-card i,
.cobertura-input:checked + .cobertura-card span {
    color: #5b5bf0;
}

/* Responsive */
@media (max-width: 768px) {
    .cobertura-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================= */
/* PANEL LATERAL */
/* ============================= */
.card-lateral {
    margin-bottom: 15px;
}

/* Placeholder */
.placeholder-card {
    background-color: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 15px;
}

.placeholder-card p {
    font-size: 14px;
    color: #999;
    margin: 10px 0 0 0;
}

/* Card de previsualización del cliente */
.card-cliente-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.preview-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.8;
}

.preview-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.badge-micro {
    background-color: rgba(255, 193, 7, 0.3);
}

.preview-nombre {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.preview-ruc {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
}






/* ============================= */
/* FOOTER: ACCIONES */
/* ============================= */
.ficha-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 2px solid #e0e0e0;
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index: 100;
}

.footer-acciones-derecha {
    display: flex;
    gap: 10px;
}



.btn-registrar {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    background-color: #4F4FAA;
    border-color: #4F4FAA;
    transition: all 0.2s ease;
}

.btn-registrar:hover:not(:disabled) {
   /* background-color: #3b3bd0;
    border-color: #3b3bd0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(91, 91, 240, 0.3);*/
}

.btn-registrar:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-registrar i {
    margin-right: 5px;
}

/* ============================= */
/* UTILIDADES */
/* ============================= */
.link-completar-manual {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    color: #5b5bf0;
    text-decoration: none;
}

.link-completar-manual:hover {
    text-decoration: underline;
}

/* Espaciado entre filas */
.form-group {
    margin-bottom: 15px;
}

.row {
    margin-left: -10px;
    margin-right: -10px;
}

.row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 991px) {
    .columna-lateral {
        position: static;
        margin-top: 20px;
    }

    .toast-campos-faltantes {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .ficha-header {
        flex-direction: column;
    }

    .ficha-header-right {
        margin-top: 15px;
        align-self: flex-start;
    }

    .ficha-footer {
        flex-direction: column;
        gap: 10px;
    }

    .footer-acciones-derecha {
        width: 100%;
        flex-direction: column;
    }

    .btn-guardar-borrador,
    .btn-registrar {
        width: 100%;
    }
}

/* ============================= */
/* ANIMACIONES */
/* ============================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seccion-card {
    animation: fadeIn 0.3s ease;
}

/* Loading spinner para consulta RUC */
.loader-consulta {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #5b5bf0;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Usuarios - Card principal */
.usuarios-lista {
   margin-top: 10px;
}

.usuario-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px 15px;
   background: #f8f9fa;
   border-radius: 8px;
   margin-bottom: 8px;
   border-left: 4px solid #5b5bf0;
   transition: all 0.2s;
}

.usuario-item:hover {
   background: #e9ecef;
   transform: translateX(2px);
}

.usuario-item.admin {
   border-left-color: #6f42c1;
   background: #f3e5f5;
}

.usuario-item.admin:hover {
   background: #e1bee7;
}

.usuario-info {
   flex: 1;
}

.usuario-nombre {
   font-weight: 600;
   color: #2c3e50;
   font-size: 14px;
   margin-bottom: 3px;
}

.usuario-correo {
   font-size: 12px;
   color: #7f8c8d;
}

.usuario-rol {
   display: inline-block;
   padding: 5px 14px;
   border-radius: 15px;
   font-size: 11px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.usuario-rol.admin {
   background: #6f42c1;
   color: white;
}

.usuario-rol.operador {
   background: #17a2b8;
   color: white;
}

.usuario-rol.observador {
   background: #6c757d;
   color: white;
}

/* Modal */
#modal-usuarios .table th {
   font-size: 12px;
   font-weight: 600;
   color: #2c3e50;
   text-transform: uppercase;
   border-bottom: 2px solid #dee2e6;
}

#modal-usuarios .table td {
   vertical-align: middle;
   font-size: 13px;
}

#card-form-usuario {
   animation: slideDown 0.3s ease;
}

@keyframes slideDown {
   from {
      opacity: 0;
      transform: translateY(-20px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}
/* ========================================
   USUARIOS - ESTILOS
   ======================================== */

/* Card principal */
.usuarios-lista {
   margin-top: 10px;
}

.usuario-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px 15px;
   background: #f8f9fa;
   border-radius: 8px;
   margin-bottom: 8px;
   border-left: 4px solid #5b5bf0;
   transition: all 0.2s ease;
}

.usuario-item:hover {
   background: #e9ecef;
   transform: translateX(2px);
}

.usuario-item.admin {
   border-left-color: #6f42c1;
   background: #f3e5f5;
}

.usuario-item.admin:hover {
   background: #e1bee7;
}

.usuario-info {
   flex: 1;
}

.usuario-nombre {
   font-weight: 600;
   color: #2c3e50;
   font-size: 14px;
   margin-bottom: 3px;
}

.usuario-correo {
   font-size: 12px;
   color: #7f8c8d;
}

.usuario-rol {
   display: inline-block;
   padding: 5px 14px;
   border-radius: 15px;
   font-size: 11px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.5px;
}

.usuario-rol.admin {
   background: #6f42c1;
   color: white;
}

.usuario-rol.operador {
   background: #17a2b8;
   color: white;
}

.usuario-rol.observador {
   background: #6c757d;
   color: white;
}

/* Modal */
#modal-usuarios .table th {
   font-size: 12px;
   font-weight: 600;
   color: #2c3e50;
   text-transform: uppercase;
   border-bottom: 2px solid #dee2e6;
}

#modal-usuarios .table td {
   vertical-align: middle;
   font-size: 13px;
}

#card-form-usuario {
   animation: slideDown 0.3s ease;
}

@keyframes slideDown {
   from {
      opacity: 0;
      transform: translateY(-20px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}

.btn-purple:hover {
    background-color: #4F4FAA;
    border-color: #4F4FAA;
}


.criterios-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.criterios-label {
    color: #00BCD4;
    font-weight: 600;
}

.info-icon {
    position: relative;
    cursor: pointer;
}

.info-icon i {
    color: #5a32a3;
}

.tooltip-criterios {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: #1a1f3a;
    border-radius: 8px;
    padding: 16px;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

.info-icon:hover .tooltip-criterios {
    display: block;
}

.tooltip-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-item:last-child {
    border-bottom: none;
}

.criterio-valor {
    font-weight: 600;
    color: #00BCD4;
}




.btn-icono {
    background: #ffffff;
    border: none;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    transition: background 0.2s ease;
}

.btn-icono:hover {
    background: #e5e5e5;
}

/* Colores de iconos */
.btn-editar i {
    color: #6f63d9; /* morado */
}

.btn-clave i {
    color: #f4b860; /* naranja */
}

.btn-eliminar i {
    color: #cfcfcf; /* gris */
}
.select2-selection__clear{
	display:none;
}


/* ===================================== */
/* CAMPOS FALTANTES INLINE - INFERIOR DERECHA */
/* ===================================== */
.campos-faltantes-inline {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 1000;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-left: 4px solid #F59E0B;
    border-radius: 8px;
    padding: 8px;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.campos-faltantes-inline .cf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.campos-faltantes-inline .cf-titulo {
    font-size: 10px;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0;
}

.campos-faltantes-inline .cf-close {
    cursor: pointer;
    font-size: 20px;
    color: #9CA3AF;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campos-faltantes-inline .cf-close:hover {
    color: #374151;
}

.campos-faltantes-inline .cf-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.campos-faltantes-inline .cf-lista li {
    padding: 2px 0 5px 24px;
    font-size: 11px;
    color: #374151;
    position: relative;
    line-height: 1.4;
}

.campos-faltantes-inline .cf-lista li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    top: 1px;
    color: #F59E0B;
    font-size: 12px;
}

.campos-faltantes-inline .cf-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #F59E0B;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.campos-faltantes-inline .cf-link:hover {
    text-decoration: underline;
    color: #D97706;
}

/* Responsive - en móviles se mueve al centro inferior */
@media (max-width: 768px) {
    .campos-faltantes-inline {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 70px;
        width: calc(100% - 40px);
        max-width: 300px;
    }
}




/* ===================================== */
/* BOTÓN GUARDAR BORRADOR */
/* ===================================== */

/* Botón Guardar Borrador - Estado por defecto (outline) */
#btn-guardar-borrador {
    background-color: #FFFFFF;
    border: 2px solid #4F4FAA;
    color: #4F4FAA;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Botón Guardar Borrador - Estado deshabilitado */
#btn-guardar-borrador:disabled {
    background-color: #FFFFFF;
    border-color: #4F4FAA;
    color: #4F4FAA;
    opacity: 0.6;
    cursor: not-allowed;
}



/* Tooltip de campos faltantes */
.tooltip-campos-faltantes {
    background: white;
    border: 2px solid #dc3545;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 250px;
    max-width: 350px;
    animation: fadeInTooltip 0.2s ease;
}

.tcf-header {
    text-align: center;
    color:#FA5252;
    padding: 10px 15px;
  
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px 6px 0 0;
}

.tcf-lista {
    list-style: none;
    padding: 0px 15px;
    margin: 0;
}

.tcf-lista li {
    padding: 4px 0;
    font-size: 13px;
    color: #333;

}

.tcf-lista li:last-child {
    border-bottom: none;
}

.tcf-lista li:before {
    content: "• ";
    color: #dc3545;
    font-weight: bold;
    margin-right: 8px;
}

.tcf-footer {
    padding: 8px 15px;
    background: #f8f9fa;
    font-size: 12px;
    color: #666;
    text-align: center;
    border-radius: 0 0 6px 6px;
    border-top: 1px solid #dee2e6;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tcf-close{
	    background: #cd5c5c00;
    border: 0px solid;
}
 
 
 

#procesoTabs {
    border-bottom: 2px solid #e0e0e0;
    margin-top: 10px;
    padding-left: 0;
}

/* Items de navegación */
#procesoTabs .nav-item {
    margin-bottom: 0;
    margin-right: 5px;
}

/* Enlaces de tabs */
#procesoTabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    color: #6c757d;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

/* Efecto hover en tabs inactivos */
#procesoTabs .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
    border-bottom-color: #dee2e6;
}

/* Tab activo */
#procesoTabs .nav-link.active {
    color: #4F3FAA;
    font-weight: 600;
    background-color: transparent;
    border-bottom: 3px solid #4F3FAA;
}

/* Iconos dentro de los tabs */
#procesoTabs .nav-link i {
    margin-right: 6px;
    font-size: 14px;
}

/* Badge o número dentro del tab (ejemplo: "13") */
#procesoTabs .nav-link .badge {
    background-color: #6c757d;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
    vertical-align: middle;
}

/* Badge en tab activo */
#procesoTabs .nav-link.active .badge {
    background-color: #4F3FAA;
}


/* Asegurar que el tab activo tenga el borde morado */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border: none !important;
    border-bottom: 3px solid #4F3FAA !important;
    color: #4F3FAA !important;
    font-weight: 600 !important;
    background-color: white !important;
}

/* Evitar que la regla genérica pise el activo */
.nav-tabs > li > a {
    border: 1px solid transparent !important;
    border-bottom: 3px solid transparent !important;
}

#procesoTabs li.active a .badge {
    background-color: #4F3FAA !important;
    color: #fff !important;
}

.pv-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-xs);
    
}

.pv-topbar__back {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all var(--t);
    flex-shrink: 0;
}


