/* Variables globales */
:root {
    --primary-color: #7ebb31;
    --primary-dark: #669a23;
    --secondary-color: #f4f4f4;
    --light-gray: #f8f9fa;
    --dark-gray: #444444;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --card-header-dark: #2f2f2f;
}

/* Estilos generales */
/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
} */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

/* Header y navegación */
.header-container {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo {
    height: 40px;
    border-radius: 4px;
}

.company-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: 10px;
    color: var(--dark-gray);
}

/* Menú principal */
.main-nav {
    background-color: var(--primary-color);
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
}

.navbar-nav .nav-item .nav-link {
    color: white;
    padding: 12px 16px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.navbar-nav .nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
    margin-top: 0;
    border: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.dropdown-menu .dropdown-item {
    padding: 8px 20px;
    color: var(--dark-gray);
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Navegación de migas de pan */
.breadcrumb-nav {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--dark-gray);
}

/* Estructura de contenido principal */
/* .wrapper {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 160px);
    position: relative;
} */
.wrapper {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: calc(100vh - 0px);
    overflow: hidden;
}

/* Sidebar */
/* .sidebar {
    width: 250px;
    min-height: 100%;
    background-color: var(--dark-gray);
    color: #fff;
    position: fixed;
    top: 160px;
    left: 0;
    bottom: 0;
    z-index: 5;
    overflow-y: auto;
} */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: var(--dark-gray);
    color: #fff;
    position: relative;
    overflow-y: auto;
    flex-shrink: 0;
}


.sidebar-header {
    padding: 20px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.sidebar-category {
    padding: 10px 15px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    background-color: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Contenido principal */
/* .main-content {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
    width: calc(100% - 250px);
    overflow-x: hidden;
} */
.main-content {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--light-gray);
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.page-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

/* Tarjetas de estadísticas */
.stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    flex: 1;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-card-header {
    padding: 10px 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #6c757d;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card-body {
    padding: 15px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

.stat-green {
    border-top: 3px solid var(--primary-color);
}

.stat-green .stat-value {
    color: var(--primary-color);
}

.stat-yellow {
    border-top: 3px solid var(--warning-color);
}

.stat-yellow .stat-value {
    color: var(--warning-color);
}

.stat-red {
    border-top: 3px solid var(--danger-color);
}

.stat-red .stat-value {
    color: var(--danger-color);
}

/* Embudo de clientes/procesos */
.funnel-container {
    margin: 20px 0;
}

.funnel-step {
    display: block;
    text-align: center;
    color: white;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

.funnel-value {
    font-size: 18px;
    font-weight: bold;
}

.funnel-label {
    font-size: 14px;
}

/* Secciones con títulos */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-gray);
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

/* Secciones del dashboard */
.dashboard-section {
    margin-bottom: 30px;
}

/* Layout de dos columnas */
.two-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.column {
    flex: 1;
}

/* Tarjetas para paneles */
.panel-card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.panel-card-header {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
}

.panel-card-body {
    padding: 0;
}

/* Listas simples */
.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-list-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

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

.simple-list-content {
    flex: 1;
}

.simple-list-title {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 14px;
}

.simple-list-subtitle {
    color: #6c757d;
    font-size: 12px;
}

.simple-list-date {
    font-size: 12px;
    color: #6c757d;
    align-self: flex-start;
}

/* Estilos para textos en listas de alerta */
.text-danger .simple-list-title {
    color: var(--danger-color);
}

.date-alert {
    color: var(--danger-color);
}

/* Calendario semanal simple */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th, 
.calendar-table td {
    border: 1px solid #e9ecef;
    padding: 8px;
    text-align: center;
    vertical-align: top;
}

.calendar-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
}

.calendar-event {
    margin-bottom: 5px;
    padding: 4px;
    border-radius: 3px;
    font-size: 11px;
    color: white;
    text-align: left;
}

.calendar-event-time {
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

.calendar-event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tabla de correos */
.email-table {
    width: 100%;
    border-collapse: collapse;
}

.email-table th {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    color: #495057;
}

.email-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.email-table tr:last-child td {
    border-bottom: none;
}

.email-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: white;
    text-transform: uppercase;
    font-weight: 500;
}

.form-label {
    font-weight: 500;
}

/* Botones de acción */
.btn {
    font-weight: 500;
}

.btn-link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.btn-link-primary:hover {
    text-decoration: underline;
}

.btn-link-danger {
    color: var(--danger-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.btn-link-danger:hover {
    text-decoration: underline;
}

/* Notificaciones y usuario */
.user-nav {
    display: flex;
    align-items: center;
}

.nav-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.nav-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.badge-notification {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Dropdown de notificaciones */
.notification-dropdown {
    position: absolute;
    top: 45px;
    right: 10px;
    width: 320px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-body {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 14px;
}

.notification-user {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 5px;
}

.notification-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #6c757d;
}

.notification-footer {
    padding: 10px 15px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.notification-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
}

/* Dropdown de usuario */
.user-dropdown {
    position: absolute;
    top: 45px;
    right: 10px;
    width: 220px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-dropdown-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
}

.user-dropdown-name {
    font-weight: bold;
    margin-bottom: 3px;
}

.user-dropdown-role {
    font-size: 12px;
    opacity: 0.8;
}

.user-dropdown-body {
    padding: 10px 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #495057;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background-color: #f8f9fa;
}

.user-dropdown-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .wrapper {
        flex-direction: column;
    }
    
/*     .sidebar {
        position: relative;
        width: 100%;
        top: 0;
        margin-bottom: 20px;
    } */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .two-columns {
        flex-direction: column;
    }
}

.header-bar {
  background: #2d2d2d;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
}

.filter-label {
  font-weight: bold;
  margin-bottom: 5px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  align-items: end;
}

.filters-row select,
.filters-row input {
  min-width: 200px;
}

table th {
  background-color: #e9ecef;
  font-weight: bold;
}

.table-actions button {
  margin-right: 5px;
}

/*=============================================
  ESTILO DE CARD
=============================================*/
/* .card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
} */

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-header {
    background-color: #343a40; /* Negro suavizado */
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.card-body {
    padding: 20px 20px 0;
}

/* Pestañas del formulario */
.form-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-tab {
  padding: 8px 16px;
  background-color: #e9ecef;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.form-tab:hover,
.form-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-dark);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

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

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

