﻿/* ==========================================================================
   SITE COMPONENTS
   ========================================================================== */

/* Titles */
.section-title {
   color: var(--azul-primario);
   font-size: 30px;
   font-weight: 700;
}

/* Text actions / links */
.link-item,
.link-language,
.btn-tutorial-link {
   color: var(--azul-primario);
   text-decoration: none;
}

.link-item {
   display: block;
   margin: 0.5rem 0;
}

.btn-tutorial-link {
   background: none;
   border: none;
   padding: 0;
   cursor: pointer;
}

   .btn-tutorial-link:hover {
      filter: brightness(1.2);
   }

/* Logo / media helpers */
.logo-adjust {
   max-width: 100%;
   height: auto;
}

.logo-white-filter {
   filter: brightness(0) invert(1);
}

.compass {
   max-width: 150px;
}

/* Tables */
.table > thead > tr > th {
   background-color: rgb(119, 158, 255);
}

.table-striped > tbody > tr:nth-child(odd) > td {
   background-color: rgba(119, 158, 255, 0.3);
}

/* Offcanvas */
.offcanvas-header {
   background-color: #FC8435;
}

.offcanvas-title {
   color: #ffffff;
   font-size: 30px;
}

/* Notifications */
.notification-item {
   opacity: 0;
   transform: translateY(-20px);
   transition: opacity 0.5s ease, transform 0.5s ease;
}

   .notification-item.show {
      opacity: 1;
      transform: translateY(0);
   }

/* Seal */
.seal-wrap {
   display: inline-flex;
   padding: 8px;
   border-radius: 14px;
   box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.seal-card {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 6px 8px;
   background: var(--fondo-sello);
   border-radius: 10px;
}

   .seal-card iframe,
   .seal-card img {
      display: block;
      border: 0;
      max-height: 44px;
   }

/* Charts */
.chart-area {
   height: 300px;
}

@media (min-width: 768px) {
   .logo-adjust {
      max-width: 200px;
   }

   .link-item {
      margin: 0;
   }
}

/* ==========================================================================
   APP DATA TABLE
   ========================================================================== */

.app-data-table-wrap {
   width: 100%;
}

.app-data-table {
   margin-bottom: 0;
}

   .app-data-table th,
   .app-data-table td {
      vertical-align: middle;
   }
/* ==========================================================================
   SWEET ALERT - GLOBAL MESSAGE
   ========================================================================== */

.app-swal-popup {
   border-radius: 20px !important;
}

.app-swal-confirm {
   border: 0;
   border-radius: 12px;
   background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-secundario) 100%);
   color: #ffffff;
   font-weight: 700;
   padding: 0.75rem 1.25rem;
   box-shadow: 0 10px 20px rgba(50, 92, 147, 0.18);
}

   .app-swal-confirm:hover {
      filter: brightness(1.05);
   }
/* ==========================================================================
   NAVBAR LINKS
   ========================================================================== */

.app-navbar-link {
   color: rgba(255,255,255,0.85);
   font-weight: 600;
   font-size: 0.95rem;
   padding: 0.5rem 0.9rem;
   border-radius: 999px;
   transition: all 0.2s ease;
   display: inline-flex;
   align-items: center;
}

   .app-navbar-link:hover {
      color: #ffffff;
      background: rgba(255,255,255,0.12);
   }

/* SELECT2 GLOBAL */
.select2-container {
   width: 100% !important;
}

.select2-container--default .select2-selection--single {
   height: 48px !important;
   border-radius: 14px !important;
   border: 0 !important;
   background: #ffffff !important;
   display: flex !important;
   align-items: center !important;
   box-shadow: 0 10px 28px rgba(15,23,42,.12);
}

   .select2-container--default .select2-selection--single .select2-selection__rendered {
      color: #1e293b !important;
      line-height: 48px !important;
      padding-left: 14px !important;
      padding-right: 36px !important;
      font-weight: 600;
   }

   .select2-container--default .select2-selection--single .select2-selection__arrow {
      height: 48px !important;
      right: 10px !important;
   }

.select2-dropdown {
   border-radius: 14px !important;
   overflow: hidden;
   border: 0 !important;
   box-shadow: 0 18px 40px rgba(15,23,42,.22);
}

.select2-search--dropdown {
   padding: 10px !important;
}

   .select2-search--dropdown .select2-search__field {
      width: 100% !important;
      border-radius: 10px !important;
      border: 1px solid #cbd5e1 !important;
      padding: 8px 10px !important;
   }

.select2-results__option {
   padding: 10px 14px !important;
}

.select2-results__option--highlighted {
   background: #2563eb !important;
   color: #ffffff !important;
}

/* FIX DATATABLES DENTRO DE CARDS */
.user-access-panel,
.catalog-card,
.frequent-problem-panel {
   overflow: hidden;
}

   .user-access-panel .table-responsive,
   .catalog-card .table-responsive,
   .frequent-problem-panel .table-responsive {
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
   }

   .user-access-panel table.dataTable,
   .catalog-card table.dataTable,
   .frequent-problem-panel table.dataTable {
      width: 100% !important;
      max-width: 100%;
   }

   .user-access-panel .dataTables_wrapper,
   .catalog-card .dataTables_wrapper,
   .frequent-problem-panel .dataTables_wrapper {
      width: 100%;
      overflow-x: auto;
   }

   .user-access-panel .dataTables_filter input,
   .catalog-card .dataTables_filter input,
   .frequent-problem-panel .dataTables_filter input {
      max-width: 220px;
   }